marketplacepos 5.46.0 → 5.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/Marketplace/chunk-26ZM2UD3.js +1 -0
  2. package/Marketplace/{chunk-FPYZBABH.js → chunk-2O4IEGGR.js} +1 -1
  3. package/Marketplace/chunk-2SGPD432.js +1 -0
  4. package/Marketplace/{chunk-PONMPAT5.js → chunk-2XWZQCUR.js} +1 -1
  5. package/Marketplace/{chunk-VPFSU3X4.js → chunk-2Z7CPNRS.js} +1 -1
  6. package/Marketplace/{chunk-Z3ZYINRX.js → chunk-3BALA33G.js} +1 -1
  7. package/Marketplace/{chunk-6RLISMEX.js → chunk-3GDM5JNY.js} +1 -1
  8. package/Marketplace/chunk-3VUO4APC.js +1 -0
  9. package/Marketplace/{chunk-LBXSZJDS.js → chunk-4G7SG2H6.js} +1 -1
  10. package/Marketplace/{chunk-EBCTTFHD.js → chunk-4LZODV4E.js} +2 -2
  11. package/Marketplace/chunk-4NEKWRL7.js +1 -0
  12. package/Marketplace/chunk-4TDVVQ64.js +1 -0
  13. package/Marketplace/chunk-4YRBARG2.js +1 -0
  14. package/Marketplace/{chunk-LDD4NVMB.js → chunk-5CKVZBHM.js} +1 -1
  15. package/Marketplace/{chunk-PFXOFSJG.js → chunk-67HPC5Y3.js} +1 -1
  16. package/Marketplace/{chunk-X5KQU53P.js → chunk-6CIQBRO4.js} +1 -1
  17. package/Marketplace/{chunk-FFCWYWBW.js → chunk-6H2KAYSB.js} +6 -99
  18. package/Marketplace/{chunk-WLRPCY65.js → chunk-6OMSPZZC.js} +1 -1
  19. package/Marketplace/{chunk-A6G2H7IF.js → chunk-6U4YIJLC.js} +2 -2
  20. package/Marketplace/chunk-6VYFG4AQ.js +1 -0
  21. package/Marketplace/chunk-77MWKV5I.js +158 -0
  22. package/Marketplace/chunk-7DJXZQ7M.js +1 -0
  23. package/Marketplace/{chunk-DFGZ4L65.js → chunk-7G6GQTSH.js} +1 -1
  24. package/Marketplace/{chunk-BBQGPXDH.js → chunk-A6PXM4YX.js} +1 -1
  25. package/Marketplace/{chunk-HFCAD7GH.js → chunk-ABYG6YZT.js} +1 -1
  26. package/Marketplace/{chunk-3TYYN7ZX.js → chunk-AGZCB65X.js} +1 -1
  27. package/Marketplace/{chunk-QHE3PKRD.js → chunk-BAXQ2L7B.js} +1 -1
  28. package/Marketplace/{chunk-2HNZ6XV3.js → chunk-BKRCW7SH.js} +1 -1
  29. package/Marketplace/{chunk-IQ4AFE6X.js → chunk-BMYBLBSP.js} +3 -3
  30. package/Marketplace/chunk-CGEIIRYF.js +1 -0
  31. package/Marketplace/{chunk-MW6Q6DZF.js → chunk-CGOB6Y3X.js} +1 -1
  32. package/Marketplace/{chunk-5X2WQKXH.js → chunk-CJ4F7QUO.js} +1 -1
  33. package/Marketplace/chunk-CRKCNTXF.js +1 -0
  34. package/Marketplace/{chunk-NERXQ5KH.js → chunk-CVM573KF.js} +1 -1
  35. package/Marketplace/{chunk-ZDXNJIJA.js → chunk-DAXM2MPK.js} +1 -1
  36. package/Marketplace/chunk-DB7C3AL2.js +257 -0
  37. package/Marketplace/chunk-DSYYZDXI.js +1 -0
  38. package/Marketplace/chunk-DZEO4HK4.js +1 -0
  39. package/Marketplace/chunk-EFI2CLNP.js +1 -0
  40. package/Marketplace/{chunk-WKSCLDT7.js → chunk-EHBCYQSG.js} +1 -1
  41. package/Marketplace/{chunk-QP4C4R4W.js → chunk-EHUVS2VB.js} +1 -1
  42. package/Marketplace/{chunk-ZWEHKGL5.js → chunk-EI65NYTN.js} +1 -1
  43. package/Marketplace/chunk-EPBVNII2.js +51 -0
  44. package/Marketplace/{chunk-G7T42LFR.js → chunk-EYONZQ2W.js} +1 -1
  45. package/Marketplace/chunk-F2533PAC.js +1 -0
  46. package/Marketplace/chunk-FB2AEPXA.js +15 -0
  47. package/Marketplace/{chunk-VVX6LRMW.js → chunk-FGFIV3VO.js} +1 -1
  48. package/Marketplace/chunk-FGRPTNDB.js +234 -0
  49. package/Marketplace/chunk-FHWKSD5A.js +3 -0
  50. package/Marketplace/chunk-FIAI5SPR.js +1 -0
  51. package/Marketplace/chunk-FTWATKXK.js +1 -0
  52. package/Marketplace/chunk-GHVAGYK3.js +2 -0
  53. package/Marketplace/chunk-GKRWJPI3.js +2 -0
  54. package/Marketplace/chunk-GPGD3XQH.js +1 -0
  55. package/Marketplace/{chunk-N6HMVYWS.js → chunk-GQXYHXWJ.js} +1 -1
  56. package/Marketplace/{chunk-YIXZLIPA.js → chunk-GRYGUILI.js} +2 -2
  57. package/Marketplace/{chunk-BJUPMCEP.js → chunk-GZKOMS4T.js} +1 -1
  58. package/Marketplace/{chunk-W3JKSCRF.js → chunk-HERZ7KEM.js} +1 -1
  59. package/Marketplace/{chunk-QNM4JQ46.js → chunk-HHO2NGCF.js} +1 -1
  60. package/Marketplace/{chunk-3UN6FPMN.js → chunk-HIC5QC3Y.js} +1 -1
  61. package/Marketplace/{chunk-4VITMSIA.js → chunk-HITTNWB6.js} +1 -1
  62. package/Marketplace/{chunk-FO7G4GMY.js → chunk-HJXYT6MI.js} +3 -3
  63. package/Marketplace/{chunk-5LQRO4AI.js → chunk-IHSGQFDX.js} +2 -2
  64. package/Marketplace/{chunk-XXWBR6S5.js → chunk-IITU3NV6.js} +1 -1
  65. package/Marketplace/chunk-ISUN5G42.js +5 -0
  66. package/Marketplace/chunk-IWKRZSYG.js +1 -0
  67. package/Marketplace/{chunk-LDPDLCRL.js → chunk-JBT7GBCM.js} +1 -1
  68. package/Marketplace/{chunk-VKFFHT27.js → chunk-JGEU4EJT.js} +1 -1
  69. package/Marketplace/chunk-JYCBJ7CC.js +1 -0
  70. package/Marketplace/chunk-KCFCXS2F.js +1 -0
  71. package/Marketplace/{chunk-OPKLFRVD.js → chunk-KFOHH7PE.js} +1 -1
  72. package/Marketplace/chunk-KRQHTRFM.js +7 -0
  73. package/Marketplace/{chunk-B67DSLBY.js → chunk-KS7ACI26.js} +6 -6
  74. package/Marketplace/{chunk-OK3LLCAK.js → chunk-KSHWHTCH.js} +1 -1
  75. package/Marketplace/{chunk-3NHZEKEI.js → chunk-L7TKCTLD.js} +1 -1
  76. package/Marketplace/{chunk-RNTPX24O.js → chunk-LBMUKJV5.js} +1 -1
  77. package/Marketplace/{chunk-UXPULNCR.js → chunk-LDL3A7NM.js} +1 -1
  78. package/Marketplace/chunk-LFGPYQCI.js +1 -0
  79. package/Marketplace/chunk-LOU3DIPY.js +1 -0
  80. package/Marketplace/{chunk-DZYBXWL2.js → chunk-LYPHZP72.js} +1 -1
  81. package/Marketplace/chunk-M7LXGXUM.js +1 -0
  82. package/Marketplace/{chunk-NNRBGHXB.js → chunk-MFQQEEHJ.js} +3 -3
  83. package/Marketplace/chunk-MJNFY4NT.js +1 -0
  84. package/Marketplace/chunk-MX5SR3SR.js +94 -0
  85. package/Marketplace/{chunk-LSCMIKJ2.js → chunk-NLPXBGIX.js} +1 -1
  86. package/Marketplace/{chunk-CHWXOJDB.js → chunk-NNOI3AG4.js} +1 -1
  87. package/Marketplace/{chunk-I2Y5WJEO.js → chunk-NWWYOZ4V.js} +1 -1
  88. package/Marketplace/chunk-OAG6OVUY.js +1 -0
  89. package/Marketplace/{chunk-OIEZ4JUJ.js → chunk-OE7TF7SI.js} +1 -1
  90. package/Marketplace/{chunk-QK4BGDSS.js → chunk-OHVOVAKD.js} +1 -1
  91. package/Marketplace/chunk-OJZ7NGRW.js +1 -0
  92. package/Marketplace/{chunk-FHH5BTG7.js → chunk-ORLTYLPA.js} +1 -1
  93. package/Marketplace/chunk-OVPVQS4J.js +33 -0
  94. package/Marketplace/{chunk-UIFPDTMW.js → chunk-OXWPLJEW.js} +1 -1
  95. package/Marketplace/{chunk-BQIB3N6V.js → chunk-PFY5UG5D.js} +1 -1
  96. package/Marketplace/{chunk-74ELVGDK.js → chunk-PHUHUFYL.js} +1 -1
  97. package/Marketplace/{chunk-AHLYED4C.js → chunk-PIBVGTHJ.js} +1 -1
  98. package/Marketplace/{chunk-OFZOAEW5.js → chunk-PQQSREEC.js} +1 -1
  99. package/Marketplace/{chunk-QBL6V7QF.js → chunk-Q4N2QUV6.js} +1 -1
  100. package/Marketplace/{chunk-OXOTD33C.js → chunk-QOP7KZK7.js} +1 -1
  101. package/Marketplace/{chunk-M7V7A7Z6.js → chunk-QW4EOJRM.js} +1 -1
  102. package/Marketplace/{chunk-WPELZYFP.js → chunk-QWISVEBT.js} +1 -1
  103. package/Marketplace/{chunk-4KHHGHFJ.js → chunk-RAQRGWCZ.js} +2 -2
  104. package/Marketplace/chunk-RC5PUUVM.js +193 -0
  105. package/Marketplace/{chunk-WWISWZF5.js → chunk-RGAKHXPF.js} +1 -1
  106. package/Marketplace/{chunk-ZBKUZ4CN.js → chunk-RGAWEFPQ.js} +1 -1
  107. package/Marketplace/{chunk-V5KHEF77.js → chunk-RJ5D24ZW.js} +1 -1
  108. package/Marketplace/chunk-RM2OSYMV.js +1 -0
  109. package/Marketplace/{chunk-KXEADFBM.js → chunk-RNNH3EZC.js} +1 -1
  110. package/Marketplace/{chunk-753FTTID.js → chunk-S3FZRSRP.js} +1 -1
  111. package/Marketplace/{chunk-FXVFO74P.js → chunk-SLEJQAL7.js} +1 -1
  112. package/Marketplace/chunk-SZGOLKC6.js +1 -0
  113. package/Marketplace/{chunk-UYLSZYOD.js → chunk-T2OSIFLN.js} +1 -1
  114. package/Marketplace/chunk-T43QRQH5.js +1 -0
  115. package/Marketplace/{chunk-F6HNCBQX.js → chunk-TE5EYKIN.js} +1 -1
  116. package/Marketplace/chunk-TGQ5CJ3A.js +1 -0
  117. package/Marketplace/chunk-UGG2CIUU.js +1 -0
  118. package/Marketplace/{chunk-WFT47MCY.js → chunk-UZWED4UK.js} +1 -1
  119. package/Marketplace/{chunk-WCVSETLP.js → chunk-V6UNCLNJ.js} +2 -2
  120. package/Marketplace/{chunk-LRUVI2Z3.js → chunk-VFATXJRG.js} +1 -1
  121. package/Marketplace/chunk-VIDSOLHF.js +1 -0
  122. package/Marketplace/{chunk-FVORY74O.js → chunk-W3DTXPRM.js} +1 -1
  123. package/Marketplace/{chunk-6KBMGQMI.js → chunk-WAZXTB4X.js} +1 -1
  124. package/Marketplace/{chunk-W5L6FMO3.js → chunk-WN5DZGA4.js} +1 -1
  125. package/Marketplace/{chunk-A64VIOKR.js → chunk-WRJFUNM3.js} +1 -1
  126. package/Marketplace/{chunk-TYG67JH3.js → chunk-XPCRS7AL.js} +1 -1
  127. package/Marketplace/{chunk-TH6VZX34.js → chunk-XXT6F2ZS.js} +1 -1
  128. package/Marketplace/{chunk-RDJPSZRF.js → chunk-YB4KXB2C.js} +1 -1
  129. package/Marketplace/chunk-YFDFIBAG.js +1 -0
  130. package/Marketplace/{chunk-N2SPK2VI.js → chunk-YQLOB7IQ.js} +1 -1
  131. package/Marketplace/{chunk-PPHTN2H6.js → chunk-YTCIQBSO.js} +1 -1
  132. package/Marketplace/chunk-ZUYGRGXM.js +1 -0
  133. package/Marketplace/{chunk-7WG7VRYR.js → chunk-ZVKOEYH7.js} +1 -1
  134. package/Marketplace/chunk-ZXTHWBJ4.js +1 -0
  135. package/Marketplace/index.html +2 -2
  136. package/Marketplace/main-RRL4BIVO.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-ORDCBJ4G.js +0 -2
  167. package/Marketplace/chunk-PFZOP2J7.js +0 -1
  168. package/Marketplace/chunk-QGK4LEFP.js +0 -1
  169. package/Marketplace/chunk-RTT3JVJM.js +0 -1
  170. package/Marketplace/chunk-SMRDRDSH.js +0 -1
  171. package/Marketplace/chunk-UBAADH47.js +0 -1
  172. package/Marketplace/chunk-UHTMVOX6.js +0 -1
  173. package/Marketplace/chunk-UUJWRGO4.js +0 -1
  174. package/Marketplace/chunk-V3CLQBGH.js +0 -1
  175. package/Marketplace/chunk-V4UHOZJ4.js +0 -1
  176. package/Marketplace/chunk-VCTMSNVC.js +0 -1
  177. package/Marketplace/chunk-WHNSPPOH.js +0 -1
  178. package/Marketplace/chunk-WJAE4LW2.js +0 -51
  179. package/Marketplace/chunk-WVHSR3DQ.js +0 -5
  180. package/Marketplace/chunk-XB3CW7KH.js +0 -1
  181. package/Marketplace/chunk-XEBKP2KL.js +0 -1
  182. package/Marketplace/chunk-ZHDGR4XE.js +0 -1
  183. package/Marketplace/main-3TBM4ISM.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as pe}from"./chunk-UMP6ZMEJ.js";import{a as me,i as xe}from"./chunk-FHWKSD5A.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{b as ue,e as y}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{e as _e}from"./chunk-PYXL7UF7.js";import{a as v,c as ge}from"./chunk-PW42BQIY.js";import{A as le,c as ee,h as te,i as ne,k as ie,m as oe,n as re,t as ae,u as se,v as de,w as ce}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{a as fe,c as he}from"./chunk-ERXVXBTU.js";import{E as P,G as C,J as D,d as $,f as z,g as J,j as X,n as Z}from"./chunk-FXQKRJWU.js";import{$c as G,Ac as U,Bc as W,Cc as q,Fc as O,Gb as _,Gc as a,Hb as A,Hc as b,Ic as H,Jc as B,Kc as E,Lc as I,Mb as f,Mc as L,Tc as Y,Yb as p,Z as R,ac as F,ad as Q,cd as K,ic as n,ja as V,jc as r,ka as T,kc as c,lc as S,mc as k,oc as N,pb as w,rb as s,tc as u,uc as m,xb as l,ya as h,za as x}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var be=(()=>{class t{constructor(){}getBrowserName(){let e=window.navigator.userAgent.toLowerCase();switch(!0){case(e.indexOf("edge")>-1||e.indexOf("edg")>-1):return"edge";case e.indexOf("opr")>-1:return"opera";case e.indexOf("chrome")>-1:return"chrome";case e.indexOf("trident")>-1:return"ie";case e.indexOf("firefox")>-1:return"firefox";case e.indexOf("safari")>-1:return"safari";default:return"other"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ie(t,g){if(t&1&&(n(0,"swiper-slide")(1,"div")(2,"a",2),c(3,"img",3),r()(),n(4,"a",4),a(5),r(),n(6,"p",5),a(7),r()()),t&2){let e=g.$implicit;s(2),p("href",e.href,w),s(),p("src",e.imgSrc,w),s(),p("href",e.href,w),s(),b(e.title),s(2),b(e.description)}}var Ce=(()=>{class t{constructor(){this.newsList=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=_({type:t,selectors:[["POS-news-swiper"]],inputs:{newsList:"newsList"},standalone:!1,decls:2,vars:1,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(i,o){i&1&&(n(0,"swiper-container",0),f(1,Ie,8,5,"swiper-slide",1),r()),i&2&&(s(),p("ngForOf",o.newsList))},dependencies:[z],styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]})}}return t})();var Te=["subdomainEl"],Ae=(t,g)=>({"rounded-end":t,"border-end-0":g});function Ne(t,g){if(t&1&&(S(0),n(1,"div",36),c(2,"img",37),r(),k()),t&2){let e=g.$implicit;s(2),p("src",e.img,w)("title",e.title)("alt",e.title)}}function ze(t,g){if(t&1){let e=N();S(0),n(1,"div",17)(2,"h3",18),a(3," DealPOS Omnichannel "),r(),n(4,"small",19),a(5," Multichannel Inventory Management Software "),r()(),n(6,"form",20)(7,"div",21)(8,"div",22)(9,"div",23)(10,"span"),c(11,"i",24),r()(),n(12,"input",25,1),L("ngModelChange",function(o){h(e);let d=m();return I(d.subdomain,o)||(d.subdomain=o),x(o)}),r(),n(14,"div")(15,"select",26),L("ngModelChange",function(o){h(e);let d=m();return I(d.domain,o)||(d.domain=o),x(o)}),n(16,"option",27),a(17,".dealpos.co.id"),r(),n(18,"option",28),a(19,".dealpos.net"),r(),n(20,"option",29),a(21,".dealpos.com"),r(),n(22,"option",30),a(23,".dealpos.app"),r()()()(),n(24,"div",31)(25,"button",32),u("click",function(){h(e);let o=m();return x(o.onNextState())}),a(26," Next "),r()(),n(27,"div",33)(28,"div",34),f(29,Ne,3,3,"ng-container",35),r()()()(),k()}if(t&2){let e=m();s(12),E("ngModel",e.subdomain),s(3),E("ngModel",e.domain),s(14),p("ngForOf",e.channels)}}function De(t,g){t&1&&(n(0,"p"),a(1," Username is required "),r())}function je(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,De,2,0,"p",47),r()(),k()),t&2){m();let e=O(14);s(4),p("ngIf",e.errors.required)}}function Re(t,g){if(t&1){let e=N();n(0,"i",62),u("click",function(){h(e);let o=m(3);return x(o.hideShowPassword())}),r()}if(t&2){let e=m(3);F("fa "+e.passwordIcon)}}function Ve(t,g){if(t&1&&(n(0,"span",60),f(1,Re,1,2,"i",61),r()),t&2){let e=m(2);s(),p("ngIf",e.password)}}function Fe(t,g){t&1&&(n(0,"p"),a(1," Password is required "),r())}function Ue(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,Fe,2,0,"p",47),r()(),k()),t&2){m();let e=O(21);s(4),p("ngIf",e.errors.required)}}function We(t,g){if(t&1){let e=N();n(0,"div",38)(1,"h3",39),a(2,"Sign in"),r(),n(3,"h3",40),a(4," to "),n(5,"h6",41),a(6),r(),n(7,"i",42),u("click",function(){h(e);let o=m();return x(o.onEditDomain())}),r()()(),n(8,"form",43)(9,"div",44)(10,"div",23)(11,"span"),c(12,"i",45),r()(),n(13,"input",46,2),L("ngModelChange",function(o){h(e);let d=m();return I(d.username,o)||(d.username=o),x(o)}),r()(),f(15,je,5,1,"ng-container",47),n(16,"div",22)(17,"div",23)(18,"span"),c(19,"i",48),r()(),n(20,"input",49,3),L("ngModelChange",function(o){h(e);let d=m();return I(d.password,o)||(d.password=o),x(o)}),r(),f(22,Ve,2,1,"span",50),r(),f(23,Ue,5,1,"ng-container",47),n(24,"div",51)(25,"button",52),u("click",function(){h(e);let o=m();return x(o.onLogin())}),a(26," Log in "),r()(),n(27,"div",53),c(28,"hr"),n(29,"span",54),a(30,"or"),r(),c(31,"hr"),r(),n(32,"div")(33,"button",55),u("click",function(o){h(e);let d=m();return x(d.onLoginByGoogle(o))}),c(34,"i",56),a(35," Sign In with Google "),r()()()}if(t&2){let e=O(14),i=O(21),o=m();s(6),B(" (",o.subdomain,"",o.domain,") "),s(7),E("ngModel",o.username),s(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),s(5),p("type",o.passwordType)("ngClass",Y(9,Ae,o.browser=="edge",o.browser!="edge")),E("ngModel",o.password),s(2),p("ngIf",o.browser!="edge"),s(),p("ngIf",i.invalid&&(i.dirty||i.touched))}}var ve=(()=>{class t{constructor(e,i,o,d,Se){this._router=e,this.toastr=i,this.checkBrowser=o,this.authService=d,this.ngxPermission=Se,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:v.SHOOPE},{title:"Tokopedia",img:v.TOKOPEDIA},{title:"Tiktok",img:v.TIKTOK},{title:"Woocommerce",img:v.WOOCOMMERCE},{title:"Lazada",img:v.LAZADA},{title:"Shopify",img:v.SHOPIFY},{title:"Plugo",img:v.PLUGONEW}],this.version=me.version,this.news$=d.getNews().pipe(R(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let e=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=e}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let e=JSON.parse(localStorage.getItem("Authorization"));if(e){this.username=e?.username,this.subdomain=e?.Host?.split(".")[0];let i=e?.Host?.split("dealpos");this.domain=`.dealpos${i[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(ge.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let e=this.subdomain.indexOf(".dealpos");e!=-1&&(this.subdomain=this.subdomain.substring(0,e))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let e={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(e).subscribe(i=>{this.onSuccessLogin(i)})}onLoginByGoogle(e){let i=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(e,i).subscribe(o=>{this.onSuccessLogin(o)})}onSuccessLogin(e){this.ngxPermission.hasPermission([pe.DashboardView]).then(i=>{i?this._router.navigate(["menu/dashboard"]):e?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}static{this.\u0275fac=function(i){return new(i||t)(l(C),l(ue),l(be),l(xe),l(fe))}}static{this.\u0275cmp=_({type:t,selectors:[["app-login"]],viewQuery:function(i,o){if(i&1&&U(Te,5),i&2){let d;W(d=q())&&(o.subdomainEl=d.first)}},standalone:!1,decls:19,vars:7,consts:[["USERNAME_PASSWORD",""],["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[4,"ngIf","ngIfElse"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[4,"ngFor","ngForOf"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],["class","input-group-text border-start-0 rounded-end",4,"ngIf"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[2,"width","52px"],[1,"text-danger","ps-1"],[1,"input-group-text","border-start-0","rounded-end"],[3,"class","click",4,"ngIf"],[3,"click"]],template:function(i,o){if(i&1&&(n(0,"div",4)(1,"div",5)(2,"div",6)(3,"h3",7),a(4,"New Features"),r(),c(5,"POS-news-swiper",8),G(6,"async"),r(),n(7,"div",9),f(8,ze,30,3,"ng-container",10)(9,We,36,12,"ng-template",null,0,K),r()(),n(11,"div",11)(12,"span",12),a(13,"powered by :"),r(),c(14,"a",13),r(),n(15,"div",14)(16,"a",15),a(17),c(18,"i",16),r()()()),i&2){let d=O(10);s(5),p("newsList",Q(6,5,o.news$)),s(3),p("ngIf",o.loginState=="FORM_DOMAIN")("ngIfElse",d),s(8),p("href",o.changelogUrl,w),s(),H("version ",o.version,"")}},dependencies:[$,z,J,re,se,de,ee,ae,te,ne,ce,oe,ie,Ce,X],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]})}}return t})();var Me=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.shopID=e.shop_id,this.code=e.code})}addShopee(){let e={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",e).subscribe(o=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["shopee-authorized"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Shopee"),r(),n(13,"div"),a(14," Your shopID is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addShopee()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.shopID))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Oe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-tiktok"]],standalone:!1,decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Tiktok"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"div"),a(18," Your State is "),n(19,"span",8),a(20),r()(),n(21,"button",9),u("click",function(){return o.addChannelTiktok()}),c(22,"i",10),a(23," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code),s(4),b(o.state))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Pe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code})}addChannelLazada(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-lazada"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Lazada"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addChannelLazada()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code))},encapsulation:2})}}return t})();var qe=[{path:"",component:ve,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:Me,data:{title:"Success"}},{path:"tiktok",component:Oe,data:{title:"Success"}},{path:"lazada",component:Pe,data:{title:"Success"}}],ye=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[D.forChild(qe),D]})}}return t})();var Pt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[Z,le,ye,_e,he]})}}return t})();export{Pt as LoginModule};
