marketplacepos 5.41.3 → 5.43.0

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 (219) hide show
  1. package/Marketplace/3rdpartylicenses.txt +123 -123
  2. package/Marketplace/chunk-24DT5FN2.js +1 -0
  3. package/Marketplace/{chunk-5MRT2EFE.js → chunk-25OT4I3W.js} +1 -1
  4. package/Marketplace/chunk-2BUABOHG.js +1 -0
  5. package/Marketplace/{chunk-7GQIIDFF.js → chunk-2DJWDXTZ.js} +1 -1
  6. package/Marketplace/chunk-2EL3WEWS.js +1 -0
  7. package/Marketplace/chunk-2SXRC4IG.js +1 -0
  8. package/Marketplace/{chunk-KXZCGKQW.js → chunk-2TZBEYNY.js} +1 -1
  9. package/Marketplace/chunk-2ZTDLZVZ.js +1 -0
  10. package/Marketplace/chunk-33IXC6UG.js +1 -0
  11. package/Marketplace/chunk-3Y6LJS2H.js +1 -0
  12. package/Marketplace/{chunk-7477X7LJ.js → chunk-4CTORK4F.js} +1 -1
  13. package/Marketplace/{chunk-BUFEIJAI.js → chunk-4M63ID5T.js} +1 -1
  14. package/Marketplace/chunk-4PZ5Q3HI.js +1 -0
  15. package/Marketplace/{chunk-RVYGL22E.js → chunk-55OI2SUF.js} +1 -1
  16. package/Marketplace/chunk-5DIRXS7I.js +1 -0
  17. package/Marketplace/chunk-5EQNOCXP.js +1 -0
  18. package/Marketplace/chunk-5QAURMZF.js +222 -0
  19. package/Marketplace/{chunk-V2OJQHE3.js → chunk-5XI7HWS5.js} +2 -2
  20. package/Marketplace/chunk-66YHNWRR.js +1 -0
  21. package/Marketplace/chunk-6BFXOKCB.js +1 -0
  22. package/Marketplace/chunk-6DZKFXDF.js +1 -0
  23. package/Marketplace/chunk-6IFZ2TO6.js +1 -0
  24. package/Marketplace/{chunk-Q72ZXPDP.js → chunk-6LH7FSOW.js} +1 -1
  25. package/Marketplace/chunk-6LULIB2P.js +2 -0
  26. package/Marketplace/{chunk-OLSC6KHB.js → chunk-6MPSYC77.js} +1 -1
  27. package/Marketplace/chunk-6QGSDBR7.js +1 -0
  28. package/Marketplace/{chunk-BIQHA7UA.js → chunk-6X2OBNJQ.js} +4 -4
  29. package/Marketplace/chunk-736E275F.js +1 -0
  30. package/Marketplace/{chunk-IYYVZ6B6.js → chunk-A2YNWIX6.js} +1 -1
  31. package/Marketplace/chunk-A4F37V57.js +1 -0
  32. package/Marketplace/{chunk-NMJGLMWI.js → chunk-ABQG3LB5.js} +1 -1
  33. package/Marketplace/{chunk-77IUCPIQ.js → chunk-ACIMXBIC.js} +1 -1
  34. package/Marketplace/chunk-AGRVVEIR.js +397 -0
  35. package/Marketplace/chunk-ALKC77XL.js +78 -0
  36. package/Marketplace/chunk-ARZ2S6YD.js +1 -0
  37. package/Marketplace/chunk-AVEGIEYT.js +193 -0
  38. package/Marketplace/chunk-AVVPZ3NI.js +1 -0
  39. package/Marketplace/chunk-AZ2FLWCK.js +266 -0
  40. package/Marketplace/chunk-BAYW2AHI.js +1 -0
  41. package/Marketplace/chunk-BCM6WRZR.js +5 -0
  42. package/Marketplace/chunk-BQTUAYGY.js +1 -0
  43. package/Marketplace/chunk-CFC5CQ3V.js +1 -0
  44. package/Marketplace/chunk-CLDURV35.js +2 -0
  45. package/Marketplace/chunk-CRZOIZUQ.js +1 -0
  46. package/Marketplace/chunk-CSSG7NAJ.js +1 -0
  47. package/Marketplace/chunk-D66XCOBY.js +1 -0
  48. package/Marketplace/chunk-DIUEZVRG.js +1 -0
  49. package/Marketplace/chunk-DJILLV4M.js +1 -0
  50. package/Marketplace/chunk-DLSU35PZ.js +5 -0
  51. package/Marketplace/chunk-DMW4DWIM.js +1 -0
  52. package/Marketplace/{chunk-ZD5LURJS.js → chunk-E2CS7ZMC.js} +1 -1
  53. package/Marketplace/chunk-ECN3QRMT.js +1 -0
  54. package/Marketplace/chunk-EU2KAMEK.js +1 -0
  55. package/Marketplace/chunk-F4GMWHYJ.js +33 -0
  56. package/Marketplace/chunk-F4HFUSVI.js +1 -0
  57. package/Marketplace/{chunk-RGR34QZ3.js → chunk-FBZW4Y3J.js} +1 -1
  58. package/Marketplace/{chunk-6NNAICJE.js → chunk-FWG4H3QG.js} +1 -1
  59. package/Marketplace/chunk-G4OF4YLE.js +2 -0
  60. package/Marketplace/chunk-GCECFUOP.js +1 -0
  61. package/Marketplace/{chunk-UBMI3NQH.js → chunk-GHBGGQNM.js} +1 -1
  62. package/Marketplace/chunk-GMGCY3OL.js +1 -0
  63. package/Marketplace/chunk-GOS4RIF2.js +1 -0
  64. package/Marketplace/{chunk-IEYFOHME.js → chunk-GPC4DECX.js} +1 -1
  65. package/Marketplace/chunk-GZXQUJKX.js +1 -0
  66. package/Marketplace/{chunk-TMFFA26Y.js → chunk-HFKKITEW.js} +1 -1
  67. package/Marketplace/{chunk-KHWTOD6H.js → chunk-HPYTL6TX.js} +1 -1
  68. package/Marketplace/chunk-HTQJCQ32.js +1 -0
  69. package/Marketplace/chunk-I5IZPTXZ.js +1 -0
  70. package/Marketplace/{chunk-GBABJLPQ.js → chunk-IKPRRD5D.js} +1 -1
  71. package/Marketplace/chunk-IR5OMZTZ.js +1 -0
  72. package/Marketplace/chunk-ITTTKW6F.js +1 -0
  73. package/Marketplace/chunk-IUWXRFDI.js +1 -0
  74. package/Marketplace/{chunk-EGTYAIU5.js → chunk-JOBWFOGC.js} +1 -1
  75. package/Marketplace/{chunk-PPDHTO44.js → chunk-JRWFZQ5K.js} +1 -1
  76. package/Marketplace/chunk-JRXB6762.js +252 -0
  77. package/Marketplace/chunk-JS55A2RS.js +7 -0
  78. package/Marketplace/chunk-JV4MMNGD.js +79 -0
  79. package/Marketplace/chunk-K654EZ3I.js +1 -0
  80. package/Marketplace/chunk-KC3C62UO.js +4 -0
  81. package/Marketplace/{chunk-GBXNTL4E.js → chunk-KQQCKHF3.js} +1 -1
  82. package/Marketplace/chunk-KR2UT3GA.js +1 -0
  83. package/Marketplace/chunk-KWQS4KX7.js +1 -0
  84. package/Marketplace/{chunk-COBHWPGI.js → chunk-KX5AWR75.js} +1 -1
  85. package/Marketplace/chunk-KXS76PRS.js +70 -0
  86. package/Marketplace/chunk-KYIY3VQ6.js +141 -0
  87. package/Marketplace/{chunk-J7AGLBPL.js → chunk-LHD7CYML.js} +1 -1
  88. package/Marketplace/chunk-LR4UZ2OS.js +30 -0
  89. package/Marketplace/{chunk-M3SJUKTG.js → chunk-LSXUXG54.js} +1 -1
  90. package/Marketplace/chunk-LWSRD5LF.js +1 -0
  91. package/Marketplace/{chunk-Q2OEJFVT.js → chunk-M5IQRAHV.js} +1 -1
  92. package/Marketplace/chunk-MKOJVMRR.js +1 -0
  93. package/Marketplace/chunk-MMT3VFZZ.js +1 -0
  94. package/Marketplace/{chunk-RIHLYYZU.js → chunk-MQXPOHBV.js} +1 -1
  95. package/Marketplace/chunk-MTUIRWOB.js +2 -0
  96. package/Marketplace/chunk-MZI5AYCE.js +1 -0
  97. package/Marketplace/chunk-NB5XHM62.js +1 -0
  98. package/Marketplace/{chunk-JBKHY4HH.js → chunk-NRCXYGO3.js} +5 -5
  99. package/Marketplace/chunk-NTW6FBP5.js +1 -0
  100. package/Marketplace/chunk-NZA4BEER.js +102 -0
  101. package/Marketplace/chunk-O55KM5KY.js +1 -0
  102. package/Marketplace/chunk-O6U5QCHJ.js +1 -0
  103. package/Marketplace/chunk-OJWFYXZX.js +1 -0
  104. package/Marketplace/{chunk-G6EG5QJS.js → chunk-OKAPL3YZ.js} +1 -1
  105. package/Marketplace/chunk-OTFACGUB.js +1 -0
  106. package/Marketplace/{chunk-WAW37FIG.js → chunk-OZ77CAJD.js} +1 -1
  107. package/Marketplace/chunk-OZ7LWNOK.js +15 -0
  108. package/Marketplace/chunk-PB2SJSML.js +1 -0
  109. package/Marketplace/chunk-PE5AFID4.js +1 -0
  110. package/Marketplace/{chunk-7TWBIV3T.js → chunk-PO7JVKK3.js} +1 -1
  111. package/Marketplace/chunk-PW42BQIY.js +1 -0
  112. package/Marketplace/chunk-PZ4PSWYM.js +3 -0
  113. package/Marketplace/chunk-QACWANJT.js +1 -0
  114. package/Marketplace/chunk-QUXUEWEF.js +1 -0
  115. package/Marketplace/chunk-R22TUWCL.js +15 -0
  116. package/Marketplace/{chunk-75BDXSG3.js → chunk-R76V3PTN.js} +10 -10
  117. package/Marketplace/chunk-RCRPQNNW.js +1 -0
  118. package/Marketplace/chunk-SACERVTF.js +1 -0
  119. package/Marketplace/chunk-SDKAJBVB.js +1 -0
  120. package/Marketplace/{chunk-VGXQU74M.js → chunk-SH7KN2AS.js} +1 -1
  121. package/Marketplace/{chunk-CH2MLZU7.js → chunk-SIYMMMKQ.js} +1 -1
  122. package/Marketplace/chunk-SLQA5QBT.js +1 -0
  123. package/Marketplace/chunk-SMCI6XBO.js +1 -0
  124. package/Marketplace/chunk-SNDG7727.js +1 -0
  125. package/Marketplace/{chunk-QCZIDOKW.js → chunk-SXLKJLAE.js} +1 -1
  126. package/Marketplace/{chunk-6IAGGRZN.js → chunk-SYENQYR7.js} +1 -1
  127. package/Marketplace/chunk-T2IGESWD.js +1 -0
  128. package/Marketplace/chunk-T3Z5OMIZ.js +1 -0
  129. package/Marketplace/{chunk-V5WYSCVT.js → chunk-TGMCGROM.js} +1 -1
  130. package/Marketplace/chunk-TGN4NMQY.js +1 -0
  131. package/Marketplace/{chunk-OE2JYQHN.js → chunk-TNKPTRB3.js} +1 -1
  132. package/Marketplace/{chunk-DRSUXHAY.js → chunk-UBB6E4VL.js} +1 -1
  133. package/Marketplace/chunk-UDIAPGRB.js +1 -0
  134. package/Marketplace/chunk-UEWZXE4O.js +1 -0
  135. package/Marketplace/chunk-UF4FKEE7.js +93 -0
  136. package/Marketplace/chunk-UJYSVGLV.js +1 -0
  137. package/Marketplace/{chunk-5GX2GLRY.js → chunk-UMY6NG57.js} +1 -1
  138. package/Marketplace/{chunk-YXFTLQ5M.js → chunk-UPYS4A4M.js} +1 -1
  139. package/Marketplace/chunk-VRI3CYGG.js +1 -0
  140. package/Marketplace/{chunk-6XFYITUD.js → chunk-WGXUKTYP.js} +1 -1
  141. package/Marketplace/{chunk-ZZVNB72Q.js → chunk-WHZ44BAL.js} +1 -1
  142. package/Marketplace/chunk-WXQDF2MX.js +1 -0
  143. package/Marketplace/chunk-X5DJBQUZ.js +1 -0
  144. package/Marketplace/{chunk-MNFHFW3E.js → chunk-XEMNZHW6.js} +1 -1
  145. package/Marketplace/chunk-XENOOCI4.js +1 -0
  146. package/Marketplace/{chunk-J3P46Z53.js → chunk-XQGRC7V2.js} +1 -1
  147. package/Marketplace/{chunk-YR2WEZDG.js → chunk-YPVYJUXS.js} +1 -1
  148. package/Marketplace/{chunk-VWFLNITX.js → chunk-YR3PNRLA.js} +1 -1
  149. package/Marketplace/chunk-Z3ITXK3D.js +1 -0
  150. package/Marketplace/chunk-ZAVDOMSW.js +1 -0
  151. package/Marketplace/{chunk-GSPHYK6J.js → chunk-ZDYYX736.js} +11 -11
  152. package/Marketplace/chunk-ZFDUVL4I.js +1 -0
  153. package/Marketplace/{chunk-GHQH62TZ.js → chunk-ZIOAOUAM.js} +1 -1
  154. package/Marketplace/chunk-ZNDU44GH.js +51 -0
  155. package/Marketplace/{chunk-7FUVW73P.js → chunk-ZR5IXNXB.js} +1 -1
  156. package/Marketplace/index.html +3 -3
  157. package/Marketplace/main-OO7ZEZW4.js +1 -0
  158. package/Marketplace/{styles-NJFTKO3E.css → styles-X3FXEB7T.css} +1 -1
  159. package/package.json +1 -1
  160. package/Marketplace/chunk-26DZ5AMC.js +0 -1
  161. package/Marketplace/chunk-2BBMPSAE.js +0 -93
  162. package/Marketplace/chunk-2G6NLWKN.js +0 -1
  163. package/Marketplace/chunk-3E5FYRN4.js +0 -1
  164. package/Marketplace/chunk-3PNMJUYQ.js +0 -15
  165. package/Marketplace/chunk-4AMQ66FW.js +0 -1
  166. package/Marketplace/chunk-4ASUM4N5.js +0 -1
  167. package/Marketplace/chunk-4G3QN54S.js +0 -193
  168. package/Marketplace/chunk-4NRAXW65.js +0 -1
  169. package/Marketplace/chunk-4RTZASVJ.js +0 -1
  170. package/Marketplace/chunk-4XMCJ7I5.js +0 -1
  171. package/Marketplace/chunk-5KMCSNS6.js +0 -2
  172. package/Marketplace/chunk-5S6SIKR7.js +0 -1
  173. package/Marketplace/chunk-62PFQNHJ.js +0 -1
  174. package/Marketplace/chunk-6AKFGBPY.js +0 -4
  175. package/Marketplace/chunk-6ALHX2I4.js +0 -1
  176. package/Marketplace/chunk-7XREAR3H.js +0 -1
  177. package/Marketplace/chunk-AMXLXRQK.js +0 -1
  178. package/Marketplace/chunk-AWDLMHBL.js +0 -1
  179. package/Marketplace/chunk-CHZLFJFI.js +0 -3
  180. package/Marketplace/chunk-CMCNEAGC.js +0 -1
  181. package/Marketplace/chunk-CPAHXWMO.js +0 -1
  182. package/Marketplace/chunk-CTN7GW4H.js +0 -1
  183. package/Marketplace/chunk-CYZQNZDB.js +0 -1
  184. package/Marketplace/chunk-D54NUPYF.js +0 -153
  185. package/Marketplace/chunk-DI4V7KMK.js +0 -1
  186. package/Marketplace/chunk-DPLEMBB4.js +0 -1
  187. package/Marketplace/chunk-DZ2EE5MV.js +0 -1
  188. package/Marketplace/chunk-E3HMIPER.js +0 -2
  189. package/Marketplace/chunk-GJOCO2OS.js +0 -2
  190. package/Marketplace/chunk-GPEVUTDI.js +0 -2
  191. package/Marketplace/chunk-GSH5BYZ6.js +0 -1
  192. package/Marketplace/chunk-HKYVBAMV.js +0 -1
  193. package/Marketplace/chunk-IIJMZKPL.js +0 -1
  194. package/Marketplace/chunk-JDEKWXPV.js +0 -1
  195. package/Marketplace/chunk-JFJCXZD3.js +0 -1
  196. package/Marketplace/chunk-K2H6WANG.js +0 -1
  197. package/Marketplace/chunk-KQOYVGBL.js +0 -1
  198. package/Marketplace/chunk-KVP6OL4J.js +0 -2
  199. package/Marketplace/chunk-LPXBSHUI.js +0 -180
  200. package/Marketplace/chunk-MATSRG2L.js +0 -447
  201. package/Marketplace/chunk-PJ72KMDS.js +0 -1
  202. package/Marketplace/chunk-PVUSCHKJ.js +0 -1
  203. package/Marketplace/chunk-PXB4YEY3.js +0 -1
  204. package/Marketplace/chunk-Q2R4GEW5.js +0 -1
  205. package/Marketplace/chunk-RBC7ADJF.js +0 -1
  206. package/Marketplace/chunk-REFJUWLL.js +0 -5
  207. package/Marketplace/chunk-RIYAYANU.js +0 -1
  208. package/Marketplace/chunk-T5ONJF63.js +0 -7
  209. package/Marketplace/chunk-T6QOFDEE.js +0 -1
  210. package/Marketplace/chunk-U5VX6JLT.js +0 -1
  211. package/Marketplace/chunk-VAU6MFH7.js +0 -1
  212. package/Marketplace/chunk-VETHPEVU.js +0 -1
  213. package/Marketplace/chunk-VJKFHBPN.js +0 -5
  214. package/Marketplace/chunk-VSEWXNVC.js +0 -291
  215. package/Marketplace/chunk-X3LH2IJE.js +0 -1
  216. package/Marketplace/chunk-XM6GN4VF.js +0 -1
  217. package/Marketplace/chunk-YIUQQGOQ.js +0 -1
  218. package/Marketplace/chunk-ZHUHOS5T.js +0 -1
  219. package/Marketplace/main-CCWBPZQH.js +0 -1
