marketplacepos 5.50.1 → 5.50.3

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 (194) hide show
  1. package/Marketplace/3rdpartylicenses.txt +26 -26
  2. package/Marketplace/{chunk-5C24BA5F.js → chunk-2EGTHH3W.js} +1 -1
  3. package/Marketplace/{chunk-3PIHLKK3.js → chunk-2FB6QJKT.js} +1 -1
  4. package/Marketplace/{chunk-Z6LN3X5Q.js → chunk-2KQKQSUI.js} +1 -1
  5. package/Marketplace/{chunk-O3QPBAV5.js → chunk-2OKZEOBU.js} +1 -1
  6. package/Marketplace/{chunk-2AXBEVQ7.js → chunk-2WQLSGW3.js} +1 -1
  7. package/Marketplace/{chunk-VH7JZJ2B.js → chunk-2Y3L7QOV.js} +1 -1
  8. package/Marketplace/{chunk-RZ5N5JLA.js → chunk-2ZKHC4YC.js} +1 -1
  9. package/Marketplace/{chunk-SIPZP62B.js → chunk-32IYUV7P.js} +1 -1
  10. package/Marketplace/{chunk-TKZ74HJD.js → chunk-36645CIP.js} +1 -1
  11. package/Marketplace/{chunk-FOKLBUX6.js → chunk-3NCMRK7E.js} +1 -1
  12. package/Marketplace/{chunk-RWPLFNHT.js → chunk-3PUUKJCQ.js} +1 -1
  13. package/Marketplace/{chunk-QMHG3QTI.js → chunk-3T5VLB63.js} +1 -1
  14. package/Marketplace/{chunk-KR6UNAIL.js → chunk-3WGAMHZW.js} +1 -1
  15. package/Marketplace/{chunk-YUPBZXLS.js → chunk-3YUIOGNI.js} +1 -1
  16. package/Marketplace/{chunk-G4T4VM5E.js → chunk-4GV67OQR.js} +1 -1
  17. package/Marketplace/chunk-53ZGHR7J.js +1 -0
  18. package/Marketplace/{chunk-YQZHIZHO.js → chunk-56NTLHVB.js} +1 -1
  19. package/Marketplace/chunk-5NWJOQN5.js +1 -0
  20. package/Marketplace/{chunk-YAWT3CLI.js → chunk-6F37VT6M.js} +1 -1
  21. package/Marketplace/{chunk-BMOMTOEW.js → chunk-6H7M43WO.js} +1 -1
  22. package/Marketplace/{chunk-44KIXUU2.js → chunk-6MUVEZMQ.js} +1 -1
  23. package/Marketplace/{chunk-IM7YH54S.js → chunk-6O446YFR.js} +1 -1
  24. package/Marketplace/{chunk-ZDBFIPDM.js → chunk-6Q4BDCI5.js} +1 -1
  25. package/Marketplace/{chunk-WAXAIL2I.js → chunk-6UM4NHOR.js} +1 -1
  26. package/Marketplace/{chunk-J6HA4ZHH.js → chunk-75IM3UUA.js} +1 -1
  27. package/Marketplace/{chunk-VP3XO25X.js → chunk-76AVMRJU.js} +1 -1
  28. package/Marketplace/{chunk-YMAKW4QT.js → chunk-7E4ZSLPD.js} +1 -1
  29. package/Marketplace/{chunk-TDMNVEUU.js → chunk-7T5DBPDP.js} +1 -1
  30. package/Marketplace/{chunk-IV5IPY6H.js → chunk-7VJ22OLT.js} +1 -1
  31. package/Marketplace/{chunk-Y3O22N4P.js → chunk-A6SP65CH.js} +1 -1
  32. package/Marketplace/{chunk-RN5CI3LE.js → chunk-BCK2GY66.js} +1 -1
  33. package/Marketplace/{chunk-DPB2343S.js → chunk-BTCNW6N3.js} +1 -1
  34. package/Marketplace/{chunk-ALLZQ6Y3.js → chunk-BTJN72MC.js} +1 -1
  35. package/Marketplace/{chunk-C2LAQOUW.js → chunk-BZWZ64N5.js} +1 -1
  36. package/Marketplace/{chunk-BC6LHZWP.js → chunk-C37O5TBF.js} +1 -1
  37. package/Marketplace/{chunk-DDFP4CNP.js → chunk-C4MTEDSW.js} +1 -1
  38. package/Marketplace/{chunk-6NS3D6KQ.js → chunk-C67KF7MG.js} +1 -1
  39. package/Marketplace/{chunk-TDP3PQDA.js → chunk-CBULW22C.js} +1 -1
  40. package/Marketplace/{chunk-MIGPO7BO.js → chunk-CFJAZJYY.js} +1 -1
  41. package/Marketplace/{chunk-6GNIJWEX.js → chunk-CGDIULPW.js} +1 -1
  42. package/Marketplace/chunk-CGSMHTKB.js +2 -0
  43. package/Marketplace/{chunk-A53NYS6S.js → chunk-CIVDQKQZ.js} +1 -1
  44. package/Marketplace/{chunk-B5ZK5TGW.js → chunk-CIWFLDCI.js} +1 -1
  45. package/Marketplace/{chunk-BAW6PICI.js → chunk-CKFHJ3IS.js} +1 -1
  46. package/Marketplace/{chunk-H6YNHOUQ.js → chunk-CQBHWYUO.js} +1 -1
  47. package/Marketplace/{chunk-V6QH3IVL.js → chunk-CUSAKJLC.js} +1 -1
  48. package/Marketplace/{chunk-N3E43QWK.js → chunk-CVHFVFZQ.js} +1 -1
  49. package/Marketplace/{chunk-MM7SAZOU.js → chunk-D6JH2KV4.js} +1 -1
  50. package/Marketplace/{chunk-EH3PIGLJ.js → chunk-DE3FRI5N.js} +1 -1
  51. package/Marketplace/{chunk-ESBL3IFN.js → chunk-DIDUSCV7.js} +1 -1
  52. package/Marketplace/{chunk-4KGXKQPG.js → chunk-DMENVSHH.js} +1 -1
  53. package/Marketplace/{chunk-52YCKO3Z.js → chunk-E7LOFZQV.js} +1 -1
  54. package/Marketplace/{chunk-UB62TZOI.js → chunk-ET33HPF3.js} +1 -1
  55. package/Marketplace/{chunk-NTU64XT4.js → chunk-EV6TBBSW.js} +1 -1
  56. package/Marketplace/{chunk-UMMQ62IZ.js → chunk-FBXKHJ2G.js} +1 -1
  57. package/Marketplace/{chunk-RHMSGY7X.js → chunk-FDVRSAF3.js} +1 -1
  58. package/Marketplace/{chunk-QQF5ZMGS.js → chunk-FH2KAM6J.js} +1 -1
  59. package/Marketplace/{chunk-MAQQQB3T.js → chunk-FMZLGD5H.js} +1 -1
  60. package/Marketplace/{chunk-GJC736LV.js → chunk-FO75JP2L.js} +1 -1
  61. package/Marketplace/{chunk-AJSJJV2I.js → chunk-FPJTI4LM.js} +1 -1
  62. package/Marketplace/{chunk-RFWRWMRC.js → chunk-FS3VTRY2.js} +1 -1
  63. package/Marketplace/{chunk-Z2XRGVGT.js → chunk-FSOZOROI.js} +1 -1
  64. package/Marketplace/{chunk-UMLV2ZUF.js → chunk-GLBJ4Y4T.js} +1 -1
  65. package/Marketplace/{chunk-YX65R6YJ.js → chunk-GLQBRY2Y.js} +1 -1
  66. package/Marketplace/{chunk-2NRHX6CZ.js → chunk-GNXSEYJF.js} +1 -1
  67. package/Marketplace/{chunk-FLNIURLD.js → chunk-GQT5IVF5.js} +1 -1
  68. package/Marketplace/{chunk-HGVFXR6T.js → chunk-HAZ7U3MT.js} +1 -1
  69. package/Marketplace/{chunk-AQVMOA6Z.js → chunk-HBWX22FY.js} +1 -1
  70. package/Marketplace/chunk-HHDJUCIT.js +1 -0
  71. package/Marketplace/{chunk-S5XYWXXP.js → chunk-HMDHDMIC.js} +1 -1
  72. package/Marketplace/{chunk-JYSOUJ42.js → chunk-HWMXSD34.js} +1 -1
  73. package/Marketplace/{chunk-OCXIDX74.js → chunk-I6YNUCDO.js} +1 -1
  74. package/Marketplace/{chunk-5WT456T7.js → chunk-IA7NJXJD.js} +1 -1
  75. package/Marketplace/{chunk-7QP3VZ6H.js → chunk-INSRQ7YT.js} +1 -1
  76. package/Marketplace/{chunk-TOK5EWN4.js → chunk-IQGRGC3E.js} +1 -1
  77. package/Marketplace/{chunk-TYQYNICX.js → chunk-IQX2CRL5.js} +1 -1
  78. package/Marketplace/{chunk-QMIL5QUX.js → chunk-ITY2KKS5.js} +1 -1
  79. package/Marketplace/{chunk-PBAFAOKJ.js → chunk-IXURR6VG.js} +1 -1
  80. package/Marketplace/{chunk-O4D64GHO.js → chunk-IZZY74PN.js} +1 -1
  81. package/Marketplace/{chunk-QJCYEP2A.js → chunk-J3XO6ZVT.js} +1 -1
  82. package/Marketplace/{chunk-VZ7Q4WN7.js → chunk-JEJHGIUU.js} +1 -1
  83. package/Marketplace/{chunk-ENYJ4KAM.js → chunk-JG7M73IA.js} +1 -1
  84. package/Marketplace/{chunk-KSRL7Y2J.js → chunk-JHSG3KRS.js} +1 -1
  85. package/Marketplace/{chunk-LUJ3SHSP.js → chunk-JKRELT7N.js} +1 -1
  86. package/Marketplace/{chunk-BXNDE6NQ.js → chunk-JLDXWNDU.js} +1 -1
  87. package/Marketplace/{chunk-RBZU7OVM.js → chunk-JMRRXRKO.js} +1 -1
  88. package/Marketplace/{chunk-OSGPJXJZ.js → chunk-JPWGFXZT.js} +1 -1
  89. package/Marketplace/{chunk-SPLGZRGH.js → chunk-JRCXHF2X.js} +1 -1
  90. package/Marketplace/{chunk-RXC5D64C.js → chunk-JTKEMQZT.js} +1 -1
  91. package/Marketplace/{chunk-NVPT5BF2.js → chunk-JU4ZP3HI.js} +1 -1
  92. package/Marketplace/{chunk-6C4UBIZK.js → chunk-K4Q33QIR.js} +1 -1
  93. package/Marketplace/{chunk-OVZRFDFO.js → chunk-KDJVMFOK.js} +1 -1
  94. package/Marketplace/{chunk-QOSWDELZ.js → chunk-KKQ32Z72.js} +1 -1
  95. package/Marketplace/{chunk-KNBXCPTA.js → chunk-KMNWLBEP.js} +1 -1
  96. package/Marketplace/{chunk-KTTKHI2N.js → chunk-KNE2UYQ2.js} +1 -1
  97. package/Marketplace/{chunk-SABMHH6B.js → chunk-KOQLZV3N.js} +1 -1
  98. package/Marketplace/{chunk-PN3KM4M4.js → chunk-KOUB5HRK.js} +1 -1
  99. package/Marketplace/{chunk-MTVUPPAN.js → chunk-L4EPB2CQ.js} +1 -1
  100. package/Marketplace/{chunk-SMZOSLIK.js → chunk-L6CRWJ2O.js} +1 -1
  101. package/Marketplace/{chunk-G3B6ETBU.js → chunk-LZHM5AMX.js} +1 -1
  102. package/Marketplace/{chunk-4S4BOPUV.js → chunk-M27MYADT.js} +1 -1
  103. package/Marketplace/{chunk-GVJLKDIO.js → chunk-MAT6VW43.js} +1 -1
  104. package/Marketplace/{chunk-P3XVM6DH.js → chunk-MHIYVGFS.js} +1 -1
  105. package/Marketplace/{chunk-M3DUXHYE.js → chunk-MORMHJFP.js} +1 -1
  106. package/Marketplace/{chunk-JM3NLPH4.js → chunk-MS5NHG4Z.js} +1 -1
  107. package/Marketplace/{chunk-GG3X4R7G.js → chunk-MSSRROS6.js} +1 -1
  108. package/Marketplace/{chunk-KUKTPGJ2.js → chunk-MYJZFEAZ.js} +1 -1
  109. package/Marketplace/{chunk-LQ3VUWFK.js → chunk-MZWP4SZF.js} +2 -2
  110. package/Marketplace/{chunk-TMBZ4K5S.js → chunk-N4MYHIMN.js} +1 -1
  111. package/Marketplace/{chunk-5UFP37GQ.js → chunk-NB2H6KA7.js} +1 -1
  112. package/Marketplace/{chunk-GDHNMHJZ.js → chunk-NGQFZI6A.js} +1 -1
  113. package/Marketplace/{chunk-YD6BNJ2B.js → chunk-NJNRUDU6.js} +1 -1
  114. package/Marketplace/{chunk-7R2D2JZ6.js → chunk-O3BS4AC6.js} +1 -1
  115. package/Marketplace/{chunk-O4U34AC7.js → chunk-OH5T7D7O.js} +1 -1
  116. package/Marketplace/{chunk-W33M7S2S.js → chunk-OHAT7WXU.js} +1 -1
  117. package/Marketplace/{chunk-IDGK6BMG.js → chunk-PCOAEOIL.js} +1 -1
  118. package/Marketplace/{chunk-M7TUSCXB.js → chunk-PFP5WMC3.js} +1 -1
  119. package/Marketplace/chunk-PHVEBMTE.js +1 -0
  120. package/Marketplace/{chunk-JV4F6ZYF.js → chunk-PKYMYIGB.js} +1 -1
  121. package/Marketplace/{chunk-YABJCAAL.js → chunk-PUSOOHGT.js} +1 -1
  122. package/Marketplace/{chunk-XLQGQESJ.js → chunk-PV4OJSZI.js} +1 -1
  123. package/Marketplace/{chunk-FFJXYPVA.js → chunk-Q44OVAQU.js} +1 -1
  124. package/Marketplace/{chunk-WIRBYT7F.js → chunk-QETZ5VDX.js} +1 -1
  125. package/Marketplace/{chunk-BYL4N2KB.js → chunk-QJASIA27.js} +1 -1
  126. package/Marketplace/{chunk-WIBWF333.js → chunk-QJH7APJQ.js} +1 -1
  127. package/Marketplace/{chunk-IIJEILDV.js → chunk-QJU2YGUH.js} +1 -1
  128. package/Marketplace/{chunk-GBF6A3MS.js → chunk-QWEMPIP7.js} +1 -1
  129. package/Marketplace/{chunk-FMXX7QB5.js → chunk-QZMWXAUJ.js} +1 -1
  130. package/Marketplace/{chunk-2ST3DMR6.js → chunk-R2XKB6UH.js} +1 -1
  131. package/Marketplace/{chunk-PWOKOWVV.js → chunk-RIIIECQH.js} +1 -1
  132. package/Marketplace/{chunk-24KZDZKS.js → chunk-RO7WOCSA.js} +1 -1
  133. package/Marketplace/{chunk-FEQXCPQI.js → chunk-RPHZK33A.js} +1 -1
  134. package/Marketplace/{chunk-MV2PLTWF.js → chunk-RRRPWDKB.js} +1 -1
  135. package/Marketplace/{chunk-OGF4VFSK.js → chunk-RZXE2MFY.js} +1 -1
  136. package/Marketplace/{chunk-WVA5LYVE.js → chunk-S22I47XG.js} +1 -1
  137. package/Marketplace/chunk-S2ZFBPPJ.js +1 -0
  138. package/Marketplace/{chunk-2K5AP6IZ.js → chunk-S3H2JVI7.js} +1 -1
  139. package/Marketplace/{chunk-BUMWMFHU.js → chunk-SNRWOTPO.js} +1 -1
  140. package/Marketplace/{chunk-NIJCYMZM.js → chunk-STOW2RQN.js} +1 -1
  141. package/Marketplace/{chunk-HORS2MKK.js → chunk-T5NCGRUA.js} +1 -1
  142. package/Marketplace/{chunk-JYP3Z3TV.js → chunk-TOPYLZOF.js} +1 -1
  143. package/Marketplace/{chunk-3HME327V.js → chunk-TQROQOXU.js} +1 -1
  144. package/Marketplace/{chunk-TZTW72NT.js → chunk-TUY6YGYA.js} +1 -1
  145. package/Marketplace/{chunk-AHMFSCTX.js → chunk-TVEI5B2O.js} +1 -1
  146. package/Marketplace/{chunk-R3WIWDSP.js → chunk-TYSM3R5E.js} +1 -1
  147. package/Marketplace/{chunk-NQLMPUSB.js → chunk-UB3ZV5NW.js} +1 -1
  148. package/Marketplace/{chunk-A2RTZANN.js → chunk-UDNUDL5Z.js} +1 -1
  149. package/Marketplace/{chunk-YNL43MLU.js → chunk-UEXWQT5J.js} +1 -1
  150. package/Marketplace/{chunk-UE5E7JXK.js → chunk-UMIGDHOS.js} +1 -1
  151. package/Marketplace/{chunk-ZRTUQNSQ.js → chunk-UMJVPGHV.js} +1 -1
  152. package/Marketplace/{chunk-HNDBAXI5.js → chunk-UWKDFRVX.js} +1 -1
  153. package/Marketplace/{chunk-4G46574H.js → chunk-VA7NXG7X.js} +1 -1
  154. package/Marketplace/{chunk-5QDH4ZNS.js → chunk-VBQKMNR3.js} +1 -1
  155. package/Marketplace/{chunk-6F62N7RZ.js → chunk-VG66LDXQ.js} +1 -1
  156. package/Marketplace/{chunk-MT3CWRVG.js → chunk-VVNLTDLG.js} +1 -1
  157. package/Marketplace/{chunk-ZGIYCORM.js → chunk-VYI7JYH5.js} +1 -1
  158. package/Marketplace/{chunk-X52ZT4MU.js → chunk-WAZWPRUG.js} +1 -1
  159. package/Marketplace/chunk-WD3ADLM3.js +1 -0
  160. package/Marketplace/chunk-WIRXMAIF.js +1 -0
  161. package/Marketplace/{chunk-IVKFEOCB.js → chunk-WTHYLNPX.js} +1 -1
  162. package/Marketplace/{chunk-YYV4FSYQ.js → chunk-X2CTSYKS.js} +1 -1
  163. package/Marketplace/{chunk-LYN2PNQK.js → chunk-X2WAAZ7G.js} +1 -1
  164. package/Marketplace/{chunk-2UNT2DUM.js → chunk-XCGXT3P7.js} +1 -1
  165. package/Marketplace/{chunk-IF7EJSQG.js → chunk-XHWASSX2.js} +1 -1
  166. package/Marketplace/{chunk-67LUKQJC.js → chunk-XMU7MXAM.js} +1 -1
  167. package/Marketplace/{chunk-7X4B2T6C.js → chunk-XTNXL2IY.js} +1 -1
  168. package/Marketplace/{chunk-7HRL6MHY.js → chunk-XW5PNJJ3.js} +1 -1
  169. package/Marketplace/{chunk-TYNQDFOT.js → chunk-XYRET5HT.js} +1 -1
  170. package/Marketplace/{chunk-U5DJYZUI.js → chunk-XYZI7ZXN.js} +1 -1
  171. package/Marketplace/{chunk-E4RY2MK5.js → chunk-YCKLOFMA.js} +1 -1
  172. package/Marketplace/{chunk-HJZ3XPSH.js → chunk-YDNXBOLU.js} +1 -1
  173. package/Marketplace/{chunk-FNOENLVR.js → chunk-YEU5TPRD.js} +1 -1
  174. package/Marketplace/{chunk-34ZZ4GCS.js → chunk-YLQBIIZH.js} +1 -1
  175. package/Marketplace/{chunk-4YKPN3RV.js → chunk-YQPAS2RI.js} +1 -1
  176. package/Marketplace/{chunk-LKJCOEGO.js → chunk-YZQDWPFY.js} +1 -1
  177. package/Marketplace/chunk-Z3PLQ27X.js +1 -0
  178. package/Marketplace/{chunk-OIWQSDTS.js → chunk-Z3YSNML6.js} +1 -1
  179. package/Marketplace/{chunk-LQPY6AYJ.js → chunk-Z4RYN6X5.js} +1 -1
  180. package/Marketplace/chunk-ZLJBRQ5V.js +1 -0
  181. package/Marketplace/{chunk-VVAEM355.js → chunk-ZM7ND6FE.js} +1 -1
  182. package/Marketplace/{chunk-5WQ3LCWP.js → chunk-ZZYFVEJO.js} +1 -1
  183. package/Marketplace/index.html +2 -2
  184. package/Marketplace/{main-RFMKGIMO.js → main-7TBLEURN.js} +1 -1
  185. package/package.json +1 -1
  186. package/Marketplace/chunk-3NAMEVOB.js +0 -1
  187. package/Marketplace/chunk-EGLM6YK5.js +0 -1
  188. package/Marketplace/chunk-FTIUJUXI.js +0 -1
  189. package/Marketplace/chunk-JNRCB7N3.js +0 -2
  190. package/Marketplace/chunk-S5D64XYA.js +0 -1
  191. package/Marketplace/chunk-SN5AD4QE.js +0 -1
  192. package/Marketplace/chunk-VV4G5VL5.js +0 -1
  193. package/Marketplace/chunk-ZWUYPYHD.js +0 -1
  194. package/Marketplace/chunk-ZXP3XYSZ.js +0 -1
