dealpos 25.33.4 → 25.34.1

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 (133) hide show
  1. package/browser/{chunk-BK4IXPIR.js → chunk-26U6TQCL.js} +1 -1
  2. package/browser/{chunk-YQ4PVPM5.js → chunk-2EJP5IOY.js} +1 -1
  3. package/browser/{chunk-UVQKFBA3.js → chunk-2OMEZ74I.js} +1 -1
  4. package/browser/{chunk-Q263EILY.js → chunk-2UN5FQLR.js} +1 -1
  5. package/browser/{chunk-AVFVGWKJ.js → chunk-2XFGPNRX.js} +1 -1
  6. package/browser/{chunk-BKIH33XY.js → chunk-36RGBV34.js} +1 -1
  7. package/browser/{chunk-GLN44K5B.js → chunk-3H3Q54I7.js} +4 -4
  8. package/browser/{chunk-P6EVHTBX.js → chunk-3VA5WMWZ.js} +1 -1
  9. package/browser/{chunk-MK2WRGKB.js → chunk-3YFATA26.js} +1 -1
  10. package/browser/{chunk-LUPAWFDF.js → chunk-3Z5CZZ6X.js} +1 -1
  11. package/browser/{chunk-XMZCWDFS.js → chunk-43CUXODX.js} +1 -1
  12. package/browser/{chunk-UFFPCUVM.js → chunk-4C2QE4YI.js} +1 -1
  13. package/browser/{chunk-C3N7XCPM.js → chunk-4FV2RWKT.js} +1 -1
  14. package/browser/{chunk-CA6TV26I.js → chunk-4MJTGDKH.js} +1 -1
  15. package/browser/{chunk-TZCKFKVH.js → chunk-57JVQ5XT.js} +1 -1
  16. package/browser/{chunk-LTNWX5SW.js → chunk-5GGG4GND.js} +1 -1
  17. package/browser/{chunk-2QIJACIE.js → chunk-5Q3HGSZF.js} +1 -1
  18. package/browser/{chunk-553HEGFQ.js → chunk-5WYC7FO6.js} +1 -1
  19. package/browser/chunk-5ZCNYDCJ.js +1 -0
  20. package/browser/{chunk-GWGVFGLW.js → chunk-64MZA77G.js} +1 -1
  21. package/browser/{chunk-NA4Q6BMJ.js → chunk-6CDGFNNW.js} +1 -1
  22. package/browser/chunk-6FP2SUXE.js +1 -0
  23. package/browser/{chunk-HJCDNWGJ.js → chunk-6IHCBHSE.js} +2 -2
  24. package/browser/{chunk-3GFVCNY7.js → chunk-ALB3KGN5.js} +1 -1
  25. package/browser/chunk-B5FODXLM.js +1 -0
  26. package/browser/{chunk-ZIPQEAWO.js → chunk-BC3QHOF7.js} +1 -1
  27. package/browser/{chunk-WPORWVTJ.js → chunk-BP7CJNHN.js} +1 -1
  28. package/browser/{chunk-O5YBRGFV.js → chunk-BRIR6QQO.js} +1 -1
  29. package/browser/{chunk-P36Z2Q2X.js → chunk-BSUUV75R.js} +12 -12
  30. package/browser/chunk-CAC2DS3M.js +2 -0
  31. package/browser/{chunk-BSA47IFY.js → chunk-CBDM5J7M.js} +1 -1
  32. package/browser/chunk-CHDFAQ7W.js +1 -0
  33. package/browser/{chunk-4INA2GF3.js → chunk-CLYU2LHR.js} +1 -1
  34. package/browser/{chunk-TRURAFXK.js → chunk-COYV3BME.js} +1 -1
  35. package/browser/{chunk-UNERUJ6Z.js → chunk-D52JQ3MJ.js} +1 -1
  36. package/browser/{chunk-DXQHYGPP.js → chunk-D7BXRSNE.js} +1 -1
  37. package/browser/chunk-DF4WNZ6Y.js +112 -0
  38. package/browser/{chunk-MQNAFL66.js → chunk-DNIBZXGV.js} +1 -1
  39. package/browser/{chunk-XMGAU3CI.js → chunk-DWJWACWY.js} +1 -1
  40. package/browser/{chunk-RP7SVRO5.js → chunk-DXHZWPYP.js} +4 -4
  41. package/browser/{chunk-6HWLZ7MY.js → chunk-E2YKI5QV.js} +1 -1
  42. package/browser/chunk-EBSSDFZZ.js +1 -0
  43. package/browser/{chunk-MIBHIYLI.js → chunk-EDH3WSAT.js} +1 -1
  44. package/browser/{chunk-7CO272RZ.js → chunk-EHRDV2Z6.js} +1 -1
  45. package/browser/{chunk-NLCKZQ4P.js → chunk-ETTIK367.js} +1 -1
  46. package/browser/{chunk-L2GIPXK3.js → chunk-FH6QQHH6.js} +1 -1
  47. package/browser/{chunk-URURQSII.js → chunk-FSPLCPQ4.js} +1 -1
  48. package/browser/{chunk-TVWAOPGO.js → chunk-FVJSMI3I.js} +1 -1
  49. package/browser/{chunk-TGR7ISCO.js → chunk-G2QVLA6R.js} +1 -1
  50. package/browser/{chunk-B6QL7KYT.js → chunk-GWG7WRVP.js} +1 -1
  51. package/browser/{chunk-PQUF3LRY.js → chunk-HBAMQBGL.js} +1 -1
  52. package/browser/{chunk-JDEIHSRU.js → chunk-IOAB2GMO.js} +1 -1
  53. package/browser/{chunk-YLSTU3XG.js → chunk-IOEKVELS.js} +1 -1
  54. package/browser/{chunk-4LY2EDTJ.js → chunk-JVZIBM73.js} +1 -1
  55. package/browser/{chunk-F7UBJWRJ.js → chunk-KMKWQ2QP.js} +2 -2
  56. package/browser/{chunk-435MDBXM.js → chunk-LC4PI4K6.js} +1 -1
  57. package/browser/{chunk-3OCFMCN6.js → chunk-LECKNEUZ.js} +1 -1
  58. package/browser/{chunk-KTDI2D2K.js → chunk-LH6HEU7W.js} +1 -1
  59. package/browser/{chunk-L3QWXIFA.js → chunk-LJW4PWIO.js} +1 -1
  60. package/browser/chunk-LKCQXF5A.js +3 -0
  61. package/browser/{chunk-P6VARZ6H.js → chunk-LPZZU4W7.js} +1 -1
  62. package/browser/{chunk-QJZBVGUT.js → chunk-MM6QEKZ2.js} +1 -1
  63. package/browser/{chunk-5T54YPQH.js → chunk-NCORWQZN.js} +1 -1
  64. package/browser/chunk-NJGIKPSO.js +1 -0
  65. package/browser/{chunk-JMXYUPUO.js → chunk-NSFBVDKX.js} +1 -1
  66. package/browser/{chunk-RQ7YZ4OE.js → chunk-NXQTU6P3.js} +1 -1
  67. package/browser/{chunk-ICDQRW4C.js → chunk-NY66EA6F.js} +1 -1
  68. package/browser/{chunk-W5WJIKYL.js → chunk-NZ2SR72R.js} +1 -1
  69. package/browser/{chunk-SZXQWHBO.js → chunk-OAPTDT6R.js} +1 -1
  70. package/browser/{chunk-M2QK4P35.js → chunk-OEP3LYTH.js} +1 -1
  71. package/browser/{chunk-LQ5QJ4EI.js → chunk-OO3NXLPI.js} +1 -1
  72. package/browser/{chunk-375V3DN5.js → chunk-OR7N7CSR.js} +1 -1
  73. package/browser/{chunk-XWKTCN2C.js → chunk-PBQ234TA.js} +1 -1
  74. package/browser/{chunk-BZQATTJG.js → chunk-PDGZ5NZX.js} +1 -1
  75. package/browser/{chunk-JFWQ6WMR.js → chunk-Q2ZU5M5H.js} +1 -1
  76. package/browser/{chunk-2PHUXLDC.js → chunk-QTWO2ON3.js} +1 -1
  77. package/browser/{chunk-ZXNGEXWM.js → chunk-QVISBGAX.js} +1 -1
  78. package/browser/{chunk-GZQ5BZJB.js → chunk-R3UHPMNN.js} +1 -1
  79. package/browser/chunk-RBLT7TTZ.js +1 -0
  80. package/browser/{chunk-ZAAHARXN.js → chunk-RD5HGAJH.js} +1 -1
  81. package/browser/{chunk-TJUAPNY4.js → chunk-RJUFWPXG.js} +1 -1
  82. package/browser/{chunk-YLQ2QXS2.js → chunk-RQ2KLKBZ.js} +1 -1
  83. package/browser/{chunk-J6CP7GKF.js → chunk-RW6DQMII.js} +1 -1
  84. package/browser/{chunk-SAH2VPIY.js → chunk-SCCPP5P5.js} +1 -1
  85. package/browser/{chunk-IVQ3XJSG.js → chunk-SGGVO55K.js} +1 -1
  86. package/browser/{chunk-OWPJAIOW.js → chunk-SM5U723M.js} +1 -1
  87. package/browser/{chunk-IMQWBVV7.js → chunk-SONQYL4J.js} +1 -1
  88. package/browser/{chunk-EMFVMX3G.js → chunk-SQVMTAI2.js} +1 -1
  89. package/browser/chunk-T56QSFQS.js +1 -0
  90. package/browser/{chunk-FUNJUQ3S.js → chunk-TNEGOJTY.js} +1 -1
  91. package/browser/{chunk-QUUBU4GT.js → chunk-UBBDPYIG.js} +2 -2
  92. package/browser/{chunk-GMQQJ63P.js → chunk-UOCP6QTZ.js} +4 -4
  93. package/browser/chunk-UQU2VLMB.js +56 -0
  94. package/browser/{chunk-TC7P4XIL.js → chunk-UZDFE5I7.js} +1 -1
  95. package/browser/chunk-V2QCWCPT.js +1 -0
  96. package/browser/chunk-V2TGWSBG.js +1 -0
  97. package/browser/{chunk-DWWTVIBG.js → chunk-VATYB7D2.js} +1 -1
  98. package/browser/chunk-VBGFPCZ3.js +12 -0
  99. package/browser/{chunk-4DTXPMOC.js → chunk-VFJPOXT6.js} +1 -1
  100. package/browser/{chunk-HWAAQAEK.js → chunk-VSI4JNSZ.js} +1 -1
  101. package/browser/{chunk-53MSULKP.js → chunk-WXMYB7ME.js} +1 -1
  102. package/browser/{chunk-SPKXM3AZ.js → chunk-X3WVCXXG.js} +1 -1
  103. package/browser/{chunk-WGV74EJE.js → chunk-XELFHIVC.js} +1 -1
  104. package/browser/{chunk-H6U6ARBF.js → chunk-XGTQTP5F.js} +1 -1
  105. package/browser/{chunk-HC6D5LEO.js → chunk-XL3XCQTT.js} +1 -1
  106. package/browser/{chunk-IOMMQNQV.js → chunk-Y24SJYT7.js} +1 -1
  107. package/browser/{chunk-QD3KWUXF.js → chunk-Y5C2OLQY.js} +1 -1
  108. package/browser/{chunk-BYAYXFCK.js → chunk-YGOR7BZI.js} +1 -1
  109. package/browser/{chunk-HFR3IPUI.js → chunk-YH5B36PP.js} +1 -1
  110. package/browser/{chunk-HVVCKBEX.js → chunk-YK5T2UAX.js} +1 -1
  111. package/browser/{chunk-N5O35YCN.js → chunk-YKAH43AJ.js} +1 -1
  112. package/browser/{chunk-NE4UQDXL.js → chunk-YZNN2TWC.js} +1 -1
  113. package/browser/{chunk-2YTRQVI6.js → chunk-Z5A2EY24.js} +1 -1
  114. package/browser/{chunk-K2KWXQ27.js → chunk-ZFSUD7PJ.js} +1 -1
  115. package/browser/{chunk-BSC2JMIQ.js → chunk-ZJADGYH2.js} +1 -1
  116. package/browser/index.html +2 -2
  117. package/browser/{main-WA47JMQM.js → main-STTU72FT.js} +2 -2
  118. package/browser/{styles-ANY6A3DA.css → styles-H2UJWE23.css} +1 -1
  119. package/package.json +1 -1
  120. package/browser/chunk-2FVW22TD.js +0 -1
  121. package/browser/chunk-2Y7ETRYY.js +0 -1
  122. package/browser/chunk-3EMHQNR6.js +0 -1
  123. package/browser/chunk-3QFHJ3OF.js +0 -1
  124. package/browser/chunk-5VUVBTN3.js +0 -1
  125. package/browser/chunk-CX4CB4TV.js +0 -111
  126. package/browser/chunk-H3L2TK4O.js +0 -3
  127. package/browser/chunk-ORADADFD.js +0 -1
  128. package/browser/chunk-P7L74ESN.js +0 -56
  129. package/browser/chunk-R3DEXZBW.js +0 -2
  130. package/browser/chunk-S4SIEIC6.js +0 -12
  131. package/browser/chunk-ULY5PCYT.js +0 -1
  132. package/browser/chunk-VEJZIC5M.js +0 -1
  133. package/browser/chunk-Y646VCLW.js +0 -1
