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 +1 @@
1
- import{a as ve}from"./chunk-LUJ3SHSP.js";import{b as Me}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{a as P,b as ie,c as _e,i as T,j as I}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-ZC526ERX.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as G}from"./chunk-AGBJEXIM.js";import{b as y,c as W}from"./chunk-UPRDDI4K.js";import{A as K,B as ne,c as D,e as V,h as R,i as x,j as X,l as O,m as $,n as ee,q as te,s as oe,w as Se,y as be}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as fe,e as ge}from"./chunk-MM7SAZOU.js";import{d as Ce,e as ye}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as J,q as E}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Ac as ue,G as z,Hb as M,Ic as Z,Nc as r,Oa as pe,Pc as Q,Rc as j,Sc as q,Tc as Y,aa as F,ac as c,ad as A,bd as ce,cc as h,hc as s,hd as he,ic as o,jc as l,kc as v,mb as de,ob as p,ra as C,rc as L,tb as me,ud as B,v as ae,wc as f,ya as b,yc as k,za as _,zc as se}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var De=t=>({invalid:t});function Re(t,n){t&1&&(o(0,"small"),r(1," URL is required "),l())}function Oe(t,n){if(t&1&&(o(0,"div",10),c(1,Re,2,0,"small"),l()),t&2){k();let g=Z(10);p(),h(g.errors.required?1:-1)}}function Pe(t,n){t&1&&(o(0,"small"),r(1," Email is required "),l())}function Ie(t,n){t&1&&(o(0,"small"),r(1," Email is not valid "),l())}function Ve(t,n){if(t&1&&(o(0,"div",10),c(1,Pe,2,0,"small"),c(2,Ie,2,0,"small"),l()),t&2){k();let g=Z(16);p(),h(g.errors.required?1:-1),p(),h(g.errors.pattern?2:-1)}}var Te=(()=>{let n=class n{constructor(){this.dialogRef=C(P)}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new T,this.modalConfig.title="Fill data for Customer Support"}onSubmit(i){i!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-contact-support"]],decls:18,vars:9,consts:[["url","ngModel"],["email","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mx-4"],["for","customerURL"],[1,"input-group","mb-2"],[1,"input-group-prepend"],["id","tokopediaUrl",1,"border-start-0","rounded-start","input-group-text","pointer-default","bg-light",2,"height","58px",3,"ngClass"],["required","","type","text","id","customerURL","name","customerURL","title","customerURL",1,"form-control","border-start-0","customerUrl",3,"ngModelChange","ngModel"],[1,"text-danger"],["for","customerEmail"],["required","","type","text","id","customerEmail","name","customerEmail","title","customerEmail","pattern","\\b[\\w\\.-]+@[\\w\\.-]+\\.\\w{2,4}\\b",1,"form-control",3,"ngModelChange","ngModel"]],template:function(d,e){if(d&1){let a=L();o(0,"modal-material",2),f("onClose",function(){return b(a),_(e.onClose())})("onCancel",function(){return b(a),_(e.onClose())})("onOk",function(u){return b(a),_(e.onSubmit(u))}),o(1,"div",3)(2,"div",4)(3,"label",5),r(4,"Tokopedia URL"),l(),o(5,"div",6)(6,"div",7)(7,"span",8),r(8,"https://tokopedia.com/"),l()(),o(9,"input",9,0),Y("ngModelChange",function(u){return b(a),q(e.formData.URL,u)||(e.formData.URL=u),_(u)}),l()(),c(11,Oe,2,1,"div",10),o(12,"label",11),r(13,"Requester's Email"),l(),o(14,"div",6)(15,"input",12,1),Y("ngModelChange",function(u){return b(a),q(e.formData.Email,u)||(e.formData.Email=u),_(u)}),l()(),c(17,Ve,3,2,"div",10),l()()()}if(d&2){let a=Z(10),m=Z(16);s("dynamicValidated",!a.invalid&&!m.invalid)("config",e.modalConfig),p(7),s("ngClass",A(7,De,a.invalid&&(a.dirty||a.touched))),p(2),j("ngModel",e.formData.URL),p(2),h(a.invalid&&(a.dirty||a.touched)?11:-1),p(4),j("ngModel",e.formData.Email),p(2),h(m.invalid&&(m.dirty||m.touched)?17:-1)}},dependencies:[I,E,K,D,R,Se,be,$],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.input-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.input-group[_ngcontent-%COMP%] > input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#fb404b}.input-group[_ngcontent-%COMP%] > input.customerUrl[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.invalid[_ngcontent-%COMP%]{border-color:#fb404b}.pointer-default[_ngcontent-%COMP%]{cursor:default}"]});let t=n;return t})();var ke=(()=>{let n=class n{constructor(){this.dialogRef=C(P),this.data=C(ie)}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new T,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.shopID)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-modal-dialog-tokopedia"]],decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","ShopID","data-toggle","tooltip","title","Channel Name",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(d,e){if(d&1){let a=L();o(0,"modal-material",1),f("onClose",function(){return b(a),_(e.onClose())})("onCancel",function(){return b(a),_(e.onClose())})("onOk",function(){return b(a),_(e.onSubmit())}),o(1,"div",2)(2,"div",3)(3,"input",4,0),Y("ngModelChange",function(u){return b(a),q(e.shopID,u)||(e.shopID=u),_(u)}),l(),o(5,"label",5),r(6,"Shop ID"),l()()()()}d&2&&(s("dynamicValidated",e.shopID)("config",e.modalConfig),p(3),j("ngModel",e.shopID))},dependencies:[I,K,D,R,$],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=n;return t})();var Ue=t=>({"input-group":t}),Ne=(t,n)=>({"is-invalid":t,"input-shopify rounded-start":n}),Ae=t=>({"is-invalid":t});function ze(t,n){t&1&&(o(0,"label",3),r(1,"Shopify URL"),l())}function Fe(t,n){t&1&&(o(0,"label",3),r(1,"URL"),l())}function Le(t,n){t&1&&(o(0,"span",6),r(1,"myshopify.com"),l())}function We(t,n){if(t&1&&(o(0,"div"),r(1),l()),t&2){let g=k(2);p(),Q("",g.data==null?null:g.data.title," url is required")}}function Ke(t,n){if(t&1&&(o(0,"div",7),c(1,We,2,1,"div"),l()),t&2){let g,i=k();p(),h(!(i.formGroup==null||(g=i.formGroup.get("URL"))==null)&&g.getError("required")?1:-1)}}function Ze(t,n){t&1&&r(0," API Key ")}function je(t,n){t&1&&r(0," Consumer Key ")}function qe(t,n){t&1&&(r(0," ("),o(1,"a",11),r(2,"help center article"),l(),r(3,") "))}function Ye(t,n){t&1&&(o(0,"div",7),r(1,"API Key is required"),l())}function Be(t,n){t&1&&r(0," Admin API Access Token ")}function He(t,n){t&1&&r(0," Consumer Secret ")}function Qe(t,n){t&1&&(o(0,"div",7),r(1,"Consumer Secret is required"),l())}var re=(()=>{let n=class n{constructor(){this.dialogRef=C(P),this.data=C(ie),this.modalConfig=new T,this.urlCtrl=new O(null),this.channelType=y}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let i=[V.required];this.formGroup=new X({URL:new O(null,i),ConsumerKey:new O(null,[V.required]),ConsumerSecret:new O(null,[V.required])})}initModalConfig(){this.modalConfig=new T,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let i=this.formGroup?.get("URL")?.getError("pattern"),d=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||i&&d&&e){let m=this.formGroup.value;m=this.trimShopifyUrl(m),this.dialogRef.close(m)}}trimShopifyUrl(i){if(this.data?.channelType==this.channelType.Shopify){let d=i.URL?.trim()||"";d=d.replace(/^https?:\/\//,""),d.includes(".myshopify.com")||(d=`${d}.myshopify.com`),i.URL=d}return i}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-modal-register-channel"]],decls:23,vars:27,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],["for","shopid",1,"form-label","fw-bold","mb-2"],[1,"mb-8","has-validation",3,"ngClass"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control","form-input","rounded",3,"placeholder","ngClass"],["id","basic-addon2",1,"input-group-text","rounded-end","form-input","text-secondary"],[1,"invalid-feedback"],[1,"mb-8","has-validation"],["type","text","id","ConsumerKey","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["type","text","id","ConsumerSecret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"]],template:function(d,e){if(d&1&&(o(0,"modal-material",0),f("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),o(1,"div",1)(2,"form",2),c(3,ze,2,0,"label",3),o(4,"div",4),c(5,Fe,2,0,"label",3),v(6,"input",5),c(7,Le,2,0,"span",6),c(8,Ke,2,1,"div",7),l(),o(9,"div",8)(10,"label",3)(11,"span"),c(12,Ze,1,0)(13,je,1,0),l(),c(14,qe,4,0),l(),v(15,"input",9),c(16,Ye,2,0,"div",7),l(),o(17,"div",8)(18,"label",3),c(19,Be,1,0)(20,He,1,0),l(),v(21,"input",10),c(22,Qe,2,0,"div",7),l()()()()),d&2){let a,m,u,S,U,N;s("config",e.modalConfig),p(2),s("formGroup",e.formGroup),p(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),p(),s("ngClass",A(18,Ue,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),p(),h((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),p(),s("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",ce(20,Ne,(e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.invalid)&&((e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.dirty)||(e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),p(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),p(),h(!(e.formGroup==null||(m=e.formGroup.get("URL"))==null)&&m.invalid&&(!(e.formGroup==null||(m=e.formGroup.get("URL"))==null)&&m.dirty||!(e.formGroup==null||(m=e.formGroup.get("URL"))==null)&&m.touched)?8:-1),p(4),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),p(2),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),p(),s("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[Create an app and copy the API Key]":"[Create an app and copy the Consumer Key]")("ngClass",A(23,Ae,(e.formGroup==null||(u=e.formGroup.get("ConsumerKey"))==null?null:u.invalid)&&((e.formGroup==null||(u=e.formGroup.get("ConsumerKey"))==null?null:u.dirty)||(e.formGroup==null||(u=e.formGroup.get("ConsumerKey"))==null?null:u.touched)))),p(),h(!(e.formGroup==null||(S=e.formGroup.get("ConsumerKey"))==null)&&S.getError("required")&&(!(e.formGroup==null||(S=e.formGroup.get("ConsumerKey"))==null)&&S.dirty||!(e.formGroup==null||(S=e.formGroup.get("ConsumerKey"))==null)&&S.touched)?16:-1),p(3),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),p(2),s("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",A(25,Ae,(e.formGroup==null||(U=e.formGroup.get("ConsumerSecret"))==null?null:U.invalid)&&((e.formGroup==null||(U=e.formGroup.get("ConsumerSecret"))==null?null:U.dirty)||(e.formGroup==null||(U=e.formGroup.get("ConsumerSecret"))==null?null:U.touched)))),p(),h(!(e.formGroup==null||(N=e.formGroup.get("ConsumerSecret"))==null)&&N.getError("required")&&(!(e.formGroup==null||(N=e.formGroup.get("ConsumerSecret"))==null)&&N.dirty||!(e.formGroup==null||(N=e.formGroup.get("ConsumerSecret"))==null)&&N.touched)?22:-1)}},dependencies:[I,K,ee,D,R,x,ne,te,oe,E],styles:[".input-shopify[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.form-input[_ngcontent-%COMP%]{min-height:3.625rem}"]});let t=n;return t})();var we=t=>({"is-invalid":t});function xe(t,n){t&1&&(o(0,"div",6),r(1,"Api Key is required"),l())}function Xe(t,n){t&1&&(o(0,"div",6),r(1,"Vendor ID is required"),l())}var Ee=(()=>{let n=class n{constructor(){this.dialogRef=C(P),this.config=new T,this.initModalConfig(),this.initFormGroup()}initModalConfig(){this.config=new T,this.config.title="Register Plugo",this.config.okText="SAVE"}initFormGroup(){this.formGroup=new X({ApiKey:new O(null,[V.required]),VendorID:new O(null,[V.required])})}onClose(){this.dialogRef.close()}onOk(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;let i=this.formGroup.value;this.dialogRef.close(i)}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-modal-register-plugo"]],decls:13,vars:10,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],[1,"form-label-group","has-validation"],["type","text","id","ApiKey","placeholder","Api Key","name","ApiKey","title","Api Key","formControlName","ApiKey",1,"form-control",3,"ngClass"],["for","ApiKey"],[1,"invalid-feedback"],["type","text","id","VendorID","placeholder","Vendor ID","name","VendorID","title","Vendor ID","formControlName","VendorID",1,"form-control",3,"ngClass"],["for","VendorID"]],template:function(d,e){if(d&1&&(o(0,"modal-material",0),f("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onOk()}),o(1,"div",1)(2,"form",2)(3,"div",3),v(4,"input",4),o(5,"label",5),r(6,"Api Key"),l(),c(7,xe,2,0,"div",6),l(),o(8,"div",3),v(9,"input",7),o(10,"label",8),r(11,"Vendor ID"),l(),c(12,Xe,2,0,"div",6),l()()()()),d&2){let a,m,u,S;s("config",e.config),p(2),s("formGroup",e.formGroup),p(2),s("ngClass",A(6,we,(e.formGroup==null||(a=e.formGroup.get("ApiKey"))==null?null:a.invalid)&&((e.formGroup==null||(a=e.formGroup.get("ApiKey"))==null?null:a.dirty)||(e.formGroup==null||(a=e.formGroup.get("ApiKey"))==null?null:a.touched)))),p(3),h(!(e.formGroup==null||(m=e.formGroup.get("ApiKey"))==null)&&m.getError("required")&&(!(e.formGroup==null||(m=e.formGroup.get("ApiKey"))==null)&&m.dirty||!(e.formGroup==null||(m=e.formGroup.get("ApiKey"))==null)&&m.touched)?7:-1),p(2),s("ngClass",A(8,we,(e.formGroup==null||(u=e.formGroup.get("VendorID"))==null?null:u.invalid)&&((e.formGroup==null||(u=e.formGroup.get("VendorID"))==null?null:u.dirty)||(e.formGroup==null||(u=e.formGroup.get("VendorID"))==null?null:u.touched)))),p(3),h(!(e.formGroup==null||(S=e.formGroup.get("VendorID"))==null)&&S.getError("required")&&(!(e.formGroup==null||(S=e.formGroup.get("VendorID"))==null)&&S.dirty||!(e.formGroup==null||(S=e.formGroup.get("VendorID"))==null)&&S.touched)?12:-1)}},dependencies:[J,E,I,ne,ee,D,R,x,te,oe],encapsulation:2});let t=n;return t})();var w=(function(t){return t.SHOPEE="https://resc.cloudinary.com/pos/image/upload/v1605249851/icons/Marketplace%20logo/shopee-logo.png",t.TOKOPEDIA="https://resc.cloudinary.com/pos/image/upload/v1605249861/icons/Marketplace%20logo/download_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vgHmFr1acSHNccCeF99uhtnzTPIvdmyXBhYFChQglU7XCMlgdsWL5t4Ed2m75Gq/QckEH+dROXKaoAlMM1+vW69PgD+tmDZrST8OMOoRyYC6HtRNwC0uq8ZF5okA+ekFUYEgivMiSSq8Ef9CK1c1zOoN8feEKm2j+pYDKALgwUKd4guBlShfToVdw3RQlcAps5+DCVIhoF5xS95MiRI8ejxf8CaCHBz1xZMMgAAAAASUVORK5CYII=",t.LAZADA="https://resc.cloudinary.com/pos/image/upload/v1641528116/icons/Marketplace%20logo/lazada.png",t.WOOCOMMERCE="https://resc.cloudinary.com/pos/image/upload/v1739236630/icons/marketplace_icons/woo.png",t.TIKTOK="https://resc.cloudinary.com/pos/image/upload/v1645761565/icons/Marketplace%20logo/tiktok-logo.png",t.SHOPIFY="https://resc.cloudinary.com/pos/image/upload/v1710725872/icons/marketplace_icons/Shopify_with_text.png",t.PLUGO="https://resc.cloudinary.com/pos/image/upload/v1739236577/icons/marketplace_icons/plugo_biglogo.png",t})(w||{});var $e=["*"],et=(t,n,g,i,d,e,a,m)=>({"btn-shopee":t,"btn-lazada":n,"btn-tiktok":g,"btn-woocommerce":i,"btn-tokopedia":d,"btn-shopify":e,"btn-kalcare":a,"btn-plugo":m});function tt(t,n){t&1&&(o(0,"div",1)(1,"span"),r(2,"BETA"),l()())}var Ge=(()=>{let n=class n{constructor(){this.disabled=B(!1),this.type=B(void 0),this.isBeta=B(!1),this.authorize=new me,this.channelType=y,this.buttonName=B("Authorize Account")}ngOnChanges(i){i.type&&(this.initChannelImage(),this.channelType.Shopee)}initChannelImage(){switch(this.type()){case y.Tokopedia:this.image=w.TOKOPEDIA;break;case y.WooCommerce:this.image=w.WOOCOMMERCE;break;case y.Shopee:this.image=w.SHOPEE;break;case y.Tiktok:this.image=w.TIKTOK;break;case y.Lazada:this.image=w.LAZADA;break;case y.Shopify:this.image=w.SHOPIFY;break;case y.Plugo:this.image=w.PLUGO;break}}onAuthorize(){this.authorize.emit()}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-channel-widget"]],inputs:{disabled:[1,"disabled"],type:[1,"type"],isBeta:[1,"isBeta"],buttonName:[1,"buttonName"]},outputs:{authorize:"onAuthorize"},features:[pe],ngContentSelectors:$e,decls:10,vars:13,consts:[[1,"card","h-100","ribbon-box"],[1,"ribbon","ribbon-top-right"],[1,"card-header","d-flex","align-items-center","justify-content-center",2,"height","120px","padding","0px"],[1,"w-50",3,"src"],[1,"card-body",2,"min-height","134px"],[1,"card-footer","p-4"],[1,"h4","fw-bold","btn","text-white","w-100","border-0",3,"click","ngClass"]],template:function(d,e){d&1&&(se(),o(0,"div",0),c(1,tt,3,0,"div",1),o(2,"div",2),v(3,"img",3),l(),o(4,"div",4)(5,"div"),ue(6),l()(),o(7,"div",5)(8,"a",6),f("click",function(){return e.onAuthorize()}),r(9),l()()()),d&2&&(p(),h(e.isBeta()?1:-1),p(2),s("src",e.image,de),p(5),s("ngClass",he(4,et,e.type()==e.channelType.Shopee,e.type()==e.channelType.Lazada,e.type()==e.channelType.Tiktok,e.type()==e.channelType.WooCommerce,e.type()==e.channelType.Tokopedia,e.type()==e.channelType.Shopify,e.type()==e.channelType.KalCare,e.type()==e.channelType.Plugo)),p(),Q(" ",e.buttonName()," "))},dependencies:[J,E],styles:['.bg-shopee[_ngcontent-%COMP%], .btn-shopee[_ngcontent-%COMP%]{background:linear-gradient(-180deg,#f53d2d,#f63)!important}.bg-tiktok[_ngcontent-%COMP%], .btn-tiktok[_ngcontent-%COMP%]{background:linear-gradient(-173deg,#ee1d52,#69c9d0)!important}.bg-woocommerce[_ngcontent-%COMP%], .btn-woocommerce[_ngcontent-%COMP%]{background:#8053b4!important}.pointer-help[_ngcontent-%COMP%]{cursor:help}.btn-bottom[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;left:.5rem;width:96%}.ribbon-box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:150px;height:150px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%]:before, .ribbon[_ngcontent-%COMP%]:after{position:absolute;z-index:1;content:"";display:block;border:5px solid #78c424}.ribbon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;display:block;width:225px;padding:15px 0;background-color:#78c424;box-shadow:0 5px 10px #0000001a;color:#fff;font:700 18px/1 Lato,sans-serif;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center}.ribbon-top-right[_ngcontent-%COMP%]{top:-10px;right:-10px}.ribbon-top-right[_ngcontent-%COMP%]:before, .ribbon-top-right[_ngcontent-%COMP%]:after{border-top-color:transparent;border-right-color:transparent}.ribbon-top-right[_ngcontent-%COMP%]:before{top:0;left:0}.ribbon-top-right[_ngcontent-%COMP%]:after{bottom:0;right:0}.ribbon-top-right[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{left:-25px;top:30px;transform:rotate(45deg)}.btn-shopify[_ngcontent-%COMP%]{background-color:#96bf48}.btn-tokopedia[_ngcontent-%COMP%]{background-color:#7f7f7f}.btn-lazada[_ngcontent-%COMP%]{background:linear-gradient(90deg,#ff7e5f,#fd04e3)!important}.btn-plugo[_ngcontent-%COMP%]{background-color:#f2a954}']});let t=n;return t})();function ot(t,n){if(t&1){let g=L();o(0,"div",3)(1,"div",6)(2,"app-channel-widget",9),f("onAuthorize",function(){b(g);let d=k();return _(d.openPlugoDialog())}),o(3,"p"),r(4,"Authorize DEALPOS to manage your Plugo Store."),l(),o(5,"p"),r(6," Configure Plugo x DealPOS integration by visiting this "),o(7,"a",14),r(8," article. "),l()()()()()}if(t&2){let g=k();p(2),s("type",g.channelType.Plugo)}}var ao=(()=>{let n=class n{constructor(){this.http=C(ge),this.router=C(Ce),this.dialog=C(_e),this.toastr=C(fe),this.disabled=!1,this.newFeatureVisible=!1,this.channelType=y}shopeeAuthorize(){this.http.post(G.ShopeeV2_URL).subscribe(i=>{window.open(i.Url,"_blank")})}tiktokAuthorize(){this.http.post(G.Tiktok_URL).subscribe(i=>{window.open(i.Url,"_blank")})}lazadaAuthorize(){this.http.post(G.Lazada_URL).subscribe(i=>{window.open(i.Url,"_blank")})}openTokopediaDialog(){this.dialog.open(ke,{data:{title:"Tokopedia"},width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddTokopedia,{ShopID:i}))).subscribe(i=>{this.onSuccessAddChannel()})}openShopifyDialog(){this.dialog.open(re,{data:{title:"Shopify",channelType:y.Shopify},width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddShopify,i))).subscribe(()=>{this.onSuccessAddChannel()})}openWooCommerceDialog(){this.dialog.open(re,{data:{title:"WooCommerce",channelType:y.WooCommerce},width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddWoocommerce,i))).subscribe(()=>{this.onSuccessAddChannel()})}openPlugoDialog(){this.dialog.open(Ee,{width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddPlugo,i))).subscribe(()=>{this.onSuccessAddChannel()})}contactSupport(){this.dialog.open(Te,{width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>{let d={URL:i.URL,Email:i.Email};return this.http.post("/api/ChannelAuthorization/Tokopedia_Intercom",d).pipe(ae(()=>i))})).subscribe(i=>{this.toastr.success("Your request has been received, we will be in touch at "+i.Email,"Thank you!")})}onSuccessAddChannel(){this.router.navigate(["/menu/channel"]),this.toastr.success("Channel has been added successfully","Success")}onToggleNewVersion(i){this.newFeatureVisible=i}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-marketplace-add"]],decls:56,vars:10,consts:[["headerTitle","Add New Channel",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/channel",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container"],[1,"row","mt-12"],[1,"col-md-4","ps-md-0"],[3,"onAuthorize","type"],[1,"col-md-4","pe-md-0"],["buttonName","Authorization is Closed",3,"type","disabled"],["type","button","href","https://seller-id.tokopedia.com/university/essay?knowledge_id=1189016095426305&default_language=id-ID&identity=1",1,"button","text-primary","fw-bold"],["buttonName","Register",3,"onAuthorize","type"],["target","_blank","href","https://support.dealpos.com/en/articles/5733019-woocommerce-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"],[1,"p-5","text-start"],[3,"change"],["href","https://support.dealpos.com/en/articles/10568056-plugo-authorization-in-dealpos-omnichannel-apps","target","_blank",1,"button","text-primary","fw-bold"]],template:function(d,e){d&1&&(o(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Cancel"),l()(),o(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"app-channel-widget",5),f("onAuthorize",function(){return e.shopeeAuthorize()}),o(9,"p"),r(10," Authorize DEALPOS versi V2 to manage your shopee, you will be redirected to shopee website to complete this process. "),l(),o(11,"p"),r(12," You will need to sign in to Shopee using your Seller account and confirm the authorization. "),l()()(),o(13,"div",6)(14,"app-channel-widget",7)(15,"p"),r(16," Starting from middle of Quarter 1 2025, Seller can no longer create or authorize their shop to Third Party Service without having a merge to their Tiktok Seller Account. "),l(),v(17,"br"),o(18,"p"),r(19," Please visit "),o(20,"a",8),r(21,"This Article From Tiktok x Tokopedia"),l(),r(22," to complete the merge process. After that seller can authorize their shop to DEALPOS only via Tiktok x Tokopedia Options. "),l()()(),o(23,"div",4)(24,"app-channel-widget",5),f("onAuthorize",function(){return e.tiktokAuthorize()}),o(25,"p"),r(26," Authorize DEALPOS to manage your Tiktok Seller, you will be redirected to Tiktok website to complete this process. "),l(),o(27,"p"),r(28," You will need to sign in to Tiktok using your Seller account and confirm the authorization. "),l()()()(),o(29,"div",3)(30,"div",6)(31,"app-channel-widget",9),f("onAuthorize",function(){return e.openWooCommerceDialog()}),o(32,"p"),r(33,"Authorize DEALPOS to manage your Personal Website."),l(),o(34,"p"),r(35," Configure woocommerce integration by visiting "),o(36,"a",10),r(37,"this article."),l()()()(),o(38,"div",6)(39,"app-channel-widget",5),f("onAuthorize",function(){return e.lazadaAuthorize()}),o(40,"p"),r(41," Authorize DEALPOS versi V2 to manage your lazada, you will be redirected to lazada website to complete this process. "),l(),o(42,"p"),r(43," You will need to sign in to Lazada using your Seller account and confirm the authorization. "),l()()(),o(44,"div",4)(45,"app-channel-widget",9),f("onAuthorize",function(){return e.openShopifyDialog()}),o(46,"p"),r(47,"Authorize DEALPOS to manage your Personal Website."),l(),o(48,"p"),r(49," Configure Shopify integration by visiting "),o(50,"a",11),r(51,"this article."),l()()()()(),c(52,ot,9,1,"div",3),l(),o(53,"div",12)(54,"mat-slide-toggle",13),f("change",function(m){return e.onToggleNewVersion(m.checked)}),r(55,"Show Beta Channel Integration "),l()()()()),d&2&&(s("hideSearchBox",!0)("hideSearchDropdown",!0),p(8),s("type",e.channelType.Shopee),p(6),s("type",e.channelType.Tokopedia)("disabled",e.disabled),p(10),s("type",e.channelType.Tiktok),p(7),s("type",e.channelType.WooCommerce),p(8),s("type",e.channelType.Lazada),p(6),s("type",e.channelType.Shopify),p(7),h(e.newFeatureVisible?52:-1))},dependencies:[Me,ye,Ge,ve],styles:["p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:24.48px}"]});let t=n;return t})();export{ao as MarketplaceAddComponent};
1
+ import{a as ve}from"./chunk-JKRELT7N.js";import{b as Me}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import{a as P,b as ie,c as _e,i as T,j as I}from"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-ZC526ERX.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as G}from"./chunk-AGBJEXIM.js";import{b as y,c as W}from"./chunk-UPRDDI4K.js";import{A as K,B as ne,c as D,e as V,h as R,i as x,j as X,l as O,m as $,n as ee,q as te,s as oe,w as Se,y as be}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import{b as fe,e as ge}from"./chunk-D6JH2KV4.js";import{d as Ce,e as ye}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{B as J,q as E}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Ac as ue,G as z,Hb as M,Ic as Z,Nc as r,Oa as pe,Pc as Q,Rc as j,Sc as q,Tc as Y,aa as F,ac as c,ad as A,bd as ce,cc as h,hc as s,hd as he,ic as o,jc as l,kc as v,mb as de,ob as p,ra as C,rc as L,tb as me,ud as B,v as ae,wc as f,ya as b,yc as k,za as _,zc as se}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var De=t=>({invalid:t});function Re(t,n){t&1&&(o(0,"small"),r(1," URL is required "),l())}function Oe(t,n){if(t&1&&(o(0,"div",10),c(1,Re,2,0,"small"),l()),t&2){k();let g=Z(10);p(),h(g.errors.required?1:-1)}}function Pe(t,n){t&1&&(o(0,"small"),r(1," Email is required "),l())}function Ie(t,n){t&1&&(o(0,"small"),r(1," Email is not valid "),l())}function Ve(t,n){if(t&1&&(o(0,"div",10),c(1,Pe,2,0,"small"),c(2,Ie,2,0,"small"),l()),t&2){k();let g=Z(16);p(),h(g.errors.required?1:-1),p(),h(g.errors.pattern?2:-1)}}var Te=(()=>{let n=class n{constructor(){this.dialogRef=C(P)}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new T,this.modalConfig.title="Fill data for Customer Support"}onSubmit(i){i!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-contact-support"]],decls:18,vars:9,consts:[["url","ngModel"],["email","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mx-4"],["for","customerURL"],[1,"input-group","mb-2"],[1,"input-group-prepend"],["id","tokopediaUrl",1,"border-start-0","rounded-start","input-group-text","pointer-default","bg-light",2,"height","58px",3,"ngClass"],["required","","type","text","id","customerURL","name","customerURL","title","customerURL",1,"form-control","border-start-0","customerUrl",3,"ngModelChange","ngModel"],[1,"text-danger"],["for","customerEmail"],["required","","type","text","id","customerEmail","name","customerEmail","title","customerEmail","pattern","\\b[\\w\\.-]+@[\\w\\.-]+\\.\\w{2,4}\\b",1,"form-control",3,"ngModelChange","ngModel"]],template:function(d,e){if(d&1){let a=L();o(0,"modal-material",2),f("onClose",function(){return b(a),_(e.onClose())})("onCancel",function(){return b(a),_(e.onClose())})("onOk",function(u){return b(a),_(e.onSubmit(u))}),o(1,"div",3)(2,"div",4)(3,"label",5),r(4,"Tokopedia URL"),l(),o(5,"div",6)(6,"div",7)(7,"span",8),r(8,"https://tokopedia.com/"),l()(),o(9,"input",9,0),Y("ngModelChange",function(u){return b(a),q(e.formData.URL,u)||(e.formData.URL=u),_(u)}),l()(),c(11,Oe,2,1,"div",10),o(12,"label",11),r(13,"Requester's Email"),l(),o(14,"div",6)(15,"input",12,1),Y("ngModelChange",function(u){return b(a),q(e.formData.Email,u)||(e.formData.Email=u),_(u)}),l()(),c(17,Ve,3,2,"div",10),l()()()}if(d&2){let a=Z(10),m=Z(16);s("dynamicValidated",!a.invalid&&!m.invalid)("config",e.modalConfig),p(7),s("ngClass",A(7,De,a.invalid&&(a.dirty||a.touched))),p(2),j("ngModel",e.formData.URL),p(2),h(a.invalid&&(a.dirty||a.touched)?11:-1),p(4),j("ngModel",e.formData.Email),p(2),h(m.invalid&&(m.dirty||m.touched)?17:-1)}},dependencies:[I,E,K,D,R,Se,be,$],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.input-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.input-group[_ngcontent-%COMP%] > input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#fb404b}.input-group[_ngcontent-%COMP%] > input.customerUrl[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.invalid[_ngcontent-%COMP%]{border-color:#fb404b}.pointer-default[_ngcontent-%COMP%]{cursor:default}"]});let t=n;return t})();var ke=(()=>{let n=class n{constructor(){this.dialogRef=C(P),this.data=C(ie)}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new T,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.shopID)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-modal-dialog-tokopedia"]],decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","ShopID","data-toggle","tooltip","title","Channel Name",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(d,e){if(d&1){let a=L();o(0,"modal-material",1),f("onClose",function(){return b(a),_(e.onClose())})("onCancel",function(){return b(a),_(e.onClose())})("onOk",function(){return b(a),_(e.onSubmit())}),o(1,"div",2)(2,"div",3)(3,"input",4,0),Y("ngModelChange",function(u){return b(a),q(e.shopID,u)||(e.shopID=u),_(u)}),l(),o(5,"label",5),r(6,"Shop ID"),l()()()()}d&2&&(s("dynamicValidated",e.shopID)("config",e.modalConfig),p(3),j("ngModel",e.shopID))},dependencies:[I,K,D,R,$],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=n;return t})();var Ue=t=>({"input-group":t}),Ne=(t,n)=>({"is-invalid":t,"input-shopify rounded-start":n}),Ae=t=>({"is-invalid":t});function ze(t,n){t&1&&(o(0,"label",3),r(1,"Shopify URL"),l())}function Fe(t,n){t&1&&(o(0,"label",3),r(1,"URL"),l())}function Le(t,n){t&1&&(o(0,"span",6),r(1,"myshopify.com"),l())}function We(t,n){if(t&1&&(o(0,"div"),r(1),l()),t&2){let g=k(2);p(),Q("",g.data==null?null:g.data.title," url is required")}}function Ke(t,n){if(t&1&&(o(0,"div",7),c(1,We,2,1,"div"),l()),t&2){let g,i=k();p(),h(!(i.formGroup==null||(g=i.formGroup.get("URL"))==null)&&g.getError("required")?1:-1)}}function Ze(t,n){t&1&&r(0," API Key ")}function je(t,n){t&1&&r(0," Consumer Key ")}function qe(t,n){t&1&&(r(0," ("),o(1,"a",11),r(2,"help center article"),l(),r(3,") "))}function Ye(t,n){t&1&&(o(0,"div",7),r(1,"API Key is required"),l())}function Be(t,n){t&1&&r(0," Admin API Access Token ")}function He(t,n){t&1&&r(0," Consumer Secret ")}function Qe(t,n){t&1&&(o(0,"div",7),r(1,"Consumer Secret is required"),l())}var re=(()=>{let n=class n{constructor(){this.dialogRef=C(P),this.data=C(ie),this.modalConfig=new T,this.urlCtrl=new O(null),this.channelType=y}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let i=[V.required];this.formGroup=new X({URL:new O(null,i),ConsumerKey:new O(null,[V.required]),ConsumerSecret:new O(null,[V.required])})}initModalConfig(){this.modalConfig=new T,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let i=this.formGroup?.get("URL")?.getError("pattern"),d=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||i&&d&&e){let m=this.formGroup.value;m=this.trimShopifyUrl(m),this.dialogRef.close(m)}}trimShopifyUrl(i){if(this.data?.channelType==this.channelType.Shopify){let d=i.URL?.trim()||"";d=d.replace(/^https?:\/\//,""),d.includes(".myshopify.com")||(d=`${d}.myshopify.com`),i.URL=d}return i}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-modal-register-channel"]],decls:23,vars:27,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],["for","shopid",1,"form-label","fw-bold","mb-2"],[1,"mb-8","has-validation",3,"ngClass"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control","form-input","rounded",3,"placeholder","ngClass"],["id","basic-addon2",1,"input-group-text","rounded-end","form-input","text-secondary"],[1,"invalid-feedback"],[1,"mb-8","has-validation"],["type","text","id","ConsumerKey","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["type","text","id","ConsumerSecret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"]],template:function(d,e){if(d&1&&(o(0,"modal-material",0),f("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),o(1,"div",1)(2,"form",2),c(3,ze,2,0,"label",3),o(4,"div",4),c(5,Fe,2,0,"label",3),v(6,"input",5),c(7,Le,2,0,"span",6),c(8,Ke,2,1,"div",7),l(),o(9,"div",8)(10,"label",3)(11,"span"),c(12,Ze,1,0)(13,je,1,0),l(),c(14,qe,4,0),l(),v(15,"input",9),c(16,Ye,2,0,"div",7),l(),o(17,"div",8)(18,"label",3),c(19,Be,1,0)(20,He,1,0),l(),v(21,"input",10),c(22,Qe,2,0,"div",7),l()()()()),d&2){let a,m,u,S,U,N;s("config",e.modalConfig),p(2),s("formGroup",e.formGroup),p(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),p(),s("ngClass",A(18,Ue,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),p(),h((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),p(),s("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",ce(20,Ne,(e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.invalid)&&((e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.dirty)||(e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),p(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),p(),h(!(e.formGroup==null||(m=e.formGroup.get("URL"))==null)&&m.invalid&&(!(e.formGroup==null||(m=e.formGroup.get("URL"))==null)&&m.dirty||!(e.formGroup==null||(m=e.formGroup.get("URL"))==null)&&m.touched)?8:-1),p(4),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),p(2),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),p(),s("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[Create an app and copy the API Key]":"[Create an app and copy the Consumer Key]")("ngClass",A(23,Ae,(e.formGroup==null||(u=e.formGroup.get("ConsumerKey"))==null?null:u.invalid)&&((e.formGroup==null||(u=e.formGroup.get("ConsumerKey"))==null?null:u.dirty)||(e.formGroup==null||(u=e.formGroup.get("ConsumerKey"))==null?null:u.touched)))),p(),h(!(e.formGroup==null||(S=e.formGroup.get("ConsumerKey"))==null)&&S.getError("required")&&(!(e.formGroup==null||(S=e.formGroup.get("ConsumerKey"))==null)&&S.dirty||!(e.formGroup==null||(S=e.formGroup.get("ConsumerKey"))==null)&&S.touched)?16:-1),p(3),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),p(2),s("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",A(25,Ae,(e.formGroup==null||(U=e.formGroup.get("ConsumerSecret"))==null?null:U.invalid)&&((e.formGroup==null||(U=e.formGroup.get("ConsumerSecret"))==null?null:U.dirty)||(e.formGroup==null||(U=e.formGroup.get("ConsumerSecret"))==null?null:U.touched)))),p(),h(!(e.formGroup==null||(N=e.formGroup.get("ConsumerSecret"))==null)&&N.getError("required")&&(!(e.formGroup==null||(N=e.formGroup.get("ConsumerSecret"))==null)&&N.dirty||!(e.formGroup==null||(N=e.formGroup.get("ConsumerSecret"))==null)&&N.touched)?22:-1)}},dependencies:[I,K,ee,D,R,x,ne,te,oe,E],styles:[".input-shopify[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.form-input[_ngcontent-%COMP%]{min-height:3.625rem}"]});let t=n;return t})();var we=t=>({"is-invalid":t});function xe(t,n){t&1&&(o(0,"div",6),r(1,"Api Key is required"),l())}function Xe(t,n){t&1&&(o(0,"div",6),r(1,"Vendor ID is required"),l())}var Ee=(()=>{let n=class n{constructor(){this.dialogRef=C(P),this.config=new T,this.initModalConfig(),this.initFormGroup()}initModalConfig(){this.config=new T,this.config.title="Register Plugo",this.config.okText="SAVE"}initFormGroup(){this.formGroup=new X({ApiKey:new O(null,[V.required]),VendorID:new O(null,[V.required])})}onClose(){this.dialogRef.close()}onOk(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;let i=this.formGroup.value;this.dialogRef.close(i)}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-modal-register-plugo"]],decls:13,vars:10,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],[1,"form-label-group","has-validation"],["type","text","id","ApiKey","placeholder","Api Key","name","ApiKey","title","Api Key","formControlName","ApiKey",1,"form-control",3,"ngClass"],["for","ApiKey"],[1,"invalid-feedback"],["type","text","id","VendorID","placeholder","Vendor ID","name","VendorID","title","Vendor ID","formControlName","VendorID",1,"form-control",3,"ngClass"],["for","VendorID"]],template:function(d,e){if(d&1&&(o(0,"modal-material",0),f("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onOk()}),o(1,"div",1)(2,"form",2)(3,"div",3),v(4,"input",4),o(5,"label",5),r(6,"Api Key"),l(),c(7,xe,2,0,"div",6),l(),o(8,"div",3),v(9,"input",7),o(10,"label",8),r(11,"Vendor ID"),l(),c(12,Xe,2,0,"div",6),l()()()()),d&2){let a,m,u,S;s("config",e.config),p(2),s("formGroup",e.formGroup),p(2),s("ngClass",A(6,we,(e.formGroup==null||(a=e.formGroup.get("ApiKey"))==null?null:a.invalid)&&((e.formGroup==null||(a=e.formGroup.get("ApiKey"))==null?null:a.dirty)||(e.formGroup==null||(a=e.formGroup.get("ApiKey"))==null?null:a.touched)))),p(3),h(!(e.formGroup==null||(m=e.formGroup.get("ApiKey"))==null)&&m.getError("required")&&(!(e.formGroup==null||(m=e.formGroup.get("ApiKey"))==null)&&m.dirty||!(e.formGroup==null||(m=e.formGroup.get("ApiKey"))==null)&&m.touched)?7:-1),p(2),s("ngClass",A(8,we,(e.formGroup==null||(u=e.formGroup.get("VendorID"))==null?null:u.invalid)&&((e.formGroup==null||(u=e.formGroup.get("VendorID"))==null?null:u.dirty)||(e.formGroup==null||(u=e.formGroup.get("VendorID"))==null?null:u.touched)))),p(3),h(!(e.formGroup==null||(S=e.formGroup.get("VendorID"))==null)&&S.getError("required")&&(!(e.formGroup==null||(S=e.formGroup.get("VendorID"))==null)&&S.dirty||!(e.formGroup==null||(S=e.formGroup.get("VendorID"))==null)&&S.touched)?12:-1)}},dependencies:[J,E,I,ne,ee,D,R,x,te,oe],encapsulation:2});let t=n;return t})();var w=(function(t){return t.SHOPEE="https://resc.cloudinary.com/pos/image/upload/v1605249851/icons/Marketplace%20logo/shopee-logo.png",t.TOKOPEDIA="https://resc.cloudinary.com/pos/image/upload/v1605249861/icons/Marketplace%20logo/download_tkpd.png",t.KAL_CARE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYwAAAB/CAMAAADLlgV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ROXKaoAlMM1+vW69PgD+tmDZrST8OMOoRyYC6HtRNwC0uq8ZF5okA+ekFUYEgivMiSSq8Ef9CK1c1zOoN8feEKm2j+pYDKALgwUKd4guBlShfToVdw3RQlcAps5+DCVIhoF5xS95MiRI8ejxf8CaCHBz1xZMMgAAAAASUVORK5CYII=",t.LAZADA="https://resc.cloudinary.com/pos/image/upload/v1641528116/icons/Marketplace%20logo/lazada.png",t.WOOCOMMERCE="https://resc.cloudinary.com/pos/image/upload/v1739236630/icons/marketplace_icons/woo.png",t.TIKTOK="https://resc.cloudinary.com/pos/image/upload/v1645761565/icons/Marketplace%20logo/tiktok-logo.png",t.SHOPIFY="https://resc.cloudinary.com/pos/image/upload/v1710725872/icons/marketplace_icons/Shopify_with_text.png",t.PLUGO="https://resc.cloudinary.com/pos/image/upload/v1739236577/icons/marketplace_icons/plugo_biglogo.png",t})(w||{});var $e=["*"],et=(t,n,g,i,d,e,a,m)=>({"btn-shopee":t,"btn-lazada":n,"btn-tiktok":g,"btn-woocommerce":i,"btn-tokopedia":d,"btn-shopify":e,"btn-kalcare":a,"btn-plugo":m});function tt(t,n){t&1&&(o(0,"div",1)(1,"span"),r(2,"BETA"),l()())}var Ge=(()=>{let n=class n{constructor(){this.disabled=B(!1),this.type=B(void 0),this.isBeta=B(!1),this.authorize=new me,this.channelType=y,this.buttonName=B("Authorize Account")}ngOnChanges(i){i.type&&(this.initChannelImage(),this.channelType.Shopee)}initChannelImage(){switch(this.type()){case y.Tokopedia:this.image=w.TOKOPEDIA;break;case y.WooCommerce:this.image=w.WOOCOMMERCE;break;case y.Shopee:this.image=w.SHOPEE;break;case y.Tiktok:this.image=w.TIKTOK;break;case y.Lazada:this.image=w.LAZADA;break;case y.Shopify:this.image=w.SHOPIFY;break;case y.Plugo:this.image=w.PLUGO;break}}onAuthorize(){this.authorize.emit()}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-channel-widget"]],inputs:{disabled:[1,"disabled"],type:[1,"type"],isBeta:[1,"isBeta"],buttonName:[1,"buttonName"]},outputs:{authorize:"onAuthorize"},features:[pe],ngContentSelectors:$e,decls:10,vars:13,consts:[[1,"card","h-100","ribbon-box"],[1,"ribbon","ribbon-top-right"],[1,"card-header","d-flex","align-items-center","justify-content-center",2,"height","120px","padding","0px"],[1,"w-50",3,"src"],[1,"card-body",2,"min-height","134px"],[1,"card-footer","p-4"],[1,"h4","fw-bold","btn","text-white","w-100","border-0",3,"click","ngClass"]],template:function(d,e){d&1&&(se(),o(0,"div",0),c(1,tt,3,0,"div",1),o(2,"div",2),v(3,"img",3),l(),o(4,"div",4)(5,"div"),ue(6),l()(),o(7,"div",5)(8,"a",6),f("click",function(){return e.onAuthorize()}),r(9),l()()()),d&2&&(p(),h(e.isBeta()?1:-1),p(2),s("src",e.image,de),p(5),s("ngClass",he(4,et,e.type()==e.channelType.Shopee,e.type()==e.channelType.Lazada,e.type()==e.channelType.Tiktok,e.type()==e.channelType.WooCommerce,e.type()==e.channelType.Tokopedia,e.type()==e.channelType.Shopify,e.type()==e.channelType.KalCare,e.type()==e.channelType.Plugo)),p(),Q(" ",e.buttonName()," "))},dependencies:[J,E],styles:['.bg-shopee[_ngcontent-%COMP%], .btn-shopee[_ngcontent-%COMP%]{background:linear-gradient(-180deg,#f53d2d,#f63)!important}.bg-tiktok[_ngcontent-%COMP%], .btn-tiktok[_ngcontent-%COMP%]{background:linear-gradient(-173deg,#ee1d52,#69c9d0)!important}.bg-woocommerce[_ngcontent-%COMP%], .btn-woocommerce[_ngcontent-%COMP%]{background:#8053b4!important}.pointer-help[_ngcontent-%COMP%]{cursor:help}.btn-bottom[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;left:.5rem;width:96%}.ribbon-box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:150px;height:150px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%]:before, .ribbon[_ngcontent-%COMP%]:after{position:absolute;z-index:1;content:"";display:block;border:5px solid #78c424}.ribbon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;display:block;width:225px;padding:15px 0;background-color:#78c424;box-shadow:0 5px 10px #0000001a;color:#fff;font:700 18px/1 Lato,sans-serif;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center}.ribbon-top-right[_ngcontent-%COMP%]{top:-10px;right:-10px}.ribbon-top-right[_ngcontent-%COMP%]:before, .ribbon-top-right[_ngcontent-%COMP%]:after{border-top-color:transparent;border-right-color:transparent}.ribbon-top-right[_ngcontent-%COMP%]:before{top:0;left:0}.ribbon-top-right[_ngcontent-%COMP%]:after{bottom:0;right:0}.ribbon-top-right[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{left:-25px;top:30px;transform:rotate(45deg)}.btn-shopify[_ngcontent-%COMP%]{background-color:#96bf48}.btn-tokopedia[_ngcontent-%COMP%]{background-color:#7f7f7f}.btn-lazada[_ngcontent-%COMP%]{background:linear-gradient(90deg,#ff7e5f,#fd04e3)!important}.btn-plugo[_ngcontent-%COMP%]{background-color:#f2a954}']});let t=n;return t})();function ot(t,n){if(t&1){let g=L();o(0,"div",3)(1,"div",6)(2,"app-channel-widget",9),f("onAuthorize",function(){b(g);let d=k();return _(d.openPlugoDialog())}),o(3,"p"),r(4,"Authorize DEALPOS to manage your Plugo Store."),l(),o(5,"p"),r(6," Configure Plugo x DealPOS integration by visiting this "),o(7,"a",14),r(8," article. "),l()()()()()}if(t&2){let g=k();p(2),s("type",g.channelType.Plugo)}}var ao=(()=>{let n=class n{constructor(){this.http=C(ge),this.router=C(Ce),this.dialog=C(_e),this.toastr=C(fe),this.disabled=!1,this.newFeatureVisible=!1,this.channelType=y}shopeeAuthorize(){this.http.post(G.ShopeeV2_URL).subscribe(i=>{window.open(i.Url,"_blank")})}tiktokAuthorize(){this.http.post(G.Tiktok_URL).subscribe(i=>{window.open(i.Url,"_blank")})}lazadaAuthorize(){this.http.post(G.Lazada_URL).subscribe(i=>{window.open(i.Url,"_blank")})}openTokopediaDialog(){this.dialog.open(ke,{data:{title:"Tokopedia"},width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddTokopedia,{ShopID:i}))).subscribe(i=>{this.onSuccessAddChannel()})}openShopifyDialog(){this.dialog.open(re,{data:{title:"Shopify",channelType:y.Shopify},width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddShopify,i))).subscribe(()=>{this.onSuccessAddChannel()})}openWooCommerceDialog(){this.dialog.open(re,{data:{title:"WooCommerce",channelType:y.WooCommerce},width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddWoocommerce,i))).subscribe(()=>{this.onSuccessAddChannel()})}openPlugoDialog(){this.dialog.open(Ee,{width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>this.http.post(G.AddPlugo,i))).subscribe(()=>{this.onSuccessAddChannel()})}contactSupport(){this.dialog.open(Te,{width:"30%"}).afterClosed().pipe(z(i=>W.IsNotEmpty(i)),F(i=>{let d={URL:i.URL,Email:i.Email};return this.http.post("/api/ChannelAuthorization/Tokopedia_Intercom",d).pipe(ae(()=>i))})).subscribe(i=>{this.toastr.success("Your request has been received, we will be in touch at "+i.Email,"Thank you!")})}onSuccessAddChannel(){this.router.navigate(["/menu/channel"]),this.toastr.success("Channel has been added successfully","Success")}onToggleNewVersion(i){this.newFeatureVisible=i}};n.\u0275fac=function(d){return new(d||n)},n.\u0275cmp=M({type:n,selectors:[["app-marketplace-add"]],decls:56,vars:10,consts:[["headerTitle","Add New Channel",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/channel",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container"],[1,"row","mt-12"],[1,"col-md-4","ps-md-0"],[3,"onAuthorize","type"],[1,"col-md-4","pe-md-0"],["buttonName","Authorization is Closed",3,"type","disabled"],["type","button","href","https://seller-id.tokopedia.com/university/essay?knowledge_id=1189016095426305&default_language=id-ID&identity=1",1,"button","text-primary","fw-bold"],["buttonName","Register",3,"onAuthorize","type"],["target","_blank","href","https://support.dealpos.com/en/articles/5733019-woocommerce-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"],[1,"p-5","text-start"],[3,"change"],["href","https://support.dealpos.com/en/articles/10568056-plugo-authorization-in-dealpos-omnichannel-apps","target","_blank",1,"button","text-primary","fw-bold"]],template:function(d,e){d&1&&(o(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Cancel"),l()(),o(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"app-channel-widget",5),f("onAuthorize",function(){return e.shopeeAuthorize()}),o(9,"p"),r(10," Authorize DEALPOS versi V2 to manage your shopee, you will be redirected to shopee website to complete this process. "),l(),o(11,"p"),r(12," You will need to sign in to Shopee using your Seller account and confirm the authorization. "),l()()(),o(13,"div",6)(14,"app-channel-widget",7)(15,"p"),r(16," Starting from middle of Quarter 1 2025, Seller can no longer create or authorize their shop to Third Party Service without having a merge to their Tiktok Seller Account. "),l(),v(17,"br"),o(18,"p"),r(19," Please visit "),o(20,"a",8),r(21,"This Article From Tiktok x Tokopedia"),l(),r(22," to complete the merge process. After that seller can authorize their shop to DEALPOS only via Tiktok x Tokopedia Options. "),l()()(),o(23,"div",4)(24,"app-channel-widget",5),f("onAuthorize",function(){return e.tiktokAuthorize()}),o(25,"p"),r(26," Authorize DEALPOS to manage your Tiktok Seller, you will be redirected to Tiktok website to complete this process. "),l(),o(27,"p"),r(28," You will need to sign in to Tiktok using your Seller account and confirm the authorization. "),l()()()(),o(29,"div",3)(30,"div",6)(31,"app-channel-widget",9),f("onAuthorize",function(){return e.openWooCommerceDialog()}),o(32,"p"),r(33,"Authorize DEALPOS to manage your Personal Website."),l(),o(34,"p"),r(35," Configure woocommerce integration by visiting "),o(36,"a",10),r(37,"this article."),l()()()(),o(38,"div",6)(39,"app-channel-widget",5),f("onAuthorize",function(){return e.lazadaAuthorize()}),o(40,"p"),r(41," Authorize DEALPOS versi V2 to manage your lazada, you will be redirected to lazada website to complete this process. "),l(),o(42,"p"),r(43," You will need to sign in to Lazada using your Seller account and confirm the authorization. "),l()()(),o(44,"div",4)(45,"app-channel-widget",9),f("onAuthorize",function(){return e.openShopifyDialog()}),o(46,"p"),r(47,"Authorize DEALPOS to manage your Personal Website."),l(),o(48,"p"),r(49," Configure Shopify integration by visiting "),o(50,"a",11),r(51,"this article."),l()()()()(),c(52,ot,9,1,"div",3),l(),o(53,"div",12)(54,"mat-slide-toggle",13),f("change",function(m){return e.onToggleNewVersion(m.checked)}),r(55,"Show Beta Channel Integration "),l()()()()),d&2&&(s("hideSearchBox",!0)("hideSearchDropdown",!0),p(8),s("type",e.channelType.Shopee),p(6),s("type",e.channelType.Tokopedia)("disabled",e.disabled),p(10),s("type",e.channelType.Tiktok),p(7),s("type",e.channelType.WooCommerce),p(8),s("type",e.channelType.Lazada),p(6),s("type",e.channelType.Shopify),p(7),h(e.newFeatureVisible?52:-1))},dependencies:[Me,ye,Ge,ve],styles:["p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:24.48px}"]});let t=n;return t})();export{ao as MarketplaceAddComponent};
@@ -1 +1 @@
1
- import{a as it,b as ct}from"./chunk-FTIUJUXI.js";import"./chunk-6F62N7RZ.js";import{e as rt}from"./chunk-KTTKHI2N.js";import"./chunk-3HME327V.js";import{a as ut}from"./chunk-TOK5EWN4.js";import{a as T}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import{d as nt}from"./chunk-C2LAQOUW.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as mt}from"./chunk-5WQ3LCWP.js";import"./chunk-DLHIDOS3.js";import{a as ht}from"./chunk-27DIE2YS.js";import{a as ot}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{b as et}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as X,h as tt}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import{f as lt,g as st,h as dt,i as pt}from"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.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 D}from"./chunk-ZSUWHVKX.js";import{h as Z}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as j,c as z}from"./chunk-5UFP37GQ.js";import{b as F,c as _}from"./chunk-UPRDDI4K.js";import{A as Q,c as Y,h as q,m as K}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as W,e as H}from"./chunk-MM7SAZOU.js";import{d as $}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as y,Hb as U,Ic as O,Nb as A,Nc as w,Pc as V,Rc as E,Sc as N,Tc as R,aa as B,ac as P,ad as I,cc as f,ec as L,fc as G,gc as J,hc as g,ic as h,jc as u,kc as b,ob as r,oc as v,pc as M,ra as C,rc as S,wc as m,ya as l,yc as a,za as s}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var k=o=>[o];function _t(o,c){if(o&1){let t=S();h(0,"button",15),m("click",function(){l(t);let i=a(2);return s(i.onDetachMultipleProduct())}),b(1,"i",16),w(2),u()}if(o&2){let t,e=a(2);r(2),V("Detach (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function gt(o,c){if(o&1&&(v(0),P(1,_t,3,1,"button",14),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function Ct(o,c){if(o&1){let t=S();h(0,"button",18),m("click",function(){l(t);let i=a(3);return s(i.onOpenScanDialog())}),b(1,"i",19),w(2," Scan Channel "),u()}}function Pt(o,c){if(o&1&&P(0,Ct,3,0,"button",17),o&2){let t=a(2);f(t.productService.hasSelection(t.products)?-1:0)}}function ft(o,c){if(o&1&&(v(0),P(1,Pt,1,1),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?-1:1)}}function St(o,c){if(o&1){let t=S();h(0,"button",21),m("click",function(){l(t);let i=a(2);return s(i.onScanMultipleProduct())}),b(1,"i",19),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Scan (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function xt(o,c){if(o&1&&(v(0),P(1,St,3,1,"button",20),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)&&t.multipeScanChannels.length>0?1:-1)}}function bt(o,c){if(o&1){let t=S();h(0,"button",23),m("click",function(){l(t);let i=a(2);return s(i.onUploadMultipleProduct())}),b(1,"i",24),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Upload (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function wt(o,c){if(o&1&&(v(0),P(1,bt,3,1,"button",22),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function yt(o,c){if(o&1){let t=S();h(0,"div",11)(1,"app-product-card",25),m("onUpload",function(){let i=l(t).$implicit,n=a();return s(n.onUploadToMultipleChannel(i))})("onScan",function(){let i=l(t).$implicit,n=a();return s(n.onScanSingleProduct(i))})("onDescEvent",function(){let i=l(t).$index,n=a();return s(n.onOpenDialogVariant(i))})("onCheckBoxChange",function(i){let n=l(t).$implicit;return s(n.selected=i)})("onDetach",function(){let i=l(t).$implicit,n=a();return s(n.onDetachProduct([i]))}),u()()}if(o&2){let t=c.$implicit,e=a();r(),g("productId",t.ID)("title",t==null?null:t.Name)("image",t==null?null:t.ThumbnailUrl)("description",(t==null||t.Variants==null?null:t.Variants.length)>1?(t==null||t.Variants==null?null:t.Variants.length)+" Variants":null)("channels",e.productService.getChannelProduct(t))("code",e.getVariantCode(t==null?null:t.Variants))("showCheckBox",(t==null?null:t.Channel.length)<e.channelOptions.length)("scanButton",!0)("uploadButton",t==null?null:t.hasUpload)("imageForZoom",t==null?null:t.ImageUrl)("detachButton",(t==null||t.Channel==null?null:t.Channel.length)>0)}}function vt(o,c){o&1&&(h(0,"div",12),b(1,"app-empty-state"),u())}function Mt(o,c){if(o&1){let t=S();h(0,"div",13)(1,"div",26)(2,"app-custom-paginator",27),m("next",function(){l(t);let i=a();return s(i.getProducts())})("previous",function(){l(t);let i=a();return s(i.getProducts())}),u()()()}if(o&2){let t=a();r(2),g("filter",t.searchFilter)("totaldata",t.products==null?null:t.products.length)("paginationTotal",t.rowCount)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}var ie=(()=>{let c=class c{constructor(){this.http=C(H),this.toastr=C(W),this.dialog=C(X),this.productService=C(ot),this.authService=C(Z),this.uploadProductService=C(rt),this.route=C($),this.searchFilter=new at,this.products=[],this.rowCount=0,this.multipeScanChannels=[],this.scanProductRole=D.ProductScan,this.uploadProductRole=D.ProductUpload,this.detachProductRole=D.ProductDetach,this.getLoaderPage(),this.channelOptions=this.authService.getChannels(),this.initMultiScanChannels()}getLoaderPage(){this.productService.LoadInPOS().subscribe(e=>{this.Categories=e.Options.Categories,this.searchFilter.PageNumber=e.Filter.PageNumber,this.searchFilter.RowCount=e.Filter.RowCount,this.searchFilter.ChannelID=null,this.searchFilter.Category=e.Filter.Category,this.searchFilter.PageSize=100,this.getProducts()})}initMultiScanChannels(){this.multipeScanChannels=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok])}getProducts(){let e={PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount,text:this.searchFilter.text,Category:this.searchFilter.Category,From:this.startDate,To:this.endDate};this.http.post("/api/product/GetInPOS",e).subscribe(i=>{this.products=i.Data,this.rowCount=i.Total==null?this.searchFilter.RowCount:i.Total.toString(),this.products=this.productService.checkProductHasUploadBtn(this.products,this.channelOptions)})}onOpenScanDialog(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:e,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID,this.searchFilter.ScanFull=n.ScanFull,this.searchFilter.UpdatedProduct=n.UpdatedProduct,this.searchFilter.Async=n.Async,this.scanAllProduct()})}scanAllProduct(){if(this.searchFilter.ChannelID==null){this.toastr.error("Please Select Channel","Error");return}this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{if(this.searchFilter.Async)this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"});else{this.getLoaderPage();let i=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.successToastrScanAllProduct(e,i,!this.searchFilter.UpdatedProduct)}})}onOpenDialogVariant(e){let i=this.products[e]?.Variants||[];this.dialog.open(it,{data:{title:this.products[e].Name,variants:i}})}onUploadMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.uploadProductService.setSelectedProduct(e),this.route.navigate(["/menu/products/upload"])}onUploadToMultipleChannel(e){this.uploadProductService.setSelectedProduct([e]),this.route.navigate(["/menu/products/upload"])}searchProduct(e){this.searchFilter.text=e,this.getProducts()}onScanMultipleProduct(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty;let i=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok]);this.dialog.open(T,{data:{filter:e,channelOptions:i,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(p=>_.IsNotEmpty(p))).subscribe(p=>{this.searchFilter.ChannelID=p.ChannelID,this.searchFilter.ScanFull=p.ScanFull,this.searchFilter.UpdatedProduct=p.UpdatedProduct;let x=this.productService.selectedProduct(this.products),d=this.productService.getVariantCodesProducts(x);this.scanSingleProduct(d)})}onScanSingleProduct(e){let i=JSON.parse(JSON.stringify(this.searchFilter));i.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:i,channelOptions:this.channelOptions,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID;let p=this.productService.getVariantCodesProduct(e);this.scanSingleProduct(p)})}scanSingleProduct(e){this.productService.scanSingle(this.searchFilter.ChannelID,e).subscribe({next:i=>{if(i)this.toastr.success("Successfully Scan ","Success");else{let n=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.toastr.error(`This product is not existed in ${n?.Name} `,"Error")}this.searchFilter.ChannelID=_.GuidEMpty,i&&this.getProducts()},error:i=>{this.searchFilter.ChannelID=_.GuidEMpty}})}getVariantCode(e=[]){let i;return e?.length>1&&(i=(e[0].model?e[0].model:"")+e[0].Code),e?.length==1&&(i=e[0].Code),i}onDetachProduct(e){let i=[];e.forEach(n=>{n.Channel=_.assignChannelLogo(n.Channel),i.push(...n.Channel)}),this.dialog.open(ct,{width:"600px",data:[...i]}).afterClosed().pipe(y(n=>_.IsNotEmpty(n)),B(n=>this.productService.detachProduct(n))).subscribe(n=>{this.toastr.success(n.Message,tt.Success),this.getProducts()})}onDetachMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.onDetachProduct(e)}};c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=U({type:c,selectors:[["app-in-pos"]],decls:24,vars:21,consts:[["picker",""],["description","All products which is already available in POS",3,"onSubmit","headerTitle"],[4,"ngxPermissionsOnly"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","Name","bindValue","Name","placeholder","Select Category",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"mt-5"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[3,"onUpload","onScan","onDescEvent","onCheckBoxChange","onDetach","productId","title","image","description","channels","code","showCheckBox","scanButton","uploadButton","imageForZoom","detachButton"],[1,"col-md-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"]],template:function(i,n){if(i&1){let p=S();h(0,"mainpanel",1),m("onSubmit",function(d){return l(p),s(n.searchProduct(d))}),h(1,"actions"),A(2,gt,2,1,"ng-container",2)(3,ft,2,1,"ng-container",2)(4,xt,2,1,"ng-container",2)(5,wt,2,1,"ng-container",2),u(),h(6,"filters")(7,"div")(8,"label",3),w(9,"Category"),u(),h(10,"ng-select",4),m("ngModelChange",function(d){return l(p),s(n.searchFilter.Category=d)}),u()(),h(11,"div",5)(12,"mat-date-range-input",6)(13,"input",7),R("ngModelChange",function(d){return l(p),N(n.startDate,d)||(n.startDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u(),h(14,"input",8),R("ngModelChange",function(d){return l(p),N(n.endDate,d)||(n.endDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u()(),b(15,"mat-date-range-picker",null,0),u()(),h(17,"content")(18,"div",9)(19,"div",10),G(20,yt,2,11,"div",11,L),P(22,vt,2,0,"div",12),u(),P(23,Mt,3,5,"div",13),u()()()}if(i&2){let p=O(16);g("headerTitle","In POS ("+n.rowCount+")"),r(2),g("ngxPermissionsOnly",I(13,k,n.detachProductRole)),r(),g("ngxPermissionsOnly",I(15,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(17,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(19,k,n.scanProductRole)),r(5),g("clearable",!0)("items",n.Categories)("ngModel",n.searchFilter.Category),r(2),g("rangePicker",p),r(),E("ngModel",n.startDate),r(),E("ngModel",n.endDate),r(6),J(n.products),r(2),f(n.products.length==0?22:-1),r(),f(n.products.length>0?23:-1)}},dependencies:[et,Q,Y,q,K,z,j,nt,lt,st,dt,pt,ut,ht,mt],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}.img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}"]});let o=c;return o})();export{ie as InPosComponent};
1
+ import{a as it,b as ct}from"./chunk-Z3PLQ27X.js";import"./chunk-VG66LDXQ.js";import{e as rt}from"./chunk-KNE2UYQ2.js";import"./chunk-TQROQOXU.js";import{a as ut}from"./chunk-IQGRGC3E.js";import{a as T}from"./chunk-KOQLZV3N.js";import"./chunk-6F37VT6M.js";import"./chunk-2EGTHH3W.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import{d as nt}from"./chunk-BZWZ64N5.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as mt}from"./chunk-ZZYFVEJO.js";import"./chunk-DLHIDOS3.js";import{a as ht}from"./chunk-27DIE2YS.js";import{a as ot}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{b as et}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import{c as X,h as tt}from"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import{f as lt,g as st,h as dt,i as pt}from"./chunk-K4Q33QIR.js";import"./chunk-JRCXHF2X.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"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as Z}from"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as j,c as z}from"./chunk-NB2H6KA7.js";import{b as F,c as _}from"./chunk-UPRDDI4K.js";import{A as Q,c as Y,h as q,m as K}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as W,e as H}from"./chunk-D6JH2KV4.js";import{d as $}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{G as y,Hb as U,Ic as O,Nb as A,Nc as w,Pc as V,Rc as E,Sc as N,Tc as R,aa as B,ac as P,ad as I,cc as f,ec as L,fc as G,gc as J,hc as g,ic as h,jc as u,kc as b,ob as r,oc as v,pc as M,ra as C,rc as S,wc as m,ya as l,yc as a,za as s}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var k=o=>[o];function _t(o,c){if(o&1){let t=S();h(0,"button",15),m("click",function(){l(t);let i=a(2);return s(i.onDetachMultipleProduct())}),b(1,"i",16),w(2),u()}if(o&2){let t,e=a(2);r(2),V("Detach (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function gt(o,c){if(o&1&&(v(0),P(1,_t,3,1,"button",14),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function Ct(o,c){if(o&1){let t=S();h(0,"button",18),m("click",function(){l(t);let i=a(3);return s(i.onOpenScanDialog())}),b(1,"i",19),w(2," Scan Channel "),u()}}function Pt(o,c){if(o&1&&P(0,Ct,3,0,"button",17),o&2){let t=a(2);f(t.productService.hasSelection(t.products)?-1:0)}}function ft(o,c){if(o&1&&(v(0),P(1,Pt,1,1),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?-1:1)}}function St(o,c){if(o&1){let t=S();h(0,"button",21),m("click",function(){l(t);let i=a(2);return s(i.onScanMultipleProduct())}),b(1,"i",19),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Scan (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function xt(o,c){if(o&1&&(v(0),P(1,St,3,1,"button",20),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)&&t.multipeScanChannels.length>0?1:-1)}}function bt(o,c){if(o&1){let t=S();h(0,"button",23),m("click",function(){l(t);let i=a(2);return s(i.onUploadMultipleProduct())}),b(1,"i",24),w(2),u()}if(o&2){let t,e=a(2);r(2),V(" Upload (",(t=e.productService.selectedProduct(e.products))==null?null:t.length,") ")}}function wt(o,c){if(o&1&&(v(0),P(1,bt,3,1,"button",22),M()),o&2){let t=a();r(),f(t.productService.hasSelection(t.products)?1:-1)}}function yt(o,c){if(o&1){let t=S();h(0,"div",11)(1,"app-product-card",25),m("onUpload",function(){let i=l(t).$implicit,n=a();return s(n.onUploadToMultipleChannel(i))})("onScan",function(){let i=l(t).$implicit,n=a();return s(n.onScanSingleProduct(i))})("onDescEvent",function(){let i=l(t).$index,n=a();return s(n.onOpenDialogVariant(i))})("onCheckBoxChange",function(i){let n=l(t).$implicit;return s(n.selected=i)})("onDetach",function(){let i=l(t).$implicit,n=a();return s(n.onDetachProduct([i]))}),u()()}if(o&2){let t=c.$implicit,e=a();r(),g("productId",t.ID)("title",t==null?null:t.Name)("image",t==null?null:t.ThumbnailUrl)("description",(t==null||t.Variants==null?null:t.Variants.length)>1?(t==null||t.Variants==null?null:t.Variants.length)+" Variants":null)("channels",e.productService.getChannelProduct(t))("code",e.getVariantCode(t==null?null:t.Variants))("showCheckBox",(t==null?null:t.Channel.length)<e.channelOptions.length)("scanButton",!0)("uploadButton",t==null?null:t.hasUpload)("imageForZoom",t==null?null:t.ImageUrl)("detachButton",(t==null||t.Channel==null?null:t.Channel.length)>0)}}function vt(o,c){o&1&&(h(0,"div",12),b(1,"app-empty-state"),u())}function Mt(o,c){if(o&1){let t=S();h(0,"div",13)(1,"div",26)(2,"app-custom-paginator",27),m("next",function(){l(t);let i=a();return s(i.getProducts())})("previous",function(){l(t);let i=a();return s(i.getProducts())}),u()()()}if(o&2){let t=a();r(2),g("filter",t.searchFilter)("totaldata",t.products==null?null:t.products.length)("paginationTotal",t.rowCount)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}var ie=(()=>{let c=class c{constructor(){this.http=C(H),this.toastr=C(W),this.dialog=C(X),this.productService=C(ot),this.authService=C(Z),this.uploadProductService=C(rt),this.route=C($),this.searchFilter=new at,this.products=[],this.rowCount=0,this.multipeScanChannels=[],this.scanProductRole=D.ProductScan,this.uploadProductRole=D.ProductUpload,this.detachProductRole=D.ProductDetach,this.getLoaderPage(),this.channelOptions=this.authService.getChannels(),this.initMultiScanChannels()}getLoaderPage(){this.productService.LoadInPOS().subscribe(e=>{this.Categories=e.Options.Categories,this.searchFilter.PageNumber=e.Filter.PageNumber,this.searchFilter.RowCount=e.Filter.RowCount,this.searchFilter.ChannelID=null,this.searchFilter.Category=e.Filter.Category,this.searchFilter.PageSize=100,this.getProducts()})}initMultiScanChannels(){this.multipeScanChannels=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok])}getProducts(){let e={PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount,text:this.searchFilter.text,Category:this.searchFilter.Category,From:this.startDate,To:this.endDate};this.http.post("/api/product/GetInPOS",e).subscribe(i=>{this.products=i.Data,this.rowCount=i.Total==null?this.searchFilter.RowCount:i.Total.toString(),this.products=this.productService.checkProductHasUploadBtn(this.products,this.channelOptions)})}onOpenScanDialog(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:e,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID,this.searchFilter.ScanFull=n.ScanFull,this.searchFilter.UpdatedProduct=n.UpdatedProduct,this.searchFilter.Async=n.Async,this.scanAllProduct()})}scanAllProduct(){if(this.searchFilter.ChannelID==null){this.toastr.error("Please Select Channel","Error");return}this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{if(this.searchFilter.Async)this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"});else{this.getLoaderPage();let i=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.successToastrScanAllProduct(e,i,!this.searchFilter.UpdatedProduct)}})}onOpenDialogVariant(e){let i=this.products[e]?.Variants||[];this.dialog.open(it,{data:{title:this.products[e].Name,variants:i}})}onUploadMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.uploadProductService.setSelectedProduct(e),this.route.navigate(["/menu/products/upload"])}onUploadToMultipleChannel(e){this.uploadProductService.setSelectedProduct([e]),this.route.navigate(["/menu/products/upload"])}searchProduct(e){this.searchFilter.text=e,this.getProducts()}onScanMultipleProduct(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.GuidEMpty;let i=this.productService.filterChannelByTypeId(this.channelOptions,[F.Tokopedia,F.Tiktok]);this.dialog.open(T,{data:{filter:e,channelOptions:i,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(p=>_.IsNotEmpty(p))).subscribe(p=>{this.searchFilter.ChannelID=p.ChannelID,this.searchFilter.ScanFull=p.ScanFull,this.searchFilter.UpdatedProduct=p.UpdatedProduct;let x=this.productService.selectedProduct(this.products),d=this.productService.getVariantCodesProducts(x);this.scanSingleProduct(d)})}onScanSingleProduct(e){let i=JSON.parse(JSON.stringify(this.searchFilter));i.ChannelID=_.GuidEMpty,this.dialog.open(T,{data:{filter:i,channelOptions:this.channelOptions,isSingleChannel:!0},width:"600px"}).afterClosed().pipe(y(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.ChannelID=n.ChannelID;let p=this.productService.getVariantCodesProduct(e);this.scanSingleProduct(p)})}scanSingleProduct(e){this.productService.scanSingle(this.searchFilter.ChannelID,e).subscribe({next:i=>{if(i)this.toastr.success("Successfully Scan ","Success");else{let n=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.toastr.error(`This product is not existed in ${n?.Name} `,"Error")}this.searchFilter.ChannelID=_.GuidEMpty,i&&this.getProducts()},error:i=>{this.searchFilter.ChannelID=_.GuidEMpty}})}getVariantCode(e=[]){let i;return e?.length>1&&(i=(e[0].model?e[0].model:"")+e[0].Code),e?.length==1&&(i=e[0].Code),i}onDetachProduct(e){let i=[];e.forEach(n=>{n.Channel=_.assignChannelLogo(n.Channel),i.push(...n.Channel)}),this.dialog.open(ct,{width:"600px",data:[...i]}).afterClosed().pipe(y(n=>_.IsNotEmpty(n)),B(n=>this.productService.detachProduct(n))).subscribe(n=>{this.toastr.success(n.Message,tt.Success),this.getProducts()})}onDetachMultipleProduct(){let e=this.productService.selectedProduct(this.products);this.onDetachProduct(e)}};c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=U({type:c,selectors:[["app-in-pos"]],decls:24,vars:21,consts:[["picker",""],["description","All products which is already available in POS",3,"onSubmit","headerTitle"],[4,"ngxPermissionsOnly"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","Name","bindValue","Name","placeholder","Select Category",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"mt-5"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[3,"onUpload","onScan","onDescEvent","onCheckBoxChange","onDetach","productId","title","image","description","channels","code","showCheckBox","scanButton","uploadButton","imageForZoom","detachButton"],[1,"col-md-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"]],template:function(i,n){if(i&1){let p=S();h(0,"mainpanel",1),m("onSubmit",function(d){return l(p),s(n.searchProduct(d))}),h(1,"actions"),A(2,gt,2,1,"ng-container",2)(3,ft,2,1,"ng-container",2)(4,xt,2,1,"ng-container",2)(5,wt,2,1,"ng-container",2),u(),h(6,"filters")(7,"div")(8,"label",3),w(9,"Category"),u(),h(10,"ng-select",4),m("ngModelChange",function(d){return l(p),s(n.searchFilter.Category=d)}),u()(),h(11,"div",5)(12,"mat-date-range-input",6)(13,"input",7),R("ngModelChange",function(d){return l(p),N(n.startDate,d)||(n.startDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u(),h(14,"input",8),R("ngModelChange",function(d){return l(p),N(n.endDate,d)||(n.endDate=d),s(d)}),m("click",function(){l(p);let d=O(16);return s(d.open())}),u()(),b(15,"mat-date-range-picker",null,0),u()(),h(17,"content")(18,"div",9)(19,"div",10),G(20,yt,2,11,"div",11,L),P(22,vt,2,0,"div",12),u(),P(23,Mt,3,5,"div",13),u()()()}if(i&2){let p=O(16);g("headerTitle","In POS ("+n.rowCount+")"),r(2),g("ngxPermissionsOnly",I(13,k,n.detachProductRole)),r(),g("ngxPermissionsOnly",I(15,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(17,k,n.scanProductRole)),r(),g("ngxPermissionsOnly",I(19,k,n.scanProductRole)),r(5),g("clearable",!0)("items",n.Categories)("ngModel",n.searchFilter.Category),r(2),g("rangePicker",p),r(),E("ngModel",n.startDate),r(),E("ngModel",n.endDate),r(6),J(n.products),r(2),f(n.products.length==0?22:-1),r(),f(n.products.length>0?23:-1)}},dependencies:[et,Q,Y,q,K,z,j,nt,lt,st,dt,pt,ut,ht,mt],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}.img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}"]});let o=c;return o})();export{ie as InPosComponent};
@@ -1 +1 @@
1
- import{e as h}from"./chunk-MM7SAZOU.js";import{b as v,d as f}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Ab as c,Hb as l,Nc as n,Oc as p,lc as e,mc as o,nc as s,ob as m,xc as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var S=(()=>{let d=class d{constructor(t,i,a){this.route=t,this.http=i,this.service=a}ngOnInit(){this.route.queryParams.subscribe(t=>{this.code=t.code})}addChannelLazada(){let t={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",t).subscribe(i=>{this.service.navigate(["/menu/channel"])})}};d.\u0275fac=function(i){return new(i||d)(c(v),c(h),c(f))},d.\u0275cmp=l({type:d,selectors:[["app-lazada"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,a){i&1&&(e(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),s(5,"i",5),e(6,"div",6),n(7,"Success !"),o()(),e(8,"div",7)(9,"div"),n(10,"You have successfully authorized "),o(),e(11,"div"),n(12,"DEALPOS to manage your Lazada"),o(),e(13,"div"),n(14," Your Code is "),e(15,"span",8),n(16),o()(),e(17,"button",9),u("click",function(){return a.addChannelLazada()}),s(18,"i",10),n(19," Add to my Channel"),o()()()()()()),i&2&&(m(16),p(a.code))},encapsulation:2});let r=d;return r})();export{S as LazadaComponent};
1
+ import{e as h}from"./chunk-D6JH2KV4.js";import{b as v,d as f}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Ab as c,Hb as l,Nc as n,Oc as p,lc as e,mc as o,nc as s,ob as m,xc as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var S=(()=>{let d=class d{constructor(t,i,a){this.route=t,this.http=i,this.service=a}ngOnInit(){this.route.queryParams.subscribe(t=>{this.code=t.code})}addChannelLazada(){let t={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",t).subscribe(i=>{this.service.navigate(["/menu/channel"])})}};d.\u0275fac=function(i){return new(i||d)(c(v),c(h),c(f))},d.\u0275cmp=l({type:d,selectors:[["app-lazada"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,a){i&1&&(e(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),s(5,"i",5),e(6,"div",6),n(7,"Success !"),o()(),e(8,"div",7)(9,"div"),n(10,"You have successfully authorized "),o(),e(11,"div"),n(12,"DEALPOS to manage your Lazada"),o(),e(13,"div"),n(14," Your Code is "),e(15,"span",8),n(16),o()(),e(17,"button",9),u("click",function(){return a.addChannelLazada()}),s(18,"i",10),n(19," Add to my Channel"),o()()()()()()),i&2&&(m(16),p(a.code))},encapsulation:2});let r=d;return r})();export{S as LazadaComponent};
@@ -0,0 +1 @@
1
+ import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-QJASIA27.js").then(t=>t.OrdersV2Component)},children:[{path:"to-ship",loadComponent(){return import("./chunk-KDJVMFOK.js").then(t=>t.ReadyToShipComponent)},title:"To Ship"},{path:"awaiting-collection",loadComponent(){return import("./chunk-XYZI7ZXN.js").then(t=>t.AwaitingCollectionComponent)},title:"Awaiting Collection"},{path:"shipped",loadComponent(){return import("./chunk-YQPAS2RI.js").then(t=>t.ShippedComponent)},title:"Shipped"},{path:"completed",loadComponent(){return import("./chunk-EV6TBBSW.js").then(t=>t.CompletedComponent)},title:"Completed"},{path:"all",loadComponent(){return import("./chunk-53ZGHR7J.js").then(t=>t.AllComponent)},title:"All Orders"},{path:"cancelled",loadComponent(){return import("./chunk-KKQ32Z72.js").then(t=>t.CancelledComponent)},title:"Cancelled"},{path:"download",loadComponent(){return import("./chunk-XYRET5HT.js").then(t=>t.DownloadV2Component)},title:"Download"},{path:"log",loadComponent(){return import("./chunk-7E4ZSLPD.js").then(t=>t.DownloadOrderLogComponent)},title:"Download Log"},{path:"log/detail",loadComponent(){return import("./chunk-5NWJOQN5.js").then(t=>t.DownloadOrderDetailComponent)},title:"Download Log Detail"},{path:"",pathMatch:"full",redirectTo:"to-ship"}]}];export{o as routes};
@@ -1 +1 @@
1
- import{a as b,b as ct}from"./chunk-G4T4VM5E.js";import"./chunk-BKR7YPEW.js";import{a as lt}from"./chunk-RWPLFNHT.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as rt}from"./chunk-5WQ3LCWP.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-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as at}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import{A as ot,h as it,m as nt}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-MM7SAZOU.js";import{e as tt,g as et}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as Z,q as Y,w as G,x as Q,z as X}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as j,Hb as M,Ia as w,Mc as $,Nc as n,Oc as x,Pc as C,Qc as O,Rc as H,Sc as J,Tc as W,Uc as q,Z as P,_c as A,ac as f,ad as z,bd as K,cc as _,cd as U,dc as L,ec as k,fc as I,gc as N,hc as m,ic as e,id as v,jc as i,jd as D,kc as B,kd as V,mb as T,ob as l,ra as F,rc as R,v as E,wc as y,ya as p,yc as S,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var st=(t,o)=>({"bg-gradient-danger":t,"bg-gradient-warning":o}),dt=()=>["/menu/products/status/notificationV2/detailV2"],mt=t=>({ID:t}),pt=(t,o,a)=>({"text-warning":t,"text-success":o,"text-danger":a});function ut(t,o){t&1&&(e(0,"div"),n(1," Scan in progress. You will be notified once it is complete. "),i())}function ft(t,o){if(t&1&&(e(0,"div"),n(1),v(2,"number"),i()),t&2){let a=o.$implicit;l(),O(" ",a.Key,": ",D(2,2,a.Value)," ")}}function _t(t,o){if(t&1&&(e(0,"div",19)(1,"div",18),n(2,"Status Product:"),i(),I(3,ft,3,4,"div",null,L),i()),t&2){let a=S(2).$implicit;l(3),N(a.ParsedStatus)}}function St(t,o){if(t&1&&(e(0,"div",18),n(1),i(),e(2,"div"),n(3),i(),f(4,_t,5,0,"div",19)),t&2){let a=S().$implicit;l(),C(" ",a.ProcessLabel," "),l(2),x(a.ProcessDescription),l(),_(a!=null&&a.ParsedStatus&&(a==null||a.ParsedStatus==null?null:a.ParsedStatus.length)>0?4:-1)}}function Ct(t,o){if(t&1&&(n(0),v(1,"number"),e(2,"span"),n(3,"s"),i()),t&2){let a=S().$implicit;C(" ",V(1,1,a.DurationInSecond,"1.1-1")," ")}}function vt(t,o){t&1&&n(0," - ")}function xt(t,o){t&1&&n(0," In Progress ")}function gt(t,o){t&1&&n(0," Completed ")}function ht(t,o){t&1&&n(0," Failed ")}function It(t,o){if(t&1&&(e(0,"tr",12)(1,"td")(2,"a",15),n(3),i()(),e(4,"td")(5,"div",16),B(6,"img",17),e(7,"span"),n(8),i()()(),e(9,"td"),f(10,ut,2,0,"div")(11,St,5,3),i(),e(12,"td"),f(13,Ct,4,4)(14,vt,1,0),i(),e(15,"td")(16,"div",18),f(17,xt,1,0)(18,gt,1,0)(19,ht,1,0),i()(),e(20,"td",19)(21,"div"),n(22),i(),e(23,"div"),n(24),v(25,"date"),i()()()),t&2){let a,r=o.$implicit,c=S();m("ngClass",K(16,st,r.Status==1,r.Status==0)),l(2),m("routerLink",j(19,dt))("queryParams",z(20,mt,r.ID)),l(),C(" ",r.ID," "),l(3),m("src",r.Img,T),l(2),x(r.ChannelName),l(2),_(r.StateID==c.scanState.InProgress?10:11),l(3),_(r.DurationInSecond?13:14),l(3),$(U(22,pt,r.StateID==c.scanState.InProgress,r.StateID==c.scanState.Completed,r.StateID==c.scanState.Failed)),l(),_((a=r.StateID)===c.scanState.InProgress?17:a===c.scanState.Completed?18:a===c.scanState.Failed?19:-1),l(5),x(r.LoginID),l(2),C(" ",V(25,13,r.Created,"dd MMM yyyy HH:mm")," ")}}var Ot=(()=>{let o=class o{constructor(){this.notificationService=F(b),this.filter=w({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=ct,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(E(r=>(r.Data=r.Data.map(c=>(c.StatusProduct&&(c.ParsedStatus=JSON.parse(c.StatusProduct)),c)),r)),P(1))}onFilter(){this.initNotifications()}};o.\u0275fac=function(c){return new(c||o)},o.\u0275cmp=M({type:o,selectors:[["app-notificationV2"]],features:[A([b])],decls:37,vars:8,consts:[["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","260px"],[3,"ngClass"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"]],template:function(c,d){if(c&1){let s=R();q(0),v(1,"async"),e(2,"mainpanel",0),y("onSubmit",function(){return p(s),u(d.onFilter())}),e(3,"actions")(4,"a",1),n(5," Scan Job "),i()(),e(6,"filters")(7,"div")(8,"label",2),n(9,"Channel"),i(),e(10,"app-channel-options-v2",3),W("ngModelChange",function(h){return p(s),J(d.filter().ChannelID,h)||(d.filter().ChannelID=h),u(h)}),i()()(),e(11,"content")(12,"div",4)(13,"div",5)(14,"div",6)(15,"div",7)(16,"table",8)(17,"thead",9)(18,"tr",10)(19,"th",11),n(20,"Job ID"),i(),e(21,"th"),n(22,"Channel"),i(),e(23,"th"),n(24,"Process"),i(),e(25,"th"),n(26,"Duration"),i(),e(27,"th"),n(28,"Status"),i(),e(29,"th"),n(30,"Creator"),i()()(),e(31,"tbody"),I(32,It,26,26,"tr",12,k),i()()()()(),e(34,"div",5)(35,"div",13)(36,"app-custom-paginator",14),y("next",function(){return p(s),u(d.initNotifications())})("previous",function(){return p(s),u(d.initNotifications())}),i()()()()()()}if(c&2){let s=D(1,6,d.notifications$);l(2),m("hideSearchBox",!0),l(8),H("ngModel",d.filter().ChannelID),l(22),N(s==null?null:s.Data),l(4),m("filter",d.filter())("totaldata",s==null||s.Data==null?null:s.Data.length)("paginationTotal",s==null?null:s.Count)("hasClicked",!0)}},dependencies:[Z,Y,ot,it,nt,at,rt,et,tt,lt,G,X,Q],encapsulation:2});let t=o;return t})();export{Ot as NotificationV2Component};
1
+ import{a as b,b as ct}from"./chunk-4GV67OQR.js";import"./chunk-BKR7YPEW.js";import{a as lt}from"./chunk-3PUUKJCQ.js";import"./chunk-VVNLTDLG.js";import"./chunk-OHAT7WXU.js";import"./chunk-L4EPB2CQ.js";import"./chunk-GNXSEYJF.js";import{a as rt}from"./chunk-ZZYFVEJO.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 at}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-JTKEMQZT.js";import"./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 ot,h as it,m as nt}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-D6JH2KV4.js";import{e as tt,g as et}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as X,B as Z,q as Y,w as G,y as Q}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{$c as j,Hb as M,Ia as w,Mc as $,Nc as n,Oc as x,Pc as C,Qc as O,Rc as H,Sc as J,Tc as W,Uc as q,Z as P,_c as A,ac as f,ad as z,bd as K,cc as _,cd as U,dc as L,ec as k,fc as I,gc as N,hc as m,ic as e,id as v,jc as i,jd as D,kc as B,kd as V,mb as T,ob as l,ra as F,rc as R,v as E,wc as y,ya as p,yc as S,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var st=(t,o)=>({"bg-gradient-danger":t,"bg-gradient-warning":o}),dt=()=>["/menu/products/status/notificationV2/detailV2"],mt=t=>({ID:t}),pt=(t,o,a)=>({"text-warning":t,"text-success":o,"text-danger":a});function ut(t,o){t&1&&(e(0,"div"),n(1," Scan in progress. You will be notified once it is complete. "),i())}function ft(t,o){if(t&1&&(e(0,"div"),n(1),v(2,"number"),i()),t&2){let a=o.$implicit;l(),O(" ",a.Key,": ",D(2,2,a.Value)," ")}}function _t(t,o){if(t&1&&(e(0,"div",19)(1,"div",18),n(2,"Status Product:"),i(),I(3,ft,3,4,"div",null,L),i()),t&2){let a=S(2).$implicit;l(3),N(a.ParsedStatus)}}function St(t,o){if(t&1&&(e(0,"div",18),n(1),i(),e(2,"div"),n(3),i(),f(4,_t,5,0,"div",19)),t&2){let a=S().$implicit;l(),C(" ",a.ProcessLabel," "),l(2),x(a.ProcessDescription),l(),_(a!=null&&a.ParsedStatus&&(a==null||a.ParsedStatus==null?null:a.ParsedStatus.length)>0?4:-1)}}function Ct(t,o){if(t&1&&(n(0),v(1,"number"),e(2,"span"),n(3,"s"),i()),t&2){let a=S().$implicit;C(" ",V(1,1,a.DurationInSecond,"1.1-1")," ")}}function vt(t,o){t&1&&n(0," - ")}function xt(t,o){t&1&&n(0," In Progress ")}function gt(t,o){t&1&&n(0," Completed ")}function ht(t,o){t&1&&n(0," Failed ")}function It(t,o){if(t&1&&(e(0,"tr",12)(1,"td")(2,"a",15),n(3),i()(),e(4,"td")(5,"div",16),B(6,"img",17),e(7,"span"),n(8),i()()(),e(9,"td"),f(10,ut,2,0,"div")(11,St,5,3),i(),e(12,"td"),f(13,Ct,4,4)(14,vt,1,0),i(),e(15,"td")(16,"div",18),f(17,xt,1,0)(18,gt,1,0)(19,ht,1,0),i()(),e(20,"td",19)(21,"div"),n(22),i(),e(23,"div"),n(24),v(25,"date"),i()()()),t&2){let a,r=o.$implicit,c=S();m("ngClass",K(16,st,r.Status==1,r.Status==0)),l(2),m("routerLink",j(19,dt))("queryParams",z(20,mt,r.ID)),l(),C(" ",r.ID," "),l(3),m("src",r.Img,T),l(2),x(r.ChannelName),l(2),_(r.StateID==c.scanState.InProgress?10:11),l(3),_(r.DurationInSecond?13:14),l(3),$(U(22,pt,r.StateID==c.scanState.InProgress,r.StateID==c.scanState.Completed,r.StateID==c.scanState.Failed)),l(),_((a=r.StateID)===c.scanState.InProgress?17:a===c.scanState.Completed?18:a===c.scanState.Failed?19:-1),l(5),x(r.LoginID),l(2),C(" ",V(25,13,r.Created,"dd MMM yyyy HH:mm")," ")}}var Ot=(()=>{let o=class o{constructor(){this.notificationService=F(b),this.filter=w({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=ct,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(E(r=>(r.Data=r.Data.map(c=>(c.StatusProduct&&(c.ParsedStatus=JSON.parse(c.StatusProduct)),c)),r)),P(1))}onFilter(){this.initNotifications()}};o.\u0275fac=function(c){return new(c||o)},o.\u0275cmp=M({type:o,selectors:[["app-notificationV2"]],features:[A([b])],decls:37,vars:8,consts:[["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","260px"],[3,"ngClass"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"]],template:function(c,d){if(c&1){let s=R();q(0),v(1,"async"),e(2,"mainpanel",0),y("onSubmit",function(){return p(s),u(d.onFilter())}),e(3,"actions")(4,"a",1),n(5," Scan Job "),i()(),e(6,"filters")(7,"div")(8,"label",2),n(9,"Channel"),i(),e(10,"app-channel-options-v2",3),W("ngModelChange",function(h){return p(s),J(d.filter().ChannelID,h)||(d.filter().ChannelID=h),u(h)}),i()()(),e(11,"content")(12,"div",4)(13,"div",5)(14,"div",6)(15,"div",7)(16,"table",8)(17,"thead",9)(18,"tr",10)(19,"th",11),n(20,"Job ID"),i(),e(21,"th"),n(22,"Channel"),i(),e(23,"th"),n(24,"Process"),i(),e(25,"th"),n(26,"Duration"),i(),e(27,"th"),n(28,"Status"),i(),e(29,"th"),n(30,"Creator"),i()()(),e(31,"tbody"),I(32,It,26,26,"tr",12,k),i()()()()(),e(34,"div",5)(35,"div",13)(36,"app-custom-paginator",14),y("next",function(){return p(s),u(d.initNotifications())})("previous",function(){return p(s),u(d.initNotifications())}),i()()()()()()}if(c&2){let s=D(1,6,d.notifications$);l(2),m("hideSearchBox",!0),l(8),H("ngModel",d.filter().ChannelID),l(22),N(s==null?null:s.Data),l(4),m("filter",d.filter())("totaldata",s==null||s.Data==null?null:s.Data.length)("paginationTotal",s==null?null:s.Count)("hasClicked",!0)}},dependencies:[Z,Y,ot,it,nt,at,rt,et,tt,lt,G,X,Q],encapsulation:2});let t=o;return t})();export{Ot as NotificationV2Component};
@@ -1 +1 @@
1
- import{b as P}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{c as b}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{e as R}from"./chunk-MM7SAZOU.js";import{b as w,e as N}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{x as D,y as I}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as f,Nc as n,Oc as a,ac as v,cc as u,hc as _,ic as t,id as p,jc as i,jd as S,kd as y,ob as o,ra as c,rc as g,wc as E,ya as x,yc as h,za as C}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function O(s,d){if(s&1&&(t(0,"div",9)(1,"div",10)(2,"label"),n(3,"Process Code"),i(),t(4,"div")(5,"span"),n(6),i()()()()),s&2){let m=h();o(6),a(m.ProcessedCode)}}function T(s,d){if(s&1){let m=g();t(0,"a",15),E("click",function(){x(m);let r=h();return C(r.Retry())}),n(1,"Retry"),i()}}var V=(()=>{let d=class d{constructor(){this.route=c(w),this.http=c(R),this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(l=>{this.ID=l.ID,this.Load()})}Retry(){var l={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",l).subscribe(r=>{alert(JSON.stringify(r))})}Load(){var l={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",l).subscribe(r=>{for(let e of r.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=b.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=b.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}};d.\u0275fac=function(r){return new(r||d)},d.\u0275cmp=f({type:d,selectors:[["app-raw-detail"]],decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(r,e){r&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),i()(),t(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),n(11,"General"),i()(),t(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),n(17,"Date"),i(),t(18,"div")(19,"span"),n(20),p(21,"date"),i()()()(),t(22,"div",9)(23,"div",10)(24,"label"),n(25,"Number"),i(),t(26,"div")(27,"span"),n(28),i()()()(),t(29,"div",9)(30,"div",10)(31,"label"),n(32,"Type"),i(),t(33,"div")(34,"span"),n(35),i()()()(),t(36,"div",9)(37,"div",10)(38,"label"),n(39,"Response Code"),i(),t(40,"div")(41,"span"),n(42),i()()()(),t(43,"div",9)(44,"div",10)(45,"label"),n(46,"ShopID"),i(),t(47,"div")(48,"span"),n(49),i()()()(),v(50,O,7,1,"div",9),t(51,"div",9)(52,"div",10)(53,"label"),n(54,"Action"),i(),t(55,"div")(56,"span"),n(57),i()()()()()()()()(),t(58,"div",11)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),n(63,"Request"),i()(),t(64,"div",7)(65,"div",4)(66,"div",12)(67,"pre"),n(68),p(69,"json"),i()()(),t(70,"actions",13),v(71,T,2,0,"a",14),i()()()(),t(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),n(76,"Response"),i()(),t(77,"div",7)(78,"div",4)(79,"div",12)(80,"pre"),n(81),p(82,"json"),i()()()()()()()()()()),r&2&&(_("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),o(20),a(y(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),o(8),a(e.Number),o(7),a(e.MarketTypeString),o(7),a(e.ResponseCode),o(7),a(e.shopId),o(),u(e.ProcessedCode!=null?50:-1),o(7),a(e.POSActionTypeString),o(11),a(S(69,17,e.request)),o(3),u(e.ResponseCode!="200"&&e.ResponseCode!="201"?71:-1),o(10),a(S(82,19,e.response)))},dependencies:[P,N,I,D],encapsulation:2});let s=d;return s})();export{V as RawDetailComponent};
1
+ 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{c as b}from"./chunk-UPRDDI4K.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import{e as R}from"./chunk-D6JH2KV4.js";import{b as w,e as N}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{y as D,z as I}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as f,Nc as n,Oc as a,ac as v,cc as u,hc as _,ic as t,id as p,jc as i,jd as S,kd as y,ob as o,ra as c,rc as g,wc as E,ya as x,yc as h,za as C}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function O(s,d){if(s&1&&(t(0,"div",9)(1,"div",10)(2,"label"),n(3,"Process Code"),i(),t(4,"div")(5,"span"),n(6),i()()()()),s&2){let m=h();o(6),a(m.ProcessedCode)}}function T(s,d){if(s&1){let m=g();t(0,"a",15),E("click",function(){x(m);let r=h();return C(r.Retry())}),n(1,"Retry"),i()}}var V=(()=>{let d=class d{constructor(){this.route=c(w),this.http=c(R),this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(l=>{this.ID=l.ID,this.Load()})}Retry(){var l={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",l).subscribe(r=>{alert(JSON.stringify(r))})}Load(){var l={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",l).subscribe(r=>{for(let e of r.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=b.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=b.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}};d.\u0275fac=function(r){return new(r||d)},d.\u0275cmp=f({type:d,selectors:[["app-raw-detail"]],decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(r,e){r&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),i()(),t(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),n(11,"General"),i()(),t(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),n(17,"Date"),i(),t(18,"div")(19,"span"),n(20),p(21,"date"),i()()()(),t(22,"div",9)(23,"div",10)(24,"label"),n(25,"Number"),i(),t(26,"div")(27,"span"),n(28),i()()()(),t(29,"div",9)(30,"div",10)(31,"label"),n(32,"Type"),i(),t(33,"div")(34,"span"),n(35),i()()()(),t(36,"div",9)(37,"div",10)(38,"label"),n(39,"Response Code"),i(),t(40,"div")(41,"span"),n(42),i()()()(),t(43,"div",9)(44,"div",10)(45,"label"),n(46,"ShopID"),i(),t(47,"div")(48,"span"),n(49),i()()()(),v(50,O,7,1,"div",9),t(51,"div",9)(52,"div",10)(53,"label"),n(54,"Action"),i(),t(55,"div")(56,"span"),n(57),i()()()()()()()()(),t(58,"div",11)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),n(63,"Request"),i()(),t(64,"div",7)(65,"div",4)(66,"div",12)(67,"pre"),n(68),p(69,"json"),i()()(),t(70,"actions",13),v(71,T,2,0,"a",14),i()()()(),t(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),n(76,"Response"),i()(),t(77,"div",7)(78,"div",4)(79,"div",12)(80,"pre"),n(81),p(82,"json"),i()()()()()()()()()()),r&2&&(_("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),o(20),a(y(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),o(8),a(e.Number),o(7),a(e.MarketTypeString),o(7),a(e.ResponseCode),o(7),a(e.shopId),o(),u(e.ProcessedCode!=null?50:-1),o(7),a(e.POSActionTypeString),o(11),a(S(69,17,e.request)),o(3),u(e.ResponseCode!="200"&&e.ResponseCode!="201"?71:-1),o(10),a(S(82,19,e.response)))},dependencies:[P,N,I,D],encapsulation:2});let s=d;return s})();export{V as RawDetailComponent};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-IM7YH54S.js";import{b as K}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import{a as H}from"./chunk-YNL43MLU.js";import{c as j}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as N}from"./chunk-ZSUWHVKX.js";import"./chunk-AGBJEXIM.js";import{b as k,c as z}from"./chunk-5UFP37GQ.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-MM7SAZOU.js";import{e as B,g as $}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as I,w as L}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as S,Nb as h,Nc as p,Oc as P,Uc as R,Vc as b,Wc as D,Z as f,_c as F,ac as x,ad as O,cc as C,dc as _,fc as y,gc as g,hc as s,ic as i,id as w,jc as o,jd as A,kc as M,ob as n,oc as E,pc as T,ra as v,yc as d}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var U=e=>[e];function V(e,t){e&1&&(E(0),i(1,"a",10),M(2,"i",11),p(3," Edit "),o(),T())}function q(e,t){if(e&1&&(i(0,"span",12),p(1),o()),e&2){let l=d().$implicit;n(),P(l.Value)}}function G(e,t){if(e&1&&x(0,q,2,1,"span",12),e&2){let l=t.$implicit;d();let r=D(0);C(l.Key==(r.Form==null?null:r.Form.AuthorizationMode)?0:-1)}}var se=(()=>{let t=class t{constructor(){this.setupService=v(c),this.setupData$=this.setupService.getConfig().pipe(f(1)),this.userEditRole=N.UserEdit}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=S({type:t,selectors:[["app-setup-info"]],features:[F([c])],decls:19,vars:8,consts:[["headerTitle","Setup",3,"hideSearchBox","hideSearchDropdown"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5"],[1,"row","mt-4"],[1,"col-12"],[1,"card"],[1,"card-body","mt-8"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Select where Authentication and Roles are managed, Legacy (from POS) or Modern (from omni.dealpos.app)",1,"info-label-group"],["role","button","routerLink","/menu/users/setup/form",1,"btn","btn-outline-secondary"],[1,"fa","fa-edit","me-1"],["matTooltipPosition","above"]],template:function(a,u){if(a&1&&(R(0),w(1,"async"),i(2,"mainpanel",0)(3,"actions"),h(4,V,4,0,"ng-container",1),o(),i(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"label"),p(15,"Authorization Mode"),o(),i(16,"div"),y(17,G,1,1,null,null,_),o()()()()()()()()()()()),a&2){let m=b(A(1,3,u.setupData$));n(2),s("hideSearchBox",!0)("hideSearchDropdown",!0),n(2),s("ngxPermissionsOnly",O(6,U,u.userEditRole)),n(13),g(m==null||m.Options==null?null:m.Options.AuthorizationMode)}},dependencies:[I,K,H,j,$,B,z,k,L],encapsulation:2});let e=t;return e})();export{se as SetupInfoComponent};
1
+ import{a as c}from"./chunk-6O446YFR.js";import{b as K}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import{a as H}from"./chunk-UEXWQT5J.js";import{c as j}from"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as N}from"./chunk-ZSUWHVKX.js";import"./chunk-AGBJEXIM.js";import{b as k,c as z}from"./chunk-NB2H6KA7.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-D6JH2KV4.js";import{e as B,g as $}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{B as I,w as L}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as S,Nb as h,Nc as p,Oc as P,Uc as R,Vc as b,Wc as D,Z as f,_c as F,ac as x,ad as O,cc as C,dc as _,fc as y,gc as g,hc as s,ic as i,id as w,jc as o,jd as A,kc as M,ob as n,oc as E,pc as T,ra as v,yc as d}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var U=e=>[e];function V(e,t){e&1&&(E(0),i(1,"a",10),M(2,"i",11),p(3," Edit "),o(),T())}function q(e,t){if(e&1&&(i(0,"span",12),p(1),o()),e&2){let l=d().$implicit;n(),P(l.Value)}}function G(e,t){if(e&1&&x(0,q,2,1,"span",12),e&2){let l=t.$implicit;d();let r=D(0);C(l.Key==(r.Form==null?null:r.Form.AuthorizationMode)?0:-1)}}var se=(()=>{let t=class t{constructor(){this.setupService=v(c),this.setupData$=this.setupService.getConfig().pipe(f(1)),this.userEditRole=N.UserEdit}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=S({type:t,selectors:[["app-setup-info"]],features:[F([c])],decls:19,vars:8,consts:[["headerTitle","Setup",3,"hideSearchBox","hideSearchDropdown"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5"],[1,"row","mt-4"],[1,"col-12"],[1,"card"],[1,"card-body","mt-8"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Select where Authentication and Roles are managed, Legacy (from POS) or Modern (from omni.dealpos.app)",1,"info-label-group"],["role","button","routerLink","/menu/users/setup/form",1,"btn","btn-outline-secondary"],[1,"fa","fa-edit","me-1"],["matTooltipPosition","above"]],template:function(a,u){if(a&1&&(R(0),w(1,"async"),i(2,"mainpanel",0)(3,"actions"),h(4,V,4,0,"ng-container",1),o(),i(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"label"),p(15,"Authorization Mode"),o(),i(16,"div"),y(17,G,1,1,null,null,_),o()()()()()()()()()()()),a&2){let m=b(A(1,3,u.setupData$));n(2),s("hideSearchBox",!0)("hideSearchDropdown",!0),n(2),s("ngxPermissionsOnly",O(6,U,u.userEditRole)),n(13),g(m==null||m.Options==null?null:m.Options.AuthorizationMode)}},dependencies:[I,K,H,j,$,B,z,k,L],encapsulation:2});let e=t;return e})();export{se as SetupInfoComponent};
@@ -1,3 +1,3 @@
1
- import{C as dt,H as mt,I as ht,K as Xt,N as pt,O as Jt,P as te,Q as L,R,S as tt,U as ee,V as ie,W as ne,Z as et,_ as oe,ba as it,d as X,f as Kt,h as ct,j as Ut,q as Yt,r as Zt,u as $t,v as F,w as J}from"./chunk-7R2D2JZ6.js";import{A as qt,q as Qt}from"./chunk-JNRCB7N3.js";import{$ as z,A as H,Ac as P,Ad as Wt,Ca as f,Cc as Ft,Da as wt,Dc as Lt,Ec as Rt,F as At,G as T,Hb as O,Ia as Ot,Ib as U,Jb as E,Jc as Bt,Kc as st,Lb as M,Mb as Pt,Mc as jt,Nb as Y,Nc as $,O as w,Oc as Nt,Pa as Q,Pc as Vt,Ra as q,Yc as Ht,_b as Z,ac as C,ad as zt,bd as lt,cc as y,f as h,hc as S,ic as c,jc as d,kc as at,lb as Mt,ma as G,na as W,ob as m,pa as _,ra as r,rc as k,sc as rt,tb as K,td as I,ub as kt,ud as Gt,vb as Tt,wb as Et,wc as b,ya as x,yc as p,za as A,zb as St,zc as It}from"./chunk-OHGMB7HJ.js";import{a as g,b as xt}from"./chunk-66YHNWRR.js";function Ce(i,o){}var v=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var gt=(()=>{class i extends te{_elementRef=r(q);_focusTrapFactory=r(Zt);_config;_interactivityChecker=r(Yt);_ngZone=r(kt);_focusMonitor=r(Ut);_renderer=r(St);_changeDetectorRef=r(Wt);_injector=r(f);_platform=r(Kt);_document=r(wt);_portalOutlet;_focusTrapped=new h;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=r(v,{optional:!0})||new v,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}attachDomPortal=t=>{this._portalOutlet.hasAttached();let e=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),e};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{a(),l(),t.removeAttribute("tabindex")},a=this._renderer.listen(t,"blur",n),l=this._renderer.listen(t,"mousedown",n)})),t.focus(e)}_focusByCssSelector(t,e){let n=this._elementRef.nativeElement.querySelector(t);n&&this._forceFocus(n,e)}_trapFocus(t){this._isDestroyed||Tt(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus(t);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let n=X(),a=this._elementRef.nativeElement;(!n||n===this._document.body||n===a||a.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t)}_containsFocus(){let t=this._elementRef.nativeElement,e=X();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=X()))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(e&1&&Ft(L,7),e&2){let a;Lt(a=Rt())&&(n._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){e&2&&Z("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[M],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){e&1&&Y(0,Ce,0,0,"ng-template",0)},dependencies:[L],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
1
+ import{C as dt,H as mt,I as ht,K as Xt,N as pt,O as Jt,P as te,Q as L,R,S as tt,U as ee,V as ie,W as ne,Z as et,_ as oe,ba as it,d as X,f as Kt,h as ct,j as Ut,q as Yt,r as Zt,u as $t,v as F,w as J}from"./chunk-O3BS4AC6.js";import{B as qt,q as Qt}from"./chunk-CGSMHTKB.js";import{$ as z,A as H,Ac as P,Ad as Wt,Ca as f,Cc as Ft,Da as wt,Dc as Lt,Ec as Rt,F as At,G as T,Hb as O,Ia as Ot,Ib as U,Jb as E,Jc as Bt,Kc as st,Lb as M,Mb as Pt,Mc as jt,Nb as Y,Nc as $,O as w,Oc as Nt,Pa as Q,Pc as Vt,Ra as q,Yc as Ht,_b as Z,ac as C,ad as zt,bd as lt,cc as y,f as h,hc as S,ic as c,jc as d,kc as at,lb as Mt,ma as G,na as W,ob as m,pa as _,ra as r,rc as k,sc as rt,tb as K,td as I,ub as kt,ud as Gt,vb as Tt,wb as Et,wc as b,ya as x,yc as p,za as A,zb as St,zc as It}from"./chunk-OHGMB7HJ.js";import{a as g,b as xt}from"./chunk-66YHNWRR.js";function Ce(i,o){}var v=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var gt=(()=>{class i extends te{_elementRef=r(q);_focusTrapFactory=r(Zt);_config;_interactivityChecker=r(Yt);_ngZone=r(kt);_focusMonitor=r(Ut);_renderer=r(St);_changeDetectorRef=r(Wt);_injector=r(f);_platform=r(Kt);_document=r(wt);_portalOutlet;_focusTrapped=new h;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=r(v,{optional:!0})||new v,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}attachDomPortal=t=>{this._portalOutlet.hasAttached();let e=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),e};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{a(),l(),t.removeAttribute("tabindex")},a=this._renderer.listen(t,"blur",n),l=this._renderer.listen(t,"mousedown",n)})),t.focus(e)}_focusByCssSelector(t,e){let n=this._elementRef.nativeElement.querySelector(t);n&&this._forceFocus(n,e)}_trapFocus(t){this._isDestroyed||Tt(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus(t);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let n=X(),a=this._elementRef.nativeElement;(!n||n===this._document.body||n===a||a.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t)}_containsFocus(){let t=this._elementRef.nativeElement,e=X();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=X()))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(e&1&&Ft(L,7),e&2){let a;Lt(a=Rt())&&(n._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){e&2&&Z("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[M],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){e&1&&Y(0,Ce,0,0,"ng-template",0)},dependencies:[L],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
2
2
  `],encapsulation:2})}return i})(),B=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new h;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(o,t){this.overlayRef=o,this.config=t,this.disableClose=t.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!J(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=o.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(o,t){if(this._canClose(o)){let e=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(o),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",t=""){return this.overlayRef.updateSize({width:o,height:t}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}_canClose(o){let t=this.config;return!!this.containerInstance&&(!t.closePredicate||t.closePredicate(o,t,this.componentInstance))}},ye=new _("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=r(f);return()=>tt(i)}}),be=new _("DialogData"),ve=new _("DefaultDialogConfig");function De(i){let o=Ot(i),t=new K;return{valueSignal:o,get value(){return o()},change:t,ngOnDestroy(){t.complete()}}}var ft=(()=>{class i{_injector=r(f);_defaultOptions=r(ve,{optional:!0});_parentDialog=r(i,{optional:!0,skipSelf:!0});_overlayContainer=r(ie);_idGenerator=r(F);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new h;_afterOpenedAtThisLevel=new h;_ariaHiddenElements=new Map;_scrollStrategy=r(ye);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=H(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(z(void 0)));constructor(){}open(t,e){let n=this._defaultOptions||new v;e=g(g({},n),e),e.id=e.id||this._idGenerator.getId("cdk-dialog-"),e.id&&this.getDialogById(e.id);let a=this._getOverlayConfig(e),l=oe(this._injector,a),s=new B(l,e),u=this._attachContainer(l,s,e);if(s.containerInstance=u,!this.openDialogs.length){let ot=this._overlayContainer.getContainerElement();u._focusTrapped?u._focusTrapped.pipe(w(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(ot)}):this._hideNonDialogContentFromAssistiveTechnology(ot)}return this._attachDialogContent(t,s,u,e),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){ut(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){ut(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),ut(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let e=new ee({positionStrategy:t.positionStrategy||et().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,n){let a=n.injector||n.viewContainerRef?.injector,l=[{provide:v,useValue:n},{provide:B,useValue:e},{provide:ne,useValue:t}],s;n.container?typeof n.container=="function"?s=n.container:(s=n.container.type,l.push(...n.container.providers(n))):s=gt;let u=new pt(s,n.viewContainerRef,f.create({parent:a||this._injector,providers:l}));return t.attach(u).instance}_attachDialogContent(t,e,n,a){if(t instanceof Et){let l=this._createInjector(a,e,n,void 0),s={$implicit:a.data,dialogRef:e};a.templateContext&&(s=g(g({},s),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),n.attachTemplatePortal(new Jt(t,null,s,l))}else{let l=this._createInjector(a,e,n,this._injector),s=n.attachComponentPortal(new pt(t,a.viewContainerRef,l));e.componentRef=s,e.componentInstance=s.instance}}_createInjector(t,e,n,a){let l=t.injector||t.viewContainerRef?.injector,s=[{provide:be,useValue:t.data},{provide:B,useValue:e}];return t.providers&&(typeof t.providers=="function"?s.push(...t.providers(e,t,n)):s.push(...t.providers)),t.direction&&(!l||!l.get(dt,null,{optional:!0}))&&s.push({provide:dt,useValue:De(t.direction)}),f.create({parent:l||a,providers:s})}_removeOpenDialog(t,e){let n=this.openDialogs.indexOf(t);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,l)=>{a?l.setAttribute("aria-hidden",a):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let a=e[n];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(e){return new(e||i)};static \u0275prov=G({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function ut(i,o){let t=i.length;for(;t--;)o(i[t])}var se=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=U({type:i});static \u0275inj=W({providers:[ft],imports:[it,R,$t,R]})}return i})();function xe(i,o){}var N=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},_t="mdc-dialog--open",le="mdc-dialog--opening",ce="mdc-dialog--closing",Ae=150,we=75,he=(()=>{class i extends gt{_animationStateChanged=new K;_animationsEnabled=!mt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?me(this._config.enterAnimationDuration)??Ae:0;_exitAnimationDuration=this._animationsEnabled?me(this._config.exitAnimationDuration)??we:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(de,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(le,_t)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(_t),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(_t),this._animationsEnabled?(this._hostElement.style.setProperty(de,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ce)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(le,ce)}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}static \u0275fac=(()=>{let t;return function(n){return(t||(t=Q(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(e,n){e&2&&(rt("id",n._config.id),Z("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),st("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0))},features:[M],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(c(0,"div",0)(1,"div",1),Y(2,xe,0,0,"ng-template",2),d()())},dependencies:[L],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}
3
3
  `],encapsulation:2})}return i})(),de="--mat-dialog-transition-duration";function me(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?ct(i.substring(0,i.length-2)):i.endsWith("s")?ct(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var j=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(j||{}),V=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new h;_beforeClosed=new h;_result;_closeFallbackTimeout;_state=j.OPEN;_closeInteractionType;constructor(o,t,e){this._ref=o,this._config=t,this._containerInstance=e,this.disableClose=t.disableClose,this.id=o.id,o.addPanelClass("mat-mdc-dialog-panel"),e._animationStateChanged.pipe(T(n=>n.state==="opened"),w(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(T(n=>n.state==="closed"),w(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),At(this.backdropClick(),this.keydownEvents().pipe(T(n=>n.keyCode===27&&!this.disableClose&&!J(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),pe(this,n.type==="keydown"?"keyboard":"mouse"))})}close(o){let t=this._config.closePredicate;t&&!t(o,this._config,this.componentInstance)||(this._result=o,this._containerInstance._animationStateChanged.pipe(T(e=>e.state==="closing"),w(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=j.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(o){let t=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?t.left(o.left):t.right(o.right):t.centerHorizontally(),o&&(o.top||o.bottom)?o.top?t.top(o.top):t.bottom(o.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",t=""){return this._ref.updateSize(o,t),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=j.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function pe(i,o,t){return i._closeInteractionType=o,i.close(t)}var ue=new _("MatMdcDialogData"),ge=new _("mat-mdc-dialog-default-options"),fe=new _("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(f);return()=>tt(i)}}),Ct=(()=>{class i{_defaultOptions=r(ge,{optional:!0});_scrollStrategy=r(fe);_parentDialog=r(i,{optional:!0,skipSelf:!0});_idGenerator=r(F);_injector=r(f);_dialog=r(ft);_animationsDisabled=mt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new h;_afterOpenedAtThisLevel=new h;dialogConfigClass=N;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=H(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(z(void 0)));constructor(){this._dialogRefConstructor=V,this._dialogContainerType=he,this._dialogDataToken=ue}open(t,e){let n;e=g(g({},this._defaultOptions||new N),e),e.id=e.id||this._idGenerator.getId("mat-mdc-dialog-"),e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,xt(g({},e),{positionStrategy:et(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||e.enterAnimationDuration?.toLocaleString()==="0"||e.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:e},{provide:v,useValue:e}]},templateContext:()=>({dialogRef:n}),providers:(l,s,u)=>(n=new this._dialogRefConstructor(l,e,u),n.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=a.componentRef,n.componentInstance=a.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next())}),n}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}static \u0275fac=function(e){return new(e||i)};static \u0275prov=G({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _e=(()=>{class i{_dialogRef=r(V,{optional:!0});_elementRef=r(q);_dialog=r(Ct);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Oe(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(e){return new(e||i)};static \u0275dir=E({type:i})}return i})(),yt=(()=>{class i extends _e{id=r(F).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let t;return function(n){return(t||(t=Q(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,n){e&2&&rt("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[M]})}return i})(),bt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=E({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Pt([Xt])]})}return i})(),vt=(()=>{class i extends _e{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let t;return function(n){return(t||(t=Q(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(e,n){e&2&&st("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end")},inputs:{align:"align"},features:[M]})}return i})();function Oe(i,o){let t=i.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?o.find(e=>e.id===t.id):null}var Dt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=U({type:i});static \u0275inj=W({providers:[Ct],imports:[se,it,R,ht,ht]})}return i})();var D=(function(i){return i.Success="Success",i.Info="Info",i.Warning="Warning",i.Error="Error",i})(D||{});var nt=class{constructor(){this.title="New Modal",this.titleExtra="",this.okText="OK",this.cancelText="CANCEL",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=D.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}};var ke=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],Te=["[header]","[content]","[more-content]","[footer]"],Ee=(i,o)=>({bodyScrollable:i,hideScrollbar:o}),Se=i=>({"mx-auto":i}),Pe=(i,o)=>({"show-footer":i,"p-0":o});function Ie(i,o){if(i&1){let t=k();c(0,"div",8),b("click",function(){x(t);let n=p();return A(n.onBack.emit())}),c(1,"a",9),at(2,"i",10),d()()}}function Fe(i,o){if(i&1){let t=k();c(0,"div",5)(1,"a",11),b("click",function(){x(t);let n=p();return A(n.onCancelEvent())}),at(2,"i",12),d()()}}function Le(i,o){i&1&&P(0,2)}function Re(i,o){if(i&1){let t=k();c(0,"a",16),b("click",function(){x(t);let n=p(2);return A(n.more=!n.more)}),$(1,"More"),d()}}function Be(i,o){if(i&1){let t=k();c(0,"button",17),b("click",function(){x(t);let n=p(2);return A(n.onCancelEvent())}),$(1),d()}if(i&2){let t=p(2);m(),Vt(" ",t.config.cancelText?t.config.cancelText:"CANCEL"," ")}}function je(i,o){if(i&1){let t=k();c(0,"button",18),b("click",function(){x(t);let n=p(2);return A(n.onOkEvent())})("keyup.F2",function(){x(t);let n=p(2);return A(n.onOkEvent())}),d()}if(i&2){let t=p(2);S("disabled",!t.config.validated||!t.dynamicValidated())("innerHTML",t.config.okText?t.config.okText:"OK",Mt)}}function Ne(i,o){if(i&1&&(c(0,"mat-dialog-actions",7),C(1,Re,2,0,"a",13),P(2,3),C(3,Be,2,1,"button",14),C(4,je,1,2,"button",15),d()),i&2){let t=p();m(),y(t.config.showMoreButton?1:-1),m(2),y(t.config.hideCancel?-1:3),m(),y(t.config.hideOk?-1:4)}}var Hi=(()=>{let o=class o{constructor(){this.dynamicValidated=Gt(!0),this.onOk=I(),this.onCancel=I(),this.onClose=I(),this.onBack=I(),this.term="",this.more=!1}ngOnInit(){switch(this.config==null&&(this.config=new nt),this.config.headerType){case D.Success:this.background="bg-success";break;case D.Warning:this.background="bg-warning";break;case D.Info:this.background="bg-warning";break;case D.Error:this.background="bg-danger";break;default:this.background="";break}}onKeyup(e){this.config.disableKeyup||(e.code=="F2"&&this.onOk.emit("F2"),(e.code=="Enter"||e.code=="NumpadEnter")&&this.onOk.emit("Enter"))}onCancelEvent(){this.onCancel.emit("Cancel")}onOkEvent(){this.onOk.emit("OK")}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=O({type:o,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:[1,"dynamicValidated"]},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:Te,decls:12,vars:21,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"keyup","ngClass"],["mat-dialog-title",""],[1,"back-button","position-absolute","pointer","d-print-none"],[1,"d-flex","flex-row","d-print-none",3,"ngClass"],[1,"fw-normal","text-white"],[1,"ps-3"],[1,"modal-body","w-100",3,"ngClass"],[1,"w-100","mt-10","py-7","border-top","d-flex","justify-content-end","d-print-none"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fas","fa-times","fa-md","text-primary"],[1,"more","clearfix"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3","py-8"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3","py-8",2,"width","70px",3,"disabled","innerHTML"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3","py-8",3,"click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3","py-8",2,"width","70px",3,"click","keyup.F2","disabled","innerHTML"]],template:function(n,a){n&1&&(It(ke),c(0,"div",0),b("keyup",function(s){return a.onKeyup(s)}),c(1,"div",1),C(2,Ie,3,0,"div",2),c(3,"div",3)(4,"h3",4),$(5),d(),P(6),d(),C(7,Fe,3,0,"div",5),d(),c(8,"mat-dialog-content",6),P(9,1),C(10,Le,1,0),d(),C(11,Ne,5,3,"mat-dialog-actions",7),d()),n&2&&(Bt("width",a.config.customWidth),S("ngClass",lt(13,Ee,a.config.bodyScrollable,a.config.hideScrollbar)),m(),jt(Ht("d-flex w-100 justify-content-between modal-header position-relative ",a.background)),m(),y(a.config.eMoney?2:-1),m(),S("ngClass",zt(16,Se,a.config.eMoney)),m(2),Nt(a.config.title),m(2),y(a.config.hideClose?-1:7),m(),S("ngClass",lt(18,Pe,!a.config.hideFooter,a.config.noPadding)),m(2),y(a.more?10:-1),m(),y(a.config.hideFooter?-1:11))},dependencies:[qt,Qt,Dt,yt,vt,bt],styles:[".mat-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:100%!important}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px!important;overflow-y:auto}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem!important}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]});let i=o;return i})();export{V as a,ue as b,Ct as c,yt as d,bt as e,vt as f,Dt as g,D as h,nt as i,Hi as j};
@@ -1 +1 @@
1
- import{a as ee,b as te,c as ie,d as oe,e as ne,f as re}from"./chunk-TKZ74HJD.js";import{a as P}from"./chunk-7HRL6MHY.js";import"./chunk-UB62TZOI.js";import"./chunk-O4U34AC7.js";import"./chunk-WIRBYT7F.js";import"./chunk-FOKLBUX6.js";import{a as Y,b as Z}from"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as X}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as R}from"./chunk-ZSUWHVKX.js";import"./chunk-AGBJEXIM.js";import{b as Q,c as W}from"./chunk-5UFP37GQ.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as V}from"./chunk-MM7SAZOU.js";import{b as z,d as H,e as J,g as K}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as U,w as q}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as w,Mc as O,Nb as G,Nc as u,Oc as F,Pc as $,Uc as L,Vc as N,Wc as x,_c as A,aa as D,ac as _,ad as T,cc as g,dc as h,fc as v,gc as C,hc as c,ic as l,id as B,jc as p,jd as j,kc as f,ob as s,oc as y,pc as S,ra as m,rc as k,v as b,wc as M,ya as I,yc as d,za as E}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ae=e=>({ID:e}),le=e=>({"border-end-0":e});function pe(e,o){if(e&1){let t=k();y(0),l(1,"button",11),M("click",function(){I(t);let r=d(),a=x(0);return E(r.onDeleteGroup(a==null?null:a.id))}),f(2,"i",12),u(3," Delete "),p(),S()}}function se(e,o){if(e&1&&(y(0),l(1,"a",13),f(2,"i",14),u(3," Edit "),p(),S()),e&2){d();let t=x(0);s(),c("queryParams",T(1,ae,t==null?null:t.id))}}function ce(e,o){if(e&1&&(l(0,"div",21)(1,"div",22)(2,"p",23),u(3),p()()()),e&2){let t=d(),i=t.$implicit,r=t.$index,a=d(2).$implicit;O(T(4,le,r!==a.Roles.length-1)),c("pTooltip",i.Description),s(3),$(" ",i.Name," ")}}function de(e,o){if(e&1&&_(0,ce,4,6,"div",20),e&2){let t=o.$implicit;g(t.checked?0:-1)}}function ue(e,o){if(e&1&&(l(0,"div",15)(1,"div",16)(2,"div",17)(3,"span",18),u(4),p()()(),l(5,"div",19)(6,"div",15),v(7,de,1,1,null,null,h),p()()()),e&2){let t=d().$implicit;s(4),F(t.Name),s(3),C(t==null?null:t.Roles)}}function me(e,o){if(e&1&&_(0,ue,9,1,"div",15),e&2){let t=o.$implicit;g((t==null||t.Roles==null?null:t.Roles.length)>0?0:-1)}}function fe(e,o){if(e&1&&(l(0,"div",9),v(1,me,1,1,null,null,h),p()),e&2){d();let t=x(0);s(),C(t.groups)}}var Oe=(()=>{let o=class o{constructor(){this.groupService=m(P),this.activatedRoute=m(z),this.toastr=m(V),this.route=m(H),this.group$=this.activatedRoute.queryParams.pipe(D(i=>this.groupService.getGroupsForm(i.ID).pipe(b(r=>(r.ID=i.ID,r)))),b(i=>({id:i.ID,name:i.Group.Name,groups:this.mapSelectedRoles(i.Options,i.RoleSelected),description:i.Group.Description}))),this.userEditRole=R.UserEdit,this.userDeleteRole=R.UserDelete}mapSelectedRoles(i,r){return i.map(a=>(a.Roles=a.Roles.map(n=>(n.checked=r.includes(n.ID),n)).filter(n=>n.checked),a.checked=a.Roles.some(n=>n.checked),a))}onDeleteGroup(i){confirm("Are you sure you want to delete this group?")&&this.groupService.deleteGroups([i]).subscribe(()=>{this.toastr.success("Group deleted successfully","Success"),this.route.navigate(["/menu/users/groups"])})}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=w({type:o,selectors:[["app-group-info"]],features:[A([P])],decls:23,vars:11,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Group Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12"],["type","text","pInputText","","placeholder","Group Name","readonly","",1,"w-100","form-control","rounded-1",2,"padding-top","12px","padding-bottom","12px","font-size","14px",3,"value"],["value","0"],["value","1"],[1,"d-flex","flex-column","row-gap-6","ps-8"],["pInputTextarea","","rows","10","placeholder","Description","readonly","",1,"w-100","form-control","rounded-1",3,"value"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/groups/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between","border-end-0",2,"height","40px","background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100","align-items-center","gap-4"],[1,"fs-5","w-100","text-center"],[1,"col"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"class","pTooltip"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"pTooltip"],[1,"d-flex","h-100","align-items-center","gap-4","px-2"],[1,"fs-6","text-dark",2,"margin","0"]],template:function(r,a){if(r&1&&(L(0),B(1,"async"),l(2,"mainpanel",0)(3,"actions")(4,"div",1),G(5,pe,4,0,"ng-container",2)(6,se,4,3,"ng-container",2),p()(),l(7,"content")(8,"div",3)(9,"div",4)(10,"div",5),f(11,"input",6),p()(),l(12,"p-tabs",7)(13,"p-tablist")(14,"p-tab",7),u(15,"Permission"),p(),l(16,"p-tab",8),u(17,"Description"),p()(),l(18,"p-tabpanels")(19,"p-tabpanel",7),_(20,fe,3,0,"div",9),p(),l(21,"p-tabpanel",8),f(22,"textarea",10),p()()()()()()),r&2){let n=N(j(1,8,a.group$));s(2),c("headerTitle",(n==null?null:n.name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),s(3),c("ngxPermissionsOnly",a.userDeleteRole),s(),c("ngxPermissionsOnly",a.userEditRole),s(5),c("value",n==null?null:n.name),s(9),g(n?20:-1),s(2),c("value",n==null?null:n.description)}},dependencies:[U,X,re,ne,oe,ie,ee,te,Z,Y,W,Q,K,J,q],styles:["[_nghost-%COMP%] .p-tabs{--p-tabs-tab-active-color: #555555;--p-tabs-tab-color: #0976b4}[_nghost-%COMP%] .p-tabs .p-tabpanels{padding-left:0!important}[_nghost-%COMP%] .p-tabs .p-tablist-active-bar{background-color:#555!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}[_nghost-%COMP%] .btn-outline-secondary{background-color:#fff;border-color:#ccc;color:#000}[_nghost-%COMP%] .btn-outline-secondary:hover{background-color:#f8f9fa;border-color:#b3b3b3;color:#000}"]});let e=o;return e})();export{Oe as GroupInfoComponent};
1
+ import{a as ee,b as te,c as ie,d as oe,e as ne,f as re}from"./chunk-36645CIP.js";import{a as P}from"./chunk-XW5PNJJ3.js";import"./chunk-ET33HPF3.js";import"./chunk-OH5T7D7O.js";import"./chunk-QETZ5VDX.js";import"./chunk-3NCMRK7E.js";import{a as Y,b as Z}from"./chunk-6Q4BDCI5.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{b as X}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-JTKEMQZT.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as R}from"./chunk-ZSUWHVKX.js";import"./chunk-AGBJEXIM.js";import{b as Q,c as W}from"./chunk-NB2H6KA7.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import{b as V}from"./chunk-D6JH2KV4.js";import{b as z,d as H,e as J,g as K}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{B as U,w as q}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as w,Mc as O,Nb as G,Nc as u,Oc as F,Pc as $,Uc as L,Vc as N,Wc as x,_c as A,aa as D,ac as _,ad as T,cc as g,dc as h,fc as v,gc as C,hc as c,ic as l,id as B,jc as p,jd as j,kc as f,ob as s,oc as y,pc as S,ra as m,rc as k,v as b,wc as M,ya as I,yc as d,za as E}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ae=e=>({ID:e}),le=e=>({"border-end-0":e});function pe(e,o){if(e&1){let t=k();y(0),l(1,"button",11),M("click",function(){I(t);let r=d(),a=x(0);return E(r.onDeleteGroup(a==null?null:a.id))}),f(2,"i",12),u(3," Delete "),p(),S()}}function se(e,o){if(e&1&&(y(0),l(1,"a",13),f(2,"i",14),u(3," Edit "),p(),S()),e&2){d();let t=x(0);s(),c("queryParams",T(1,ae,t==null?null:t.id))}}function ce(e,o){if(e&1&&(l(0,"div",21)(1,"div",22)(2,"p",23),u(3),p()()()),e&2){let t=d(),i=t.$implicit,r=t.$index,a=d(2).$implicit;O(T(4,le,r!==a.Roles.length-1)),c("pTooltip",i.Description),s(3),$(" ",i.Name," ")}}function de(e,o){if(e&1&&_(0,ce,4,6,"div",20),e&2){let t=o.$implicit;g(t.checked?0:-1)}}function ue(e,o){if(e&1&&(l(0,"div",15)(1,"div",16)(2,"div",17)(3,"span",18),u(4),p()()(),l(5,"div",19)(6,"div",15),v(7,de,1,1,null,null,h),p()()()),e&2){let t=d().$implicit;s(4),F(t.Name),s(3),C(t==null?null:t.Roles)}}function me(e,o){if(e&1&&_(0,ue,9,1,"div",15),e&2){let t=o.$implicit;g((t==null||t.Roles==null?null:t.Roles.length)>0?0:-1)}}function fe(e,o){if(e&1&&(l(0,"div",9),v(1,me,1,1,null,null,h),p()),e&2){d();let t=x(0);s(),C(t.groups)}}var Oe=(()=>{let o=class o{constructor(){this.groupService=m(P),this.activatedRoute=m(z),this.toastr=m(V),this.route=m(H),this.group$=this.activatedRoute.queryParams.pipe(D(i=>this.groupService.getGroupsForm(i.ID).pipe(b(r=>(r.ID=i.ID,r)))),b(i=>({id:i.ID,name:i.Group.Name,groups:this.mapSelectedRoles(i.Options,i.RoleSelected),description:i.Group.Description}))),this.userEditRole=R.UserEdit,this.userDeleteRole=R.UserDelete}mapSelectedRoles(i,r){return i.map(a=>(a.Roles=a.Roles.map(n=>(n.checked=r.includes(n.ID),n)).filter(n=>n.checked),a.checked=a.Roles.some(n=>n.checked),a))}onDeleteGroup(i){confirm("Are you sure you want to delete this group?")&&this.groupService.deleteGroups([i]).subscribe(()=>{this.toastr.success("Group deleted successfully","Success"),this.route.navigate(["/menu/users/groups"])})}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=w({type:o,selectors:[["app-group-info"]],features:[A([P])],decls:23,vars:11,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Group Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12"],["type","text","pInputText","","placeholder","Group Name","readonly","",1,"w-100","form-control","rounded-1",2,"padding-top","12px","padding-bottom","12px","font-size","14px",3,"value"],["value","0"],["value","1"],[1,"d-flex","flex-column","row-gap-6","ps-8"],["pInputTextarea","","rows","10","placeholder","Description","readonly","",1,"w-100","form-control","rounded-1",3,"value"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/groups/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between","border-end-0",2,"height","40px","background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100","align-items-center","gap-4"],[1,"fs-5","w-100","text-center"],[1,"col"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"class","pTooltip"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"pTooltip"],[1,"d-flex","h-100","align-items-center","gap-4","px-2"],[1,"fs-6","text-dark",2,"margin","0"]],template:function(r,a){if(r&1&&(L(0),B(1,"async"),l(2,"mainpanel",0)(3,"actions")(4,"div",1),G(5,pe,4,0,"ng-container",2)(6,se,4,3,"ng-container",2),p()(),l(7,"content")(8,"div",3)(9,"div",4)(10,"div",5),f(11,"input",6),p()(),l(12,"p-tabs",7)(13,"p-tablist")(14,"p-tab",7),u(15,"Permission"),p(),l(16,"p-tab",8),u(17,"Description"),p()(),l(18,"p-tabpanels")(19,"p-tabpanel",7),_(20,fe,3,0,"div",9),p(),l(21,"p-tabpanel",8),f(22,"textarea",10),p()()()()()()),r&2){let n=N(j(1,8,a.group$));s(2),c("headerTitle",(n==null?null:n.name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),s(3),c("ngxPermissionsOnly",a.userDeleteRole),s(),c("ngxPermissionsOnly",a.userEditRole),s(5),c("value",n==null?null:n.name),s(9),g(n?20:-1),s(2),c("value",n==null?null:n.description)}},dependencies:[U,X,re,ne,oe,ie,ee,te,Z,Y,W,Q,K,J,q],styles:["[_nghost-%COMP%] .p-tabs{--p-tabs-tab-active-color: #555555;--p-tabs-tab-color: #0976b4}[_nghost-%COMP%] .p-tabs .p-tabpanels{padding-left:0!important}[_nghost-%COMP%] .p-tabs .p-tablist-active-bar{background-color:#555!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}[_nghost-%COMP%] .btn-outline-secondary{background-color:#fff;border-color:#ccc;color:#000}[_nghost-%COMP%] .btn-outline-secondary:hover{background-color:#f8f9fa;border-color:#b3b3b3;color:#000}"]});let e=o;return e})();export{Oe as GroupInfoComponent};