marketplacepos 5.46.0 → 5.46.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/Marketplace/{chunk-FPYZBABH.js → chunk-2O4IEGGR.js} +1 -1
  2. package/Marketplace/{chunk-RDJPSZRF.js → chunk-3434HH7H.js} +1 -1
  3. package/Marketplace/{chunk-Z3ZYINRX.js → chunk-3BALA33G.js} +1 -1
  4. package/Marketplace/{chunk-6RLISMEX.js → chunk-3GDM5JNY.js} +1 -1
  5. package/Marketplace/chunk-3GRC47DP.js +1 -0
  6. package/Marketplace/chunk-45FZJ4W3.js +1 -0
  7. package/Marketplace/{chunk-ZWEHKGL5.js → chunk-4DMKVXM7.js} +1 -1
  8. package/Marketplace/{chunk-LBXSZJDS.js → chunk-4G7SG2H6.js} +1 -1
  9. package/Marketplace/chunk-4JQLXONG.js +1 -0
  10. package/Marketplace/chunk-4NEKWRL7.js +1 -0
  11. package/Marketplace/chunk-4YRBARG2.js +1 -0
  12. package/Marketplace/{chunk-LDD4NVMB.js → chunk-5CKVZBHM.js} +1 -1
  13. package/Marketplace/{chunk-PFXOFSJG.js → chunk-67HPC5Y3.js} +1 -1
  14. package/Marketplace/{chunk-FFCWYWBW.js → chunk-6H2KAYSB.js} +6 -99
  15. package/Marketplace/{chunk-WLRPCY65.js → chunk-6OMSPZZC.js} +1 -1
  16. package/Marketplace/chunk-6RMBCW2O.js +1 -0
  17. package/Marketplace/chunk-6VZVNRUE.js +257 -0
  18. package/Marketplace/{chunk-WCVSETLP.js → chunk-72OHPB5Q.js} +2 -2
  19. package/Marketplace/chunk-77MWKV5I.js +158 -0
  20. package/Marketplace/chunk-7AZDAPB7.js +1 -0
  21. package/Marketplace/chunk-7F74QXF6.js +1 -0
  22. package/Marketplace/{chunk-DFGZ4L65.js → chunk-7G6GQTSH.js} +1 -1
  23. package/Marketplace/chunk-7VLMA7MW.js +1 -0
  24. package/Marketplace/chunk-A57T33JT.js +1 -0
  25. package/Marketplace/{chunk-BBQGPXDH.js → chunk-A6PXM4YX.js} +1 -1
  26. package/Marketplace/{chunk-HFCAD7GH.js → chunk-ABYG6YZT.js} +1 -1
  27. package/Marketplace/{chunk-3TYYN7ZX.js → chunk-AGZCB65X.js} +1 -1
  28. package/Marketplace/chunk-AMYZMAYI.js +15 -0
  29. package/Marketplace/chunk-B2WOBUES.js +1 -0
  30. package/Marketplace/{chunk-QHE3PKRD.js → chunk-BAXQ2L7B.js} +1 -1
  31. package/Marketplace/chunk-BDKGOINV.js +1 -0
  32. package/Marketplace/{chunk-2HNZ6XV3.js → chunk-BKRCW7SH.js} +1 -1
  33. package/Marketplace/{chunk-IQ4AFE6X.js → chunk-BMYBLBSP.js} +3 -3
  34. package/Marketplace/chunk-CBAQUD22.js +1 -0
  35. package/Marketplace/{chunk-F6HNCBQX.js → chunk-CBJR2A72.js} +1 -1
  36. package/Marketplace/chunk-CGEIIRYF.js +1 -0
  37. package/Marketplace/{chunk-MW6Q6DZF.js → chunk-CGOB6Y3X.js} +1 -1
  38. package/Marketplace/{chunk-LSCMIKJ2.js → chunk-CIPLCKUF.js} +1 -1
  39. package/Marketplace/{chunk-5X2WQKXH.js → chunk-CJ4F7QUO.js} +1 -1
  40. package/Marketplace/{chunk-NERXQ5KH.js → chunk-CVM573KF.js} +1 -1
  41. package/Marketplace/{chunk-QNM4JQ46.js → chunk-CWXOXH6M.js} +1 -1
  42. package/Marketplace/{chunk-ZDXNJIJA.js → chunk-DAXM2MPK.js} +1 -1
  43. package/Marketplace/{chunk-WKSCLDT7.js → chunk-EHBCYQSG.js} +1 -1
  44. package/Marketplace/{chunk-QP4C4R4W.js → chunk-EHUVS2VB.js} +1 -1
  45. package/Marketplace/chunk-EPBVNII2.js +51 -0
  46. package/Marketplace/{chunk-G7T42LFR.js → chunk-EYONZQ2W.js} +1 -1
  47. package/Marketplace/{chunk-VVX6LRMW.js → chunk-FGFIV3VO.js} +1 -1
  48. package/Marketplace/chunk-FGRPTNDB.js +234 -0
  49. package/Marketplace/{chunk-EBCTTFHD.js → chunk-FNU2TKTQ.js} +2 -2
  50. package/Marketplace/chunk-FYRDNKYT.js +1 -0
  51. package/Marketplace/chunk-GHVAGYK3.js +2 -0
  52. package/Marketplace/chunk-GPX77ZSI.js +1 -0
  53. package/Marketplace/{chunk-N6HMVYWS.js → chunk-GQXYHXWJ.js} +1 -1
  54. package/Marketplace/chunk-GRQD4D2I.js +1 -0
  55. package/Marketplace/{chunk-YIXZLIPA.js → chunk-GRYGUILI.js} +2 -2
  56. package/Marketplace/{chunk-BJUPMCEP.js → chunk-GZKOMS4T.js} +1 -1
  57. package/Marketplace/{chunk-W3JKSCRF.js → chunk-HERZ7KEM.js} +1 -1
  58. package/Marketplace/{chunk-PONMPAT5.js → chunk-HGZ5B6WR.js} +1 -1
  59. package/Marketplace/{chunk-3UN6FPMN.js → chunk-HIC5QC3Y.js} +1 -1
  60. package/Marketplace/{chunk-4VITMSIA.js → chunk-HITTNWB6.js} +1 -1
  61. package/Marketplace/{chunk-FO7G4GMY.js → chunk-HJXYT6MI.js} +3 -3
  62. package/Marketplace/{chunk-5LQRO4AI.js → chunk-IHSGQFDX.js} +2 -2
  63. package/Marketplace/chunk-II5QZVLR.js +1 -0
  64. package/Marketplace/{chunk-XXWBR6S5.js → chunk-IITU3NV6.js} +1 -1
  65. package/Marketplace/{chunk-LDPDLCRL.js → chunk-JBT7GBCM.js} +1 -1
  66. package/Marketplace/{chunk-VKFFHT27.js → chunk-JGEU4EJT.js} +1 -1
  67. package/Marketplace/{chunk-B67DSLBY.js → chunk-KS7ACI26.js} +6 -6
  68. package/Marketplace/{chunk-OK3LLCAK.js → chunk-KSHWHTCH.js} +1 -1
  69. package/Marketplace/{chunk-RNTPX24O.js → chunk-LBMUKJV5.js} +1 -1
  70. package/Marketplace/chunk-LCZ6SUUA.js +1 -0
  71. package/Marketplace/{chunk-UXPULNCR.js → chunk-LDL3A7NM.js} +1 -1
  72. package/Marketplace/chunk-LFGPYQCI.js +1 -0
  73. package/Marketplace/{chunk-DZYBXWL2.js → chunk-LYPHZP72.js} +1 -1
  74. package/Marketplace/{chunk-NNRBGHXB.js → chunk-MFQQEEHJ.js} +3 -3
  75. package/Marketplace/chunk-MX5SR3SR.js +94 -0
  76. package/Marketplace/chunk-NDLOPOFD.js +1 -0
  77. package/Marketplace/{chunk-CHWXOJDB.js → chunk-NNOI3AG4.js} +1 -1
  78. package/Marketplace/{chunk-I2Y5WJEO.js → chunk-NWWYOZ4V.js} +1 -1
  79. package/Marketplace/{chunk-OIEZ4JUJ.js → chunk-OE7TF7SI.js} +1 -1
  80. package/Marketplace/chunk-OEAOBG75.js +1 -0
  81. package/Marketplace/{chunk-X5KQU53P.js → chunk-OHSVQSCM.js} +1 -1
  82. package/Marketplace/{chunk-QK4BGDSS.js → chunk-OHVOVAKD.js} +1 -1
  83. package/Marketplace/chunk-OVPVQS4J.js +33 -0
  84. package/Marketplace/{chunk-UIFPDTMW.js → chunk-OXWPLJEW.js} +1 -1
  85. package/Marketplace/chunk-P5YM6T6I.js +1 -0
  86. package/Marketplace/chunk-PE4SWUEZ.js +7 -0
  87. package/Marketplace/{chunk-BQIB3N6V.js → chunk-PFY5UG5D.js} +1 -1
  88. package/Marketplace/{chunk-74ELVGDK.js → chunk-PHUHUFYL.js} +1 -1
  89. package/Marketplace/{chunk-AHLYED4C.js → chunk-PIBVGTHJ.js} +1 -1
  90. package/Marketplace/{chunk-FHH5BTG7.js → chunk-PL3Q6PGC.js} +1 -1
  91. package/Marketplace/{chunk-A6G2H7IF.js → chunk-PLHWGG4D.js} +2 -2
  92. package/Marketplace/{chunk-OFZOAEW5.js → chunk-PQQSREEC.js} +1 -1
  93. package/Marketplace/chunk-Q2B5GUDO.js +1 -0
  94. package/Marketplace/{chunk-QBL6V7QF.js → chunk-Q4N2QUV6.js} +1 -1
  95. package/Marketplace/{chunk-OXOTD33C.js → chunk-QOP7KZK7.js} +1 -1
  96. package/Marketplace/chunk-QSHR75ZI.js +2 -0
  97. package/Marketplace/chunk-QVP2CM7Y.js +5 -0
  98. package/Marketplace/{chunk-M7V7A7Z6.js → chunk-QW4EOJRM.js} +1 -1
  99. package/Marketplace/{chunk-WPELZYFP.js → chunk-QWISVEBT.js} +1 -1
  100. package/Marketplace/{chunk-4KHHGHFJ.js → chunk-RAQRGWCZ.js} +2 -2
  101. package/Marketplace/chunk-RC5PUUVM.js +193 -0
  102. package/Marketplace/{chunk-WWISWZF5.js → chunk-RGAKHXPF.js} +1 -1
  103. package/Marketplace/{chunk-ZBKUZ4CN.js → chunk-RGAWEFPQ.js} +1 -1
  104. package/Marketplace/{chunk-V5KHEF77.js → chunk-RJ5D24ZW.js} +1 -1
  105. package/Marketplace/chunk-RM2OSYMV.js +1 -0
  106. package/Marketplace/{chunk-KXEADFBM.js → chunk-RNNH3EZC.js} +1 -1
  107. package/Marketplace/{chunk-753FTTID.js → chunk-S3FZRSRP.js} +1 -1
  108. package/Marketplace/{chunk-FXVFO74P.js → chunk-SLEJQAL7.js} +1 -1
  109. package/Marketplace/chunk-SZGOLKC6.js +1 -0
  110. package/Marketplace/{chunk-UYLSZYOD.js → chunk-T2OSIFLN.js} +1 -1
  111. package/Marketplace/chunk-TM6DZ3ZF.js +1 -0
  112. package/Marketplace/chunk-UX3OTI5X.js +1 -0
  113. package/Marketplace/{chunk-WFT47MCY.js → chunk-UZWED4UK.js} +1 -1
  114. package/Marketplace/chunk-V6GFM5AQ.js +1 -0
  115. package/Marketplace/{chunk-LRUVI2Z3.js → chunk-VFATXJRG.js} +1 -1
  116. package/Marketplace/{chunk-FVORY74O.js → chunk-W3DTXPRM.js} +1 -1
  117. package/Marketplace/{chunk-7WG7VRYR.js → chunk-WAKKUK6E.js} +1 -1
  118. package/Marketplace/{chunk-6KBMGQMI.js → chunk-WAZXTB4X.js} +1 -1
  119. package/Marketplace/chunk-WEYKQCVQ.js +1 -0
  120. package/Marketplace/{chunk-W5L6FMO3.js → chunk-WN5DZGA4.js} +1 -1
  121. package/Marketplace/{chunk-A64VIOKR.js → chunk-WRJFUNM3.js} +1 -1
  122. package/Marketplace/chunk-WWLC64XZ.js +3 -0
  123. package/Marketplace/chunk-XPBMYV5W.js +1 -0
  124. package/Marketplace/{chunk-TYG67JH3.js → chunk-XPCRS7AL.js} +1 -1
  125. package/Marketplace/chunk-XXAV6VNB.js +1 -0
  126. package/Marketplace/{chunk-TH6VZX34.js → chunk-XXT6F2ZS.js} +1 -1
  127. package/Marketplace/chunk-YA3VMYDA.js +1 -0
  128. package/Marketplace/chunk-YFDFIBAG.js +1 -0
  129. package/Marketplace/{chunk-N2SPK2VI.js → chunk-YQLOB7IQ.js} +1 -1
  130. package/Marketplace/{chunk-PPHTN2H6.js → chunk-YTCIQBSO.js} +1 -1
  131. package/Marketplace/{chunk-3NHZEKEI.js → chunk-YXBR6VYQ.js} +1 -1
  132. package/Marketplace/chunk-Z3J3CSGS.js +1 -0
  133. package/Marketplace/chunk-Z67623R4.js +1 -0
  134. package/Marketplace/chunk-ZLNAFA4X.js +1 -0
  135. package/Marketplace/index.html +2 -2
  136. package/Marketplace/main-FUX6VJVF.js +1 -0
  137. package/package.json +1 -1
  138. package/Marketplace/chunk-2KDM4NDG.js +0 -266
  139. package/Marketplace/chunk-3NFS6ZDY.js +0 -1
  140. package/Marketplace/chunk-43E7L4CY.js +0 -1
  141. package/Marketplace/chunk-4UWGWYKJ.js +0 -1
  142. package/Marketplace/chunk-5QLKBL54.js +0 -1
  143. package/Marketplace/chunk-76XHGJE7.js +0 -1
  144. package/Marketplace/chunk-7AE3725T.js +0 -193
  145. package/Marketplace/chunk-A6PK5NP6.js +0 -1
  146. package/Marketplace/chunk-AKVBFSUI.js +0 -1
  147. package/Marketplace/chunk-AP24AK5A.js +0 -1
  148. package/Marketplace/chunk-DFFRRMPT.js +0 -1
  149. package/Marketplace/chunk-DLURPTQ3.js +0 -1
  150. package/Marketplace/chunk-DQ3XZQ7W.js +0 -7
  151. package/Marketplace/chunk-DUF425GC.js +0 -1
  152. package/Marketplace/chunk-EOLVRL5H.js +0 -2
  153. package/Marketplace/chunk-EWTJL2KE.js +0 -1
  154. package/Marketplace/chunk-FHPIPQMB.js +0 -15
  155. package/Marketplace/chunk-GVLJDP5K.js +0 -1
  156. package/Marketplace/chunk-I4WCZRNL.js +0 -1
  157. package/Marketplace/chunk-ID2YZPRH.js +0 -1
  158. package/Marketplace/chunk-IL2CPGYS.js +0 -1
  159. package/Marketplace/chunk-J53BPEDH.js +0 -1
  160. package/Marketplace/chunk-JL5DYPDV.js +0 -1
  161. package/Marketplace/chunk-K5XRGNWG.js +0 -1
  162. package/Marketplace/chunk-KVZ7LQSK.js +0 -1
  163. package/Marketplace/chunk-LFMEBDL2.js +0 -1
  164. package/Marketplace/chunk-MVBY6S4R.js +0 -1
  165. package/Marketplace/chunk-NFN7BQB3.js +0 -3
  166. package/Marketplace/chunk-OPKLFRVD.js +0 -1
  167. package/Marketplace/chunk-ORDCBJ4G.js +0 -2
  168. package/Marketplace/chunk-PFZOP2J7.js +0 -1
  169. package/Marketplace/chunk-QGK4LEFP.js +0 -1
  170. package/Marketplace/chunk-RTT3JVJM.js +0 -1
  171. package/Marketplace/chunk-SMRDRDSH.js +0 -1
  172. package/Marketplace/chunk-UBAADH47.js +0 -1
  173. package/Marketplace/chunk-UHTMVOX6.js +0 -1
  174. package/Marketplace/chunk-UUJWRGO4.js +0 -1
  175. package/Marketplace/chunk-V3CLQBGH.js +0 -1
  176. package/Marketplace/chunk-V4UHOZJ4.js +0 -1
  177. package/Marketplace/chunk-VCTMSNVC.js +0 -1
  178. package/Marketplace/chunk-VPFSU3X4.js +0 -1
  179. package/Marketplace/chunk-WHNSPPOH.js +0 -1
  180. package/Marketplace/chunk-WJAE4LW2.js +0 -51
  181. package/Marketplace/chunk-WVHSR3DQ.js +0 -5
  182. package/Marketplace/chunk-XB3CW7KH.js +0 -1
  183. package/Marketplace/chunk-XEBKP2KL.js +0 -1
  184. package/Marketplace/chunk-ZHDGR4XE.js +0 -1
  185. package/Marketplace/main-3TBM4ISM.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as xe,b as ve}from"./chunk-77MWKV5I.js";import{a as ge,b as Ce,c as Se}from"./chunk-UHJEXTOG.js";import{a as be}from"./chunk-WAKKUK6E.js";import{a as F}from"./chunk-QSHR75ZI.js";import{a as ye}from"./chunk-67HPC5Y3.js";import"./chunk-XPCRS7AL.js";import"./chunk-MX5SR3SR.js";import{a as he}from"./chunk-OLANEXLB.js";import"./chunk-PFY5UG5D.js";import"./chunk-KS7ACI26.js";import"./chunk-3GDM5JNY.js";import"./chunk-XXT6F2ZS.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-JVNHFIYT.js";import{a as fe}from"./chunk-CWXOXH6M.js";import"./chunk-3YP6ORBR.js";import{a as _e}from"./chunk-LDL3A7NM.js";import"./chunk-WWLC64XZ.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{b as de}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-PYXL7UF7.js";import{b as se}from"./chunk-PW42BQIY.js";import{m as ce,n as ue}from"./chunk-HJXYT6MI.js";import{A as ae,b as ie,c as ne,h as oe,m as re,o as le}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as me,s as pe}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{j as Z,k as $,m as ee,n as te}from"./chunk-FXQKRJWU.js";import{$c as w,Ac as H,Bc as Q,Cc as j,Gb as W,Gc as d,Hc as T,Ic as R,Kc as g,Lc as C,Mb as b,Mc as S,Nc as q,Oc as U,Pc as P,Qc as G,Ra as O,Rc as J,Sc as K,Yb as h,Z as L,ac as D,ad as E,bd as X,dc as x,ea as I,ec as B,gc as A,hc as z,ic as i,jc as n,kc as u,oc as v,pa as V,pb as k,rb as l,rd as Y,tc as f,uc as c,ya as m,za as p}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as M,b as N}from"./chunk-66YHNWRR.js";var Te=["contextMenu"],we=()=>[],Me=r=>({"td-cell-hover":r});function Ve(r,_){if(r&1){let e=v();i(0,"button",20),f("click",function(){m(e);let t=c();return p(t.setMultipleFulfillment())}),d(1," Set Fulfillment "),n()}}function Re(r,_){if(r&1&&u(0,"variants-dropdown",37),r&2){let e=c().$implicit;h("variants",e==null?null:e.Variants)}}function Ee(r,_){if(r&1&&u(0,"variant-with-image",38),r&2){let e=c().$implicit;h("variant",e==null?null:e.Variants[0])}}function Oe(r,_){if(r&1&&(i(0,"span"),d(1),n()),r&2){let e=c().$implicit;l(),R("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Pe(r,_){if(r&1){let e=v();i(0,"div",40)(1,"button",44),f("click",function(){m(e);let t=c().$implicit,s=c(2);return p(s.refreshShippingAndRefNumber(t))}),u(2,"i",45),n()()}}function Fe(r,_){if(r&1){let e=v();i(0,"button",46),f("click",function(){m(e);let t=c().$implicit,s=c(2);return p(s.onSetFulfillment(t))}),d(1," Set Fulfillment "),n()}}function Ne(r,_){if(r&1){let e=v();i(0,"tr")(1,"td")(2,"input",30),S("ngModelChange",function(t){let s=m(e).$implicit;return C(s.selected,t)||(s.selected=t),p(t)}),f("ngModelChange",function(){m(e);let t=c(2),s=P(0);return p(t.onSelectOrder(s))}),n()(),i(3,"td")(4,"div",31),u(5,"img",32),w(6,"channelImage"),i(7,"div",33)(8,"div"),d(9),n(),i(10,"small",34)(11,"span"),d(12),n()()()()(),i(13,"td")(14,"div",35)(15,"div"),u(16,"order-link",36),n(),i(17,"small"),d(18),w(19,"date"),n()()(),i(20,"td"),d(21),n(),i(22,"td"),b(23,Re,1,1,"variants-dropdown",37)(24,Ee,1,1,"variant-with-image",38),n(),i(25,"td",39),d(26),w(27,"number"),n(),i(28,"td",40)(29,"div",41)(30,"div",35)(31,"div",42)(32,"span"),d(33),n(),b(34,Oe,2,1,"span"),n(),i(35,"small"),d(36),n()(),b(37,Pe,3,0,"div",40),n()(),i(38,"td",40),b(39,Fe,2,0,"button",43),n()()}if(r&2){let e=_.$implicit,o=c(2);l(2),g("ngModel",e.selected),h("disabled",o.selectedChannelType()!=null&&o.selectedChannelType()!=e.MarketType),l(3),h("src",E(6,18,e==null?null:e.MarketType),k)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),T(e.Outlet),l(3),T(e.ChannelName),l(4),h("order",e),l(2),R(" ",X(19,20,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),T(e.Customer),l(),D(K(25,Me,(e.Variants==null?null:e.Variants.length)>1)),l(),x((e.Variants==null?null:e.Variants.length)>1?23:24),l(3),T(E(27,23,e.Amount)),l(7),T(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),x(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?34:-1),l(2),R(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(),x(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?37:-1),l(2),x((e==null?null:e.MarketType)!=o.channelType.WooCommerce?39:-1)}}function Le(r,_){if(r&1){let e=v();i(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),u(4,"th",24),i(5,"th",25),d(6,"Outlet"),n(),i(7,"th",25),d(8,"Number"),n(),i(9,"th",25),d(10,"Customer"),n(),i(11,"th"),d(12,"Items"),n(),i(13,"th",26),d(14,"Amount"),n(),i(15,"th",27),d(16,"Shipping"),n(),u(17,"th",28),n()(),i(18,"tbody"),A(19,Ne,40,27,"tr",null,B),n()(),i(21,"app-custom-paginator",29),f("next",function(){m(e);let t=c();return p(t.initReadyToShip())})("previous",function(){m(e);let t=c();return p(t.initReadyToShip())}),n()()}if(r&2){let e=c(),o=P(0);l(19),z(o),l(2),h("filter",e.filter())("totaldata",o==null?null:o.length)}}function Ie(r,_){r&1&&(i(0,"div",18),u(1,"app-empty-state"),n())}var dt=(()=>{class r{constructor(){this.toastr=V(de),this.orderService=V(F),this.fulfillmentService=V(xe),this.channelType=se,this.selectedOrders=O([]),this.selectedChannelType=Y(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(o=>N(M({},o),{From:e})),this.initReadyToShip()}initReadyToShip(){this.readyToShip$=this.orderService.getReadyToShipOrders(this.filter()).pipe(I(()=>{this.selectedOrders.set([])}),L(1))}onFilterChange(e){this.filter.update(o=>M(M({},o),e))}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(e){let o=e.filter(t=>t.selected);this.selectedOrders.set(o)}onMouseHover(e,o){(!o.LogisticService?.Name||!o.ReferenceNumber)&&this.contextMenuEl.show(e,o)}onSelectContextItem(e){e.item?.id==="refresh"&&this.refreshShippingAndRefNumber(e.data)}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-ready-to-ship"]],viewQuery:function(o,t){if(o&1&&H(Te,5),o&2){let s;Q(s=j())&&(t.contextMenuEl=s.first)}},features:[G([F])],decls:37,vars:14,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[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","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","100px"],[2,"width","150px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(o,t){if(o&1){let s=v();q(0),w(1,"async"),i(2,"mainpanel",1),f("onSubmit",function(){return m(s),p(t.initReadyToShip())}),S("textChange",function(a){return m(s),C(t.filter().Number,a)||(t.filter().Number=a),p(a)}),i(3,"actions"),b(4,Ve,2,0,"button",2),i(5,"a",3),u(6,"i",4),i(7,"span"),d(8,"Order Fulfillment Display"),n()()(),i(9,"filters")(10,"div")(11,"label",5),d(12,"Channel"),n(),i(13,"channel-select-options",6),S("ngModelChange",function(a){return m(s),C(t.filter().ListChannelID,a)||(t.filter().ListChannelID=a),p(a)}),n()(),i(14,"div",7)(15,"label",5),d(16,"From/To"),n(),i(17,"div",8)(18,"datepicker",9),S("dateChange",function(a){return m(s),C(t.filter().From,a)||(t.filter().From=a),p(a)}),n()(),i(19,"div")(20,"datepicker",10),S("dateChange",function(a){return m(s),C(t.filter().To,a)||(t.filter().To=a),p(a)}),n()()(),i(21,"div",7)(22,"label",11),d(23,"Page Number"),n(),i(24,"input",12),S("ngModelChange",function(a){return m(s),C(t.filter().PageNumber,a)||(t.filter().PageNumber=a),p(a)}),n()(),i(25,"div",7)(26,"label",11),d(27,"Page Size"),n(),i(28,"input",13),S("ngModelChange",function(a){return m(s),C(t.filter().PageSize,a)||(t.filter().PageSize=a),p(a)}),n()()(),i(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),b(33,Le,22,2,"div",17)(34,Ie,2,0,"div",18),n()()()()(),i(35,"app-context-menu",19,0),f("onSelectItem",function(a){return m(s),p(t.onSelectContextItem(a))}),n()}if(o&2){let s=U(E(1,10,t.readyToShip$)||J(13,we));l(2),g("text",t.filter().Number),l(2),x(t.selectedOrders().length>0?4:-1),l(9),h("multiple",!0),g("ngModel",t.filter().ListChannelID),l(5),g("date",t.filter().From),l(2),g("date",t.filter().To),l(4),g("ngModel",t.filter().PageNumber),l(4),g("ngModel",t.filter().PageSize),l(5),x(s.length>0?33:34),l(2),h("items",t.contextMenuItems)}},dependencies:[te,Z,ee,$,ue,ce,he,_e,ae,ne,le,ie,oe,re,ge,Ce,Se,ye,fe,be,pe,me,ve],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"]})}}return r})();export{dt as ReadyToShipComponent};
@@ -1 +1 @@
1
- import{a as T}from"./chunk-UMP6ZMEJ.js";import{a as H}from"./chunk-3YP6ORBR.js";import{c as Z}from"./chunk-PW42BQIY.js";import{A as N}from"./chunk-5PS6ZS3N.js";import{b as j,c as L}from"./chunk-ERXVXBTU.js";import{r as $,s as A}from"./chunk-NNRBGHXB.js";import{d as U,f as F,g as M,n as z}from"./chunk-FXQKRJWU.js";import{Fc as S,Gb as B,Gc as u,Hc as k,Ic as D,Ka as b,Mb as d,Sc as h,Tc as V,Vc as R,Yb as _,cd as y,dc as w,ic as r,jc as c,kc as s,lc as p,mc as m,oc as x,pb as E,rb as o,tc as f,uc as a,xb as I,xc as O,ya as C,za as g}from"./chunk-OJMQBH6T.js";var W=(t,i,n,l)=>[t,i,n,l],v=t=>[t],q=(t,i)=>[t,i],J=t=>({"me-3":t}),K=t=>({"border-bottom pb-2":t});function G(t,i){if(t&1){let n=x();p(0),r(1,"img",19),f("click",function(e){C(n);let P=a();return g(P.openBiggerPicture(e))}),c(),m()}if(t&2){let n=a();o(),_("src",n.image,E)}}function Q(t,i){t&1&&s(0,"img",20)}function X(t,i){if(t&1&&(p(0),r(1,"span",24)(2,"a",25),s(3,"i",26),c()(),m()),t&2){let n=a(2);o(2),_("href",n.redirectUrl,E)}}function Y(t,i){if(t&1&&(r(0,"div",21),s(1,"i",22),r(2,"span"),u(3),c(),d(4,X,4,1,"ng-container",23),c()),t&2){let n=a();o(3),k(n.code),o(),_("ngIf",n.code!=="SKU not assigned"&&n.showRedirectIcon)}}function tt(t,i){if(t&1){let n=x();r(0,"div",27),f("click",function(){C(n);let e=a();return g(e.onEventDesc())}),s(1,"i",28),r(2,"span"),u(3),c()()}if(t&2){let n=a();o(3),k(n.description)}}function nt(t,i){if(t&1){let n=x();r(0,"div",30)(1,"input",31),f("change",function(e){C(n);let P=a(2);return g(P.onCheck(e.target.checked))}),c()()}}function et(t,i){if(t&1&&(p(0),d(1,nt,2,0,"div",29),m()),t&2){let n=a();o(),_("ngIf",n.showCheckBox)}}function it(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(3);return g(e.onDownload())}),s(1,"i",35),u(2,"Download "),c()}}function ot(t,i){if(t&1&&(p(0),d(1,it,3,0,"button",33),m()),t&2){let n=a(2);o(),_("ngIf",n.downloadButton)}}function at(t,i){}function rt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",42),f("click",function(){C(n);let e=a(6);return g(e.onScan())}),s(2,"i",43),u(3,"Scan "),c()()}}function ct(t,i){if(t&1&&(p(0),d(1,rt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.scanButton?1:-1)}}function lt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",44),f("click",function(){C(n);let e=a(6);return g(e.onDetach())}),s(2,"i",45),u(3,"Detach "),c()()}}function _t(t,i){if(t&1&&(p(0),d(1,lt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.detachButton?1:-1)}}function dt(t,i){if(t&1&&(p(0),r(1,"div",39),s(2,"button",40),r(3,"ul",41),d(4,ct,2,1,"ng-container",17)(5,_t,2,1,"ng-container",17),c()(),m()),t&2){let n=a(4);o(4),_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function st(t,i){if(t&1){let n=x();r(0,"button",37),f("click",function(){C(n);let e=a(3);return g(e.onUpload())}),s(1,"i",38),u(2,"Upload "),c(),d(3,dt,6,6,"ng-container",17)}if(t&2){let n=a(3);o(3),_("ngxPermissionsOnly",V(1,q,n.productScanRole,n.productDetachRole))}}function pt(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(5);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function mt(t,i){if(t&1&&(p(0),d(1,pt,3,0,"button",46),m()),t&2){let n=a(4);o(),w(n.scanButton?1:-1)}}function ut(t,i){if(t&1){let n=x();r(0,"button",49),f("click",function(){C(n);let e=a(5);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function Ct(t,i){if(t&1&&(p(0),d(1,ut,3,0,"button",48),m()),t&2){let n=a(4);o(),w(n.detachButton?1:-1)}}function gt(t,i){if(t&1&&d(0,mt,2,1,"ng-container",17)(1,Ct,2,1,"ng-container",17),t&2){let n=a(3);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function xt(t,i){if(t&1&&(r(0,"div",32),d(1,at,0,0,"ng-template",36)(2,st,4,4,"ng-template",null,1,y)(4,gt,2,6,"ng-template",null,2,y),c()),t&2){let n=S(3),l=S(5),e=a(2);o(),_("ngxPermissionsOnly",h(3,v,e.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",l)}}function ft(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(4);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function ht(t,i){if(t&1&&(p(0),d(1,ft,3,0,"button",46),m()),t&2){let n=a(3);o(),w(n.scanButton?1:-1)}}function wt(t,i){if(t&1){let n=x();r(0,"button",51),f("click",function(){C(n);let e=a(4);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function vt(t,i){if(t&1&&(p(0),d(1,wt,3,0,"button",50),m()),t&2){let n=a(3);o(),w(n.detachButton?1:-1)}}function Pt(t,i){if(t&1&&d(0,ht,2,1,"ng-container",17)(1,vt,2,1,"ng-container",17),t&2){let n=a(2);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function bt(t,i){if(t&1&&(p(0),r(1,"a",53),s(2,"img",54),c(),m()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(),O("href",n.Url,E),o(),_("ngClass",h(4,J,l!=e.channels.length-1))("src",e.getChannelLogo(n),E)("matTooltip",n.Title?n.Title:n.Name)}}function Et(t,i){if(t&1&&(p(0),d(1,bt,3,6,"ng-container",52),m()),t&2){let n=a(3);o(),_("ngForOf",n.channels)}}function St(t,i){if(t&1&&(r(0,"li")(1,"div",58)(2,"div",59)(3,"a",53),s(4,"img",60),r(5,"span",61),u(6),c()()()()()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(2),_("ngClass",h(4,K,l!=e.channels.length-1)),o(),_("href",n.Url,E),o(),_("src",e.getChannelLogo(n),E),o(2),k(n.Title)}}function yt(t,i){if(t&1&&(r(0,"div",55)(1,"button",56),u(2),c(),r(3,"ul",57),d(4,St,7,6,"li",52),c()()),t&2){let n=a(3);o(2),D(" ",n.channels.length," CHANNELS "),o(2),_("ngForOf",n.channels)}}function Tt(t,i){if(t&1&&(r(0,"div"),d(1,Et,2,1,"ng-container",10)(2,yt,5,2,"ng-template",null,3,y),c()),t&2){let n=S(3),l=a(2);o(),_("ngIf",l.channels.length<4)("ngIfElse",n)}}function kt(t,i){if(t&1&&(r(0,"div",18)(1,"div"),d(2,ot,2,1,"ng-container",17)(3,xt,6,5,"div",32)(4,Pt,2,6),c(),d(5,Tt,4,2,"div"),c()),t&2){let n=a();o(2),_("ngxPermissionsOnly",h(3,v,n.productDownloadRole)),o(),w(n.uploadButton?3:4),o(2),w(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var Ht=(()=>{class t{constructor(n){this.biggerPictureService=n,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.showFooter=!0,this.detachButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.productUploadRole=T.ProductUpload,this.productScanRole=T.ProductScan,this.productDownloadRole=T.ProductDownload,this.productDetachRole=T.ProductDetach,this.onUploadEvent=new b,this.onScanEvent=new b,this.checkBoxChange=new b,this.onDescEvent=new b,this.onDownloadEvent=new b,this.onDetachEvent=new b}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let n=localStorage.getItem("Authorization"),l=JSON.parse(n)?.Host;this.redirectUrl=`https://${l}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(n){this.checkBoxChange.emit(n)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(n){return Z.getChannelLogoByTypeId(n.TypeID)}openBiggerPicture(n){this.biggerPictureService.openBiggerPicture(n,this.imageForZoom)}static{this.\u0275fac=function(l){return new(l||t)(I(H))}}static{this.\u0275cmp=B({type:t,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",showFooter:"showFooter",detachButton:"detachButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:18,vars:13,consts:[["elsePic",""],["thenBlock",""],["elseBlock",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],["class","text-end gx-0",4,"ngIf"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(l,e){if(l&1){let P=x();r(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9),d(6,G,2,1,"ng-container",10)(7,Q,1,0,"ng-template",null,0,y),c()()(),r(9,"div",11)(10,"h4",12),f("click",function(){return C(P),g(e.onEventDesc())}),u(11),c(),d(12,Y,5,2,"div",13)(13,tt,4,1,"div",14),c(),r(14,"div",15)(15,"div",16),d(16,et,2,1,"ng-container",17),c()()()(),d(17,kt,6,5,"div",18),c()}if(l&2){let P=S(8);o(6),_("ngIf",e.image)("ngIfElse",P),o(4),_("matTooltip",(e.title==null?null:e.title.length)>25?e.title:""),o(),D(" ",e.title," "),o(),_("ngIf",e.code),o(),_("ngIf",e.description),o(3),_("ngxPermissionsOnly",R(8,W,e.productDownloadRole,e.productScanRole,e.productUploadRole,e.productDetachRole)),o(),w(e.showFooter?17:-1)}},dependencies:[z,U,F,M,N,A,$,L,j],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]})}}return t})();export{Ht as a};
1
+ import{a as T}from"./chunk-UMP6ZMEJ.js";import{a as H}from"./chunk-3YP6ORBR.js";import{c as Z}from"./chunk-PW42BQIY.js";import{A as N}from"./chunk-5PS6ZS3N.js";import{b as j,c as L}from"./chunk-ERXVXBTU.js";import{r as $,s as A}from"./chunk-MFQQEEHJ.js";import{d as U,f as F,g as M,n as z}from"./chunk-FXQKRJWU.js";import{Fc as S,Gb as B,Gc as u,Hc as k,Ic as D,Ka as b,Mb as d,Sc as h,Tc as V,Vc as R,Yb as _,cd as y,dc as w,ic as r,jc as c,kc as s,lc as p,mc as m,oc as x,pb as E,rb as o,tc as f,uc as a,xb as I,xc as O,ya as C,za as g}from"./chunk-OJMQBH6T.js";var W=(t,i,n,l)=>[t,i,n,l],v=t=>[t],q=(t,i)=>[t,i],J=t=>({"me-3":t}),K=t=>({"border-bottom pb-2":t});function G(t,i){if(t&1){let n=x();p(0),r(1,"img",19),f("click",function(e){C(n);let P=a();return g(P.openBiggerPicture(e))}),c(),m()}if(t&2){let n=a();o(),_("src",n.image,E)}}function Q(t,i){t&1&&s(0,"img",20)}function X(t,i){if(t&1&&(p(0),r(1,"span",24)(2,"a",25),s(3,"i",26),c()(),m()),t&2){let n=a(2);o(2),_("href",n.redirectUrl,E)}}function Y(t,i){if(t&1&&(r(0,"div",21),s(1,"i",22),r(2,"span"),u(3),c(),d(4,X,4,1,"ng-container",23),c()),t&2){let n=a();o(3),k(n.code),o(),_("ngIf",n.code!=="SKU not assigned"&&n.showRedirectIcon)}}function tt(t,i){if(t&1){let n=x();r(0,"div",27),f("click",function(){C(n);let e=a();return g(e.onEventDesc())}),s(1,"i",28),r(2,"span"),u(3),c()()}if(t&2){let n=a();o(3),k(n.description)}}function nt(t,i){if(t&1){let n=x();r(0,"div",30)(1,"input",31),f("change",function(e){C(n);let P=a(2);return g(P.onCheck(e.target.checked))}),c()()}}function et(t,i){if(t&1&&(p(0),d(1,nt,2,0,"div",29),m()),t&2){let n=a();o(),_("ngIf",n.showCheckBox)}}function it(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(3);return g(e.onDownload())}),s(1,"i",35),u(2,"Download "),c()}}function ot(t,i){if(t&1&&(p(0),d(1,it,3,0,"button",33),m()),t&2){let n=a(2);o(),_("ngIf",n.downloadButton)}}function at(t,i){}function rt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",42),f("click",function(){C(n);let e=a(6);return g(e.onScan())}),s(2,"i",43),u(3,"Scan "),c()()}}function ct(t,i){if(t&1&&(p(0),d(1,rt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.scanButton?1:-1)}}function lt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",44),f("click",function(){C(n);let e=a(6);return g(e.onDetach())}),s(2,"i",45),u(3,"Detach "),c()()}}function _t(t,i){if(t&1&&(p(0),d(1,lt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.detachButton?1:-1)}}function dt(t,i){if(t&1&&(p(0),r(1,"div",39),s(2,"button",40),r(3,"ul",41),d(4,ct,2,1,"ng-container",17)(5,_t,2,1,"ng-container",17),c()(),m()),t&2){let n=a(4);o(4),_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function st(t,i){if(t&1){let n=x();r(0,"button",37),f("click",function(){C(n);let e=a(3);return g(e.onUpload())}),s(1,"i",38),u(2,"Upload "),c(),d(3,dt,6,6,"ng-container",17)}if(t&2){let n=a(3);o(3),_("ngxPermissionsOnly",V(1,q,n.productScanRole,n.productDetachRole))}}function pt(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(5);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function mt(t,i){if(t&1&&(p(0),d(1,pt,3,0,"button",46),m()),t&2){let n=a(4);o(),w(n.scanButton?1:-1)}}function ut(t,i){if(t&1){let n=x();r(0,"button",49),f("click",function(){C(n);let e=a(5);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function Ct(t,i){if(t&1&&(p(0),d(1,ut,3,0,"button",48),m()),t&2){let n=a(4);o(),w(n.detachButton?1:-1)}}function gt(t,i){if(t&1&&d(0,mt,2,1,"ng-container",17)(1,Ct,2,1,"ng-container",17),t&2){let n=a(3);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function xt(t,i){if(t&1&&(r(0,"div",32),d(1,at,0,0,"ng-template",36)(2,st,4,4,"ng-template",null,1,y)(4,gt,2,6,"ng-template",null,2,y),c()),t&2){let n=S(3),l=S(5),e=a(2);o(),_("ngxPermissionsOnly",h(3,v,e.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",l)}}function ft(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(4);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function ht(t,i){if(t&1&&(p(0),d(1,ft,3,0,"button",46),m()),t&2){let n=a(3);o(),w(n.scanButton?1:-1)}}function wt(t,i){if(t&1){let n=x();r(0,"button",51),f("click",function(){C(n);let e=a(4);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function vt(t,i){if(t&1&&(p(0),d(1,wt,3,0,"button",50),m()),t&2){let n=a(3);o(),w(n.detachButton?1:-1)}}function Pt(t,i){if(t&1&&d(0,ht,2,1,"ng-container",17)(1,vt,2,1,"ng-container",17),t&2){let n=a(2);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function bt(t,i){if(t&1&&(p(0),r(1,"a",53),s(2,"img",54),c(),m()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(),O("href",n.Url,E),o(),_("ngClass",h(4,J,l!=e.channels.length-1))("src",e.getChannelLogo(n),E)("matTooltip",n.Title?n.Title:n.Name)}}function Et(t,i){if(t&1&&(p(0),d(1,bt,3,6,"ng-container",52),m()),t&2){let n=a(3);o(),_("ngForOf",n.channels)}}function St(t,i){if(t&1&&(r(0,"li")(1,"div",58)(2,"div",59)(3,"a",53),s(4,"img",60),r(5,"span",61),u(6),c()()()()()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(2),_("ngClass",h(4,K,l!=e.channels.length-1)),o(),_("href",n.Url,E),o(),_("src",e.getChannelLogo(n),E),o(2),k(n.Title)}}function yt(t,i){if(t&1&&(r(0,"div",55)(1,"button",56),u(2),c(),r(3,"ul",57),d(4,St,7,6,"li",52),c()()),t&2){let n=a(3);o(2),D(" ",n.channels.length," CHANNELS "),o(2),_("ngForOf",n.channels)}}function Tt(t,i){if(t&1&&(r(0,"div"),d(1,Et,2,1,"ng-container",10)(2,yt,5,2,"ng-template",null,3,y),c()),t&2){let n=S(3),l=a(2);o(),_("ngIf",l.channels.length<4)("ngIfElse",n)}}function kt(t,i){if(t&1&&(r(0,"div",18)(1,"div"),d(2,ot,2,1,"ng-container",17)(3,xt,6,5,"div",32)(4,Pt,2,6),c(),d(5,Tt,4,2,"div"),c()),t&2){let n=a();o(2),_("ngxPermissionsOnly",h(3,v,n.productDownloadRole)),o(),w(n.uploadButton?3:4),o(2),w(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var Ht=(()=>{class t{constructor(n){this.biggerPictureService=n,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.showFooter=!0,this.detachButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.productUploadRole=T.ProductUpload,this.productScanRole=T.ProductScan,this.productDownloadRole=T.ProductDownload,this.productDetachRole=T.ProductDetach,this.onUploadEvent=new b,this.onScanEvent=new b,this.checkBoxChange=new b,this.onDescEvent=new b,this.onDownloadEvent=new b,this.onDetachEvent=new b}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let n=localStorage.getItem("Authorization"),l=JSON.parse(n)?.Host;this.redirectUrl=`https://${l}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(n){this.checkBoxChange.emit(n)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(n){return Z.getChannelLogoByTypeId(n.TypeID)}openBiggerPicture(n){this.biggerPictureService.openBiggerPicture(n,this.imageForZoom)}static{this.\u0275fac=function(l){return new(l||t)(I(H))}}static{this.\u0275cmp=B({type:t,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",showFooter:"showFooter",detachButton:"detachButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:18,vars:13,consts:[["elsePic",""],["thenBlock",""],["elseBlock",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],["class","text-end gx-0",4,"ngIf"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(l,e){if(l&1){let P=x();r(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9),d(6,G,2,1,"ng-container",10)(7,Q,1,0,"ng-template",null,0,y),c()()(),r(9,"div",11)(10,"h4",12),f("click",function(){return C(P),g(e.onEventDesc())}),u(11),c(),d(12,Y,5,2,"div",13)(13,tt,4,1,"div",14),c(),r(14,"div",15)(15,"div",16),d(16,et,2,1,"ng-container",17),c()()()(),d(17,kt,6,5,"div",18),c()}if(l&2){let P=S(8);o(6),_("ngIf",e.image)("ngIfElse",P),o(4),_("matTooltip",(e.title==null?null:e.title.length)>25?e.title:""),o(),D(" ",e.title," "),o(),_("ngIf",e.code),o(),_("ngIf",e.description),o(3),_("ngxPermissionsOnly",R(8,W,e.productDownloadRole,e.productScanRole,e.productUploadRole,e.productDetachRole)),o(),w(e.showFooter?17:-1)}},dependencies:[z,U,F,M,N,A,$,L,j],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]})}}return t})();export{Ht as a};
@@ -0,0 +1 @@
1
+ import{a as mt}from"./chunk-7KG3DC5J.js";import{b as lt}from"./chunk-6RMBCW2O.js";import{a as st}from"./chunk-LDL3A7NM.js";import{i as it}from"./chunk-WWLC64XZ.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{e as et}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{a as nt,b as ot,d as at,e as rt}from"./chunk-PYXL7UF7.js";import{c as tt}from"./chunk-PW42BQIY.js";import{m as ct,n as pt}from"./chunk-HJXYT6MI.js";import{A as Z,h as X,m as Y}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{H as K,J as Q,d as A,f as j,g as U,j as W,k as q,m as J,n as G}from"./chunk-FXQKRJWU.js";import{$c as s,Fc as R,Gb as L,Gc as l,Hc as N,Ic as y,Kc as $,Lc as O,Mb as d,Mc as V,Rc as B,Sc as k,Tc as H,Yb as c,Z as b,ad as u,bd as T,ca as D,cd as z,f as w,ic as n,jc as o,kc as v,lc as f,mc as g,ob as M,oc as P,pb as I,rb as a,tc as E,uc as m,v as _,xb as S,xc as F,ya as h,za as C}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var ft=(i,p)=>({"bg-gradient-danger":i,"bg-gradient-warning":p}),gt=()=>["/menu/products/status/notification/detail"],ut=i=>({ID:i});function _t(i,p){if(i&1&&(n(0,"span",15),v(1,"img",16),o(),l(2)),i&2){let t=p.item;a(),c("src",t.Img,I)("alt",t.Name),a(),y(" ",t.Name," ")}}function ht(i,p){if(i&1&&(f(0),l(1),s(2,"number"),n(3,"span"),l(4,"s"),o(),g()),i&2){let t=m().$implicit;a(),y(" ",T(2,1,t.DurationInSecond,"1.1-1")," ")}}function Ct(i,p){i&1&&l(0," - ")}function St(i,p){if(i&1&&(f(0),n(1,"tr",17)(2,"td")(3,"a",18),v(4,"img",19),n(5,"span"),l(6),o()()(),n(7,"td")(8,"b"),l(9),o(),v(10,"div",20),o(),n(11,"td"),d(12,ht,5,4,"ng-container",21)(13,Ct,1,0,"ng-template",null,0,z),o(),n(15,"td"),l(16),o(),n(17,"td"),l(18),s(19,"date"),o()(),g()),i&2){let t=p.$implicit,e=R(14);a(),c("ngClass",H(14,ft,t.Status==1,t.Status==0)),a(2),c("routerLink",B(17,gt))("queryParams",k(18,ut,t.ID)),a(),F("src",t.Img,I),a(2),N(t.Name),a(3),N(t.Label),a(),c("innerHTML",t.Message,M),a(2),c("ngIf",t.DurationInSecond)("ngIfElse",e),a(4),N(t.StatusLabel),a(2),y(" ",T(19,11,t.Created,"dd MMM yyyy HH:mm")," ")}}function vt(i,p){if(i&1){let t=P();f(0),n(1,"div",7)(2,"div",22)(3,"app-custom-paginator",23),s(4,"async"),s(5,"async"),E("total",function(){h(t);let r=m(2);return C(r.getRowCount())})("next",function(){h(t);let r=m(2);return C(r.getNotifications())})("previous",function(){h(t);let r=m(2);return C(r.getNotifications())}),o()()(),g()}if(i&2){let t=m().ngIf,e=m();a(3),c("filter",e.filter)("totaldata",t==null?null:t.length)("paginationTotal",u(4,4,e.rowCount$))("hasClicked",u(5,6,e.rowCount$))}}function Nt(i,p){if(i&1&&(f(0),d(1,vt,6,8,"ng-container",14),g()),i&2){let t=p.ngIf;a(),c("ngIf",t.length>0)}}var Ht=(()=>{class i{constructor(t,e,r){this.http=t,this.notificationService=e,this.authService=r,this.filter=new mt,this.destroy$=new w,this.channelOptions=r.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(D(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(_(e=>e.Data),_(e=>(e=this.setChannelLogoToNotifications(e),e=this.setTimeToSecond(e),e)),b(1))}setTimeToSecond(t){return t=t.map(e=>(e.DurationInSecond=parseInt(e.Duration)/1e3,e)),t}setChannelLogoToNotifications(t){return t=t.map(e=>(e.Img=tt.getChannelLogoByTypeId(e.TypeID),e)),t}getRowCount(){let t={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",t).pipe(_(e=>e.Count),b(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(e){return new(e||i)(S(et),S(lt),S(it))}}static{this.\u0275cmp=L({type:i,selectors:[["app-notification"]],decls:33,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Product Scan Job","hideSearchBox","true",3,"onSubmit"],["routerLink","/menu/products/status/notificationV2",1,"btn","btn-outline-secondary","btn-lg"],[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(e,r){e&1&&(n(0,"mainpanel",1),E("onSubmit",function(){return r.onFilter()}),n(1,"actions")(2,"a",2),l(3," Scan Job V2 "),o()(),n(4,"filters")(5,"div")(6,"h6",3),l(7,"Channel"),o(),n(8,"ng-select",4),V("ngModelChange",function(x){return O(r.filter.ChannelID,x)||(r.filter.ChannelID=x),x}),d(9,_t,3,3,"ng-template",5),o()()(),n(10,"content")(11,"div",6)(12,"div",7)(13,"div",8)(14,"div",9)(15,"table",10)(16,"thead",11)(17,"tr",12)(18,"th"),l(19,"Channel"),o(),n(20,"th"),l(21,"Process"),o(),n(22,"th"),l(23,"Duration"),o(),n(24,"th"),l(25,"Status"),o(),n(26,"th"),l(27,"Created"),o()()(),n(28,"tbody"),d(29,St,20,20,"ng-container",13),s(30,"async"),o()()()()(),d(31,Nt,2,1,"ng-container",14),s(32,"async"),o()()()),e&2&&(a(8),c("clearable",!0)("items",r.channelOptions),$("ngModel",r.filter.ChannelID),a(21),c("ngForOf",u(30,5,r.notifications$)),a(2),c("ngIf",u(32,7,r.notifications$)))},dependencies:[G,A,j,U,W,J,q,Z,X,Y,pt,ct,st,rt,at,nt,ot,Q,K],encapsulation:2})}}return i})();export{Ht as NotificationComponent};
@@ -1,4 +1,4 @@
1
- import{a as u,b as de,c as f,e as C}from"./chunk-OZ7LWNOK.js";import{a as ae}from"./chunk-UHTMVOX6.js";import{C as ne,H as m,b as A,ba as oe,d as ie,fa as se,ia as re,ja as le,r as j}from"./chunk-7AE3725T.js";import{c as te,d as L,f as R,i as I,j as V,k as M}from"./chunk-K5XRGNWG.js";import{d as Y,g as G,h as J,i as W,n as X,o as ee}from"./chunk-FXQKRJWU.js";import{Ac as D,Bc as v,Ca as H,Cc as y,Gb as B,Ka as s,Kb as Q,La as F,Mb as g,Qc as q,Sc as _,Uc as U,Yb as d,_c as $,ac as x,ic as w,ja as Z,jc as T,nc as K,oc as S,pa as z,rb as b,tc as E,uc as r,vc as N,wc as P,xb as O,ya as h,za as p,zc as k}from"./chunk-OJMQBH6T.js";import{a as c}from"./chunk-66YHNWRR.js";var ce=["content"],_e=["overlay"],Ce=["*"],be=(i,l,e,t,n,o,a,pe,ve,ye,me,ue,fe,ge)=>({"p-overlay p-component":!0,"p-overlay-modal p-overlay-mask p-overlay-mask-enter":i,"p-overlay-center":l,"p-overlay-top":e,"p-overlay-top-start":t,"p-overlay-top-end":n,"p-overlay-bottom":o,"p-overlay-bottom-start":a,"p-overlay-bottom-end":pe,"p-overlay-left":ve,"p-overlay-left-start":ye,"p-overlay-left-end":me,"p-overlay-right":ue,"p-overlay-right-start":fe,"p-overlay-right-end":ge}),Oe=(i,l,e)=>({showTransitionParams:i,hideTransitionParams:l,transform:e}),xe=i=>({value:"visible",params:i}),we=i=>({mode:i}),Te=i=>({$implicit:i});function Se(i,l){i&1&&K(0)}function Ee(i,l){if(i&1){let e=S();w(0,"div",3,1),E("click",function(n){h(e);let o=r(2);return p(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationDone(n))}),P(2),g(3,Se,1,0,"ng-container",4),T()}if(i&2){let e=r(2);x(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",_(11,xe,U(7,Oe,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),b(3),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",_(15,Te,_(13,we,e.overlayMode)))}}function ke(i,l){if(i&1){let e=S();w(0,"div",3,0),E("click",function(){h(e);let n=r();return p(n.onOverlayClick())}),g(2,Ee,4,17,"div",2),T()}if(i&2){let e=r();x(e.styleClass),d("ngStyle",e.style)("ngClass",$(5,be,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),b(2),d("ngIf",e.visible)}}var De=({dt:i})=>`
1
+ import{a as u,b as de,c as f,e as C}from"./chunk-OZ7LWNOK.js";import{a as ae}from"./chunk-YFDFIBAG.js";import{D as ne,K as m,b as A,d as ie,fa as oe,ka as se,na as re,oa as le,r as j}from"./chunk-RC5PUUVM.js";import{c as te,d as L,f as R,i as I,j as V,l as M}from"./chunk-4NEKWRL7.js";import{d as Y,g as G,h as J,i as W,n as X,o as ee}from"./chunk-FXQKRJWU.js";import{Ac as D,Bc as v,Ca as H,Cc as y,Gb as B,Ka as s,Kb as Q,La as F,Mb as g,Qc as q,Sc as _,Uc as U,Yb as d,_c as $,ac as x,ic as w,ja as Z,jc as T,nc as K,oc as S,pa as z,rb as b,tc as E,uc as r,vc as N,wc as P,xb as O,ya as h,za as p,zc as k}from"./chunk-OJMQBH6T.js";import{a as c}from"./chunk-66YHNWRR.js";var ce=["content"],_e=["overlay"],Ce=["*"],be=(i,l,e,t,n,o,a,pe,ve,ye,me,ue,fe,ge)=>({"p-overlay p-component":!0,"p-overlay-modal p-overlay-mask p-overlay-mask-enter":i,"p-overlay-center":l,"p-overlay-top":e,"p-overlay-top-start":t,"p-overlay-top-end":n,"p-overlay-bottom":o,"p-overlay-bottom-start":a,"p-overlay-bottom-end":pe,"p-overlay-left":ve,"p-overlay-left-start":ye,"p-overlay-left-end":me,"p-overlay-right":ue,"p-overlay-right-start":fe,"p-overlay-right-end":ge}),Oe=(i,l,e)=>({showTransitionParams:i,hideTransitionParams:l,transform:e}),xe=i=>({value:"visible",params:i}),we=i=>({mode:i}),Te=i=>({$implicit:i});function Se(i,l){i&1&&K(0)}function Ee(i,l){if(i&1){let e=S();w(0,"div",3,1),E("click",function(n){h(e);let o=r(2);return p(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationDone(n))}),P(2),g(3,Se,1,0,"ng-container",4),T()}if(i&2){let e=r(2);x(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",_(11,xe,U(7,Oe,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),b(3),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",_(15,Te,_(13,we,e.overlayMode)))}}function ke(i,l){if(i&1){let e=S();w(0,"div",3,0),E("click",function(){h(e);let n=r();return p(n.onOverlayClick())}),g(2,Ee,4,17,"div",2),T()}if(i&2){let e=r();x(e.styleClass),d("ngStyle",e.style)("ngClass",$(5,be,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),b(2),d("ngIf",e.visible)}}var De=({dt:i})=>`
2
2
  .p-overlay {
3
3
  position: absolute;
4
4
  top: 0;
@@ -1,3 +1,3 @@
1
- import{a as Ge,b as Ue}from"./chunk-74ELVGDK.js";import{a as qe}from"./chunk-QP4C4R4W.js";import{a as j}from"./chunk-6L7TD5DW.js";import{d as je}from"./chunk-WLRPCY65.js";import{a as $e}from"./chunk-JVNHFIYT.js";import{f as ke}from"./chunk-5PS6ZS3N.js";import{b as Te,d as ze,e as Oe}from"./chunk-NNRBGHXB.js";import{B as Ne,C as Qe,D as Ve,H as Be,L as ae,d as Re,g as Ae,k as Fe,m as Pe,n as Le,x as He}from"./chunk-BJUPMCEP.js";import{i as re}from"./chunk-FXQKRJWU.js";import{$ as S,Ac as P,Bc as m,Ca as Z,Cc as h,Fc as te,Gb as E,Gc as x,Hb as N,Hc as C,Ib as b,Ka as M,Kb as R,La as ye,Mb as f,Pa as z,Qc as ie,Ra as be,Sa as O,Tc as ne,Xa as xe,Xb as w,Yb as u,Zb as Ie,_b as k,a as de,aa as he,ac as J,bc as Me,ca as y,cd as Ee,dc as _,f as L,fc as Q,gc as V,hc as B,ic as d,ja as ue,jc as c,jd as $,ka as H,kc as X,ma as fe,nc as I,oc as De,od as T,pa as l,pd as we,q as ce,qa as _e,ra as ve,rb as s,tb as D,tc as ee,uc as p,v as me,vc as A,wb as Ce,wc as F,xa as ge,ya as W,za as Y,zb as Se,zc as v}from"./chunk-OJMQBH6T.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Qe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Be(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Ve(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Re();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Fe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Pe);e.load($e),e.load(Le);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
2
- `],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{templateRef=l(D);name;constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return i})(),Dt=(()=>{class i{_template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepContent",""]]})}return i})(),Et=(()=>{class i extends q{_errorStateMatcher=l(j,{skipSelf:!0});_viewContainerRef=l(Se);_isSelected=de.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(he(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Te(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let n=this._errorStateMatcher.isErrorState(e,t),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,le,5),v(r,Dt,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ie([{provide:j,useExisting:i},{provide:q,useExisting:i}]),R],ngContentSelectors:We,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,n){t&1&&(A(),f(0,ht,2,1,"ng-template"))},dependencies:[ze],encapsulation:2,changeDetection:0})}return i})(),wt=(()=>{class i extends G{_ngZone=l(ye);_renderer=l(Ce);_animationsModule=l(xe,{optional:!0});_cleanupTransition;_isAnimating=be(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new O;_icons;animationDone=new M;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!l(Ae).isBrowser;constructor(){super();let t=l(z).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(y(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(y(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsModule!=="NoopAnimations"&&setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(S(null),y(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this._animationsModule==="NoopAnimations"?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let t=e.target;if(!t)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&t.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&t.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(K=>K.nativeElement===t)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,Et,5),v(r,Mt,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(t,n){if(t&1&&(P(pe,5),P(ut,5)),t&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(t,n){t&2&&(w("aria-orientation",n.orientation),Ie("--mat-stepper-animation-duration",n._getAnimationDuration()),k("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom")("mat-stepper-animating",n._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ie([{provide:G,useExisting:i}]),R],ngContentSelectors:We,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,n){if(t&1&&(A(),f(0,ft,1,0)(1,yt,7,0,"div",2)(2,xt,2,0)(3,Ct,1,23,"ng-template",null,0,Ee)),t&2){let r;_(n._isServer?0:-1),s(),_((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[re,pe],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
3
- `],encapsulation:2,changeDetection:0})}return i})();var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({providers:[It,j],imports:[ae,Oe,Ke,Ue,qe,wt,pe,ae]})}return i})();export{tt as a,le as b,Mt as c,Dt as d,Et as e,wt as f,Di as g};
1
+ import{a as Ge,b as Ue}from"./chunk-PHUHUFYL.js";import{a as qe}from"./chunk-EHUVS2VB.js";import{a as j}from"./chunk-6L7TD5DW.js";import{d as je}from"./chunk-6OMSPZZC.js";import{a as $e}from"./chunk-JVNHFIYT.js";import{f as ke}from"./chunk-5PS6ZS3N.js";import{f as Qe,h as Ve,i as Be}from"./chunk-MFQQEEHJ.js";import{E as He,I as Ne,M as ae,d as Te,g as ze,k as Oe,m as Re,n as Ae,v as Fe,w as Pe,y as Le}from"./chunk-GZKOMS4T.js";import{i as re}from"./chunk-FXQKRJWU.js";import{$ as S,Ac as P,Bc as m,Ca as Z,Cc as h,Fc as te,Gb as E,Gc as x,Hb as N,Hc as C,Ib as b,Ka as M,Kb as R,La as ye,Mb as f,Pa as z,Qc as ie,Ra as be,Sa as O,Tc as ne,Xa as xe,Xb as w,Yb as u,Zb as Ie,_b as k,a as de,aa as he,ac as J,bc as Me,ca as y,cd as Ee,dc as _,f as L,fc as Q,gc as V,hc as B,ic as d,ja as ue,jc as c,jd as $,ka as H,kc as X,ma as fe,nc as I,oc as De,od as T,pa as l,pd as we,q as ce,qa as _e,ra as ve,rb as s,tb as D,tc as ee,uc as p,v as me,vc as A,wb as Ce,wc as F,xa as ge,ya as W,za as Y,zb as Se,zc as v}from"./chunk-OJMQBH6T.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Fe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Le(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Pe(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Te();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Oe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Re);e.load($e),e.load(Ae);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
2
+ `],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{templateRef=l(D);name;constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return i})(),Dt=(()=>{class i{_template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepContent",""]]})}return i})(),Et=(()=>{class i extends q{_errorStateMatcher=l(j,{skipSelf:!0});_viewContainerRef=l(Se);_isSelected=de.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(he(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Qe(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let n=this._errorStateMatcher.isErrorState(e,t),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,le,5),v(r,Dt,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ie([{provide:j,useExisting:i},{provide:q,useExisting:i}]),R],ngContentSelectors:We,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,n){t&1&&(A(),f(0,ht,2,1,"ng-template"))},dependencies:[Ve],encapsulation:2,changeDetection:0})}return i})(),wt=(()=>{class i extends G{_ngZone=l(ye);_renderer=l(Ce);_animationsModule=l(xe,{optional:!0});_cleanupTransition;_isAnimating=be(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new O;_icons;animationDone=new M;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!l(ze).isBrowser;constructor(){super();let t=l(z).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(y(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(y(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsModule!=="NoopAnimations"&&setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(S(null),y(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this._animationsModule==="NoopAnimations"?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let t=e.target;if(!t)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&t.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&t.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(K=>K.nativeElement===t)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,Et,5),v(r,Mt,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(t,n){if(t&1&&(P(pe,5),P(ut,5)),t&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(t,n){t&2&&(w("aria-orientation",n.orientation),Ie("--mat-stepper-animation-duration",n._getAnimationDuration()),k("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom")("mat-stepper-animating",n._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ie([{provide:G,useExisting:i}]),R],ngContentSelectors:We,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,n){if(t&1&&(A(),f(0,ft,1,0)(1,yt,7,0,"div",2)(2,xt,2,0)(3,Ct,1,23,"ng-template",null,0,Ee)),t&2){let r;_(n._isServer?0:-1),s(),_((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[re,pe],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
3
+ `],encapsulation:2,changeDetection:0})}return i})();var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({providers:[It,j],imports:[ae,Be,Ke,Ue,qe,wt,pe,ae]})}return i})();export{tt as a,le as b,Mt as c,Dt as d,Et as e,wt as f,Di as g};
@@ -0,0 +1 @@
1
+ import{a as pe,b as me,c as de}from"./chunk-UHJEXTOG.js";import{a as ce}from"./chunk-WAKKUK6E.js";import{a as T}from"./chunk-QSHR75ZI.js";import{a as se}from"./chunk-67HPC5Y3.js";import{a as oe}from"./chunk-OLANEXLB.js";import"./chunk-PFY5UG5D.js";import"./chunk-KS7ACI26.js";import"./chunk-3GDM5JNY.js";import"./chunk-XXT6F2ZS.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import"./chunk-JVNHFIYT.js";import{a as le}from"./chunk-CWXOXH6M.js";import"./chunk-3YP6ORBR.js";import{a as ae}from"./chunk-LDL3A7NM.js";import"./chunk-WWLC64XZ.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-PYXL7UF7.js";import"./chunk-PW42BQIY.js";import{m as ne,n as re}from"./chunk-HJXYT6MI.js";import{A as ee,c as X,h as Y,m as Z,o as $}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as te,s as ie}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{j as G,k as J,m as K,n as Q}from"./chunk-FXQKRJWU.js";import{$c as w,Gb as W,Gc as l,Hc as v,Ic as b,Kc as _,Lc as g,Mb as x,Mc as f,Nc as z,Oc as A,Pc as R,Qc as H,Ra as N,Rc as j,Sc as U,Yb as c,ac as I,ad as E,bd as q,dc as y,ec as D,gc as B,hc as k,ic as t,jc as i,kc as u,oc as V,pa as O,pb as F,rb as o,tc as M,uc as h,ya as m,za as d}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var ue=()=>[],he=r=>({"td-cell-hover":r});function _e(r,S){if(r&1&&u(0,"variants-dropdown",31),r&2){let e=h().$implicit;c("variants",e==null?null:e.Variants)}}function ge(r,S){if(r&1&&u(0,"variant-with-image",32),r&2){let e=h().$implicit;c("variant",e==null?null:e.Variants[0])}}function fe(r,S){if(r&1&&(t(0,"span"),l(1),i()),r&2){let e=h().$implicit;o(),b("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Se(r,S){if(r&1&&(t(0,"tr")(1,"td")(2,"div",24),u(3,"img",25),w(4,"channelImage"),t(5,"div",26)(6,"div"),l(7),i(),t(8,"small",27)(9,"span"),l(10),i()()()()(),t(11,"td")(12,"div",28)(13,"div",29)(14,"div"),u(15,"order-link",30),i()(),t(16,"small"),l(17),w(18,"date"),i()()(),t(19,"td"),l(20),i(),t(21,"td"),x(22,_e,1,1,"variants-dropdown",31)(23,ge,1,1,"variant-with-image",32),i(),t(24,"td",33),l(25),w(26,"number"),i(),t(27,"td")(28,"div",28)(29,"div",29)(30,"span"),l(31),i(),x(32,fe,2,1,"span"),i(),t(33,"small"),l(34),i()()()()),r&2){let e=S.$implicit;o(3),c("src",E(4,14,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),o(4),v(e.Outlet),o(3),v(e.ChannelName),o(5),c("order",e),o(2),b(" ",q(18,16,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),o(3),v(e.Customer),o(),I(U(21,he,(e.Variants==null?null:e.Variants.length)>1)),o(),y((e.Variants==null?null:e.Variants.length)>1?22:23),o(3),v(E(26,19,e.Amount)),o(6),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),o(),y(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?32:-1),o(2),b(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function Ce(r,S){if(r&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",20),l(7,"Number"),i(),t(8,"th",20),l(9,"Customer"),i(),t(10,"th"),l(11,"Items"),i(),t(12,"th",21),l(13,"Amount"),i(),t(14,"th",22),l(15,"Shipping"),i()()(),t(16,"tbody"),B(17,Se,35,23,"tr",null,D),i()(),t(19,"app-custom-paginator",23),M("next",function(){m(e);let n=h();return d(n.initShippedOrders())})("previous",function(){m(e);let n=h();return d(n.initShippedOrders())}),i()()}if(r&2){let e=h(),p=R(0);o(17),k(p),o(2),c("filter",e.filter())("totaldata",p==null?null:p.length)}}function ve(r,S){r&1&&(t(0,"div",16),u(1,"app-empty-state"),i())}var He=(()=>{class r{constructor(){this.orderService=O(T),this.filter=N({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(p=>L(P({},p),{From:e})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-shipped"]],features:[H([T])],decls:34,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[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","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","100px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(p,n){if(p&1){let s=V();z(0),w(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return m(s),d(n.initShippedOrders())}),f("textChange",function(a){return m(s),g(n.filter().Number,a)||(n.filter().Number=a),d(a)}),t(3,"actions")(4,"a",1),u(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"Channel"),i(),t(12,"channel-select-options",4),f("ngModelChange",function(a){return m(s),g(n.filter().ListChannelID,a)||(n.filter().ListChannelID=a),d(a)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),f("dateChange",function(a){return m(s),g(n.filter().From,a)||(n.filter().From=a),d(a)}),i()(),t(18,"div")(19,"datepicker",8),f("dateChange",function(a){return m(s),g(n.filter().To,a)||(n.filter().To=a),d(a)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),f("ngModelChange",function(a){return m(s),g(n.filter().PageNumber,a)||(n.filter().PageNumber=a),d(a)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),f("ngModelChange",function(a){return m(s),g(n.filter().PageSize,a)||(n.filter().PageSize=a),d(a)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),x(32,Ce,20,2,"div",15)(33,ve,2,0,"div",16),i()()()()()}if(p&2){let s=A(E(1,8,n.shippedOrders$)||j(11,ue));o(2),_("text",n.filter().Number),o(10),c("multiple",!0),_("ngModel",n.filter().ListChannelID),o(5),_("date",n.filter().From),o(2),_("date",n.filter().To),o(4),_("ngModel",n.filter().PageNumber),o(4),_("ngModel",n.filter().PageSize),o(5),y(s.length>0?32:33)}},dependencies:[Q,G,K,J,re,ne,oe,ae,ee,X,$,Y,Z,pe,me,de,se,le,ie,te,ce],encapsulation:2})}}return r})();export{He as ShippedComponent};
@@ -1,4 +1,4 @@
1
- import{a as tt,b as it,c as nt}from"./chunk-FFCWYWBW.js";import"./chunk-G7T42LFR.js";import{a as pe}from"./chunk-EOLVRL5H.js";import{a as Qe,b as Ze,c as qe,e as Je,f as Xe,g as et}from"./chunk-IQ4AFE6X.js";import{e as Ye,k as $e,l as Ge,m as je,n as He,o as Ke}from"./chunk-B67DSLBY.js";import"./chunk-74ELVGDK.js";import{a as Le,b as Ae,c as ze}from"./chunk-OK3LLCAK.js";import"./chunk-HVCIQI7B.js";import"./chunk-6RLISMEX.js";import"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import"./chunk-LRUVI2Z3.js";import"./chunk-UYLSZYOD.js";import"./chunk-M7V7A7Z6.js";import"./chunk-QBL6V7QF.js";import"./chunk-DFGZ4L65.js";import{a as Ue}from"./chunk-DQ3XZQ7W.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-LDPDLCRL.js";import"./chunk-OZ7LWNOK.js";import"./chunk-UHTMVOX6.js";import{ha as Be}from"./chunk-7AE3725T.js";import"./chunk-JVNHFIYT.js";import"./chunk-VCTMSNVC.js";import{g as Ve,h as re}from"./chunk-NFN7BQB3.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import{a as oe}from"./chunk-MW6Q6DZF.js";import{b as Pe,e as Ie}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{c as ke,d as Fe,e as Oe}from"./chunk-PYXL7UF7.js";import{b as ne,c as D}from"./chunk-PW42BQIY.js";import{m as Re,n as We}from"./chunk-FO7G4GMY.js";import{A as ie,b as be,c as Me,h as ee,m as te,x as Ee}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as Ne,s as ae}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{J as Te,d as F,f as L,g as A,j as X,k as z,n as I}from"./chunk-FXQKRJWU.js";import{$c as W,Ac as Ce,Bc as Se,Cc as ve,Fc as x,Gb as P,Gc as p,Hc as k,Ic as S,Ka as B,Kc as T,Lc as b,Mb as w,Mc as M,Na as ue,Oa as O,Qc as Q,Ra as f,Rc as ye,Sc as Z,Tc as De,Yb as d,Z as $,aa as ce,ad as j,bd as xe,cd as q,dc as V,ea as G,ic as o,ja as he,jc as r,kc as C,lc as N,m as me,mc as R,oc as v,pa as y,pb as fe,rb as l,sd as J,tc as g,uc as _,v as K,xb as _e,xc as ge,ya as c,yc as we,za as h}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as se,b as de}from"./chunk-66YHNWRR.js";var pt=t=>({"over-due":t});function st(t,m){if(t&1&&(o(0,"tr",8)(1,"td"),p(2),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),r(),o(7,"td"),p(8),r()()),t&2){let e=m.$implicit,n=m.index;d("ngClass",Z(5,pt,e.Exception)),l(2),k(n+1),l(2),k(e.Number),l(2),k(e.Status),l(2),k(e.Exception)}}function dt(t,m){if(t&1&&(N(0),w(1,st,9,7,"tr",7),R()),t&2){let e,n=_();l(),d("ngForOf",(e=n.downloadResult())==null?null:e.Body)}}function mt(t,m){t&1&&(o(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),r(),o(4,"h4",13),p(5," There is no order to processed "),r()()())}var ot=(()=>{class t{constructor(){this.downloadResult=O()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({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&&(o(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),o(6,"th"),p(7,"Order Number"),r(),o(8,"th"),p(9,"Status"),r(),o(10,"th"),p(11,"Exception"),r()()(),o(12,"tbody"),w(13,dt,2,1,"ng-container",6)(14,mt,6,0,"ng-template",null,0,q),r()()()()),n&2){let a,u=x(15);l(13),d("ngIf",((a=i.downloadResult())==null||a.Body==null?null:a.Body.length)>0)("ngIfElse",u)}},dependencies:[I,F,L,A],encapsulation:2})}}return t})();var ht=t=>({"full-width":t}),ut=()=>({standalone:!0}),rt=(()=>{class t{constructor(e){this.datePipe=e,this.fullWidth=!1,this.timeChange=new B}ngOnInit(){}onTimeChange(e){let n=null;e&&(n=this.datePipe.transform(e,"HH:mm")),this.timeChange.emit(n),this.onTimePickerChange()}onShowCalendar(){let e=document.getElementById("dropdown-filter");if(e){var n=new bootstrap.Dropdown(e);n&&(n._config.autoClose="inside")}}onTimePickerChange(){let e=document.getElementById("dropdown-filter");if(e){var n=new bootstrap.Dropdown(e);n&&(n._config.autoClose="outside")}}static{this.\u0275fac=function(n){return new(n||t)(_e(z))}}static{this.\u0275cmp=P({type:t,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth"},outputs:{timeChange:"timeChange"},decls:4,vars:8,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions"],["size","small","label","Close",3,"click"]],template:function(n,i){if(n&1){let a=v();o(0,"p-datepicker",1,0),M("ngModelChange",function(s){return c(a),b(i.time,s)||(i.time=s),h(s)}),g("ngModelChange",function(s){return c(a),h(i.onTimeChange(s))})("onSelect",function(){return c(a),h(i.onShowCalendar())}),o(2,"p-footer")(3,"p-button",2),g("click",function(){return c(a),x(1).hideOverlay(),h(i.onShowCalendar())}),r()()()}n&2&&(d("ngClass",Z(5,ht,i.fullWidth))("baseZIndex",1100),T("ngModel",i.time),d("timeOnly",!0)("ngModelOptions",ye(7,ut)))},dependencies:[I,F,ie,ee,te,nt,it,tt,Be],styles:["p-datepicker span.p-datepicker.custom-height{height:44px;width:70px} p-datepicker.full-width span.p-datepicker.custom-height{height:44px;width:100%!important}"]})}}return t})();var Y=(()=>{class t{constructor(){this.httpService=y(Ie),this.toastr=y(Pe),this.datePipe=y(z)}gerChannelDetailById(e){return this.httpService.post(oe.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(oe.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(oe.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(G(n=>{n.Data?.length===0&&this.toastrEmptyPreview(e)})):me}toastrEmptyPreview(e){let n=this.datePipe.transform(e.From,"dd MMM yyyy"),i=this.datePipe.transform(e.To,"dd MMM yyyy"),a=e.TimeFrom?e.TimeFrom:"",u=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${a} to ${i} ${u}!`,"No Orders!")}validateDatePreview(e){let n=!0;return e.downloadType==!0?D.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):D.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=D.formatTitleFromDate(new Date(e),new Date(n)),a=this.datePipe.transform(e,i),u=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":a+"-"} ${u}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=he({token:t,factory:t.\u0275fac})}}return t})();function ft(t,m){if(t&1&&(o(0,"ng-option",16),C(1,"img",17),p(2),r()),t&2){let e=m.$implicit;d("value",e.ID),l(),d("src",e==null?null:e.Img,fe),l(),S("",e.Name," ")}}function _t(t,m){if(t&1){let e=v();o(0,"div",8)(1,"div",4)(2,"h5"),p(3,"Type"),r(),o(4,"p",5),p(5,"Select Type want to download"),r()(),o(6,"div",4)(7,"div",18)(8,"div")(9,"mat-radio-group",19),M("ngModelChange",function(i){c(e);let a=_();return b(a.downloadType,i)||(a.downloadType=i),h(i)}),g("ngModelChange",function(){c(e);let i=_();return h(i.onDownloadTypeChange())}),o(10,"mat-radio-button",20),p(11," Orders "),r(),o(12,"mat-radio-button",21),p(13," Disbursement "),r()()()(),o(14,"div",22)(15,"div",23),C(16,"i",24),r(),o(17,"p",25),p(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),r()()()()}if(t&2){let e=_();l(9),T("ngModel",e.downloadType),l(),d("value",!1),l(2),d("value",!0)}}function gt(t,m){t&1&&(o(0,"p",5),p(1," Select Disbursement date "),o(2,"span",26),p(3,"(payment date / order complete date)"),r(),p(4," of the channel you want to download (Max 1 Week). "),r())}function wt(t,m){t&1&&(o(0,"p",5),p(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),r())}function Ct(t,m){if(t&1){let e=v();o(0,"div",12)(1,"app-timepicker",27),M("timeChange",function(i){c(e);let a=_();return b(a.startTime,i)||(a.startTime=i),h(i)}),g("timeChange",function(){c(e);let i=_();return h(i.onStartTimeChange())}),r(),o(2,"span",28),p(3,"-"),r(),o(4,"app-timepicker",27),M("timeChange",function(i){c(e);let a=_();return b(a.endTime,i)||(a.endTime=i),h(i)}),g("timeChange",function(){c(e);let i=_();return h(i.onEndTimeChange())}),r()()}if(t&2){let e=_();l(),T("time",e.startTime),l(3),T("time",e.endTime)}}var at=(()=>{class t{constructor(){this.reset=O(!1),this.authService=y(re),this.tokenService=y(Ve),this.downloadService=y(Y),this.downloadType=f(!1),this.selectedChannelId=f(null),this.channelOptions=f(this.authService.getChannels()),this.channelType=ne,this.selectedChannel=f(null),this.showTimePicker=f(!1),this.startDate=f(null),this.endDate=f(null),this.startTime=f("00:00"),this.endTime=f("23:59"),this.minDate=f(new Date),this.maxDate=f(new Date),this.filterData=new B,this._onRememberMeChange=ue({alias:"onRememberMeChange"}),this.rememberMe=f(!1),J(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let e=this.tokenService?.getTokenValue(),n=e?.DownloadRange?JSON.parse(e?.DownloadRange):0;if(n<=0)this.minDate.set(null),this.maxDate.set(null);else{let i=new Date,a=D.addDays(i,n-1);this.minDate.set(a)}}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(K(e=>e?.Model),$(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=D.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()})}onChangeRememberMe(e){this._onRememberMeChange.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange",_onRememberMeChange:"onRememberMeChange"},features:[Q([Y,Ye()])],decls:32,vars:14,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","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[1,"col-6","d-flex","align-items-center","gap-2"],["type","checkbox",2,"width","16px","height","16px",3,"ngModelChange","ngModel"],[1,"ms-2","fw-bold"],[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 a=v();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),p(5,"Select a Channel"),r(),o(6,"p",5),p(7,"Select Channel want to download order"),r()(),o(8,"div",4)(9,"ng-select",6),M("ngModelChange",function(s){return c(a),b(i.selectedChannelId,s)||(i.selectedChannelId=s),h(s)}),g("ngModelChange",function(){return c(a),h(i.onSelectChannel())}),w(10,ft,3,3,"ng-option",7),r()()(),w(11,_t,19,3,"div",8),W(12,"async"),o(13,"div",8)(14,"div",4)(15,"h5"),p(16,"Date Range"),r(),w(17,gt,5,0,"p",5)(18,wt,2,0,"p",5),r(),o(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),M("ngModelChange",function(s){return c(a),b(i.startDate,s)||(i.startDate=s),h(s)}),g("click",function(){c(a);let s=x(25);return h(s.open())}),r(),o(23,"input",11),M("ngModelChange",function(s){return c(a),b(i.endDate,s)||(i.endDate=s),h(s)}),g("click",function(){c(a);let s=x(25);return h(s.open())})("ngModelChange",function(){return c(a),h(i.onFilterDateChange())}),r()(),C(24,"mat-date-range-picker",null,0),r(),w(26,Ct,5,2,"div",12),r()(),o(27,"div",8)(28,"div",13)(29,"input",14),M("ngModelChange",function(s){return c(a),b(i.rememberMe,s)||(i.rememberMe=s),h(s)}),g("ngModelChange",function(s){return c(a),h(i.onChangeRememberMe(s))}),r(),o(30,"h5",15),p(31,"Remember Me"),r()()()()()}if(n&2){let a,u,s=x(25);l(9),d("clearable",!1),T("ngModel",i.selectedChannelId),l(),d("ngForOf",i.channelOptions()),l(),V((a=j(12,12,i.channelDetail$))!=null&&a.ServiceFeeWriteOff&&((a=i.selectedChannel())==null?null:a.TypeID)==i.channelType.Tokopedia?11:-1),l(6),V(i.downloadType()&&((u=i.selectedChannel())==null?null:u.TypeID)==i.channelType.Tokopedia?17:18),l(4),d("rangePicker",s)("min",i.minDate())("max",i.maxDate()),l(),T("ngModel",i.startDate),l(),T("ngModel",i.endDate),l(3),V(i.showTimePicker()?26:-1),l(3),T("ngModel",i.rememberMe)}},dependencies:[I,L,X,Oe,Fe,ke,ze,Le,Ae,ie,Me,be,ee,Ee,te,rt,He,$e,Ke,Ge,je],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 E=function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t}(E||{});var U=function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t}(U||{});var St=(t,m)=>({"over-due-today":t,"over-due":m});function vt(t,m){if(t&1&&(o(0,"th",21),p(1),r()),t&2){let e=_();l(),S(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function yt(t,m){if(t&1&&(o(0,"td"),p(1),W(2,"date"),r()),t&2){let e=_().$implicit;l(),S(" ",xe(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function Dt(t,m){if(t&1&&(o(0,"span"),p(1),r()),t&2){let e=_().$implicit;l(),S(" ",e.ActionString," ")}}function xt(t,m){if(t&1&&(o(0,"li"),p(1),r()),t&2){let e=m.$implicit;l(),S(" ",e," ")}}function Tt(t,m){if(t&1&&(o(0,"ul",27),w(1,xt,2,1,"li",22),r()),t&2){let e=_().$implicit;l(),d("ngForOf",e.ActionString)}}function bt(t,m){if(t&1&&(o(0,"span",28),C(1,"i",29),r()),t&2){let e=_().$implicit;we("title","Delivery : ",e.DeliveryState,`
1
+ import{a as tt,b as it,c as nt}from"./chunk-6H2KAYSB.js";import"./chunk-EYONZQ2W.js";import{a as pe}from"./chunk-QSHR75ZI.js";import"./chunk-MX5SR3SR.js";import{a as Qe,b as Ze,c as qe,e as Je,f as Xe,g as et}from"./chunk-BMYBLBSP.js";import{e as Ye,k as $e,l as Ge,m as je,n as He,o as Ke}from"./chunk-KS7ACI26.js";import"./chunk-PHUHUFYL.js";import{a as Le,b as Ae,c as ze}from"./chunk-KSHWHTCH.js";import"./chunk-HVCIQI7B.js";import"./chunk-3GDM5JNY.js";import"./chunk-XXT6F2ZS.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import"./chunk-VFATXJRG.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import{a as Ue}from"./chunk-PE4SWUEZ.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-JBT7GBCM.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import{ma as Be}from"./chunk-RC5PUUVM.js";import"./chunk-JVNHFIYT.js";import"./chunk-6RMBCW2O.js";import{h as Ve,i as re}from"./chunk-WWLC64XZ.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as oe}from"./chunk-CGOB6Y3X.js";import{b as Pe,e as Ie}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as ke,d as Fe,e as Oe}from"./chunk-PYXL7UF7.js";import{b as ne,c as D}from"./chunk-PW42BQIY.js";import{m as Re,n as We}from"./chunk-HJXYT6MI.js";import{A as ie,b as be,c as Me,h as ee,m as te,x as Ee}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as Ne,s as ae}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{J as Te,d as F,f as L,g as A,j as X,k as z,n as I}from"./chunk-FXQKRJWU.js";import{$c as W,Ac as Ce,Bc as Se,Cc as ve,Fc as x,Gb as P,Gc as p,Hc as k,Ic as S,Ka as B,Kc as T,Lc as b,Mb as w,Mc as M,Na as ue,Oa as O,Qc as Q,Ra as f,Rc as ye,Sc as Z,Tc as De,Yb as d,Z as $,aa as ce,ad as j,bd as xe,cd as q,dc as V,ea as G,ic as o,ja as he,jc as r,kc as C,lc as N,m as me,mc as R,oc as v,pa as y,pb as fe,rb as l,sd as J,tc as g,uc as _,v as K,xb as _e,xc as ge,ya as c,yc as we,za as h}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as se,b as de}from"./chunk-66YHNWRR.js";var pt=t=>({"over-due":t});function st(t,m){if(t&1&&(o(0,"tr",8)(1,"td"),p(2),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),r(),o(7,"td"),p(8),r()()),t&2){let e=m.$implicit,n=m.index;d("ngClass",Z(5,pt,e.Exception)),l(2),k(n+1),l(2),k(e.Number),l(2),k(e.Status),l(2),k(e.Exception)}}function dt(t,m){if(t&1&&(N(0),w(1,st,9,7,"tr",7),R()),t&2){let e,n=_();l(),d("ngForOf",(e=n.downloadResult())==null?null:e.Body)}}function mt(t,m){t&1&&(o(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),r(),o(4,"h4",13),p(5," There is no order to processed "),r()()())}var ot=(()=>{class t{constructor(){this.downloadResult=O()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({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&&(o(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),o(6,"th"),p(7,"Order Number"),r(),o(8,"th"),p(9,"Status"),r(),o(10,"th"),p(11,"Exception"),r()()(),o(12,"tbody"),w(13,dt,2,1,"ng-container",6)(14,mt,6,0,"ng-template",null,0,q),r()()()()),n&2){let a,u=x(15);l(13),d("ngIf",((a=i.downloadResult())==null||a.Body==null?null:a.Body.length)>0)("ngIfElse",u)}},dependencies:[I,F,L,A],encapsulation:2})}}return t})();var ht=t=>({"full-width":t}),ut=()=>({standalone:!0}),rt=(()=>{class t{constructor(e){this.datePipe=e,this.fullWidth=!1,this.timeChange=new B}ngOnInit(){}onTimeChange(e){let n=null;e&&(n=this.datePipe.transform(e,"HH:mm")),this.timeChange.emit(n),this.onTimePickerChange()}onShowCalendar(){let e=document.getElementById("dropdown-filter");if(e){var n=new bootstrap.Dropdown(e);n&&(n._config.autoClose="inside")}}onTimePickerChange(){let e=document.getElementById("dropdown-filter");if(e){var n=new bootstrap.Dropdown(e);n&&(n._config.autoClose="outside")}}static{this.\u0275fac=function(n){return new(n||t)(_e(z))}}static{this.\u0275cmp=P({type:t,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth"},outputs:{timeChange:"timeChange"},decls:4,vars:8,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions"],["size","small","label","Close",3,"click"]],template:function(n,i){if(n&1){let a=v();o(0,"p-datepicker",1,0),M("ngModelChange",function(s){return c(a),b(i.time,s)||(i.time=s),h(s)}),g("ngModelChange",function(s){return c(a),h(i.onTimeChange(s))})("onSelect",function(){return c(a),h(i.onShowCalendar())}),o(2,"p-footer")(3,"p-button",2),g("click",function(){return c(a),x(1).hideOverlay(),h(i.onShowCalendar())}),r()()()}n&2&&(d("ngClass",Z(5,ht,i.fullWidth))("baseZIndex",1100),T("ngModel",i.time),d("timeOnly",!0)("ngModelOptions",ye(7,ut)))},dependencies:[I,F,ie,ee,te,nt,it,tt,Be],styles:["p-datepicker span.p-datepicker.custom-height{height:44px;width:70px} p-datepicker.full-width span.p-datepicker.custom-height{height:44px;width:100%!important}"]})}}return t})();var Y=(()=>{class t{constructor(){this.httpService=y(Ie),this.toastr=y(Pe),this.datePipe=y(z)}gerChannelDetailById(e){return this.httpService.post(oe.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(oe.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(oe.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(G(n=>{n.Data?.length===0&&this.toastrEmptyPreview(e)})):me}toastrEmptyPreview(e){let n=this.datePipe.transform(e.From,"dd MMM yyyy"),i=this.datePipe.transform(e.To,"dd MMM yyyy"),a=e.TimeFrom?e.TimeFrom:"",u=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${a} to ${i} ${u}!`,"No Orders!")}validateDatePreview(e){let n=!0;return e.downloadType==!0?D.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):D.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=D.formatTitleFromDate(new Date(e),new Date(n)),a=this.datePipe.transform(e,i),u=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":a+"-"} ${u}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=he({token:t,factory:t.\u0275fac})}}return t})();function ft(t,m){if(t&1&&(o(0,"ng-option",16),C(1,"img",17),p(2),r()),t&2){let e=m.$implicit;d("value",e.ID),l(),d("src",e==null?null:e.Img,fe),l(),S("",e.Name," ")}}function _t(t,m){if(t&1){let e=v();o(0,"div",8)(1,"div",4)(2,"h5"),p(3,"Type"),r(),o(4,"p",5),p(5,"Select Type want to download"),r()(),o(6,"div",4)(7,"div",18)(8,"div")(9,"mat-radio-group",19),M("ngModelChange",function(i){c(e);let a=_();return b(a.downloadType,i)||(a.downloadType=i),h(i)}),g("ngModelChange",function(){c(e);let i=_();return h(i.onDownloadTypeChange())}),o(10,"mat-radio-button",20),p(11," Orders "),r(),o(12,"mat-radio-button",21),p(13," Disbursement "),r()()()(),o(14,"div",22)(15,"div",23),C(16,"i",24),r(),o(17,"p",25),p(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),r()()()()}if(t&2){let e=_();l(9),T("ngModel",e.downloadType),l(),d("value",!1),l(2),d("value",!0)}}function gt(t,m){t&1&&(o(0,"p",5),p(1," Select Disbursement date "),o(2,"span",26),p(3,"(payment date / order complete date)"),r(),p(4," of the channel you want to download (Max 1 Week). "),r())}function wt(t,m){t&1&&(o(0,"p",5),p(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),r())}function Ct(t,m){if(t&1){let e=v();o(0,"div",12)(1,"app-timepicker",27),M("timeChange",function(i){c(e);let a=_();return b(a.startTime,i)||(a.startTime=i),h(i)}),g("timeChange",function(){c(e);let i=_();return h(i.onStartTimeChange())}),r(),o(2,"span",28),p(3,"-"),r(),o(4,"app-timepicker",27),M("timeChange",function(i){c(e);let a=_();return b(a.endTime,i)||(a.endTime=i),h(i)}),g("timeChange",function(){c(e);let i=_();return h(i.onEndTimeChange())}),r()()}if(t&2){let e=_();l(),T("time",e.startTime),l(3),T("time",e.endTime)}}var at=(()=>{class t{constructor(){this.reset=O(!1),this.authService=y(re),this.tokenService=y(Ve),this.downloadService=y(Y),this.downloadType=f(!1),this.selectedChannelId=f(null),this.channelOptions=f(this.authService.getChannels()),this.channelType=ne,this.selectedChannel=f(null),this.showTimePicker=f(!1),this.startDate=f(null),this.endDate=f(null),this.startTime=f("00:00"),this.endTime=f("23:59"),this.minDate=f(new Date),this.maxDate=f(new Date),this.filterData=new B,this._onRememberMeChange=ue({alias:"onRememberMeChange"}),this.rememberMe=f(!1),J(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let e=this.tokenService?.getTokenValue(),n=e?.DownloadRange?JSON.parse(e?.DownloadRange):0;if(n<=0)this.minDate.set(null),this.maxDate.set(null);else{let i=new Date,a=D.addDays(i,n-1);this.minDate.set(a)}}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(K(e=>e?.Model),$(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=D.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()})}onChangeRememberMe(e){this._onRememberMeChange.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange",_onRememberMeChange:"onRememberMeChange"},features:[Q([Y,Ye()])],decls:32,vars:14,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","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[1,"col-6","d-flex","align-items-center","gap-2"],["type","checkbox",2,"width","16px","height","16px",3,"ngModelChange","ngModel"],[1,"ms-2","fw-bold"],[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 a=v();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),p(5,"Select a Channel"),r(),o(6,"p",5),p(7,"Select Channel want to download order"),r()(),o(8,"div",4)(9,"ng-select",6),M("ngModelChange",function(s){return c(a),b(i.selectedChannelId,s)||(i.selectedChannelId=s),h(s)}),g("ngModelChange",function(){return c(a),h(i.onSelectChannel())}),w(10,ft,3,3,"ng-option",7),r()()(),w(11,_t,19,3,"div",8),W(12,"async"),o(13,"div",8)(14,"div",4)(15,"h5"),p(16,"Date Range"),r(),w(17,gt,5,0,"p",5)(18,wt,2,0,"p",5),r(),o(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),M("ngModelChange",function(s){return c(a),b(i.startDate,s)||(i.startDate=s),h(s)}),g("click",function(){c(a);let s=x(25);return h(s.open())}),r(),o(23,"input",11),M("ngModelChange",function(s){return c(a),b(i.endDate,s)||(i.endDate=s),h(s)}),g("click",function(){c(a);let s=x(25);return h(s.open())})("ngModelChange",function(){return c(a),h(i.onFilterDateChange())}),r()(),C(24,"mat-date-range-picker",null,0),r(),w(26,Ct,5,2,"div",12),r()(),o(27,"div",8)(28,"div",13)(29,"input",14),M("ngModelChange",function(s){return c(a),b(i.rememberMe,s)||(i.rememberMe=s),h(s)}),g("ngModelChange",function(s){return c(a),h(i.onChangeRememberMe(s))}),r(),o(30,"h5",15),p(31,"Remember Me"),r()()()()()}if(n&2){let a,u,s=x(25);l(9),d("clearable",!1),T("ngModel",i.selectedChannelId),l(),d("ngForOf",i.channelOptions()),l(),V((a=j(12,12,i.channelDetail$))!=null&&a.ServiceFeeWriteOff&&((a=i.selectedChannel())==null?null:a.TypeID)==i.channelType.Tokopedia?11:-1),l(6),V(i.downloadType()&&((u=i.selectedChannel())==null?null:u.TypeID)==i.channelType.Tokopedia?17:18),l(4),d("rangePicker",s)("min",i.minDate())("max",i.maxDate()),l(),T("ngModel",i.startDate),l(),T("ngModel",i.endDate),l(3),V(i.showTimePicker()?26:-1),l(3),T("ngModel",i.rememberMe)}},dependencies:[I,L,X,Oe,Fe,ke,ze,Le,Ae,ie,Me,be,ee,Ee,te,rt,He,$e,Ke,Ge,je],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 E=function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t}(E||{});var U=function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t}(U||{});var St=(t,m)=>({"over-due-today":t,"over-due":m});function vt(t,m){if(t&1&&(o(0,"th",21),p(1),r()),t&2){let e=_();l(),S(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function yt(t,m){if(t&1&&(o(0,"td"),p(1),W(2,"date"),r()),t&2){let e=_().$implicit;l(),S(" ",xe(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function Dt(t,m){if(t&1&&(o(0,"span"),p(1),r()),t&2){let e=_().$implicit;l(),S(" ",e.ActionString," ")}}function xt(t,m){if(t&1&&(o(0,"li"),p(1),r()),t&2){let e=m.$implicit;l(),S(" ",e," ")}}function Tt(t,m){if(t&1&&(o(0,"ul",27),w(1,xt,2,1,"li",22),r()),t&2){let e=_().$implicit;l(),d("ngForOf",e.ActionString)}}function bt(t,m){if(t&1&&(o(0,"span",28),C(1,"i",29),r()),t&2){let e=_().$implicit;we("title","Delivery : ",e.DeliveryState,`
2
2
  Payment : `,e.PaymentState,"")}}function Mt(t,m){if(t&1&&(o(0,"tr")(1,"td"),p(2),r(),o(3,"td"),p(4),r(),w(5,yt,3,4,"td",23),o(6,"td")(7,"span"),p(8),r(),p(9),r(),o(10,"td",24)(11,"span"),p(12),r(),p(13),r(),o(14,"td"),w(15,Dt,2,1,"span",23)(16,Tt,2,1,"ul",25),r(),o(17,"td"),w(18,bt,2,3,"span",26),r()()),t&2){let e,n=m.$implicit,i=m.index,a=_(2);l(2),k(i+1),l(2),k(n.Number),l(),d("ngIf",((e=a.selectedChannel())==null?null:e.TypeID)!=a.channelType.Shopee&&((e=a.selectedChannel())==null?null:e.TypeID)!==a.channelType.Tiktok),l(3),S("",n.ChannelStatus," - "),l(),S("",n.ChannelStatusDescription," "),l(),d("ngClass",De(12,St,(n==null?null:n.Action)==a.actionPreviewOrder.Update,(n==null?null:n.Action)==a.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":""),l(2),S("",n.POSStatus," - "),l(),S("",n.POSStatusDescription," "),l(2),d("ngIf",n.ActionString.length==1),l(),d("ngIf",n.ActionString.length>1),l(2),d("ngIf",n.ChannelStatus!=99&&n.POSStatus!=99)}}function Et(t,m){if(t&1&&(N(0),w(1,Mt,19,15,"tr",22),R()),t&2){let e=_();l(),d("ngForOf",e.displayPreviewData())}}function Pt(t,m){t&1&&(o(0,"tr",30)(1,"td",31)(2,"div",32),C(3,"i",33),r(),o(4,"h4",34),p(5," There is no order to processed "),r()()())}var lt=(()=>{class t{constructor(){this.orderPreview=O(),this.selectedChannel=O(),this.channelType=ne,this.allData=f(0),this.syncData=f(0),this.wrongData=f(0),this.unsyncData=f(0),this.pillStatus=f(E.ALL),this.actionPreviewOrder=U,this.previewStatus=E,this.displayPreviewData=f([]),this.exportOrders=new B,J(()=>{this.orderPreview()&&(this.filterPreviewData(E.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(e){this.pillStatus.update(()=>e),this.displayPreviewData.update(()=>this.filterDataByStatus(e))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(E.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(E.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(E.UNSYNC).length)}filterDataByStatus(e){let n=[];switch(e){case E.ALL:n=this.orderPreview();break;case E.SYNC:n=this.orderPreview().filter(i=>i.Action==U.DoNothing);break;case E.WRONG:n=this.orderPreview().filter(i=>i.Action==U.Update);break;case E.UNSYNC:n=this.orderPreview().filter(i=>i.Action==U.New);break}return n}onExportOrders(){this.exportOrders.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({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 a=v();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),g("click",function(){return c(a),h(i.filterPreviewData(i.previewStatus.ALL))}),p(8),r()(),o(9,"li",8)(10,"button",9),g("click",function(){return c(a),h(i.filterPreviewData(i.previewStatus.SYNC))}),p(11),r()(),o(12,"li",8)(13,"button",10),g("click",function(){return c(a),h(i.filterPreviewData(i.previewStatus.WRONG))}),p(14),r()(),o(15,"li",8)(16,"button",11),g("click",function(){return c(a),h(i.filterPreviewData(i.previewStatus.UNSYNC))}),p(17),r()()()(),o(18,"div")(19,"button",12),g("click",function(){return c(a),h(i.onExportOrders())}),C(20,"i",13),o(21,"span"),p(22,"Export"),r()()()()(),o(23,"table",14)(24,"thead",15)(25,"tr"),C(26,"th",16),o(27,"th",17),p(28,"Number"),r(),w(29,vt,2,1,"th",18),o(30,"th",19),p(31,"Channel Status"),r(),o(32,"th",19),p(33,"POS Status"),r(),o(34,"th"),p(35,"Action"),r(),C(36,"th",16),r()(),o(37,"tbody"),w(38,Et,2,1,"ng-container",20)(39,Pt,6,0,"ng-template",null,0,q),r()()()()}if(n&2){let a,u,s=x(40);l(7),d("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),l(),S(" All (",i.allData(),") "),l(2),d("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),l(),S(" Existing (",i.syncData(),") "),l(2),d("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),l(),S(" Wrong Status (",i.wrongData(),") "),l(2),d("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),l(),S(" Missing (",i.unsyncData(),") "),l(12),d("ngIf",((a=i.selectedChannel())==null?null:a.TypeID)!=i.channelType.Shopee&&((a=i.selectedChannel())==null?null:a.TypeID)!==i.channelType.Tiktok),l(9),d("ngIf",((u=i.displayPreviewData())==null?null:u.length)>0)("ngIfElse",s)}},dependencies:[I,F,L,A,z,ae,Ne],encapsulation:2})}}return t})();var It=["stepper"];function Vt(t,m){if(t&1){let e=v();o(0,"div",2)(1,"button",19),g("click",function(){c(e);let i=_();return h(i.onStepperBack())}),p(2," Back "),r(),o(3,"button",20),g("click",function(){c(e);let i=_();return h(i.onNextStep())}),p(4," Next "),r()()}if(t&2){let e=_();l(3),d("disabled",e.disabledNextFilter())}}function kt(t,m){if(t&1){let e=v();o(0,"button",21),g("click",function(){c(e);let i=_();return h(i.onNextStep())}),p(1," Next "),r()}if(t&2){let e=_();d("disabled",e.disabledNextFilter())}}function Ft(t,m){if(t&1){let e=v();o(0,"button",22),g("click",function(){c(e);let i=_();return h(i.onNewDownload())}),C(1,"i",23),p(2," New "),r()}}function Ot(t,m){t&1&&(C(0,"i",24),o(1,"span"),p(2,"Filter"),r())}function Nt(t,m){t&1&&(C(0,"i",25),o(1,"span"),p(2,"Preview"),r())}function Rt(t,m){if(t&1){let e=v();N(0),o(1,"preview-step",26),g("onExportOrders",function(){c(e);let i=_();return h(i.onExportOrders())}),r(),R()}if(t&2){let e=m.ngIf;l(),d("orderPreview",e)}}function Wt(t,m){t&1&&(C(0,"i",27),o(1,"span"),p(2,"Finish"),r())}function Bt(t,m){if(t&1&&(N(0),C(1,"complete-step",28),R()),t&2){let e=m.ngIf;l(),d("downloadResult",e)}}function Lt(t,m){t&1&&(o(0,"h6"),p(1,"1"),r())}function At(t,m){t&1&&(o(0,"h6"),p(1,"2"),r())}function zt(t,m){t&1&&(o(0,"h6"),p(1,"3"),r())}var hn=(()=>{class t{constructor(){this.downloadService=y(Y),this.orderService=y(pe),this.productService=y(Ue),this.authService=y(re),this.stepperSelectedIndex=f(0),this.disabledNextFilter=f(!0),this.isResetFilter=f(!1),this.pageTitle=f("Download to POS"),this.cacheKey=f(D.GuidEMpty),this.rememberMe=f(!1)}onFilterChange(e){this.filter=e,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>D.IsEmpty(this.filter?.channelId)||!D.isValidDate(this.filter.startDate)||!D.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};D.IsNotEmpty(this.filter.startTime)&&(e=de(se({},e),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(e).pipe(G(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),K(n=>n.Data),$(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(ce(n=>(e.ListPreview=n,this.downloadService.getDownloadOrder(e))),G(()=>{this.onStepperNext()}),$(1))}setPageTitle(e){this.pageTitle.update(()=>`
3
3
  ${e} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
4
4
  `)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!this.rememberMe()),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=P({type:t,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&Ce(It,5),n&2){let a;Se(a=ve())&&(i.stepper=a.first)}},features:[Q([Y,pe,{provide:Qe,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","d-flex","align-items-center","gap-2"],[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","onRememberMeChange","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","d-flex","align-items-center","gap-2",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt"],[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 a=v();o(0,"mainpanel",1)(1,"actions"),w(2,Vt,5,1,"div",2)(3,kt,2,1,"button",3)(4,Ft,3,0,"button",4),r(),o(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-stepper",9,0),M("selectedIndexChange",function(s){return c(a),b(i.stepperSelectedIndex,s)||(i.stepperSelectedIndex=s),h(s)}),o(12,"mat-step",10),w(13,Ot,3,0,"ng-template",11),o(14,"filter-step",12),g("onFilterChange",function(s){return c(a),h(i.onFilterChange(s))})("onRememberMeChange",function(s){return c(a),h(i.rememberMe.set(s))}),r()(),o(15,"mat-step",13),w(16,Nt,3,0,"ng-template",11)(17,Rt,2,1,"ng-container",14),W(18,"async"),r(),o(19,"mat-step",15),w(20,Wt,3,0,"ng-template",11)(21,Bt,2,1,"ng-container",14),W(22,"async"),r(),w(23,Lt,2,0,"ng-template",16)(24,At,2,0,"ng-template",17)(25,zt,2,0,"ng-template",18),r()()()()()()()}if(n&2){let a=x(11);d("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),l(2),V(i.stepperSelectedIndex()==1?2:-1),l(),V(i.stepperSelectedIndex()==0?3:-1),l(),V(i.stepperSelectedIndex()==2?4:-1),l(6),ge("ngClass","last-edited-step-"+a.selectedIndex),T("selectedIndex",i.stepperSelectedIndex),l(2),d("completed",!1)("editable",i.stepperSelectedIndex()!=2),l(2),d("reset",i.isResetFilter()),l(),d("editable",i.stepperSelectedIndex()!=2)("completed",!1),l(2),d("ngIf",j(18,16,i.orderPreview$)),l(4),d("ngIf",j(22,18,i.downloadPreview$))}},dependencies:[I,F,A,X,ot,at,lt,et,Je,Ze,Xe,qe,We,Re,Te,ae],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}
@@ -0,0 +1 @@
1
+ import{a as H}from"./chunk-3YP6ORBR.js";import{c as q}from"./chunk-PW42BQIY.js";import{A as R}from"./chunk-5PS6ZS3N.js";import{r as A,s as G}from"./chunk-MFQQEEHJ.js";import{d as V,f as z,g as B,m as j,n as Z,r as $}from"./chunk-FXQKRJWU.js";import{$c as y,Fc as D,Gb as M,Gc as p,Hc as x,Ic as u,Jc as F,Mb as m,Nc as L,Oa as I,Oc as N,Pc as k,Sc as b,Xb as C,Yb as a,ad as P,cd as U,dc as h,ic as r,jc as l,kc as g,lc as v,mc as _,oc as O,pb as f,rb as n,tc as T,uc as d,xb as E,ya as w,za as S}from"./chunk-OJMQBH6T.js";var J=t=>({"border-bottom-0":t}),K=t=>({"border-bottom":t});function Q(t,c){if(t&1){let e=O();v(0),r(1,"img",15),T("click",function(i){w(e);let s=d();return S(s.onZoomImage(i))}),l(),_()}if(t&2){let e=d();n(),a("ngSrc",e.image)("fill",!0)}}function W(t,c){t&1&&g(0,"img",16),t&2&&a("fill",!0)}function X(t,c){if(t&1&&(r(0,"div",17),g(1,"i",18),r(2,"span"),p(3),l()()),t&2){let e=d();n(3),x(e.code)}}function Y(t,c){if(t&1&&(r(0,"div",11),p(1),y(2,"number"),l()),t&2){let e=d();n(),u("",P(2,1,e.totalChannel())," Listing")}}function ee(t,c){if(t&1&&(r(0,"div",25),p(1),y(2,"number"),l()),t&2){d();let e=k(7);n(),u(" (",P(2,1,e)," Listing) ")}}function te(t,c){if(t&1&&(v(0),r(1,"div",29)(2,"div",30),p(3),l(),r(4,"div")(5,"a",31),g(6,"i",32),l()()(),_()),t&2){let e=c.$implicit,o=c.index,i=d().$implicit;n(),a("ngClass",b(4,K,o!==(i==null?null:i.Variants.length)-1)),n(2),F(" ",e.ProductName," - ",e.Name," "),n(2),a("href",e.URL,f)}}function ne(t,c){if(t&1&&(r(0,"div",19)(1,"h2",20)(2,"button",21)(3,"div",22),g(4,"img",23),r(5,"span",24),p(6),l(),L(7),m(8,ee,3,3,"div",25),l()()(),r(9,"div",26)(10,"div",27),m(11,te,7,6,"ng-container",28),l()()()),t&2){let e=c.$implicit,o=c.index,i=d();a("ngClass",b(12,J,i.channels.length-1==o)),n(),a("id","heading"+o+i.id),n(),C("data-bs-target","#collapse"+o+i.id)("aria-controls","#collapse"+o+i.id),n(2),a("src",i.getChannelLogo(e.TypeID),f),n(),a("matTooltip",(e==null||e.ChannelName==null?null:e.ChannelName.length)>30?e.ChannelName:""),n(),x(e.ChannelName),n();let s=N(e==null||e.Variants==null?null:e.Variants.length);n(),h(s>1&&(i.channels==null?null:i.channels.length)>1?8:-1),n(),a("id","collapse"+o+i.id),C("aria-labelledby","heading"+o+i.id),n(2),a("ngForOf",e.Variants)}}var ue=(()=>{class t{constructor(e){this.biggerPictureService=e,this.totalChannel=I(0)}getChannelLogo(e){return q.getChannelLogoByTypeId(e)}onZoomImage(e){this.biggerPictureService.openBiggerPicture(e,this.imageForZoom)}static{this.\u0275fac=function(o){return new(o||t)(E(H))}}static{this.\u0275cmp=M({type:t,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",totalChannel:[1,"totalChannel"],id:"id"},decls:17,vars:6,consts:[["elsePic",""],[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"fs-5"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],[1,"fs-4","ms-2"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"]],template:function(o,i){if(o&1&&(r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),m(6,Q,2,2,"ng-container",7)(7,W,1,1,"ng-template",null,0,U),l()()(),r(9,"div",8)(10,"h4",9),p(11),l(),m(12,X,4,1,"div",10)(13,Y,3,3,"div",11),l()()(),r(14,"div",12)(15,"div",13),m(16,ne,12,14,"div",14),l()()()),o&2){let s=D(8);n(6),a("ngIf",i.image)("ngIfElse",s),n(5),u(" ",i.title," "),n(),a("ngIf",i.code),n(),h(i.totalChannel()?13:-1),n(3),a("ngForOf",i.channels)}},dependencies:[Z,V,z,B,j,R,G,A,$],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]})}}return t})();export{ue as a};
@@ -1 +1 @@
1
- var e=(()=>{class t{static{this.SubmitConfig="/api/Channel/SubmitConfig"}static{this.PosAccountTest="/api/POSAccount/Test"}static{this.PosAccountRemove="/api/POSAccount/Remove"}static{this.PosAccountGetConfig="/api/ChannelLoader/GetConfig"}static{this.ChannelGetLastSyncByID="/api/Channel/GetLastSyncByID"}static{this.GetChannel="/api/Channel/GetChannel"}static{this.GetChannelLoader="/api/ChannelLoader/GetChannelLoader"}static{this.TestShopID="/api/Channel/TestShopID"}static{this.UpdateChannelIndex="/api/Channel/UpdateChannelIndex"}static{this.DeleteChannel="/api/Channel/DeleteChannel"}static{this.GetRegisterByOutletName="/api/Channel/GetRegistersByOutletOrder"}static{this.GetChannelRowCount="/api/Channel/GetCountChannel"}static{this.GetChannelWarehouse="/api/Channel/GetChannelWarehouseLocation"}static{this.UnSynchronizedWarehouse="/api/Channel/UnSynchronizedWarehouse"}static{this.GetChannelDetail="/api/ChannelLoader/GetChannelView"}static{this.GetOrderPreview="/api/Orders/Preview"}static{this.GetOrderPreviewV2="/api/Orders/PreviewV2"}static{this.GetDownloadOrder="/api/Orders/Download"}static{this.GetDownloadOrderV2="/api/Orders/DownloadV2"}static{this.ShopeeV2_URL="/api/ChannelAuthorization/ShopeeV2_URL"}static{this.Tiktok_URL="/api/ChannelAuthorization/Tiktok_URL"}static{this.Lazada_URL="/api/ChannelAuthorization/Lazada_URL"}static{this.AddTokopedia="/api/ChannelAdd/Tokopedia"}static{this.AddShopify="/api/ChannelAdd/AddShopify"}static{this.AddWoocommerce="/api/ChannelAdd/AddWooCommerce"}static{this.AddPlugo="/api/ChannelAdd/Plugo"}static{this.UploadPlugoProduct="/api/product/plugo/AddProduct"}static{this.RefreshToken="/api/RefreshToken"}static{this.RefreshInventory="/api/Inventory/RefreshInventory"}static{this.GetToShip="/api/orders/toship"}static{this.GetShipped="/api/orders/shipped"}static{this.GetCompleted="/api/orders/completed"}static{this.GetAll="/api/orders/all"}static{this.GetCancelled="/api/orders/GetCancelled"}static{this.GetAwaitingCollection="/api/orders/AwaitingCollection"}static{this.GetShopeeShippingOptions="/api/v1/shipping/shopee/OptionShip"}static{this.ShopeeSelectShipping="/api/v1/shipping/shopee/SelectShip"}static{this.ShopeeSelectMultipleShipping="/api/v1/shipping/shopee/SelectMultipleShip"}static{this.GetTiktokShippingOptions="/api/v1/shipping/tiktok/OptionShip"}static{this.TiktokSelectShipping="/api/v1/shipping/tiktok/SelectShip"}static{this.TiktokSelectMultipleShipping="/api/v1/shipping/tiktok/SelectMultipleShip"}static{this.GetOrderApiLog="/api/Orders/GetOrderDetailByChannel"}static{this.GetUserLoader="/api/userloader/List"}static{this.GetUsers="/api/user/list"}static{this.GetLoaderForm="/api/userloader/Form"}static{this.UpdateUser="/api/user/Submit"}static{this.DeleteUsers="/api/user/Delete"}static{this.MyProfile="/api/user/myprofile"}static{this.MigrateUsers="/api/user/migrate"}static{this.MigrateLoader="/api/userloader/Migrate"}static{this.GetGroups="/api/UserGroup/list"}static{this.GetGroupsLoader="/api/UserGroupLoader/list"}static{this.GetGroupFormLoader="/api/UserGrouploader/Form"}static{this.SubmitGroup="/api/userGroup/AssignRole"}static{this.DeleteGroups="/api/userGroup/Delete"}static{this.GetEscrowDetail="/api/Orders/GetEscrowDetail"}static{this.DetachVariant="/api/product/DetachVariant"}static{this.GetProductApiLog="/api/Product/GetProductDetailBySKU"}static{this.ScanSyncProductV2="/api/v2/ProductScan/SyncProduct"}static{this.ScanAsyncProductV2="/api/v2/ProductScan/AsyncProduct"}static{this.GetLastInfoDownloadInventory="/api/Inventory/GetOrderDownloadLatestOn"}static{this.UpdateInventoryChannel="/api/Inventory/UpdateChannel"}static{this.GetJobScanList="/api/notification/GetJobScanV2"}static{this.GetJobScanDetail="/api/notification/GetJobScanV2ByID"}static{this.UpdateChannelInventory="/api/Inventory/UpdateChannel"}static{this.GetMultiListingSKU="/api/product/GetMultiListingSKU"}static{this.UpdateUpdateQuantityByItem="/api/Inventory/UpdateQuantityByItem"}static{this.UpdatePriceById="/api/Price/UpdatePriceByID"}static{this.UpdateChannelPrice="/api/Price/UpdateChannel"}static{this.TokopediaPrintShippingLabel="api/v1/Shippinglabel/Tokopedia"}static{this.TiktokPrintShippingLabel="api/v1/Shippinglabel/Tiktok/DownloadShipping"}static{this.LazadaPrintShippingLabel="api/v1/Shippinglabel/Lazada/DownloadShipping"}static{this.ShopeePrintShippingLabel="api/v1/Shippinglabel/shopee/DownloadShipping"}static{this.ShopeePrintMultipleShippingLabel="/api/v1/Shippinglabel/shopee/MultiDownloadShipping"}static{this.TiktokPrintMultipleShippingLabel="/api/v1/Shippinglabel/Tiktok/MultiDownloadShipping"}static{this.LazadaPrintMultipleShippingLabel="/api/v1/Shippinglabel/Lazada/MultiDownloadShipping"}static{this.RefreshShippingCourierAndRefNumber="/api/orders/RefreshShippingProvider"}}return t})();export{e as a};
1
+ var e=(()=>{class t{static{this.SubmitConfig="/api/Channel/SubmitConfig"}static{this.PosAccountTest="/api/POSAccount/Test"}static{this.PosAccountRemove="/api/POSAccount/Remove"}static{this.PosAccountGetConfig="/api/ChannelLoader/GetConfig"}static{this.ChannelGetLastSyncByID="/api/Channel/GetLastSyncByID"}static{this.GetChannel="/api/Channel/GetChannel"}static{this.GetChannelLoader="/api/ChannelLoader/GetChannelLoader"}static{this.TestShopID="/api/Channel/TestShopID"}static{this.UpdateChannelIndex="/api/Channel/UpdateChannelIndex"}static{this.DeleteChannel="/api/Channel/DeleteChannel"}static{this.GetRegisterByOutletName="/api/Channel/GetRegistersByOutletOrder"}static{this.GetChannelRowCount="/api/Channel/GetCountChannel"}static{this.GetChannelWarehouse="/api/Channel/GetChannelWarehouseLocation"}static{this.UnSynchronizedWarehouse="/api/Channel/UnSynchronizedWarehouse"}static{this.GetChannelDetail="/api/ChannelLoader/GetChannelView"}static{this.GetOrderPreview="/api/Orders/Preview"}static{this.GetOrderPreviewV2="/api/Orders/PreviewV2"}static{this.GetDownloadOrder="/api/Orders/Download"}static{this.GetDownloadOrderV2="/api/Orders/DownloadV2"}static{this.ShopeeV2_URL="/api/ChannelAuthorization/ShopeeV2_URL"}static{this.Tiktok_URL="/api/ChannelAuthorization/Tiktok_URL"}static{this.Lazada_URL="/api/ChannelAuthorization/Lazada_URL"}static{this.AddTokopedia="/api/ChannelAdd/Tokopedia"}static{this.AddShopify="/api/ChannelAdd/AddShopify"}static{this.AddWoocommerce="/api/ChannelAdd/AddWooCommerce"}static{this.AddPlugo="/api/ChannelAdd/Plugo"}static{this.UploadPlugoProduct="/api/product/plugo/AddProduct"}static{this.RefreshToken="/api/RefreshToken"}static{this.RefreshInventory="/api/Inventory/RefreshInventory"}static{this.GetToShip="/api/orders/toship"}static{this.GetShipped="/api/orders/shipped"}static{this.GetCompleted="/api/orders/completed"}static{this.GetAll="/api/orders/all"}static{this.GetCancelled="/api/orders/GetCancelled"}static{this.GetAwaitingCollection="/api/orders/AwaitingCollection"}static{this.GetShopeeShippingOptions="/api/v1/shipping/shopee/OptionShip"}static{this.ShopeeSelectShipping="/api/v1/shipping/shopee/SelectShip"}static{this.ShopeeSelectMultipleShipping="/api/v1/shipping/shopee/SelectMultipleShip"}static{this.GetTiktokShippingOptions="/api/v1/shipping/tiktok/OptionShip"}static{this.TiktokSelectShipping="/api/v1/shipping/tiktok/SelectShip"}static{this.TiktokSelectMultipleShipping="/api/v1/shipping/tiktok/SelectMultipleShip"}static{this.GetOrderApiLog="/api/Orders/GetOrderDetailByChannel"}static{this.getOrderDaysFrom="/api/orders/DaysFrom"}static{this.GetUserLoader="/api/userloader/List"}static{this.GetUsers="/api/user/list"}static{this.GetLoaderForm="/api/userloader/Form"}static{this.UpdateUser="/api/user/Submit"}static{this.DeleteUsers="/api/user/Delete"}static{this.MyProfile="/api/user/myprofile"}static{this.MigrateUsers="/api/user/migrate"}static{this.MigrateLoader="/api/userloader/Migrate"}static{this.GetGroups="/api/UserGroup/list"}static{this.GetGroupsLoader="/api/UserGroupLoader/list"}static{this.GetGroupFormLoader="/api/UserGrouploader/Form"}static{this.SubmitGroup="/api/userGroup/AssignRole"}static{this.DeleteGroups="/api/userGroup/Delete"}static{this.GetEscrowDetail="/api/Orders/GetEscrowDetail"}static{this.DetachVariant="/api/product/DetachVariant"}static{this.GetProductApiLog="/api/Product/GetProductDetailBySKU"}static{this.ScanSyncProductV2="/api/v2/ProductScan/SyncProduct"}static{this.ScanAsyncProductV2="/api/v2/ProductScan/AsyncProduct"}static{this.GetLastInfoDownloadInventory="/api/Inventory/GetOrderDownloadLatestOn"}static{this.UpdateInventoryChannel="/api/Inventory/UpdateChannel"}static{this.GetJobScanList="/api/notification/GetJobScanV2"}static{this.GetJobScanDetail="/api/notification/GetJobScanV2ByID"}static{this.UpdateChannelInventory="/api/Inventory/UpdateChannel"}static{this.GetMultiListingSKU="/api/product/GetMultiListingSKU"}static{this.GetMultilistingSKUCount="/api/product/GetCountMultiListingSKU"}static{this.UpdateUpdateQuantityByItem="/api/Inventory/UpdateQuantityByItem"}static{this.UpdatePriceById="/api/Price/UpdatePriceByID"}static{this.UpdateChannelPrice="/api/Price/UpdateChannel"}static{this.TokopediaPrintShippingLabel="api/v1/Shippinglabel/Tokopedia"}static{this.TiktokPrintShippingLabel="api/v1/Shippinglabel/Tiktok/DownloadShipping"}static{this.LazadaPrintShippingLabel="api/v1/Shippinglabel/Lazada/DownloadShipping"}static{this.ShopeePrintShippingLabel="api/v1/Shippinglabel/shopee/DownloadShipping"}static{this.ShopeePrintMultipleShippingLabel="/api/v1/Shippinglabel/shopee/MultiDownloadShipping"}static{this.TiktokPrintMultipleShippingLabel="/api/v1/Shippinglabel/Tiktok/MultiDownloadShipping"}static{this.LazadaPrintMultipleShippingLabel="/api/v1/Shippinglabel/Lazada/MultiDownloadShipping"}static{this.RefreshShippingCourierAndRefNumber="/api/orders/RefreshShippingProvider"}}return t})();export{e as a};
@@ -1 +1 @@
1
- import{a as x}from"./chunk-PE5AFID4.js";import{g as u}from"./chunk-NFN7BQB3.js";import{b as h,d as C,i as M,j as v,k as S}from"./chunk-FO7G4GMY.js";import{G as g,n as p}from"./chunk-FXQKRJWU.js";import{Gb as m,Gc as t,Yb as d,ic as i,ja as s,jc as n,kc as f,pa as o,tc as c}from"./chunk-OJMQBH6T.js";var y=(()=>{class e{constructor(){this.dialogRef=o(h),this.route=o(g),this.modalConfig=new v,this.modalConfig.title="Switch to modern authorization",this.modalConfig.customWidth="450px",this.modalConfig.hideCancel=!0,this.modalConfig.headerType=M.Warning,this.modalConfig.okText="Setup"}onClose(){this.dialogRef.close()}onOk(){this.dialogRef.close(),this.route.navigate(["/menu/users"])}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=m({type:e,selectors:[["app-modal-user-migration-confirmation"]],decls:19,vars:1,consts:[[3,"onOk","onCancel","config"],["content",""],[1,"d-flex","align-items-center","justify-content-between","gap-6"],[1,"text-center",2,"width","300px"],[1,"fa-solid","fa-users-gear","fa-6x"],[1,"lh-base"],["href","https://support.dealpos.com/en/articles/12636364-how-to-migrate-user-in-dealpos-omnichannel","target","_blank"]],template:function(r,l){r&1&&(i(0,"modal-material",0),c("onOk",function(){return l.onOk()})("onCancel",function(){return l.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3),f(4,"i",4),n(),i(5,"div",5)(6,"p"),t(7," We have introduced a new Modern Authorization, Please switch from "),i(8,"b"),t(9,"legacy"),n(),t(10," to "),i(11,"b"),t(12,"modern"),n(),t(13," authorization by inviting your users. "),n(),i(14,"div"),t(15," Please refer to this "),i(16,"a",6),t(17,"article"),n(),t(18," for more information "),n()()()()()),r&2&&d("config",l.modalConfig)},dependencies:[p,S],encapsulation:2})}}return e})();var R=(()=>{class e{constructor(){this.dialog=o(C),this.tokenService=o(u),this.dialogRef=null}openDialogMigrationConfirmation(){this.tokenService.getUser()?.AuthorizationMode===x.Legacy&&!this.dialogRef&&(this.dialogRef=this.dialog.open(y),this.dialogRef.afterClosed().subscribe(()=>{this.dialogRef=null}))}resetDialogState(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var B=(e,b)=>(o(R).openDialogMigrationConfirmation(),!0);export{B as a};
1
+ import{a as x}from"./chunk-PE5AFID4.js";import{h as u}from"./chunk-WWLC64XZ.js";import{b as h,d as C,i as M,j as v,k as S}from"./chunk-HJXYT6MI.js";import{G as g,n as p}from"./chunk-FXQKRJWU.js";import{Gb as m,Gc as t,Yb as d,ic as i,ja as s,jc as n,kc as f,pa as o,tc as c}from"./chunk-OJMQBH6T.js";var y=(()=>{class e{constructor(){this.dialogRef=o(h),this.route=o(g),this.modalConfig=new v,this.modalConfig.title="Switch to modern authorization",this.modalConfig.customWidth="450px",this.modalConfig.hideCancel=!0,this.modalConfig.headerType=M.Warning,this.modalConfig.okText="Setup"}onClose(){this.dialogRef.close()}onOk(){this.dialogRef.close(),this.route.navigate(["/menu/users"])}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=m({type:e,selectors:[["app-modal-user-migration-confirmation"]],decls:19,vars:1,consts:[[3,"onOk","onCancel","config"],["content",""],[1,"d-flex","align-items-center","justify-content-between","gap-6"],[1,"text-center",2,"width","300px"],[1,"fa-solid","fa-users-gear","fa-6x"],[1,"lh-base"],["href","https://support.dealpos.com/en/articles/12636364-how-to-migrate-user-in-dealpos-omnichannel","target","_blank"]],template:function(r,l){r&1&&(i(0,"modal-material",0),c("onOk",function(){return l.onOk()})("onCancel",function(){return l.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3),f(4,"i",4),n(),i(5,"div",5)(6,"p"),t(7," We have introduced a new Modern Authorization, Please switch from "),i(8,"b"),t(9,"legacy"),n(),t(10," to "),i(11,"b"),t(12,"modern"),n(),t(13," authorization by inviting your users. "),n(),i(14,"div"),t(15," Please refer to this "),i(16,"a",6),t(17,"article"),n(),t(18," for more information "),n()()()()()),r&2&&d("config",l.modalConfig)},dependencies:[p,S],encapsulation:2})}}return e})();var R=(()=>{class e{constructor(){this.dialog=o(C),this.tokenService=o(u),this.dialogRef=null}openDialogMigrationConfirmation(){this.tokenService.getUser()?.AuthorizationMode===x.Legacy&&!this.dialogRef&&(this.dialogRef=this.dialog.open(y),this.dialogRef.afterClosed().subscribe(()=>{this.dialogRef=null}))}resetDialogState(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var B=(e,b)=>(o(R).openDialogMigrationConfirmation(),!0);export{B as a};