dealpos 25.50.2 → 25.50.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/browser/{chunk-3CI72KQ3.js → chunk-23VPQAH7.js} +1 -1
  2. package/browser/{chunk-5JPSSGYG.js → chunk-2BO3IFU3.js} +1 -1
  3. package/browser/{chunk-TXFCAVU2.js → chunk-2LKYW2KM.js} +1 -1
  4. package/browser/{chunk-IRGMPCNS.js → chunk-3NPCLTJT.js} +1 -1
  5. package/browser/{chunk-EKL4DD7N.js → chunk-3NPP3FHR.js} +1 -1
  6. package/browser/{chunk-R7X75CAN.js → chunk-3TWVKV7J.js} +1 -1
  7. package/browser/{chunk-GJCPLFMU.js → chunk-45Z7RKI2.js} +1 -1
  8. package/browser/{chunk-LKBQF2DU.js → chunk-54UGZEAQ.js} +1 -1
  9. package/browser/{chunk-R66UUSM7.js → chunk-5UMDVS4U.js} +1 -1
  10. package/browser/{chunk-LNFN2XQO.js → chunk-65JSM2XC.js} +1 -1
  11. package/browser/{chunk-WMLA5VC3.js → chunk-7AZJVR4Y.js} +1 -1
  12. package/browser/{chunk-QO5SWGKB.js → chunk-7NZLZJYF.js} +1 -1
  13. package/browser/{chunk-TM4BVRKQ.js → chunk-7Q672H4P.js} +1 -1
  14. package/browser/{chunk-4WGA2OTP.js → chunk-7SRLQQ53.js} +1 -1
  15. package/browser/{chunk-EQ5MSD2S.js → chunk-AKRUT4XG.js} +1 -1
  16. package/browser/{chunk-NRXQVTHC.js → chunk-AXUSK4R7.js} +2 -2
  17. package/browser/{chunk-IX6SAYD6.js → chunk-BAEWHHDC.js} +1 -1
  18. package/browser/{chunk-SXFDWJS4.js → chunk-BKTC6IB2.js} +1 -1
  19. package/browser/{chunk-RJFWUHOP.js → chunk-D55YCZRM.js} +1 -1
  20. package/browser/chunk-DDWKAORH.js +4 -0
  21. package/browser/{chunk-PE5RSFD4.js → chunk-DI2O7SU5.js} +1 -1
  22. package/browser/{chunk-UXISTLRF.js → chunk-DSNA2CBA.js} +1 -1
  23. package/browser/{chunk-E7I3NPA7.js → chunk-DWYMJ5NO.js} +1 -1
  24. package/browser/{chunk-3FIHANXM.js → chunk-E4VY3BC3.js} +1 -1
  25. package/browser/{chunk-YAZTTW7K.js → chunk-EHEOIROM.js} +1 -1
  26. package/browser/{chunk-7YINKSK5.js → chunk-EJWFW6Y5.js} +1 -1
  27. package/browser/{chunk-4XR5RPFW.js → chunk-EQ4O2B6P.js} +1 -1
  28. package/browser/{chunk-OPACCKVN.js → chunk-ERE6AE7H.js} +1 -1
  29. package/browser/{chunk-3IAS5WE6.js → chunk-FBNETY2W.js} +1 -1
  30. package/browser/{chunk-6K2PABLT.js → chunk-FIOEXMKH.js} +1 -1
  31. package/browser/{chunk-TFJ6RC7Q.js → chunk-GRGZQFG6.js} +1 -1
  32. package/browser/{chunk-PG76XRHN.js → chunk-HXXX3USD.js} +1 -1
  33. package/browser/{chunk-MNQNS2XG.js → chunk-IA5RDP6C.js} +1 -1
  34. package/browser/{chunk-YDSGRKII.js → chunk-IBGFKSEC.js} +1 -1
  35. package/browser/{chunk-GUN3GLFK.js → chunk-ILTEBIEO.js} +1 -1
  36. package/browser/{chunk-N5HYVJLW.js → chunk-KWWIO4GT.js} +1 -1
  37. package/browser/{chunk-CAHMSC7J.js → chunk-KZG64H5Q.js} +1 -1
  38. package/browser/{chunk-ZUH63VNR.js → chunk-L7NMU3EE.js} +2 -2
  39. package/browser/{chunk-Q3HXBKNL.js → chunk-LOWQOYUL.js} +1 -1
  40. package/browser/{chunk-CN2J3E2G.js → chunk-LUKLFBAY.js} +1 -1
  41. package/browser/{chunk-7KRURW6N.js → chunk-M5R2CYXH.js} +1 -1
  42. package/browser/{chunk-A6LKXUGJ.js → chunk-MHD5SGI2.js} +1 -1
  43. package/browser/{chunk-FYZR4T4Z.js → chunk-MLEUJB3A.js} +1 -1
  44. package/browser/{chunk-O7AYJCX3.js → chunk-NFOJONR6.js} +1 -1
  45. package/browser/{chunk-IB5IYQYR.js → chunk-NIDHEU4E.js} +2 -2
  46. package/browser/{chunk-L2E3ETBG.js → chunk-NVOIIOWN.js} +1 -1
  47. package/browser/{chunk-72M34LBD.js → chunk-O4RWYZYV.js} +1 -1
  48. package/browser/{chunk-S2XP3WT2.js → chunk-OP66LK4H.js} +1 -1
  49. package/browser/{chunk-KJ6Y5C2X.js → chunk-PWTUEIUR.js} +1 -1
  50. package/browser/{chunk-4VHFIFH3.js → chunk-Q6APDC4Z.js} +1 -1
  51. package/browser/{chunk-EXV4D73Z.js → chunk-QG4B6W6L.js} +1 -1
  52. package/browser/{chunk-ABAK5BOR.js → chunk-QHXZVGLB.js} +1 -1
  53. package/browser/{chunk-DVEFT7GI.js → chunk-QIQOKWUA.js} +1 -1
  54. package/browser/{chunk-PCAJ3T4Y.js → chunk-QMOYHBVM.js} +1 -1
  55. package/browser/{chunk-DXZJ5B2W.js → chunk-QR7VN5GL.js} +1 -1
  56. package/browser/{chunk-MW6VWMF2.js → chunk-QTAF2OHJ.js} +1 -1
  57. package/browser/{chunk-FR2QCVXS.js → chunk-QVKXQ4BK.js} +1 -1
  58. package/browser/{chunk-7T4IG74V.js → chunk-RL24GQSJ.js} +1 -1
  59. package/browser/{chunk-OXGGKWTO.js → chunk-RQFU4YVM.js} +1 -1
  60. package/browser/{chunk-D3NB2D5J.js → chunk-RTQ4SJP2.js} +1 -1
  61. package/browser/{chunk-FCDFHL3X.js → chunk-S2B6A2P3.js} +1 -1
  62. package/browser/{chunk-E7RGLETU.js → chunk-SLYXMED6.js} +1 -1
  63. package/browser/{chunk-ZNKZYBB6.js → chunk-SVVH6PSD.js} +9 -9
  64. package/browser/{chunk-5I57WLXV.js → chunk-SXYJ7APZ.js} +1 -1
  65. package/browser/{chunk-2KS45FOG.js → chunk-TOPX3JFU.js} +1 -1
  66. package/browser/{chunk-NX6SWHK4.js → chunk-TZGHU6I5.js} +2 -2
  67. package/browser/{chunk-VL552ANV.js → chunk-UEN2SKB2.js} +1 -1
  68. package/browser/{chunk-Z6DKCJUZ.js → chunk-VBIZF245.js} +1 -1
  69. package/browser/{chunk-522M5UUJ.js → chunk-VDZXLRMK.js} +1 -1
  70. package/browser/{chunk-VD3VXMZE.js → chunk-VGTN2T5K.js} +1 -1
  71. package/browser/{chunk-TSYTV425.js → chunk-VLISY5AT.js} +1 -1
  72. package/browser/{chunk-76NP7MDH.js → chunk-VX7AVGUY.js} +1 -1
  73. package/browser/{chunk-2YCKWFSX.js → chunk-W2HVYAUB.js} +1 -1
  74. package/browser/{chunk-ZVJGTPQY.js → chunk-W3PBP3KZ.js} +1 -1
  75. package/browser/{chunk-J4JATC4H.js → chunk-WBWMUDOK.js} +1 -1
  76. package/browser/{chunk-LJCEFLIZ.js → chunk-WJXKZZS2.js} +1 -1
  77. package/browser/{chunk-5TRWYRN5.js → chunk-WWWSD2MX.js} +1 -1
  78. package/browser/{chunk-CMZCCWKE.js → chunk-X5XDXZ47.js} +1 -1
  79. package/browser/{chunk-GDASNIZL.js → chunk-XFGPCEKV.js} +1 -1
  80. package/browser/{chunk-I5PFTS7W.js → chunk-Y7QIF2WS.js} +1 -1
  81. package/browser/{chunk-VLALB254.js → chunk-YSRJI33K.js} +1 -1
  82. package/browser/{chunk-QM5JUHAR.js → chunk-YWOH2LVD.js} +2 -2
  83. package/browser/{chunk-JIYQX2TI.js → chunk-ZNBXH3TQ.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-OHWGY2LM.js → main-4WYCY6M5.js} +2 -2
  86. package/package.json +1 -1
  87. package/browser/chunk-F7YYCFKH.js +0 -4