@@ -0,0 +1 @@
1
+ import{a as fe,b as _e}from"./chunk-FGRPTNDB.js";import{a as ge}from"./chunk-EHBCYQSG.js";import{a as pe}from"./chunk-A44LN77B.js";import{a as le,b as se}from"./chunk-PQQSREEC.js";import{b as de}from"./chunk-GRYGUILI.js";import{b as me}from"./chunk-OXWPLJEW.js";import"./chunk-HVCIQI7B.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import{a as ue}from"./chunk-2XWZQCUR.js";import{a as he}from"./chunk-RGAWEFPQ.js";import{c as Ce,d as U,e as W}from"./chunk-NWWYOZ4V.js";import"./chunk-YTCIQBSO.js";import"./chunk-LYPHZP72.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-4YRBARG2.js";import"./chunk-5CKVZBHM.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-RHHHL4OR.js";import{a as ce}from"./chunk-KRQHTRFM.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-UMP6ZMEJ.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import{na as re}from"./chunk-RC5PUUVM.js";import"./chunk-JVNHFIYT.js";import"./chunk-3YP6ORBR.js";import"./chunk-6VYFG4AQ.js";import{i as R}from"./chunk-FHWKSD5A.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as k}from"./chunk-CGOB6Y3X.js";import{b as ee,e as te}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as O}from"./chunk-PW42BQIY.js";import{d as ie,l as ne,m as oe,n as ae}from"./chunk-HJXYT6MI.js";import{A as N,a as Y,c as Z,h as L,m as E,o as $}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{g as K,j as Q,m as X,n as F}from"./chunk-FXQKRJWU.js";import{$c as v,G as j,Gb as T,Gc as C,Hc as B,Kb as z,Kc as _,Lc as P,Mb as f,Mc as w,Nc as q,Oa as V,Qc as D,Ra as M,Yb as m,Z as G,ad as x,dc as J,ea as H,ic as r,jc as p,kc as y,oc as I,pa as S,pb as A,rb as d,tc as u,uc as h,xb as b,ya as l,za as s}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function be(o,g){if(o&1&&(r(0,"div",6),y(1,"img",7),r(2,"div"),C(3),p()()),o&2){let e=g.$implicit;d(),m("src",e.logo,A),d(2),B(e.Name)}}function ye(o,g){if(o&1){let e=I();r(0,"p-multiselect",4,0),u("click",function(){l(e);let t=h();return s(t.onClickSelect())}),w("ngModelChange",function(t){l(e);let n=h();return P(n.selectedChannels,t)||(n.selectedChannels=t),s(t)}),u("ngModelChange",function(t){l(e);let n=h();return s(n.onChannelChange(t))}),f(2,be,4,2,"ng-template",5),p()}if(o&2){let e=h();m("options",e.options())("placeholder",e.placeholder()),_("ngModel",e.selectedChannels),m("showClear",e.clearable())("autofocusFilter",!0)("maxSelectedLabels",e.maxSelectedLabels())}}function Ie(o,g){if(o&1&&(r(0,"div",6),y(1,"img",7),r(2,"div"),C(3),p()()),o&2){let e=g.$implicit;d(),m("src",e.logo,A),d(2),B(e.Name)}}function Ve(o,g){if(o&1){let e=I();r(0,"p-select",8,1),u("click",function(){l(e);let t=h();return s(t.onClickSelect())}),w("ngModelChange",function(t){l(e);let n=h();return P(n.selectedChannels,t)||(n.selectedChannels=t),s(t)}),u("ngModelChange",function(t){l(e);let n=h();return s(n.onChannelChange(t))}),f(2,Ie,4,2,"ng-template",5),p()}if(o&2){let e=h();m("options",e.options())("placeholder",e.placeholder()),_("ngModel",e.selectedChannels),m("showClear",e.clearable())("autofocusFilter",!0)("filter",!0)}}var Pe=(()=>{class o extends pe{constructor(){super(),this.authService=S(R),this.multiple=V(!1),this.clearable=V(!0),this.placeholder=V("Select Channels"),this.options=M(this.authService.getChannels()),this.maxSelectedLabels=V(6),this.onChange=e=>{},this.options.update(e=>e.map(i=>(i.logo=O.getChannelLogoByTypeId(i.TypeID),i)))}ngAfterViewInit(){this.initTopPosition()}onChannelChange(e){this.onChange(e)}onClickSelect(){setTimeout(()=>{this.adjustOverlayPosition()},0)}writeValue(e){this.selectedChannels=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275cmp=T({type:o,selectors:[["app-channel-options-v2"]],inputs:{multiple:[1,"multiple"],clearable:[1,"clearable"],placeholder:[1,"placeholder"],maxSelectedLabels:[1,"maxSelectedLabels"]},features:[D([{provide:Y,multi:!0,useExisting:o}]),z],decls:2,vars:1,consts:[["multiSelect",""],["select",""],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","filter"],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels"],["pTemplate","item"],[1,"d-flex","align-items-center","gap-2"],[2,"width","18px",3,"src"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","filter"]],template:function(i,t){i&1&&f(0,ye,3,6,"p-multiselect",2)(1,Ve,3,6,"p-select",3),i&2&&J(t.multiple()?0:1)},dependencies:[F,_e,fe,re,me,N,L,E,se,le],encapsulation:2})}}return o})();function Me(o,g){if(o&1){let e=I();r(0,"button",16),u("click",function(){l(e);let t=h().ngIf,n=h();return s(n.onUpdateItems(t))}),y(1,"i",17),C(2," Update "),p()}}function ve(o,g){if(o&1&&(r(0,"div"),f(1,Me,3,0,"button",15),p()),o&2){let e=g.ngIf,i=h();d(),m("ngIf",i.productService.hasSelectionVariant(e))}}var ht=(()=>{class o{constructor(e,i,t,n,c){this.http=e,this.toastr=i,this.dialog=t,this.productService=n,this.authService=c,this.infinitePagination=S(U),this.updateResHandling=S(W),this.mainPanelService=S(ne),this.channelOptions=M([]),this.searchFilter=M({PageNumber:1,RowCount:50,filterModel:1,text:"",ListChannelID:[]}),this.loaderAPI="PriceLoader/LoadMultiple",this.getDataAPI="Price/GetMultipleChannelComparison",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.data$=this.infinitePagination.data$.pipe(G())}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.getDataAPI,this.infinitePagination.fethRowCountEndpoint=this.rowCountAPI,this.loader$=this.http.post(`/api/${this.loaderAPI}`).pipe(H(e=>{e.Filter={PageNumber:e.Filter.PageNumber,RowCount:e.Filter.RowCount,filterModel:1},this.searchFilter.set(e.Filter),this.mainPanelService.openModalFilter()}))}onShowDifferencePrice(e){let i=1;e&&(i=3),this.searchFilter.update(t=>(t.filterModel=i,t)),this.infinitePagination.reloadPagination(this.searchFilter())}onSearch(e){this.searchFilter.update(i=>(i.text=e,i)),this.infinitePagination.reloadPagination(this.searchFilter()),this.filterSelectedChannels()}onUpdateItems(e){let i=JSON.parse(JSON.stringify(this.channelOptions())),t=this.productService.selectedVariantProduct(e);this.dialog.open(he,{data:{title:"Updating Price",selectedItems:t,channels:i},width:"400px"}).afterClosed().pipe(j(n=>O.IsNotEmpty(n))).subscribe(n=>{this.channelOptions.set(n),this.updatePrice(e)})}filterSelectedChannels(){let i=this.authService.getChannels().filter(t=>this.searchFilter().ListChannelID?.indexOf(t.ID)!==-1);this.channelOptions.set(i)}updatePrice(e){let i=this.productService.selectedVariantProduct(e);if(i.length>0){let t=i.map(a=>({ID:a.ID,Code:a.Code,Price:a.UnitPrice})),c={ListChannelID:this.getSelectedChannels().map(a=>a.ID),ListPrice:t};this.http.post(k.UpdateChannelPrice,c).subscribe(a=>{this.infinitePagination.reloadPagination(this.searchFilter()),this.handlingUpdatePrice(a),this.resetSelectedChannels()})}}updatePriceByVariant(e){let i={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,Price:e.Price-0,VariantID:e.ID};this.http.post(k.UpdatePriceById,i).subscribe(t=>{this.infinitePagination.reloadPagination(this.searchFilter()),this.handlingUpdatePrice(t)})}handlingUpdatePrice(e){let i=e?.Response?.success_list,t=e?.Response?.failure_list,n=this.getSelectedChannels();i?.length>0||t?.length>0?this.updateResHandling.responseHandling(i,t,"Price",n):this.toastr.error(e[0]?.Exception,"Error")}openExportDialog(){this.dialog.open(de,{data:{title:"Export Multi Channel Comparison",pageNumber:this.searchFilter().PageNumber,rowCount:this.searchFilter().RowCount,filterExport:this.searchFilter(),getRowCountApi:this.rowCountAPI,exportApi:"price/GetExportMultipleChannelComparison"}}).afterClosed().subscribe()}resetSelectedChannels(){this.channelOptions.update(e=>(e.forEach(i=>{i.selected=!1}),e))}getSelectedChannels(){return this.channelOptions().filter(e=>e.selected)}static{this.\u0275fac=function(i){return new(i||o)(b(te),b(ee),b(ie),b(ce),b(R))}}static{this.\u0275cmp=T({type:o,selectors:[["app-price-pos-channel"]],features:[D([U,X,ge,W])],decls:32,vars:23,consts:[["headerTitle","Price Comparison","textButton","Search",3,"onSubmit"],[1,"d-flex"],[4,"ngIf"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["productToggleTitle","FILTER DIFFERENT PRICE","table","price",3,"onToggle","onSubmit","showProductToggle","data","channel","hiddenIPOSInventory"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"]],template:function(i,t){if(i&1){let n=I();q(0),v(1,"async"),r(2,"mainpanel",0),u("onSubmit",function(a){return l(n),s(t.onSearch(a))}),r(3,"actions")(4,"div",1),f(5,ve,2,1,"div",2),v(6,"async"),r(7,"button",3),u("click",function(){return l(n),s(t.openExportDialog())}),y(8,"i",4),r(9,"span"),C(10,"Export"),p()()()(),r(11,"filters")(12,"div",5)(13,"label",6),C(14,"Channel"),p(),r(15,"app-channel-options-v2",7),w("ngModelChange",function(a){return l(n),P(t.searchFilter().ListChannelID,a)||(t.searchFilter().ListChannelID=a),s(a)}),p()(),r(16,"div",5)(17,"label",8),C(18,"Page Number"),p(),r(19,"input",9),w("ngModelChange",function(a){return l(n),P(t.searchFilter().PageNumber,a)||(t.searchFilter().PageNumber=a),s(a)}),p()(),r(20,"div")(21,"label",8),C(22,"Page Size"),p(),r(23,"input",9),w("ngModelChange",function(a){return l(n),P(t.searchFilter().RowCount,a)||(t.searchFilter().RowCount=a),s(a)}),p()()(),r(24,"content")(25,"div",10)(26,"div",11)(27,"div",12)(28,"app-table",13),v(29,"async"),u("onToggle",function(a){return l(n),s(t.onShowDifferencePrice(a))})("onSubmit",function(a){return l(n),s(t.updatePriceByVariant(a))}),p(),r(30,"infinite-paginator",14),v(31,"async"),u("onNextPage",function(){return l(n),s(t.infinitePagination.onNextPage(t.searchFilter()))})("onLastPage",function(){return l(n),s(t.infinitePagination.onLastPage(t.searchFilter()))})("onGetRowCount",function(){return l(n),s(t.infinitePagination.getRowCount(t.searchFilter()))}),p()()()()()()}i&2&&(x(1,15,t.loader$),d(5),m("ngIf",x(6,17,t.data$)),d(10),m("multiple",!0),_("ngModel",t.searchFilter().ListChannelID),d(4),_("ngModel",t.searchFilter().PageNumber),d(4),_("ngModel",t.searchFilter().RowCount),d(5),m("showProductToggle",!0)("data",x(29,19,t.data$))("channel",t.channelOptions())("hiddenIPOSInventory",!1),d(2),m("totalData",t.infinitePagination.totalData())("hideCount",t.infinitePagination.hideCount())("rowCount",x(31,21,t.infinitePagination.totalRowCount$))("pageNumber",t.infinitePagination.pageNumber())("disableNextButton",t.infinitePagination.disableNextButton())("goToLastPage",t.infinitePagination.isLastPage()))},dependencies:[F,K,Q,N,Z,$,L,E,Ce,ae,oe,ue,Pe],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]})}}return o})();export{ht as PricePosChannelComponent};
@@ -1 +1 @@
1
- import{a as S}from"./chunk-VPFSU3X4.js";import"./chunk-YERZ6W22.js";import"./chunk-MW6Q6DZF.js";import"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import"./chunk-PW42BQIY.js";import{m as T,n as B}from"./chunk-FO7G4GMY.js";import"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{E as R,H as L,J as w,g as D,j as y,k as b,m as M,n as P}from"./chunk-FXQKRJWU.js";import{$c as m,Gb as E,Gc as n,Hc as r,Ic as _,Mb as s,Qc as I,Yb as l,Z as g,aa as h,ad as C,bd as x,ic as i,jc as t,lc as v,mc as f,pa as p,rb as o,uc as u}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function k(a,c){if(a&1&&(i(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),n(4,"PerfLog"),t()(),i(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),n(9),t()()()()()()),a&2){let e=u().ngIf;o(9),r(e.PerfLog)}}function A(a,c){if(a&1&&(v(0),i(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),n(5,"StackTrace"),t()(),i(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),n(10),t()()()()()(),f()),a&2){let e=u().ngIf;o(10),r(e==null?null:e.Exception)}}function H(a,c){if(a&1&&(v(0),i(1,"mainpanel",1)(2,"actions")(3,"a",2),n(4,"Back"),t()(),i(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),n(12,"General"),t()(),i(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),n(18,"Created Date"),t(),i(19,"div")(20,"span"),n(21),m(22,"date"),t()()()(),i(23,"div",10)(24,"div",11)(25,"label"),n(26,"Status"),t(),i(27,"div")(28,"span"),n(29),t()()()()(),i(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),n(34,"Duration"),t(),i(35,"div")(36,"span"),n(37),m(38,"number"),t()()()(),i(39,"div",10)(40,"div",11)(41,"label"),n(42,"Label"),t(),i(43,"div")(44,"span"),n(45),t()()()()()()()()(),i(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),n(51,"Message"),t()(),i(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),n(56),t()()()()()(),s(57,k,10,1,"div",16)(58,A,11,1,"ng-container",0),t()()()(),f()),a&2){let e=c.ngIf;o(),l("headerTitle","Notification "+e.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),o(20),r(x(22,10,e.Created,"dd MMM yyyy HH:mm:ss")),o(8),r(e.StatusLabel),o(8),_("",x(38,13,e.DurationInSecond,"1.1-1")," s"),o(8),r(e.ProcessLabel),o(11),r(e.ProcessDescription),o(),l("ngIf",e==null?null:e.PerfLog),o(),l("ngIf",e==null?null:e.Exception)}}var W=(()=>{class a{constructor(){this.notificationService=p(S),this.activatedRoute=p(R)}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(h(e=>{let d=e.ID;return this.notificationService.getNotificationDetail(d).pipe(g(1))}))}static{this.\u0275fac=function(d){return new(d||a)}}static{this.\u0275cmp=E({type:a,selectors:[["app-detail"]],features:[I([S])],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notificationV2",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(d,N){d&1&&(s(0,H,59,16,"ng-container",0),m(1,"async")),d&2&&l("ngIf",C(1,1,N.notification$))},dependencies:[P,D,y,M,b,B,T,w,L],encapsulation:2})}}return a})();export{W as DetailComponent};
1
+ import{a as S}from"./chunk-2Z7CPNRS.js";import"./chunk-YERZ6W22.js";import"./chunk-CGOB6Y3X.js";import"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-PW42BQIY.js";import{m as T,n as B}from"./chunk-HJXYT6MI.js";import"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{E as R,H as L,J as w,g as D,j as y,k as b,m as M,n as P}from"./chunk-FXQKRJWU.js";import{$c as m,Gb as E,Gc as n,Hc as r,Ic as _,Mb as s,Qc as I,Yb as l,Z as g,aa as h,ad as C,bd as x,ic as i,jc as t,lc as v,mc as f,pa as p,rb as o,uc as u}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function k(a,c){if(a&1&&(i(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),n(4,"PerfLog"),t()(),i(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),n(9),t()()()()()()),a&2){let e=u().ngIf;o(9),r(e.PerfLog)}}function A(a,c){if(a&1&&(v(0),i(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),n(5,"StackTrace"),t()(),i(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),n(10),t()()()()()(),f()),a&2){let e=u().ngIf;o(10),r(e==null?null:e.Exception)}}function H(a,c){if(a&1&&(v(0),i(1,"mainpanel",1)(2,"actions")(3,"a",2),n(4,"Back"),t()(),i(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),n(12,"General"),t()(),i(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),n(18,"Created Date"),t(),i(19,"div")(20,"span"),n(21),m(22,"date"),t()()()(),i(23,"div",10)(24,"div",11)(25,"label"),n(26,"Status"),t(),i(27,"div")(28,"span"),n(29),t()()()()(),i(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),n(34,"Duration"),t(),i(35,"div")(36,"span"),n(37),m(38,"number"),t()()()(),i(39,"div",10)(40,"div",11)(41,"label"),n(42,"Label"),t(),i(43,"div")(44,"span"),n(45),t()()()()()()()()(),i(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),n(51,"Message"),t()(),i(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),n(56),t()()()()()(),s(57,k,10,1,"div",16)(58,A,11,1,"ng-container",0),t()()()(),f()),a&2){let e=c.ngIf;o(),l("headerTitle","Notification "+e.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),o(20),r(x(22,10,e.Created,"dd MMM yyyy HH:mm:ss")),o(8),r(e.StatusLabel),o(8),_("",x(38,13,e.DurationInSecond,"1.1-1")," s"),o(8),r(e.ProcessLabel),o(11),r(e.ProcessDescription),o(),l("ngIf",e==null?null:e.PerfLog),o(),l("ngIf",e==null?null:e.Exception)}}var W=(()=>{class a{constructor(){this.notificationService=p(S),this.activatedRoute=p(R)}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(h(e=>{let d=e.ID;return this.notificationService.getNotificationDetail(d).pipe(g(1))}))}static{this.\u0275fac=function(d){return new(d||a)}}static{this.\u0275cmp=E({type:a,selectors:[["app-detail"]],features:[I([S])],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notificationV2",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(d,N){d&1&&(s(0,H,59,16,"ng-container",0),m(1,"async")),d&2&&l("ngIf",C(1,1,N.notification$))},dependencies:[P,D,y,M,b,B,T,w,L],encapsulation:2})}}return a})();export{W as DetailComponent};
@@ -0,0 +1,7 @@
1
+ import{a as I,b as P}from"./chunk-6VYFG4AQ.js";import{i as g}from"./chunk-FHWKSD5A.js";import{a as S}from"./chunk-CGOB6Y3X.js";import{b as C,e as m}from"./chunk-WN5DZGA4.js";import{c as o}from"./chunk-PW42BQIY.js";import{J as h,ea as l,ja as f,oa as u,pa as d,r as c}from"./chunk-OJMQBH6T.js";var V=(()=>{class i{constructor(t,e,n){this.httpService=t,this.toastrService=e,this.notificationService=n,this.authService=d(g),this.scanChannelToastr=d(I),this.channelOptions=this.authService.getChannels()}loader(t=o.GuidEMpty){return this.httpService.post("/api/product/Load",{ID:t})}LoadInPOS(t=o.GuidEMpty){return this.httpService.post("/api/product/LoadInPOS",{ID:t})}filterChannelByTypeId(t,e){return t.filter(n=>e.findIndex(a=>n.TypeID==a)!==-1)}getProductStatistic(){return this.httpService.post("/api/product/ProductStatistic",{})}getTotalProductLive(t){let e={ID:t};return this.httpService.post("/api/product/TotalProductLive",e)}clearCacheChannel(t){let e={ID:t};return this.httpService.post("/api/Channel/ClearCacheChannel",e)}detachProduct(t){return this.httpService.post("/api/product/Detach",t)}uploadSingleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleChannel",n).pipe(l(a=>{this.showToastrSuccessUploadSingle(a,t[0])}),h(a=>(this.showToastErrorUploadSingle(a,t[0]),c(()=>new Error(a)))))}uploadMultipleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleProductAndMultipleChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a.Message)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}uploadNotInChannel(t,e){let n={Products:t,Channel:e};return this.httpService.post("/api/product/UploadProductNotInChannelToChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}scanSingle(t,e){let n={ID:t,SKU:e};return this.httpService.post("/api/product/ScanSingle",n)}scanNotInChannel(t){let e={ID:t};return this.httpService.post("/api/product/ScanNotinChannel",e)}findAllSoldInChannel(t){return this.httpService.post("/api/product/GetSoldInChannel",t)}scanAll(t,e,n,a=!1){let s={ID:t,ScanFull:e,UpdatedProduct:n,Async:a};return this.httpService.post("/api/product/ScanOptimized",s)}scanAsyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!0};return this.httpService.post(S.ScanAsyncProductV2,a).pipe(l(s=>{this.notificationService.subscribeToJobGroup(s.JobID)}))}scanSyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!1};return this.httpService.post(S.ScanSyncProductV2,a)}scanProductV2(t,e,n,a=!1){let s=this.findChannelById(t,this.channelOptions);return a?this.scanAsyncProductV2(t,e,n).pipe(l(r=>{this.scanChannelToastr.showToast({text:"Scan Job Started",detail:`JobID: ${r.JobID}`,severity:"info",data:{channelName:s.Name,channelTypeId:s.TypeID,jobId:r.JobID}})})):this.scanSyncProductV2(t,e,n).pipe(l(r=>{this.successToastrScanAllProduct(r,s,!n)}))}scanCompareToPos(t){return this.httpService.post("/api/product/CompareMarketplaceToPOS",t)}getVariantCodesProduct(t){return(t.Variants||[]).map(a=>a.Code)}downloadMultipleProduct(t){let e=t.map(n=>({ChannelItemID:n.ChannelItemID,ChannelID:n.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",e).pipe(l(n=>{this.toastrService.success(`${n.Count} products downloaded to POS`,"Download Complete")}))}downloadProduct(t){let e={ChannelItemID:t.ChannelItemID,ChannelID:t.ChannelID};return this.httpService.post("/api/product/DownloadProductFromChannel",e).pipe(l(()=>{this.toastrService.success("Product successfully downloaded to POS","Download Complete")}))}getVariantCodesProducts(t=[]){let e=[];return t.forEach(n=>{n.Variants.forEach(a=>{e=[...e,a.Code]})}),e}filterUnselectedChannel(t,e){let n=[];t.forEach(s=>{n=[...n,...s.Channel]});let a;if(!n||n.length==0)a=e;else{let s=[];a=e.filter(r=>(s=n.filter(p=>p.ChannelID==r.ID),s.length!==t.length))}return a}findChannelById(t,e){return e.find(n=>n.ID==t)}sortChannel(t=[]){return t.sort((e,n)=>e.TypeID<n.TypeID?1:e.TypeID===n.TypeID?0:-1)}hasSelection(t=[]){return this.selectedProduct(t).length>0}selectedProduct(t=[]){return t.filter(e=>e.selected)}hasSelectionVariant(t){return this.selectedVariantProduct(t).length>0}selectedVariantProduct(t){let e=[];return t.forEach(n=>{e=[...e,...n.Variants!=null?n.Variants.filter(a=>a.selected):""]}),e}getChannelProduct(t){let e=t.Variants||[],n=[];for(let a of e)if(a.Channel!=null)for(let s of a.Channel)n.filter(r=>r.ChannelID==s.ChannelID).length==0&&n.push(s);return this.sortChannel(n)}successToastrScanAllProduct(t,e,n){let a=t.InChannel?t?.InChannel?.Product:0,s=t?.NotInPOS?.Product?t?.NotInPOS?.Product:0,r=o.IsNotEmpty(t.LastUpdate)?o.convertToReadableDate(t.LastUpdate):null;n?this.toastrService.success(`
2
+ ${s+a} product updates in ${e.Name} </br>
3
+ (${a} In Channel + ${s} Not In Pos)
4
+ ${o.IsNotEmpty(r)?"since "+r:""}
5
+ `,"Scan Complete!",{enableHtml:!0,timeOut:1e4}):this.toastrService.success(`${a} product updates in ${e.Name} </br>
6
+ (${a} In Channel + ${s} Not In Pos)
7
+ ${o.IsNotEmpty(r)?"since "+r:""}`,"Scan Complete!",{enableHtml:!0,timeOut:1e4})}checkProductHasScanButton(t,e){let n;return t.map(a=>(a.Channel=this.getChannelProduct(a),n=this.filterUnselectedChannel([a],e),a.hasScan=n.length>0,a))}checkProductHasUploadBtn(t,e){let n;return t.map(a=>(a.Channel=this.getChannelProduct(a),n=this.filterUnselectedChannel([a],e),a.hasUpload=n.length>0,a))}showToastrUploadMultiple(t=[]){let e=[],n=[],a=this.getResponseList(t);if(t.forEach(s=>{typeof s?.Response=="string"?n=[...n,a.length>1?this.setHtmlli(s.Response):this.setHtmlli(s.Response,!1)]:(s?.Response?.Success.forEach(r=>{e=[...e,a.length>1?this.setHtmlli(`Product ${r} was <b>successfully</b> uploaded to ${s.Name}`):this.setHtmlli(`Product ${r} was <b>successfully</b> uploaded to ${s.Name}`,!1)]}),s?.Response.Fail.forEach(r=>{n=[...n,a.length>1?this.setHtmlli(r):this.setHtmlli(r,!1)]}))}),n.length>0&&e.length>0){let s=[...e,...n];this.toastrService.warning(this.concatMessage(s),"Warning!",{enableHtml:!0})}else e.length>0&&n.length==0?this.toastrService.success(this.concatMessage(e),"Success",{enableHtml:!0}):this.toastrService.error(this.concatMessage(n),"Error",{enableHtml:!0})}setHtmlli(t,e=!0){return e?`<li>${t}</li>`:t}getResponseList(t){let e=[];return t.forEach(n=>{typeof n?.Response=="string"?e=[...e,n.Response]:(n?.Response?.Success.forEach(a=>{e=[...e,n.Name]}),n?.Response.Fail.forEach(a=>{e=[...e,a]}))}),e}concatMessage(t=[]){let e="";return t.forEach(n=>{e+=n}),t.length>1?`<ol>${e}</ol>`:e}showToastrSuccessUploadSingle(t,e){let n=t.filter(r=>r.Status==!1),a=t.filter(r=>r.Status==!0),s=this.generateToastrMessage(n,a,e);this.toastrService.success(s.message,"Success",{enableHtml:!0})}showToastErrorUploadSingle(t,e){let n=t?.error?.Message.filter(r=>r.Status==!1),a=t?.error?.Message.filter(r=>r.Status==!0),s=this.generateToastrMessage(n,a,e);s.status=="WARNING"?this.toastrService.warning(s.message,"Warning!",{enableHtml:!0}):this.toastrService.error(s.message,`Error - ${t.status}`,{enableHtml:!0})}generateToastrMessage(t,e,n){let a="",s,r=[...t,...e];if(t.length==0&&e.length>0)s="SUCCESS",a=this.createSuccessResponse(e,n);else if(t.length>0&&e.length==0)s="ERROR",a=this.createErrResponse(t,n);else{s="WARNING";let p=this.createSuccessResponse(e,n),v=this.createErrResponse(t,n);a=`${p} ${v}`}return r.length>1&&(a=`<ol>${a}</ol>`),{status:s,message:a}}createErrResponse(t,e){let n="";return t.length>1?t.forEach((a,s)=>{n+=`<li>${a.Response}</li>`}):t.length==1&&(n+=`${t[0].Response}`),n}createSuccessResponse(t,e){let n="";return t.length>1?t.forEach((a,s)=>{n+=`<li>Product ${e.Name} was <b>successfully</b> uploaded to ${a.Name}</li>`}):t.length==1&&(n+=`Product ${e.Name} was <b>successfully</b> uploaded to ${t[0].Name}`),n}static{this.\u0275fac=function(e){return new(e||i)(u(m),u(C),u(P))}}static{this.\u0275prov=f({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{V as a};