@@ -1,3 +1,3 @@
1
- import{a as Ze,b as Ye}from"./chunk-KSRL7Y2J.js";import{a as K}from"./chunk-XUDE7VBC.js";import{a as We}from"./chunk-X52ZT4MU.js";import{d as Ke}from"./chunk-BMOMTOEW.js";import{a as Ue}from"./chunk-HO2TMGLM.js";import{C as Qe,D as Ve,H as Be,I as le,O as je,Q as qe,R as Ge,d as Oe,f as Re,j as Le,l as Fe,m as Ae,v as Pe,w as Ne,y as He}from"./chunk-7R2D2JZ6.js";import{f as $e}from"./chunk-WAXAIL2I.js";import{v as se}from"./chunk-JNRCB7N3.js";import{$ as S,Ac as A,Ad as U,Bc as g,Cb as Me,Cc as P,Dc as m,Ec as h,Fd as z,Gd as ze,Hb as w,Ia as f,Ib as Q,Ic as re,Jb as y,Jc as Ee,Kc as D,Lb as L,Ma as be,Mc as q,Na as ye,Nb as V,Nc as x,Oa as xe,Ob as De,Oc as C,Pa as te,Ra as O,Sa as R,Yc as ke,_b as T,_c as ae,a as he,aa as _e,ac as _,ad as oe,ca as b,cc as v,cd as we,ec as B,f as N,fc as $,gc as j,hc as u,ic as d,jc as c,kc as ie,ld as Te,ma as ve,na as H,ob as s,pa as ge,pd as G,q as ue,qc as M,ra as l,rc as Ie,tb as E,ub as Ce,v as fe,wb as k,wc as ne,ya as X,yc as p,za as ee,zb as Se,zc as F}from"./chunk-OHGMB7HJ.js";var nt=["*"];function rt(t,a){t&1&&A(0)}var pe=(()=>{class t{_elementRef=l(O);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),de=(()=>{class t{template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var I={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},at=new ge("STEPPER_GLOBAL_OPTIONS"),W=(()=>{class t{_stepperOptions;_stepper=l(Z);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=f(!1);interactedStream=new E;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=f(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=f(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=f(null);index=f(-1);isSelected=G(()=>this._stepper.selectedIndex===this.index());indicatorType=G(()=>{let e=this.isSelected(),i=this.completed,n=this._state()??I.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?I.ERROR:this._displayDefaultIndicatorType?!i||e?I.NUMBER:r?I.EDIT:I.DONE:i&&!e?I.DONE:i&&e?n:r&&e?I.EDIT:n});isNavigable=G(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=f(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=l(at,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["cdk-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,de,5),g(r,$e,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(i,n){if(i&1&&P(k,7),i&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",z],optional:[2,"optional","optional",z],completed:[2,"completed","completed",z],hasError:[2,"hasError","hasError",z]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[xe],ngContentSelectors:nt,decls:1,vars:0,template:function(i,n){i&1&&(F(),De(0,rt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),Z=(()=>{class t{_dir=l(Qe,{optional:!0});_changeDetectorRef=l(U);_elementRef=l(O);_destroyed=new N;_keyManager;_steps;steps=new R;_stepHeader;_sortedHeaders=new R;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.set(e)}_selectedIndex=f(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 E;selectedIndexChange=new E;_groupId=l(Pe).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),b(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,n)=>i.index.set(n)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),b(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,n)=>i._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new He(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ue()).pipe(S(this._layoutDirection()),b(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._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 i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),n=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:n,selectedStep:i[e],previouslySelectedStep:i[n]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=Ne(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!i&&(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(i=>{let n=i.stepControl;return(n?n.invalid||n.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Oe();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,W,5),g(r,pe,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",z],selectedIndex:[2,"selectedIndex","selectedIndex",ze],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({imports:[Ve]})}return t})();var ot=(t,a,e)=>({index:t,active:a,optional:e});function st(t,a){if(t&1&&M(0,2),t&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",we(2,ot,e.index,e.active,e.optional))}}function lt(t,a){if(t&1&&(d(0,"span",7),x(1),c()),t&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function pt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.completedLabel)}}function dt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ct(t,a){if(t&1&&(_(0,pt,2,1,"span",8)(1,dt,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),t&2){let e=p(2);v(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function mt(t,a){if(t&1&&_(0,lt,2,1,"span",7)(1,ct,4,2),t&2){let e,i=p();v((e=i.state)==="number"?0:1)}}function ht(t,a){t&1&&(d(0,"div",4),M(1,9),c()),t&2&&(s(),u("ngTemplateOutlet",a.template))}function ut(t,a){if(t&1&&(d(0,"div",4),x(1),c()),t&2){let e=p();s(),C(e.label)}}function ft(t,a){if(t&1&&(d(0,"div",5),x(1),c()),t&2){let e=p();s(),C(e._intl.optionalLabel)}}function _t(t,a){if(t&1&&(d(0,"div",6),x(1),c()),t&2){let e=p();s(),C(e.errorMessage)}}var Xe=["*"];function vt(t,a){}function gt(t,a){if(t&1&&(A(0),V(1,vt,0,0,"ng-template",0)),t&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var bt=["animatedContainer"],et=t=>({step:t});function yt(t,a){t&1&&A(0)}function xt(t,a){t&1&&ie(0,"div",7)}function Ct(t,a){if(t&1&&(M(0,6),_(1,xt,1,0,"div",7)),t&2){let e=a.$implicit,i=a.$index,n=a.$count;p(2);let r=re(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",oe(3,et,e)),s(),v(i!==n-1?1:-1)}}function St(t,a){if(t&1&&(d(0,"div",8,1),M(2,9),c()),t&2){let e=a.$implicit,i=a.$index,n=p(2);q("mat-horizontal-stepper-content-"+n._getAnimationDirection(i)),u("id",n._getStepContentId(i)),T("aria-labelledby",n._getStepLabelId(i))("inert",n.selectedIndex===i?null:""),s(2),u("ngTemplateOutlet",e.content)}}function Mt(t,a){if(t&1&&(d(0,"div",2)(1,"div",3),$(2,Ct,2,5,null,null,B),c(),d(4,"div",4),$(5,St,3,6,"div",5,B),c()()),t&2){let e=p();s(2),j(e.steps),s(3),j(e.steps)}}function Dt(t,a){if(t&1&&(d(0,"div",10),M(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),M(6,9),c()()()()),t&2){let e=a.$implicit,i=a.$index,n=a.$index,r=a.$count,o=p(2),J=re(4);s(),u("ngTemplateOutlet",J)("ngTemplateOutletContext",oe(10,et,e)),s(),D("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===i),T("inert",o.selectedIndex===i?null:""),s(2),u("id",o._getStepContentId(i)),T("aria-labelledby",o._getStepLabelId(i)),s(2),u("ngTemplateOutlet",e.content)}}function It(t,a){if(t&1&&$(0,Dt,7,12,"div",10,B),t&2){let e=p();j(e.steps)}}function Et(t,a){if(t&1){let e=Ie();d(0,"mat-step-header",14),ne("click",function(){let n=X(e).step;return ee(n.select())})("keydown",function(n){X(e);let r=p();return ee(r._onKeydown(n))}),c()}if(t&2){let e=a.step,i=p();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),T("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var ce=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[L]})}return t})(),Y=(()=>{class t{changes=new N;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kt(t){return t||new Y}var wt={provide:Y,deps:[[new be,new ye,Y]],useFactory:kt},me=(()=>{class t extends pe{_intl=l(Y);_focusMonitor=l(Le);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Fe);e.load(Ue),e.load(Ae);let i=l(U);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof ce?null:this.label}_templateLabel(){return this.label instanceof ce?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,n){i&2&&(q("mat-"+(n.color||"primary")),D("mat-step-header-empty-label",n._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[L],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(i,n){if(i&1&&(ie(0,"div",0),d(1,"div")(2,"div",1),_(3,st,1,6,"ng-container",2)(4,mt,2,1),c()(),d(5,"div",3),_(6,ht,2,1,"div",4)(7,ut,2,1,"div",4),_(8,ft,2,1,"div",5),_(9,_t,2,1,"div",6),c()),i&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),q(ke("mat-step-icon-state-",n.state," mat-step-icon")),D("mat-step-icon-selected",n.selected),s(2),v(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),D("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),v((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),v(n._hasOptionalLabel()?8:-1),s(),v(n._hasErrorLabel()?9:-1)}},dependencies:[Ke,se,Ze],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-on-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-on-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-header-empty-label .mat-step-label{min-width:0}.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, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.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))}
1
+ import{a as Ze,b as Ye}from"./chunk-JHSG3KRS.js";import{a as K}from"./chunk-XUDE7VBC.js";import{a as We}from"./chunk-WAZWPRUG.js";import{d as Ke}from"./chunk-6H7M43WO.js";import{a as Ue}from"./chunk-HO2TMGLM.js";import{C as Qe,D as Ve,H as Be,I as le,O as je,Q as qe,R as Ge,d as Oe,f as Re,j as Le,l as Fe,m as Ae,v as Pe,w as Ne,y as He}from"./chunk-O3BS4AC6.js";import{f as $e}from"./chunk-6UM4NHOR.js";import{v as se}from"./chunk-CGSMHTKB.js";import{$ as S,Ac as A,Ad as U,Bc as g,Cb as Me,Cc as P,Dc as m,Ec as h,Fd as z,Gd as ze,Hb as w,Ia as f,Ib as Q,Ic as re,Jb as y,Jc as Ee,Kc as D,Lb as L,Ma as be,Mc as q,Na as ye,Nb as V,Nc as x,Oa as xe,Ob as De,Oc as C,Pa as te,Ra as O,Sa as R,Yc as ke,_b as T,_c as ae,a as he,aa as _e,ac as _,ad as oe,ca as b,cc as v,cd as we,ec as B,f as N,fc as $,gc as j,hc as u,ic as d,jc as c,kc as ie,ld as Te,ma as ve,na as H,ob as s,pa as ge,pd as G,q as ue,qc as M,ra as l,rc as Ie,tb as E,ub as Ce,v as fe,wb as k,wc as ne,ya as X,yc as p,za as ee,zb as Se,zc as F}from"./chunk-OHGMB7HJ.js";var nt=["*"];function rt(t,a){t&1&&A(0)}var pe=(()=>{class t{_elementRef=l(O);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),de=(()=>{class t{template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var I={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},at=new ge("STEPPER_GLOBAL_OPTIONS"),W=(()=>{class t{_stepperOptions;_stepper=l(Z);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=f(!1);interactedStream=new E;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=f(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=f(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=f(null);index=f(-1);isSelected=G(()=>this._stepper.selectedIndex===this.index());indicatorType=G(()=>{let e=this.isSelected(),i=this.completed,n=this._state()??I.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?I.ERROR:this._displayDefaultIndicatorType?!i||e?I.NUMBER:r?I.EDIT:I.DONE:i&&!e?I.DONE:i&&e?n:r&&e?I.EDIT:n});isNavigable=G(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=f(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=l(at,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["cdk-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,de,5),g(r,$e,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(i,n){if(i&1&&P(k,7),i&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",z],optional:[2,"optional","optional",z],completed:[2,"completed","completed",z],hasError:[2,"hasError","hasError",z]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[xe],ngContentSelectors:nt,decls:1,vars:0,template:function(i,n){i&1&&(F(),De(0,rt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),Z=(()=>{class t{_dir=l(Qe,{optional:!0});_changeDetectorRef=l(U);_elementRef=l(O);_destroyed=new N;_keyManager;_steps;steps=new R;_stepHeader;_sortedHeaders=new R;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.set(e)}_selectedIndex=f(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 E;selectedIndexChange=new E;_groupId=l(Pe).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),b(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,n)=>i.index.set(n)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),b(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,n)=>i._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new He(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ue()).pipe(S(this._layoutDirection()),b(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._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 i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),n=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:n,selectedStep:i[e],previouslySelectedStep:i[n]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=Ne(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!i&&(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(i=>{let n=i.stepControl;return(n?n.invalid||n.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Oe();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,W,5),g(r,pe,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",z],selectedIndex:[2,"selectedIndex","selectedIndex",ze],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({imports:[Ve]})}return t})();var ot=(t,a,e)=>({index:t,active:a,optional:e});function st(t,a){if(t&1&&M(0,2),t&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",we(2,ot,e.index,e.active,e.optional))}}function lt(t,a){if(t&1&&(d(0,"span",7),x(1),c()),t&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function pt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.completedLabel)}}function dt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ct(t,a){if(t&1&&(_(0,pt,2,1,"span",8)(1,dt,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),t&2){let e=p(2);v(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function mt(t,a){if(t&1&&_(0,lt,2,1,"span",7)(1,ct,4,2),t&2){let e,i=p();v((e=i.state)==="number"?0:1)}}function ht(t,a){t&1&&(d(0,"div",4),M(1,9),c()),t&2&&(s(),u("ngTemplateOutlet",a.template))}function ut(t,a){if(t&1&&(d(0,"div",4),x(1),c()),t&2){let e=p();s(),C(e.label)}}function ft(t,a){if(t&1&&(d(0,"div",5),x(1),c()),t&2){let e=p();s(),C(e._intl.optionalLabel)}}function _t(t,a){if(t&1&&(d(0,"div",6),x(1),c()),t&2){let e=p();s(),C(e.errorMessage)}}var Xe=["*"];function vt(t,a){}function gt(t,a){if(t&1&&(A(0),V(1,vt,0,0,"ng-template",0)),t&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var bt=["animatedContainer"],et=t=>({step:t});function yt(t,a){t&1&&A(0)}function xt(t,a){t&1&&ie(0,"div",7)}function Ct(t,a){if(t&1&&(M(0,6),_(1,xt,1,0,"div",7)),t&2){let e=a.$implicit,i=a.$index,n=a.$count;p(2);let r=re(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",oe(3,et,e)),s(),v(i!==n-1?1:-1)}}function St(t,a){if(t&1&&(d(0,"div",8,1),M(2,9),c()),t&2){let e=a.$implicit,i=a.$index,n=p(2);q("mat-horizontal-stepper-content-"+n._getAnimationDirection(i)),u("id",n._getStepContentId(i)),T("aria-labelledby",n._getStepLabelId(i))("inert",n.selectedIndex===i?null:""),s(2),u("ngTemplateOutlet",e.content)}}function Mt(t,a){if(t&1&&(d(0,"div",2)(1,"div",3),$(2,Ct,2,5,null,null,B),c(),d(4,"div",4),$(5,St,3,6,"div",5,B),c()()),t&2){let e=p();s(2),j(e.steps),s(3),j(e.steps)}}function Dt(t,a){if(t&1&&(d(0,"div",10),M(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),M(6,9),c()()()()),t&2){let e=a.$implicit,i=a.$index,n=a.$index,r=a.$count,o=p(2),J=re(4);s(),u("ngTemplateOutlet",J)("ngTemplateOutletContext",oe(10,et,e)),s(),D("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===i),T("inert",o.selectedIndex===i?null:""),s(2),u("id",o._getStepContentId(i)),T("aria-labelledby",o._getStepLabelId(i)),s(2),u("ngTemplateOutlet",e.content)}}function It(t,a){if(t&1&&$(0,Dt,7,12,"div",10,B),t&2){let e=p();j(e.steps)}}function Et(t,a){if(t&1){let e=Ie();d(0,"mat-step-header",14),ne("click",function(){let n=X(e).step;return ee(n.select())})("keydown",function(n){X(e);let r=p();return ee(r._onKeydown(n))}),c()}if(t&2){let e=a.step,i=p();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),T("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var ce=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[L]})}return t})(),Y=(()=>{class t{changes=new N;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kt(t){return t||new Y}var wt={provide:Y,deps:[[new be,new ye,Y]],useFactory:kt},me=(()=>{class t extends pe{_intl=l(Y);_focusMonitor=l(Le);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Fe);e.load(Ue),e.load(Ae);let i=l(U);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof ce?null:this.label}_templateLabel(){return this.label instanceof ce?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,n){i&2&&(q("mat-"+(n.color||"primary")),D("mat-step-header-empty-label",n._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[L],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(i,n){if(i&1&&(ie(0,"div",0),d(1,"div")(2,"div",1),_(3,st,1,6,"ng-container",2)(4,mt,2,1),c()(),d(5,"div",3),_(6,ht,2,1,"div",4)(7,ut,2,1,"div",4),_(8,ft,2,1,"div",5),_(9,_t,2,1,"div",6),c()),i&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),q(ke("mat-step-icon-state-",n.state," mat-step-icon")),D("mat-step-icon-selected",n.selected),s(2),v(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),D("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),v((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),v(n._hasOptionalLabel()?8:-1),s(),v(n._hasErrorLabel()?9:-1)}},dependencies:[Ke,se,Ze],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-on-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-on-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-header-empty-label .mat-step-label{min-width:0}.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, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.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
2
  `],encapsulation:2,changeDetection:0})}return t})(),Tt=(()=>{class t{templateRef=l(k);name;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),zt=(()=>{class t{_template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),Ot=(()=>{class t extends W{_errorStateMatcher=l(K,{skipSelf:!0});_viewContainerRef=l(Me);_isSelected=he.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(_e(()=>this._stepper.selectionChange.pipe(fe(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new je(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let n=this._errorStateMatcher.isErrorState(e,i),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275cmp=w({type:t,selectors:[["mat-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,ce,5),g(r,zt,5)),i&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:[ae([{provide:K,useExisting:t},{provide:W,useExisting:t}]),L],ngContentSelectors:Xe,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,n){i&1&&(F(),V(0,gt,2,1,"ng-template"))},dependencies:[qe],encapsulation:2,changeDetection:0})}return t})(),Rt=(()=>{class t extends Z{_ngZone=l(Ce);_renderer=l(Se);_animationsDisabled=Be();_cleanupTransition;_isAnimating=f(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new R;_icons;animationDone=new E;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(Re).isBrowser;constructor(){super();let i=l(O).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(b(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(b(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||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),b(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let i=e.target;if(!i)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(J=>J.nativeElement===i)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,Ot,5),g(r,Tt,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(i,n){if(i&1&&(P(me,5),P(bt,5)),i&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,n){i&2&&(T("aria-orientation",n.orientation),Ee("--mat-stepper-animation-duration",n._getAnimationDuration()),D("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:[ae([{provide:Z,useExisting:t}]),L],ngContentSelectors:Xe,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(i,n){if(i&1&&(F(),_(0,yt,1,0),_(1,Mt,7,0,"div",2)(2,It,2,0),V(3,Et,1,23,"ng-template",null,0,Te)),i&2){let r;v(n._isServer?0:-1),s(),v((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[se,me],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;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.mat-step-header-empty-label .mat-step-icon{margin:0}.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
3
  `],encapsulation:2,changeDetection:0})}return t})();var Oi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({providers:[wt,K],imports:[le,Ge,Je,Ye,We,Rt,me,le]})}return t})();export{at as a,ce as b,Tt as c,zt as d,Ot as e,Rt as f,Oi as g};
@@ -1 +1 @@
1
- import{a as N}from"./chunk-ISMIPSYN.js";import{a as Te}from"./chunk-Y3O22N4P.js";import{a as Fe,b as ve,c as be,d as L,e as W}from"./chunk-6NS3D6KQ.js";import{a as we}from"./chunk-R3WIWDSP.js";import{a as Pe,b as ye}from"./chunk-LUJ3SHSP.js";import"./chunk-IVKFEOCB.js";import{c as xe,d as Se}from"./chunk-TZTW72NT.js";import"./chunk-VP3XO25X.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import{e as he}from"./chunk-C2LAQOUW.js";import{a as fe}from"./chunk-RWPLFNHT.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as ue}from"./chunk-DLHIDOS3.js";import{a as ge}from"./chunk-AJSJJV2I.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{a as me,b as Ce}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as pe}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as ae}from"./chunk-ZSUWHVKX.js";import{h as oe}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as ne,c as ie}from"./chunk-5UFP37GQ.js";import{c as Y}from"./chunk-UPRDDI4K.js";import{A as de,b as re,c as le,h as ce,m as se,o as _e}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as ee,e as te}from"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as Q,F as X,q as J,w as Z,z as E}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as A,Hb as q,Ia as H,Nb as M,Nc as p,Oc as B,Pc as T,Rc as P,Sc as y,Tc as w,Xc as G,Z as $,_c as K,ac as h,ad as V,cc as g,dc as k,ea as z,fc as O,gc as R,hc as C,ic as a,id as v,jc as l,jd as b,kc as F,kd as j,mb as D,ob as c,ra as u,rc as S,wc as x,ya as _,yc as r,za as d}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var U=o=>[o],Ve=o=>({"text-decoration-line-through":o}),Ie=o=>({"bg-gradient-warning":o});function De(o,s){if(o&1){let e=S();a(0,"button",13),x("click",function(){_(e);let t=r(),i=r(2);return d(i.updateStock(t))}),F(1,"i",14),p(2," Update "),l()}}function Ee(o,s){if(o&1){let e=S();a(0,"div",8),h(1,De,3,0,"button",10),a(2,"button",11),x("click",function(){_(e);let t=r(2);return d(t.openExportDialog())}),F(3,"i",12),a(4,"span"),p(5,"Export"),l()()()}if(o&2){let e=r(2);c(),g(e.productService.hasSelectionVariant(s)?1:-1)}}function Me(o,s){if(o&1){let e=S();a(0,"th")(1,"input",28),x("change",function(t){_(e);let i=r(),m=r(2);return d(m.onSelectAllSKU(t.target.checked,i))}),l()()}}function Ne(o,s){if(o&1){let e=S();a(0,"input",46),w("ngModelChange",function(t){_(e);let i=r(4).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),x("ngModelChange",function(){_(e);let t=r(4).$implicit,i=r(3);return d(i.onCheckboxStateProduct(t))}),l()}if(o&2){let e=r(4).$implicit;P("ngModel",e.selected)}}function ke(o,s){if(o&1&&M(0,Ne,1,1,"ng-template",22),o&2){let e=r(6);C("ngxPermissionsOnly",V(1,U,e.rolePriceEdit))}}function Oe(o,s){if(o&1){let e=S();a(0,"img",47),x("click",function(t){_(e);let i=r(3).$implicit,m=r(3);return d(m.onZoomImage(t,i==null?null:i.ImageUrl))}),l()}if(o&2){let e=r(3).$implicit;C("src",G(e.ThumbnailUrl),D)}}function Re(o,s){o&1&&F(0,"img",42)}function Be(o,s){if(o&1&&(a(0,"small",45),p(1),l()),o&2){let e=r(3).$implicit;c(),T("(",e.Category,")")}}function Le(o,s){if(o&1&&(a(0,"td",40)(1,"div",31),h(2,ke,1,3,null,22),a(3,"div"),h(4,Oe,1,2,"img",41)(5,Re,1,0,"img",42),l()()(),a(6,"td",43)(7,"span",44),p(8),l(),h(9,Be,2,1,"small",45),l()),o&2){let e=r(2).$implicit;C("rowSpan",e.Variants.length),c(2),g((e.Variants==null?null:e.Variants.length)>1?2:-1),c(2),g(e.ThumbnailUrl?4:5),c(2),C("rowSpan",e.Variants.length),c(2),B(e.Name),c(),g(e.Category?9:-1)}}function We(o,s){if(o&1){let e=S();a(0,"input",50),w("ngModelChange",function(t){_(e);let i=r(2).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),l()}if(o&2){let e=r(2).$implicit;P("ngModel",e.selected)}}function Ue(o,s){if(o&1&&(a(0,"td",48),h(1,We,1,1,"input",49),l()),o&2){let e=r().$implicit;c(),g(e.UnitPrice>=0?1:-1)}}function Ae(o,s){o&1&&(a(0,"div",32),p(1," Not Found "),l())}function $e(o,s){if(o&1&&(a(0,"div"),p(1),v(2,"number"),l()),o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.UnitPrice)," ")}}function ze(o,s){if(o&1&&(a(0,"div",33)(1,"a",36),F(2,"i",51),l()()),o&2){let e=r().$implicit,n=r(4);c(),C("href",n.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),D)}}function He(o,s){if(o&1){let e=S();a(0,"div",52),x("click",function(){_(e);let t=r().$implicit,i=r().$implicit,m=r(2),f=r();return d(f.openTableDialog(t,i,m))}),p(1),v(2,"number"),l()}if(o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.Channel[0]==null?null:e.Channel[0].Price)," ")}}function qe(o,s){if(o&1){let e=S();a(0,"tr",29),h(1,Le,10,6),a(2,"td",20),p(3),l(),a(4,"td",23)(5,"span",30),p(6),l()(),M(7,Ue,2,1,"ng-template",22),a(8,"td",23)(9,"div",31),h(10,Ae,2,0,"div",32),h(11,$e,3,3,"div"),h(12,ze,3,1,"div",33),l()(),a(13,"td",34)(14,"div",31),h(15,He,3,3,"div",35),a(16,"div",33)(17,"a",36),F(18,"i",37),l()(),a(19,"div",33)(20,"div",38),x("click",function(){let t=_(e).$implicit,i=r(4);return d(i.refreshPrice(t))}),F(21,"i",39),l()()()()()}if(o&2){let e=s.$implicit,n=s.$index,t=r(4);c(),g(n==0?1:-1),c(2),B(e.Model),c(2),C("matTooltip",e.Discontinued?t.discontinuedVariantMsg:"")("ngClass",V(12,Ve,e.Discontinued)),c(),T(" ",e.Code," "),c(),C("ngxPermissionsOnly",V(14,U,t.rolePriceEdit)),c(3),g((e.Channel[0]==null?null:e.Channel[0].Description)!=null?10:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?11:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?12:-1),c(),C("ngClass",V(16,Ie,e.UnitPrice!=(e.Channel[0]==null?null:e.Channel[0].Price))),c(2),g(e.Channel.length>0?15:-1),c(2),C("href",e.Channel[0]==null?null:e.Channel[0].Url,D)}}function Ge(o,s){if(o&1&&O(0,qe,22,18,"tr",29,k),o&2){let e=s.$implicit;R(e.Variants)}}function Ke(o,s){if(o&1){let e=S();a(0,"div",9)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr")(5,"th",18),p(6," Product "),a(7,"div")(8,"mat-slide-toggle",19),w("ngModelChange",function(t){_(e);let i=r(2);return y(i.toggleDifferentInventory,t)||(i.toggleDifferentInventory=t),d(t)}),x("toggleChange",function(){_(e);let t=r(2);return d(t.onToggleDifferentInventory())}),a(9,"small",6),p(10,"FILTER DIFFERENT PRICE"),l()()()(),a(11,"th",20),p(12,"Variant"),l(),a(13,"th",21),p(14,"SKU"),l(),M(15,Me,2,0,"ng-template",22),a(16,"th",23),p(17,"POS"),l(),a(18,"th",23)(19,"div",24),x("click",function(){_(e);let t=r(2);return d(t.openModalFilter())}),F(20,"img",25),a(21,"span",26),p(22),v(23,"stringLimit"),l()()()()(),a(24,"tbody"),O(25,Ge,2,0,null,null,k),l()(),a(27,"infinite-paginator",27),v(28,"async"),x("onNextPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){_(e);let t=r(2);return d(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()}if(o&2){let e=r(2);c(8),P("ngModel",e.toggleDifferentInventory),c(7),C("ngxPermissionsOnly",V(16,U,e.rolePriceEdit)),c(4),C("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?e.selectedChannel==null?null:e.selectedChannel.Name:""),c(),C("src",e.selectedChannel==null?null:e.selectedChannel.Img,D),c(2),T(" ",j(23,11,e.selectedChannel==null?null:e.selectedChannel.Name,20)," "),c(3),R(s),c(2),C("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",b(28,14,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}function je(o,s){if(o&1){let e=S();a(0,"mainpanel",1),w("textChange",function(t){_(e);let i=r();return y(i.searchFilter.text,t)||(i.searchFilter.text=t),d(t)}),x("onSubmit",function(){_(e);let t=r();return d(t.onSearch())}),a(1,"filters")(2,"div",2)(3,"label",3),p(4,"Channel"),l(),a(5,"app-channel-options-v2",4),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.ChannelID,t)||(i.searchFilter.ChannelID=t),d(t)}),l()(),a(6,"div",2)(7,"filter-query-type",5),w("numberFilterComparatorChange",function(t){_(e);let i=r();return y(i.searchFilter.NumberFilterComparator,t)||(i.searchFilter.NumberFilterComparator=t),d(t)})("searchTypeChange",function(t){_(e);let i=r();return y(i.searchFilter.SearchType,t)||(i.searchFilter.SearchType=t),d(t)}),l()(),a(8,"div",2)(9,"label",6),p(10,"Page Number"),l(),a(11,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),d(t)}),l()(),a(12,"div")(13,"label",6),p(14,"Page Size"),l(),a(15,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),d(t)}),l()()(),a(16,"actions"),h(17,Ee,6,1,"div",8),v(18,"async"),l(),a(19,"content"),h(20,Ke,29,18,"div",9),v(21,"async"),l()()}if(o&2){let e,n,t=s,i=r();C("headerTitle",i.pageTitle),P("text",i.searchFilter.text),C("searchBoxPlaceHolder",i.searchPlaceholder()),c(5),P("ngModel",i.searchFilter.ChannelID),c(2),C("numberFilterComparatorOptions",t==null||t.Options==null?null:t.Options.SearchComparatorTypeOptions),P("numberFilterComparator",i.searchFilter.NumberFilterComparator),C("searchTypeOptions",t==null||t.Options==null?null:t.Options.SearchSKUOnlyOrSKUNameOptions),P("searchType",i.searchFilter.SearchType),c(4),P("ngModel",i.searchFilter.PageNumber),c(4),P("ngModel",i.searchFilter.RowCount),c(2),g((e=b(18,12,i.data$))?17:-1,e),c(3),g((n=b(21,14,i.data$))?20:-1,n)}}var Et=(()=>{let s=class s{constructor(){this.http=u(te),this.toastr=u(ee),this.dialog=u(pe),this.productService=u(ge),this.biggerPictureService=u(ue),this.authService=u(oe),this.mainPanelService=u(me),this.decimalPipe=u(E),this.placeholderService=u(xe),this.infinitePagination=u(L),this.updateResHandling=u(W),this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=ae.PriceUpdate,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.searchPlaceholder=H("Search ...");let n=this.authService;this.hostName=this.authService.getDomain(),this.data$=this.infinitePagination.data$.pipe($(1)),this.channelOptions=n.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.dataEndpoint,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe(z(n=>{this.searchFilter=n.Filter,this.searchFilter.filterModel=N.ALL,this.initSearchPlaceholder(),this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}onToggleDifferentInventory(){this.toggleDifferentInventory?this.searchFilter.filterModel=N.ALL:this.searchFilter.filterModel=N.DIFFERENCE,this.onSearch()}onCheckboxStateProduct(n){n.Variants=n.Variants.map(t=>(t.selected=n.selected,t))}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(n){let i=this.productService.selectedVariantProduct(n).map(f=>({ID:f.ID,ChannelID:f.Channel[0].ChannelID,Code:f.Code,Price:f.UnitPrice})),m={ListChannelID:[this.searchFilter.ChannelID],ListPrice:i};this.http.post("/api/Price/UpdateChannel",m).subscribe(f=>{this.onSearch(),this.handlingUpdateStock(f.Response)})}handlingUpdateStock(n){if(n.success_list?.length>0||n.failure_list?.length>0){let t=n.failure_list,i=n.success_list;this.updateResHandling.responseHandling(i,t,"Price")}else this.toastr.error(n[0]?.Exception,"Error")}refreshPrice(n){let t={ChannelItemID:n?.Channel[0].ChannelItemID,ChannelVariationID:n?.Channel[0]?.ChannelVariationID,ChannelID:n?.Channel[0]?.ChannelID,VariantID:n.ID};this.http.post("/api/Price/RefreshPriceChannel",t).subscribe(i=>{this.toastr.success("Successfully updated","Success"),this.onSearch()})}onSearch(){this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel(),this.initSearchPlaceholder()}openTableDialog(n,t,i){let m=JSON.parse(JSON.stringify(n));this.dialog.open(Fe,{data:{Name:t.Name,Variant:m,ChannelID:m?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:m?.Channel[0]?.ChannelItemID}}).afterClosed().pipe(A(I=>Y.IsNotEmpty(I))).subscribe(I=>{this.updateItemAfterDialog(I,n)})}updateItemAfterDialog(n,t){let i={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:parseFloat(n.Price),VariantID:n.ID,SKU:n.Sku};this.http.post("/api/Price/UpdatePriceByID",i).subscribe(m=>{let f=this.productService.findChannelById(i.ID,this.channelOptions),I=i.Price?this.decimalPipe.transform(i.Price):i.Price;this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) price in ${f.Name} to ${I}`,"Success"),t.Channel[0]&&(t.Channel[0].Price=i.Price),this.infinitePagination.reloadPagination(this.searchFilter)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(n=>n.ID==this.searchFilter.ChannelID)}onSelectAllSKU(n,t){t=t.map(i=>(i.Variants=i.Variants.map(m=>(m.selected=n,m)),i))}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}openExportDialog(){this.dialog.open(we,{data:{title:"Export Price Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,exportApi:"price/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=q({type:s,selectors:[["app-price-single-channel"]],features:[K([L,Te,X("https://resc.cloudinary.com/"),E,W])],decls:2,vars:3,consts:[[1,"single-price",3,"headerTitle","text","searchBoxPlaceHolder"],[1,"single-price",3,"textChange","onSubmit","headerTitle","text","searchBoxPlaceHolder"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"d-flex"],[1,"container-fluid","mt-5"],[1,"btn","btn-success"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModelChange","toggleChange","ngModel"],[1,"text-start"],[1,"text-end",2,"width","20%"],[3,"ngxPermissionsOnly"],[1,"text-end"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","checkbox",1,"me-3",3,"change"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"d-flex","align-items-center","justify-content-end"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],[1,"ms-3"],[1,"text-end",3,"ngClass"],[2,"cursor","pointer"],["target","_blank",3,"href"],[1,"fas","external-link-custom","fa-solid","fa-arrow-up-right-from-square"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","external-link-custom","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png","loading","lazy",1,"border","rounded","w-img",2,"margin-left","8px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],[1,"d-block"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"click","src"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"cursor","pointer",3,"click"]],template:function(t,i){if(t&1&&(h(0,je,22,16,"mainpanel",0),v(1,"async")),t&2){let m;g((m=b(1,1,i.loader$))?0:-1,m)}},dependencies:[Q,J,Ce,de,le,_e,re,ce,se,be,ie,ne,ye,Pe,fe,he,Se,Z,E,ve],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"],changeDetection:0});let o=s;return o})();export{Et as PriceSingleChannelComponent};
1
+ import{a as N}from"./chunk-ISMIPSYN.js";import{a as Te}from"./chunk-A6SP65CH.js";import{a as Fe,b as ve,c as be,d as L,e as W}from"./chunk-C67KF7MG.js";import{a as we}from"./chunk-TYSM3R5E.js";import{a as Pe,b as ye}from"./chunk-JKRELT7N.js";import"./chunk-WTHYLNPX.js";import{c as xe,d as Se}from"./chunk-TUY6YGYA.js";import"./chunk-76AVMRJU.js";import"./chunk-2EGTHH3W.js";import"./chunk-LR2YCE6M.js";import{e as he}from"./chunk-BZWZ64N5.js";import{a as fe}from"./chunk-3PUUKJCQ.js";import"./chunk-VVNLTDLG.js";import"./chunk-OHAT7WXU.js";import"./chunk-L4EPB2CQ.js";import"./chunk-GNXSEYJF.js";import{a as ue}from"./chunk-DLHIDOS3.js";import{a as ge}from"./chunk-FPJTI4LM.js";import"./chunk-JU4ZP3HI.js";import"./chunk-3T5VLB63.js";import"./chunk-STOW2RQN.js";import"./chunk-GLBJ4Y4T.js";import"./chunk-XTNXL2IY.js";import"./chunk-KOUB5HRK.js";import"./chunk-QETZ5VDX.js";import"./chunk-WIRXMAIF.js";import"./chunk-S22I47XG.js";import"./chunk-3NCMRK7E.js";import"./chunk-JLDXWNDU.js";import"./chunk-A6QXXKPR.js";import"./chunk-6Q4BDCI5.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{a as me,b as Ce}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import{c as pe}from"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-M27MYADT.js";import"./chunk-TBVMCNS2.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-JTKEMQZT.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as ae}from"./chunk-ZSUWHVKX.js";import{h as oe}from"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as ne,c as ie}from"./chunk-NB2H6KA7.js";import{c as Y}from"./chunk-UPRDDI4K.js";import{A as de,b as re,c as le,h as ce,m as se,o as _e}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as ee,e as te}from"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as E,B as Q,G as X,q as J,w as Z}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{G as A,Hb as q,Ia as H,Nb as M,Nc as p,Oc as B,Pc as T,Rc as P,Sc as y,Tc as w,Xc as G,Z as $,_c as K,ac as h,ad as V,cc as g,dc as k,ea as z,fc as O,gc as R,hc as C,ic as a,id as v,jc as l,jd as b,kc as F,kd as j,mb as D,ob as c,ra as u,rc as S,wc as x,ya as _,yc as r,za as d}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var U=o=>[o],Ve=o=>({"text-decoration-line-through":o}),Ie=o=>({"bg-gradient-warning":o});function De(o,s){if(o&1){let e=S();a(0,"button",13),x("click",function(){_(e);let t=r(),i=r(2);return d(i.updateStock(t))}),F(1,"i",14),p(2," Update "),l()}}function Ee(o,s){if(o&1){let e=S();a(0,"div",8),h(1,De,3,0,"button",10),a(2,"button",11),x("click",function(){_(e);let t=r(2);return d(t.openExportDialog())}),F(3,"i",12),a(4,"span"),p(5,"Export"),l()()()}if(o&2){let e=r(2);c(),g(e.productService.hasSelectionVariant(s)?1:-1)}}function Me(o,s){if(o&1){let e=S();a(0,"th")(1,"input",28),x("change",function(t){_(e);let i=r(),m=r(2);return d(m.onSelectAllSKU(t.target.checked,i))}),l()()}}function Ne(o,s){if(o&1){let e=S();a(0,"input",46),w("ngModelChange",function(t){_(e);let i=r(4).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),x("ngModelChange",function(){_(e);let t=r(4).$implicit,i=r(3);return d(i.onCheckboxStateProduct(t))}),l()}if(o&2){let e=r(4).$implicit;P("ngModel",e.selected)}}function ke(o,s){if(o&1&&M(0,Ne,1,1,"ng-template",22),o&2){let e=r(6);C("ngxPermissionsOnly",V(1,U,e.rolePriceEdit))}}function Oe(o,s){if(o&1){let e=S();a(0,"img",47),x("click",function(t){_(e);let i=r(3).$implicit,m=r(3);return d(m.onZoomImage(t,i==null?null:i.ImageUrl))}),l()}if(o&2){let e=r(3).$implicit;C("src",G(e.ThumbnailUrl),D)}}function Re(o,s){o&1&&F(0,"img",42)}function Be(o,s){if(o&1&&(a(0,"small",45),p(1),l()),o&2){let e=r(3).$implicit;c(),T("(",e.Category,")")}}function Le(o,s){if(o&1&&(a(0,"td",40)(1,"div",31),h(2,ke,1,3,null,22),a(3,"div"),h(4,Oe,1,2,"img",41)(5,Re,1,0,"img",42),l()()(),a(6,"td",43)(7,"span",44),p(8),l(),h(9,Be,2,1,"small",45),l()),o&2){let e=r(2).$implicit;C("rowSpan",e.Variants.length),c(2),g((e.Variants==null?null:e.Variants.length)>1?2:-1),c(2),g(e.ThumbnailUrl?4:5),c(2),C("rowSpan",e.Variants.length),c(2),B(e.Name),c(),g(e.Category?9:-1)}}function We(o,s){if(o&1){let e=S();a(0,"input",50),w("ngModelChange",function(t){_(e);let i=r(2).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),l()}if(o&2){let e=r(2).$implicit;P("ngModel",e.selected)}}function Ue(o,s){if(o&1&&(a(0,"td",48),h(1,We,1,1,"input",49),l()),o&2){let e=r().$implicit;c(),g(e.UnitPrice>=0?1:-1)}}function Ae(o,s){o&1&&(a(0,"div",32),p(1," Not Found "),l())}function $e(o,s){if(o&1&&(a(0,"div"),p(1),v(2,"number"),l()),o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.UnitPrice)," ")}}function ze(o,s){if(o&1&&(a(0,"div",33)(1,"a",36),F(2,"i",51),l()()),o&2){let e=r().$implicit,n=r(4);c(),C("href",n.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),D)}}function He(o,s){if(o&1){let e=S();a(0,"div",52),x("click",function(){_(e);let t=r().$implicit,i=r().$implicit,m=r(2),f=r();return d(f.openTableDialog(t,i,m))}),p(1),v(2,"number"),l()}if(o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.Channel[0]==null?null:e.Channel[0].Price)," ")}}function qe(o,s){if(o&1){let e=S();a(0,"tr",29),h(1,Le,10,6),a(2,"td",20),p(3),l(),a(4,"td",23)(5,"span",30),p(6),l()(),M(7,Ue,2,1,"ng-template",22),a(8,"td",23)(9,"div",31),h(10,Ae,2,0,"div",32),h(11,$e,3,3,"div"),h(12,ze,3,1,"div",33),l()(),a(13,"td",34)(14,"div",31),h(15,He,3,3,"div",35),a(16,"div",33)(17,"a",36),F(18,"i",37),l()(),a(19,"div",33)(20,"div",38),x("click",function(){let t=_(e).$implicit,i=r(4);return d(i.refreshPrice(t))}),F(21,"i",39),l()()()()()}if(o&2){let e=s.$implicit,n=s.$index,t=r(4);c(),g(n==0?1:-1),c(2),B(e.Model),c(2),C("matTooltip",e.Discontinued?t.discontinuedVariantMsg:"")("ngClass",V(12,Ve,e.Discontinued)),c(),T(" ",e.Code," "),c(),C("ngxPermissionsOnly",V(14,U,t.rolePriceEdit)),c(3),g((e.Channel[0]==null?null:e.Channel[0].Description)!=null?10:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?11:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?12:-1),c(),C("ngClass",V(16,Ie,e.UnitPrice!=(e.Channel[0]==null?null:e.Channel[0].Price))),c(2),g(e.Channel.length>0?15:-1),c(2),C("href",e.Channel[0]==null?null:e.Channel[0].Url,D)}}function Ge(o,s){if(o&1&&O(0,qe,22,18,"tr",29,k),o&2){let e=s.$implicit;R(e.Variants)}}function Ke(o,s){if(o&1){let e=S();a(0,"div",9)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr")(5,"th",18),p(6," Product "),a(7,"div")(8,"mat-slide-toggle",19),w("ngModelChange",function(t){_(e);let i=r(2);return y(i.toggleDifferentInventory,t)||(i.toggleDifferentInventory=t),d(t)}),x("toggleChange",function(){_(e);let t=r(2);return d(t.onToggleDifferentInventory())}),a(9,"small",6),p(10,"FILTER DIFFERENT PRICE"),l()()()(),a(11,"th",20),p(12,"Variant"),l(),a(13,"th",21),p(14,"SKU"),l(),M(15,Me,2,0,"ng-template",22),a(16,"th",23),p(17,"POS"),l(),a(18,"th",23)(19,"div",24),x("click",function(){_(e);let t=r(2);return d(t.openModalFilter())}),F(20,"img",25),a(21,"span",26),p(22),v(23,"stringLimit"),l()()()()(),a(24,"tbody"),O(25,Ge,2,0,null,null,k),l()(),a(27,"infinite-paginator",27),v(28,"async"),x("onNextPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){_(e);let t=r(2);return d(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()}if(o&2){let e=r(2);c(8),P("ngModel",e.toggleDifferentInventory),c(7),C("ngxPermissionsOnly",V(16,U,e.rolePriceEdit)),c(4),C("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?e.selectedChannel==null?null:e.selectedChannel.Name:""),c(),C("src",e.selectedChannel==null?null:e.selectedChannel.Img,D),c(2),T(" ",j(23,11,e.selectedChannel==null?null:e.selectedChannel.Name,20)," "),c(3),R(s),c(2),C("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",b(28,14,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}function je(o,s){if(o&1){let e=S();a(0,"mainpanel",1),w("textChange",function(t){_(e);let i=r();return y(i.searchFilter.text,t)||(i.searchFilter.text=t),d(t)}),x("onSubmit",function(){_(e);let t=r();return d(t.onSearch())}),a(1,"filters")(2,"div",2)(3,"label",3),p(4,"Channel"),l(),a(5,"app-channel-options-v2",4),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.ChannelID,t)||(i.searchFilter.ChannelID=t),d(t)}),l()(),a(6,"div",2)(7,"filter-query-type",5),w("numberFilterComparatorChange",function(t){_(e);let i=r();return y(i.searchFilter.NumberFilterComparator,t)||(i.searchFilter.NumberFilterComparator=t),d(t)})("searchTypeChange",function(t){_(e);let i=r();return y(i.searchFilter.SearchType,t)||(i.searchFilter.SearchType=t),d(t)}),l()(),a(8,"div",2)(9,"label",6),p(10,"Page Number"),l(),a(11,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),d(t)}),l()(),a(12,"div")(13,"label",6),p(14,"Page Size"),l(),a(15,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),d(t)}),l()()(),a(16,"actions"),h(17,Ee,6,1,"div",8),v(18,"async"),l(),a(19,"content"),h(20,Ke,29,18,"div",9),v(21,"async"),l()()}if(o&2){let e,n,t=s,i=r();C("headerTitle",i.pageTitle),P("text",i.searchFilter.text),C("searchBoxPlaceHolder",i.searchPlaceholder()),c(5),P("ngModel",i.searchFilter.ChannelID),c(2),C("numberFilterComparatorOptions",t==null||t.Options==null?null:t.Options.SearchComparatorTypeOptions),P("numberFilterComparator",i.searchFilter.NumberFilterComparator),C("searchTypeOptions",t==null||t.Options==null?null:t.Options.SearchSKUOnlyOrSKUNameOptions),P("searchType",i.searchFilter.SearchType),c(4),P("ngModel",i.searchFilter.PageNumber),c(4),P("ngModel",i.searchFilter.RowCount),c(2),g((e=b(18,12,i.data$))?17:-1,e),c(3),g((n=b(21,14,i.data$))?20:-1,n)}}var Et=(()=>{let s=class s{constructor(){this.http=u(te),this.toastr=u(ee),this.dialog=u(pe),this.productService=u(ge),this.biggerPictureService=u(ue),this.authService=u(oe),this.mainPanelService=u(me),this.decimalPipe=u(E),this.placeholderService=u(xe),this.infinitePagination=u(L),this.updateResHandling=u(W),this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=ae.PriceUpdate,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.searchPlaceholder=H("Search ...");let n=this.authService;this.hostName=this.authService.getDomain(),this.data$=this.infinitePagination.data$.pipe($(1)),this.channelOptions=n.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.dataEndpoint,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe(z(n=>{this.searchFilter=n.Filter,this.searchFilter.filterModel=N.ALL,this.initSearchPlaceholder(),this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}onToggleDifferentInventory(){this.toggleDifferentInventory?this.searchFilter.filterModel=N.ALL:this.searchFilter.filterModel=N.DIFFERENCE,this.onSearch()}onCheckboxStateProduct(n){n.Variants=n.Variants.map(t=>(t.selected=n.selected,t))}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(n){let i=this.productService.selectedVariantProduct(n).map(f=>({ID:f.ID,ChannelID:f.Channel[0].ChannelID,Code:f.Code,Price:f.UnitPrice})),m={ListChannelID:[this.searchFilter.ChannelID],ListPrice:i};this.http.post("/api/Price/UpdateChannel",m).subscribe(f=>{this.onSearch(),this.handlingUpdateStock(f.Response)})}handlingUpdateStock(n){if(n.success_list?.length>0||n.failure_list?.length>0){let t=n.failure_list,i=n.success_list;this.updateResHandling.responseHandling(i,t,"Price")}else this.toastr.error(n[0]?.Exception,"Error")}refreshPrice(n){let t={ChannelItemID:n?.Channel[0].ChannelItemID,ChannelVariationID:n?.Channel[0]?.ChannelVariationID,ChannelID:n?.Channel[0]?.ChannelID,VariantID:n.ID};this.http.post("/api/Price/RefreshPriceChannel",t).subscribe(i=>{this.toastr.success("Successfully updated","Success"),this.onSearch()})}onSearch(){this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel(),this.initSearchPlaceholder()}openTableDialog(n,t,i){let m=JSON.parse(JSON.stringify(n));this.dialog.open(Fe,{data:{Name:t.Name,Variant:m,ChannelID:m?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:m?.Channel[0]?.ChannelItemID}}).afterClosed().pipe(A(I=>Y.IsNotEmpty(I))).subscribe(I=>{this.updateItemAfterDialog(I,n)})}updateItemAfterDialog(n,t){let i={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:parseFloat(n.Price),VariantID:n.ID,SKU:n.Sku};this.http.post("/api/Price/UpdatePriceByID",i).subscribe(m=>{let f=this.productService.findChannelById(i.ID,this.channelOptions),I=i.Price?this.decimalPipe.transform(i.Price):i.Price;this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) price in ${f.Name} to ${I}`,"Success"),t.Channel[0]&&(t.Channel[0].Price=i.Price),this.infinitePagination.reloadPagination(this.searchFilter)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(n=>n.ID==this.searchFilter.ChannelID)}onSelectAllSKU(n,t){t=t.map(i=>(i.Variants=i.Variants.map(m=>(m.selected=n,m)),i))}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}openExportDialog(){this.dialog.open(we,{data:{title:"Export Price Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,exportApi:"price/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=q({type:s,selectors:[["app-price-single-channel"]],features:[K([L,Te,X("https://resc.cloudinary.com/"),E,W])],decls:2,vars:3,consts:[[1,"single-price",3,"headerTitle","text","searchBoxPlaceHolder"],[1,"single-price",3,"textChange","onSubmit","headerTitle","text","searchBoxPlaceHolder"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"d-flex"],[1,"container-fluid","mt-5"],[1,"btn","btn-success"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModelChange","toggleChange","ngModel"],[1,"text-start"],[1,"text-end",2,"width","20%"],[3,"ngxPermissionsOnly"],[1,"text-end"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","checkbox",1,"me-3",3,"change"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"d-flex","align-items-center","justify-content-end"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],[1,"ms-3"],[1,"text-end",3,"ngClass"],[2,"cursor","pointer"],["target","_blank",3,"href"],[1,"fas","external-link-custom","fa-solid","fa-arrow-up-right-from-square"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","external-link-custom","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png","loading","lazy",1,"border","rounded","w-img",2,"margin-left","8px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],[1,"d-block"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"click","src"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"cursor","pointer",3,"click"]],template:function(t,i){if(t&1&&(h(0,je,22,16,"mainpanel",0),v(1,"async")),t&2){let m;g((m=b(1,1,i.loader$))?0:-1,m)}},dependencies:[Q,J,Ce,de,le,_e,re,ce,se,be,ie,ne,ye,Pe,fe,he,Se,Z,E,ve],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"],changeDetection:0});let o=s;return o})();export{Et as PriceSingleChannelComponent};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-BKR7YPEW.js";import{a as l}from"./chunk-AGBJEXIM.js";import{c}from"./chunk-UPRDDI4K.js";import{e as h}from"./chunk-MM7SAZOU.js";import{ma as p,ra as d,v as u}from"./chunk-OHGMB7HJ.js";var T=(()=>{let a=class a{constructor(){this.httpService=d(h)}getNotificationDetail(t){return this.httpService.post(l.GetJobScanDetail,{ID:t}).pipe(u(r=>{let e=r.Data;return e.DurationInSecond=e.Duration?e.Duration/1e3:0,e.ParsedStatus=e.StatusProduct?JSON.parse(e.StatusProduct):[],e.ParsedPerfLog=e.PerfLog?e.PerfLog.startsWith("[")?JSON.parse(e.PerfLog):[]:[],e.ProcessLabel=this.generateLabel(e),e.ProcessDescription=this.generateDescription(e),e.EndTime=this.createEndTime(e),e.Channel=c.getChannelName(e.TypeID),e.MillisecondToDisplay=this.convertMilisecondsToReadableFormat(e.Duration||0),e.ParsedException=e.Exception?JSON.parse(e.Exception):null,e}))}convertMilisecondsToReadableFormat(t){let r=Math.floor(t/1e3),e=Math.floor(r/60),n=r%60,s="";return e!=0&&(s=s.concat(`${e} minutes `)),n!=0&&(s=s.concat(`${n} seconds`)),s}getNotificationList(t){return this.httpService.post(l.GetJobScanList,t).pipe(u(r=>{let e=r.Data;return e=e.map(n=>(n.Img=c.getChannelLogoByTypeId(n.TypeID),n.DurationInSecond=n.Duration?n.Duration/1e3:0,n.ProcessLabel=this.generateLabel(n),n.ProcessDescription=this.generateDescription(n),n)),{Data:e,Count:r.Count}}))}generateLabel(t){let r=null;switch(t.ScanTypeID){case i.Active:r="Active";break;case i.Sellable:r="Sellable";break;case i.All:r="All";break}return`Asynchronous Scan - ${r}`}generateDescription(t){return`${t.OriginGetCount} found in ${t.ChannelName} ( ${t.SkuFoundCount} Sold In Channel + ${t.SkuNotFoundCount} Not In POS)`}createMessageCopyText(t){let r=[];return t.ParsedStatus&&t.ParsedStatus.forEach(e=>{r.push({[e.Key]:e.Value})}),r=[...r,{OriginalGetCount:t.OriginGetCount},{SkuFoundCount:t.SkuFoundCount},{SkuNotFoundCount:t.SkuNotFoundCount}],JSON.stringify(r)}createEndTime(t){let r=new Date(t.Created);return new Date(r.getTime()+(t.Duration||0))}};a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=p({token:a,factory:a.\u0275fac});let o=a;return o})();var D=(function(o){return o[o.InProgress=0]="InProgress",o[o.Completed=1]="Completed",o[o.Failed=2]="Failed",o})(D||{});export{T as a,D as b};
1
+ import{a as i}from"./chunk-BKR7YPEW.js";import{a as l}from"./chunk-AGBJEXIM.js";import{c}from"./chunk-UPRDDI4K.js";import{e as h}from"./chunk-D6JH2KV4.js";import{ma as p,ra as d,v as u}from"./chunk-OHGMB7HJ.js";var T=(()=>{let a=class a{constructor(){this.httpService=d(h)}getNotificationDetail(t){return this.httpService.post(l.GetJobScanDetail,{ID:t}).pipe(u(r=>{let e=r.Data;return e.DurationInSecond=e.Duration?e.Duration/1e3:0,e.ParsedStatus=e.StatusProduct?JSON.parse(e.StatusProduct):[],e.ParsedPerfLog=e.PerfLog?e.PerfLog.startsWith("[")?JSON.parse(e.PerfLog):[]:[],e.ProcessLabel=this.generateLabel(e),e.ProcessDescription=this.generateDescription(e),e.EndTime=this.createEndTime(e),e.Channel=c.getChannelName(e.TypeID),e.MillisecondToDisplay=this.convertMilisecondsToReadableFormat(e.Duration||0),e.ParsedException=e.Exception?JSON.parse(e.Exception):null,e}))}convertMilisecondsToReadableFormat(t){let r=Math.floor(t/1e3),e=Math.floor(r/60),n=r%60,s="";return e!=0&&(s=s.concat(`${e} minutes `)),n!=0&&(s=s.concat(`${n} seconds`)),s}getNotificationList(t){return this.httpService.post(l.GetJobScanList,t).pipe(u(r=>{let e=r.Data;return e=e.map(n=>(n.Img=c.getChannelLogoByTypeId(n.TypeID),n.DurationInSecond=n.Duration?n.Duration/1e3:0,n.ProcessLabel=this.generateLabel(n),n.ProcessDescription=this.generateDescription(n),n)),{Data:e,Count:r.Count}}))}generateLabel(t){let r=null;switch(t.ScanTypeID){case i.Active:r="Active";break;case i.Sellable:r="Sellable";break;case i.All:r="All";break}return`Asynchronous Scan - ${r}`}generateDescription(t){return`${t.OriginGetCount} found in ${t.ChannelName} ( ${t.SkuFoundCount} Sold In Channel + ${t.SkuNotFoundCount} Not In POS)`}createMessageCopyText(t){let r=[];return t.ParsedStatus&&t.ParsedStatus.forEach(e=>{r.push({[e.Key]:e.Value})}),r=[...r,{OriginalGetCount:t.OriginGetCount},{SkuFoundCount:t.SkuFoundCount},{SkuNotFoundCount:t.SkuNotFoundCount}],JSON.stringify(r)}createEndTime(t){let r=new Date(t.Created);return new Date(r.getTime()+(t.Duration||0))}};a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=p({token:a,factory:a.\u0275fac});let o=a;return o})();var D=(function(o){return o[o.InProgress=0]="InProgress",o[o.Completed=1]="Completed",o[o.Failed=2]="Failed",o})(D||{});export{T as a,D as b};
@@ -0,0 +1 @@
1
+ import{a as pe,b as se}from"./chunk-K5WSFDNA.js";import{a as ue}from"./chunk-FBXKHJ2G.js";import{a as F}from"./chunk-L6CRWJ2O.js";import{a as ce}from"./chunk-PV4OJSZI.js";import{a as de}from"./chunk-3PUUKJCQ.js";import"./chunk-VVNLTDLG.js";import"./chunk-OHAT7WXU.js";import"./chunk-L4EPB2CQ.js";import"./chunk-GNXSEYJF.js";import{a as me}from"./chunk-ZZYFVEJO.js";import"./chunk-DLHIDOS3.js";import{a as ae}from"./chunk-27DIE2YS.js";import"./chunk-JU4ZP3HI.js";import"./chunk-3T5VLB63.js";import"./chunk-STOW2RQN.js";import"./chunk-GLBJ4Y4T.js";import"./chunk-XTNXL2IY.js";import"./chunk-KOUB5HRK.js";import"./chunk-QETZ5VDX.js";import"./chunk-WIRXMAIF.js";import"./chunk-S22I47XG.js";import"./chunk-3NCMRK7E.js";import"./chunk-A6QXXKPR.js";import"./chunk-6Q4BDCI5.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{b as re}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import{a as le}from"./chunk-UEXWQT5J.js";import"./chunk-3SCX7IMW.js";import"./chunk-K4Q33QIR.js";import"./chunk-JRCXHF2X.js";import"./chunk-M27MYADT.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-JTKEMQZT.js";import{c as oe}from"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import"./chunk-UPRDDI4K.js";import{A as ne,c as $,h as ee,m as te,o as ie}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as Y,B as Z,w as Q,x as U,y as X}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{$c as G,Hb as W,Ia as N,Mc as z,Nc as l,Oc as V,Pc as A,Rc as h,Sc as S,Tc as w,Uc as R,Vc as H,Wc as j,Z as L,_c as q,ac as x,ad as J,bc as B,cc as b,dc as D,fc as I,gc as k,hc as y,ic as i,id as _,jc as n,jd as f,kc as C,kd as K,ob as r,ra as O,rc as T,wc as E,ya as c,yc as g,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import{a as M,b as P}from"./chunk-66YHNWRR.js";var _e=()=>[],fe=t=>({"td-cell-hover":t});function Ce(t,m){if(t&1&&C(0,"variants-dropdown",26),t&2){let e=g().$implicit;y("variants",e==null?null:e.Variants)}}function ge(t,m){if(t&1&&C(0,"variant-with-image",27),t&2){let e=g().$implicit;y("variant",e==null?null:e.Variants[0])}}function he(t,m){if(t&1&&(i(0,"span"),l(1),n()),t&2){let e=g().$implicit;r(),A("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Se(t,m){t&1&&l(0," Awaiting Collection ")}function we(t,m){t&1&&l(0," Shipped ")}function ve(t,m){t&1&&l(0," Completed ")}function ye(t,m){t&1&&l(0," To Ship ")}function xe(t,m){t&1&&l(0," - ")}function be(t,m){if(t&1&&(i(0,"tr")(1,"td")(2,"div",23)(3,"div"),C(4,"order-link",24),n(),i(5,"small"),l(6),_(7,"date"),n(),C(8,"br"),i(9,"small"),C(10,"i",25),l(11),n()()(),i(12,"td"),x(13,Ce,1,1,"variants-dropdown",26)(14,ge,1,1,"variant-with-image",27),n(),i(15,"td"),l(16),_(17,"number"),n(),i(18,"td")(19,"div",23)(20,"div",28)(21,"span"),l(22),n(),x(23,he,2,1,"span"),n(),i(24,"small"),l(25),n()()(),i(26,"td"),x(27,Se,1,0),_(28,"lowercase"),_(29,"lowercase"),_(30,"lowercase"),_(31,"lowercase"),_(32,"lowercase"),_(33,"lowercase"),B(34,we,1,0)(35,ve,1,0)(36,ye,1,0)(37,xe,1,0),n()()),t&2){let e=m.$implicit;r(4),y("order",e),r(2),A(" ",K(7,11,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),r(5),A(" ",e.Customer," "),r(),z(J(28,fe,(e.Variants==null?null:e.Variants.length)>1)),r(),b((e.Variants==null?null:e.Variants.length)>1?13:14),r(3),V(f(17,14,e.Amount)),r(6),V(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),r(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?23:-1),r(2),A(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),r(2),b(f(28,16,e.Fulfillment)==="awaitingcollection"?27:f(29,18,e.Fulfillment)==="sent"&&f(30,20,e.Payment)==="unpaid"?34:f(31,22,e.Payment)==="paid"?35:f(32,24,e.Payment)==="unpaid"&&f(33,26,e.Fulfillment)==="unsent"?36:37)}}function Ae(t,m){if(t&1){let e=T();i(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Number"),n(),i(6,"th"),l(7,"Items"),n(),i(8,"th",21),l(9,"Amount"),n(),i(10,"th",21),l(11,"Fulfillment"),n(),i(12,"th",21),l(13,"Order Status"),n()()(),i(14,"tbody"),I(15,be,38,30,"tr",null,D),n()(),i(17,"app-custom-paginator",22),E("next",function(){c(e);let p=g();return u(p.initAllOrders())})("previous",function(){c(e);let p=g();return u(p.initAllOrders())}),n()()}if(t&2){let e=g(),d=j(0);r(15),k(d),r(2),y("filter",e.filter())("totaldata",d==null?null:d.length)}}function Te(t,m){t&1&&(i(0,"div",16),C(1,"app-empty-state"),n())}var Ke=(()=>{let m=class m{constructor(){this.orderService=O(F),this.filter=N({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:d=>{this.initFromDate(d)},error:d=>{console.error("Error fetching default date:",d),this.initFromDate(null)}})}initFromDate(d){this.filter.update(p=>P(M({},p),{From:d})),this.initAllOrders()}initAllOrders(){this.allOrders$=this.orderService.getAllOrders(this.filter()).pipe(L(1))}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=W({type:m,selectors:[["app-all"]],features:[q([F])],decls:34,vars:12,consts:[["headerTitle","All Orders","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-solid","fa-clipboard-list","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","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"d-flex","align-items-end","gap-2"]],template:function(p,a){if(p&1){let s=T();R(0),_(1,"async"),i(2,"mainpanel",0),E("onSubmit",function(){return c(s),u(a.initAllOrders())}),w("textChange",function(o){return c(s),S(a.filter().Number,o)||(a.filter().Number=o),u(o)}),i(3,"actions")(4,"a",1),C(5,"i",2),i(6,"span"),l(7,"Order Fulfillment Display"),n()()(),i(8,"filters")(9,"div")(10,"label",3),l(11,"Channel"),n(),i(12,"app-channel-options-v2",4),w("ngModelChange",function(o){return c(s),S(a.filter().ListChannelID,o)||(a.filter().ListChannelID=o),u(o)}),n()(),i(13,"div",5)(14,"label",3),l(15,"From/To"),n(),i(16,"div",6)(17,"datepicker",7),w("dateChange",function(o){return c(s),S(a.filter().From,o)||(a.filter().From=o),u(o)}),n()(),i(18,"div")(19,"datepicker",8),w("dateChange",function(o){return c(s),S(a.filter().To,o)||(a.filter().To=o),u(o)}),n()()(),i(20,"div",5)(21,"label",9),l(22,"Page Number"),n(),i(23,"input",10),w("ngModelChange",function(o){return c(s),S(a.filter().PageNumber,o)||(a.filter().PageNumber=o),u(o)}),n()(),i(24,"div",5)(25,"label",9),l(26,"Page Size"),n(),i(27,"input",11),w("ngModelChange",function(o){return c(s),S(a.filter().PageSize,o)||(a.filter().PageSize=o),u(o)}),n()()(),i(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),x(32,Ae,18,2,"div",15)(33,Te,2,0,"div",16),n()()()()()}if(p&2){let s=H(f(1,8,a.allOrders$)||G(11,_e));r(2),h("text",a.filter().Number),r(10),y("multiple",!0),h("ngModel",a.filter().ListChannelID),r(5),h("date",a.filter().From),r(2),h("date",a.filter().To),r(4),h("ngModel",a.filter().PageNumber),r(4),h("ngModel",a.filter().PageSize),r(5),b((s==null?null:s.length)>0?32:33)}},dependencies:[Z,re,ae,me,ne,$,ie,ee,te,pe,se,ce,le,oe,ue,de,Q,U,Y,X],encapsulation:2});let t=m;return t})();export{Ke as AllComponent};
@@ -1,4 +1,4 @@
1
- import{a as X,b as Z,c as ie}from"./chunk-RN5CI3LE.js";import{a as _e}from"./chunk-VOONKP66.js";import{a as Se}from"./chunk-34ZZ4GCS.js";import{a as xe}from"./chunk-YAWT3CLI.js";import{e as Te}from"./chunk-C2LAQOUW.js";import{b as ge}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import{a as T}from"./chunk-YNL43MLU.js";import{c as g}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as ne}from"./chunk-ZSUWHVKX.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as Ce,c as ye}from"./chunk-5UFP37GQ.js";import{b as S,c as se}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as Q,e as ue}from"./chunk-MM7SAZOU.js";import{b as fe,d as ve,e as he,g as be}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as y,q as w,w as J,x as z,z as me}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as v,Ic as V,Nb as Y,Nc as a,Oa as A,Oc as c,Pc as _,Xc as pe,Z as te,_c as K,ac as s,ad as h,bd as ce,cc as u,ec as j,fc as $,gc as G,hc as f,ic as i,id as C,jc as n,jd as O,kc as b,kd as P,lc as N,ld as U,mb as re,mc as W,ob as o,ra as x,rc as M,tb as de,ud as q,v as le,wc as k,ya as E,yc as m,za as I}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function Re(e,l){if(e&1&&(i(0,"div",3)(1,"div",9)(2,"label"),a(3,"Order Fulfillment Webhook Handling"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c((t.data==null?null:t.data.FulfillmentWebhookHandling)==0?"Do Nothing":(t.data==null?null:t.data.FulfillmentWebhookHandling)==1?"Create Outbound Logistic":"Reserve for Future")}}function Ve(e,l){if(e&1&&(i(0,"div",3)(1,"div",10)(2,"label"),a(3,"Process Automatic Return"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.ReturnProcess)}}function Ue(e,l){if(e&1&&(i(0,"div",3)(1,"div",11)(2,"label"),a(3,"Ignore Cancelled Order for Fulfilled Orders"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.IgnoreReverseOrder?"YES":"NO")}}function Be(e,l){if(e&1&&(i(0,"div",3)(1,"div",12)(2,"label"),a(3,"Size Chart"),n(),i(4,"div",13)(5,"a",14),a(6),n()()()()),e&2){let t=m();o(5),f("href",t.data.SizeChart,re),o(),c(t.data.SizeChart)}}function He(e,l){if(e&1&&(i(0,"div",3)(1,"div",15)(2,"label"),a(3,"ShippingFee"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.ShippingFee)}}function Ye(e,l){if(e&1&&(i(0,"div",3)(1,"div",16)(2,"label"),a(3,"Pricebook"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.PricebookName)}}function je(e,l){if(e&1&&(i(0,"div",3)(1,"div",17)(2,"label"),a(3,"Unpaid Order"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.UnpaidOrder?"YES":"NO")}}var Ee=(()=>{let l=class l{constructor(){this.channelType=S}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-advanced-config-info"]],inputs:{data:"data"},decls:46,vars:14,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Register where the transaction is recorded in POS",1,"info-label-group"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip","matTooltip",`Please input SKU Product for add Additional products that will be entered automatically in every transaction from the marketplace, Example : Paperbag
1
+ import{a as X,b as Z,c as ie}from"./chunk-BCK2GY66.js";import{a as _e}from"./chunk-VOONKP66.js";import{a as Se}from"./chunk-YLQBIIZH.js";import{a as xe}from"./chunk-6F37VT6M.js";import{e as Te}from"./chunk-BZWZ64N5.js";import{b as ge}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import{a as T}from"./chunk-UEXWQT5J.js";import{c as g}from"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as ne}from"./chunk-ZSUWHVKX.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as Ce,c as ye}from"./chunk-NB2H6KA7.js";import{b as S,c as se}from"./chunk-UPRDDI4K.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import{b as Q,e as ue}from"./chunk-D6JH2KV4.js";import{b as fe,d as ve,e as he,g as be}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as me,B as y,q as w,w as J,y as z}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as v,Ic as V,Nb as Y,Nc as a,Oa as A,Oc as c,Pc as _,Xc as pe,Z as te,_c as K,ac as s,ad as h,bd as ce,cc as u,ec as j,fc as $,gc as G,hc as f,ic as i,id as C,jc as n,jd as O,kc as b,kd as P,lc as N,ld as U,mb as re,mc as W,ob as o,ra as x,rc as M,tb as de,ud as q,v as le,wc as k,ya as E,yc as m,za as I}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function Re(e,l){if(e&1&&(i(0,"div",3)(1,"div",9)(2,"label"),a(3,"Order Fulfillment Webhook Handling"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c((t.data==null?null:t.data.FulfillmentWebhookHandling)==0?"Do Nothing":(t.data==null?null:t.data.FulfillmentWebhookHandling)==1?"Create Outbound Logistic":"Reserve for Future")}}function Ve(e,l){if(e&1&&(i(0,"div",3)(1,"div",10)(2,"label"),a(3,"Process Automatic Return"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.ReturnProcess)}}function Ue(e,l){if(e&1&&(i(0,"div",3)(1,"div",11)(2,"label"),a(3,"Ignore Cancelled Order for Fulfilled Orders"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.IgnoreReverseOrder?"YES":"NO")}}function Be(e,l){if(e&1&&(i(0,"div",3)(1,"div",12)(2,"label"),a(3,"Size Chart"),n(),i(4,"div",13)(5,"a",14),a(6),n()()()()),e&2){let t=m();o(5),f("href",t.data.SizeChart,re),o(),c(t.data.SizeChart)}}function He(e,l){if(e&1&&(i(0,"div",3)(1,"div",15)(2,"label"),a(3,"ShippingFee"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.ShippingFee)}}function Ye(e,l){if(e&1&&(i(0,"div",3)(1,"div",16)(2,"label"),a(3,"Pricebook"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.PricebookName)}}function je(e,l){if(e&1&&(i(0,"div",3)(1,"div",17)(2,"label"),a(3,"Unpaid Order"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.UnpaidOrder?"YES":"NO")}}var Ee=(()=>{let l=class l{constructor(){this.channelType=S}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-advanced-config-info"]],inputs:{data:"data"},decls:46,vars:14,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Register where the transaction is recorded in POS",1,"info-label-group"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip","matTooltip",`Please input SKU Product for add Additional products that will be entered automatically in every transaction from the marketplace, Example : Paperbag
2
2
  `,1,"info-label-group"],["matTooltipPosition","above","matTooltip","Minimal inventory on channel, if product inventory is below minimum inventory will automatically update to 0 ",1,"info-label-group"],["matTooltipPosition","above","matTooltip","WarehouseID is used to determine the warehouse where the location is stored.",1,"info-label-group"],["matTooltipPosition","above","matTooltip","Automatically sync your orders from channel to POS",1,"info-label-group"],["matTooltipPosition","above","matTooltip","create outbound logistic when webhook sends",1,"info-label-group"],["matTooltipPosition","above","matTooltip","If a return signal is sent from Shopee, we will automatically make a return at POS",1,"info-label-group"],["matTooltipPosition","above","matTooltip",`When this configuration is enabled, fulfilled marketplace orders canceled later will not be auto-voided.
3
3
 
4
4
  - Fulfilled orders \u2192 not auto-voided (handle manually)
@@ -0,0 +1 @@
1
+ import{a as A}from"./chunk-27DIE2YS.js";import{b as P}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import{e as H}from"./chunk-D6JH2KV4.js";import{b as M,e as k,g as N}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{B as $,w as I,y as R}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as E,Nc as i,Pc as m,Z as v,ac as C,bc as _,cc as y,ea as D,ec as b,fc as w,gc as T,hc as g,ic as e,id as p,jc as t,jd as h,kc as O,kd as u,ob as o,q as f,ra as c,v as x,yc as B}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function L(n,a){if(n&1&&(e(0,"tr")(1,"td"),i(2),t(),e(3,"td"),i(4),t(),e(5,"td"),i(6),p(7,"date"),t(),e(8,"td"),i(9),p(10,"date"),t(),e(11,"td"),i(12),t()()),n&2){let l=a.$implicit;o(2),m(" ",l.Number," "),o(2),m(" ",l.Status," "),o(2),m(" ",u(7,5,l.Start,"HH:mm:ss:SSS")," "),o(3),m(" ",u(10,8,l.End,"HH:mm:ss:SSS")," "),o(3),m(" ",l.Exception," ")}}function j(n,a){if(n&1&&(e(0,"div",5)(1,"table",7)(2,"thead")(3,"tr",8)(4,"th",9),i(5,"Number"),t(),e(6,"th",10),i(7,"Status"),t(),e(8,"th",11),i(9,"Start Time"),t(),e(10,"th",11),i(11,"End Time"),t(),e(12,"th"),i(13,"Exception"),t()()(),e(14,"tbody"),w(15,L,13,11,"tr",null,b),p(17,"async"),t()()()),n&2){let l=B();o(15),T(h(17,0,l.orderDetails$))}}function F(n,a){n&1&&(e(0,"div",6),O(1,"app-empty-state"),t())}var ee=(()=>{let a=class a{constructor(){this.route=c(M),this.httpService=c(H),this.orderDetails$=f([])}ngOnInit(){this.initOrderDetails()}initOrderDetails(){let s=this.route.snapshot?.queryParams;this.orderDetails$=this.httpService.post("/api/Orders/DownloadOrderLogsDetail",{ID:s.ID}).pipe(D(r=>{let d=r?.hits[0]?._source;this.headerTitle=`${d?.ChannelName} (${d?.DateRange})`}),x(r=>r?.hits[0]._source?.Detail),v(1))}};a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=E({type:a,selectors:[["app-download-order-detail"]],decls:11,vars:7,consts:[[3,"headerTitle","description","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/order/log",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[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","table-hover"],[1,"table-light"],[2,"width","200px"],[2,"width","150px"],[2,"width","100px"]],template:function(r,d){if(r&1&&(e(0,"mainpanel",0)(1,"actions")(2,"a",1),i(3,"Back"),t()(),e(4,"content")(5,"div",2)(6,"div",3)(7,"div",4),C(8,j,18,2,"div",5),p(9,"async"),_(10,F,2,0,"div",6),t()()()()()),r&2){let S;g("headerTitle",d.headerTitle)("description",d.headerTitle)("hideSearchBox",!0)("hideSearchDropdown",!0),o(8),y(((S=h(9,5,d.orderDetails$))==null?null:S.length)>0?8:10)}},dependencies:[$,P,A,N,k,I,R],encapsulation:2});let n=a;return n})();export{ee as DownloadOrderDetailComponent};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-YYV4FSYQ.js";import{a as r}from"./chunk-AGBJEXIM.js";import{b as i,c as l}from"./chunk-UPRDDI4K.js";import{b as S,e as C}from"./chunk-MM7SAZOU.js";import{aa as u,ea as h,ma as c,ra as s,v as p}from"./chunk-OHGMB7HJ.js";var b=(()=>{let n=class n{constructor(){this.httpService=s(C),this.toastr=s(S),this.tokenService=s(m)}saveChannel(e){return this.httpService.post("/api/Channel/SubmitChannel",e).pipe(u(t=>this.tokenService.refreshToken().pipe(p(o=>t))))}getLastSync(e){return this.httpService.get(`${r.ChannelGetLastSyncByID}/?ID=${e}`)}getChannel(e){return this.httpService.post(r.GetChannel,e)}getChannelLoader(){return this.httpService.get(r.GetChannelLoader)}testShopID(e){return this.httpService.post(r.TestShopID,e).pipe(h(t=>{this.showTostrSuccessTestShopID(t)}))}updateChannelType(e){let t={ChannelID:e.ID,TypeID:i.ShopifyV2};return this.httpService.post(r.UpdateChannelType,t).pipe(h(o=>{this.showTostrSuccessTestShopID(o)}))}updateChannelIndex(e){return this.httpService.post(r.UpdateChannelIndex,e)}deleteChannel(e){return this.httpService.post(r.DeleteChannel,e)}mapChannelImage(e){return e.map(t=>(t.img=l.getChannelLogoByTypeId(t.TypeID),t))}showTostrSuccessTestShopID(e){let t="";for(var o in e)t+=o+" : "+e[o]+"<br/>";this.toastr.success(t,"Success",{enableHtml:!0,closeButton:!0,positionClass:"toast-bottom-right"})}getRegisterByOutletName(e){return this.httpService.post(r.GetRegisterByOutletName,{Outlet:e})}getChannelRowCount(e){return this.httpService.post(r.GetChannelRowCount,e).pipe(p(t=>t.Count))}getChannelWarehouse(e){return this.httpService.get(`${r.GetChannelWarehouse}/?ChannelID=${e}`)}unSynchronizedWarehouse(e){return this.httpService.delete(`${r.UnSynchronizedWarehouse}?ID=${e}`)}authorizedChannel(e){let t=this.getApiAuthorize(e);return this.httpService.post(`/api/${t}`,null).pipe(h(o=>{window.open(o.Url,"_blank")}))}getApiAuthorize(e){let t;switch(e){case i.Shopee:t="ChannelAuthorization/ShopeeV2_URL";break;case i.Tiktok:t="ChannelAuthorization/Tiktok_URL";break;case i.Lazada:t="ChannelAuthorization/Lazada_URL";break}return t}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=c({token:n,factory:n.\u0275fac,providedIn:"root"});let a=n;return a})();export{b as a};
1
+ import{a as m}from"./chunk-X2CTSYKS.js";import{a as r}from"./chunk-AGBJEXIM.js";import{b as i,c as l}from"./chunk-UPRDDI4K.js";import{b as S,e as C}from"./chunk-D6JH2KV4.js";import{aa as u,ea as h,ma as c,ra as s,v as p}from"./chunk-OHGMB7HJ.js";var b=(()=>{let n=class n{constructor(){this.httpService=s(C),this.toastr=s(S),this.tokenService=s(m)}saveChannel(e){return this.httpService.post("/api/Channel/SubmitChannel",e).pipe(u(t=>this.tokenService.refreshToken().pipe(p(o=>t))))}getLastSync(e){return this.httpService.get(`${r.ChannelGetLastSyncByID}/?ID=${e}`)}getChannel(e){return this.httpService.post(r.GetChannel,e)}getChannelLoader(){return this.httpService.get(r.GetChannelLoader)}testShopID(e){return this.httpService.post(r.TestShopID,e).pipe(h(t=>{this.showTostrSuccessTestShopID(t)}))}updateChannelType(e){let t={ChannelID:e.ID,TypeID:i.ShopifyV2};return this.httpService.post(r.UpdateChannelType,t).pipe(h(o=>{this.showTostrSuccessTestShopID(o)}))}updateChannelIndex(e){return this.httpService.post(r.UpdateChannelIndex,e)}deleteChannel(e){return this.httpService.post(r.DeleteChannel,e)}mapChannelImage(e){return e.map(t=>(t.img=l.getChannelLogoByTypeId(t.TypeID),t))}showTostrSuccessTestShopID(e){let t="";for(var o in e)t+=o+" : "+e[o]+"<br/>";this.toastr.success(t,"Success",{enableHtml:!0,closeButton:!0,positionClass:"toast-bottom-right"})}getRegisterByOutletName(e){return this.httpService.post(r.GetRegisterByOutletName,{Outlet:e})}getChannelRowCount(e){return this.httpService.post(r.GetChannelRowCount,e).pipe(p(t=>t.Count))}getChannelWarehouse(e){return this.httpService.get(`${r.GetChannelWarehouse}/?ChannelID=${e}`)}unSynchronizedWarehouse(e){return this.httpService.delete(`${r.UnSynchronizedWarehouse}?ID=${e}`)}authorizedChannel(e){let t=this.getApiAuthorize(e);return this.httpService.post(`/api/${t}`,null).pipe(h(o=>{window.open(o.Url,"_blank")}))}getApiAuthorize(e){let t;switch(e){case i.Shopee:t="ChannelAuthorization/ShopeeV2_URL";break;case i.Tiktok:t="ChannelAuthorization/Tiktok_URL";break;case i.Lazada:t="ChannelAuthorization/Lazada_URL";break}return t}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=c({token:n,factory:n.\u0275fac,providedIn:"root"});let a=n;return a})();export{b as a};
@@ -1,2 +1,2 @@
1
- import{H as k,a as N,b as P,e as L,f as U,g as _,i as f,l as S}from"./chunk-7R2D2JZ6.js";import{Ca as O,Hb as F,Jb as C,Kc as M,Ra as w,pa as y,ra as p,ub as A}from"./chunk-OHGMB7HJ.js";import{a}from"./chunk-66YHNWRR.js";var l=(function(s){return s[s.FADING_IN=0]="FADING_IN",s[s.VISIBLE=1]="VISIBLE",s[s.FADING_OUT=2]="FADING_OUT",s[s.HIDDEN=3]="HIDDEN",s})(l||{}),v=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=l.HIDDEN;constructor(t,e,i,n=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=n}fadeOut(){this._renderer.fadeOutRipple(this)}},H=_({passive:!0,capture:!0}),E=class{_events=new Map;addHandler(t,e,i,n){let r=this._events.get(e);if(r){let d=r.get(i);d?d.add(n):r.set(i,new Set([n]))}else this._events.set(e,new Map([[i,new Set([n])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,H)})}removeHandler(t,e,i){let n=this._events.get(t);if(!n)return;let r=n.get(e);r&&(r.delete(i),r.size===0&&n.delete(e),n.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,H)))}_delegateEventHandler=t=>{let e=L(t);e&&this._events.get(t.type)?.forEach((i,n)=>{(n===e||n.contains(e))&&i.forEach(r=>r.handleEvent(t))})}},x={enterDuration:225,exitDuration:150},Y=800,G=_({passive:!0,capture:!0}),B=["mousedown","touchstart"],z=["mouseup","mouseleave","touchend","touchcancel"],j=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275cmp=F({type:s,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}
1
+ import{H as k,a as N,b as P,e as L,f as U,g as _,i as f,l as S}from"./chunk-O3BS4AC6.js";import{Ca as O,Hb as F,Jb as C,Kc as M,Ra as w,pa as y,ra as p,ub as A}from"./chunk-OHGMB7HJ.js";import{a}from"./chunk-66YHNWRR.js";var l=(function(s){return s[s.FADING_IN=0]="FADING_IN",s[s.VISIBLE=1]="VISIBLE",s[s.FADING_OUT=2]="FADING_OUT",s[s.HIDDEN=3]="HIDDEN",s})(l||{}),v=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=l.HIDDEN;constructor(t,e,i,n=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=n}fadeOut(){this._renderer.fadeOutRipple(this)}},H=_({passive:!0,capture:!0}),E=class{_events=new Map;addHandler(t,e,i,n){let r=this._events.get(e);if(r){let d=r.get(i);d?d.add(n):r.set(i,new Set([n]))}else this._events.set(e,new Map([[i,new Set([n])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,H)})}removeHandler(t,e,i){let n=this._events.get(t);if(!n)return;let r=n.get(e);r&&(r.delete(i),r.size===0&&n.delete(e),n.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,H)))}_delegateEventHandler=t=>{let e=L(t);e&&this._events.get(t.type)?.forEach((i,n)=>{(n===e||n.contains(e))&&i.forEach(r=>r.handleEvent(t))})}},x={enterDuration:225,exitDuration:150},Y=800,G=_({passive:!0,capture:!0}),B=["mousedown","touchstart"],z=["mouseup","mouseleave","touchend","touchcancel"],j=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275cmp=F({type:s,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}
2
2
  `],encapsulation:2,changeDetection:0})}return s})(),b=class s{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new E;constructor(t,e,i,n,r){this._target=t,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=f(i)),r&&r.get(S).load(j)}fadeInRipple(t,e,i={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=a(a({},x),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);let d=i.radius||X(t,e,n),Z=t-n.left,V=e-n.top,h=r.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=`${Z-d}px`,o.style.top=`${V-d}px`,o.style.height=`${d*2}px`,o.style.width=`${d*2}px`,i.color!=null&&(o.style.backgroundColor=i.color),o.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(o);let D=window.getComputedStyle(o),$=D.transitionProperty,T=D.transitionDuration,m=$==="none"||T==="0s"||T==="0s, 0s"||n.width===0&&n.height===0,c=new v(this,o,i,m);o.style.transform="scale3d(1, 1, 1)",c.state=l.FADING_IN,i.persistent||(this._mostRecentTransientRipple=c);let u=null;return!m&&(h||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let R=()=>{u&&(u.fallbackTimer=null),clearTimeout(I),this._finishRippleTransition(c)},g=()=>this._destroyRipple(c),I=setTimeout(g,h+100);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",g),u={onTransitionEnd:R,onTransitionCancel:g,fallbackTimer:I}}),this._activeRipples.set(c,u),(m||!h)&&this._finishRippleTransition(c),c}fadeOutRipple(t){if(t.state===l.FADING_OUT||t.state===l.HIDDEN)return;let e=t.element,i=a(a({},x),t.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=l.FADING_OUT,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=f(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,B.forEach(i=>{s._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{z.forEach(e=>{this._triggerElement.addEventListener(e,this,G)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===l.FADING_IN?this._startFadeOutTransition(t):t.state===l.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=l.VISIBLE,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=l.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),t.element.remove()}_onMousedown(t){let e=N(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Y;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!P(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=t.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{let e=t.state===l.VISIBLE||t.config.terminateOnPointerUp&&t.state===l.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(B.forEach(e=>s._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(z.forEach(e=>t.removeEventListener(e,this,G)),this._pointerUpEventsRegistered=!1))}};function X(s,t,e){let i=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),n=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+n*n)}var q=new y("mat-ripple-global-options"),lt=(()=>{class s{_elementRef=p(w);_animationsDisabled=k();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(A),i=p(U),n=p(q,{optional:!0}),r=p(O);this._globalOptions=n||{},this._rippleRenderer=new b(this,e,this._elementRef,i,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:a(a(a({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,a(a({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,a(a({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||s)};static \u0275dir=C({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,n){i&2&&M("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return s})();export{x as a,b,q as c,lt as d};
@@ -1 +1 @@
1
- import{a as ne}from"./chunk-ZSUWHVKX.js";import{a as K,h as te}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{a as ee}from"./chunk-5UFP37GQ.js";import{a as _,c as J}from"./chunk-UPRDDI4K.js";import{A as ge,c as ie,h as oe,i as re,k as ae,m as se,n as de,t as le,u as ce,v as me,w as pe}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as X}from"./chunk-MM7SAZOU.js";import{d as Z}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{q as Y,w as $}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Ab as x,Cc as U,Dc as F,Ec as R,Hb as E,Ic as S,Mc as j,Nc as l,Oc as N,Pc as B,Qc as z,Rc as M,Sc as O,Tc as P,Z as A,ac as u,bd as q,cc as f,ec as L,fc as k,gc as T,hc as w,ic as o,id as G,jc as r,jd as H,kc as m,lc as v,ma as D,mb as h,mc as y,nc as W,ob as d,rc as I,sc as V,ud as Q,wc as b,ya as p,yc as c,za as g}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function xe(n,a){if(n&1&&(v(0,"swiper-slide")(1,"div")(2,"a",1),W(3,"img",2),y()(),v(4,"a",3),l(5),y(),v(6,"p",4),l(7),y()()),n&2){let i=a.$implicit;d(2),V("href",i.href,h),d(),V("src",i.imgSrc,h),d(),V("href",i.href,h),d(),N(i.title),d(2),N(i.description)}}var fe=(()=>{let a=class a{constructor(){this.newsList=Q([])}};a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=E({type:a,selectors:[["POS-news-swiper"]],inputs:{newsList:[1,"newsList"]},decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],["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(e,s){e&1&&(v(0,"swiper-container",0),k(1,xe,8,5,"swiper-slide",null,L),y()),e&2&&(d(),T(s.newsList()))},styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]});let n=a;return n})();var _e=(()=>{let a=class a{constructor(){}getBrowserName(){let t=window.navigator.userAgent.toLowerCase();switch(!0){case(t.indexOf("edge")>-1||t.indexOf("edg")>-1):return"edge";case t.indexOf("opr")>-1:return"opera";case t.indexOf("chrome")>-1:return"chrome";case t.indexOf("trident")>-1:return"ie";case t.indexOf("firefox")>-1:return"firefox";case t.indexOf("safari")>-1:return"safari";default:return"other"}}};a.\u0275fac=function(e){return new(e||a)},a.\u0275prov=D({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})();var Ce=["subdomainEl"],we=(n,a)=>({"rounded-end":n,"border-end-0":a});function ve(n,a){if(n&1&&(o(0,"div",33),m(1,"img",34),r()),n&2){let i=a.$implicit;d(),w("src",i.img,h)("title",i.title)("alt",i.title)}}function ye(n,a){if(n&1){let i=I();o(0,"div",15)(1,"h3",16),l(2,"DealPOS Omnichannel"),r(),o(3,"small",17),l(4," Multichannel Inventory Management Software "),r()(),o(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),m(10,"i",22),r()(),o(11,"input",23,0),P("ngModelChange",function(e){p(i);let s=c();return O(s.subdomain,e)||(s.subdomain=e),g(e)}),r(),o(13,"div")(14,"select",24),P("ngModelChange",function(e){p(i);let s=c();return O(s.domain,e)||(s.domain=e),g(e)}),o(15,"option",25),l(16," .dealpos.co.id "),r(),o(17,"option",26),l(18,".dealpos.net"),r(),o(19,"option",27),l(20,".dealpos.com"),r(),o(21,"option",28),l(22,".dealpos.app"),r()()()(),o(23,"div",29)(24,"button",30),b("click",function(){p(i);let e=c();return g(e.onNextState())}),l(25," Next "),r()(),o(26,"div",31)(27,"div",32),k(28,ve,2,3,"div",33,L),r()()()()}if(n&2){let i=c();d(11),M("ngModel",i.subdomain),d(3),M("ngModel",i.domain),d(14),T(i.channels)}}function Se(n,a){n&1&&(o(0,"p"),l(1,"Username is required"),r())}function Me(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Se,2,0,"p"),r()()),n&2){c();let i=S(14);d(3),f(i.errors.required?3:-1)}}function Oe(n,a){if(n&1){let i=I();o(0,"i",57),b("click",function(){p(i);let e=c(3);return g(e.hideShowPassword())}),r()}if(n&2){let i=c(3);j("fa "+i.passwordIcon)}}function Pe(n,a){if(n&1&&(o(0,"span",47),u(1,Oe,1,2,"i",56),r()),n&2){let i=c(2);d(),f(i.password?1:-1)}}function Ee(n,a){n&1&&(o(0,"p"),l(1,"Password is required"),r())}function Le(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Ee,2,0,"p"),r()()),n&2){c();let i=S(21);d(3),f(i.errors.required?3:-1)}}function ke(n,a){if(n&1){let i=I();o(0,"div",35)(1,"h3",36),l(2,"Sign in"),r(),o(3,"h3",37),l(4," to "),o(5,"h6",38),l(6),r(),o(7,"i",39),b("click",function(){p(i);let e=c();return g(e.onEditDomain())}),r()()(),o(8,"form",40)(9,"div",41)(10,"div",21)(11,"span"),m(12,"i",42),r()(),o(13,"input",43,1),P("ngModelChange",function(e){p(i);let s=c();return O(s.username,e)||(s.username=e),g(e)}),r()(),u(15,Me,4,1,"div",44),o(16,"div",20)(17,"div",21)(18,"span"),m(19,"i",45),r()(),o(20,"input",46,2),P("ngModelChange",function(e){p(i);let s=c();return O(s.password,e)||(s.password=e),g(e)}),r(),u(22,Pe,2,1,"span",47),r(),u(23,Le,4,1,"div",44),o(24,"div",48)(25,"button",49),b("click",function(){p(i);let e=c();return g(e.onLogin())}),l(26," Log in "),r()(),o(27,"div",50),m(28,"hr"),o(29,"span",51),l(30,"or"),r(),m(31,"hr"),r(),o(32,"div")(33,"button",52),b("click",function(e){p(i);let s=c();return g(s.onLoginByGoogle(e))}),m(34,"i",53),l(35," Sign In with Google "),r()()()}if(n&2){let i=S(14),t=S(21),e=c();d(6),z(" (",e.subdomain,"",e.domain,") "),d(7),M("ngModel",e.username),d(2),f(i.invalid&&(i.dirty||i.touched)?15:-1),d(5),w("type",e.passwordType)("ngClass",q(9,we,e.browser=="edge",e.browser!="edge")),M("ngModel",e.password),d(2),f(e.browser!="edge"?22:-1),d(),f(t.invalid&&(t.dirty||t.touched)?23:-1)}}var Ke=(()=>{let a=class a{constructor(t,e,s,C,he){this._router=t,this.toastr=e,this.checkBrowser=s,this.authService=C,this.ngxPermission=he,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:_.SHOOPE},{title:"Tokopedia",img:_.TOKOPEDIA},{title:"Tiktok",img:_.TIKTOK},{title:"Woocommerce",img:_.WOOCOMMERCE},{title:"Lazada",img:_.LAZADA},{title:"Shopify",img:_.SHOPIFY},{title:"Plugo",img:_.PLUGONEW}],this.version=K.version,this.news$=C.getNews().pipe(A(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let t=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=t}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let t=JSON.parse(localStorage.getItem("Authorization"));if(t){this.username=t?.username,this.subdomain=t?.Host?.split(".")[0];let e=t?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(J.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let t=this.subdomain.indexOf(".dealpos");t!=-1&&(this.subdomain=this.subdomain.substring(0,t))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let t={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(t).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(t){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(t,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(t){this.ngxPermission.hasPermission([ne.DashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):t?.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")}};a.\u0275fac=function(e){return new(e||a)(x(Z),x(X),x(_e),x(te),x(ee))},a.\u0275cmp=E({type:a,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&U(Ce,5),e&2){let C;F(C=R())&&(s.subdomainEl=C.first)}},decls:18,vars:6,consts:[["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"],[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"],[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"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[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"],[1,"input-group-text","border-start-0","rounded-end"],[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"],[2,"width","52px"],[1,"text-danger","ps-1"],[3,"class"],[3,"click"]],template:function(e,s){e&1&&(o(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3",6),l(4,"New Features"),r(),m(5,"POS-news-swiper",7),G(6,"async"),r(),o(7,"div",8),u(8,ye,30,2)(9,ke,36,12),r()(),o(10,"div",9)(11,"span",10),l(12,"powered by :"),r(),m(13,"a",11),r(),o(14,"div",12)(15,"a",13),l(16),m(17,"i",14),r()()()),e&2&&(d(5),w("newsList",H(6,4,s.news$)),d(3),f(s.loginState=="FORM_DOMAIN"?8:9),d(7),w("href",s.changelogUrl,h),d(),B("version ",s.version))},dependencies:[fe,ge,de,ce,me,ie,le,oe,re,pe,se,ae,Y,$],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}"]});let n=a;return n})();export{Ke as LoginComponent};
1
+ import{a as ne}from"./chunk-ZSUWHVKX.js";import{a as K,h as te}from"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{a as ee}from"./chunk-NB2H6KA7.js";import{a as _,c as J}from"./chunk-UPRDDI4K.js";import{A as ge,c as ie,h as oe,i as re,k as ae,m as se,n as de,t as le,u as ce,v as me,w as pe}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as X}from"./chunk-D6JH2KV4.js";import{d as Z}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{q as Y,w as $}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Ab as x,Cc as U,Dc as F,Ec as R,Hb as E,Ic as S,Mc as j,Nc as l,Oc as N,Pc as B,Qc as z,Rc as M,Sc as O,Tc as P,Z as A,ac as u,bd as q,cc as f,ec as L,fc as k,gc as T,hc as w,ic as o,id as G,jc as r,jd as H,kc as m,lc as v,ma as D,mb as h,mc as y,nc as W,ob as d,rc as I,sc as V,ud as Q,wc as b,ya as p,yc as c,za as g}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function xe(n,a){if(n&1&&(v(0,"swiper-slide")(1,"div")(2,"a",1),W(3,"img",2),y()(),v(4,"a",3),l(5),y(),v(6,"p",4),l(7),y()()),n&2){let i=a.$implicit;d(2),V("href",i.href,h),d(),V("src",i.imgSrc,h),d(),V("href",i.href,h),d(),N(i.title),d(2),N(i.description)}}var fe=(()=>{let a=class a{constructor(){this.newsList=Q([])}};a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=E({type:a,selectors:[["POS-news-swiper"]],inputs:{newsList:[1,"newsList"]},decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],["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(e,s){e&1&&(v(0,"swiper-container",0),k(1,xe,8,5,"swiper-slide",null,L),y()),e&2&&(d(),T(s.newsList()))},styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]});let n=a;return n})();var _e=(()=>{let a=class a{constructor(){}getBrowserName(){let t=window.navigator.userAgent.toLowerCase();switch(!0){case(t.indexOf("edge")>-1||t.indexOf("edg")>-1):return"edge";case t.indexOf("opr")>-1:return"opera";case t.indexOf("chrome")>-1:return"chrome";case t.indexOf("trident")>-1:return"ie";case t.indexOf("firefox")>-1:return"firefox";case t.indexOf("safari")>-1:return"safari";default:return"other"}}};a.\u0275fac=function(e){return new(e||a)},a.\u0275prov=D({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})();var Ce=["subdomainEl"],we=(n,a)=>({"rounded-end":n,"border-end-0":a});function ve(n,a){if(n&1&&(o(0,"div",33),m(1,"img",34),r()),n&2){let i=a.$implicit;d(),w("src",i.img,h)("title",i.title)("alt",i.title)}}function ye(n,a){if(n&1){let i=I();o(0,"div",15)(1,"h3",16),l(2,"DealPOS Omnichannel"),r(),o(3,"small",17),l(4," Multichannel Inventory Management Software "),r()(),o(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),m(10,"i",22),r()(),o(11,"input",23,0),P("ngModelChange",function(e){p(i);let s=c();return O(s.subdomain,e)||(s.subdomain=e),g(e)}),r(),o(13,"div")(14,"select",24),P("ngModelChange",function(e){p(i);let s=c();return O(s.domain,e)||(s.domain=e),g(e)}),o(15,"option",25),l(16," .dealpos.co.id "),r(),o(17,"option",26),l(18,".dealpos.net"),r(),o(19,"option",27),l(20,".dealpos.com"),r(),o(21,"option",28),l(22,".dealpos.app"),r()()()(),o(23,"div",29)(24,"button",30),b("click",function(){p(i);let e=c();return g(e.onNextState())}),l(25," Next "),r()(),o(26,"div",31)(27,"div",32),k(28,ve,2,3,"div",33,L),r()()()()}if(n&2){let i=c();d(11),M("ngModel",i.subdomain),d(3),M("ngModel",i.domain),d(14),T(i.channels)}}function Se(n,a){n&1&&(o(0,"p"),l(1,"Username is required"),r())}function Me(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Se,2,0,"p"),r()()),n&2){c();let i=S(14);d(3),f(i.errors.required?3:-1)}}function Oe(n,a){if(n&1){let i=I();o(0,"i",57),b("click",function(){p(i);let e=c(3);return g(e.hideShowPassword())}),r()}if(n&2){let i=c(3);j("fa "+i.passwordIcon)}}function Pe(n,a){if(n&1&&(o(0,"span",47),u(1,Oe,1,2,"i",56),r()),n&2){let i=c(2);d(),f(i.password?1:-1)}}function Ee(n,a){n&1&&(o(0,"p"),l(1,"Password is required"),r())}function Le(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Ee,2,0,"p"),r()()),n&2){c();let i=S(21);d(3),f(i.errors.required?3:-1)}}function ke(n,a){if(n&1){let i=I();o(0,"div",35)(1,"h3",36),l(2,"Sign in"),r(),o(3,"h3",37),l(4," to "),o(5,"h6",38),l(6),r(),o(7,"i",39),b("click",function(){p(i);let e=c();return g(e.onEditDomain())}),r()()(),o(8,"form",40)(9,"div",41)(10,"div",21)(11,"span"),m(12,"i",42),r()(),o(13,"input",43,1),P("ngModelChange",function(e){p(i);let s=c();return O(s.username,e)||(s.username=e),g(e)}),r()(),u(15,Me,4,1,"div",44),o(16,"div",20)(17,"div",21)(18,"span"),m(19,"i",45),r()(),o(20,"input",46,2),P("ngModelChange",function(e){p(i);let s=c();return O(s.password,e)||(s.password=e),g(e)}),r(),u(22,Pe,2,1,"span",47),r(),u(23,Le,4,1,"div",44),o(24,"div",48)(25,"button",49),b("click",function(){p(i);let e=c();return g(e.onLogin())}),l(26," Log in "),r()(),o(27,"div",50),m(28,"hr"),o(29,"span",51),l(30,"or"),r(),m(31,"hr"),r(),o(32,"div")(33,"button",52),b("click",function(e){p(i);let s=c();return g(s.onLoginByGoogle(e))}),m(34,"i",53),l(35," Sign In with Google "),r()()()}if(n&2){let i=S(14),t=S(21),e=c();d(6),z(" (",e.subdomain,"",e.domain,") "),d(7),M("ngModel",e.username),d(2),f(i.invalid&&(i.dirty||i.touched)?15:-1),d(5),w("type",e.passwordType)("ngClass",q(9,we,e.browser=="edge",e.browser!="edge")),M("ngModel",e.password),d(2),f(e.browser!="edge"?22:-1),d(),f(t.invalid&&(t.dirty||t.touched)?23:-1)}}var Ke=(()=>{let a=class a{constructor(t,e,s,C,he){this._router=t,this.toastr=e,this.checkBrowser=s,this.authService=C,this.ngxPermission=he,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:_.SHOOPE},{title:"Tokopedia",img:_.TOKOPEDIA},{title:"Tiktok",img:_.TIKTOK},{title:"Woocommerce",img:_.WOOCOMMERCE},{title:"Lazada",img:_.LAZADA},{title:"Shopify",img:_.SHOPIFY},{title:"Plugo",img:_.PLUGONEW}],this.version=K.version,this.news$=C.getNews().pipe(A(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let t=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=t}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let t=JSON.parse(localStorage.getItem("Authorization"));if(t){this.username=t?.username,this.subdomain=t?.Host?.split(".")[0];let e=t?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(J.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let t=this.subdomain.indexOf(".dealpos");t!=-1&&(this.subdomain=this.subdomain.substring(0,t))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let t={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(t).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(t){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(t,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(t){this.ngxPermission.hasPermission([ne.DashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):t?.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")}};a.\u0275fac=function(e){return new(e||a)(x(Z),x(X),x(_e),x(te),x(ee))},a.\u0275cmp=E({type:a,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&U(Ce,5),e&2){let C;F(C=R())&&(s.subdomainEl=C.first)}},decls:18,vars:6,consts:[["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"],[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"],[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"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[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"],[1,"input-group-text","border-start-0","rounded-end"],[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"],[2,"width","52px"],[1,"text-danger","ps-1"],[3,"class"],[3,"click"]],template:function(e,s){e&1&&(o(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3",6),l(4,"New Features"),r(),m(5,"POS-news-swiper",7),G(6,"async"),r(),o(7,"div",8),u(8,ye,30,2)(9,ke,36,12),r()(),o(10,"div",9)(11,"span",10),l(12,"powered by :"),r(),m(13,"a",11),r(),o(14,"div",12)(15,"a",13),l(16),m(17,"i",14),r()()()),e&2&&(d(5),w("newsList",H(6,4,s.news$)),d(3),f(s.loginState=="FORM_DOMAIN"?8:9),d(7),w("href",s.changelogUrl,h),d(),B("version ",s.version))},dependencies:[fe,ge,de,ce,me,ie,le,oe,re,pe,se,ae,Y,$],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}"]});let n=a;return n})();export{Ke as LoginComponent};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-AGBJEXIM.js";import{e as n}from"./chunk-MM7SAZOU.js";import{ma as e,ra as c}from"./chunk-OHGMB7HJ.js";var u=(()=>{let t=class t{constructor(){this.httpService=c(n)}getConfig(){return this.httpService.post(i.PosAccountGetConfig,{})}saveConfig(o){return this.httpService.post(i.SubmitConfig,o)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=e({token:t,factory:t.\u0275fac});let r=t;return r})();export{u as a};
1
+ import{a as i}from"./chunk-AGBJEXIM.js";import{e as n}from"./chunk-D6JH2KV4.js";import{ma as e,ra as c}from"./chunk-OHGMB7HJ.js";var u=(()=>{let t=class t{constructor(){this.httpService=c(n)}getConfig(){return this.httpService.post(i.PosAccountGetConfig,{})}saveConfig(o){return this.httpService.post(i.SubmitConfig,o)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=e({token:t,factory:t.\u0275fac});let r=t;return r})();export{u as a};
@@ -1,4 +1,4 @@
1
- import{d as _,g}from"./chunk-DDFP4CNP.js";import{b as Z,c as F,d as W,f as y}from"./chunk-RBZU7OVM.js";import{F as r,N as B,a as c,g as V,h as z,i as R,m as l,p as T,r as u,s as N,u as f,ua as C}from"./chunk-RXC5D64C.js";import{C as P}from"./chunk-JNRCB7N3.js";import{Ab as v,Cb as D,Fd as d,Gd as p,Ib as S,Jb as H,Lb as I,Pa as w,_c as M,ma as L,na as E,pa as O,pd as k,qd as A,ra as m,ub as x,ud as b}from"./chunk-OHGMB7HJ.js";import{a as h}from"./chunk-66YHNWRR.js";var j=`
1
+ import{d as _,g}from"./chunk-C4MTEDSW.js";import{b as Z,c as F,d as W,f as y}from"./chunk-JMRRXRKO.js";import{F as r,N as B,a as c,g as V,h as z,i as R,m as l,p as T,r as u,s as N,u as f,ua as C}from"./chunk-JTKEMQZT.js";import{D as P}from"./chunk-CGSMHTKB.js";import{Ab as v,Cb as D,Fd as d,Gd as p,Ib as S,Jb as H,Lb as I,Pa as w,_c as M,ma as L,na as E,pa as O,pd as k,qd as A,ra as m,ub as x,ud as b}from"./chunk-OHGMB7HJ.js";import{a as h}from"./chunk-66YHNWRR.js";var j=`
2
2
  .p-tooltip {
3
3
  position: absolute;
4
4
  display: none;