dealpos 26.41.4 → 26.41.5

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 (100) hide show
  1. package/browser/{chunk-AS6YJL6K.js → chunk-23H5XOXH.js} +1 -1
  2. package/browser/{chunk-VRNI2HOL.js → chunk-25MNFMO5.js} +1 -1
  3. package/browser/{chunk-KQTVJW3K.js → chunk-2FUG7SPM.js} +1 -1
  4. package/browser/{chunk-FFURNSSE.js → chunk-2IX2JSCQ.js} +1 -1
  5. package/browser/{chunk-QN3744VG.js → chunk-2NGA7RZ3.js} +1 -1
  6. package/browser/{chunk-TZVEBVWQ.js → chunk-2NSHNKT4.js} +1 -1
  7. package/browser/{chunk-LFLAHKM7.js → chunk-33KPSRLK.js} +1 -1
  8. package/browser/{chunk-XEFYOHD5.js → chunk-3TIPYMCK.js} +1 -1
  9. package/browser/{chunk-IWZEF2TO.js → chunk-47TFSR6C.js} +1 -1
  10. package/browser/{chunk-B3IVCH2X.js → chunk-5FTX66YQ.js} +1 -1
  11. package/browser/{chunk-7DKWMBFI.js → chunk-5JBNIH3W.js} +1 -1
  12. package/browser/{chunk-3KXXQZKR.js → chunk-5R4BY4ZO.js} +2 -2
  13. package/browser/{chunk-ZUNFOLLT.js → chunk-5SBVW7KC.js} +1 -1
  14. package/browser/{chunk-R3CJAQKG.js → chunk-6I74APB5.js} +1 -1
  15. package/browser/{chunk-DNMHFWF5.js → chunk-7GUUZIHS.js} +1 -1
  16. package/browser/{chunk-YFHXJ2BM.js → chunk-7IK6B6BS.js} +1 -1
  17. package/browser/{chunk-BJYPJUNI.js → chunk-AQOUOWTA.js} +1 -1
  18. package/browser/{chunk-DI7GWKOM.js → chunk-AUP3FUMR.js} +1 -1
  19. package/browser/{chunk-G4XJ2JEK.js → chunk-AXO4FK22.js} +1 -1
  20. package/browser/{chunk-B5JKALPE.js → chunk-BFEB3G45.js} +1 -1
  21. package/browser/{chunk-BBEXAIFV.js → chunk-C3I5DEBQ.js} +1 -1
  22. package/browser/{chunk-EVO3VNAM.js → chunk-CSRNHO4F.js} +1 -1
  23. package/browser/{chunk-IPO5WHEB.js → chunk-DA5GQA6A.js} +1 -1
  24. package/browser/{chunk-DU5PMK3P.js → chunk-DAKV7IQO.js} +1 -1
  25. package/browser/{chunk-Y3AUHJUM.js → chunk-DFAKFBLD.js} +1 -1
  26. package/browser/{chunk-MARB3TY7.js → chunk-DK5H2LCB.js} +1 -1
  27. package/browser/{chunk-ON6CLASB.js → chunk-DKYSN4UD.js} +1 -1
  28. package/browser/{chunk-5O3ISRPQ.js → chunk-DUPQHYSY.js} +1 -1
  29. package/browser/{chunk-UBEUGILQ.js → chunk-DWJX7XAG.js} +1 -1
  30. package/browser/{chunk-6JAF5RJ6.js → chunk-E3RS7PNI.js} +1 -1
  31. package/browser/{chunk-HKSAQ4M2.js → chunk-EDUJ5R65.js} +1 -1
  32. package/browser/{chunk-KC6TKKFJ.js → chunk-EZSGJVO4.js} +1 -1
  33. package/browser/{chunk-AKDTDTPW.js → chunk-FCWS5EKI.js} +1 -1
  34. package/browser/{chunk-JKC4ZMXV.js → chunk-FDIZVYYJ.js} +1 -1
  35. package/browser/{chunk-Z65PSS2C.js → chunk-GPCHOGK5.js} +1 -1
  36. package/browser/{chunk-L3XA3HBF.js → chunk-GR7UCKNN.js} +1 -1
  37. package/browser/{chunk-6WFNZOKR.js → chunk-IAPIGFGI.js} +1 -1
  38. package/browser/{chunk-QGRO3YRJ.js → chunk-ICFLABAU.js} +1 -1
  39. package/browser/{chunk-6AFXHDIK.js → chunk-J7KFYCJU.js} +1 -1
  40. package/browser/{chunk-Q7FVOX6K.js → chunk-JEYYNDQA.js} +1 -1
  41. package/browser/{chunk-PIO3QSF3.js → chunk-JQUQGSMG.js} +1 -1
  42. package/browser/{chunk-KA5UQNW5.js → chunk-KAZ53HAJ.js} +1 -1
  43. package/browser/{chunk-PS4QURQQ.js → chunk-KKDMANF5.js} +1 -1
  44. package/browser/{chunk-P423UVHY.js → chunk-KLKAXTFV.js} +1 -1
  45. package/browser/{chunk-PVB7GBSK.js → chunk-KWP3PCMW.js} +1 -1
  46. package/browser/{chunk-WONVJLUQ.js → chunk-L2UMOI2Q.js} +1 -1
  47. package/browser/{chunk-F44EJ47F.js → chunk-LDXLDHFS.js} +1 -1
  48. package/browser/{chunk-SMGKMTZM.js → chunk-LE3KXXHF.js} +1 -1
  49. package/browser/{chunk-5KIJ6ZVL.js → chunk-LOWI6TKC.js} +1 -1
  50. package/browser/{chunk-Z7YC4KTU.js → chunk-LQIHSAMM.js} +1 -1
  51. package/browser/{chunk-67NJBLG2.js → chunk-LT7KFYJB.js} +1 -1
  52. package/browser/{chunk-Z3POHU6P.js → chunk-MA6ZIQV4.js} +2 -2
  53. package/browser/{chunk-4NJMYXX4.js → chunk-MGHMDX7A.js} +2 -2
  54. package/browser/{chunk-I34LO4DC.js → chunk-MO6QDFDE.js} +1 -1
  55. package/browser/{chunk-W2E4NMUY.js → chunk-MQZ5EPHS.js} +1 -1
  56. package/browser/{chunk-MH2FTMDJ.js → chunk-MVDS62IJ.js} +1 -1
  57. package/browser/{chunk-SX5WJCES.js → chunk-O2FNGCJF.js} +1 -1
  58. package/browser/{chunk-FX6KWPGY.js → chunk-O4LXGXGA.js} +1 -1
  59. package/browser/{chunk-SEHJNQXN.js → chunk-OEAHJ7QY.js} +1 -1
  60. package/browser/{chunk-PX2UKSKC.js → chunk-ONSWXZOK.js} +1 -1
  61. package/browser/{chunk-GW5YES7Q.js → chunk-OQM5WY26.js} +1 -1
  62. package/browser/{chunk-OT5JCDNW.js → chunk-PCSITWKV.js} +1 -1
  63. package/browser/{chunk-DIZQ3IYW.js → chunk-PDK7CBID.js} +1 -1
  64. package/browser/{chunk-TNZBTARX.js → chunk-PWYUTSDQ.js} +1 -1
  65. package/browser/{chunk-CAO2GTOG.js → chunk-PYNJ2WQR.js} +1 -1
  66. package/browser/{chunk-PTTVOMAJ.js → chunk-QMELX3OL.js} +1 -1
  67. package/browser/{chunk-NBR7TUHP.js → chunk-R3DMFCKU.js} +2 -2
  68. package/browser/{chunk-IWNQJE4F.js → chunk-R5DMAZF4.js} +1 -1
  69. package/browser/{chunk-DUDJZAAO.js → chunk-R6KRUML2.js} +1 -1
  70. package/browser/{chunk-JMQTA3D2.js → chunk-RBML37FK.js} +1 -1
  71. package/browser/{chunk-N4UH64HL.js → chunk-RETZJC3C.js} +2 -2
  72. package/browser/{chunk-VJDEKNQQ.js → chunk-RQETSY5A.js} +1 -1
  73. package/browser/{chunk-JPC7NZ4Y.js → chunk-SLQFRI4O.js} +1 -1
  74. package/browser/{chunk-HF2NQ4W3.js → chunk-TAIS2F2W.js} +1 -1
  75. package/browser/{chunk-R7CVOFVR.js → chunk-TALHPXGT.js} +1 -1
  76. package/browser/{chunk-WQDU4NSB.js → chunk-TBK34IEB.js} +1 -1
  77. package/browser/{chunk-RGBM5FRL.js → chunk-TGTEVIZZ.js} +1 -1
  78. package/browser/{chunk-4VU6ZIZK.js → chunk-TP74UTJ5.js} +1 -1
  79. package/browser/{chunk-HMHZ5BDZ.js → chunk-TVBPNBFD.js} +1 -1
  80. package/browser/{chunk-JJOUD4SD.js → chunk-UD6ZWXRV.js} +1 -1
  81. package/browser/{chunk-HGQ4GVFH.js → chunk-UHOSGGLJ.js} +1 -1
  82. package/browser/{chunk-OMFZXXGP.js → chunk-UIUE66OM.js} +1 -1
  83. package/browser/{chunk-SOGFUBUN.js → chunk-UURK7YT6.js} +1 -1
  84. package/browser/{chunk-UJOEQFEY.js → chunk-V3T3APQM.js} +1 -1
  85. package/browser/{chunk-YPPJTBH7.js → chunk-VOW6MUEK.js} +2 -2
  86. package/browser/{chunk-2VVXEJG5.js → chunk-W7BZQMYT.js} +1 -1
  87. package/browser/{chunk-WYV2VGE6.js → chunk-YATTGPHA.js} +1 -1
  88. package/browser/{chunk-56JJXOJF.js → chunk-YCIIYB54.js} +1 -1
  89. package/browser/{chunk-CMNMTQF6.js → chunk-YP4HJ3H7.js} +1 -1
  90. package/browser/{chunk-RGXXTPXX.js → chunk-Z2MS32F3.js} +1 -1
  91. package/browser/{chunk-LAP45GC2.js → chunk-ZFZUZYDM.js} +1 -1
  92. package/browser/{chunk-HENCOWSS.js → chunk-ZO3JMO2N.js} +2 -2
  93. package/browser/{chunk-XDA3HAB3.js → chunk-ZUNMOBFN.js} +1 -1
  94. package/browser/{chunk-56HCUKXV.js → chunk-ZWDGM2KH.js} +1 -1
  95. package/browser/{chunk-6VFC6FPO.js → chunk-ZY5GJE2A.js} +1 -1
  96. package/browser/index.html +2 -2
  97. package/browser/{main-W3R4WJHA.js → main-YTEYYRH5.js} +1 -1
  98. package/browser/ngsw-config.json +1 -1
  99. package/browser/ngsw.json +495 -495
  100. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as Ce}from"./chunk-RHK6WMN4.js";import{a as ge}from"./chunk-QQUWUBWQ.js";import{b as ae}from"./chunk-P2NWTCME.js";import"./chunk-Q7FVOX6K.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as fe}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import"./chunk-BYCXUF5T.js";import{a as ue,b as _e}from"./chunk-WUR7UGG2.js";import{a as ce}from"./chunk-WHKDTNK2.js";import"./chunk-WM2CE23W.js";import"./chunk-5VC2XYC5.js";import{a as te}from"./chunk-MH2FTMDJ.js";import"./chunk-ROZU3QVN.js";import"./chunk-DUDJZAAO.js";import"./chunk-ONECCHQ5.js";import"./chunk-GKGUNK27.js";import"./chunk-G56UPMKR.js";import"./chunk-QSFZAHQ2.js";import"./chunk-TGQEO6S3.js";import"./chunk-ONKLHHM3.js";import"./chunk-X2OQT5MH.js";import"./chunk-XTOFMSDQ.js";import"./chunk-ZM456L6A.js";import"./chunk-F5JDPCBG.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as re}from"./chunk-XISCWQFV.js";import{f as se,g as de}from"./chunk-JMQTA3D2.js";import"./chunk-RGXXTPXX.js";import{a as oe}from"./chunk-4VU6ZIZK.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import{c as me,d as pe}from"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import{a as $,b as ee}from"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import{O as le}from"./chunk-UI32X6QC.js";import"./chunk-OVCNCVGF.js";import"./chunk-PWMMCY25.js";import"./chunk-OKQYRKDJ.js";import{d as ne}from"./chunk-BUIP3UCE.js";import"./chunk-SIAVPMSP.js";import"./chunk-N5VS2V7L.js";import{c as ie}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-7KKUTTZ3.js";import"./chunk-ZS4XLRDB.js";import"./chunk-TYEI4SD2.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as Z,h as X,p as Y}from"./chunk-AJDQZ346.js";import"./chunk-KA5UQNW5.js";import"./chunk-WONVJLUQ.js";import"./chunk-YY6WVNU4.js";import{b as J}from"./chunk-KLHHVIRS.js";import{a as D}from"./chunk-PPTZHIIZ.js";import"./chunk-QGRO3YRJ.js";import{q as Q}from"./chunk-QGYXJUX3.js";import{$a as u,Ba as h,Bb as L,Cb as R,Db as c,Eb as n,Fb as o,Fc as v,Gb as b,Gc as M,Hc as A,Lc as j,Ld as G,Pb as w,Pd as K,Sb as y,Sd as U,Ua as p,Ub as l,Ud as z,db as W,hc as m,ib as V,ic as x,jb as O,jc as B,mc as _,nc as f,oa as F,oc as g,ra as s,sa as d,sd as H,ud as q,wb as I,xc as N,yb as S,yc as k,zb as E}from"./chunk-7D344CRC.js";import{a as P,b as T}from"./chunk-NF7PG5F2.js";var xe=()=>["/menu/Orders/Orders/Customer_Invoice/Info"],he=r=>({ID:r});function Ie(r,C){if(r&1){let e=w();n(0,"a",14),y("click",function(){s(e);let t=l(2);return d(t.openExportModal())}),b(1,"i",15),m(2," Export"),o()}}function Se(r,C){if(r&1){let e=w();n(0,"div",16)(1,"h6"),m(2,"Outlet"),o(),n(3,"outlet-selector",17),g("ngModelChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.OutletIds,t)||(a.pageData().Filter.OutletIds=t),d(t)}),o(),n(4,"h6"),m(5,"From - To"),o(),n(6,"datepicker",18),g("dateChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.From,t)||(a.pageData().Filter.From=t),d(t)}),y("dateChange",function(){s(e);let t=l(2);return d(t.changeDatepickerValidation())}),o(),n(7,"div",19)(8,"datepicker",20),g("dateChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.To,t)||(a.pageData().Filter.To=t),d(t)}),o()(),n(9,"h6"),m(10,"Sales Order Tag"),o(),n(11,"ng-select",21),g("ngModelChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.SalesOrderTagID,t)||(a.pageData().Filter.SalesOrderTagID=t),d(t)}),o(),n(12,"h6"),m(13,"Customer"),o(),n(14,"autocompleteV2",22),g("ngModelChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.CustomerID,t)||(a.pageData().Filter.CustomerID=t),d(t)}),o()()}if(r&2){let e=l(2);p(3),c("accessType",2),_("ngModel",e.pageData().Filter.OutletIds),c("multiple",!0),p(3),c("hidelClearBtn",e.hideDateClearButton())("isFloatingLabel",!1),_("date",e.pageData().Filter.From),p(2),c("hidelClearBtn",e.hideDateClearButton())("isFloatingLabel",!1),_("date",e.pageData().Filter.To),c("minDateValidation",e.toMinDate()),p(3),_("ngModel",e.pageData().Filter.SalesOrderTagID),c("items",e.pageData().Options.SalesOrderTagOptions),p(3),_("ngModel",e.pageData().Filter.CustomerID)}}function we(r,C){r&1&&(n(0,"tr")(1,"td",23),b(2,"app-empty-state"),o()())}function ve(r,C){if(r&1&&(n(0,"tr")(1,"td"),m(2),o(),n(3,"td")(4,"a",24),m(5),o()(),n(6,"td"),m(7),v(8,"date"),o(),n(9,"td",25),m(10),v(11,"number"),o(),n(12,"td",26),m(13),v(14,"number"),o()()),r&2){let e=C.$implicit;p(2),x(e.OutletName),p(2),c("routerLink",N(14,xe))("queryParams",k(15,he,e.InvoiceID)),p(),x(e.InvoiceNumber),p(2),x(A(8,7,e.WriteOffDate,"dd MMM yyyy")),p(3),B(" ",M(11,10,e.WriteOffItemAmount)," "),p(3),x(M(14,12,e.InvoiceAmount))}}function Pe(r,C){if(r&1&&L(0,ve,15,17,"tr",null,E),r&2){let e=l(2);R(e.data().Data)}}function Te(r,C){if(r&1){let e=w();n(0,"mainpanel-cmp",2),y("onSubmit",function(){s(e);let t=l();return d(t.searchFromPageOne())}),g("filterChange",function(t){s(e);let a=l();return f(a.pageData().Filter,t)||(a.pageData().Filter=t),d(t)}),n(1,"actions"),I(2,Ie,3,0,"a",3),o(),n(3,"filters"),O(4,Se,15,13,"ng-template",null,0,j),o(),n(6,"content")(7,"div",4)(8,"div",5)(9,"table",6)(10,"thead",7)(11,"tr")(12,"th",8),m(13,"Outlet"),o(),n(14,"th",9),m(15,"Invoice"),o(),n(16,"th",10),m(17," Write Off Date "),o(),n(18,"th",11),m(19," Amount "),o(),n(20,"th",12),m(21," Invoice "),o()()(),n(22,"tbody"),I(23,we,3,0,"tr")(24,Pe,2,0),o()()(),n(25,"POS-complex-pagination",13),y("jumpToPage",function(){s(e);let t=l();return d(t.getListData())})("previousPage",function(){s(e);let t=l();return d(t.getListData())})("nextPage",function(){s(e);let t=l();return d(t.getListData())}),g("reloadRowCountChange",function(t){s(e);let a=l();return f(a.reloadRowCount,t)||(a.reloadRowCount=t),d(t)}),o()()()()}if(r&2){let e,i=l();c("pageData",i.menuData())("hideSearchBox",!0)("isFilterOnDropdown",!1),_("filter",i.pageData().Filter),p(2),S(i.roleService.global.Export?2:-1),p(21),S(i.data().Data.length?24:23),p(2),c("total",(e=i.data().Data)==null?null:e.length)("pageData",i.pageData()),_("reloadRowCount",i.reloadRowCount)}}var De=class r extends te{constructor(e,i,t,a,ye,be,Me){super(e,i,"Payment/writeoff-invoices","PaymentLoader/writeoff-invoices-loader",void 0,a,void 0,"post","get");this.csvConverter=t;this.dataDaysRangeService=ye;this.roleService=be;this.matDialog=Me}csvConverter;dataDaysRangeService;roleService;matDialog;toMinDate=h(null);fromMinDate=h(new Date);hideDateClearButton=h(!1);title=F(G);preInitList(){let e=this.route?.snapshot?.queryParams;D.IsNotEmpty(e?.LabelID)&&(this.pageData().Filter=T(P({},this.pageData().Filter),{LabelID:e.LabelID,OutletIds:D.IsNotEmpty(e.OutletIds)?e.OutletIds.split(",").filter(i=>D.IsNotEmpty(i)):[],SalesOrderTagID:D.IsNotEmpty(e.SalesOrderTagID)?parseInt(e.SalesOrderTagID):null,CustomerID:D.IsNotEmpty(e.CustomerID)?e.CustomerID:null,From:this.convertDateParams(e.From),To:this.convertDateParams(e.To)}))}postInit(e){super.postInit(e),this.menuData.update(a=>T(P({},a),{H:"Write Off Invoices",SH:e.PageSubTitle}));let t=(this.title?.getTitle()?.split(" | "))[0];this.title.setTitle(`${t} | Write Off Invoices`)}getListData(e){D.IsNotEmpty(this.pageData()?.Filter?.LabelID)&&super.getListData(e)}changeDatepickerValidation(e=!1){this.hideDateClearButton.update(()=>this.dataDaysRangeService.isHideClearDateBtn);let i=this.pageData().Filter.From,t=this.dataDaysRangeService.getDateValidation(i);this.toMinDate.update(()=>t.toMinDate),this.fromMinDate.update(()=>t.fromMinDate)}openExportModal(){this.matDialog.open(ae,{data:{title:"Write Off Invoices",exportTypes:[{ID:"PaymentExport/writeoff-invoices",Value:"Default",FileName:"Write Off Invoices"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!0}})}convertDateParams(e){if(e){let i=parseInt(e.slice(4,8)),t=parseInt(e.slice(2,4))-1,a=parseInt(e.slice(0,2));return new Date(i,t,a)}else return null}static \u0275fac=function(i){return new(i||r)(u(oe),u(Q),u(re),u(K),u(Ce),u(J),u(ie))};static \u0275cmp=W({type:r,selectors:[["POS-payment-writeoff-item-detail"]],features:[V],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col",2,"width","200px"],["scope","col"],["scope","col","matTooltip","Date the invoice was written off","matTooltipPosition","above",2,"width","160px"],["scope","col",1,"text-end",2,"width","160px"],["scope","col","matTooltip","Invoice amount with tax","matTooltipPosition","above",1,"text-end",2,"width","160px"],["api","Payment/writeoff-invoices-count",3,"jumpToPage","previousPage","nextPage","reloadRowCountChange","total","pageData","reloadRowCount"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose an Outlet",1,"w-100",3,"ngModelChange","accessType","ngModel","multiple"],["placeholder","From","appearance","outline","name","From",3,"dateChange","hidelClearBtn","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","hidelClearBtn","isFloatingLabel","date","minDateValidation"],["appendTo","body","bindLabel","Value","bindValue","Key","placeholder","Choose Sales Order Tag",3,"ngModelChange","ngModel","items"],["requestUrl","/API/AC/GetCustomerSuggestion","notFoundMessageFor","customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["colspan","5",1,""],["target","_blank",3,"routerLink","queryParams"],[1,"text-end","text-danger"],[1,"text-end"]],template:function(i,t){i&1&&I(0,Te,26,9,"mainpanel-cmp",1),i&2&&S(t.data()?0:-1)},dependencies:[fe,Z,X,Y,de,se,ne,ce,le,pe,me,ge,_e,ue,ee,$,z,U,H,q],encapsulation:2,changeDetection:0})};export{De as PaymentWriteoffItemDetailComponent};
1
+ import{a as Ce}from"./chunk-RHK6WMN4.js";import{a as ge}from"./chunk-QQUWUBWQ.js";import{b as ae}from"./chunk-P2NWTCME.js";import"./chunk-JEYYNDQA.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as fe}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import"./chunk-BYCXUF5T.js";import{a as ue,b as _e}from"./chunk-WUR7UGG2.js";import{a as ce}from"./chunk-WHKDTNK2.js";import"./chunk-WM2CE23W.js";import"./chunk-5VC2XYC5.js";import{a as te}from"./chunk-MVDS62IJ.js";import"./chunk-ROZU3QVN.js";import"./chunk-R6KRUML2.js";import"./chunk-ONECCHQ5.js";import"./chunk-GKGUNK27.js";import"./chunk-G56UPMKR.js";import"./chunk-QSFZAHQ2.js";import"./chunk-TGQEO6S3.js";import"./chunk-ONKLHHM3.js";import"./chunk-X2OQT5MH.js";import"./chunk-XTOFMSDQ.js";import"./chunk-ZM456L6A.js";import"./chunk-F5JDPCBG.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as re}from"./chunk-XISCWQFV.js";import{f as se,g as de}from"./chunk-RBML37FK.js";import"./chunk-Z2MS32F3.js";import{a as oe}from"./chunk-TP74UTJ5.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import{c as me,d as pe}from"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import{a as $,b as ee}from"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import{O as le}from"./chunk-UI32X6QC.js";import"./chunk-OVCNCVGF.js";import"./chunk-PWMMCY25.js";import"./chunk-OKQYRKDJ.js";import{d as ne}from"./chunk-BUIP3UCE.js";import"./chunk-SIAVPMSP.js";import"./chunk-N5VS2V7L.js";import{c as ie}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-7KKUTTZ3.js";import"./chunk-ZS4XLRDB.js";import"./chunk-TYEI4SD2.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as Z,h as X,p as Y}from"./chunk-AJDQZ346.js";import"./chunk-KAZ53HAJ.js";import"./chunk-L2UMOI2Q.js";import"./chunk-YY6WVNU4.js";import{b as J}from"./chunk-KLHHVIRS.js";import{a as D}from"./chunk-PPTZHIIZ.js";import"./chunk-ICFLABAU.js";import{q as Q}from"./chunk-QGYXJUX3.js";import{$a as u,Ba as h,Bb as L,Cb as R,Db as c,Eb as n,Fb as o,Fc as v,Gb as b,Gc as M,Hc as A,Lc as j,Ld as G,Pb as w,Pd as K,Sb as y,Sd as U,Ua as p,Ub as l,Ud as z,db as W,hc as m,ib as V,ic as x,jb as O,jc as B,mc as _,nc as f,oa as F,oc as g,ra as s,sa as d,sd as H,ud as q,wb as I,xc as N,yb as S,yc as k,zb as E}from"./chunk-7D344CRC.js";import{a as P,b as T}from"./chunk-NF7PG5F2.js";var xe=()=>["/menu/Orders/Orders/Customer_Invoice/Info"],he=r=>({ID:r});function Ie(r,C){if(r&1){let e=w();n(0,"a",14),y("click",function(){s(e);let t=l(2);return d(t.openExportModal())}),b(1,"i",15),m(2," Export"),o()}}function Se(r,C){if(r&1){let e=w();n(0,"div",16)(1,"h6"),m(2,"Outlet"),o(),n(3,"outlet-selector",17),g("ngModelChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.OutletIds,t)||(a.pageData().Filter.OutletIds=t),d(t)}),o(),n(4,"h6"),m(5,"From - To"),o(),n(6,"datepicker",18),g("dateChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.From,t)||(a.pageData().Filter.From=t),d(t)}),y("dateChange",function(){s(e);let t=l(2);return d(t.changeDatepickerValidation())}),o(),n(7,"div",19)(8,"datepicker",20),g("dateChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.To,t)||(a.pageData().Filter.To=t),d(t)}),o()(),n(9,"h6"),m(10,"Sales Order Tag"),o(),n(11,"ng-select",21),g("ngModelChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.SalesOrderTagID,t)||(a.pageData().Filter.SalesOrderTagID=t),d(t)}),o(),n(12,"h6"),m(13,"Customer"),o(),n(14,"autocompleteV2",22),g("ngModelChange",function(t){s(e);let a=l(2);return f(a.pageData().Filter.CustomerID,t)||(a.pageData().Filter.CustomerID=t),d(t)}),o()()}if(r&2){let e=l(2);p(3),c("accessType",2),_("ngModel",e.pageData().Filter.OutletIds),c("multiple",!0),p(3),c("hidelClearBtn",e.hideDateClearButton())("isFloatingLabel",!1),_("date",e.pageData().Filter.From),p(2),c("hidelClearBtn",e.hideDateClearButton())("isFloatingLabel",!1),_("date",e.pageData().Filter.To),c("minDateValidation",e.toMinDate()),p(3),_("ngModel",e.pageData().Filter.SalesOrderTagID),c("items",e.pageData().Options.SalesOrderTagOptions),p(3),_("ngModel",e.pageData().Filter.CustomerID)}}function we(r,C){r&1&&(n(0,"tr")(1,"td",23),b(2,"app-empty-state"),o()())}function ve(r,C){if(r&1&&(n(0,"tr")(1,"td"),m(2),o(),n(3,"td")(4,"a",24),m(5),o()(),n(6,"td"),m(7),v(8,"date"),o(),n(9,"td",25),m(10),v(11,"number"),o(),n(12,"td",26),m(13),v(14,"number"),o()()),r&2){let e=C.$implicit;p(2),x(e.OutletName),p(2),c("routerLink",N(14,xe))("queryParams",k(15,he,e.InvoiceID)),p(),x(e.InvoiceNumber),p(2),x(A(8,7,e.WriteOffDate,"dd MMM yyyy")),p(3),B(" ",M(11,10,e.WriteOffItemAmount)," "),p(3),x(M(14,12,e.InvoiceAmount))}}function Pe(r,C){if(r&1&&L(0,ve,15,17,"tr",null,E),r&2){let e=l(2);R(e.data().Data)}}function Te(r,C){if(r&1){let e=w();n(0,"mainpanel-cmp",2),y("onSubmit",function(){s(e);let t=l();return d(t.searchFromPageOne())}),g("filterChange",function(t){s(e);let a=l();return f(a.pageData().Filter,t)||(a.pageData().Filter=t),d(t)}),n(1,"actions"),I(2,Ie,3,0,"a",3),o(),n(3,"filters"),O(4,Se,15,13,"ng-template",null,0,j),o(),n(6,"content")(7,"div",4)(8,"div",5)(9,"table",6)(10,"thead",7)(11,"tr")(12,"th",8),m(13,"Outlet"),o(),n(14,"th",9),m(15,"Invoice"),o(),n(16,"th",10),m(17," Write Off Date "),o(),n(18,"th",11),m(19," Amount "),o(),n(20,"th",12),m(21," Invoice "),o()()(),n(22,"tbody"),I(23,we,3,0,"tr")(24,Pe,2,0),o()()(),n(25,"POS-complex-pagination",13),y("jumpToPage",function(){s(e);let t=l();return d(t.getListData())})("previousPage",function(){s(e);let t=l();return d(t.getListData())})("nextPage",function(){s(e);let t=l();return d(t.getListData())}),g("reloadRowCountChange",function(t){s(e);let a=l();return f(a.reloadRowCount,t)||(a.reloadRowCount=t),d(t)}),o()()()()}if(r&2){let e,i=l();c("pageData",i.menuData())("hideSearchBox",!0)("isFilterOnDropdown",!1),_("filter",i.pageData().Filter),p(2),S(i.roleService.global.Export?2:-1),p(21),S(i.data().Data.length?24:23),p(2),c("total",(e=i.data().Data)==null?null:e.length)("pageData",i.pageData()),_("reloadRowCount",i.reloadRowCount)}}var De=class r extends te{constructor(e,i,t,a,ye,be,Me){super(e,i,"Payment/writeoff-invoices","PaymentLoader/writeoff-invoices-loader",void 0,a,void 0,"post","get");this.csvConverter=t;this.dataDaysRangeService=ye;this.roleService=be;this.matDialog=Me}csvConverter;dataDaysRangeService;roleService;matDialog;toMinDate=h(null);fromMinDate=h(new Date);hideDateClearButton=h(!1);title=F(G);preInitList(){let e=this.route?.snapshot?.queryParams;D.IsNotEmpty(e?.LabelID)&&(this.pageData().Filter=T(P({},this.pageData().Filter),{LabelID:e.LabelID,OutletIds:D.IsNotEmpty(e.OutletIds)?e.OutletIds.split(",").filter(i=>D.IsNotEmpty(i)):[],SalesOrderTagID:D.IsNotEmpty(e.SalesOrderTagID)?parseInt(e.SalesOrderTagID):null,CustomerID:D.IsNotEmpty(e.CustomerID)?e.CustomerID:null,From:this.convertDateParams(e.From),To:this.convertDateParams(e.To)}))}postInit(e){super.postInit(e),this.menuData.update(a=>T(P({},a),{H:"Write Off Invoices",SH:e.PageSubTitle}));let t=(this.title?.getTitle()?.split(" | "))[0];this.title.setTitle(`${t} | Write Off Invoices`)}getListData(e){D.IsNotEmpty(this.pageData()?.Filter?.LabelID)&&super.getListData(e)}changeDatepickerValidation(e=!1){this.hideDateClearButton.update(()=>this.dataDaysRangeService.isHideClearDateBtn);let i=this.pageData().Filter.From,t=this.dataDaysRangeService.getDateValidation(i);this.toMinDate.update(()=>t.toMinDate),this.fromMinDate.update(()=>t.fromMinDate)}openExportModal(){this.matDialog.open(ae,{data:{title:"Write Off Invoices",exportTypes:[{ID:"PaymentExport/writeoff-invoices",Value:"Default",FileName:"Write Off Invoices"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!0}})}convertDateParams(e){if(e){let i=parseInt(e.slice(4,8)),t=parseInt(e.slice(2,4))-1,a=parseInt(e.slice(0,2));return new Date(i,t,a)}else return null}static \u0275fac=function(i){return new(i||r)(u(oe),u(Q),u(re),u(K),u(Ce),u(J),u(ie))};static \u0275cmp=W({type:r,selectors:[["POS-payment-writeoff-item-detail"]],features:[V],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col",2,"width","200px"],["scope","col"],["scope","col","matTooltip","Date the invoice was written off","matTooltipPosition","above",2,"width","160px"],["scope","col",1,"text-end",2,"width","160px"],["scope","col","matTooltip","Invoice amount with tax","matTooltipPosition","above",1,"text-end",2,"width","160px"],["api","Payment/writeoff-invoices-count",3,"jumpToPage","previousPage","nextPage","reloadRowCountChange","total","pageData","reloadRowCount"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose an Outlet",1,"w-100",3,"ngModelChange","accessType","ngModel","multiple"],["placeholder","From","appearance","outline","name","From",3,"dateChange","hidelClearBtn","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","hidelClearBtn","isFloatingLabel","date","minDateValidation"],["appendTo","body","bindLabel","Value","bindValue","Key","placeholder","Choose Sales Order Tag",3,"ngModelChange","ngModel","items"],["requestUrl","/API/AC/GetCustomerSuggestion","notFoundMessageFor","customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["colspan","5",1,""],["target","_blank",3,"routerLink","queryParams"],[1,"text-end","text-danger"],[1,"text-end"]],template:function(i,t){i&1&&I(0,Te,26,9,"mainpanel-cmp",1),i&2&&S(t.data()?0:-1)},dependencies:[fe,Z,X,Y,de,se,ne,ce,le,pe,me,ge,_e,ue,ee,$,z,U,H,q],encapsulation:2,changeDetection:0})};export{De as PaymentWriteoffItemDetailComponent};
@@ -1 +1 @@
1
- import{b as Z}from"./chunk-NOXFZLVJ.js";import"./chunk-BJCHUBGO.js";import{b as ne}from"./chunk-P2NWTCME.js";import"./chunk-Q7FVOX6K.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as se}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import{a as de,b as ce}from"./chunk-WUR7UGG2.js";import"./chunk-5VC2XYC5.js";import{a as $}from"./chunk-MH2FTMDJ.js";import"./chunk-DUDJZAAO.js";import"./chunk-ONECCHQ5.js";import"./chunk-G56UPMKR.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as oe}from"./chunk-XISCWQFV.js";import{f as pe,g as me}from"./chunk-JMQTA3D2.js";import"./chunk-RGXXTPXX.js";import{a as ae}from"./chunk-4VU6ZIZK.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import{G as re,O as le}from"./chunk-UI32X6QC.js";import{d as te,e as ie}from"./chunk-BUIP3UCE.js";import"./chunk-N5VS2V7L.js";import{c as ee}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as X,h as z,p as Q}from"./chunk-AJDQZ346.js";import"./chunk-KA5UQNW5.js";import"./chunk-WONVJLUQ.js";import"./chunk-YY6WVNU4.js";import{b as K}from"./chunk-KLHHVIRS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-QGRO3YRJ.js";import{n as U,q as Y}from"./chunk-QGYXJUX3.js";import{$a as S,$c as N,Bb as W,Cb as k,Db as s,Eb as n,Fb as i,Fc as T,Gb as b,Hc as v,Kb as h,Lb as w,Lc as j,Ld as H,Pb as D,Sb as I,Sd as J,Ua as p,Ub as m,Ud as q,db as P,hc as o,ib as V,ic as x,jb as L,jc as O,mc as g,nc as _,oa as F,oc as C,ra as d,sa as c,wb as y,xc as B,xd as G,yb as f,yc as R,zb as A}from"./chunk-7D344CRC.js";import{a as E,b as M}from"./chunk-NF7PG5F2.js";var Ce=()=>["/menu/Contacts/Contact/Customers/Info"],ue=r=>({ID:r});function Se(r,u){if(r&1){let e=D();n(0,"button",9),I("click",function(){d(e);let t=m(2);return c(t.openExportModal())}),b(1,"i",10),o(2," Export "),i()}}function xe(r,u){if(r&1){let e=D();n(0,"div",11)(1,"div",12)(2,"h6"),o(3,"Status"),i(),n(4,"ng-select",13),C("ngModelChange",function(t){d(e);let a=m(2);return _(a.contactState,t)||(a.contactState=t),c(t)}),i()(),n(5,"div",12)(6,"h6"),o(7,"Outlet Sign Up"),i(),n(8,"ng-select",14),C("ngModelChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.CreatorEntityID,t)||(a.pageData().Filter.CreatorEntityID=t),c(t)}),i()(),n(9,"div",12)(10,"h6"),o(11,"Join Date From"),i(),n(12,"datepicker",15),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.From,t)||(a.pageData().Filter.From=t),c(t)}),i()(),n(13,"div",12)(14,"h6"),o(15,"Join Date To"),i(),n(16,"datepicker",16),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.To,t)||(a.pageData().Filter.To=t),c(t)}),i()(),n(17,"div",12)(18,"h6"),o(19,"Sign In Date From"),i(),n(20,"datepicker",15),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.SignFrom,t)||(a.pageData().Filter.SignFrom=t),c(t)}),i()(),n(21,"div",12)(22,"h6"),o(23,"Sign In Date To"),i(),n(24,"datepicker",16),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.SignTo,t)||(a.pageData().Filter.SignTo=t),c(t)}),i()(),n(25,"div",12)(26,"h6"),o(27,"Group"),i(),n(28,"ng-select",17),C("ngModelChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.GroupID,t)||(a.pageData().Filter.GroupID=t),c(t)}),i()()()}if(r&2){let e=m(2);p(4),g("ngModel",e.contactState),s("items",e.pageData().Options.ContactStates)("clearable",!1),p(4),g("ngModel",e.pageData().Filter.CreatorEntityID),s("items",e.pageData().Options.Entities),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.From),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.To),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.SignFrom),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.SignTo),p(4),g("ngModel",e.pageData().Filter.GroupID),s("items",e.pageData().Options.Groups)}}function ye(r,u){if(r&1&&(n(0,"tr")(1,"th")(2,"a",27),o(3),i()(),n(4,"td"),o(5),i(),n(6,"td"),o(7),i(),n(8,"td"),o(9),i(),n(10,"td"),o(11),T(12,"IsMinDate"),i(),n(13,"td"),o(14),T(15,"IsMinDate"),i()()),r&2){let e=u.$implicit;p(2),s("routerLink",B(14,Ce))("queryParams",R(15,ue,e.ID)),p(),x(e.Name),p(2),x(e.Code),p(2),x(e.Mobile),p(2),x(e.Email),p(2),x(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),O(" ",v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function fe(r,u){if(r&1){let e=D();n(0,"div",26)(1,"POS-complex-pagination",28),I("jumpToPage",function(){d(e);let t=m(3);return c(t.getListData())})("previousPage",function(){d(e);let t=m(3);return c(t.getListData())})("nextPage",function(){d(e);let t=m(3);return c(t.getListData())}),C("reloadRowCountChange",function(t){d(e);let a=m(3);return _(a.reloadRowCount,t)||(a.reloadRowCount=t),c(t)}),i()()}if(r&2){let e=m(3);p(),s("total",e.data().Data.length)("pageData",e.pageData()),g("reloadRowCount",e.reloadRowCount)}}function De(r,u){if(r&1&&(h(0,8),n(1,"div",18)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr",22)(6,"th"),o(7,"Name"),i(),n(8,"th",23),o(9,"Code"),i(),n(10,"th",23),o(11,"Mobile"),i(),n(12,"th",24),o(13,"Email"),i(),n(14,"th",25),o(15,"Join Date"),i(),n(16,"th",23),o(17,"Last Sign In"),i()()(),n(18,"tbody"),W(19,ye,16,17,"tr",null,A),i()()(),y(21,fe,2,3,"div",26),i(),w()),r&2){let e=m(2);p(19),k(e.data().Data),p(2),f(e.pageData().Filter?21:-1)}}function he(r,u){if(r&1){let e=D();n(0,"mainpanel-cmp",2),C("textChange",function(t){d(e);let a=m();return _(a.pageData().Filter.Text,t)||(a.pageData().Filter.Text=t),c(t)}),I("onSubmit",function(){d(e);let t=m();return c(t.searchFromPageOne())}),C("filterChange",function(t){d(e);let a=m();return _(a.pageData().Filter,t)||(a.pageData().Filter=t),c(t)}),h(1,3),n(2,"a",4),b(3,"i",5),o(4,"Get Your Brand Loyalty App "),i(),y(5,Se,3,0,"button",6),w(),h(6,7),L(7,xe,29,15,"ng-template",null,0,j),w(),y(9,De,22,1,"ng-container",8),i()}if(r&2){let e=m();s("pageData",e.menuData()),g("text",e.pageData().Filter.Text),s("isFilterOnDropdown",!1),g("filter",e.pageData().Filter),p(5),f(e.role.global.Export?5:-1),p(4),f(e.data()&&e.data().Data?9:-1)}}var ge=class r extends ${constructor(e,l,t,a,_e,we){super(e,l,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",_e);this.httpService=l;this.csvConverter=t;this.matDialog=a;this.role=we}httpService;csvConverter;matDialog;role;cdr=F(N);title=F(H);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){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(ne,{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(l){return new(l||r)(S(ae),S(Y),S(oe),S(ee),S(U),S(K))};static \u0275cmp=P({type:r,selectors:[["pos-app-sign-in"]],features:[V],decls:1,vars:1,consts:[["pageFilterTemplate",""],["filterDialogWidth","600px",3,"pageData","text","isFilterOnDropdown","filter"],["filterDialogWidth","600px",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","grid-filter"],[1,"filter-item"],["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"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],[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","reloadRowCountChange","total","pageData","reloadRowCount"]],template:function(l,t){l&1&&y(0,he,10,6,"mainpanel-cmp",1),l&2&&f(t.pageData().Filter?0:-1)},dependencies:[G,me,pe,se,X,z,Q,q,J,Z,ie,te,ce,de,le,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{ge as AppSignInComponent};
1
+ import{b as Z}from"./chunk-NOXFZLVJ.js";import"./chunk-BJCHUBGO.js";import{b as ne}from"./chunk-P2NWTCME.js";import"./chunk-JEYYNDQA.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as se}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import{a as de,b as ce}from"./chunk-WUR7UGG2.js";import"./chunk-5VC2XYC5.js";import{a as $}from"./chunk-MVDS62IJ.js";import"./chunk-R6KRUML2.js";import"./chunk-ONECCHQ5.js";import"./chunk-G56UPMKR.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as oe}from"./chunk-XISCWQFV.js";import{f as pe,g as me}from"./chunk-RBML37FK.js";import"./chunk-Z2MS32F3.js";import{a as ae}from"./chunk-TP74UTJ5.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import{G as re,O as le}from"./chunk-UI32X6QC.js";import{d as te,e as ie}from"./chunk-BUIP3UCE.js";import"./chunk-N5VS2V7L.js";import{c as ee}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as X,h as z,p as Q}from"./chunk-AJDQZ346.js";import"./chunk-KAZ53HAJ.js";import"./chunk-L2UMOI2Q.js";import"./chunk-YY6WVNU4.js";import{b as K}from"./chunk-KLHHVIRS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-ICFLABAU.js";import{n as U,q as Y}from"./chunk-QGYXJUX3.js";import{$a as S,$c as N,Bb as W,Cb as k,Db as s,Eb as n,Fb as i,Fc as T,Gb as b,Hc as v,Kb as h,Lb as w,Lc as j,Ld as H,Pb as D,Sb as I,Sd as J,Ua as p,Ub as m,Ud as q,db as P,hc as o,ib as V,ic as x,jb as L,jc as O,mc as g,nc as _,oa as F,oc as C,ra as d,sa as c,wb as y,xc as B,xd as G,yb as f,yc as R,zb as A}from"./chunk-7D344CRC.js";import{a as E,b as M}from"./chunk-NF7PG5F2.js";var Ce=()=>["/menu/Contacts/Contact/Customers/Info"],ue=r=>({ID:r});function Se(r,u){if(r&1){let e=D();n(0,"button",9),I("click",function(){d(e);let t=m(2);return c(t.openExportModal())}),b(1,"i",10),o(2," Export "),i()}}function xe(r,u){if(r&1){let e=D();n(0,"div",11)(1,"div",12)(2,"h6"),o(3,"Status"),i(),n(4,"ng-select",13),C("ngModelChange",function(t){d(e);let a=m(2);return _(a.contactState,t)||(a.contactState=t),c(t)}),i()(),n(5,"div",12)(6,"h6"),o(7,"Outlet Sign Up"),i(),n(8,"ng-select",14),C("ngModelChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.CreatorEntityID,t)||(a.pageData().Filter.CreatorEntityID=t),c(t)}),i()(),n(9,"div",12)(10,"h6"),o(11,"Join Date From"),i(),n(12,"datepicker",15),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.From,t)||(a.pageData().Filter.From=t),c(t)}),i()(),n(13,"div",12)(14,"h6"),o(15,"Join Date To"),i(),n(16,"datepicker",16),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.To,t)||(a.pageData().Filter.To=t),c(t)}),i()(),n(17,"div",12)(18,"h6"),o(19,"Sign In Date From"),i(),n(20,"datepicker",15),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.SignFrom,t)||(a.pageData().Filter.SignFrom=t),c(t)}),i()(),n(21,"div",12)(22,"h6"),o(23,"Sign In Date To"),i(),n(24,"datepicker",16),C("dateChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.SignTo,t)||(a.pageData().Filter.SignTo=t),c(t)}),i()(),n(25,"div",12)(26,"h6"),o(27,"Group"),i(),n(28,"ng-select",17),C("ngModelChange",function(t){d(e);let a=m(2);return _(a.pageData().Filter.GroupID,t)||(a.pageData().Filter.GroupID=t),c(t)}),i()()()}if(r&2){let e=m(2);p(4),g("ngModel",e.contactState),s("items",e.pageData().Options.ContactStates)("clearable",!1),p(4),g("ngModel",e.pageData().Filter.CreatorEntityID),s("items",e.pageData().Options.Entities),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.From),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.To),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.SignFrom),p(4),s("isFloatingLabel",!1),g("date",e.pageData().Filter.SignTo),p(4),g("ngModel",e.pageData().Filter.GroupID),s("items",e.pageData().Options.Groups)}}function ye(r,u){if(r&1&&(n(0,"tr")(1,"th")(2,"a",27),o(3),i()(),n(4,"td"),o(5),i(),n(6,"td"),o(7),i(),n(8,"td"),o(9),i(),n(10,"td"),o(11),T(12,"IsMinDate"),i(),n(13,"td"),o(14),T(15,"IsMinDate"),i()()),r&2){let e=u.$implicit;p(2),s("routerLink",B(14,Ce))("queryParams",R(15,ue,e.ID)),p(),x(e.Name),p(2),x(e.Code),p(2),x(e.Mobile),p(2),x(e.Email),p(2),x(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),O(" ",v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function fe(r,u){if(r&1){let e=D();n(0,"div",26)(1,"POS-complex-pagination",28),I("jumpToPage",function(){d(e);let t=m(3);return c(t.getListData())})("previousPage",function(){d(e);let t=m(3);return c(t.getListData())})("nextPage",function(){d(e);let t=m(3);return c(t.getListData())}),C("reloadRowCountChange",function(t){d(e);let a=m(3);return _(a.reloadRowCount,t)||(a.reloadRowCount=t),c(t)}),i()()}if(r&2){let e=m(3);p(),s("total",e.data().Data.length)("pageData",e.pageData()),g("reloadRowCount",e.reloadRowCount)}}function De(r,u){if(r&1&&(h(0,8),n(1,"div",18)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr",22)(6,"th"),o(7,"Name"),i(),n(8,"th",23),o(9,"Code"),i(),n(10,"th",23),o(11,"Mobile"),i(),n(12,"th",24),o(13,"Email"),i(),n(14,"th",25),o(15,"Join Date"),i(),n(16,"th",23),o(17,"Last Sign In"),i()()(),n(18,"tbody"),W(19,ye,16,17,"tr",null,A),i()()(),y(21,fe,2,3,"div",26),i(),w()),r&2){let e=m(2);p(19),k(e.data().Data),p(2),f(e.pageData().Filter?21:-1)}}function he(r,u){if(r&1){let e=D();n(0,"mainpanel-cmp",2),C("textChange",function(t){d(e);let a=m();return _(a.pageData().Filter.Text,t)||(a.pageData().Filter.Text=t),c(t)}),I("onSubmit",function(){d(e);let t=m();return c(t.searchFromPageOne())}),C("filterChange",function(t){d(e);let a=m();return _(a.pageData().Filter,t)||(a.pageData().Filter=t),c(t)}),h(1,3),n(2,"a",4),b(3,"i",5),o(4,"Get Your Brand Loyalty App "),i(),y(5,Se,3,0,"button",6),w(),h(6,7),L(7,xe,29,15,"ng-template",null,0,j),w(),y(9,De,22,1,"ng-container",8),i()}if(r&2){let e=m();s("pageData",e.menuData()),g("text",e.pageData().Filter.Text),s("isFilterOnDropdown",!1),g("filter",e.pageData().Filter),p(5),f(e.role.global.Export?5:-1),p(4),f(e.data()&&e.data().Data?9:-1)}}var ge=class r extends ${constructor(e,l,t,a,_e,we){super(e,l,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",_e);this.httpService=l;this.csvConverter=t;this.matDialog=a;this.role=we}httpService;csvConverter;matDialog;role;cdr=F(N);title=F(H);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){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(ne,{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(l){return new(l||r)(S(ae),S(Y),S(oe),S(ee),S(U),S(K))};static \u0275cmp=P({type:r,selectors:[["pos-app-sign-in"]],features:[V],decls:1,vars:1,consts:[["pageFilterTemplate",""],["filterDialogWidth","600px",3,"pageData","text","isFilterOnDropdown","filter"],["filterDialogWidth","600px",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","grid-filter"],[1,"filter-item"],["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"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],[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","reloadRowCountChange","total","pageData","reloadRowCount"]],template:function(l,t){l&1&&y(0,he,10,6,"mainpanel-cmp",1),l&2&&f(t.pageData().Filter?0:-1)},dependencies:[G,me,pe,se,X,z,Q,q,J,Z,ie,te,ce,de,le,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{ge as AppSignInComponent};
@@ -1 +1 @@
1
- import{a as de}from"./chunk-BPMDDE4D.js";import{a as Y}from"./chunk-LFLAHKM7.js";import{b as te}from"./chunk-P2NWTCME.js";import"./chunk-Q7FVOX6K.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as ce}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import{b as pe}from"./chunk-C6AVODTR.js";import"./chunk-IIJLLEMO.js";import"./chunk-GMYHR4TH.js";import"./chunk-PZSSTNYS.js";import"./chunk-YHZEJWGM.js";import"./chunk-5VC2XYC5.js";import"./chunk-VFRVMDDY.js";import"./chunk-ESZD2F4X.js";import"./chunk-MH2FTMDJ.js";import"./chunk-ROZU3QVN.js";import"./chunk-DUDJZAAO.js";import"./chunk-WRBKQHRI.js";import"./chunk-FS62MIXD.js";import"./chunk-ONECCHQ5.js";import"./chunk-GKGUNK27.js";import"./chunk-G56UPMKR.js";import"./chunk-XBINTEVI.js";import"./chunk-BAIS4TWD.js";import"./chunk-QSFZAHQ2.js";import"./chunk-TGQEO6S3.js";import"./chunk-ONKLHHM3.js";import"./chunk-X2OQT5MH.js";import"./chunk-XTOFMSDQ.js";import"./chunk-ZM456L6A.js";import"./chunk-F5JDPCBG.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as ne}from"./chunk-XISCWQFV.js";import{f as re,g as le}from"./chunk-JMQTA3D2.js";import"./chunk-RGXXTPXX.js";import{a as ie}from"./chunk-4VU6ZIZK.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import{c as ae,d as oe}from"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import"./chunk-UI32X6QC.js";import"./chunk-OVCNCVGF.js";import"./chunk-PWMMCY25.js";import"./chunk-OKQYRKDJ.js";import{d as $,e as ee}from"./chunk-BUIP3UCE.js";import"./chunk-SIAVPMSP.js";import"./chunk-N5VS2V7L.js";import{c as Z}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-7KKUTTZ3.js";import"./chunk-ZS4XLRDB.js";import"./chunk-TYEI4SD2.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as X,h as J,p as Q}from"./chunk-AJDQZ346.js";import"./chunk-KA5UQNW5.js";import"./chunk-WONVJLUQ.js";import"./chunk-YY6WVNU4.js";import{b as q}from"./chunk-KLHHVIRS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-QGRO3YRJ.js";import{n as z,q as K}from"./chunk-QGYXJUX3.js";import{$a as _,$c as B,Bb as H,Cb as U,Db as C,Eb as n,Fb as i,Fc as W,Gb as I,Hc as A,Kb as P,Lb as x,Lc as R,Na as M,Pb as D,Pd as j,Sb as h,Sd as O,Ua as l,Ub as m,Ud as G,db as F,hc as r,ib as V,ic as S,jb as b,mc as s,nc as g,oc as u,ra as d,sa as c,sd as N,wb as T,xd as k,yb as v,yc as L,zb as E}from"./chunk-7D344CRC.js";import"./chunk-NF7PG5F2.js";var ue=p=>({ID:p});function _e(p,f){if(p&1){let t=D();n(0,"a",11),h("click",function(){d(t);let e=m();return c(e.openExportModal())}),I(1,"i",12),r(2," Export "),i()}}function Ce(p,f){if(p&1){let t=D();n(0,"div",13)(1,"div",14)(2,"h6"),r(3,"Category"),i(),n(4,"POS-product-category-select",15),u("selectedCategoryIDChange",function(e){d(t);let a=m();return g(a.pageData().Filter.CategoryID,e)||(a.pageData().Filter.CategoryID=e),c(e)}),i()(),n(5,"div",14)(6,"h6"),r(7,"Brand"),i(),n(8,"ng-select",16),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.BrandID,e)||(a.pageData().Filter.BrandID=e),c(e)}),i()(),n(9,"div",14)(10,"h6"),r(11,"Tags"),i(),n(12,"ng-select",17),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.TagsID,e)||(a.pageData().Filter.TagsID=e),c(e)}),i()(),n(13,"div",14)(14,"h6"),r(15,"Supplier"),i(),n(16,"autocompleteV2",18),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.SupplierID,e)||(a.pageData().Filter.SupplierID=e),c(e)}),i()(),n(17,"div",14)(18,"h6"),r(19,"From Date"),i(),n(20,"datepicker",19),u("dateChange",function(e){d(t);let a=m();return g(a.pageData().Filter.From,e)||(a.pageData().Filter.From=e),c(e)}),i()(),n(21,"div",14)(22,"h6"),r(23,"To Date"),i(),n(24,"datepicker",20),u("dateChange",function(e){d(t);let a=m();return g(a.pageData().Filter.To,e)||(a.pageData().Filter.To=e),c(e)}),i()(),n(25,"div",14)(26,"h6"),r(27,"Product"),i(),n(28,"autocompleteV2",21),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.ProductID,e)||(a.pageData().Filter.ProductID=e),c(e)}),i()()()}if(p&2){let t,o,e=m();l(4),s("selectedCategoryID",e.pageData().Filter.CategoryID),C("showClear",!0)("continuedCategoriesOnly",!0),l(4),C("items",(t=e.pageData().Options)==null?null:t.Brands),s("ngModel",e.pageData().Filter.BrandID),l(4),C("items",(o=e.pageData().Options)==null?null:o.Tags),s("ngModel",e.pageData().Filter.TagsID),l(4),s("ngModel",e.pageData().Filter.SupplierID),l(4),s("date",e.pageData().Filter.From),l(4),s("date",e.pageData().Filter.To),l(4),s("ngModel",e.pageData().Filter.ProductID)}}function ye(p,f){if(p&1&&(n(0,"tr")(1,"td")(2,"a",22),r(3),i()(),n(4,"td"),r(5),i(),n(6,"td"),r(7),i(),n(8,"td"),r(9),W(10,"date"),i(),n(11,"td"),I(12,"div",23),i()()),p&2){let t=f.$implicit;l(2),C("queryParams",L(9,ue,t.ProductID)),l(),S(t.ProductName),l(2),S(t.ProductCode),l(2),S(t.Modifier),l(2),S(A(10,6,t.Modified,"dd MMM yyyy HH:mm")),l(3),C("innerHTML",t.Note,M)}}function fe(p,f){if(p&1){let t=D();n(0,"infinite-pagination",24),h("nextPage",function(){d(t);let e=m();return c(e.NextPage(!0))})("fetchTotalData",function(){d(t);let e=m();return c(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories"))})("concatAllData",function(){d(t);let e=m();return c(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories",!0))}),i()}if(p&2){let t=m();C("totalData",t.listTotal())("totalCurrentRow",t.infiniteList==null?null:t.infiniteList.length)("pageNumber",t.pageData().Filter.PageNumber)("nextPageDisabled",t.nextPageDisabled())("isFetchTotalData",t.pageData().HideStoreApiCount)("goToLast",t.goToLast())}}var me=class p extends Y{constructor(t,o,e,a,w,y,se,ge){super(t,o,"catalog/Product/GetProductUpdateHistories","catalog/ProductLoader/GetProductUpdateHistories",e,se,!1,ge);this.httpService=o;this.csvConverter=a;this.matDialog=w;this.roleService=y}httpService;csvConverter;matDialog;roleService;openExportModal(){this.matDialog.open(te,{data:{title:"Product Import Log",exportTypes:[{ID:"productExport/GetExportProductUpdateHistories",Value:"Default"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"catalog/Product/GetCountProductUpdateHistories",pagination:!0}})}static \u0275fac=function(o){return new(o||p)(_(ie),_(K),_(z),_(ne),_(Z),_(q),_(j),_(B))};static \u0275cmp=F({type:p,selectors:[["pos-product-update-history"]],features:[V],decls:26,vars:6,consts:[["pageFilterTemplate",""],["filterDialogWidth","600px",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],[1,"btn","btn-outline-secondary"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-header","account-receivable-header"],[3,"totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter","grid-filter"],[1,"filter-item"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear","continuedCategoriesOnly"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["requestUrl","/API/AC/GetSupplierSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],["requestUrl","api/ac/GetProductSuggestionByCodeNName",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["target","_blank","routerLink","/menu/Products/Catalog/Products/Info",1,"link","link-primary",3,"queryParams"],[3,"innerHTML"],[3,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"]],template:function(o,e){if(o&1){let a=D();n(0,"mainpanel-cmp",1),u("textChange",function(y){return d(a),g(e.pageData().Filter.SearchText,y)||(e.pageData().Filter.SearchText=y),c(y)}),h("onSubmit",function(){return e.searchFromPageOne()}),u("filterChange",function(y){return d(a),g(e.pageData().Filter,y)||(e.pageData().Filter=y),c(y)}),P(1,2),T(2,_e,3,0,"a",3),x(),P(3,4),b(4,Ce,29,11,"ng-template",null,0,R),x(),P(6,5),n(7,"div",6)(8,"div",7)(9,"table",8)(10,"thead",9)(11,"tr")(12,"th"),r(13,"Product"),i(),n(14,"th"),r(15,"Code"),i(),n(16,"th"),r(17,"Modified By"),i(),n(18,"th"),r(19,"Modified"),i(),n(20,"th"),r(21,"Note"),i()()(),n(22,"tbody"),H(23,ye,13,11,"tr",null,E),i()()(),T(25,fe,1,6,"infinite-pagination",10),i(),x(),i()}o&2&&(C("pageData",e.menuData()),s("text",e.pageData().Filter.SearchText),C("isFilterOnDropdown",!1),s("filter",e.pageData().Filter),l(2),v(e.roleService.global.Export?2:-1),l(21),U(e.infiniteList),l(2),v((e.infiniteList==null?null:e.infiniteList.length)>0?25:-1))},dependencies:[le,re,X,J,Q,k,de,pe,ee,$,ce,oe,ae,G,O,N],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{me as ProductUpdateHistoryComponent};
1
+ import{a as de}from"./chunk-BPMDDE4D.js";import{a as Y}from"./chunk-33KPSRLK.js";import{b as te}from"./chunk-P2NWTCME.js";import"./chunk-JEYYNDQA.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as ce}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import{b as pe}from"./chunk-C6AVODTR.js";import"./chunk-IIJLLEMO.js";import"./chunk-GMYHR4TH.js";import"./chunk-PZSSTNYS.js";import"./chunk-YHZEJWGM.js";import"./chunk-5VC2XYC5.js";import"./chunk-VFRVMDDY.js";import"./chunk-ESZD2F4X.js";import"./chunk-MVDS62IJ.js";import"./chunk-ROZU3QVN.js";import"./chunk-R6KRUML2.js";import"./chunk-WRBKQHRI.js";import"./chunk-FS62MIXD.js";import"./chunk-ONECCHQ5.js";import"./chunk-GKGUNK27.js";import"./chunk-G56UPMKR.js";import"./chunk-XBINTEVI.js";import"./chunk-BAIS4TWD.js";import"./chunk-QSFZAHQ2.js";import"./chunk-TGQEO6S3.js";import"./chunk-ONKLHHM3.js";import"./chunk-X2OQT5MH.js";import"./chunk-XTOFMSDQ.js";import"./chunk-ZM456L6A.js";import"./chunk-F5JDPCBG.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as ne}from"./chunk-XISCWQFV.js";import{f as re,g as le}from"./chunk-RBML37FK.js";import"./chunk-Z2MS32F3.js";import{a as ie}from"./chunk-TP74UTJ5.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import{c as ae,d as oe}from"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import"./chunk-UI32X6QC.js";import"./chunk-OVCNCVGF.js";import"./chunk-PWMMCY25.js";import"./chunk-OKQYRKDJ.js";import{d as $,e as ee}from"./chunk-BUIP3UCE.js";import"./chunk-SIAVPMSP.js";import"./chunk-N5VS2V7L.js";import{c as Z}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-7KKUTTZ3.js";import"./chunk-ZS4XLRDB.js";import"./chunk-TYEI4SD2.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as X,h as J,p as Q}from"./chunk-AJDQZ346.js";import"./chunk-KAZ53HAJ.js";import"./chunk-L2UMOI2Q.js";import"./chunk-YY6WVNU4.js";import{b as q}from"./chunk-KLHHVIRS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-ICFLABAU.js";import{n as z,q as K}from"./chunk-QGYXJUX3.js";import{$a as _,$c as B,Bb as H,Cb as U,Db as C,Eb as n,Fb as i,Fc as W,Gb as I,Hc as A,Kb as P,Lb as x,Lc as R,Na as M,Pb as D,Pd as j,Sb as h,Sd as O,Ua as l,Ub as m,Ud as G,db as F,hc as r,ib as V,ic as S,jb as b,mc as s,nc as g,oc as u,ra as d,sa as c,sd as N,wb as T,xd as k,yb as v,yc as L,zb as E}from"./chunk-7D344CRC.js";import"./chunk-NF7PG5F2.js";var ue=p=>({ID:p});function _e(p,f){if(p&1){let t=D();n(0,"a",11),h("click",function(){d(t);let e=m();return c(e.openExportModal())}),I(1,"i",12),r(2," Export "),i()}}function Ce(p,f){if(p&1){let t=D();n(0,"div",13)(1,"div",14)(2,"h6"),r(3,"Category"),i(),n(4,"POS-product-category-select",15),u("selectedCategoryIDChange",function(e){d(t);let a=m();return g(a.pageData().Filter.CategoryID,e)||(a.pageData().Filter.CategoryID=e),c(e)}),i()(),n(5,"div",14)(6,"h6"),r(7,"Brand"),i(),n(8,"ng-select",16),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.BrandID,e)||(a.pageData().Filter.BrandID=e),c(e)}),i()(),n(9,"div",14)(10,"h6"),r(11,"Tags"),i(),n(12,"ng-select",17),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.TagsID,e)||(a.pageData().Filter.TagsID=e),c(e)}),i()(),n(13,"div",14)(14,"h6"),r(15,"Supplier"),i(),n(16,"autocompleteV2",18),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.SupplierID,e)||(a.pageData().Filter.SupplierID=e),c(e)}),i()(),n(17,"div",14)(18,"h6"),r(19,"From Date"),i(),n(20,"datepicker",19),u("dateChange",function(e){d(t);let a=m();return g(a.pageData().Filter.From,e)||(a.pageData().Filter.From=e),c(e)}),i()(),n(21,"div",14)(22,"h6"),r(23,"To Date"),i(),n(24,"datepicker",20),u("dateChange",function(e){d(t);let a=m();return g(a.pageData().Filter.To,e)||(a.pageData().Filter.To=e),c(e)}),i()(),n(25,"div",14)(26,"h6"),r(27,"Product"),i(),n(28,"autocompleteV2",21),u("ngModelChange",function(e){d(t);let a=m();return g(a.pageData().Filter.ProductID,e)||(a.pageData().Filter.ProductID=e),c(e)}),i()()()}if(p&2){let t,o,e=m();l(4),s("selectedCategoryID",e.pageData().Filter.CategoryID),C("showClear",!0)("continuedCategoriesOnly",!0),l(4),C("items",(t=e.pageData().Options)==null?null:t.Brands),s("ngModel",e.pageData().Filter.BrandID),l(4),C("items",(o=e.pageData().Options)==null?null:o.Tags),s("ngModel",e.pageData().Filter.TagsID),l(4),s("ngModel",e.pageData().Filter.SupplierID),l(4),s("date",e.pageData().Filter.From),l(4),s("date",e.pageData().Filter.To),l(4),s("ngModel",e.pageData().Filter.ProductID)}}function ye(p,f){if(p&1&&(n(0,"tr")(1,"td")(2,"a",22),r(3),i()(),n(4,"td"),r(5),i(),n(6,"td"),r(7),i(),n(8,"td"),r(9),W(10,"date"),i(),n(11,"td"),I(12,"div",23),i()()),p&2){let t=f.$implicit;l(2),C("queryParams",L(9,ue,t.ProductID)),l(),S(t.ProductName),l(2),S(t.ProductCode),l(2),S(t.Modifier),l(2),S(A(10,6,t.Modified,"dd MMM yyyy HH:mm")),l(3),C("innerHTML",t.Note,M)}}function fe(p,f){if(p&1){let t=D();n(0,"infinite-pagination",24),h("nextPage",function(){d(t);let e=m();return c(e.NextPage(!0))})("fetchTotalData",function(){d(t);let e=m();return c(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories"))})("concatAllData",function(){d(t);let e=m();return c(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories",!0))}),i()}if(p&2){let t=m();C("totalData",t.listTotal())("totalCurrentRow",t.infiniteList==null?null:t.infiniteList.length)("pageNumber",t.pageData().Filter.PageNumber)("nextPageDisabled",t.nextPageDisabled())("isFetchTotalData",t.pageData().HideStoreApiCount)("goToLast",t.goToLast())}}var me=class p extends Y{constructor(t,o,e,a,w,y,se,ge){super(t,o,"catalog/Product/GetProductUpdateHistories","catalog/ProductLoader/GetProductUpdateHistories",e,se,!1,ge);this.httpService=o;this.csvConverter=a;this.matDialog=w;this.roleService=y}httpService;csvConverter;matDialog;roleService;openExportModal(){this.matDialog.open(te,{data:{title:"Product Import Log",exportTypes:[{ID:"productExport/GetExportProductUpdateHistories",Value:"Default"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"catalog/Product/GetCountProductUpdateHistories",pagination:!0}})}static \u0275fac=function(o){return new(o||p)(_(ie),_(K),_(z),_(ne),_(Z),_(q),_(j),_(B))};static \u0275cmp=F({type:p,selectors:[["pos-product-update-history"]],features:[V],decls:26,vars:6,consts:[["pageFilterTemplate",""],["filterDialogWidth","600px",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],[1,"btn","btn-outline-secondary"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-header","account-receivable-header"],[3,"totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter","grid-filter"],[1,"filter-item"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear","continuedCategoriesOnly"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["requestUrl","/API/AC/GetSupplierSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],["requestUrl","api/ac/GetProductSuggestionByCodeNName",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["target","_blank","routerLink","/menu/Products/Catalog/Products/Info",1,"link","link-primary",3,"queryParams"],[3,"innerHTML"],[3,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"]],template:function(o,e){if(o&1){let a=D();n(0,"mainpanel-cmp",1),u("textChange",function(y){return d(a),g(e.pageData().Filter.SearchText,y)||(e.pageData().Filter.SearchText=y),c(y)}),h("onSubmit",function(){return e.searchFromPageOne()}),u("filterChange",function(y){return d(a),g(e.pageData().Filter,y)||(e.pageData().Filter=y),c(y)}),P(1,2),T(2,_e,3,0,"a",3),x(),P(3,4),b(4,Ce,29,11,"ng-template",null,0,R),x(),P(6,5),n(7,"div",6)(8,"div",7)(9,"table",8)(10,"thead",9)(11,"tr")(12,"th"),r(13,"Product"),i(),n(14,"th"),r(15,"Code"),i(),n(16,"th"),r(17,"Modified By"),i(),n(18,"th"),r(19,"Modified"),i(),n(20,"th"),r(21,"Note"),i()()(),n(22,"tbody"),H(23,ye,13,11,"tr",null,E),i()()(),T(25,fe,1,6,"infinite-pagination",10),i(),x(),i()}o&2&&(C("pageData",e.menuData()),s("text",e.pageData().Filter.SearchText),C("isFilterOnDropdown",!1),s("filter",e.pageData().Filter),l(2),v(e.roleService.global.Export?2:-1),l(21),U(e.infiniteList),l(2),v((e.infiniteList==null?null:e.infiniteList.length)>0?25:-1))},dependencies:[le,re,X,J,Q,k,de,pe,ee,$,ce,oe,ae,G,O,N],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{me as ProductUpdateHistoryComponent};
@@ -1 +1 @@
1
- import{a as J}from"./chunk-DNMHFWF5.js";import{a as pe}from"./chunk-RHK6WMN4.js";import{a as me}from"./chunk-QQUWUBWQ.js";import{b as Y}from"./chunk-P2NWTCME.js";import"./chunk-Q7FVOX6K.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as le}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import"./chunk-BYCXUF5T.js";import{a as re}from"./chunk-WHKDTNK2.js";import"./chunk-WM2CE23W.js";import"./chunk-5VC2XYC5.js";import{a as K}from"./chunk-MH2FTMDJ.js";import"./chunk-ROZU3QVN.js";import"./chunk-DUDJZAAO.js";import"./chunk-ONECCHQ5.js";import"./chunk-GKGUNK27.js";import"./chunk-G56UPMKR.js";import"./chunk-QSFZAHQ2.js";import"./chunk-TGQEO6S3.js";import"./chunk-ONKLHHM3.js";import"./chunk-X2OQT5MH.js";import"./chunk-XTOFMSDQ.js";import"./chunk-ZM456L6A.js";import"./chunk-F5JDPCBG.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as $}from"./chunk-XISCWQFV.js";import{f as ne,g as oe}from"./chunk-JMQTA3D2.js";import"./chunk-RGXXTPXX.js";import{a as Z}from"./chunk-4VU6ZIZK.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import{c as ie,d as ae}from"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import{O as te,g as ee}from"./chunk-UI32X6QC.js";import"./chunk-OVCNCVGF.js";import"./chunk-PWMMCY25.js";import"./chunk-OKQYRKDJ.js";import{d as X}from"./chunk-BUIP3UCE.js";import"./chunk-SIAVPMSP.js";import"./chunk-N5VS2V7L.js";import{c as Q}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-7KKUTTZ3.js";import"./chunk-ZS4XLRDB.js";import"./chunk-TYEI4SD2.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as z,h as G,p as U}from"./chunk-AJDQZ346.js";import"./chunk-KA5UQNW5.js";import"./chunk-WONVJLUQ.js";import"./chunk-YY6WVNU4.js";import{b as H}from"./chunk-KLHHVIRS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-QGRO3YRJ.js";import{q}from"./chunk-QGYXJUX3.js";import{$a as D,Ba as h,Bb as B,Cb as L,Db as s,Dc as O,Eb as i,Fb as n,Fc as C,Gb as M,Gc as x,Hc as S,Lc as R,Pb as F,Sb as y,Sd as j,Ua as p,Ub as l,db as P,hc as m,ib as T,ic as w,jb as V,jc as W,mc as _,nc as g,oc as f,ra as d,sa as c,sd as N,ud as A,wb as I,xc as k,yb as v,zb as E}from"./chunk-7D344CRC.js";import"./chunk-NF7PG5F2.js";var ce=()=>["/menu/Payment/Default/Write_Off_Item/Details"],se=(r,u,t,o,e,a)=>({LabelID:r,OutletIds:u,SalesOrderTagID:t,CustomerID:o,From:e,To:a});function _e(r,u){if(r&1){let t=F();i(0,"a",13),y("click",function(){d(t);let e=l(2);return c(e.openExportModal())}),M(1,"i",14),m(2," Export"),n()}}function ge(r,u){if(r&1){let t=F();i(0,"div",15)(1,"div",16)(2,"h6"),m(3,"Outlet"),n(),i(4,"outlet-selector",17),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.ListOutletID,e)||(a.pageData().Filter.ListOutletID=e),c(e)}),n()(),i(5,"div",16)(6,"h6"),m(7,"Tag"),n(),i(8,"ng-select",18),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.SalesTagID,e)||(a.pageData().Filter.SalesTagID=e),c(e)}),n()(),i(9,"div",16)(10,"h6"),m(11,"From Date"),n(),i(12,"datepicker",19),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.From,e)||(a.pageData().Filter.From=e),c(e)}),y("dateChange",function(){d(t);let e=l(2);return c(e.changeDatepickerValidation())}),n()(),i(13,"div",16)(14,"h6"),m(15,"To Date"),n(),i(16,"datepicker",20),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.To,e)||(a.pageData().Filter.To=e),c(e)}),n()(),i(17,"div",16)(18,"h6"),m(19,"Invoice From Date"),n(),i(20,"datepicker",21),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.InvoiceFrom,e)||(a.pageData().Filter.InvoiceFrom=e),c(e)}),y("dateChange",function(){d(t);let e=l(2);return c(e.changeDatepickerValidation())}),n()(),i(21,"div",16)(22,"h6"),m(23,"Invoice To Date"),n(),i(24,"datepicker",22),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.InvoiceTo,e)||(a.pageData().Filter.InvoiceTo=e),c(e)}),y("dateChange",function(){d(t);let e=l(2);return c(e.changeDatepickerValidation())}),n()(),i(25,"div",16)(26,"h6"),m(27,"Customer"),n(),i(28,"autocompleteV2",23),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.CustomerID,e)||(a.pageData().Filter.CustomerID=e),c(e)}),n()(),i(29,"div",16)(30,"h6"),m(31,"Reason"),n(),i(32,"ng-select",24),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.ReasonID,e)||(a.pageData().Filter.ReasonID=e),c(e)}),n()()()}if(r&2){let t=l(2);p(4),s("accessType",2),_("ngModel",t.pageData().Filter.ListOutletID),s("multiple",!0),p(4),_("ngModel",t.pageData().Filter.SalesTagID),s("items",t.pageData().Options.Types),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.From),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.To),s("minDateValidation",t.toMinDate()),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.InvoiceFrom),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.InvoiceTo),s("minDateValidation",t.invoiceToMinDate()),p(4),_("ngModel",t.pageData().Filter.CustomerID),p(4),s("items",t.pageData().Options.ReasonOption),_("ngModel",t.pageData().Filter.ReasonID)}}function fe(r,u){r&1&&(i(0,"tr")(1,"td",25),M(2,"app-empty-state"),n()())}function ue(r,u){if(r&1&&(i(0,"tr")(1,"th",26),m(2),n(),i(3,"td",12)(4,"a",27),C(5,"date"),C(6,"date"),m(7),C(8,"number"),n()(),i(9,"td",12),m(10),C(11,"number"),n()()),r&2){let t,o=u.$implicit,e=l(3);p(2),w(o.Name),p(2),s("routerLink",k(15,ce))("queryParams",O(16,se,o.ID,((t=e.pageData().Filter.ListOutletID)==null?null:t.join(","))??"",e.pageData().Filter.SalesTagID??"",e.pageData().Filter.CustomerID??"",S(5,5,e.pageData().Filter.From,"ddMMyyyy"),S(6,8,e.pageData().Filter.To,"ddMMyyyy"))),p(3),w(x(8,11,o.Count)),p(3),w(x(11,13,o.Amount))}}function Ce(r,u){if(r&1&&B(0,ue,12,23,"tr",null,E),r&2){let t=l(2);L(t.data().Data)}}function De(r,u){if(r&1){let t=F();i(0,"mainpanel-cmp",2),y("onSubmit",function(){d(t);let e=l();return c(e.searchFromPageOne())}),f("filterChange",function(e){d(t);let a=l();return g(a.pageData().Filter,e)||(a.pageData().Filter=e),c(e)}),i(1,"actions"),I(2,_e,3,0,"a",3),n(),i(3,"filters"),V(4,ge,33,22,"ng-template",null,0,R),n(),i(6,"content")(7,"div",4)(8,"div",5)(9,"table",6)(10,"thead",7)(11,"tr")(12,"th",8),m(13,"Name"),n(),i(14,"th",9),m(15,"Count"),n(),i(16,"th",9),m(17," Amount "),n()()(),i(18,"tbody"),I(19,fe,3,0,"tr")(20,Ce,2,0),n(),i(21,"tfoot",10)(22,"tr",11)(23,"td"),m(24,"Total"),n(),i(25,"td",12),m(26),C(27,"sum"),C(28,"number"),n(),i(29,"td",12),m(30),C(31,"sum"),C(32,"number"),n()()()()()()()()}if(r&2){let t=l();s("pageData",t.menuData())("hideSearchBox",!0)("isFilterOnDropdown",!1),_("filter",t.pageData().Filter),p(2),v(t.roleService.global.Export?2:-1),p(17),v(t.data().Data.length?20:19),p(7),W(" ",x(28,11,S(27,8,t.data().Data,"Count"))," "),p(4),W(" ",x(32,16,S(31,13,t.data().Data,"Amount"))," ")}}var de=class r extends K{constructor(t,o,e,a,b,ye,he){super(t,o,"Payment/InvoiceWriteOffItemReport","PaymentLoader/InvoiceWriteOffItemReport");this.csvConverter=e;this.dataDaysRangeService=a;this.roleService=b;this.matDialog=ye;this.paymentDateService=he}csvConverter;dataDaysRangeService;roleService;matDialog;paymentDateService;toMinDate=h(null);invoiceToMinDate=h(null);fromMinDate=h(new Date);hideDateClearButton=h(!1);changeDatepickerValidation(t=!1){this.hideDateClearButton.update(()=>this.dataDaysRangeService.isHideClearDateBtn);let o=this.pageData().Filter.From,e=this.dataDaysRangeService.getDateValidation(o);this.toMinDate.update(()=>e.toMinDate),this.fromMinDate.update(()=>e.fromMinDate);let a=this.pageData().Filter.InvoiceFrom,b=this.dataDaysRangeService.getDateValidation(a);this.invoiceToMinDate.update(()=>b.toMinDate)}openExportModal(){this.matDialog.open(Y,{data:{title:"Write Off Item Report",exportTypes:[{ID:"PaymentExport/InvoiceWriteOffItemReport",Value:"Default",FileName:"Write Off Item Report"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(o){return new(o||r)(D(Z),D(q),D($),D(pe),D(H),D(Q),D(J))};static \u0275cmp=P({type:r,selectors:[["POS-payment-writeoff-item"]],features:[T],decls:1,vars:1,consts:[["pageFilterTemplate",""],["filterDialogWidth","600px",3,"pageData","hideSearchBox","isFilterOnDropdown","filter"],["filterDialogWidth","600px",3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col"],["scope","col",1,"text-end",2,"width","150px"],[1,"table-footer"],[1,"fw-semibold"],[1,"text-end"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter","grid-filter"],[1,"filter-item"],["placeholder","Choose an Outlet",1,"w-100",3,"ngModelChange","accessType","ngModel","multiple"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Sales Tag",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","hidelClearBtn","isFloatingLabel","date"],["placeholder","To","appearance","outline","name","To",3,"dateChange","hidelClearBtn","isFloatingLabel","date","minDateValidation"],["placeholder","From","appearance","outline","name","InvoiceFrom",3,"dateChange","hidelClearBtn","isFloatingLabel","date"],["placeholder","To","appearance","outline","name","InvoiceTo",3,"dateChange","hidelClearBtn","isFloatingLabel","date","minDateValidation"],["requestUrl","/API/AC/GetCustomerSuggestion","notFoundMessageFor","customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["appendTo","body","placeholder","Choose a reason","bindLabel","Name","bindValue","ID",3,"ngModelChange","items","ngModel"],["colspan","3",1,""],[1,"fw-normal"],[1,"link-primary","cursor-pointer",3,"routerLink","queryParams"]],template:function(o,e){o&1&&I(0,De,33,18,"mainpanel-cmp",1),o&2&&v(e.data()?0:-1)},dependencies:[le,z,G,U,oe,ne,X,re,te,ae,ie,me,j,N,A,ee],encapsulation:2,changeDetection:0})};export{de as PaymentWriteoffItemComponent};
1
+ import{a as J}from"./chunk-7GUUZIHS.js";import{a as pe}from"./chunk-RHK6WMN4.js";import{a as me}from"./chunk-QQUWUBWQ.js";import{b as Y}from"./chunk-P2NWTCME.js";import"./chunk-JEYYNDQA.js";import"./chunk-F76MWCWQ.js";import"./chunk-XX7AIWP2.js";import{p as le}from"./chunk-SCH7M36Q.js";import"./chunk-7TQOVQ3O.js";import"./chunk-G53IMHKY.js";import"./chunk-3EAA4CUP.js";import"./chunk-5U2B2SGN.js";import"./chunk-YJV74F2X.js";import"./chunk-WPCHBRKW.js";import"./chunk-BYCXUF5T.js";import{a as re}from"./chunk-WHKDTNK2.js";import"./chunk-WM2CE23W.js";import"./chunk-5VC2XYC5.js";import{a as K}from"./chunk-MVDS62IJ.js";import"./chunk-ROZU3QVN.js";import"./chunk-R6KRUML2.js";import"./chunk-ONECCHQ5.js";import"./chunk-GKGUNK27.js";import"./chunk-G56UPMKR.js";import"./chunk-QSFZAHQ2.js";import"./chunk-TGQEO6S3.js";import"./chunk-ONKLHHM3.js";import"./chunk-X2OQT5MH.js";import"./chunk-XTOFMSDQ.js";import"./chunk-ZM456L6A.js";import"./chunk-F5JDPCBG.js";import"./chunk-LN7LGRLI.js";import"./chunk-EP7SKSJT.js";import"./chunk-LAQZXTBX.js";import{a as $}from"./chunk-XISCWQFV.js";import{f as ne,g as oe}from"./chunk-RBML37FK.js";import"./chunk-Z2MS32F3.js";import{a as Z}from"./chunk-TP74UTJ5.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import{c as ie,d as ae}from"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import{O as te,g as ee}from"./chunk-UI32X6QC.js";import"./chunk-OVCNCVGF.js";import"./chunk-PWMMCY25.js";import"./chunk-OKQYRKDJ.js";import{d as X}from"./chunk-BUIP3UCE.js";import"./chunk-SIAVPMSP.js";import"./chunk-N5VS2V7L.js";import{c as Q}from"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-7KKUTTZ3.js";import"./chunk-ZS4XLRDB.js";import"./chunk-TYEI4SD2.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as z,h as G,p as U}from"./chunk-AJDQZ346.js";import"./chunk-KAZ53HAJ.js";import"./chunk-L2UMOI2Q.js";import"./chunk-YY6WVNU4.js";import{b as H}from"./chunk-KLHHVIRS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-ICFLABAU.js";import{q}from"./chunk-QGYXJUX3.js";import{$a as D,Ba as h,Bb as B,Cb as L,Db as s,Dc as O,Eb as i,Fb as n,Fc as C,Gb as M,Gc as x,Hc as S,Lc as R,Pb as F,Sb as y,Sd as j,Ua as p,Ub as l,db as P,hc as m,ib as T,ic as w,jb as V,jc as W,mc as _,nc as g,oc as f,ra as d,sa as c,sd as N,ud as A,wb as I,xc as k,yb as v,zb as E}from"./chunk-7D344CRC.js";import"./chunk-NF7PG5F2.js";var ce=()=>["/menu/Payment/Default/Write_Off_Item/Details"],se=(r,u,t,o,e,a)=>({LabelID:r,OutletIds:u,SalesOrderTagID:t,CustomerID:o,From:e,To:a});function _e(r,u){if(r&1){let t=F();i(0,"a",13),y("click",function(){d(t);let e=l(2);return c(e.openExportModal())}),M(1,"i",14),m(2," Export"),n()}}function ge(r,u){if(r&1){let t=F();i(0,"div",15)(1,"div",16)(2,"h6"),m(3,"Outlet"),n(),i(4,"outlet-selector",17),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.ListOutletID,e)||(a.pageData().Filter.ListOutletID=e),c(e)}),n()(),i(5,"div",16)(6,"h6"),m(7,"Tag"),n(),i(8,"ng-select",18),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.SalesTagID,e)||(a.pageData().Filter.SalesTagID=e),c(e)}),n()(),i(9,"div",16)(10,"h6"),m(11,"From Date"),n(),i(12,"datepicker",19),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.From,e)||(a.pageData().Filter.From=e),c(e)}),y("dateChange",function(){d(t);let e=l(2);return c(e.changeDatepickerValidation())}),n()(),i(13,"div",16)(14,"h6"),m(15,"To Date"),n(),i(16,"datepicker",20),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.To,e)||(a.pageData().Filter.To=e),c(e)}),n()(),i(17,"div",16)(18,"h6"),m(19,"Invoice From Date"),n(),i(20,"datepicker",21),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.InvoiceFrom,e)||(a.pageData().Filter.InvoiceFrom=e),c(e)}),y("dateChange",function(){d(t);let e=l(2);return c(e.changeDatepickerValidation())}),n()(),i(21,"div",16)(22,"h6"),m(23,"Invoice To Date"),n(),i(24,"datepicker",22),f("dateChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.InvoiceTo,e)||(a.pageData().Filter.InvoiceTo=e),c(e)}),y("dateChange",function(){d(t);let e=l(2);return c(e.changeDatepickerValidation())}),n()(),i(25,"div",16)(26,"h6"),m(27,"Customer"),n(),i(28,"autocompleteV2",23),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.CustomerID,e)||(a.pageData().Filter.CustomerID=e),c(e)}),n()(),i(29,"div",16)(30,"h6"),m(31,"Reason"),n(),i(32,"ng-select",24),f("ngModelChange",function(e){d(t);let a=l(2);return g(a.pageData().Filter.ReasonID,e)||(a.pageData().Filter.ReasonID=e),c(e)}),n()()()}if(r&2){let t=l(2);p(4),s("accessType",2),_("ngModel",t.pageData().Filter.ListOutletID),s("multiple",!0),p(4),_("ngModel",t.pageData().Filter.SalesTagID),s("items",t.pageData().Options.Types),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.From),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.To),s("minDateValidation",t.toMinDate()),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.InvoiceFrom),p(4),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),_("date",t.pageData().Filter.InvoiceTo),s("minDateValidation",t.invoiceToMinDate()),p(4),_("ngModel",t.pageData().Filter.CustomerID),p(4),s("items",t.pageData().Options.ReasonOption),_("ngModel",t.pageData().Filter.ReasonID)}}function fe(r,u){r&1&&(i(0,"tr")(1,"td",25),M(2,"app-empty-state"),n()())}function ue(r,u){if(r&1&&(i(0,"tr")(1,"th",26),m(2),n(),i(3,"td",12)(4,"a",27),C(5,"date"),C(6,"date"),m(7),C(8,"number"),n()(),i(9,"td",12),m(10),C(11,"number"),n()()),r&2){let t,o=u.$implicit,e=l(3);p(2),w(o.Name),p(2),s("routerLink",k(15,ce))("queryParams",O(16,se,o.ID,((t=e.pageData().Filter.ListOutletID)==null?null:t.join(","))??"",e.pageData().Filter.SalesTagID??"",e.pageData().Filter.CustomerID??"",S(5,5,e.pageData().Filter.From,"ddMMyyyy"),S(6,8,e.pageData().Filter.To,"ddMMyyyy"))),p(3),w(x(8,11,o.Count)),p(3),w(x(11,13,o.Amount))}}function Ce(r,u){if(r&1&&B(0,ue,12,23,"tr",null,E),r&2){let t=l(2);L(t.data().Data)}}function De(r,u){if(r&1){let t=F();i(0,"mainpanel-cmp",2),y("onSubmit",function(){d(t);let e=l();return c(e.searchFromPageOne())}),f("filterChange",function(e){d(t);let a=l();return g(a.pageData().Filter,e)||(a.pageData().Filter=e),c(e)}),i(1,"actions"),I(2,_e,3,0,"a",3),n(),i(3,"filters"),V(4,ge,33,22,"ng-template",null,0,R),n(),i(6,"content")(7,"div",4)(8,"div",5)(9,"table",6)(10,"thead",7)(11,"tr")(12,"th",8),m(13,"Name"),n(),i(14,"th",9),m(15,"Count"),n(),i(16,"th",9),m(17," Amount "),n()()(),i(18,"tbody"),I(19,fe,3,0,"tr")(20,Ce,2,0),n(),i(21,"tfoot",10)(22,"tr",11)(23,"td"),m(24,"Total"),n(),i(25,"td",12),m(26),C(27,"sum"),C(28,"number"),n(),i(29,"td",12),m(30),C(31,"sum"),C(32,"number"),n()()()()()()()()}if(r&2){let t=l();s("pageData",t.menuData())("hideSearchBox",!0)("isFilterOnDropdown",!1),_("filter",t.pageData().Filter),p(2),v(t.roleService.global.Export?2:-1),p(17),v(t.data().Data.length?20:19),p(7),W(" ",x(28,11,S(27,8,t.data().Data,"Count"))," "),p(4),W(" ",x(32,16,S(31,13,t.data().Data,"Amount"))," ")}}var de=class r extends K{constructor(t,o,e,a,b,ye,he){super(t,o,"Payment/InvoiceWriteOffItemReport","PaymentLoader/InvoiceWriteOffItemReport");this.csvConverter=e;this.dataDaysRangeService=a;this.roleService=b;this.matDialog=ye;this.paymentDateService=he}csvConverter;dataDaysRangeService;roleService;matDialog;paymentDateService;toMinDate=h(null);invoiceToMinDate=h(null);fromMinDate=h(new Date);hideDateClearButton=h(!1);changeDatepickerValidation(t=!1){this.hideDateClearButton.update(()=>this.dataDaysRangeService.isHideClearDateBtn);let o=this.pageData().Filter.From,e=this.dataDaysRangeService.getDateValidation(o);this.toMinDate.update(()=>e.toMinDate),this.fromMinDate.update(()=>e.fromMinDate);let a=this.pageData().Filter.InvoiceFrom,b=this.dataDaysRangeService.getDateValidation(a);this.invoiceToMinDate.update(()=>b.toMinDate)}openExportModal(){this.matDialog.open(Y,{data:{title:"Write Off Item Report",exportTypes:[{ID:"PaymentExport/InvoiceWriteOffItemReport",Value:"Default",FileName:"Write Off Item Report"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(o){return new(o||r)(D(Z),D(q),D($),D(pe),D(H),D(Q),D(J))};static \u0275cmp=P({type:r,selectors:[["POS-payment-writeoff-item"]],features:[T],decls:1,vars:1,consts:[["pageFilterTemplate",""],["filterDialogWidth","600px",3,"pageData","hideSearchBox","isFilterOnDropdown","filter"],["filterDialogWidth","600px",3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col"],["scope","col",1,"text-end",2,"width","150px"],[1,"table-footer"],[1,"fw-semibold"],[1,"text-end"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter","grid-filter"],[1,"filter-item"],["placeholder","Choose an Outlet",1,"w-100",3,"ngModelChange","accessType","ngModel","multiple"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Sales Tag",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","hidelClearBtn","isFloatingLabel","date"],["placeholder","To","appearance","outline","name","To",3,"dateChange","hidelClearBtn","isFloatingLabel","date","minDateValidation"],["placeholder","From","appearance","outline","name","InvoiceFrom",3,"dateChange","hidelClearBtn","isFloatingLabel","date"],["placeholder","To","appearance","outline","name","InvoiceTo",3,"dateChange","hidelClearBtn","isFloatingLabel","date","minDateValidation"],["requestUrl","/API/AC/GetCustomerSuggestion","notFoundMessageFor","customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["appendTo","body","placeholder","Choose a reason","bindLabel","Name","bindValue","ID",3,"ngModelChange","items","ngModel"],["colspan","3",1,""],[1,"fw-normal"],[1,"link-primary","cursor-pointer",3,"routerLink","queryParams"]],template:function(o,e){o&1&&I(0,De,33,18,"mainpanel-cmp",1),o&2&&v(e.data()?0:-1)},dependencies:[le,z,G,U,oe,ne,X,re,te,ae,ie,me,j,N,A,ee],encapsulation:2,changeDetection:0})};export{de as PaymentWriteoffItemComponent};