@@ -1 +0,0 @@
1
- import{a as F}from"./chunk-VWFLNITX.js";import{a as _t}from"./chunk-7KG3DC5J.js";import{a as k}from"./chunk-4ASUM4N5.js";import{a as dt,b as st,d as ft,e as ut}from"./chunk-6IAGGRZN.js";import{l as pt}from"./chunk-CHZLFJFI.js";import{e as ct}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import{l as B,m as gt}from"./chunk-BIQHA7UA.js";import"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{h as at,m as rt,y as lt}from"./chunk-DPLEMBB4.js";import{c as mt}from"./chunk-PXB4YEY3.js";import{E as ot,H as L,J as R,d as it,f as nt,g as D,j as M,k as T,m as w,n as P}from"./chunk-GPEVUTDI.js";import{$c as C,Dc as J,Eb as N,Ec as a,Fb as b,Fc as p,Gc as S,Ic as K,Jc as Q,Kb as f,Kc as X,Pc as Y,Qc as Z,Rc as tt,Wb as m,Z as O,Zc as d,_c as h,aa as z,ad as et,ca as q,f as A,gc as o,hc as n,ic as E,jc as u,ka as x,kc as g,mc as W,nb as U,ob as j,qb as r,rc as H,sc as s,v,vc as G,wb as _,ya as I,za as y}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";var bt=(e,c)=>({"bg-gradient-danger":e,"bg-gradient-warning":c}),Et=()=>["/menu/notification/detail"],Dt=e=>({ID:e});function Mt(e,c){if(e&1&&(o(0,"span",14),E(1,"img",15),n(),a(2)),e&2){let t=c.item;r(),m("src",t.Img,j)("alt",t.Name),r(),S(" ",t.Name," ")}}function Tt(e,c){if(e&1&&(u(0),a(1),d(2,"number"),o(3,"span"),a(4,"s"),n(),g()),e&2){let t=s().$implicit;r(),S(" ",C(2,1,t.DurationInSecond,"1.1-1")," ")}}function wt(e,c){e&1&&a(0," - ")}function Pt(e,c){if(e&1&&(u(0),o(1,"tr",16)(2,"td")(3,"a",17),E(4,"img",18),o(5,"span"),a(6),n()()(),o(7,"td")(8,"b"),a(9),n(),E(10,"div",19),n(),o(11,"td"),f(12,Tt,5,4,"ng-container",20)(13,wt,1,0,"ng-template",null,0,et),n(),o(15,"td"),a(16),n(),o(17,"td"),a(18),d(19,"date"),n()(),g()),e&2){let t=c.$implicit,i=J(14);r(),m("ngClass",tt(14,bt,t.Status==1,t.Status==0)),r(2),m("routerLink",Y(17,Et))("queryParams",Z(18,Dt,t.ID)),r(),G("src",t.Img,j),r(2),p(t.Name),r(3),p(t.Label),r(),m("innerHTML",t.Message,U),r(2),m("ngIf",t.DurationInSecond)("ngIfElse",i),r(4),p(t.StatusLabel),r(2),p(C(19,11,t.Created,"dd MMM yyyy HH:mm"))}}function Lt(e,c){if(e&1){let t=W();u(0),o(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),d(4,"async"),d(5,"async"),H("total",function(){I(t);let l=s(2);return y(l.getRowCount())})("next",function(){I(t);let l=s(2);return y(l.getNotifications())})("previous",function(){I(t);let l=s(2);return y(l.getNotifications())}),n()()(),g()}if(e&2){let t=s().ngIf,i=s();r(3),m("filter",i.filter)("totaldata",t==null?null:t.length)("paginationTotal",h(4,4,i.rowCount$))("hasClicked",h(5,6,i.rowCount$))}}function Rt(e,c){if(e&1&&(u(0),f(1,Lt,6,8,"ng-container",13),g()),e&2){let t=c.ngIf;r(),m("ngIf",t.length>0)}}var ht=(()=>{class e{constructor(t,i,l){this.http=t,this.notificationService=i,this.authService=l,this.filter=new _t,this.destroy$=new A,this.channelOptions=l.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(q(this.destroy$)).subscribe(t=>{t.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(t=>{this.filter=t.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let t={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",t).pipe(v(i=>i.Data),v(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),O(1))}setTimeToSecond(t){return t=t.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),t}setChannelLogoToNotifications(t){return t=t.map(i=>(i.Img=mt.getChannelLogoByTypeId(i.TypeID),i)),t}getRowCount(){let t={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",t).pipe(v(i=>i.Count),O(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(i){return new(i||e)(_(ct),_(F),_(pt))}}static{this.\u0275cmp=N({type:e,selectors:[["app-notification"]],standalone:!1,decls:30,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],[1,"mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(i,l){i&1&&(o(0,"mainpanel",1),H("onSubmit",function(){return l.onFilter()}),o(1,"filters")(2,"div")(3,"h6",2),a(4,"Channel"),n(),o(5,"ng-select",3),X("ngModelChange",function($){return Q(l.filter.ChannelID,$)||(l.filter.ChannelID=$),$}),f(6,Mt,3,3,"ng-template",4),n()()(),o(7,"content")(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"table",9)(13,"thead",10)(14,"tr",11)(15,"th"),a(16,"Channel"),n(),o(17,"th"),a(18,"Process"),n(),o(19,"th"),a(20,"Duration"),n(),o(21,"th"),a(22,"Status"),n(),o(23,"th"),a(24,"Created"),n()()(),o(25,"tbody"),f(26,Pt,20,20,"ng-container",12),d(27,"async"),n()()()()(),f(28,Rt,2,1,"ng-container",13),d(29,"async"),n()()()),i&2&&(r(5),m("clearable",!0)("items",l.channelOptions),K("ngModel",l.filter.ChannelID),r(21),m("ngForOf",h(27,5,l.notifications$)),r(2),m("ngIf",h(29,7,l.notifications$)))},dependencies:[it,nt,D,ft,dt,st,at,rt,B,L,k,M,w,T],encapsulation:2})}}return e})();function Ft(e,c){if(e&1&&(o(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),a(4,"Perflog"),n()(),o(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),a(9),n()()()()()()),e&2){let t=s().ngIf;r(9),p(t.Perflog)}}function Bt(e,c){if(e&1&&(u(0),o(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),a(5,"StackTrace"),n()(),o(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),a(10),n()()()()()(),g()),e&2){let t=s().ngIf;r(10),p(t==null?null:t.StackTrace)}}function kt(e,c){if(e&1&&(u(0),o(1,"mainpanel",1)(2,"actions")(3,"a",2),a(4,"Back"),n()(),o(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),a(12,"General"),n()(),o(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),a(18,"Created Date"),n(),o(19,"div")(20,"span"),a(21),d(22,"date"),n()()()(),o(23,"div",10)(24,"div",11)(25,"label"),a(26,"Status"),n(),o(27,"div")(28,"span"),a(29),n()()()()(),o(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),a(34,"Duration"),n(),o(35,"div")(36,"span"),a(37),d(38,"number"),n()()()(),o(39,"div",10)(40,"div",11)(41,"label"),a(42,"Label"),n(),o(43,"div")(44,"span"),a(45),n()()()()()()()()(),o(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),a(51,"Message"),n()(),o(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),a(56),n()()()()()(),f(57,Ft,10,1,"div",16)(58,Bt,11,1,"ng-container",0),n()()()(),g()),e&2){let t=c.ngIf;r(),m("headerTitle","Notification "+t.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),r(20),p(C(22,10,t.Created,"dd MMM yyyy HH:mm:ss")),r(8),p(t.StatusLabel),r(8),S("",C(38,13,t.DurationInSecond,"1.1-1")," s"),r(8),p(t.Label),r(11),p(t.Message),r(),m("ngIf",t==null?null:t.Perflog),r(),m("ngIf",t==null?null:t.StackTrace)}}var vt=(()=>{class e{constructor(t,i){this.activatedRoute=t,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(z(t=>{let i=t.ID;return this.notificationService.getNotificationDetail(i).pipe(v(l=>(l.DurationInSecond=parseInt(l.Duration)/1e3,l)))}))}static{this.\u0275fac=function(i){return new(i||e)(_(ot),_(F))}}static{this.\u0275cmp=N({type:e,selectors:[["app-detail"]],standalone:!1,decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(i,l){i&1&&(f(0,kt,59,16,"ng-container",0),d(1,"async")),i&2&&m("ngIf",h(1,1,l.notification$))},dependencies:[D,B,L,M,w,T],encapsulation:2})}}return e})();var $t=[{path:"",component:ht},{path:"detail",component:vt}],Ct=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=b({type:e})}static{this.\u0275inj=x({imports:[P,R.forChild($t)]})}}return e})();var de=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=b({type:e})}static{this.\u0275inj=x({imports:[P,Ct,ut,lt,gt,R,k]})}}return e})();export{de as NotificationModule};
@@ -1 +0,0 @@
1
- import{G as ee}from"./chunk-GPEVUTDI.js";import{B as I,F as M,Fb as Q,Gb as X,J as F,Ka as N,O as G,R as H,T as x,_ as z,aa as C,ea as j,g as m,hd as _,ja as P,ka as Y,ma as A,oa as l,p as f,pa as y,q as h,sb as J,v,x as p,xa as Z,y as U,yb as q}from"./chunk-T5ONJF63.js";import{a as g,b as O}from"./chunk-K2H6WANG.js";var a=function(s){return s[s.Tokopedia=1]="Tokopedia",s[s.WooCommerce=2]="WooCommerce",s[s.None=3]="None",s[s.KalCare=4]="KalCare",s[s.Shopee=5]="Shopee",s[s.Tiktok=6]="Tiktok",s[s.Lazada=7]="Lazada",s[s.Shopify=8]="Shopify",s[s.Plugo=9]="Plugo",s}(a||{});var c=function(s){return s.SHOOPE="https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",s.WOOCOMMERCE="https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",s.TOKOPEDIA="https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",s.TIKTOK="https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",s.LAZADA="https://res.cloudinary.com/pos/image/upload/v1680681836/icons/marketplace_icons/Lazadanew.png",s.KALCARE="https://res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",s.SHOPIFY="https://res.cloudinary.com/pos/image/upload/v1707987435/icons/marketplace_icons/shopify.png",s.PLUGO="https://res.cloudinary.com/pos/image/upload/v1739236419/icons/marketplace_icons/plugo.ico",s.PLUGONEW="https://res.cloudinary.com/pos/image/upload/v1739263497/icons/marketplace_icons/plugonew.ico",s}(c||{});var fe=(()=>{class s{static{this.GuidEMpty="00000000-0000-0000-0000-000000000000"}static{this.MinDate="0001-01-01T00:00:00"}static IsNotEmpty(e){return e!=""&&e!=s.GuidEMpty&&e!=null&&e!=null}static IsEmpty(e){return e==""||e==null||e==null||e==s.GuidEMpty}static getChannelLogoByTypeId(e){let t;switch(e){case a.Tokopedia:t=c.TOKOPEDIA;break;case a.Shopee:t=c.SHOOPE;break;case a.WooCommerce:t=c.WOOCOMMERCE;break;case a.Lazada:t=c.LAZADA;break;case a.Tiktok:t=c.TIKTOK;break;case a.KalCare:t=c.KALCARE;break;case a.Shopify:t=c.SHOPIFY;break;case a.Plugo:t=c.PLUGO;break}return t}static getChannelLogoByName(e=""){e=e.toLowerCase();let t;switch(e){case"tokopedia":t=c.TOKOPEDIA;break;case"shoppe":t=c.SHOOPE;break;case"woocommerce":t=c.WOOCOMMERCE;break;case"tiktok":t=c.TIKTOK;break;case"lazada":t=c.LAZADA;break;case"kalCare":t=c.KALCARE;break;case"plugo":t=c.PLUGO;break}return t}static getChannelName(e){let t;switch(e){case a.Shopee:t="Shopee";break;case a.Tokopedia:t="Tokopedia";break;case a.Lazada:t="Lazada";break;case a.Tiktok:t="Tiktok";break;case a.WooCommerce:t="WooCommerce";break;case a.KalCare:t="KalCare";break;case a.Plugo:t="Plugo";break}return t}static assignChannelLogo(e){return e=e.map(t=>(t.logo=this.getChannelLogoByTypeId(t.TypeID),t)),e}static getCssChannelColor(e){let t;switch(e){case a.Shopee:t="#ee4d2d";break;case a.Tokopedia:t="var(--G500,#03AC0E)";break;case a.Lazada:t="#FF00B2";break;case a.Tiktok:t="black";break;case a.WooCommerce:t="#674399";break;case a.KalCare:t="rgb(128, 188, 0)";break;case a.Plugo:t="#F2A954";break}return t}static getDaysDiff(e,t){var i=t.getTime()-e.getTime(),r=i/(1e3*60*60*24);return r}static addDays(e,t){let i=new Date(Number(e));return i.setDate(e.getDate()-t),i}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getImageInfo(e){return new Promise((t,i)=>{let r=new Image;r.src=e,r.decode().then(()=>{t({img:e,height:r.height,width:r.width})}).catch(()=>{i(new Error(`Image load error for ${e}`))})})}static formatTitleFromDate(e,t){let i=null,r=new Date(e),n=new Date(t);return r.getDate()!=n.getDate()&&(i="dd"),r.getMonth()!=n.getMonth()&&(i="dd MMM"),r.getFullYear()!=n.getFullYear()&&(i="dd MMM yyyy"),i}static openDownloadFile(e,t){var i=window.URL.createObjectURL(e),r=document.createElement("a");r.href=i,r.download=t,r.click()}static compare(e,t,i){return(e<t?-1:1)*(i?1:-1)}static isDateExpired(e){let t=new Date,i=!1;return e.getTime()<t.getTime()&&(i=!0),i}static getLabelPathTree(e){let t=[],i=e;for(;i;)t.unshift(i.label),i=i.parent;return t.join(" / ")}static searchByIdWithParentDFS(e,t){let i=[...e],r;for(typeof t=="number"?r=JSON.stringify(t):r=t;i.length>0;){let n=i.pop();if(n.id===r)return n;if(n.children&&n.children.length>0)for(let o of n.children)o.parent=n,i.push(o)}return null}static getTimeDifference(e){let t=new Date(e),i=new Date,r=Math.abs(t.getTime()-i.getTime()),n=1e3,o=6e4,d=60*o,S=24*d,ne=Math.floor(r/S),oe=Math.floor(r%S/d),ae=Math.floor(r%d/o),ce=Math.floor(r%o/n);return{days:ne,hours:oe,minutes:ae,seconds:ce}}static convertToReadableDate(e){let{days:t,hours:i,minutes:r,seconds:n}=s.getTimeDifference(e),o="";return t>0&&i>0&&r>0&&(o=`${t} days, ${i} hours and ${r} minutes ago`),t>0&&i>0&&r==0&&(o=`${t} days and ${i} hours ago`),t>0&&i==0&&(o=`${t} days ago`),t==0&&i>0&&r>0&&(o=`${i} hours and ${r} minutes ago`),t==0&&i>0&&r==0&&(o=`${i} hours ago`),t==0&&i==0&&r>0&&(o=`${r} minutes ago`),t==0&&i==0&&r==0&&n>0&&(o=`${n} seconds ago`),o}static isValidGUID(e){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e)}}return s})();var D={REMOVE:"remove",SHOW:"show"},ie=(()=>{class s{constructor(){this.strategiesSource=new m({}),this.strategies$=this.strategiesSource.asObservable()}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac})}}return s})(),$=new A("USE_CONFIGURATION_STORE"),L=(()=>{class s{constructor(e=!1,t){this.isolate=e,this.configurationStore=t,this.strategiesSource=this.isolate?new m({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(e){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(e){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(e,t){this.strategiesSource.value[e]=t}getStrategy(e){return this.strategiesSource.value[e]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(e){if(this.strategiesSource.value[e]||this.isPredefinedStrategy(e))return e;throw new Error(`No ' ${e} ' strategy is found please define one`)}isPredefinedStrategy(e){return e===D.SHOW||e===D.REMOVE}static{this.\u0275fac=function(t){return new(t||s)(l($),l(ie))}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac})}}return s})();function u(s){return typeof s=="function"}function V(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;{let B=Object.getPrototypeOf(s);return B===null||B===Object.prototype}}function se(s){return!!s&&typeof s=="string"}function w(s){return typeof s=="boolean"}function he(s){return Object.prototype.toString.call(s)==="[object Promise]"}function T(s){return Array.isArray(s)?s.length>0:!!s}function R(s){return se(s)?[s]:s}var re=(()=>{class s{constructor(){this.permissionsSource=new m({}),this.permissions$=this.permissionsSource.asObservable()}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac})}}return s})(),W=new A("USE_PERMISSIONS_STORE"),E=(()=>{class s{constructor(e=!1,t){this.isolate=e,this.permissionsStore=t,this.permissionsSource=this.isolate?new m({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=R(e),this.hasArrayPermission(e))}loadPermissions(e,t){let i=e.reduce((r,n)=>this.reducePermission(r,n,t),{});this.permissionsSource.next(i)}addPermission(e,t){if(Array.isArray(e)){let i=e.reduce((r,n)=>this.reducePermission(r,n,t),this.permissionsSource.value);this.permissionsSource.next(i)}else{let i=this.reducePermission(this.permissionsSource.value,e,t);this.permissionsSource.next(i)}}removePermission(e){let t=g({},this.permissionsSource.value);delete t[e],this.permissionsSource.next(t)}getPermission(e){return this.permissionsSource.value[e]}getPermissions(){return this.permissionsSource.value}reducePermission(e,t,i){return i&&u(i)?O(g({},e),{[t]:{name:t,validationFunction:i}}):O(g({},e),{[t]:{name:t}})}hasArrayPermission(e){let t=e.map(i=>{if(this.hasPermissionValidationFunction(i)){let r=this.permissionsSource.value[i].validationFunction,n=g({},this.permissionsSource.value);return h(null).pipe(v(()=>r(i,n)),C(o=>w(o)?h(o):o),F(()=>h(!1)))}return h(!!this.permissionsSource.value[i])});return f(t).pipe(U(),x(i=>i!==!1,!1),v(i=>i!==!1)).toPromise().then(i=>i)}hasPermissionValidationFunction(e){return!!this.permissionsSource.value[e]&&!!this.permissionsSource.value[e].validationFunction&&u(this.permissionsSource.value[e].validationFunction)}static{this.\u0275fac=function(t){return new(t||s)(l(W),l(re))}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac})}}return s})(),b=class{constructor(){this.rolesSource=new m({}),this.roles$=this.rolesSource.asObservable()}},K=new A("USE_ROLES_STORE"),k=(()=>{class s{constructor(e=!1,t,i){this.isolate=e,this.rolesStore=t,this.permissionsService=i,this.rolesSource=this.isolate?new m({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(e,t){let i=O(g({},this.rolesSource.value),{[e]:{name:e,validationFunction:t}});this.rolesSource.next(i)}addRoleWithPermissions(e,t){this.permissionsService.addPermission(t),this.addRole(e,t)}addRoles(e){Object.keys(e).forEach((t,i)=>{this.addRole(t,e[t])})}addRolesWithPermissions(e){Object.keys(e).forEach((t,i)=>{this.addRoleWithPermissions(t,e[t])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(e){let t=g({},this.rolesSource.value);delete t[e],this.rolesSource.next(t)}getRoles(){return this.rolesSource.value}getRole(e){return this.rolesSource.value[e]}hasOnlyRoles(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=R(e),Promise.all([this.hasRoleKey(e),this.hasRolePermission(this.rolesSource.value,e)]).then(([i,r])=>i||r))}hasRoleKey(e){let t=e.map(i=>{if(!!this.rolesSource.value[i]&&!!this.rolesSource.value[i].validationFunction&&u(this.rolesSource.value[i].validationFunction)&&!he(this.rolesSource.value[i].validationFunction)){let n=this.rolesSource.value[i].validationFunction,o=g({},this.rolesSource.value);return h(null).pipe(v(()=>n(i,o)),C(d=>w(d)?h(d):d),F(()=>h(!1)))}return h(!1)});return f(t).pipe(U(),x(i=>i!==!1,!1),v(i=>i!==!1)).toPromise().then(i=>i)}hasRolePermission(e,t){return f(t).pipe(p(i=>e[i]&&Array.isArray(e[i].validationFunction)?f(e[i].validationFunction).pipe(p(r=>this.permissionsService.hasPermission(r)),H(r=>r===!0)):h(!1)),x(i=>i===!0,!1)).toPromise()}static{this.\u0275fac=function(t){return new(t||s)(l(K),l(b),l(E))}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac})}}return s})(),Re=(()=>{class s{constructor(){this.permissionsAuthorized=new N,this.permissionsUnauthorized=new N,this.firstMergeUnusedRun=1,this.permissionsService=y(E),this.configurationService=y(L),this.rolesService=y(k),this.viewContainer=y(q),this.changeDetector=y(_),this.templateRef=y(J)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(e){let t=e.ngxPermissionsOnly,i=e.ngxPermissionsExcept;if(t||i){if(t&&t.firstChange||i&&i.firstChange)return;M(this.permissionsService.permissions$,this.rolesService.roles$).pipe(z(this.firstMergeUnusedRun),G(1)).subscribe(()=>{if(T(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(T(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return M(this.permissionsService.permissions$,this.rolesService.roles$).pipe(z(this.firstMergeUnusedRun)).subscribe(()=>{if(T(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(T(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([e,t])=>{if(e||t){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([e,t])=>{e||t?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(e){if(!(w(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}handleAuthorisedPermission(e){if(!(w(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}applyStrategyAccordingToStrategyType(e){if(se(e)){this.applyStrategy(e);return}if(u(e)){this.showTemplateBlockInView(this.templateRef),e(this.templateRef);return}}showTemplateBlockInView(e){this.viewContainer.clear(),e&&(this.viewContainer.createEmbeddedView(e),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(e){if(e===D.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(e===D.REMOVE){this.viewContainer.clear();return}let t=this.configurationService.getStrategy(e);this.showTemplateBlockInView(this.templateRef),t(this.templateRef)}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275dir=X({type:s,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Z]})}}return s})(),ue="default";var te=(()=>{class s{constructor(e,t,i){this.permissionsService=e,this.rolesService=t,this.router=i}canActivate(e,t){return this.hasPermissions(e,t)}canActivateChild(e,t){return this.hasPermissions(e,t)}canLoad(e){return this.hasPermissions(e)}canMatch(e){return this.hasPermissions(e)}hasPermissions(e,t){let i=e&&e.data?e.data.permissions:{},r=this.transformPermission(i,e,t);return this.isParameterAvailable(r.except)?this.passingExceptPermissionsValidation(r,e,t):this.isParameterAvailable(r.only)?this.passingOnlyPermissionsValidation(r,e,t):!0}transformPermission(e,t,i){let r=u(e.only)?e.only(t,i):R(e.only),n=u(e.except)?e.except(t,i):R(e.except),o=e.redirectTo;return{only:r,except:n,redirectTo:o}}isParameterAvailable(e){return!!e&&e.length>0}passingExceptPermissionsValidation(e,t,i){if(e.redirectTo&&(u(e.redirectTo)||V(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo))){let r="";return f(e.except).pipe(p(n=>I([this.permissionsService.hasPermission(n),this.rolesService.hasOnlyRoles(n)]).pipe(j(o=>{o.every(S=>S===!1)||(r=n)}))),x(n=>n.some(o=>o===!0),!1),p(n=>r?(this.handleRedirectOfFailedPermission(e,r,t,i),h(!1)):!n&&e.only?this.onlyRedirectCheck(e,t,i):h(!n))).toPromise()}return Promise.all([this.permissionsService.hasPermission(e.except),this.rolesService.hasOnlyRoles(e.except)]).then(([r,n])=>r||n?(e.redirectTo&&this.redirectToAnotherRoute(e.redirectTo,t,i),!1):e.only?this.checkOnlyPermissions(e,t,i):!0)}redirectToAnotherRoute(e,t,i,r){let n=u(e)?e(r,t,i):e;if(this.isRedirectionWithParameters(n)){n.navigationCommands=this.transformNavigationCommands(n.navigationCommands,t,i),n.navigationExtras=this.transformNavigationExtras(n.navigationExtras,t,i),this.router.navigate(n.navigationCommands,n.navigationExtras);return}Array.isArray(n)?this.router.navigate(n):this.router.navigate([n])}isRedirectionWithParameters(e){return V(e)&&(!!e.navigationCommands||!!e.navigationExtras)}transformNavigationCommands(e,t,i){return u(e)?e(t,i):e}transformNavigationExtras(e,t,i){return u(e)?e(t,i):e}onlyRedirectCheck(e,t,i){let r="";return f(e.only).pipe(p(n=>I([this.permissionsService.hasPermission(n),this.rolesService.hasOnlyRoles(n)]).pipe(j(o=>{o.every(S=>S===!1)&&(r=n)}))),x(n=>u(e.redirectTo)?n.some(o=>o===!0):n.every(o=>o===!1),!1),p(n=>u(e.redirectTo)?n?h(!0):(this.handleRedirectOfFailedPermission(e,r,t,i),h(!1)):(r&&this.handleRedirectOfFailedPermission(e,r,t,i),h(!n)))).toPromise()}handleRedirectOfFailedPermission(e,t,i,r){this.isFailedPermissionPropertyOfRedirectTo(e,t)?this.redirectToAnotherRoute(e.redirectTo[t],i,r,t):u(e.redirectTo)?this.redirectToAnotherRoute(e.redirectTo,i,r,t):this.redirectToAnotherRoute(e.redirectTo[ue],i,r,t)}isFailedPermissionPropertyOfRedirectTo(e,t){return!!e.redirectTo&&e.redirectTo[t]}checkOnlyPermissions(e,t,i){let r=g({},e);return Promise.all([this.permissionsService.hasPermission(r.only),this.rolesService.hasOnlyRoles(r.only)]).then(([n,o])=>n||o?!0:(r.redirectTo&&this.redirectToAnotherRoute(r.redirectTo,t,i),!1))}passingOnlyPermissionsValidation(e,t,i){return u(e.redirectTo)||V(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo)?this.onlyRedirectCheck(e,t,i):this.checkOnlyPermissions(e,t,i)}static{this.\u0275fac=function(t){return new(t||s)(l(E),l(k),l(ee))}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac})}}return s})();var be=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[re,b,ie,E,te,k,L,{provide:W,useValue:e.permissionsIsolate},{provide:K,useValue:e.rolesIsolate},{provide:$,useValue:e.configurationIsolate}]}}static forChild(e={}){return{ngModule:s,providers:[{provide:W,useValue:e.permissionsIsolate},{provide:K,useValue:e.rolesIsolate},{provide:$,useValue:e.configurationIsolate},L,E,k,te]}}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275mod=Q({type:s})}static{this.\u0275inj=Y({})}}return s})();export{c as a,a as b,fe as c,E as d,Re as e,be as f};
@@ -1 +0,0 @@
1
- import{e as _e}from"./chunk-6IAGGRZN.js";import{a as pe,b as me,l as xe}from"./chunk-CHZLFJFI.js";import{b as ue,e as y}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import{c as ee,h as te,i as ne,k as ie,m as oe,n as re,s as ae,t as se,u as de,v as ce,y as le}from"./chunk-DPLEMBB4.js";import{a as v,c as ge,d as fe,f as he}from"./chunk-PXB4YEY3.js";import{E as P,G as C,J as D,d as $,f as z,g as J,j as X,n as Z}from"./chunk-GPEVUTDI.js";import{Ac as q,Dc as O,Eb as _,Ec as a,Fb as A,Fc as b,Gc as H,Hc as B,Ic as E,Jc as I,Kb as f,Kc as L,Rc as Y,Wb as p,Z as R,Zc as G,_b as F,_c as Q,ad as K,gc as n,hc as r,ic as c,ja as V,jc as S,ka as T,kc as k,mc as N,ob as w,qb as s,rc as u,sc as m,wb as l,ya as h,yc as U,za as x,zc as W}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";var be=(()=>{class t{constructor(){}getBrowserName(){let e=window.navigator.userAgent.toLowerCase();switch(!0){case(e.indexOf("edge")>-1||e.indexOf("edg")>-1):return"edge";case e.indexOf("opr")>-1:return"opera";case e.indexOf("chrome")>-1:return"chrome";case e.indexOf("trident")>-1:return"ie";case e.indexOf("firefox")>-1:return"firefox";case e.indexOf("safari")>-1:return"safari";default:return"other"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ie(t,g){if(t&1&&(n(0,"swiper-slide")(1,"div")(2,"a",2),c(3,"img",3),r()(),n(4,"a",4),a(5),r(),n(6,"p",5),a(7),r()()),t&2){let e=g.$implicit;s(2),p("href",e.href,w),s(),p("src",e.imgSrc,w),s(),p("href",e.href,w),s(),b(e.title),s(2),b(e.description)}}var Ce=(()=>{class t{constructor(){this.newsList=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=_({type:t,selectors:[["POS-news-swiper"]],inputs:{newsList:"newsList"},standalone:!1,decls:2,vars:1,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(i,o){i&1&&(n(0,"swiper-container",0),f(1,Ie,8,5,"swiper-slide",1),r()),i&2&&(s(),p("ngForOf",o.newsList))},dependencies:[z],styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]})}}return t})();var Te=["subdomainEl"],Ae=(t,g)=>({"rounded-end":t,"border-end-0":g});function Ne(t,g){if(t&1&&(S(0),n(1,"div",36),c(2,"img",37),r(),k()),t&2){let e=g.$implicit;s(2),p("src",e.img,w)("title",e.title)("alt",e.title)}}function ze(t,g){if(t&1){let e=N();S(0),n(1,"div",17)(2,"h3",18),a(3," DealPOS Omnichannel "),r(),n(4,"small",19),a(5," Multichannel Inventory Management Software "),r()(),n(6,"form",20)(7,"div",21)(8,"div",22)(9,"div",23)(10,"span"),c(11,"i",24),r()(),n(12,"input",25,1),L("ngModelChange",function(o){h(e);let d=m();return I(d.subdomain,o)||(d.subdomain=o),x(o)}),r(),n(14,"div")(15,"select",26),L("ngModelChange",function(o){h(e);let d=m();return I(d.domain,o)||(d.domain=o),x(o)}),n(16,"option",27),a(17,".dealpos.co.id"),r(),n(18,"option",28),a(19,".dealpos.net"),r(),n(20,"option",29),a(21,".dealpos.com"),r(),n(22,"option",30),a(23,".dealpos.app"),r()()()(),n(24,"div",31)(25,"button",32),u("click",function(){h(e);let o=m();return x(o.onNextState())}),a(26," Next "),r()(),n(27,"div",33)(28,"div",34),f(29,Ne,3,3,"ng-container",35),r()()()(),k()}if(t&2){let e=m();s(12),E("ngModel",e.subdomain),s(3),E("ngModel",e.domain),s(14),p("ngForOf",e.channels)}}function De(t,g){t&1&&(n(0,"p"),a(1," Username is required "),r())}function je(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,De,2,0,"p",47),r()(),k()),t&2){m();let e=O(14);s(4),p("ngIf",e.errors.required)}}function Re(t,g){if(t&1){let e=N();n(0,"i",62),u("click",function(){h(e);let o=m(3);return x(o.hideShowPassword())}),r()}if(t&2){let e=m(3);F("fa "+e.passwordIcon)}}function Ve(t,g){if(t&1&&(n(0,"span",60),f(1,Re,1,2,"i",61),r()),t&2){let e=m(2);s(),p("ngIf",e.password)}}function Fe(t,g){t&1&&(n(0,"p"),a(1," Password is required "),r())}function Ue(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,Fe,2,0,"p",47),r()(),k()),t&2){m();let e=O(21);s(4),p("ngIf",e.errors.required)}}function We(t,g){if(t&1){let e=N();n(0,"div",38)(1,"h3",39),a(2,"Sign in"),r(),n(3,"h3",40),a(4," to "),n(5,"h6",41),a(6),r(),n(7,"i",42),u("click",function(){h(e);let o=m();return x(o.onEditDomain())}),r()()(),n(8,"form",43)(9,"div",44)(10,"div",23)(11,"span"),c(12,"i",45),r()(),n(13,"input",46,2),L("ngModelChange",function(o){h(e);let d=m();return I(d.username,o)||(d.username=o),x(o)}),r()(),f(15,je,5,1,"ng-container",47),n(16,"div",22)(17,"div",23)(18,"span"),c(19,"i",48),r()(),n(20,"input",49,3),L("ngModelChange",function(o){h(e);let d=m();return I(d.password,o)||(d.password=o),x(o)}),r(),f(22,Ve,2,1,"span",50),r(),f(23,Ue,5,1,"ng-container",47),n(24,"div",51)(25,"button",52),u("click",function(){h(e);let o=m();return x(o.onLogin())}),a(26," Log in "),r()(),n(27,"div",53),c(28,"hr"),n(29,"span",54),a(30,"or"),r(),c(31,"hr"),r(),n(32,"div")(33,"button",55),u("click",function(o){h(e);let d=m();return x(d.onLoginByGoogle(o))}),c(34,"i",56),a(35," Sign In with Google "),r()()()}if(t&2){let e=O(14),i=O(21),o=m();s(6),B(" (",o.subdomain,"",o.domain,") "),s(7),E("ngModel",o.username),s(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),s(5),p("type",o.passwordType)("ngClass",Y(9,Ae,o.browser=="edge",o.browser!="edge")),E("ngModel",o.password),s(2),p("ngIf",o.browser!="edge"),s(),p("ngIf",i.invalid&&(i.dirty||i.touched))}}var ve=(()=>{class t{constructor(e,i,o,d,Se){this._router=e,this.toastr=i,this.checkBrowser=o,this.authService=d,this.ngxPermission=Se,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:v.SHOOPE},{title:"Tokopedia",img:v.TOKOPEDIA},{title:"Tiktok",img:v.TIKTOK},{title:"Woocommerce",img:v.WOOCOMMERCE},{title:"Lazada",img:v.LAZADA},{title:"Shopify",img:v.SHOPIFY},{title:"Plugo",img:v.PLUGONEW}],this.version=me.version,this.news$=d.getNews().pipe(R(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let e=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=e}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let e=JSON.parse(localStorage.getItem("Authorization"));if(e){this.username=e?.username,this.subdomain=e?.Host?.split(".")[0];let i=e?.Host?.split("dealpos");this.domain=`.dealpos${i[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(ge.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let e=this.subdomain.indexOf(".dealpos");e!=-1&&(this.subdomain=this.subdomain.substring(0,e))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let e={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(e).subscribe(i=>{this.onSuccessLogin(i)})}onLoginByGoogle(e){let i=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(e,i).subscribe(o=>{this.onSuccessLogin(o)})}onSuccessLogin(e){this.ngxPermission.hasPermission([pe.dashboardView]).then(i=>{i?this._router.navigate(["menu/dashboard"]):e?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}static{this.\u0275fac=function(i){return new(i||t)(l(C),l(ue),l(be),l(xe),l(fe))}}static{this.\u0275cmp=_({type:t,selectors:[["app-login"]],viewQuery:function(i,o){if(i&1&&U(Te,5),i&2){let d;W(d=q())&&(o.subdomainEl=d.first)}},standalone:!1,decls:19,vars:7,consts:[["USERNAME_PASSWORD",""],["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[4,"ngIf","ngIfElse"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[4,"ngFor","ngForOf"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],["class","input-group-text border-start-0 rounded-end",4,"ngIf"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[2,"width","52px"],[1,"text-danger","ps-1"],[1,"input-group-text","border-start-0","rounded-end"],[3,"class","click",4,"ngIf"],[3,"click"]],template:function(i,o){if(i&1&&(n(0,"div",4)(1,"div",5)(2,"div",6)(3,"h3",7),a(4,"New Features"),r(),c(5,"POS-news-swiper",8),G(6,"async"),r(),n(7,"div",9),f(8,ze,30,3,"ng-container",10)(9,We,36,12,"ng-template",null,0,K),r()(),n(11,"div",11)(12,"span",12),a(13,"powered by :"),r(),c(14,"a",13),r(),n(15,"div",14)(16,"a",15),a(17),c(18,"i",16),r()()()),i&2){let d=O(10);s(5),p("newsList",Q(6,5,o.news$)),s(3),p("ngIf",o.loginState=="FORM_DOMAIN")("ngIfElse",d),s(8),p("href",o.changelogUrl,w),s(),H("version ",o.version,"")}},dependencies:[$,z,J,re,se,de,ee,ae,te,ne,ce,oe,ie,Ce,X],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]})}}return t})();var Me=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.shopID=e.shop_id,this.code=e.code})}addShopee(){let e={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",e).subscribe(o=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["shopee-authorized"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Shopee"),r(),n(13,"div"),a(14," Your shopID is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addShopee()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.shopID))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Oe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-tiktok"]],standalone:!1,decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Tiktok"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"div"),a(18," Your State is "),n(19,"span",8),a(20),r()(),n(21,"button",9),u("click",function(){return o.addChannelTiktok()}),c(22,"i",10),a(23," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code),s(4),b(o.state))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Pe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code})}addChannelLazada(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-lazada"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Lazada"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addChannelLazada()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code))},encapsulation:2})}}return t})();var qe=[{path:"",component:ve,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:Me,data:{title:"Success"}},{path:"tiktok",component:Oe,data:{title:"Success"}},{path:"lazada",component:Pe,data:{title:"Success"}}],ye=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[D.forChild(qe),D]})}}return t})();var Pt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[Z,le,ye,_e,he]})}}return t})();export{Pt as LoginModule};
@@ -1 +0,0 @@
1
- import{a as q}from"./chunk-KVP6OL4J.js";import"./chunk-77IUCPIQ.js";import{a as oe}from"./chunk-ZD5LURJS.js";import{a as We,b as ke}from"./chunk-OE2JYQHN.js";import"./chunk-7GQIIDFF.js";import"./chunk-VETHPEVU.js";import"./chunk-75BDXSG3.js";import"./chunk-J7AGLBPL.js";import"./chunk-6ALHX2I4.js";import"./chunk-3RK6DDJD.js";import{a as re,b as Be}from"./chunk-7FUVW73P.js";import"./chunk-M3SJUKTG.js";import"./chunk-CH2MLZU7.js";import{a as W}from"./chunk-7XREAR3H.js";import"./chunk-Q72ZXPDP.js";import"./chunk-MNFHFW3E.js";import"./chunk-ZZVNB72Q.js";import"./chunk-SDUUFQUI.js";import"./chunk-G6EG5QJS.js";import"./chunk-RIHLYYZU.js";import"./chunk-Q2OEJFVT.js";import{a as te,b as ie,d as ne,e as Pe}from"./chunk-6IAGGRZN.js";import"./chunk-T6QOFDEE.js";import"./chunk-KXZCGKQW.js";import"./chunk-QCZIDOKW.js";import{l as j}from"./chunk-CHZLFJFI.js";import{e as M}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-KHWTOD6H.js";import{l as N,m as Ve}from"./chunk-BIQHA7UA.js";import{r as Re,s as Oe}from"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{c as Q,h as X,m as $,o as ee,t as De,u as Me,y as Ne,z as Le}from"./chunk-DPLEMBB4.js";import{c as B}from"./chunk-PXB4YEY3.js";import{E as k,F as Te,H as P,J as fe,d as ge,f as Z,g as T,j as Ee,k as D,l as F,n as he}from"./chunk-GPEVUTDI.js";import{$c as E,Dc as J,Eb as x,Ec as r,Fb as pe,Fc as m,Gc as R,Ic as _,Jc as y,Kb as f,Kc as C,Pc as Y,Qc as A,Wb as p,Zc as b,_b as Ie,_c as O,ad as K,gc as i,hc as n,ic as L,ja as ce,jc as H,ka as me,kc as z,mc as I,oa as we,ob as G,qb as l,rc as w,sc as S,v as ue,wb as h,ya as c,za as u}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";var Ae=(()=>{class o{constructor(){this.ObjectlogTabs=[{Title:"Channel Push Log Exception",Url:"/menu/log/exception"},{Title:"Channel Push Log",Url:"/menu/log/rawlog"},{Title:"Sync Order",Url:"/menu/log/order"},{Title:"Inventory Sync ",Url:"/menu/log/inventory"},{Title:"Authorization Log ",Url:"/menu/log/authorization-log"}]}static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275cmp=x({type:o,selectors:[["app-logs"]],standalone:!1,decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(a,e){a&1&&(i(0,"nav",0)(1,"div",1)(2,"div"),L(3,"nav-tab",2),n()()(),L(4,"router-outlet")),a&2&&(l(3),p("Tabs",e.ObjectlogTabs))},dependencies:[Te,We],encapsulation:2})}}return o})();var ae=(()=>{class o{constructor(){}get Data(){return this._Data}set Data(t){this._Data=t}Fill(t){return this._Data.find(a=>a._id==t)}static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275prov=ce({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Xe=()=>["/menu/log/order/detail-user"],$e=o=>({ID:o}),et=o=>({"bg-warning":o});function tt(o,g){if(o&1&&(i(0,"span",22),L(1,"img",23),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function it(o,g){o&1&&(i(0,"th",27)(1,"span",33),r(2," Response Body Warning "),n()())}function nt(o,g){o&1&&(i(0,"th")(1,"span",33),r(2," Number Override "),n()())}function ot(o,g){if(o&1&&(i(0,"td",27)(1,"span",36),r(2),n()()),o&2){let t=S().$implicit;l(),p("ngClass",A(2,et,t.responseBodyWarning!=null)),l(),m(t.responseBodyWarning)}}function rt(o,g){if(o&1&&(i(0,"td"),r(1),n()),o&2){let t=S().$implicit;l(),R(" ",t.ResponseBodyWarningReference," ")}}function at(o,g){if(o&1&&(i(0,"tr")(1,"td")(2,"a",34),r(3),b(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n(),i(11,"td",27)(12,"span",35),r(13),n()(),f(14,ot,3,4,"td",29)(15,rt,2,1,"td",30),n()),o&2){let t=g.$implicit,a=S(2);l(2),p("routerLink",Y(14,Xe))("queryParams",A(15,$e,t.ID)),l(),R(" ",E(4,11,t.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),m(t.ChannelName),l(2),m(t.POSActionTypeString),l(2),m(t.Number),l(2),Ie(t.ResponseCode===200||t.ResponseCode===202?"bg-success":"bg-warning"),l(),R(" ",t.ResponseCode," "),l(),p("ngIf",a.responseBodyWarningVisible),l(),p("ngIf",a.responseBodyWarningVisible)}}function lt(o,g){if(o&1){let t=I();H(0),i(1,"div",24)(2,"table",25)(3,"thead")(4,"tr",26)(5,"th"),r(6,"Date"),n(),i(7,"th"),r(8,"Channel"),n(),i(9,"th"),r(10,"Actions"),n(),i(11,"th"),r(12,"Number"),n(),i(13,"th",27)(14,"span",28),r(15," Response Code "),n()(),f(16,it,3,0,"th",29)(17,nt,3,0,"th",30),n()(),i(18,"tbody"),f(19,at,16,17,"tr",31),n()(),i(20,"mat-paginator",32),w("page",function(e){c(t);let d=S();return u(d.changePage(e))}),n()(),z()}if(o&2){let t=S();l(16),p("ngIf",t.responseBodyWarningVisible),l(),p("ngIf",t.responseBodyWarningVisible),l(2),p("ngForOf",t.Result),l(),p("length",t.paginationTotal)("pageSize",t.paginationPageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function st(o,g){o&1&&(i(0,"div",37),L(1,"app-empty-state"),n())}var Fe=(()=>{class o{constructor(t,a,e,d){this.http=t,this._RawLogService=a,this.route=e,this.authService=d,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:"",responseBodyWarning:""},this.responseBodyWarningVisible=!1,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.route.queryParams.subscribe(t=>{this.responseCode=t.responseCode,this.responseCode!=null?this.Load(t):this.Load()})}Load(t={}){this.http.post("/api/OrdersLoader/Get",t).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(t){this.filter.Number=t,this.http.post("/api/Orders/Get",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){e._source.log.responseBodyWarning!=null&&(this.responseBodyWarningVisible=!0);let d={ID:e._id,Created:e._source["@timestamp_received"],shopId:e._source.shopId,MarketTypeString:e._source.log.type,ChannelName:e._source?.channelId!=null?this.channelOptions.find(v=>v.ID===e._source?.channelId)?.Name:"",POSActionTypeString:e._source.message,Number:e._source.log.number,ResponseCode:e._source.log.responseCode,responseBodyWarning:e._source.log.responseBodyWarning,ResponseBodyWarningReference:e._source.log.ResponseBodyWarningReference};this.Result.push(d)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(t){this.filter.PageNumber=t.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(ae),h(k),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-order"]],standalone:!1,decls:43,vars:15,consts:[["EMPTY_STATE",""],["headerTitle","Order Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],["bindLabel","Value","name","ActionType","bindValue","Key","placeholder","Action Type",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","text","name","StatusCode",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","text","name","responseBodyWarning","list","listresponseBodyWarning",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["id","listresponseBodyWarning"],["value","number-override"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[1,"text-center"],["matTooltip","Http Status Code from developer.dealpos.com."],["class","text-center",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],["matTooltip","ex: when payload.Number != response.Number value will be number-override"],[3,"routerLink","queryParams"],[1,"text-white","p-2","rounded","response-desc"],[1,"text-white","p-2","rounded","response-desc",3,"ngClass"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),C("textChange",function(s){return c(d),y(e.Number,s)||(e.Number=s),u(s)}),w("onSubmit",function(s){return c(d),u(e.Get(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(6,tt,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",2),r(9,"Action"),n(),i(10,"ng-select",6),C("ngModelChange",function(s){return c(d),y(e.filter.ActionType,s)||(e.filter.ActionType=s),u(s)}),n()(),i(11,"div",5)(12,"label",7),r(13,"From/To"),n(),i(14,"div",8)(15,"datepicker",9),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(16,"div")(17,"datepicker",10),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(18,"div",5)(19,"label",11),r(20,"Response Code"),n(),i(21,"input",12),C("ngModelChange",function(s){return c(d),y(e.filter.StatusCode,s)||(e.filter.StatusCode=s),u(s)}),n()(),i(22,"div",5)(23,"label",11),r(24,"Response Body Warning"),n(),i(25,"input",13),C("ngModelChange",function(s){return c(d),y(e.filter.responseBodyWarning,s)||(e.filter.responseBodyWarning=s),u(s)}),n(),i(26,"datalist",14),L(27,"option",15),n()(),i(28,"div",5)(29,"label",11),r(30,"Page Number"),n(),i(31,"input",16),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(32,"div",5)(33,"label",11),r(34,"Page Size"),n(),i(35,"input",17),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()(),i(36,"content")(37,"div",18)(38,"div",19)(39,"div",20),f(40,lt,21,6,"ng-container",21)(41,st,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(42);_("text",e.Number),l(5),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(5),p("clearable",!0)("items",e.ActionTypeList),_("ngModel",e.filter.ActionType),l(5),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.StatusCode),l(4),_("ngModel",e.filter.responseBodyWarning),l(6),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",d)}},dependencies:[ge,Z,T,De,Me,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,Re,D],encapsulation:2})}}return o})();var dt=o=>({"bg-gradient-warning":o}),mt=()=>["/menu/log/inventory/sync-inventory/detail"],pt=o=>({ID:o});function ct(o,g){if(o&1&&(i(0,"span",19),L(1,"img",20),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function ut(o,g){if(o&1&&(i(0,"tr",26)(1,"td")(2,"a",27),r(3),b(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n(),i(11,"td"),r(12),n()()),o&2){let t=g.$implicit;p("ngClass",A(11,dt,t.ResponseCode==400)),l(2),p("routerLink",Y(13,mt))("queryParams",A(14,pt,t.ID)),l(),R(" ",E(4,8,t.Created,"dd MMM yyyy HH:mm")," "),l(3),m(t.channelName),l(2),m(t.Sku),l(2),m(t.Stock),l(2),m(t.ResponseCode)}}function gt(o,g){if(o&1){let t=I();H(0),i(1,"div",21)(2,"table",22)(3,"thead")(4,"tr",23)(5,"th"),r(6,"Created"),n(),i(7,"th"),r(8,"Channel"),n(),i(9,"th"),r(10,"SKU"),n(),i(11,"th"),r(12,"Stock"),n(),i(13,"th"),r(14,"Response code"),n()()(),i(15,"tbody"),f(16,ut,13,16,"tr",24),n()(),i(17,"mat-paginator",25),w("page",function(e){c(t);let d=S();return u(d.changePage(e))}),n()(),z()}if(o&2){let t=S();l(16),p("ngForOf",t.Result),l(),p("length",t.paginationTotal)("pageSize",t.paginationPageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function ht(o,g){o&1&&(i(0,"div",28),L(1,"app-empty-state"),n())}var je=(()=>{class o{constructor(t,a,e){this.http=t,this._RawLogService=a,this.authService=e,this.Result=Array(),this.filter={PageNumber:0,RowCount:20,Sku:null,ChannelID:"",StatusCode:"",From:"",To:""},this.Load(),this.channelOptions=this.authService.getChannels()}Load(){this.http.post("/api/OrdersLoader/Get",{}).subscribe(t=>{this.filter=t.Filter,this.ActionTypeList=t.Options.ActionTypeList,this.Get()})}Get(t){t!=null&&(this.filter.Sku=t),this.http.post("api/Inventory/GetLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){let d={ID:e._source.log.id,Created:e._source["@timestamp_received"],channelName:e._source.log.channelName,Sku:e._source.log.sku,Stock:e._source.log.stock,ResponseCode:e._source.log.responseCode};this.Result.push(d)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(t){this.filter.PageNumber=t.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(ae),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-inventory-log"]],standalone:!1,decls:33,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Channel Inventory Sync","searchBoxPlaceHolder","Enter SKU...",3,"textChange","onSubmit","text"],["role","button","routerLink","/menu/log/inventory",1,"btn","btn-success"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),C("textChange",function(s){return c(d),y(e.filter.Sku,s)||(e.filter.Sku=s),u(s)}),w("onSubmit",function(s){return c(d),u(e.Get(s))}),i(1,"actions")(2,"a",2),r(3," Order Inventory Sync Job "),n()(),i(4,"filters")(5,"div",3)(6,"div")(7,"label",4),r(8,"Channel"),n(),i(9,"ng-select",5),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(10,ct,3,3,"ng-template",6),n()(),i(11,"div",7)(12,"label",8),r(13,"From/To"),n(),i(14,"div",9)(15,"datepicker",10),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(16,"div")(17,"datepicker",11),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(18,"div",7)(19,"label",12),r(20,"Page Number"),n(),i(21,"input",13),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(22,"div",7)(23,"label",12),r(24,"Page Size"),n(),i(25,"input",14),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()()(),i(26,"content")(27,"div",15)(28,"div",16)(29,"div",17),f(30,gt,18,4,"ng-container",18)(31,ht,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(32);_("text",e.filter.Sku),l(9),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(6),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",d)}},dependencies:[ge,Z,T,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,D],encapsulation:2})}}return o})();var ft=()=>["/menu/log/rawlog/detail"],vt=o=>({ID:o});function _t(o,g){if(o&1&&(i(0,"span",17),L(1,"img",18),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function yt(o,g){if(o&1&&(i(0,"tr")(1,"td")(2,"a",25),r(3),b(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n()()),o&2){let t=g.$implicit;l(2),p("routerLink",Y(9,ft))("queryParams",A(10,vt,t.id)),l(),R(" ",E(4,6,t.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),m(t.type),l(2),m(t.number),l(2),m(t.message)}}function Ct(o,g){if(o&1){let t=I();H(0),i(1,"div",19)(2,"table",20)(3,"thead",21)(4,"tr")(5,"th",22),r(6,"Date"),n(),i(7,"th"),r(8,"Type"),n(),i(9,"th"),r(10,"Number"),n(),i(11,"th"),r(12,"Message"),n()()(),i(13,"tbody"),f(14,yt,11,12,"tr",23),n()(),i(15,"mat-paginator",24),w("page",function(e){c(t);let d=S();return u(d.changePage(e))}),n()(),z()}if(o&2){let t=S();l(14),p("ngForOf",t.Result),l(),p("length",t.paginationTotal)("pageSize",t.paginationPageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function St(o,g){o&1&&(i(0,"div",26),L(1,"app-empty-state"),n())}var qe=(()=>{class o{constructor(t,a,e){this.http=t,this._RawLogService=a,this.authService=e,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:""},this.list=[],this.Types=[{Key:0,Value:"Shopee"},{Key:1,Value:"Tokopedia"}],this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(t={}){this.http.post("/api/OrdersLoader/Get",t).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(t){this.filter.Number=t,this.http.post("api/Orders/GetRawLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){let d={id:e._id,message:e._source.message,responseCode:e._source.log.responseCode,processTypeString:e._source.log.processType,type:e._source.log.type,number:e._source.log.number,Created:e._source["@timestamp_received"]};this.Result.push(d)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(t){this.filter.PageNumber=t.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(ae),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-raw-log"]],standalone:!1,decls:29,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Channel Push Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table"],[1,"thead-light"],[2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),C("textChange",function(s){return c(d),y(e.filter.Number,s)||(e.filter.Number=s),u(s)}),w("onSubmit",function(s){return c(d),u(e.Get(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(6,_t,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",6),r(9,"From/To"),n(),i(10,"div",7)(11,"datepicker",8),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(12,"div")(13,"datepicker",9),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(14,"div",5)(15,"label",10),r(16,"Page Number"),n(),i(17,"input",11),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(18,"div",5)(19,"label",10),r(20,"Page Size"),n(),i(21,"input",12),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()(),i(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),f(26,Ct,16,4,"ng-container",16)(27,St,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(28);_("text",e.filter.Number),l(5),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(6),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",d)}},dependencies:[Z,T,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,D],encapsulation:2})}}return o})();function bt(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let t=S();l(6),m(t.ProcessedCode)}}function xt(o,g){if(o&1){let t=I();i(0,"a",16),w("click",function(){c(t);let e=S();return u(e.Retry())}),r(1,"Retry"),n()}}var Ge=(()=>{class o{constructor(t,a){this.route=t,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var t={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",t).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var t={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",t).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=B.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=B.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M))}}static{this.\u0275cmp=x({type:o,selectors:[["app-raw-detail"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),b(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,bt,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),b(69,"json"),n()()(),i(70,"actions",14),f(71,xt,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),b(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),m(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),m(e.Number),l(7),m(e.MarketTypeString),l(7),m(e.ResponseCode),l(7),m(e.shopId),l(),p("ngIf",e.ProcessedCode!=null),l(7),m(e.POSActionTypeString),l(11),m(O(69,17,e.request)),l(3),p("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),m(O(82,19,e.response)))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();function wt(o,g){if(o&1&&(i(0,"div",10)(1,"div",7)(2,"div",8)(3,"h5"),r(4,"General"),n()(),i(5,"div",9)(6,"div",3)(7,"div",6)(8,"div",12)(9,"label"),r(10,"Date"),n(),i(11,"div")(12,"span"),r(13),b(14,"date"),n()()()(),i(15,"div",6)(16,"div",12)(17,"label"),r(18,"SKU"),n(),i(19,"div")(20,"span"),r(21),n()()()(),i(22,"div",6)(23,"div",12)(24,"label"),r(25,"Channel"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",6)(30,"div",12)(31,"label"),r(32,"Response Code"),n(),i(33,"div")(34,"span"),r(35),n()()()()()()()()),o&2){let t=S();l(13),m(E(14,4,t.data.Created,"dd MMM yyyy")),l(8),m(t.data.Sku),l(7),m(t.data.ChannelName),l(7),m(t.data.ResponseCode)}}var He=(()=>{class o{constructor(t,a,e){this.route=t,this.http=a,this._RawLogService=e,this.data={Created:"",Sku:"",ChannelName:"",ResponseCode:""},this.route.queryParams.subscribe(d=>{this.ID=d.ID,this.Load()})}ngOnInit(){}Load(){var t={ID:this.ID};this.http.post("/api/Inventory/GetInventoryLogDeatil",t).subscribe(a=>{this.data.Created=a.hits[0]._source["@timestamp_received"],this.data.Sku=a.hits[0]._source.log.sku,this.data.ChannelName=a.hits[0]._source.log.channelName,this.data.ResponseCode=a.hits[0]._source.log.responseCode,this.request=B.IsNotEmpty(a.hits[0]?._source.log?.request)?JSON.parse(a.hits[0]?._source?.log?.request):"",this.response=a.hits[0]._source.log.response})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M),h(ae))}}static{this.\u0275cmp=x({type:o,selectors:[["app-inventory-detail"]],standalone:!1,decls:30,vars:7,consts:[["headerTitle","Product Inventory Sync Detail",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory/sync-inventory",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[1,"container-fluid","mt-3"],[1,"row"],["class","col-sm-12",4,"ngIf"],[1,"row","mt-2"],[1,"col-sm-6"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group"],[1,"info-label-group"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3),f(7,wt,36,7,"div",4),n(),i(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"h5"),r(13,"Request"),n()(),i(14,"div",9)(15,"div",10)(16,"div",11)(17,"pre"),r(18),b(19,"json"),n()()()()()(),i(20,"div",6)(21,"div",7)(22,"div",8)(23,"h5"),r(24,"Response"),n()(),i(25,"div",9)(26,"div",10)(27,"div",11)(28,"pre"),r(29),n()()()()()()()()()()),a&2&&(p("hideSearchBox",!0)("hideSearchDropdown",!0),l(7),p("ngIf",e.data),l(11),m(O(19,5,e.request)),l(11),m(e.response))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();function It(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let t=S();l(6),m(t.ProcessedCode)}}function Et(o,g){if(o&1){let t=I();i(0,"a",16),w("click",function(){c(t);let e=S();return u(e.Retry())}),r(1,"Retry"),n()}}var ze=(()=>{class o{constructor(t,a){this.route=t,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var t={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",t).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var t={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",t).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=B.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=B.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M))}}static{this.\u0275cmp=x({type:o,selectors:[["app-orderdetail"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),b(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,It,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),b(69,"json"),n()()(),i(70,"actions",14),f(71,Et,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),b(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),m(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),m(e.Number),l(7),m(e.MarketTypeString),l(7),m(e.ResponseCode),l(7),m(e.shopId),l(),p("ngIf",e.ProcessedCode!=null),l(7),m(e.POSActionTypeString),l(11),m(O(69,17,e.request)),l(3),p("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),m(O(82,19,e.response)))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();var Tt=()=>["/menu/log/exception/detail"],Dt=o=>({ID:o});function Mt(o,g){if(o&1&&(i(0,"span",17),L(1,"img",18),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function Nt(o,g){if(o&1&&L(0,"img",27),o&2){let t=S().$implicit;p("src",t.Logo,G)}}function Lt(o,g){if(o&1&&(i(0,"tr")(1,"td"),f(2,Nt,1,1,"img",25),r(3),n(),i(4,"td")(5,"a",26),r(6),n()(),i(7,"td"),r(8),b(9,"date"),n(),i(10,"td")(11,"div",10),r(12),n(),i(13,"div"),r(14),n()()()),o&2){let t,a=g.$implicit;l(2),p("ngIf",a.Logo),l(),R(" ",a.ChannelName," "),l(2),p("routerLink",Y(11,Tt))("queryParams",A(12,Dt,a.id)),l(),R(" ",(t=a.number)!==null&&t!==void 0?t:"N/A"," "),l(2),m(E(9,8,a.date,"dd-MM-yyyy hh:mm:ss")),l(4),m(a.message),l(2),m(a.stackTrace)}}function Pt(o,g){if(o&1){let t=I();H(0),i(1,"mat-paginator",28),w("page",function(e){c(t);let d=S(2);return u(d.onPaginationChange(e))}),n(),z()}if(o&2){let t=S(2);l(),p("length",t.pageTotal)("pageSize",t.pageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function Rt(o,g){if(o&1&&(H(0),i(1,"div",19)(2,"table",20)(3,"thead")(4,"tr",21)(5,"th",22),r(6,"Channel Name"),n(),i(7,"th",22),r(8,"Number"),n(),i(9,"th",22),r(10,"Date"),n(),i(11,"th"),r(12,"Exception"),n()()(),i(13,"tbody"),f(14,Lt,15,14,"tr",23),n()(),f(15,Pt,2,3,"ng-container",24),n(),z()),o&2){let t=S();l(14),p("ngForOf",t.exceptions),l(),p("ngIf",(t.exceptions==null?null:t.exceptions.length)>0)}}function Ot(o,g){o&1&&(i(0,"div",29),L(1,"app-empty-state"),n())}var Ue=(()=>{class o{constructor(t,a){this.http=t,this.authService=a,this.exceptions=[],this.filter={RowCount:50,PageNumber:1,Number:null,From:null,To:null,ChannelID:null},this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(t={}){this.http.post("/api/OrdersLoader/Get",t).subscribe(a=>{this.filter=a.Filter,this.getData()})}getData(t){this.filter.Number=t,this.http.post("/api/Orders/GetExceptionList",this.filter).subscribe(a=>{this.exceptions=a.hits.map(e=>({id:e._id,ChannelName:e._source?.channelId!=null?this.channelOptions.find(d=>d.ID===e._source?.channelId)?.Name:e._source?.shopId,Logo:e._source?.channelId!=null?this.channelOptions.find(d=>d.ID===e._source?.channelId)?.Img:null,number:e._source?.error?.number,date:e._source["@timestamp_received"],stackTrace:e._source?.error?.stackTrace,message:e._source?.message,requestJSON:e._source?.error?.requestJSON})),this.pageTotal=a.total.value,this.pageSize=this.filter.RowCount>this.pageTotal?this.pageTotal:this.filter.RowCount})}onPaginationChange(t){this.filter.PageNumber=t.pageIndex+1,this.getData()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-exception-log"]],standalone:!1,decls:29,vars:9,consts:[["EMPTY_STATE",""],["headerTitle","Exception Log","searchBoxPlaceHolder","Enter Number...",3,"onSubmit"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","10%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Logo","style","width: 18px;",3,"src",4,"ngIf"],[3,"routerLink","queryParams"],["alt","Logo",2,"width","18px",3,"src"],[3,"page","length","pageSize","pageIndex"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),w("onSubmit",function(s){return c(d),u(e.getData(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(6,Mt,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",6),r(9,"From/To"),n(),i(10,"div",7)(11,"datepicker",8),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(12,"div")(13,"datepicker",9),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(14,"div",5)(15,"label",10),r(16,"Page Number"),n(),i(17,"input",11),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(18,"div",5)(19,"label",10),r(20,"Page Size"),n(),i(21,"input",12),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()(),i(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),f(26,Rt,16,2,"ng-container",16)(27,Ot,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(28);l(5),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(6),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",e.exceptions.length>0)("ngIfElse",d)}},dependencies:[Z,T,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,D],encapsulation:2})}}return o})();var Je=(()=>{class o{constructor(t){this.httpService=t}getExceptionDetail(t){return this.httpService.post("/api/Orders/GetDetailException",{ID:t}).pipe(ue(e=>e?.hits[0]?._source))}static{this.\u0275fac=function(a){return new(a||o)(we(M))}}static{this.\u0275prov=ce({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function Wt(o,g){if(o&1&&(i(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h5"),r(6,"General"),n()(),i(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"label"),r(12,"Date"),n(),i(13,"div")(14,"span"),r(15),b(16,"date"),n()()()(),i(17,"div",9)(18,"div",10)(19,"label"),r(20,"Number"),n(),i(21,"div")(22,"span"),r(23),n()()()(),i(24,"div",9)(25,"div",10)(26,"label"),r(27,"Channel Name"),n(),i(28,"div")(29,"span"),r(30),n()()()(),i(31,"div",9)(32,"div",10)(33,"label"),r(34,"ShopID"),n(),i(35,"div")(36,"span"),r(37),n()()()(),i(38,"div",9)(39,"div",10)(40,"label"),r(41,"Channel ID"),n(),i(42,"div")(43,"span"),r(44),n()()()()()()()()(),i(45,"div",11)(46,"div",9)(47,"div",5)(48,"div",6)(49,"h5"),r(50,"Request"),n()(),i(51,"div",7)(52,"div",12)(53,"div",13)(54,"pre"),r(55),b(56,"json"),n()()()()()(),i(57,"div",9)(58,"div",5)(59,"div",6)(60,"h5"),r(61,"Exception"),n()(),i(62,"div",7)(63,"div",14)(64,"div",13)(65,"pre"),r(66),n()()()()()()()()),o&2){let t=g.ngIf;l(15),m(E(16,7,t["@timestamp"],"dd MMM yyyy HH:mm:ss")),l(8),m(t==null||t.error==null?null:t.error.number),l(7),m(t==null?null:t.channelName),l(7),m(t==null?null:t.shopId),l(7),m(t==null?null:t.message),l(11),m(O(56,10,t==null||t.error==null?null:t.error.request)),l(11),m(t==null||t.error==null?null:t.error.response)}}var Ye=(()=>{class o{constructor(t,a,e){this.activatedRoute=t,this.exceptionService=a,this.authService=e,this.invoiceNumber="",this.channelName="",this.logo=null,this.channelOptions=this.authService.getChannels()}ngOnInit(){let t=this.activatedRoute.snapshot.queryParams;this.exceptionDetail$=this.exceptionService.getExceptionDetail(t?.ID).pipe(ue(a=>{let e=a;return{"@timestamp":e["@timestamp"]||e["@timestamp_received"],error:{number:e?.error?.number,request:JSON.parse(e?.error?.request),response:JSON.parse(e?.error?.response)},channelName:e?.channelId!=null?this.channelOptions.find(d=>d.ID===e?.channelId)?.Name:e?.shopId,shopId:e?.shopId,message:e?.message}}))}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(Je),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-exception-detail"]],standalone:!1,decls:4,vars:6,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["class","container-fluid mt-3",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-2"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"content"),f(2,Wt,67,12,"div",1),b(3,"async"),n()()),a&2&&(p("headerTitle","Order #"+e.invoiceNumber)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),p("ngIf",O(3,4,e.exceptionDetail$)))},dependencies:[T,N,Ee,F,D],encapsulation:2})}}return o})();function kt(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let t=S();l(6),m(t.ProcessedCode)}}function Bt(o,g){if(o&1){let t=I();i(0,"a",16),w("click",function(){c(t);let e=S();return u(e.Retry())}),r(1,"Retry"),n()}}var Ke=(()=>{class o{constructor(t,a){this.route=t,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var t={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",t).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var t={ID:this.ID};this.http.post("/api/Orders/GetDetailSyncOrder",t).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=B.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=B.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M))}}static{this.\u0275cmp=x({type:o,selectors:[["app-orderdetail-user"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),b(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,kt,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),b(69,"json"),n()()(),i(70,"actions",14),f(71,Bt,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),b(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),m(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),m(e.Number),l(7),m(e.MarketTypeString),l(7),m(e.ResponseCode),l(7),m(e.shopId),l(),p("ngIf",e.ProcessedCode!=null),l(7),m(e.POSActionTypeString),l(11),m(O(69,17,e.request)),l(3),p("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),m(O(82,19,e.response)))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();var At=[{path:"",component:Ae,children:[{path:"",redirectTo:"exception",pathMatch:"full"},{path:"order",component:Fe,canActivate:[W],data:{title:"Order Log"}},{path:"inventory/sync-inventory",component:je,canActivate:[W],data:{title:"Product Inventory Sync"}},{path:"rawlog",component:qe,canActivate:[W],data:{title:"Raw Log"}},{path:"rawlog/detail",component:Ge,canActivate:[W],data:{title:"Raw Log Detail"}},{path:"inventory/sync-inventory/detail",component:He,canActivate:[W],data:{title:"Product Inventory Sync Detail"}},{path:"order/detail",component:ze,canActivate:[W],data:{title:"Order Details"}},{path:"order/detail-user",component:Ke,canActivate:[W],data:{title:"Order User Details"}},{path:"exception",component:Ue,canActivate:[W],data:{title:"Exception Log"}},{path:"exception/detail",component:Ye,canActivate:[W],data:{title:"Exception Log Detail"}},{path:"inventory",loadComponent:()=>import("./chunk-KQOYVGBL.js").then(o=>o.InventoryAsyncLogComponent),canActivate:[W],data:{title:"Product Inventory Sync"}},{path:"inventory/detail",loadComponent:()=>import("./chunk-DZ2EE5MV.js").then(o=>o.InventoryAsyncDetailComponent),canActivate:[W],data:{title:"Product Inventory Sync Detail"}},{path:"authorization-log",loadComponent(){return import("./chunk-5S6SIKR7.js").then(o=>o.ChannelLogComponent)},canActivate:[W],data:{title:"Authorization Log"}}]}],Ze=(()=>{class o{static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275mod=pe({type:o})}static{this.\u0275inj=me({imports:[he,fe.forChild(At)]})}}return o})();var Qe=(()=>{class o{static \u0275fac=function(a){return new(a||o)};static \u0275mod=pe({type:o});static \u0275inj=me({})}return o})();var $i=(()=>{class o{static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275mod=pe({type:o})}static{this.\u0275inj=me({imports:[he,Ne,Le,Ze,fe,Ve,Qe,Be,Pe,ke,q,Oe]})}}return o})();export{$i as LogsModule};
@@ -1,5 +0,0 @@
1
- import{a as je,b as Ke}from"./chunk-5GX2GLRY.js";import"./chunk-JBKHY4HH.js";import{a as Ae,b as $e,c as ze,e as Ye,f as Ue,g as Ge}from"./chunk-IYYVZ6B6.js";import"./chunk-RVYGL22E.js";import"./chunk-6XFYITUD.js";import{i as Ne,j as We,k as Re,l as Be,m as Le}from"./chunk-75BDXSG3.js";import"./chunk-D54NUPYF.js";import{a as Oe}from"./chunk-EGTYAIU5.js";import"./chunk-6ALHX2I4.js";import"./chunk-4G3QN54S.js";import{a as Ve,b as Fe,c as ke}from"./chunk-GHQH62TZ.js";import"./chunk-CH2MLZU7.js";import"./chunk-MNFHFW3E.js";import"./chunk-SDUUFQUI.js";import"./chunk-G6EG5QJS.js";import"./chunk-Q2OEJFVT.js";import{c as De,d as Te,e as be}from"./chunk-6IAGGRZN.js";import"./chunk-T6QOFDEE.js";import"./chunk-KXZCGKQW.js";import"./chunk-QCZIDOKW.js";import{j as Z,l as ee}from"./chunk-CHZLFJFI.js";import{b as ye,e as xe}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-KHWTOD6H.js";import{l as Ie,m as Me}from"./chunk-BIQHA7UA.js";import{r as Ee,s as Pe}from"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{c as we,h as Ce,m as Se,y as ve}from"./chunk-DPLEMBB4.js";import{b as X,c as x}from"./chunk-PXB4YEY3.js";import{J as ge,d as R,f as B,g as L,j as q,k as J,n as F}from"./chunk-GPEVUTDI.js";import{$c as _e,Ac as he,Dc as T,Eb as I,Ec as l,Fc as V,Gc as S,Ic as b,Jc as E,Ka as j,Kb as g,Kc as P,Na as k,Oc as K,Qa as _,Qc as ue,Rc as fe,Wb as d,Z as z,Zc as W,_c as U,aa as oe,ad as H,bc as M,ea as Y,gc as r,hc as a,ic as C,ja as le,jc as O,kc as N,m as re,mc as y,ob as pe,pa as v,qb as o,qd as Q,rc as w,sc as h,v as G,vc as se,wc as de,ya as m,yc as me,za as c,zc as ce}from"./chunk-T5ONJF63.js";import{a as ne,b as ae}from"./chunk-K2H6WANG.js";var Je=t=>({"over-due":t});function Xe(t,s){if(t&1&&(r(0,"tr",8)(1,"td"),l(2),a(),r(3,"td"),l(4),a(),r(5,"td"),l(6),a(),r(7,"td"),l(8),a()()),t&2){let e=s.$implicit,n=s.index;d("ngClass",ue(5,Je,e.Exception)),o(2),V(n+1),o(2),V(e.Number),o(2),V(e.Status),o(2),V(e.Exception)}}function Ze(t,s){if(t&1&&(O(0),g(1,Xe,9,7,"tr",7),N()),t&2){let e,n=h();o(),d("ngForOf",(e=n.downloadResult())==null?null:e.Body)}}function et(t,s){t&1&&(r(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),a(),r(4,"h4",13),l(5," There is no order to processed "),a()()())}var He=(()=>{class t{constructor(){this.downloadResult=k()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:16,vars:2,consts:[["EMPTY_DOWNLOAD",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1&&(r(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),r(6,"th"),l(7,"Order Number"),a(),r(8,"th"),l(9,"Status"),a(),r(10,"th"),l(11,"Exception"),a()()(),r(12,"tbody"),g(13,Ze,2,1,"ng-container",6)(14,et,6,0,"ng-template",null,0,H),a()()()()),n&2){let p,u=T(15);o(13),d("ngIf",((p=i.downloadResult())==null||p.Body==null?null:p.Body.length)>0)("ngIfElse",u)}},dependencies:[F,R,B,L],encapsulation:2})}}return t})();var A=(()=>{class t{constructor(){this.httpService=v(xe),this.toastr=v(ye),this.datePipe=v(J)}gerChannelDetailById(e){return this.httpService.post(Z.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(Z.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(Z.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(Y(n=>{n.Data?.length===0&&this.toastrEmptyPreview(e)})):re}toastrEmptyPreview(e){let n=this.datePipe.transform(e.From,"dd MMM yyyy"),i=this.datePipe.transform(e.To,"dd MMM yyyy"),p=e.TimeFrom?e.TimeFrom:"",u=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${p} to ${i} ${u}!`,"No Orders!")}validateDatePreview(e){let n=!0;return e.downloadType==!0?x.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):x.getDaysDiff(e?.From,e?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),n=!1),n}getDateTitle(e,n){let i=x.formatTitleFromDate(new Date(e),new Date(n)),p=this.datePipe.transform(e,i),u=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":p+"-"} ${u}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac})}}return t})();function tt(t,s){if(t&1&&(r(0,"ng-option",13),C(1,"img",14),l(2),a()),t&2){let e=s.$implicit;d("value",e.ID),o(),d("src",e==null?null:e.Img,pe),o(),S("",e.Name," ")}}function it(t,s){if(t&1){let e=y();r(0,"div",8)(1,"div",4)(2,"h5"),l(3,"Type"),a(),r(4,"p",5),l(5,"Select Type want to download"),a()(),r(6,"div",4)(7,"div",15)(8,"div")(9,"mat-radio-group",16),P("ngModelChange",function(i){m(e);let p=h();return E(p.downloadType,i)||(p.downloadType=i),c(i)}),w("ngModelChange",function(){m(e);let i=h();return c(i.onDownloadTypeChange())}),r(10,"mat-radio-button",17),l(11," Orders "),a(),r(12,"mat-radio-button",18),l(13," Disbursement "),a()()()(),r(14,"div",19)(15,"div",20),C(16,"i",21),a(),r(17,"p",22),l(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),a()()()()}if(t&2){let e=h();o(9),b("ngModel",e.downloadType),o(),d("value",!1),o(2),d("value",!0)}}function nt(t,s){t&1&&(r(0,"p",5),l(1," Select Disbursement date "),r(2,"span",23),l(3,"(payment date / order complete date)"),a(),l(4," of the channel you want to download (Max 1 Week). "),a())}function at(t,s){t&1&&(r(0,"p",5),l(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),a())}function rt(t,s){if(t&1){let e=y();r(0,"div",12)(1,"app-timepicker",24),P("timeChange",function(i){m(e);let p=h();return E(p.startTime,i)||(p.startTime=i),c(i)}),w("timeChange",function(){m(e);let i=h();return c(i.onStartTimeChange())}),a(),r(2,"span",25),l(3,"-"),a(),r(4,"app-timepicker",24),P("timeChange",function(i){m(e);let p=h();return E(p.endTime,i)||(p.endTime=i),c(i)}),w("timeChange",function(){m(e);let i=h();return c(i.onEndTimeChange())}),a()()}if(t&2){let e=h();o(),b("time",e.startTime),o(3),b("time",e.endTime)}}var Qe=(()=>{class t{constructor(){this.reset=k(!1),this.authService=v(ee),this.downloadService=v(A),this.downloadType=_(!1),this.selectedChannelId=_(null),this.channelOptions=_(this.authService.getChannels()),this.channelType=X,this.selectedChannel=_(null),this.showTimePicker=_(!1),this.startDate=_(null),this.endDate=_(null),this.startTime=_("00:00"),this.endTime=_("23:59"),this.filterData=new j,Q(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0})}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(e=>e.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(G(e=>e?.Model),z(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=x.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>e==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange"},features:[K([A])],decls:27,vars:11,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"row","mt-6"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(n,i){if(n&1){let p=y();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),l(5,"Select a Channel"),a(),r(6,"p",5),l(7,"Select Channel want to download order"),a()(),r(8,"div",4)(9,"ng-select",6),P("ngModelChange",function(f){return m(p),E(i.selectedChannelId,f)||(i.selectedChannelId=f),c(f)}),w("ngModelChange",function(){return m(p),c(i.onSelectChannel())}),g(10,tt,3,3,"ng-option",7),a()()(),g(11,it,19,3,"div",8),W(12,"async"),r(13,"div",8)(14,"div",4)(15,"h5"),l(16,"Date Range"),a(),g(17,nt,5,0,"p",5)(18,at,2,0,"p",5),a(),r(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),P("ngModelChange",function(f){return m(p),E(i.startDate,f)||(i.startDate=f),c(f)}),w("click",function(){m(p);let f=T(25);return c(f.open())}),a(),r(23,"input",11),P("ngModelChange",function(f){return m(p),E(i.endDate,f)||(i.endDate=f),c(f)}),w("click",function(){m(p);let f=T(25);return c(f.open())})("ngModelChange",function(){return m(p),c(i.onFilterDateChange())}),a()(),C(24,"mat-date-range-picker",null,0),a(),g(26,rt,5,2,"div",12),a()()()()}if(n&2){let p,u,f=T(25);o(9),d("clearable",!1),b("ngModel",i.selectedChannelId),o(),d("ngForOf",i.channelOptions()),o(),M((p=U(12,9,i.channelDetail$))!=null&&p.ServiceFeeWriteOff&&((p=i.selectedChannel())==null?null:p.TypeID)==i.channelType.Tokopedia?11:-1),o(6),M(i.downloadType()&&((u=i.selectedChannel())==null?null:u.TypeID)==i.channelType.Tokopedia?17:18),o(4),d("rangePicker",f),o(),b("ngModel",i.startDate),o(),b("ngModel",i.endDate),o(3),M(i.showTimePicker()?26:-1)}},dependencies:[F,B,q,be,Te,De,ke,Ve,Fe,ve,we,Ce,Se,Ke,Be,Ne,Le,We,Re],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"]})}}return t})();var D=function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t}(D||{});var $=function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t}($||{});var ot=(t,s)=>({"over-due-today":t,"over-due":s});function lt(t,s){if(t&1&&(r(0,"th",21),l(1),a()),t&2){let e=h();o(),S(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function pt(t,s){if(t&1&&(r(0,"td"),l(1),W(2,"date"),a()),t&2){let e=h().$implicit;o(),S(" ",_e(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function st(t,s){if(t&1&&(r(0,"span"),l(1),a()),t&2){let e=h().$implicit;o(),S(" ",e.ActionString," ")}}function dt(t,s){if(t&1&&(r(0,"li"),l(1),a()),t&2){let e=s.$implicit;o(),S(" ",e," ")}}function mt(t,s){if(t&1&&(r(0,"ul",27),g(1,dt,2,1,"li",22),a()),t&2){let e=h().$implicit;o(),d("ngForOf",e.ActionString)}}function ct(t,s){if(t&1&&(r(0,"span",28),C(1,"i",29),a()),t&2){let e=h().$implicit;de("title","Delivery : ",e.DeliveryState,`
2
- Payment : `,e.PaymentState,"")}}function ht(t,s){if(t&1&&(r(0,"tr")(1,"td"),l(2),a(),r(3,"td"),l(4),a(),g(5,pt,3,4,"td",23),r(6,"td")(7,"span"),l(8),a(),l(9),a(),r(10,"td",24)(11,"span"),l(12),a(),l(13),a(),r(14,"td"),g(15,st,2,1,"span",23)(16,mt,2,1,"ul",25),a(),r(17,"td"),g(18,ct,2,3,"span",26),a()()),t&2){let e,n=s.$implicit,i=s.index,p=h(2);o(2),V(i+1),o(2),V(n.Number),o(),d("ngIf",((e=p.selectedChannel())==null?null:e.TypeID)!=p.channelType.Shopee&&((e=p.selectedChannel())==null?null:e.TypeID)!==p.channelType.Tiktok),o(3),S("",n.ChannelStatus," - "),o(),S("",n.ChannelStatusDescription," "),o(),d("ngClass",fe(12,ot,(n==null?null:n.Action)==p.actionPreviewOrder.Update,(n==null?null:n.Action)==p.actionPreviewOrder.New))("matTooltip",n.POSStatus==91||n.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),o(2),S("",n.POSStatus," - "),o(),S("",n.POSStatusDescription," "),o(2),d("ngIf",n.ActionString.length==1),o(),d("ngIf",n.ActionString.length>1),o(2),d("ngIf",n.ChannelStatus!=99&&n.POSStatus!=99)}}function ut(t,s){if(t&1&&(O(0),g(1,ht,19,15,"tr",22),N()),t&2){let e=h();o(),d("ngForOf",e.displayPreviewData())}}function ft(t,s){t&1&&(r(0,"tr",30)(1,"td",31)(2,"div",32),C(3,"i",33),a(),r(4,"h4",34),l(5," There is no order to processed "),a()()())}var qe=(()=>{class t{constructor(){this.orderPreview=k(),this.selectedChannel=k(),this.channelType=X,this.allData=_(0),this.syncData=_(0),this.wrongData=_(0),this.unsyncData=_(0),this.pillStatus=_(D.ALL),this.actionPreviewOrder=$,this.previewStatus=D,this.displayPreviewData=_([]),this.exportOrders=new j,Q(()=>{this.orderPreview()&&(this.filterPreviewData(D.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(e){this.pillStatus.update(()=>e),this.displayPreviewData.update(()=>this.filterDataByStatus(e))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(D.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(D.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(D.UNSYNC).length)}filterDataByStatus(e){let n=[];switch(e){case D.ALL:n=this.orderPreview();break;case D.SYNC:n=this.orderPreview().filter(i=>i.Action==$.DoNothing);break;case D.WRONG:n=this.orderPreview().filter(i=>i.Action==$.Update);break;case D.UNSYNC:n=this.orderPreview().filter(i=>i.Action==$.New);break}return n}onExportOrders(){this.exportOrders.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},decls:41,vars:11,consts:[["EMPTY",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["matTooltipClass","custom-width-tooltip",3,"ngClass","matTooltip"],["class","ps-5",4,"ngIf"],[3,"title",4,"ngIf"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1){let p=y();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.ALL))}),l(8),a()(),r(9,"li",8)(10,"button",9),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.SYNC))}),l(11),a()(),r(12,"li",8)(13,"button",10),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.WRONG))}),l(14),a()(),r(15,"li",8)(16,"button",11),w("click",function(){return m(p),c(i.filterPreviewData(i.previewStatus.UNSYNC))}),l(17),a()()()(),r(18,"div")(19,"button",12),w("click",function(){return m(p),c(i.onExportOrders())}),C(20,"i",13),r(21,"span"),l(22,"Export"),a()()()()(),r(23,"table",14)(24,"thead",15)(25,"tr"),C(26,"th",16),r(27,"th",17),l(28,"Number"),a(),g(29,lt,2,1,"th",18),r(30,"th",19),l(31,"Channel Status"),a(),r(32,"th",19),l(33,"POS Status"),a(),r(34,"th"),l(35,"Action"),a(),C(36,"th",16),a()(),r(37,"tbody"),g(38,ut,2,1,"ng-container",20)(39,ft,6,0,"ng-template",null,0,H),a()()()()}if(n&2){let p,u,f=T(40);o(7),d("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),o(),S(" All (",i.allData(),") "),o(2),d("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),o(),S(" Existing (",i.syncData(),") "),o(2),d("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),o(),S(" Wrong Status (",i.wrongData(),") "),o(2),d("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),o(),S(" Missing (",i.unsyncData(),") "),o(12),d("ngIf",((p=i.selectedChannel())==null?null:p.TypeID)!=i.channelType.Shopee&&((p=i.selectedChannel())==null?null:p.TypeID)!==i.channelType.Tiktok),o(9),d("ngIf",((u=i.displayPreviewData())==null?null:u.length)>0)("ngIfElse",f)}},dependencies:[F,R,B,L,J,Pe,Ee],encapsulation:2})}}return t})();var _t=["stepper"];function gt(t,s){if(t&1){let e=y();r(0,"div",2)(1,"button",19),w("click",function(){m(e);let i=h();return c(i.onStepperBack())}),l(2," Back "),a(),r(3,"button",20),w("click",function(){m(e);let i=h();return c(i.onNextStep())}),l(4," Next "),a()()}if(t&2){let e=h();o(3),d("disabled",e.disabledNextFilter())}}function wt(t,s){if(t&1){let e=y();r(0,"button",21),w("click",function(){m(e);let i=h();return c(i.onNextStep())}),l(1," Next "),a()}if(t&2){let e=h();d("disabled",e.disabledNextFilter())}}function Ct(t,s){if(t&1){let e=y();r(0,"button",22),w("click",function(){m(e);let i=h();return c(i.onNewDownload())}),C(1,"i",23),l(2," New "),a()}}function St(t,s){t&1&&(C(0,"i",24),r(1,"span"),l(2,"Filter"),a())}function vt(t,s){t&1&&(C(0,"i",25),r(1,"span"),l(2,"Preview"),a())}function yt(t,s){if(t&1){let e=y();O(0),r(1,"preview-step",26),w("onExportOrders",function(){m(e);let i=h();return c(i.onExportOrders())}),a(),N()}if(t&2){let e=s.ngIf;o(),d("orderPreview",e)}}function xt(t,s){t&1&&(C(0,"i",27),r(1,"span"),l(2,"Finish"),a())}function Dt(t,s){if(t&1&&(O(0),C(1,"complete-step",28),N()),t&2){let e=s.ngIf;o(),d("downloadResult",e)}}function Tt(t,s){t&1&&(r(0,"h6"),l(1,"1"),a())}function bt(t,s){t&1&&(r(0,"h6"),l(1,"2"),a())}function Et(t,s){t&1&&(r(0,"h6"),l(1,"3"),a())}var Li=(()=>{class t{constructor(){this.downloadService=v(A),this.orderService=v(je),this.productService=v(Oe),this.authService=v(ee),this.stepperSelectedIndex=_(0),this.disabledNextFilter=_(!0),this.isResetFilter=_(!1),this.pageTitle=_("Download to POS"),this.cacheKey=_(x.GuidEMpty)}onFilterChange(e){this.filter=e,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>x.IsEmpty(this.filter?.channelId)||!x.isValidDate(this.filter.startDate)||!x.isValidDate(this.filter.endDate))}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let e=this.productService.findChannelById(this.filter.channelId,this.authService.getChannels());this.setPageTitle(`Preview ${e?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,IsDisbursement:this.filter.downloadType};x.IsNotEmpty(this.filter.startTime)&&(e=ae(ne({},e),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(e).pipe(Y(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),G(n=>n.Data),z(1))}onExportOrders(){let e={ID:this.filter.channelId,From:this.filter.startDate?this.filter.startDate:null,To:this.filter.endDate?this.filter.endDate:null},n=`Orders ${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)}`;this.orderService.exportOrders(e,n).subscribe()}onDownload(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,ListPreview:[],IsDisbursement:this.filter.downloadType,CacheKey:this.cacheKey()};this.downloadPreview$=this.orderPreview$.pipe(oe(n=>(e.ListPreview=n,this.downloadService.getDownloadOrder(e))),Y(()=>{this.onStepperNext()}),z(1))}setPageTitle(e){this.pageTitle.update(()=>`
3
- ${e} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
4
- `)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!0),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview$=null,this.downloadPreview$=null,this.pageTitle.update(()=>"Download to POS")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&me(_t,5),n&2){let p;ce(p=he())&&(i.stepper=p.first)}},features:[K([A,{provide:Ae,useValue:{displayDefaultIndicatorType:!1}}])],decls:26,vars:20,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"btn","btn-outline-secondary","btn-fill"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","reset"],["state","preview",3,"editable","completed"],[4,"ngIf"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"],[3,"downloadResult"]],template:function(n,i){if(n&1){let p=y();r(0,"mainpanel",1)(1,"actions"),g(2,gt,5,1,"div",2)(3,wt,2,1,"button",3)(4,Ct,3,0,"button",4),a(),r(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-stepper",9,0),P("selectedIndexChange",function(f){return m(p),E(i.stepperSelectedIndex,f)||(i.stepperSelectedIndex=f),c(f)}),r(12,"mat-step",10),g(13,St,3,0,"ng-template",11),r(14,"filter-step",12),w("onFilterChange",function(f){return m(p),c(i.onFilterChange(f))}),a()(),r(15,"mat-step",13),g(16,vt,3,0,"ng-template",11)(17,yt,2,1,"ng-container",14),W(18,"async"),a(),r(19,"mat-step",15),g(20,xt,3,0,"ng-template",11)(21,Dt,2,1,"ng-container",14),W(22,"async"),a(),g(23,Tt,2,0,"ng-template",16)(24,bt,2,0,"ng-template",17)(25,Et,2,0,"ng-template",18),a()()()()()()()}if(n&2){let p=T(11);d("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),o(2),M(i.stepperSelectedIndex()==1?2:-1),o(),M(i.stepperSelectedIndex()==0?3:-1),o(),M(i.stepperSelectedIndex()==2?4:-1),o(6),se("ngClass","last-edited-step-"+p.selectedIndex),b("selectedIndex",i.stepperSelectedIndex),o(2),d("completed",!1)("editable",i.stepperSelectedIndex()!=2),o(2),d("reset",i.isResetFilter()),o(),d("editable",i.stepperSelectedIndex()!=2)("completed",!1),o(2),d("ngIf",U(18,16,i.orderPreview$)),o(4),d("ngIf",U(22,18,i.downloadPreview$))}},dependencies:[F,R,L,q,He,Qe,qe,Ge,Ye,$e,Ue,ze,Me,Ie,ge],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.vertical-radio{display:flex;flex-direction:column;margin:15px 0}.mt-1rem{margin-top:1rem}.dateRange{padding-top:.8rem;padding-bottom:.8rem}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container>div.mat-horizontal-stepper-content:nth-child(1){display:flex;justify-content:left}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container{margin-top:30px}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container>mat-step-header.mat-horizontal-stepper-header{pointer-events:none!important}.form-label-group.radio.download-type{height:45.5938px!important;border-radius:.375rem!important}
5
- `],encapsulation:2})}}return t})();export{Li as DownloadV2Component};
@@ -1 +0,0 @@
1
- import{a as ce}from"./chunk-XM6GN4VF.js";import"./chunk-7477X7LJ.js";import{a as le}from"./chunk-CMCNEAGC.js";import{a as re}from"./chunk-YR2WEZDG.js";import{a as D}from"./chunk-XHAXYWZ7.js";import{c as se,d as E}from"./chunk-4XMCJ7I5.js";import"./chunk-YXFTLQ5M.js";import"./chunk-MATSRG2L.js";import"./chunk-V2OJQHE3.js";import"./chunk-6XFYITUD.js";import"./chunk-OLSC6KHB.js";import"./chunk-LPXBSHUI.js";import"./chunk-D54NUPYF.js";import{a as oe}from"./chunk-EGTYAIU5.js";import"./chunk-7TWBIV3T.js";import"./chunk-J7AGLBPL.js";import"./chunk-6ALHX2I4.js";import"./chunk-4G3QN54S.js";import"./chunk-3RK6DDJD.js";import"./chunk-VGXQU74M.js";import"./chunk-SDUUFQUI.js";import"./chunk-G6EG5QJS.js";import"./chunk-RIHLYYZU.js";import"./chunk-Q2OEJFVT.js";import"./chunk-KXZCGKQW.js";import"./chunk-QCZIDOKW.js";import{l as M}from"./chunk-CHZLFJFI.js";import{b as Z,e as ee}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-KHWTOD6H.js";import{d as te,k as ne,l as ie,m as ae}from"./chunk-BIQHA7UA.js";import"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{c as J,h as K,m as q,o as X,y as Y}from"./chunk-DPLEMBB4.js";import{c as g}from"./chunk-PXB4YEY3.js";import{g as z,j as $,n as Q}from"./chunk-GPEVUTDI.js";import{Eb as j,Ec as I,G as x,Ic as F,Jc as L,Kb as _,Kc as T,Oc as H,Qa as w,Wb as h,Zc as v,_c as y,ea as B,gc as s,hc as c,ic as A,ja as k,jc as U,kc as G,lc as W,mc as N,pa as S,qb as p,rc as u,sc as m,wb as d,ya as b,za as P}from"./chunk-T5ONJF63.js";import{a as O,b as R}from"./chunk-K2H6WANG.js";var V=(()=>{class r{constructor(){this.authService=S(M),this.channelOptions=this.authService.getChannels()}filterSelectedChannels(t,i){let e=Object.assign([],this.channelOptions),n=[],a;return t.forEach(o=>{a=e.find(l=>l.ID==o?.parent?.id),a&&(a=R(O({},a),{Name:`${o?.parent?.label} - ${o?.label}`,LocationID:o?.id}),n.push(a))}),i.forEach(o=>{a=e.find(l=>l.ID==o.id),a&&n.push(a)}),n}generateFilterLocation(t,i){let e=[],n=[],a=[];return t.length>0?(e=t.map(o=>o.id),n=t.filter(o=>g.IsNotEmpty(o?.parent?.id)).map(o=>o?.parent?.id).filter((o,l,f)=>f.indexOf(o)===l)):(e=[],n=[]),a=i.map(o=>o.id),a=a.concat(n).filter((o,l,f)=>f.indexOf(o)===l),{locationIds:e,channelIds:a}}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=k({token:r,factory:r.\u0275fac})}}return r})();function he(r,C){if(r&1){let t=N();s(0,"button",15),u("click",function(){b(t);let e=m().ngIf,n=m();return P(n.onUpdateItems(e))}),A(1,"i",16),I(2," Update "),c()}}function de(r,C){if(r&1&&(s(0,"actions")(1,"div",13),_(2,he,3,0,"button",14),c()()),r&2){let t=C.ngIf,i=m();p(2),h("ngIf",i.productService.hasSelectionVariant(t))}}function me(r,C){r&1&&W(0)}function ue(r,C){if(r&1){let t=N();U(0),s(1,"app-table",17),u("onToggle",function(e){b(t);let n=m();return P(n.onShowDifferenceStock(e))})("onSubmit",function(e){b(t);let n=m();return P(n.updateStockByVariant(e))}),c(),G()}if(r&2){let t=C.ngIf,i=m();p(),h("data",t)("channel",i.channels())("showProductToggle",!0)("hiddenIPOSInventory",i.searchFilter.HiddenIPOSInventory)}}var ze=(()=>{class r{constructor(t,i,e,n,a,o){this.http=t,this.toastr=i,this.dialog=e,this.productService=n,this.authService=a,this.mainPanelService=o,this.paginationService=S(E),this.multiChannelService=S(V),this.searchFilter={PageNumber:1,RowCount:100},this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.selectedLocations=w([]),this.selectedChannels=w([]),this.channels=w([]),this.pageData={Title:"Inventory",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory/pos",Active:!0},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!1}]},this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(B(t=>{t.Filter={PageNumber:t.Filter.PageNumber,filterModel:D.ALL,RowCount:t.Filter.PageSize,HiddenIPOSInventory:t.Filter.HiddenIPOSInventory},this.searchFilter=t.Filter,this.mainPanelService.openModalFilter()}))}onChannelChange(t=[]){let i=t.filter(n=>g.isValidGUID(n.id)==!1),e=t.filter(n=>g.isValidGUID(n.id));this.selectedLocations.set(i),this.selectedChannels.set(e)}onSearch(t){let i=this.multiChannelService.filterSelectedChannels(this.selectedLocations(),this.selectedChannels());this.channels.set(i);let e=this.multiChannelService.generateFilterLocation(this.selectedLocations(),this.selectedChannels());this.searchFilter.ListChannelID=e.channelIds,this.searchFilter.ListLocationID=e.locationIds,this.searchFilter.text=t,this.paginationService.reloadPagination(this.searchFilter)}updateStock(t,i){let e=this.productService.selectedVariantProduct(t);if(e.length>0){let n=[];e.forEach(l=>{l.Channel?.forEach(f=>{n.push({ID:l.ID,Code:l.Code,Inventory:l.Inventory,LocationID:f.LocationID})})});let o={ListChannelID:i.filter(l=>l.selected).map(l=>l.ID),List:n};this.http.post("/api/Inventory/UpdateChannel",o).subscribe(l=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+o.List.length+" variants in "+o.ListChannelID.length+" channels","Success")})}}updateStockByVariant(t){let i={ID:t.ChannelID,ChannelItemID:t.ChannelItemID,ChannelVariantID:t.ChannelVariationID,NewQuantity:parseFloat(t.Inventory),VariantID:t.ID,SKU:t.Sku,LocationID:t.LocationID};this.http.post("/api/Inventory/UpdateQuantityByItem",i).subscribe(e=>{this.paginationService.reloadPagination(this.searchFilter);let n=this.productService.findChannelById(i.ID,this.channelOptions);this.toastr.success("Successfully updated "+t.ItemName+"("+t.VarName+") inventory in "+n.Name+" to "+i.NewQuantity,"Success")})}onShowDifferenceStock(t){t?this.searchFilter.filterModel=D.DIFFERENCE:this.searchFilter.filterModel=D.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(t){let i=this.productService.selectedVariantProduct(t),e=this.channelOptions.filter(n=>this.channels()?.find(a=>a.ID===n.ID));this.dialog.open(re,{data:{selectedItems:i,channels:JSON.parse(JSON.stringify(e))},width:"400px"}).afterClosed().pipe(x(n=>g.IsNotEmpty(n))).subscribe(n=>{this.updateStock(t,n)})}static{this.\u0275fac=function(i){return new(i||r)(d(ee),d(Z),d(te),d(oe),d(M),d(ne))}}static{this.\u0275cmp=j({type:r,selectors:[["app-multi-channel-comparison"]],features:[H([E,V])],decls:26,vars:22,consts:[["headerTitle","Inventory Comparison","textButton","Search",3,"onSubmit","pageData","hideSearchBox"],[4,"ngIf"],["for","selectChannel",1,"fw-bold","mb-3"],["id","selectChannel",3,"onChannelChange","multiple"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],["type","button","class","btn btn-success shadow-sm rounded me-3",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","hiddenIPOSInventory"]],template:function(i,e){i&1&&(s(0,"mainpanel",0),u("onSubmit",function(a){return e.onSearch(a)}),_(1,de,3,1,"actions",1),v(2,"async"),s(3,"filters"),_(4,me,1,0,"ng-container",1),v(5,"async"),s(6,"div")(7,"label",2),I(8,"Channel"),c(),s(9,"multiwarehouse-tree-select",3),u("onChannelChange",function(a){return e.onChannelChange(a)}),c()(),s(10,"div",4)(11,"label",5),I(12,"PageNumber"),c(),s(13,"input",6),T("ngModelChange",function(a){return L(e.searchFilter.PageNumber,a)||(e.searchFilter.PageNumber=a),a}),c()(),s(14,"div",4)(15,"label",7),I(16,"Page Size"),c(),s(17,"input",8),T("ngModelChange",function(a){return L(e.searchFilter.RowCount,a)||(e.searchFilter.RowCount=a),a}),c()()(),s(18,"content")(19,"div",9)(20,"div",10)(21,"div",11),_(22,ue,2,4,"ng-container",1),v(23,"async"),s(24,"infinite-paginator",12),v(25,"async"),u("onNextPage",function(){return e.paginationService.onNextPage(e.searchFilter)})("onLastPage",function(){return e.paginationService.onLastPage(e.searchFilter)})("onGetRowCount",function(){return e.paginationService.getRowCount(e.searchFilter)}),c()()()()()()),i&2&&(h("pageData",e.pageData)("hideSearchBox",!1),p(),h("ngIf",y(2,14,e.paginationService.data$)),p(3),h("ngIf",y(5,16,e.loader$)),p(5),h("multiple",!0),p(4),F("ngModel",e.searchFilter.PageNumber),p(4),F("ngModel",e.searchFilter.RowCount),p(5),h("ngIf",y(23,18,e.paginationService.data$)),p(2),h("totalData",e.paginationService.totalData())("hideCount",e.paginationService.hideCount())("rowCount",y(25,20,e.paginationService.totalRowCount$))("pageNumber",e.paginationService.pageNumber())("disableNextButton",e.paginationService.disableNextButton())("goToLastPage",e.paginationService.isLastPage()))},dependencies:[Q,z,$,ae,ie,le,Y,J,X,K,q,se,ce],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]})}}return r})();export{ze as MultiChannelComparison};