@@ -1 +1 @@
1
- import{a as Z}from"./chunk-2JQMOR3F.js";import{d as Y}from"./chunk-M2QK4P35.js";import{b as J}from"./chunk-7CO272RZ.js";import{a as H,b as G}from"./chunk-ZXNGEXWM.js";import{a as Q}from"./chunk-ZIPQEAWO.js";import{a as X}from"./chunk-5KIYRKDB.js";import{h as U}from"./chunk-MQNAFL66.js";import{b as K}from"./chunk-EMFVMX3G.js";import{w as z}from"./chunk-P36Z2Q2X.js";import{h as B,o as j}from"./chunk-K2RY2UAW.js";import{d as q}from"./chunk-7JSHH4R2.js";import{$a as l,Bc as v,Fc as V,Ib as i,Jb as r,Kb as R,Ob as x,Od as k,Qb as C,Rb as d,Rd as N,Vd as O,Yc as W,Yd as A,Zc as M,db as y,ec as o,ed as P,fc as w,gc as T,jc as S,kb as L,kc as u,lc as f,ob as E,qb as D,tc as I,va as s,vb as m,wa as c,wc as b,zc as h}from"./chunk-4JRXN7L6.js";var ee=(p,g,t,n,e,a)=>({LogisticServiceID:p,EntityID:g,From:t,To:n,StartTime:e,EndTime:a}),te=(p,g,t)=>({From:p,To:g,LogisticsServiceID:t});function ie(p,g){if(p&1){let t=x();i(0,"button",5),C("click",function(){s(t);let e=d();return c(e.openExportModal())}),R(1,"i",6),o(2," Export "),r()}}function ae(p,g){if(p&1){let t=x();i(0,"div",7)(1,"h6"),o(2,"Outlet"),r(),i(3,"outlet-selector",8),f("ngModelChange",function(e){s(t);let a=d();return u(a.pageData.Filter.EntityID,e)||(a.pageData.Filter.EntityID=e),c(e)}),r(),i(4,"h6"),o(5,"From"),r(),i(6,"datepicker",9),f("dateChange",function(e){s(t);let a=d();return u(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),c(e)}),r(),i(7,"h6"),o(8,"To"),r(),i(9,"datepicker",10),f("dateChange",function(e){s(t);let a=d();return u(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),c(e)}),r(),i(10,"h6"),o(11,"Time"),r(),i(12,"div",11)(13,"div",12)(14,"app-timepicker",13),f("timeChange",function(e){s(t);let a=d();return u(a.pageData.Filter.StartTime,e)||(a.pageData.Filter.StartTime=e),c(e)}),r()(),i(15,"div",12)(16,"app-timepicker",13),f("timeChange",function(e){s(t);let a=d();return u(a.pageData.Filter.EndTime,e)||(a.pageData.Filter.EndTime=e),c(e)}),r()()()()}if(p&2){let t=d();l(3),m("accessType",2),S("ngModel",t.pageData.Filter.EntityID),m("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),m("fullWidth",!0),S("time",t.pageData.Filter.StartTime),l(2),m("fullWidth",!0),S("time",t.pageData.Filter.EndTime)}}function re(p,g){if(p&1&&(i(0,"tr")(1,"td"),o(2),r(),i(3,"td"),o(4),r(),i(5,"td",23)(6,"a",24),h(7,"date"),h(8,"date"),o(9),r()(),i(10,"td",23)(11,"a",25),h(12,"date"),h(13,"date"),o(14),r()(),i(15,"td",23),o(16),r()()),p&2){let t=g.$implicit,n=g.index,e=d(2);l(2),w(n+1),l(2),w(t.Name),l(2),m("queryParams",b(19,ee,t.ID,e.pageData.Filter.EntityID,v(7,7,e.pageData.Filter.From,"yyyy-MM-dd"),v(8,10,e.pageData.Filter.To,"yyyy-MM-dd"),e.pageData.Filter.StartTime,e.pageData.Filter.EndTime)),l(3),T(" ",t.Trans," "),l(2),m("queryParams",I(26,te,v(12,13,e.pageData.Filter.From,"yyyy-MM-dd"),v(13,16,e.pageData.Filter.To,"yyyy-MM-dd"),t.ID)),l(3),T(" ",t.Qty," "),l(2),w(t.Weight)}}function ne(p,g){if(p&1){let t=x();i(0,"content")(1,"div",14)(2,"table",15),C("matSortChange",function(e){s(t);let a=d();return c(a.sortData(e))}),i(3,"thead",16)(4,"tr")(5,"th",17),o(6,"No"),r(),i(7,"th"),o(8,"Logistics Service Name"),r(),i(9,"th",18),o(10,"Trans"),r(),i(11,"th",19),o(12,"Qty"),r(),i(13,"th",20),o(14,"Weight "),i(15,"small",21),o(16,"(gram)"),r()()()(),i(17,"tbody"),D(18,re,17,30,"tr",22),r()()()()}if(p&2){let t=d();l(18),m("ngForOf",t.data.Data)}}var $=class p extends Q{constructor(t,n,e,a,F,_){super(t,n,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,a);this.matDialog=F;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(J,{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)(y(K),y(A),y(O),y(k),y(z),y(q))};static \u0275cmp=L({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[E],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[4,"ngIf"],[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"],[4,"ngFor","ngForOf"],[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=x();i(0,"mainpanel-cmp",1),f("textChange",function(_){return s(a),u(e.pageData.Filter.Name,_)||(e.pageData.Filter.Name=_),c(_)}),C("onSubmit",function(){return s(a),c(e.searchFromPageOne())}),f("filterChange",function(_){return s(a),u(e.pageData.Filter,_)||(e.pageData.Filter=_),c(_)}),i(1,"actions"),D(2,ie,3,0,"button",2),i(3,"a",3),o(4," View Detail "),r()(),i(5,"filters"),D(6,ae,17,9,"ng-template",null,0,V),r(),D(8,ne,19,1,"content",4),r()}n&2&&(m("pageData",e.menuData),S("text",e.pageData.Filter.Name),m("isFilterOnDropdown",!1),S("filter",e.pageData.Filter),l(2),m("ngIf",e.roleService.global.Export),l(6),m("ngIf",e.data))},dependencies:[W,M,N,B,j,U,Y,H,G,Z,X,P],encapsulation:2})};export{$ as a};
1
+ import{a as Z}from"./chunk-2JQMOR3F.js";import{d as Y}from"./chunk-OEP3LYTH.js";import{b as J}from"./chunk-EHRDV2Z6.js";import{a as H,b as G}from"./chunk-QVISBGAX.js";import{a as Q}from"./chunk-BC3QHOF7.js";import{a as X}from"./chunk-5KIYRKDB.js";import{h as U}from"./chunk-DNIBZXGV.js";import{b as K}from"./chunk-SQVMTAI2.js";import{w as z}from"./chunk-BSUUV75R.js";import{h as B,o as j}from"./chunk-K2RY2UAW.js";import{d as q}from"./chunk-7JSHH4R2.js";import{$a as l,Bc as v,Fc as V,Ib as i,Jb as r,Kb as R,Ob as x,Od as k,Qb as C,Rb as d,Rd as N,Vd as O,Yc as W,Yd as A,Zc as M,db as y,ec as o,ed as P,fc as w,gc as T,jc as S,kb as L,kc as u,lc as f,ob as E,qb as D,tc as I,va as s,vb as m,wa as c,wc as b,zc as h}from"./chunk-4JRXN7L6.js";var ee=(p,g,t,n,e,a)=>({LogisticServiceID:p,EntityID:g,From:t,To:n,StartTime:e,EndTime:a}),te=(p,g,t)=>({From:p,To:g,LogisticsServiceID:t});function ie(p,g){if(p&1){let t=x();i(0,"button",5),C("click",function(){s(t);let e=d();return c(e.openExportModal())}),R(1,"i",6),o(2," Export "),r()}}function ae(p,g){if(p&1){let t=x();i(0,"div",7)(1,"h6"),o(2,"Outlet"),r(),i(3,"outlet-selector",8),f("ngModelChange",function(e){s(t);let a=d();return u(a.pageData.Filter.EntityID,e)||(a.pageData.Filter.EntityID=e),c(e)}),r(),i(4,"h6"),o(5,"From"),r(),i(6,"datepicker",9),f("dateChange",function(e){s(t);let a=d();return u(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),c(e)}),r(),i(7,"h6"),o(8,"To"),r(),i(9,"datepicker",10),f("dateChange",function(e){s(t);let a=d();return u(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),c(e)}),r(),i(10,"h6"),o(11,"Time"),r(),i(12,"div",11)(13,"div",12)(14,"app-timepicker",13),f("timeChange",function(e){s(t);let a=d();return u(a.pageData.Filter.StartTime,e)||(a.pageData.Filter.StartTime=e),c(e)}),r()(),i(15,"div",12)(16,"app-timepicker",13),f("timeChange",function(e){s(t);let a=d();return u(a.pageData.Filter.EndTime,e)||(a.pageData.Filter.EndTime=e),c(e)}),r()()()()}if(p&2){let t=d();l(3),m("accessType",2),S("ngModel",t.pageData.Filter.EntityID),m("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),m("fullWidth",!0),S("time",t.pageData.Filter.StartTime),l(2),m("fullWidth",!0),S("time",t.pageData.Filter.EndTime)}}function re(p,g){if(p&1&&(i(0,"tr")(1,"td"),o(2),r(),i(3,"td"),o(4),r(),i(5,"td",23)(6,"a",24),h(7,"date"),h(8,"date"),o(9),r()(),i(10,"td",23)(11,"a",25),h(12,"date"),h(13,"date"),o(14),r()(),i(15,"td",23),o(16),r()()),p&2){let t=g.$implicit,n=g.index,e=d(2);l(2),w(n+1),l(2),w(t.Name),l(2),m("queryParams",b(19,ee,t.ID,e.pageData.Filter.EntityID,v(7,7,e.pageData.Filter.From,"yyyy-MM-dd"),v(8,10,e.pageData.Filter.To,"yyyy-MM-dd"),e.pageData.Filter.StartTime,e.pageData.Filter.EndTime)),l(3),T(" ",t.Trans," "),l(2),m("queryParams",I(26,te,v(12,13,e.pageData.Filter.From,"yyyy-MM-dd"),v(13,16,e.pageData.Filter.To,"yyyy-MM-dd"),t.ID)),l(3),T(" ",t.Qty," "),l(2),w(t.Weight)}}function ne(p,g){if(p&1){let t=x();i(0,"content")(1,"div",14)(2,"table",15),C("matSortChange",function(e){s(t);let a=d();return c(a.sortData(e))}),i(3,"thead",16)(4,"tr")(5,"th",17),o(6,"No"),r(),i(7,"th"),o(8,"Logistics Service Name"),r(),i(9,"th",18),o(10,"Trans"),r(),i(11,"th",19),o(12,"Qty"),r(),i(13,"th",20),o(14,"Weight "),i(15,"small",21),o(16,"(gram)"),r()()()(),i(17,"tbody"),D(18,re,17,30,"tr",22),r()()()()}if(p&2){let t=d();l(18),m("ngForOf",t.data.Data)}}var $=class p extends Q{constructor(t,n,e,a,F,_){super(t,n,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,a);this.matDialog=F;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(J,{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)(y(K),y(A),y(O),y(k),y(z),y(q))};static \u0275cmp=L({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[E],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[4,"ngIf"],[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"],[4,"ngFor","ngForOf"],[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=x();i(0,"mainpanel-cmp",1),f("textChange",function(_){return s(a),u(e.pageData.Filter.Name,_)||(e.pageData.Filter.Name=_),c(_)}),C("onSubmit",function(){return s(a),c(e.searchFromPageOne())}),f("filterChange",function(_){return s(a),u(e.pageData.Filter,_)||(e.pageData.Filter=_),c(_)}),i(1,"actions"),D(2,ie,3,0,"button",2),i(3,"a",3),o(4," View Detail "),r()(),i(5,"filters"),D(6,ae,17,9,"ng-template",null,0,V),r(),D(8,ne,19,1,"content",4),r()}n&2&&(m("pageData",e.menuData),S("text",e.pageData.Filter.Name),m("isFilterOnDropdown",!1),S("filter",e.pageData.Filter),l(2),m("ngIf",e.roleService.global.Export),l(6),m("ngIf",e.data))},dependencies:[W,M,N,B,j,U,Y,H,G,Z,X,P],encapsulation:2})};export{$ as a};
@@ -1,2 +1,2 @@
1
- import{B as L,C as G,D as q,E as B,u as j,v as V,w as W}from"./chunk-P36Z2Q2X.js";import{ga as P,ha as R}from"./chunk-H34CGBCE.js";import{a as w}from"./chunk-2FWFPV5I.js";import{D as A,a as E,c as O,h as F,o as k}from"./chunk-K2RY2UAW.js";import{a as D}from"./chunk-7JSHH4R2.js";import{$a as r,E as g,Ib as t,Jb as m,Qb as u,Vd as S,Wc as T,Zc as I,db as a,ec as l,gc as d,jc as C,jd as f,kb as p,kc as M,lc as h,pc as _,qb as N,sc as y,vb as s}from"./chunk-4JRXN7L6.js";var b=class n{constructor(e,i,o){this.dialogRef=e;this.data=i;this.toastr=o;this.config.title=`Edit ${i.transactionType} Number`,this.config.customWidth="300px",this.invoiceNumber=i.invoiceNumber,this.transactionType=i.transactionType}config=new G;invoiceNumber;transactionType;ok(){D.IsNotEmpty(this.invoiceNumber)?this.dialogRef.close(this.invoiceNumber):this.toastr.info("Invoice number can not be empty",w.Info)}static \u0275fac=function(i){return new(i||n)(a(j),a(V),a(S))};static \u0275cmp=p({type:n,selectors:[["POS-modal-invoice-number"]],decls:6,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"form-floating-outline","m-0"],["type","text","id","invoiceNumber","name","invoiceNumber",1,"form-control",3,"ngModelChange","ngModel"],["for","invoiceNumber"]],template:function(i,o){i&1&&(t(0,"modal-material",0),u("onOk",function(){return o.ok()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t(1,"content")(2,"div",1)(3,"input",2),h("ngModelChange",function(v){return M(o.invoiceNumber,v)||(o.invoiceNumber=v),v}),m(),t(4,"label",3),l(5),m()()()()),i&2&&(s("config",o.config),r(3),C("ngModel",o.invoiceNumber),r(2),d("",o.transactionType," Number"))},dependencies:[f,A,O,F,k,B,q],encapsulation:2})};var K=(n,e)=>({"px-2 py-2 number-disabled":n,pointer:e});function Q(n,e){n&1&&(t(0,"span"),l(1,"Editing"),m())}var H=class n{constructor(e){this.matDialog=e}isEdit=!1;transactionType="Purchase Order";disabled=!1;invoiceNumber="";onChange=e=>{};onTouched=()=>{};writeValue(e){this.invoiceNumber=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}openModalSelectOutlet(){this.disabled||this.matDialog.open(b,{data:{transactionType:this.transactionType,invoiceNumber:this.invoiceNumber}}).afterClosed().pipe(g(e=>e)).subscribe(e=>{this.invoiceNumber=e,this.onChange(this.invoiceNumber)})}static \u0275fac=function(i){return new(i||n)(a(W))};static \u0275cmp=p({type:n,selectors:[["POS-invoice-number-form"]],inputs:{isEdit:"isEdit",transactionType:"transactionType"},features:[_([{provide:E,multi:!0,useExisting:n}])],decls:3,vars:7,consts:[[1,"fw-normal",3,"click","ngClass","matTooltip"],[4,"ngIf"]],template:function(i,o){i&1&&(t(0,"h6",0),u("click",function(){return o.openModalSelectOutlet()}),N(1,Q,2,0,"span",1),l(2),m()),i&2&&(s("ngClass",y(4,K,o.disabled,!o.disabled))("matTooltip",o.disabled?"Number Edit role is required":""),r(),s("ngIf",o.isEdit),r(),d(" ",o.invoiceNumber?o.transactionType+" #"+o.invoiceNumber:"Order Number",`
1
+ import{B as L,C as G,D as q,E as B,u as j,v as V,w as W}from"./chunk-BSUUV75R.js";import{ga as P,ha as R}from"./chunk-H34CGBCE.js";import{a as w}from"./chunk-2FWFPV5I.js";import{D as A,a as E,c as O,h as F,o as k}from"./chunk-K2RY2UAW.js";import{a as D}from"./chunk-7JSHH4R2.js";import{$a as r,E as g,Ib as t,Jb as m,Qb as u,Vd as S,Wc as T,Zc as I,db as a,ec as l,gc as d,jc as C,jd as f,kb as p,kc as M,lc as h,pc as _,qb as N,sc as y,vb as s}from"./chunk-4JRXN7L6.js";var b=class n{constructor(e,i,o){this.dialogRef=e;this.data=i;this.toastr=o;this.config.title=`Edit ${i.transactionType} Number`,this.config.customWidth="300px",this.invoiceNumber=i.invoiceNumber,this.transactionType=i.transactionType}config=new G;invoiceNumber;transactionType;ok(){D.IsNotEmpty(this.invoiceNumber)?this.dialogRef.close(this.invoiceNumber):this.toastr.info("Invoice number can not be empty",w.Info)}static \u0275fac=function(i){return new(i||n)(a(j),a(V),a(S))};static \u0275cmp=p({type:n,selectors:[["POS-modal-invoice-number"]],decls:6,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"form-floating-outline","m-0"],["type","text","id","invoiceNumber","name","invoiceNumber",1,"form-control",3,"ngModelChange","ngModel"],["for","invoiceNumber"]],template:function(i,o){i&1&&(t(0,"modal-material",0),u("onOk",function(){return o.ok()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t(1,"content")(2,"div",1)(3,"input",2),h("ngModelChange",function(v){return M(o.invoiceNumber,v)||(o.invoiceNumber=v),v}),m(),t(4,"label",3),l(5),m()()()()),i&2&&(s("config",o.config),r(3),C("ngModel",o.invoiceNumber),r(2),d("",o.transactionType," Number"))},dependencies:[f,A,O,F,k,B,q],encapsulation:2})};var K=(n,e)=>({"px-2 py-2 number-disabled":n,pointer:e});function Q(n,e){n&1&&(t(0,"span"),l(1,"Editing"),m())}var H=class n{constructor(e){this.matDialog=e}isEdit=!1;transactionType="Purchase Order";disabled=!1;invoiceNumber="";onChange=e=>{};onTouched=()=>{};writeValue(e){this.invoiceNumber=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}openModalSelectOutlet(){this.disabled||this.matDialog.open(b,{data:{transactionType:this.transactionType,invoiceNumber:this.invoiceNumber}}).afterClosed().pipe(g(e=>e)).subscribe(e=>{this.invoiceNumber=e,this.onChange(this.invoiceNumber)})}static \u0275fac=function(i){return new(i||n)(a(W))};static \u0275cmp=p({type:n,selectors:[["POS-invoice-number-form"]],inputs:{isEdit:"isEdit",transactionType:"transactionType"},features:[_([{provide:E,multi:!0,useExisting:n}])],decls:3,vars:7,consts:[[1,"fw-normal",3,"click","ngClass","matTooltip"],[4,"ngIf"]],template:function(i,o){i&1&&(t(0,"h6",0),u("click",function(){return o.openModalSelectOutlet()}),N(1,Q,2,0,"span",1),l(2),m()),i&2&&(s("ngClass",y(4,K,o.disabled,!o.disabled))("matTooltip",o.disabled?"Number Edit role is required":""),r(),s("ngIf",o.isEdit),r(),d(" ",o.invoiceNumber?o.transactionType+" #"+o.invoiceNumber:"Order Number",`
2
2
  `))},dependencies:[f,T,I,L,R,P],styles:[".number-disabled[_ngcontent-%COMP%]{background-color:#ebebe4}"]})};export{H as a};
@@ -1 +1 @@
1
- import{h as z,i as S}from"./chunk-MQNAFL66.js";import"./chunk-WPORWVTJ.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-P36Z2Q2X.js";import"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import"./chunk-K2RY2UAW.js";import"./chunk-BSC2JMIQ.js";import"./chunk-UFFPCUVM.js";import"./chunk-7JSHH4R2.js";import"./chunk-DWWTVIBG.js";import{$a as p,Ib as o,Jb as i,Kb as g,Qd as x,Td as l,db as d,ec as r,fc as v,jd as M,ka as a,kb as h,lb as s,vb as f}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var m=class e{constructor(n){this.router=n;console.log(this.router.getCurrentNavigation()),console.log(this.router.lastSuccessfulNavigation),this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role??localStorage.getItem("role"),localStorage.setItem("role",this.role),console.log(this.previousPage)}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(d(x))};static \u0275cmp=h({type:e,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(t,c){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),r(7,"You are not authorized"),i(),o(8,"p"),r(9," This page require "),o(10,"span",5),r(11),i(),r(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(f("pageData",c.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),p(11),v(c.role))},dependencies:[z],encapsulation:2})};var D=[{path:"Main/Unauthorized",component:m},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],u=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[l.forChild(D),l]})};var y=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[M,u,S]})};export{y as UnauthorizedModule};
1
+ import{h as z,i as S}from"./chunk-DNIBZXGV.js";import"./chunk-BP7CJNHN.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import"./chunk-K2RY2UAW.js";import"./chunk-ZJADGYH2.js";import"./chunk-4C2QE4YI.js";import"./chunk-7JSHH4R2.js";import"./chunk-VATYB7D2.js";import{$a as p,Ib as o,Jb as i,Kb as g,Qd as x,Td as l,db as d,ec as r,fc as v,jd as M,ka as a,kb as h,lb as s,vb as f}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var m=class e{constructor(n){this.router=n;console.log(this.router.getCurrentNavigation()),console.log(this.router.lastSuccessfulNavigation),this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role??localStorage.getItem("role"),localStorage.setItem("role",this.role),console.log(this.previousPage)}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(d(x))};static \u0275cmp=h({type:e,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(t,c){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),r(7,"You are not authorized"),i(),o(8,"p"),r(9," This page require "),o(10,"span",5),r(11),i(),r(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(f("pageData",c.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),p(11),v(c.role))},dependencies:[z],encapsulation:2})};var D=[{path:"Main/Unauthorized",component:m},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],u=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[l.forChild(D),l]})};var y=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[M,u,S]})};export{y as UnauthorizedModule};
@@ -1 +1 @@
1
- import{c as N}from"./chunk-BSC2JMIQ.js";import"./chunk-UFFPCUVM.js";import{a as D}from"./chunk-7JSHH4R2.js";import"./chunk-DWWTVIBG.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],["class","text-start mt-7",4,"ngIf"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],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:2rem}@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}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{Z as AuthGeolocationComponent};
1
+ import{c as N}from"./chunk-ZJADGYH2.js";import"./chunk-4C2QE4YI.js";import{a as D}from"./chunk-7JSHH4R2.js";import"./chunk-VATYB7D2.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],["class","text-start mt-7",4,"ngIf"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],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:2rem}@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}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{Z as AuthGeolocationComponent};
@@ -1,2 +1,2 @@
1
- import{c as W,e as X}from"./chunk-M2QK4P35.js";import{b as U}from"./chunk-HVVCKBEX.js";import{a as Q}from"./chunk-ZW6IATXM.js";import{a as A,b as V,c as F,h as N,i as O,j,k as H,l as z,m as q,n as G,o as J,p as M,q as K}from"./chunk-XMGAU3CI.js";import{c as I,d as P}from"./chunk-NE4UQDXL.js";import{j as B,m as L}from"./chunk-P36Z2Q2X.js";import{D as R}from"./chunk-K2RY2UAW.js";import{$a as p,Fa as h,Ib as d,Jb as c,Kb as y,Lb as Y,Mb as x,Ob as g,Qb as s,Rb as E,Zc as S,dc as f,ec as D,jd as b,ka as _,kb as C,lb as k,pc as T,qb as w,va as o,vb as l,wa as m,wb as v}from"./chunk-4JRXN7L6.js";function ee(n,t){if(n&1){let e=g();Y(0),d(1,"mat-date-range-picker-actions")(2,"button",7),D(3,"Cancel"),c(),d(4,"button",8),s("click",function(){o(e);let i=E();return m(i.onSelectDate())}),D(5,"Search"),c()(),x()}}var te={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Z=class n{placeholder;displayToggle;minDate;maxDate;showButtonConfirm=!1;width;dateChange=new h;from;to;fromDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.from=e}}toDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.to=e,this.showButtonConfirm||this.emitDateChange()}}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=C({type:n,selectors:[["app-datepicker-range"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",minDate:"minDate",maxDate:"maxDate",showButtonConfirm:"showButtonConfirm",width:"width",from:"from",to:"to"},outputs:{dateChange:"dateChange"},standalone:!1,features:[T([{provide:V,useClass:W,deps:[A]},{provide:F,useValue:te}])],decls:8,vars:9,consts:[["picker",""],["appearance","outline",1,"p-0","date-range"],["id","dates",3,"min","max","rangePicker"],["matStartDate","","placeholder","Start date",3,"dateChange","click","value"],["matEndDate","","placeholder","End date",3,"dateChange","click","value"],["matSuffix","",3,"for"],[4,"ngIf"],["mat-button","","matDateRangePickerCancel",""],["mat-raised-button","","color","primary","matDateRangePickerApply","",3,"click"]],template:function(e,a){if(e&1){let i=g();d(0,"mat-form-field",1)(1,"mat-date-range-input",2)(2,"input",3),s("dateChange",function(r){return o(i),m(a.fromDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),c(),d(3,"input",4),s("dateChange",function(r){return o(i),m(a.toDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),c()(),y(4,"mat-datepicker-toggle",5),d(5,"mat-date-range-picker",null,0),w(7,ee,6,0,"ng-container",6),c()()}if(e&2){let i=f(6);v("width",a.width||100,"%"),p(),l("min",a.minDate)("max",a.maxDate)("rangePicker",i),p(),l("value",a.from),p(),l("value",a.to),p(),l("for",i),p(3),l("ngIf",a.showButtonConfirm)}},dependencies:[S,N,O,j,H,z,J,G,q,L,B,I],styles:[`mat-form-field.date-range>div.mat-mdc-form-field-wrapper{padding-bottom:0!important}mat-form-field.date-range .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:14px!important}mat-form-field.date-range .mat-mdc-form-field-icon-prefix{padding:0!important}mat-form-field.date-range .mat-date-range-input-container{margin-top:6px;font-size:11px}mat-form-field.date-range .mat-mdc-form-field-icon-suffix{padding:0!important}
1
+ import{c as W,e as X}from"./chunk-OEP3LYTH.js";import{b as U}from"./chunk-YK5T2UAX.js";import{a as Q}from"./chunk-ZW6IATXM.js";import{a as A,b as V,c as F,h as N,i as O,j,k as H,l as z,m as q,n as G,o as J,p as M,q as K}from"./chunk-DWJWACWY.js";import{c as I,d as P}from"./chunk-YZNN2TWC.js";import{j as B,m as L}from"./chunk-BSUUV75R.js";import{D as R}from"./chunk-K2RY2UAW.js";import{$a as p,Fa as h,Ib as d,Jb as c,Kb as y,Lb as Y,Mb as x,Ob as g,Qb as s,Rb as E,Zc as S,dc as f,ec as D,jd as b,ka as _,kb as C,lb as k,pc as T,qb as w,va as o,vb as l,wa as m,wb as v}from"./chunk-4JRXN7L6.js";function ee(n,t){if(n&1){let e=g();Y(0),d(1,"mat-date-range-picker-actions")(2,"button",7),D(3,"Cancel"),c(),d(4,"button",8),s("click",function(){o(e);let i=E();return m(i.onSelectDate())}),D(5,"Search"),c()(),x()}}var te={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Z=class n{placeholder;displayToggle;minDate;maxDate;showButtonConfirm=!1;width;dateChange=new h;from;to;fromDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.from=e}}toDateChange(t){if(t){let e=t.toDate();e.setHours(0,0,0,0),this.to=e,this.showButtonConfirm||this.emitDateChange()}}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=C({type:n,selectors:[["app-datepicker-range"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",minDate:"minDate",maxDate:"maxDate",showButtonConfirm:"showButtonConfirm",width:"width",from:"from",to:"to"},outputs:{dateChange:"dateChange"},standalone:!1,features:[T([{provide:V,useClass:W,deps:[A]},{provide:F,useValue:te}])],decls:8,vars:9,consts:[["picker",""],["appearance","outline",1,"p-0","date-range"],["id","dates",3,"min","max","rangePicker"],["matStartDate","","placeholder","Start date",3,"dateChange","click","value"],["matEndDate","","placeholder","End date",3,"dateChange","click","value"],["matSuffix","",3,"for"],[4,"ngIf"],["mat-button","","matDateRangePickerCancel",""],["mat-raised-button","","color","primary","matDateRangePickerApply","",3,"click"]],template:function(e,a){if(e&1){let i=g();d(0,"mat-form-field",1)(1,"mat-date-range-input",2)(2,"input",3),s("dateChange",function(r){return o(i),m(a.fromDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),c(),d(3,"input",4),s("dateChange",function(r){return o(i),m(a.toDateChange(r.value))})("click",function(){o(i);let r=f(6);return m(r.open())}),c()(),y(4,"mat-datepicker-toggle",5),d(5,"mat-date-range-picker",null,0),w(7,ee,6,0,"ng-container",6),c()()}if(e&2){let i=f(6);v("width",a.width||100,"%"),p(),l("min",a.minDate)("max",a.maxDate)("rangePicker",i),p(),l("value",a.from),p(),l("value",a.to),p(),l("for",i),p(3),l("ngIf",a.showButtonConfirm)}},dependencies:[S,N,O,j,H,z,J,G,q,L,B,I],styles:[`mat-form-field.date-range>div.mat-mdc-form-field-wrapper{padding-bottom:0!important}mat-form-field.date-range .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:14px!important}mat-form-field.date-range .mat-mdc-form-field-icon-prefix{padding:0!important}mat-form-field.date-range .mat-date-range-input-container{margin-top:6px;font-size:11px}mat-form-field.date-range .mat-mdc-form-field-icon-suffix{padding:0!important}
2
2
  `],encapsulation:2})},$=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=k({type:n});static \u0275inj=_({providers:[M],imports:[b,K,M,Q,X,U,R,P]})};export{Z as a,$ as b};