@@ -1 +1 @@
1
- import{a as ce}from"./chunk-MLBTUOHX.js";import{d as de,e as me}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{e as le}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as X}from"./chunk-3CI72KQ3.js";import{f as pe}from"./chunk-TFJ6RC7Q.js";import{b as ee}from"./chunk-VXPORXGI.js";import"./chunk-R66UUSM7.js";import"./chunk-IRGMPCNS.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as ie}from"./chunk-J6M7UWVR.js";import{e as oe,f as ne}from"./chunk-VL552ANV.js";import"./chunk-7YUPYNWQ.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-4XR5RPFW.js";import{b as te}from"./chunk-E7RGLETU.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import{F as ae,G as re}from"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import{d as Z,e as $}from"./chunk-THT6CY5E.js";import{g as Y}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as K,h as q,o as z}from"./chunk-DWZ5JTI2.js";import"./chunk-GUN3GLFK.js";import"./chunk-KJ6Y5C2X.js";import"./chunk-36GWLMZX.js";import{b as Q}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-WMLA5VC3.js";import{p as G,s as J}from"./chunk-LGOSIAUC.js";import{Bb as v,Db as E,Eb as H,Fb as c,Fc as U,Gb as a,Hb as r,Hc as W,Ib as M,Lc as L,Mb as P,Nb as h,Nd as N,Pb as w,Qa as T,Qd as O,Sb as x,Sd as j,Ub as s,Xa as o,Zc as A,eb as C,hc as n,ib as F,ic as D,jd as R,mb as V,mc as g,nc as u,ob as I,oc as _,qd as k,ta as l,ua as p,vd as B,yc as b}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var _e=m=>({ID:m});function Ce(m,S){if(m&1){let t=w();a(0,"a",11),x("click",function(){l(t);let e=s();return p(e.openExportModal())}),M(1,"i",12),n(2," Export "),r()}}function fe(m,S){if(m&1){let t=w();a(0,"div",13)(1,"h6"),n(2,"Category"),r(),a(3,"POS-product-category-select",14),_("selectedCategoryIDChange",function(e){l(t);let i=s();return u(i.pageData.Filter.CategoryID,e)||(i.pageData.Filter.CategoryID=e),p(e)}),r(),a(4,"h6"),n(5,"Brand"),r(),a(6,"ng-select",15),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.BrandID,e)||(i.pageData.Filter.BrandID=e),p(e)}),r(),a(7,"h6"),n(8,"Tags"),r(),a(9,"ng-select",16),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.TagsID,e)||(i.pageData.Filter.TagsID=e),p(e)}),r(),a(10,"h6"),n(11,"Supplier"),r(),a(12,"autocompleteV2",17),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.SupplierID,e)||(i.pageData.Filter.SupplierID=e),p(e)}),r(),a(13,"h6"),n(14,"From - To"),r(),a(15,"div")(16,"datepicker",18),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),p(e)}),r()(),a(17,"div",19)(18,"datepicker",20),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),p(e)}),r()(),a(19,"h6"),n(20,"Product"),r(),a(21,"autocompleteV2",21),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.ProductID,e)||(i.pageData.Filter.ProductID=e),p(e)}),r()()}if(m&2){let t=s();o(3),g("selectedCategoryID",t.pageData.Filter.CategoryID),c("showClear",!0)("continuedCategoriesOnly",!0),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Brands),g("ngModel",t.pageData.Filter.BrandID),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Tags),g("ngModel",t.pageData.Filter.TagsID),o(3),g("ngModel",t.pageData.Filter.SupplierID),o(4),g("date",t.pageData.Filter.From),o(2),g("date",t.pageData.Filter.To),o(3),g("ngModel",t.pageData.Filter.ProductID)}}function ye(m,S){if(m&1&&(a(0,"tr")(1,"td")(2,"a",22),n(3),r()(),a(4,"td"),n(5),r(),a(6,"td"),n(7),r(),a(8,"td"),n(9),U(10,"date"),r(),a(11,"td"),M(12,"div",23),r()()),m&2){let t=S.$implicit;o(2),c("queryParams",b(9,_e,t.ProductID)),o(),D(t.ProductName),o(2),D(t.ProductCode),o(2),D(t.Modifier),o(2),D(W(10,6,t.Modified,"dd MMM yyyy HH:mm")),o(3),c("innerHTML",t.Note,T)}}var se=class m extends X{constructor(t,d,e,i,y,f,ge,ue){super(t,d,"catalog/Product/GetProductUpdateHistories","catalog/ProductLoader/GetProductUpdateHistories",e,ge,!1,ue);this.httpService=d;this.csvConverter=i;this.matDialog=y;this.roleService=f}openExportModal(){this.matDialog.open(ee,{data:{title:"Product Import Log",exportTypes:[{ID:"productExport/GetExportProductUpdateHistories",Value:"Default"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"catalog/Product/GetCountProductUpdateHistories",pagination:!0}})}static \u0275fac=function(d){return new(d||m)(C(te),C(J),C(G),C(ie),C(Y),C(Q),C(N),C(A))};static \u0275cmp=F({type:m,selectors:[["pos-product-update-history"]],features:[V],decls:26,vars:11,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["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,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear","continuedCategoriesOnly"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["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"],[1,"mt-4"],["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"]],template:function(d,e){if(d&1){let i=w();a(0,"mainpanel-cmp",1),_("textChange",function(f){return l(i),u(e.pageData.Filter.SearchText,f)||(e.pageData.Filter.SearchText=f),p(f)}),x("onSubmit",function(){return l(i),p(e.searchFromPageOne())}),_("filterChange",function(f){return l(i),u(e.pageData.Filter,f)||(e.pageData.Filter=f),p(f)}),P(1,2),I(2,Ce,3,0,"a",3),h(),P(3,4),I(4,fe,22,11,"ng-template",null,0,L),h(),P(6,5),a(7,"div",6)(8,"div",7)(9,"table",8)(10,"thead",9)(11,"tr")(12,"th"),n(13,"Product"),r(),a(14,"th"),n(15,"Code"),r(),a(16,"th"),n(17,"Modified By"),r(),a(18,"th"),n(19,"Modified"),r(),a(20,"th"),n(21,"Note"),r()()(),a(22,"tbody"),E(23,ye,13,11,"tr",null,v),r()()(),a(25,"infinite-pagination",10),x("nextPage",function(){return l(i),p(e.NextPage(!0))})("fetchTotalData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories"))})("concatAllData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories",!0))}),r()(),h(),r()}d&2&&(c("pageData",e.menuData),g("text",e.pageData.Filter.SearchText),c("isFilterOnDropdown",!1),g("filter",e.pageData.Filter),o(2),c("ngIf",e.roleService.global.Export),o(21),H(e.infiniteList),o(2),c("totalData",e.listTotal)("totalCurrentRow",e.infiniteList==null?null:e.infiniteList.length)("pageNumber",e.pageData.Filter.PageNumber)("nextPageDisabled",e.nextPageDisabled)("isFetchTotalData",e.pageData.HideStoreApiCount)("goToLast",e.goToLast))},dependencies:[ne,oe,K,q,z,B,R,ce,pe,$,Z,le,me,de,re,ae,j,O,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{se as ProductUpdateHistoryComponent};
1
+ import{a as ce}from"./chunk-MLBTUOHX.js";import{d as de,e as me}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{e as le}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as X}from"./chunk-23VPQAH7.js";import{f as pe}from"./chunk-GRGZQFG6.js";import{b as ee}from"./chunk-VXPORXGI.js";import"./chunk-5UMDVS4U.js";import"./chunk-3NPCLTJT.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as ie}from"./chunk-J6M7UWVR.js";import{e as oe,f as ne}from"./chunk-UEN2SKB2.js";import"./chunk-7YUPYNWQ.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-EQ4O2B6P.js";import{b as te}from"./chunk-SLYXMED6.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import{F as ae,G as re}from"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import{d as Z,e as $}from"./chunk-THT6CY5E.js";import{g as Y}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as K,h as q,o as z}from"./chunk-DWZ5JTI2.js";import"./chunk-ILTEBIEO.js";import"./chunk-PWTUEIUR.js";import"./chunk-36GWLMZX.js";import{b as Q}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-7AZJVR4Y.js";import{p as G,s as J}from"./chunk-LGOSIAUC.js";import{Bb as v,Db as E,Eb as H,Fb as c,Fc as U,Gb as a,Hb as r,Hc as W,Ib as M,Lc as L,Mb as P,Nb as h,Nd as N,Pb as w,Qa as T,Qd as O,Sb as x,Sd as j,Ub as s,Xa as o,Zc as A,eb as C,hc as n,ib as F,ic as D,jd as R,mb as V,mc as g,nc as u,ob as I,oc as _,qd as k,ta as l,ua as p,vd as B,yc as b}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var _e=m=>({ID:m});function Ce(m,S){if(m&1){let t=w();a(0,"a",11),x("click",function(){l(t);let e=s();return p(e.openExportModal())}),M(1,"i",12),n(2," Export "),r()}}function fe(m,S){if(m&1){let t=w();a(0,"div",13)(1,"h6"),n(2,"Category"),r(),a(3,"POS-product-category-select",14),_("selectedCategoryIDChange",function(e){l(t);let i=s();return u(i.pageData.Filter.CategoryID,e)||(i.pageData.Filter.CategoryID=e),p(e)}),r(),a(4,"h6"),n(5,"Brand"),r(),a(6,"ng-select",15),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.BrandID,e)||(i.pageData.Filter.BrandID=e),p(e)}),r(),a(7,"h6"),n(8,"Tags"),r(),a(9,"ng-select",16),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.TagsID,e)||(i.pageData.Filter.TagsID=e),p(e)}),r(),a(10,"h6"),n(11,"Supplier"),r(),a(12,"autocompleteV2",17),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.SupplierID,e)||(i.pageData.Filter.SupplierID=e),p(e)}),r(),a(13,"h6"),n(14,"From - To"),r(),a(15,"div")(16,"datepicker",18),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),p(e)}),r()(),a(17,"div",19)(18,"datepicker",20),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),p(e)}),r()(),a(19,"h6"),n(20,"Product"),r(),a(21,"autocompleteV2",21),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.ProductID,e)||(i.pageData.Filter.ProductID=e),p(e)}),r()()}if(m&2){let t=s();o(3),g("selectedCategoryID",t.pageData.Filter.CategoryID),c("showClear",!0)("continuedCategoriesOnly",!0),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Brands),g("ngModel",t.pageData.Filter.BrandID),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Tags),g("ngModel",t.pageData.Filter.TagsID),o(3),g("ngModel",t.pageData.Filter.SupplierID),o(4),g("date",t.pageData.Filter.From),o(2),g("date",t.pageData.Filter.To),o(3),g("ngModel",t.pageData.Filter.ProductID)}}function ye(m,S){if(m&1&&(a(0,"tr")(1,"td")(2,"a",22),n(3),r()(),a(4,"td"),n(5),r(),a(6,"td"),n(7),r(),a(8,"td"),n(9),U(10,"date"),r(),a(11,"td"),M(12,"div",23),r()()),m&2){let t=S.$implicit;o(2),c("queryParams",b(9,_e,t.ProductID)),o(),D(t.ProductName),o(2),D(t.ProductCode),o(2),D(t.Modifier),o(2),D(W(10,6,t.Modified,"dd MMM yyyy HH:mm")),o(3),c("innerHTML",t.Note,T)}}var se=class m extends X{constructor(t,d,e,i,y,f,ge,ue){super(t,d,"catalog/Product/GetProductUpdateHistories","catalog/ProductLoader/GetProductUpdateHistories",e,ge,!1,ue);this.httpService=d;this.csvConverter=i;this.matDialog=y;this.roleService=f}openExportModal(){this.matDialog.open(ee,{data:{title:"Product Import Log",exportTypes:[{ID:"productExport/GetExportProductUpdateHistories",Value:"Default"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"catalog/Product/GetCountProductUpdateHistories",pagination:!0}})}static \u0275fac=function(d){return new(d||m)(C(te),C(J),C(G),C(ie),C(Y),C(Q),C(N),C(A))};static \u0275cmp=F({type:m,selectors:[["pos-product-update-history"]],features:[V],decls:26,vars:11,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["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,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear","continuedCategoriesOnly"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["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"],[1,"mt-4"],["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"]],template:function(d,e){if(d&1){let i=w();a(0,"mainpanel-cmp",1),_("textChange",function(f){return l(i),u(e.pageData.Filter.SearchText,f)||(e.pageData.Filter.SearchText=f),p(f)}),x("onSubmit",function(){return l(i),p(e.searchFromPageOne())}),_("filterChange",function(f){return l(i),u(e.pageData.Filter,f)||(e.pageData.Filter=f),p(f)}),P(1,2),I(2,Ce,3,0,"a",3),h(),P(3,4),I(4,fe,22,11,"ng-template",null,0,L),h(),P(6,5),a(7,"div",6)(8,"div",7)(9,"table",8)(10,"thead",9)(11,"tr")(12,"th"),n(13,"Product"),r(),a(14,"th"),n(15,"Code"),r(),a(16,"th"),n(17,"Modified By"),r(),a(18,"th"),n(19,"Modified"),r(),a(20,"th"),n(21,"Note"),r()()(),a(22,"tbody"),E(23,ye,13,11,"tr",null,v),r()()(),a(25,"infinite-pagination",10),x("nextPage",function(){return l(i),p(e.NextPage(!0))})("fetchTotalData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories"))})("concatAllData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories",!0))}),r()(),h(),r()}d&2&&(c("pageData",e.menuData),g("text",e.pageData.Filter.SearchText),c("isFilterOnDropdown",!1),g("filter",e.pageData.Filter),o(2),c("ngIf",e.roleService.global.Export),o(21),H(e.infiniteList),o(2),c("totalData",e.listTotal)("totalCurrentRow",e.infiniteList==null?null:e.infiniteList.length)("pageNumber",e.pageData.Filter.PageNumber)("nextPageDisabled",e.nextPageDisabled)("isFetchTotalData",e.pageData.HideStoreApiCount)("goToLast",e.goToLast))},dependencies:[ne,oe,K,q,z,B,R,ce,pe,$,Z,le,me,de,re,ae,j,O,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{se as ProductUpdateHistoryComponent};
@@ -1 +1 @@
1
- import{a}from"./chunk-E7RGLETU.js";import{K as o}from"./chunk-IEVGW2RT.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
1
+ import{a}from"./chunk-SLYXMED6.js";import{K as o}from"./chunk-IEVGW2RT.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-3CI72KQ3.js";import{a as t}from"./chunk-SNAKHGZS.js";var i=class extends e{constructor(r,a,o,l,s,p,F){super(r,a,o,l,s,p,F)}preInitLoader(){this.loaderPayload=t({ListIDs:this.reportFilterService.initOutletFilter([])},this.loaderPayload)}preInitList(){this.pageData.Filter.ListIDs=this.loaderPayload.ListIDs,this.pageData.Filter.From=this.reportFilterService.initDateFromFilter(this.pageData?.Filter?.From),this.pageData.Filter.To=this.reportFilterService.initDateToFilter(this.pageData?.Filter?.To)}onFilterOutlets(){this.reportFilterService.setOutletFilter(this.pageData.Filter.ListIDs)}onFilterFromDate(){this.reportFilterService.setDateFromFilter(this.pageData?.Filter?.From)}onFilterToDate(){this.reportFilterService.setDateToFilter(this.pageData?.Filter?.To)}};export{i as a};
1
+ import{a as e}from"./chunk-23VPQAH7.js";import{a as t}from"./chunk-SNAKHGZS.js";var i=class extends e{constructor(r,a,o,l,s,p,F){super(r,a,o,l,s,p,F)}preInitLoader(){this.loaderPayload=t({ListIDs:this.reportFilterService.initOutletFilter([])},this.loaderPayload)}preInitList(){this.pageData.Filter.ListIDs=this.loaderPayload.ListIDs,this.pageData.Filter.From=this.reportFilterService.initDateFromFilter(this.pageData?.Filter?.From),this.pageData.Filter.To=this.reportFilterService.initDateToFilter(this.pageData?.Filter?.To)}onFilterOutlets(){this.reportFilterService.setOutletFilter(this.pageData.Filter.ListIDs)}onFilterFromDate(){this.reportFilterService.setDateFromFilter(this.pageData?.Filter?.From)}onFilterToDate(){this.reportFilterService.setDateToFilter(this.pageData?.Filter?.To)}};export{i as a};
@@ -1 +1 @@
1
- import{a as te}from"./chunk-4SRWAPD4.js";import{d as ee}from"./chunk-WMZLH4YK.js";import{a as z,b as J}from"./chunk-AQW4VS3Y.js";import{c as $}from"./chunk-ZVJGTPQY.js";import{b as X}from"./chunk-VXPORXGI.js";import{a as K}from"./chunk-R66UUSM7.js";import{e as Z}from"./chunk-VL552ANV.js";import{b as Y}from"./chunk-E7RGLETU.js";import{g as U}from"./chunk-ZTD4APMR.js";import{h as q,o as H}from"./chunk-DWZ5JTI2.js";import{b as Q}from"./chunk-WFQIMZGL.js";import{p as A,s as G}from"./chunk-LGOSIAUC.js";import{Ab as F,Ac as P,Cb as I,Db as V,Dc as k,Eb as W,Fb as g,Fc as D,Gb as i,Hb as r,Hc as x,Ib as M,Lc as B,Nd as O,Pb as C,Qd as j,Sb as h,Ub as c,Xa as l,eb as f,hc as o,ib as E,ic as v,jc as L,mb as R,mc as S,nc as u,ob as b,oc as y,qd as N,ta as m,ua as s,yb as T}from"./chunk-IEVGW2RT.js";var ae=(p,d,t,n,e,a)=>({LogisticServiceID:p,EntityID:d,From:t,To:n,StartTime:e,EndTime:a}),re=(p,d,t)=>({From:p,To:d,LogisticsServiceID:t});function ne(p,d){if(p&1){let t=C();i(0,"button",4),h("click",function(){m(t);let e=c();return s(e.openExportModal())}),M(1,"i",5),o(2," Export "),r()}}function oe(p,d){if(p&1){let t=C();i(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),i(3,"outlet-selector",7),y("ngModelChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EntityID,e)||(a.pageData.Filter.EntityID=e),s(e)}),r(),i(4,"h6"),o(5,"From"),r(),i(6,"datepicker",8),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),s(e)}),r(),i(7,"h6"),o(8,"To"),r(),i(9,"datepicker",9),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),s(e)}),r(),i(10,"h6"),o(11,"Time"),r(),i(12,"div",10)(13,"div",11)(14,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.StartTime,e)||(a.pageData.Filter.StartTime=e),s(e)}),r()(),i(15,"div",11)(16,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EndTime,e)||(a.pageData.Filter.EndTime=e),s(e)}),r()()()()}if(p&2){let t=c();l(3),g("accessType",2),S("ngModel",t.pageData.Filter.EntityID),g("outlets",t.pageData.Options==null?null:t.pageData.Options.Entities),l(3),S("date",t.pageData.Filter.From),l(3),S("date",t.pageData.Filter.To),l(5),g("fullWidth",!0),S("time",t.pageData.Filter.StartTime),l(2),g("fullWidth",!0),S("time",t.pageData.Filter.EndTime)}}function pe(p,d){if(p&1&&(i(0,"tr")(1,"td"),o(2),r(),i(3,"td"),o(4),r(),i(5,"td",21)(6,"a",22),D(7,"date"),D(8,"date"),o(9),r()(),i(10,"td",21)(11,"a",23),D(12,"date"),D(13,"date"),o(14),r()(),i(15,"td",21),o(16),r()()),p&2){let t=d.$implicit,n=d.$index,e=c(2);l(2),v(n+1),l(2),v(t.Name),l(2),g("queryParams",k(19,ae,t.ID,e.pageData.Filter.EntityID,x(7,7,e.pageData.Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData.Filter.To,"yyyy-MM-dd"),e.pageData.Filter.StartTime,e.pageData.Filter.EndTime)),l(3),L(" ",t.Trans," "),l(2),g("queryParams",P(26,re,x(12,13,e.pageData.Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData.Filter.To,"yyyy-MM-dd"),t.ID)),l(3),L(" ",t.Qty," "),l(2),v(t.Weight)}}function le(p,d){if(p&1){let t=C();i(0,"content")(1,"div",13)(2,"table",14),h("matSortChange",function(e){m(t);let a=c();return s(a.sortData(e))}),i(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),i(7,"th"),o(8,"Logistics Service Name"),r(),i(9,"th",17),o(10,"Trans"),r(),i(11,"th",18),o(12,"Qty"),r(),i(13,"th",19),o(14,"Weight "),i(15,"small",20),o(16,"(gram)"),r()()()(),i(17,"tbody"),V(18,pe,17,30,"tr",null,I),r()()()()}if(p&2){let t=c();l(18),W(t.data.Data)}}var ie=class p extends K{constructor(t,n,e,a,w,_){super(t,n,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,a);this.matDialog=w;this.roleService=_}originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let n=this.data.Data.slice();if(!t.active||t.direction===""){this.data.Data=this.originalData;return}this.data.Data=n.sort((e,a)=>this.compare(e[t.active],a[t.active],t.direction==="asc"))}openExportModal(){this.matDialog.open(X,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,n){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData.Filter[n]=e}static \u0275fac=function(n){return new(n||p)(f(Y),f(G),f(A),f(O),f(U),f(Q))};static \u0275cmp=E({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[R],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(n,e){if(n&1){let a=C();i(0,"mainpanel-cmp",1),y("textChange",function(_){return m(a),u(e.pageData.Filter.Name,_)||(e.pageData.Filter.Name=_),s(_)}),h("onSubmit",function(){return m(a),s(e.searchFromPageOne())}),y("filterChange",function(_){return m(a),u(e.pageData.Filter,_)||(e.pageData.Filter=_),s(_)}),i(1,"actions"),T(2,ne,3,0,"button",2),i(3,"a",3),o(4," View Detail "),r()(),i(5,"filters"),b(6,oe,17,9,"ng-template",null,0,B),r(),T(8,le,20,0,"content"),r()}n&2&&(g("pageData",e.menuData),S("text",e.pageData.Filter.Name),g("isFilterOnDropdown",!1),S("filter",e.pageData.Filter),l(2),F(e.roleService.global.Export?2:-1),l(6),F(e.data?8:-1))},dependencies:[j,q,H,Z,ee,z,J,te,$,N],encapsulation:2})};export{ie as a};
1
+ import{a as te}from"./chunk-4SRWAPD4.js";import{d as ee}from"./chunk-WMZLH4YK.js";import{a as z,b as J}from"./chunk-AQW4VS3Y.js";import{c as $}from"./chunk-W3PBP3KZ.js";import{b as X}from"./chunk-VXPORXGI.js";import{a as K}from"./chunk-5UMDVS4U.js";import{e as Z}from"./chunk-UEN2SKB2.js";import{b as Y}from"./chunk-SLYXMED6.js";import{g as U}from"./chunk-ZTD4APMR.js";import{h as q,o as H}from"./chunk-DWZ5JTI2.js";import{b as Q}from"./chunk-WFQIMZGL.js";import{p as A,s as G}from"./chunk-LGOSIAUC.js";import{Ab as F,Ac as P,Cb as I,Db as V,Dc as k,Eb as W,Fb as g,Fc as D,Gb as i,Hb as r,Hc as x,Ib as M,Lc as B,Nd as O,Pb as C,Qd as j,Sb as h,Ub as c,Xa as l,eb as f,hc as o,ib as E,ic as v,jc as L,mb as R,mc as S,nc as u,ob as b,oc as y,qd as N,ta as m,ua as s,yb as T}from"./chunk-IEVGW2RT.js";var ae=(p,d,t,n,e,a)=>({LogisticServiceID:p,EntityID:d,From:t,To:n,StartTime:e,EndTime:a}),re=(p,d,t)=>({From:p,To:d,LogisticsServiceID:t});function ne(p,d){if(p&1){let t=C();i(0,"button",4),h("click",function(){m(t);let e=c();return s(e.openExportModal())}),M(1,"i",5),o(2," Export "),r()}}function oe(p,d){if(p&1){let t=C();i(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),i(3,"outlet-selector",7),y("ngModelChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EntityID,e)||(a.pageData.Filter.EntityID=e),s(e)}),r(),i(4,"h6"),o(5,"From"),r(),i(6,"datepicker",8),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),s(e)}),r(),i(7,"h6"),o(8,"To"),r(),i(9,"datepicker",9),y("dateChange",function(e){m(t);let a=c();return u(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),s(e)}),r(),i(10,"h6"),o(11,"Time"),r(),i(12,"div",10)(13,"div",11)(14,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.StartTime,e)||(a.pageData.Filter.StartTime=e),s(e)}),r()(),i(15,"div",11)(16,"app-timepicker",12),y("timeChange",function(e){m(t);let a=c();return u(a.pageData.Filter.EndTime,e)||(a.pageData.Filter.EndTime=e),s(e)}),r()()()()}if(p&2){let t=c();l(3),g("accessType",2),S("ngModel",t.pageData.Filter.EntityID),g("outlets",t.pageData.Options==null?null:t.pageData.Options.Entities),l(3),S("date",t.pageData.Filter.From),l(3),S("date",t.pageData.Filter.To),l(5),g("fullWidth",!0),S("time",t.pageData.Filter.StartTime),l(2),g("fullWidth",!0),S("time",t.pageData.Filter.EndTime)}}function pe(p,d){if(p&1&&(i(0,"tr")(1,"td"),o(2),r(),i(3,"td"),o(4),r(),i(5,"td",21)(6,"a",22),D(7,"date"),D(8,"date"),o(9),r()(),i(10,"td",21)(11,"a",23),D(12,"date"),D(13,"date"),o(14),r()(),i(15,"td",21),o(16),r()()),p&2){let t=d.$implicit,n=d.$index,e=c(2);l(2),v(n+1),l(2),v(t.Name),l(2),g("queryParams",k(19,ae,t.ID,e.pageData.Filter.EntityID,x(7,7,e.pageData.Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData.Filter.To,"yyyy-MM-dd"),e.pageData.Filter.StartTime,e.pageData.Filter.EndTime)),l(3),L(" ",t.Trans," "),l(2),g("queryParams",P(26,re,x(12,13,e.pageData.Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData.Filter.To,"yyyy-MM-dd"),t.ID)),l(3),L(" ",t.Qty," "),l(2),v(t.Weight)}}function le(p,d){if(p&1){let t=C();i(0,"content")(1,"div",13)(2,"table",14),h("matSortChange",function(e){m(t);let a=c();return s(a.sortData(e))}),i(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),i(7,"th"),o(8,"Logistics Service Name"),r(),i(9,"th",17),o(10,"Trans"),r(),i(11,"th",18),o(12,"Qty"),r(),i(13,"th",19),o(14,"Weight "),i(15,"small",20),o(16,"(gram)"),r()()()(),i(17,"tbody"),V(18,pe,17,30,"tr",null,I),r()()()()}if(p&2){let t=c();l(18),W(t.data.Data)}}var ie=class p extends K{constructor(t,n,e,a,w,_){super(t,n,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,a);this.matDialog=w;this.roleService=_}originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let n=this.data.Data.slice();if(!t.active||t.direction===""){this.data.Data=this.originalData;return}this.data.Data=n.sort((e,a)=>this.compare(e[t.active],a[t.active],t.direction==="asc"))}openExportModal(){this.matDialog.open(X,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,n){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData.Filter[n]=e}static \u0275fac=function(n){return new(n||p)(f(Y),f(G),f(A),f(O),f(U),f(Q))};static \u0275cmp=E({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[R],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(n,e){if(n&1){let a=C();i(0,"mainpanel-cmp",1),y("textChange",function(_){return m(a),u(e.pageData.Filter.Name,_)||(e.pageData.Filter.Name=_),s(_)}),h("onSubmit",function(){return m(a),s(e.searchFromPageOne())}),y("filterChange",function(_){return m(a),u(e.pageData.Filter,_)||(e.pageData.Filter=_),s(_)}),i(1,"actions"),T(2,ne,3,0,"button",2),i(3,"a",3),o(4," View Detail "),r()(),i(5,"filters"),b(6,oe,17,9,"ng-template",null,0,B),r(),T(8,le,20,0,"content"),r()}n&2&&(g("pageData",e.menuData),S("text",e.pageData.Filter.Name),g("isFilterOnDropdown",!1),S("filter",e.pageData.Filter),l(2),F(e.roleService.global.Export?2:-1),l(6),F(e.data?8:-1))},dependencies:[j,q,H,Z,ee,z,J,te,$,N],encapsulation:2})};export{ie as a};
@@ -1 +1 @@
1
- import{a as O}from"./chunk-5TRWYRN5.js";import{e as Q,f as z}from"./chunk-VL552ANV.js";import"./chunk-4XR5RPFW.js";import{b as H}from"./chunk-E7RGLETU.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as j,c as q}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import{a as T}from"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as N,c as k,h as L,o as F}from"./chunk-DWZ5JTI2.js";import"./chunk-GUN3GLFK.js";import"./chunk-KJ6Y5C2X.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-WMLA5VC3.js";import{p as V,s as B}from"./chunk-LGOSIAUC.js";import{Ab as C,Ca as _,Fb as x,Gb as n,Hb as o,Nd as P,Pb as y,Sb as S,Ub as l,Xa as s,Yb as D,Zb as b,_b as M,cc as R,eb as f,gd as A,hc as r,ib as W,mb as w,mc as d,nc as u,oc as h,ta as c,ua as m,vd as E,yb as g,yc as I}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,v){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,v){if(p&1&&(n(0,"div",23),g(1,J,2,0,"small"),o()),p&2){let t=l(2);s(),C(t.textReceiptInvalidState()?1:-1)}}function X(p,v){if(p&1){let t=y();n(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),S("click",function(){c(t);let e=l();return m(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"input",10),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),m(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",8)(20,"div",11)(21,"input",12),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),m(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",7)(25,"div",8)(26,"div",13)(27,"input",14),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),m(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",8)(31,"div",15)(32,"input",16),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),m(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",4)(36,"div",5)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",17),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",6)(45,"div",7)(46,"div",18)(47,"div",19)(48,"textarea",20,0),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),m(e)}),S("ngModelChange",function(){c(t);let e=l();return m(e.onTextReceiptChange())}),o(),n(50,"label",21),r(51,"Customize E-Receipt Template"),o(),n(52,"div",22),g(53,K,2,1,"div",23),o()()()()()()()()()}if(p&2){let t=R(49),i=l();x("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),x("disabled",i.textReceiptInvalidState()),s(14),d("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),d("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),d("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),d("ngModel",i.formData.WhatsappConfig.From),s(16),d("ngModel",i.formData.WhatsappConfig.TextReceipt),x("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),C((i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched)?53:-1)}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,T.Warning):this.toaster.success("Config has been updated succesfully!",T.Success)}static \u0275fac=function(i){return new(i||p)(f(H),f(B),f(P),f(V))};static \u0275cmp=W({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&D(Y,5),i&2){let a;b(a=M())&&(e.textReceiptCtrl=a.first)}},features:[w],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],[1,"text-danger"]],template:function(i,e){i&1&&g(0,X,54,13,"mainpanel-cmp",1),i&2&&C(e.formData?0:-1)},dependencies:[E,A,z,Q,N,k,L,F,q,j],encapsulation:2})};export{U as WhatsappComponent};
1
+ import{a as O}from"./chunk-WWWSD2MX.js";import{e as Q,f as z}from"./chunk-UEN2SKB2.js";import"./chunk-EQ4O2B6P.js";import{b as H}from"./chunk-SLYXMED6.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as j,c as q}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import{a as T}from"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as N,c as k,h as L,o as F}from"./chunk-DWZ5JTI2.js";import"./chunk-ILTEBIEO.js";import"./chunk-PWTUEIUR.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-7AZJVR4Y.js";import{p as V,s as B}from"./chunk-LGOSIAUC.js";import{Ab as C,Ca as _,Fb as x,Gb as n,Hb as o,Nd as P,Pb as y,Sb as S,Ub as l,Xa as s,Yb as D,Zb as b,_b as M,cc as R,eb as f,gd as A,hc as r,ib as W,mb as w,mc as d,nc as u,oc as h,ta as c,ua as m,vd as E,yb as g,yc as I}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,v){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,v){if(p&1&&(n(0,"div",23),g(1,J,2,0,"small"),o()),p&2){let t=l(2);s(),C(t.textReceiptInvalidState()?1:-1)}}function X(p,v){if(p&1){let t=y();n(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),S("click",function(){c(t);let e=l();return m(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"input",10),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),m(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",8)(20,"div",11)(21,"input",12),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),m(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",7)(25,"div",8)(26,"div",13)(27,"input",14),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),m(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",8)(31,"div",15)(32,"input",16),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),m(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",4)(36,"div",5)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",17),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",6)(45,"div",7)(46,"div",18)(47,"div",19)(48,"textarea",20,0),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),m(e)}),S("ngModelChange",function(){c(t);let e=l();return m(e.onTextReceiptChange())}),o(),n(50,"label",21),r(51,"Customize E-Receipt Template"),o(),n(52,"div",22),g(53,K,2,1,"div",23),o()()()()()()()()()}if(p&2){let t=R(49),i=l();x("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),x("disabled",i.textReceiptInvalidState()),s(14),d("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),d("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),d("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),d("ngModel",i.formData.WhatsappConfig.From),s(16),d("ngModel",i.formData.WhatsappConfig.TextReceipt),x("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),C((i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched)?53:-1)}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,T.Warning):this.toaster.success("Config has been updated succesfully!",T.Success)}static \u0275fac=function(i){return new(i||p)(f(H),f(B),f(P),f(V))};static \u0275cmp=W({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&D(Y,5),i&2){let a;b(a=M())&&(e.textReceiptCtrl=a.first)}},features:[w],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],[1,"text-danger"]],template:function(i,e){i&1&&g(0,X,54,13,"mainpanel-cmp",1),i&2&&C(e.formData?0:-1)},dependencies:[E,A,z,Q,N,k,L,F,q,j],encapsulation:2})};export{U as WhatsappComponent};
@@ -1 +1 @@
1
- import{a as L}from"./chunk-R7X75CAN.js";import{C as N,F as j,G as D,c as P,h as A,i as V,k as I,o as R,p as U}from"./chunk-DWZ5JTI2.js";import{c as k}from"./chunk-GUN3GLFK.js";import"./chunk-KJ6Y5C2X.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as m}from"./chunk-WUV22SZ4.js";import"./chunk-WMLA5VC3.js";import{p as E}from"./chunk-LGOSIAUC.js";import{Gb as i,Hb as n,Ib as u,Pb as y,Pd as M,Sb as h,Xa as b,Yb as _,Zb as S,_b as x,d as f,da as v,eb as d,hc as s,ib as C,mc as w,nc as O,oc as T,ta as l,ua as p}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var F=["totpCode"],z=class g{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){m.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),m.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return m.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return m.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||g)(d(L),d(M),d(k),d(E))};static \u0275cmp=C({type:g,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&_(F,5),t&2){let r;S(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","https://cdn.dealpos.xyz/web-image/TOTP.png",1,"border-0",2,"width","50%"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"]],template:function(t,o){if(t&1){let r=y();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),h("submit",function(){return l(r),p(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),p(a)}),h("keypress",function(a){return l(r),p(o.numberOnly(a))})("ngModelChange",function(a){return l(r),p(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[D,U,P,A,V,N,j,R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:3rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}"]})};export{z as AuthTotpComponent};
1
+ import{a as L}from"./chunk-3TWVKV7J.js";import{C as N,F as j,G as D,c as P,h as A,i as V,k as I,o as R,p as U}from"./chunk-DWZ5JTI2.js";import{c as k}from"./chunk-ILTEBIEO.js";import"./chunk-PWTUEIUR.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as m}from"./chunk-WUV22SZ4.js";import"./chunk-7AZJVR4Y.js";import{p as E}from"./chunk-LGOSIAUC.js";import{Gb as i,Hb as n,Ib as u,Pb as y,Pd as M,Sb as h,Xa as b,Yb as _,Zb as S,_b as x,d as f,da as v,eb as d,hc as s,ib as C,mc as w,nc as O,oc as T,ta as l,ua as p}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var F=["totpCode"],z=class g{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){m.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),m.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return m.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return m.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||g)(d(L),d(M),d(k),d(E))};static \u0275cmp=C({type:g,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&_(F,5),t&2){let r;S(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","https://cdn.dealpos.xyz/web-image/TOTP.png",1,"border-0",2,"width","50%"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"]],template:function(t,o){if(t&1){let r=y();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),h("submit",function(){return l(r),p(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),p(a)}),h("keypress",function(a){return l(r),p(o.numberOnly(a))})("ngModelChange",function(a){return l(r),p(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[D,U,P,A,V,N,j,R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:3rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}"]})};export{z as AuthTotpComponent};