@tuki-io/tuki-widgets 0.0.28 → 0.0.30

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 (469) hide show
  1. package/README.md +24 -25
  2. package/esm2020/lib/widgets.component.mjs +22 -0
  3. package/esm2020/lib/widgets.module.mjs +21 -0
  4. package/esm2020/lib/widgets.service.mjs +14 -0
  5. package/esm2020/public-api.mjs +7 -0
  6. package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
  7. package/esm2020/user-device-manage/public-api.mjs +9 -0
  8. package/esm2020/user-device-manage/src/app.constants.mjs +95 -0
  9. package/esm2020/user-device-manage/src/classes/device.mjs +85 -0
  10. package/esm2020/user-device-manage/src/classes/line-association-interface.mjs +2 -0
  11. package/esm2020/user-device-manage/src/classes/line-association.mjs +121 -0
  12. package/esm2020/user-device-manage/src/classes/line-call-info-display.mjs +10 -0
  13. package/esm2020/user-device-manage/src/classes/line-directory.mjs +27 -0
  14. package/esm2020/user-device-manage/src/classes/line.mjs +18 -0
  15. package/esm2020/user-device-manage/src/classes/notification.mjs +32 -0
  16. package/esm2020/user-device-manage/src/classes/recording-options.mjs +7 -0
  17. package/esm2020/user-device-manage/src/classes/simplified-user.mjs +111 -0
  18. package/esm2020/user-device-manage/src/classes/site-defaults.mjs +21 -0
  19. package/esm2020/user-device-manage/src/classes/translation-pattern.mjs +32 -0
  20. package/esm2020/user-device-manage/src/classes/types.mjs +24 -0
  21. package/esm2020/user-device-manage/src/common-functions.mjs +19 -0
  22. package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +34 -0
  23. package/esm2020/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.mjs +31 -0
  24. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.mjs +16 -0
  25. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +64 -0
  26. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line.component.mjs +179 -0
  27. package/esm2020/user-device-manage/src/device-list/device-list.component.mjs +24 -0
  28. package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +335 -0
  29. package/esm2020/user-device-manage/src/environments/environment.mjs +11 -0
  30. package/esm2020/user-device-manage/src/interseptors/auth.interceptor.mjs +36 -0
  31. package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  32. package/esm2020/user-device-manage/src/material.module.mjs +192 -0
  33. package/esm2020/user-device-manage/src/notifications/notification.component.mjs +35 -0
  34. package/esm2020/user-device-manage/src/services/api.service.mjs +79 -0
  35. package/esm2020/user-device-manage/src/services/device.service.mjs +83 -0
  36. package/esm2020/user-device-manage/src/services/dns.service.mjs +104 -0
  37. package/esm2020/user-device-manage/src/services/line.service.mjs +76 -0
  38. package/esm2020/user-device-manage/src/services/notification.service.mjs +62 -0
  39. package/esm2020/user-device-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  40. package/esm2020/user-device-manage/src/services/site-settings.service.mjs +70 -0
  41. package/esm2020/user-device-manage/src/services/sorting-utils.service.mjs +197 -0
  42. package/esm2020/user-device-manage/src/services/user.service.mjs +243 -0
  43. package/esm2020/user-device-manage/src/services/utils.service.mjs +87 -0
  44. package/esm2020/user-device-manage/src/services/validation.service.mjs +760 -0
  45. package/esm2020/user-device-manage/src/user-device-manage.module.mjs +107 -0
  46. package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +14 -0
  47. package/esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs +5 -0
  48. package/esm2020/user-manage/public-api.mjs +7 -0
  49. package/esm2020/user-manage/src/app.constants.mjs +50 -0
  50. package/esm2020/user-manage/src/classes/device.mjs +37 -0
  51. package/esm2020/user-manage/src/classes/line-association-interface.mjs +2 -0
  52. package/esm2020/user-manage/src/classes/line-association.mjs +110 -0
  53. package/esm2020/user-manage/src/classes/line-call-info-display.mjs +10 -0
  54. package/esm2020/user-manage/src/classes/line-directory.mjs +27 -0
  55. package/esm2020/user-manage/src/classes/line.mjs +18 -0
  56. package/esm2020/user-manage/src/classes/notification.mjs +32 -0
  57. package/esm2020/user-manage/src/classes/pagination.mjs +8 -0
  58. package/esm2020/user-manage/src/classes/recording-options.mjs +7 -0
  59. package/esm2020/user-manage/src/classes/simplified-user.mjs +109 -0
  60. package/esm2020/user-manage/src/classes/table-data.mjs +2 -0
  61. package/esm2020/user-manage/src/classes/translation-pattern.mjs +32 -0
  62. package/esm2020/user-manage/src/classes/user-list.mjs +10 -0
  63. package/esm2020/user-manage/src/common-functions.mjs +19 -0
  64. package/esm2020/user-manage/src/device-list/device-list.component.mjs +24 -0
  65. package/esm2020/user-manage/src/environments/environment.mjs +11 -0
  66. package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +36 -0
  67. package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  68. package/esm2020/user-manage/src/material.module.mjs +188 -0
  69. package/esm2020/user-manage/src/notifications/notification.component.mjs +35 -0
  70. package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +25 -0
  71. package/esm2020/user-manage/src/services/api.service.mjs +79 -0
  72. package/esm2020/user-manage/src/services/dns.service.mjs +110 -0
  73. package/esm2020/user-manage/src/services/line.service.mjs +34 -0
  74. package/esm2020/user-manage/src/services/notification.service.mjs +62 -0
  75. package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  76. package/esm2020/user-manage/src/services/site-settings.service.mjs +36 -0
  77. package/esm2020/user-manage/src/services/sorting-utils.service.mjs +197 -0
  78. package/esm2020/user-manage/src/services/user.service.mjs +207 -0
  79. package/esm2020/user-manage/src/services/users-search.service.mjs +49 -0
  80. package/esm2020/user-manage/src/services/utils.service.mjs +73 -0
  81. package/esm2020/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.mjs +65 -0
  82. package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +78 -0
  83. package/esm2020/user-manage/src/user-info/user-info.component.mjs +20 -0
  84. package/esm2020/user-manage/src/user-manage-widget.component.mjs +208 -0
  85. package/esm2020/user-manage/src/user-manage.module.mjs +99 -0
  86. package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +14 -0
  87. package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +43 -0
  88. package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +5 -0
  89. package/esm2020/users-list/public-api.mjs +9 -0
  90. package/esm2020/users-list/src/app.constants.mjs +50 -0
  91. package/esm2020/users-list/src/classes/device.mjs +7 -0
  92. package/esm2020/users-list/src/classes/line.mjs +18 -0
  93. package/esm2020/users-list/src/classes/notification.mjs +31 -0
  94. package/esm2020/users-list/src/classes/pagination.mjs +8 -0
  95. package/esm2020/users-list/src/classes/simlified-user.mjs +50 -0
  96. package/esm2020/users-list/src/classes/table-data.mjs +2 -0
  97. package/esm2020/users-list/src/classes/user-list.mjs +13 -0
  98. package/esm2020/users-list/src/material.module.mjs +209 -0
  99. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +95 -0
  100. package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +35 -0
  101. package/esm2020/users-list/src/services/api-webex.service.mjs +17 -0
  102. package/esm2020/users-list/src/services/api.service.mjs +78 -0
  103. package/esm2020/users-list/src/services/dns.service.mjs +120 -0
  104. package/esm2020/users-list/src/services/events-communication.service.mjs +14 -0
  105. package/esm2020/users-list/src/services/notification.service.mjs +62 -0
  106. package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +25 -0
  107. package/esm2020/users-list/src/services/user.service.mjs +150 -0
  108. package/esm2020/users-list/src/services/users-search.service.mjs +120 -0
  109. package/esm2020/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.mjs +34 -0
  110. package/esm2020/users-list/src/users-list.component.mjs +259 -0
  111. package/esm2020/users-list/src/users-list.module.mjs +80 -0
  112. package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +14 -0
  113. package/esm2020/users-list/src/utils/common-functions.mjs +19 -0
  114. package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +43 -0
  115. package/esm2020/users-list/src/utils/utils.service.mjs +73 -0
  116. package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +5 -0
  117. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +3402 -0
  118. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  119. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +2123 -0
  120. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  121. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +1523 -0
  122. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  123. package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
  124. package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
  125. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +3364 -0
  126. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  127. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +2106 -0
  128. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  129. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +1512 -0
  130. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  131. package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
  132. package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
  133. package/index.d.ts +5 -0
  134. package/lib/widgets.component.d.ts +8 -0
  135. package/lib/widgets.module.d.ts +7 -0
  136. package/lib/widgets.service.d.ts +6 -0
  137. package/package.json +51 -40
  138. package/{projects/tuki/widgets/src/public-api.ts → public-api.d.ts} +3 -7
  139. package/user-device-manage/index.d.ts +5 -0
  140. package/{projects/tuki/widgets/user-device-manage/public-api.ts → user-device-manage/public-api.d.ts} +8 -8
  141. package/user-device-manage/src/app.constants.d.ts +74 -0
  142. package/user-device-manage/src/classes/device.d.ts +233 -0
  143. package/user-device-manage/src/classes/line-association-interface.d.ts +45 -0
  144. package/user-device-manage/src/classes/line-association.d.ts +62 -0
  145. package/user-device-manage/src/classes/line-call-info-display.d.ts +11 -0
  146. package/user-device-manage/src/classes/line-directory.d.ts +15 -0
  147. package/user-device-manage/src/classes/line.d.ts +140 -0
  148. package/user-device-manage/src/classes/notification.d.ts +18 -0
  149. package/user-device-manage/src/classes/recording-options.d.ts +5 -0
  150. package/user-device-manage/src/classes/simplified-user.d.ts +52 -0
  151. package/user-device-manage/src/classes/site-defaults.d.ts +146 -0
  152. package/user-device-manage/src/classes/translation-pattern.d.ts +19 -0
  153. package/user-device-manage/src/classes/types.d.ts +19 -0
  154. package/user-device-manage/src/common-functions.d.ts +1 -0
  155. package/user-device-manage/src/confirm-dialog/info-dialog.component.d.ts +20 -0
  156. package/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.d.ts +15 -0
  157. package/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.d.ts +7 -0
  158. package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +24 -0
  159. package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +89 -0
  160. package/user-device-manage/src/device-list/device-list.component.d.ts +11 -0
  161. package/user-device-manage/src/device-manage-widget.component.d.ts +71 -0
  162. package/user-device-manage/src/environments/environment.d.ts +9 -0
  163. package/user-device-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  164. package/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  165. package/user-device-manage/src/material.module.d.ts +29 -0
  166. package/user-device-manage/src/notifications/notification.component.d.ts +19 -0
  167. package/user-device-manage/src/services/api.service.d.ts +20 -0
  168. package/user-device-manage/src/services/device.service.d.ts +21 -0
  169. package/user-device-manage/src/services/dns.service.d.ts +14 -0
  170. package/user-device-manage/src/services/line.service.d.ts +33 -0
  171. package/user-device-manage/src/services/notification.service.d.ts +18 -0
  172. package/user-device-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  173. package/user-device-manage/src/services/site-settings.service.d.ts +25 -0
  174. package/user-device-manage/src/services/sorting-utils.service.d.ts +26 -0
  175. package/user-device-manage/src/services/user.service.d.ts +51 -0
  176. package/user-device-manage/src/services/utils.service.d.ts +10 -0
  177. package/user-device-manage/src/services/validation.service.d.ts +165 -0
  178. package/user-device-manage/src/user-device-manage.module.d.ts +22 -0
  179. package/user-device-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  180. package/user-manage/index.d.ts +5 -0
  181. package/{projects/tuki/widgets/user-manage/public-api.ts → user-manage/public-api.d.ts} +6 -6
  182. package/user-manage/src/app.constants.d.ts +29 -0
  183. package/user-manage/src/classes/device.d.ts +203 -0
  184. package/user-manage/src/classes/line-association-interface.d.ts +40 -0
  185. package/user-manage/src/classes/line-association.d.ts +55 -0
  186. package/user-manage/src/classes/line-call-info-display.d.ts +11 -0
  187. package/user-manage/src/classes/line-directory.d.ts +16 -0
  188. package/user-manage/src/classes/line.d.ts +140 -0
  189. package/user-manage/src/classes/notification.d.ts +18 -0
  190. package/user-manage/src/classes/pagination.d.ts +13 -0
  191. package/user-manage/src/classes/recording-options.d.ts +5 -0
  192. package/user-manage/src/classes/simplified-user.d.ts +50 -0
  193. package/user-manage/src/classes/table-data.d.ts +5 -0
  194. package/user-manage/src/classes/translation-pattern.d.ts +18 -0
  195. package/user-manage/src/classes/user-list.d.ts +34 -0
  196. package/user-manage/src/common-functions.d.ts +1 -0
  197. package/user-manage/src/device-list/device-list.component.d.ts +11 -0
  198. package/user-manage/src/environments/environment.d.ts +9 -0
  199. package/user-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  200. package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  201. package/user-manage/src/material.module.d.ts +28 -0
  202. package/user-manage/src/notifications/notification.component.d.ts +19 -0
  203. package/user-manage/src/removeKynFromIBM.service.d.ts +8 -0
  204. package/user-manage/src/services/api.service.d.ts +21 -0
  205. package/user-manage/src/services/dns.service.d.ts +14 -0
  206. package/user-manage/src/services/line.service.d.ts +17 -0
  207. package/user-manage/src/services/notification.service.d.ts +18 -0
  208. package/user-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  209. package/user-manage/src/services/site-settings.service.d.ts +9 -0
  210. package/user-manage/src/services/sorting-utils.service.d.ts +26 -0
  211. package/user-manage/src/services/user.service.d.ts +43 -0
  212. package/user-manage/src/services/users-search.service.d.ts +25 -0
  213. package/user-manage/src/services/utils.service.d.ts +9 -0
  214. package/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.d.ts +24 -0
  215. package/user-manage/src/user-calling/user-calling.component.d.ts +30 -0
  216. package/user-manage/src/user-info/user-info.component.d.ts +9 -0
  217. package/user-manage/src/user-manage-widget.component.d.ts +45 -0
  218. package/user-manage/src/user-manage.module.d.ts +21 -0
  219. package/user-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  220. package/user-manage/src/utils/pagination/pagination.component.d.ts +18 -0
  221. package/users-list/index.d.ts +5 -0
  222. package/{projects/tuki/widgets/users-list/public-api.ts → users-list/public-api.d.ts} +8 -8
  223. package/users-list/src/app.constants.d.ts +32 -0
  224. package/users-list/src/classes/device.d.ts +224 -0
  225. package/users-list/src/classes/line.d.ts +140 -0
  226. package/users-list/src/classes/notification.d.ts +18 -0
  227. package/users-list/src/classes/pagination.d.ts +13 -0
  228. package/users-list/src/classes/simlified-user.d.ts +25 -0
  229. package/users-list/src/classes/table-data.d.ts +5 -0
  230. package/users-list/src/classes/user-list.d.ts +36 -0
  231. package/users-list/src/material.module.d.ts +31 -0
  232. package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +25 -0
  233. package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +16 -0
  234. package/users-list/src/services/api-webex.service.d.ts +8 -0
  235. package/users-list/src/services/api.service.d.ts +21 -0
  236. package/users-list/src/services/dns.service.d.ts +18 -0
  237. package/users-list/src/services/events-communication.service.d.ts +8 -0
  238. package/users-list/src/services/notification.service.d.ts +18 -0
  239. package/users-list/src/services/removeKynFromIBM.service.d.ts +8 -0
  240. package/users-list/src/services/user.service.d.ts +34 -0
  241. package/users-list/src/services/users-search.service.d.ts +34 -0
  242. package/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.d.ts +20 -0
  243. package/users-list/src/users-list.component.d.ts +59 -0
  244. package/users-list/src/users-list.module.d.ts +16 -0
  245. package/users-list/src/utils/app-loader/app-loader.d.ts +6 -0
  246. package/users-list/src/utils/common-functions.d.ts +1 -0
  247. package/users-list/src/utils/pagination/pagination.component.d.ts +18 -0
  248. package/users-list/src/utils/utils.service.d.ts +9 -0
  249. package/.editorconfig +0 -16
  250. package/.vscode/extensions.json +0 -4
  251. package/.vscode/launch.json +0 -20
  252. package/.vscode/tasks.json +0 -42
  253. package/angular.json +0 -41
  254. package/projects/tuki/widgets/README.md +0 -24
  255. package/projects/tuki/widgets/karma.conf.js +0 -44
  256. package/projects/tuki/widgets/ng-package.json +0 -7
  257. package/projects/tuki/widgets/package.json +0 -13
  258. package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +0 -23
  259. package/projects/tuki/widgets/src/lib/widgets.component.ts +0 -20
  260. package/projects/tuki/widgets/src/lib/widgets.module.ts +0 -16
  261. package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +0 -16
  262. package/projects/tuki/widgets/src/lib/widgets.service.ts +0 -9
  263. package/projects/tuki/widgets/src/test.ts +0 -27
  264. package/projects/tuki/widgets/tsconfig.lib.json +0 -36
  265. package/projects/tuki/widgets/tsconfig.lib.prod.json +0 -10
  266. package/projects/tuki/widgets/tsconfig.spec.json +0 -17
  267. package/projects/tuki/widgets/user-device-manage/ng-package.json +0 -7
  268. package/projects/tuki/widgets/user-device-manage/src/app.constants.ts +0 -96
  269. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-left.svg +0 -5
  270. package/projects/tuki/widgets/user-device-manage/src/assets/icons/arrow-right.svg +0 -5
  271. package/projects/tuki/widgets/user-device-manage/src/assets/icons/close_icon_x.svg +0 -3
  272. package/projects/tuki/widgets/user-device-manage/src/assets/icons/delete_icon.svg +0 -5
  273. package/projects/tuki/widgets/user-device-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  274. package/projects/tuki/widgets/user-device-manage/src/assets/icons/icon_user.svg +0 -1
  275. package/projects/tuki/widgets/user-device-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  276. package/projects/tuki/widgets/user-device-manage/src/classes/device.ts +0 -292
  277. package/projects/tuki/widgets/user-device-manage/src/classes/line-association-interface.ts +0 -50
  278. package/projects/tuki/widgets/user-device-manage/src/classes/line-association.ts +0 -177
  279. package/projects/tuki/widgets/user-device-manage/src/classes/line-call-info-display.ts +0 -21
  280. package/projects/tuki/widgets/user-device-manage/src/classes/line-directory.ts +0 -41
  281. package/projects/tuki/widgets/user-device-manage/src/classes/line.ts +0 -144
  282. package/projects/tuki/widgets/user-device-manage/src/classes/notification.ts +0 -40
  283. package/projects/tuki/widgets/user-device-manage/src/classes/recording-options.ts +0 -6
  284. package/projects/tuki/widgets/user-device-manage/src/classes/simplified-user.ts +0 -169
  285. package/projects/tuki/widgets/user-device-manage/src/classes/site-defaults.ts +0 -167
  286. package/projects/tuki/widgets/user-device-manage/src/classes/translation-pattern.ts +0 -50
  287. package/projects/tuki/widgets/user-device-manage/src/classes/types.ts +0 -19
  288. package/projects/tuki/widgets/user-device-manage/src/classes/user-interface.ts +0 -225
  289. package/projects/tuki/widgets/user-device-manage/src/classes/user.ts +0 -8
  290. package/projects/tuki/widgets/user-device-manage/src/common-functions.ts +0 -16
  291. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.html +0 -14
  292. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.scss +0 -79
  293. package/projects/tuki/widgets/user-device-manage/src/confirm-dialog/info-dialog.component.ts +0 -35
  294. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.css +0 -97
  295. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.html +0 -21
  296. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.ts +0 -28
  297. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.css +0 -20
  298. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.html +0 -6
  299. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.ts +0 -13
  300. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.html +0 -6
  301. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.scss +0 -4
  302. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.ts +0 -63
  303. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.html +0 -241
  304. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.scss +0 -500
  305. package/projects/tuki/widgets/user-device-manage/src/device-associated-line/device-associated-line.component.ts +0 -194
  306. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.html +0 -27
  307. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.scss +0 -131
  308. package/projects/tuki/widgets/user-device-manage/src/device-list/device-list.component.ts +0 -25
  309. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.html +0 -209
  310. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.scss +0 -502
  311. package/projects/tuki/widgets/user-device-manage/src/device-manage-widget.component.ts +0 -354
  312. package/projects/tuki/widgets/user-device-manage/src/environments/environment.prod.ts +0 -9
  313. package/projects/tuki/widgets/user-device-manage/src/environments/environment.ts +0 -10
  314. package/projects/tuki/widgets/user-device-manage/src/interseptors/auth.interceptor.ts +0 -35
  315. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
  316. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
  317. package/projects/tuki/widgets/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  318. package/projects/tuki/widgets/user-device-manage/src/material.module.ts +0 -87
  319. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.html +0 -33
  320. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.scss +0 -84
  321. package/projects/tuki/widgets/user-device-manage/src/notifications/notification.component.ts +0 -46
  322. package/projects/tuki/widgets/user-device-manage/src/removeKynFromIBM.service.ts +0 -25
  323. package/projects/tuki/widgets/user-device-manage/src/services/api.service.ts +0 -87
  324. package/projects/tuki/widgets/user-device-manage/src/services/common-functions.ts +0 -17
  325. package/projects/tuki/widgets/user-device-manage/src/services/device.service.ts +0 -95
  326. package/projects/tuki/widgets/user-device-manage/src/services/dns.service.ts +0 -111
  327. package/projects/tuki/widgets/user-device-manage/src/services/line.service.ts +0 -89
  328. package/projects/tuki/widgets/user-device-manage/src/services/notification.service.ts +0 -68
  329. package/projects/tuki/widgets/user-device-manage/src/services/removeKynFromIBM.service.ts +0 -25
  330. package/projects/tuki/widgets/user-device-manage/src/services/site-settings.service.ts +0 -82
  331. package/projects/tuki/widgets/user-device-manage/src/services/sorting-utils.service.ts +0 -203
  332. package/projects/tuki/widgets/user-device-manage/src/services/user.service.ts +0 -283
  333. package/projects/tuki/widgets/user-device-manage/src/services/utils.service.ts +0 -87
  334. package/projects/tuki/widgets/user-device-manage/src/services/validation.service.ts +0 -829
  335. package/projects/tuki/widgets/user-device-manage/src/styles/_variables.scss +0 -90
  336. package/projects/tuki/widgets/user-device-manage/src/styles/form.scss +0 -231
  337. package/projects/tuki/widgets/user-device-manage/src/styles/icons.scss +0 -32
  338. package/projects/tuki/widgets/user-device-manage/src/styles/styles.scss +0 -110
  339. package/projects/tuki/widgets/user-device-manage/src/styles/tables.scss +0 -30
  340. package/projects/tuki/widgets/user-device-manage/src/user-device-manage.module.ts +0 -73
  341. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.html +0 -6
  342. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  343. package/projects/tuki/widgets/user-device-manage/src/utils/app-loader/app-loader.ts +0 -13
  344. package/projects/tuki/widgets/user-manage/ng-package.json +0 -7
  345. package/projects/tuki/widgets/user-manage/src/app.constants.ts +0 -50
  346. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-left.svg +0 -5
  347. package/projects/tuki/widgets/user-manage/src/assets/icons/arrow-right.svg +0 -5
  348. package/projects/tuki/widgets/user-manage/src/assets/icons/delete_icon.svg +0 -5
  349. package/projects/tuki/widgets/user-manage/src/assets/icons/dragger-vertical-icon.svg +0 -3
  350. package/projects/tuki/widgets/user-manage/src/assets/icons/icon_user.svg +0 -1
  351. package/projects/tuki/widgets/user-manage/src/assets/icons/vartical_divider_icon.svg +0 -3
  352. package/projects/tuki/widgets/user-manage/src/classes/device.ts +0 -232
  353. package/projects/tuki/widgets/user-manage/src/classes/line-association-interface.ts +0 -43
  354. package/projects/tuki/widgets/user-manage/src/classes/line-association.ts +0 -161
  355. package/projects/tuki/widgets/user-manage/src/classes/line-call-info-display.ts +0 -21
  356. package/projects/tuki/widgets/user-manage/src/classes/line-directory.ts +0 -42
  357. package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -144
  358. package/projects/tuki/widgets/user-manage/src/classes/notification.ts +0 -39
  359. package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +0 -18
  360. package/projects/tuki/widgets/user-manage/src/classes/recording-options.ts +0 -6
  361. package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +0 -165
  362. package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +0 -6
  363. package/projects/tuki/widgets/user-manage/src/classes/translation-pattern.ts +0 -49
  364. package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +0 -225
  365. package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +0 -42
  366. package/projects/tuki/widgets/user-manage/src/classes/user.ts +0 -8
  367. package/projects/tuki/widgets/user-manage/src/common-functions.ts +0 -16
  368. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.html +0 -27
  369. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.scss +0 -131
  370. package/projects/tuki/widgets/user-manage/src/device-list/device-list.component.ts +0 -25
  371. package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +0 -9
  372. package/projects/tuki/widgets/user-manage/src/environments/environment.ts +0 -10
  373. package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +0 -35
  374. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
  375. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -8
  376. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  377. package/projects/tuki/widgets/user-manage/src/material.module.ts +0 -85
  378. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +0 -33
  379. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +0 -84
  380. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +0 -46
  381. package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +0 -25
  382. package/projects/tuki/widgets/user-manage/src/services/api.service.ts +0 -90
  383. package/projects/tuki/widgets/user-manage/src/services/dns.service.ts +0 -116
  384. package/projects/tuki/widgets/user-manage/src/services/line.service.ts +0 -31
  385. package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +0 -68
  386. package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +0 -25
  387. package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +0 -35
  388. package/projects/tuki/widgets/user-manage/src/services/sorting-utils.service.ts +0 -203
  389. package/projects/tuki/widgets/user-manage/src/services/user.service.ts +0 -242
  390. package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +0 -58
  391. package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +0 -71
  392. package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +0 -90
  393. package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
  394. package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -32
  395. package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -110
  396. package/projects/tuki/widgets/user-manage/src/styles/tables.scss +0 -30
  397. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.html +0 -10
  398. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.scss +0 -429
  399. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.ts +0 -63
  400. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.html +0 -32
  401. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.scss +0 -444
  402. package/projects/tuki/widgets/user-manage/src/user-calling/user-calling.component.ts +0 -89
  403. package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +0 -68
  404. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +0 -29
  405. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -64
  406. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +0 -19
  407. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +0 -292
  408. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -463
  409. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -212
  410. package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -63
  411. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -6
  412. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  413. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +0 -13
  414. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +0 -26
  415. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +0 -41
  416. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +0 -41
  417. package/projects/tuki/widgets/users-list/ng-package.json +0 -6
  418. package/projects/tuki/widgets/users-list/src/app.constants.ts +0 -50
  419. package/projects/tuki/widgets/users-list/src/assets/icons/close_icon_modal.svg +0 -3
  420. package/projects/tuki/widgets/users-list/src/assets/icons/icon_user.svg +0 -1
  421. package/projects/tuki/widgets/users-list/src/classes/device.ts +0 -225
  422. package/projects/tuki/widgets/users-list/src/classes/line.ts +0 -144
  423. package/projects/tuki/widgets/users-list/src/classes/notification.ts +0 -38
  424. package/projects/tuki/widgets/users-list/src/classes/pagination.ts +0 -18
  425. package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +0 -74
  426. package/projects/tuki/widgets/users-list/src/classes/table-data.ts +0 -6
  427. package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +0 -225
  428. package/projects/tuki/widgets/users-list/src/classes/user-list.ts +0 -47
  429. package/projects/tuki/widgets/users-list/src/classes/user.ts +0 -8
  430. package/projects/tuki/widgets/users-list/src/material.module.ts +0 -94
  431. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.css +0 -183
  432. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.html +0 -93
  433. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.ts +0 -95
  434. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.css +0 -38
  435. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.html +0 -11
  436. package/projects/tuki/widgets/users-list/src/move-user-wizard/move-user-wizard.component.ts +0 -34
  437. package/projects/tuki/widgets/users-list/src/services/api-webex.service.ts +0 -13
  438. package/projects/tuki/widgets/users-list/src/services/api.service.ts +0 -90
  439. package/projects/tuki/widgets/users-list/src/services/dns.service.ts +0 -128
  440. package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +0 -11
  441. package/projects/tuki/widgets/users-list/src/services/notification.service.ts +0 -68
  442. package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +0 -25
  443. package/projects/tuki/widgets/users-list/src/services/user.service.ts +0 -168
  444. package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +0 -135
  445. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.html +0 -14
  446. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.scss +0 -79
  447. package/projects/tuki/widgets/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.ts +0 -35
  448. package/projects/tuki/widgets/users-list/src/users-list.component.css +0 -4
  449. package/projects/tuki/widgets/users-list/src/users-list.component.css.map +0 -1
  450. package/projects/tuki/widgets/users-list/src/users-list.component.html +0 -86
  451. package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -572
  452. package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -283
  453. package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -51
  454. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +0 -11
  455. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +0 -1
  456. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +0 -6
  457. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -11
  458. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +0 -13
  459. package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +0 -16
  460. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +0 -33
  461. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +0 -84
  462. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +0 -46
  463. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +0 -45
  464. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +0 -1
  465. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +0 -26
  466. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +0 -41
  467. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +0 -41
  468. package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +0 -71
  469. package/tsconfig.json +0 -46
@@ -0,0 +1,1512 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewEncapsulation, Inject, Injectable, EventEmitter, Input, Output, NgModule } from '@angular/core';
3
+ import * as i10 from '@angular/material/table';
4
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
5
+ import * as i1 from '@angular/material/dialog';
6
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
7
+ import * as i2 from '@angular/common';
8
+ import { of, forkJoin, Subject, BehaviorSubject, Observable } from 'rxjs';
9
+ import * as i3 from '@angular/forms';
10
+ import { FormBuilder, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
11
+ import { map } from 'rxjs/operators';
12
+ import * as i1$1 from '@angular/common/http';
13
+ import { HttpHeaders, HttpClientModule } from '@angular/common/http';
14
+ import * as i4$1 from '@angular/material/button';
15
+ import { MatButtonModule } from '@angular/material/button';
16
+ import * as i3$1 from '@angular/material/progress-spinner';
17
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
18
+ import * as i11$1 from '@angular/material/menu';
19
+ import { MatMenuModule } from '@angular/material/menu';
20
+ import * as i4 from '@angular/material/core';
21
+ import { MatNativeDateModule } from '@angular/material/core';
22
+ import * as i5 from '@angular/material/select';
23
+ import { MatSelectModule } from '@angular/material/select';
24
+ import * as i6 from '@angular/material/paginator';
25
+ import { MatPaginatorModule } from '@angular/material/paginator';
26
+ import * as Big from 'big.js';
27
+ import * as i6$1 from '@angular/material/form-field';
28
+ import { MatFormFieldModule } from '@angular/material/form-field';
29
+ import * as i7 from '@angular/material/input';
30
+ import { MatInputModule } from '@angular/material/input';
31
+ import * as i9 from '@angular/material/stepper';
32
+ import { MatStepperModule } from '@angular/material/stepper';
33
+ import * as i11 from '@angular/material/radio';
34
+ import { MatRadioModule } from '@angular/material/radio';
35
+ import { BrowserModule } from '@angular/platform-browser';
36
+ import { MatExpansionModule } from '@angular/material/expansion';
37
+ import { MatDatepickerModule } from '@angular/material/datepicker';
38
+ import { MatAutocompleteModule } from '@angular/material/autocomplete';
39
+ import { MatChipsModule } from '@angular/material/chips';
40
+ import { MatListModule } from '@angular/material/list';
41
+ import { MatSidenavModule } from '@angular/material/sidenav';
42
+ import { MatTreeModule } from '@angular/material/tree';
43
+ import { DragDropModule } from '@angular/cdk/drag-drop';
44
+ import { MatTooltipModule } from '@angular/material/tooltip';
45
+ import { MatTabsModule } from '@angular/material/tabs';
46
+ import { MatCardModule } from '@angular/material/card';
47
+ import { MatCheckboxModule } from '@angular/material/checkbox';
48
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
49
+
50
+ class UserListConfirmDialogComponent {
51
+ constructor(dialogRef, data) {
52
+ this.dialogRef = dialogRef;
53
+ this.data = data;
54
+ this.confirmButtonText = 'OK';
55
+ this.message = '';
56
+ this.title = '';
57
+ }
58
+ ngOnInit() {
59
+ this.confirmButtonText = this.data.confirmButtonText || '';
60
+ this.message = this.data.message || '';
61
+ this.title = this.data.title || '';
62
+ }
63
+ onClose(val) {
64
+ this.dialogRef.close(val);
65
+ }
66
+ }
67
+ UserListConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserListConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
68
+ UserListConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserListConfirmDialogComponent, selector: "app-info-dialog", ngImport: i0, template: "<div id=\"info-dialog\" class=\"app-dialog\" aria-labelledby=\"info-dialog-label\" role=\"dialog\">\r\n <h3 *ngIf=\"title\" class=\"app-dialog-title\">{{title}}</h3>\r\n <div mat-dialog-content *ngIf=\"message\" class=\"app-dialog-content\">\r\n <div [innerHTML]=\"message\"></div>\r\n </div>\r\n <div mat-dialog-actions class=\"flex-gap-container\">\r\n <button class=\"app-dialog-button app-dialog-cancel-button\" (click)=\"onClose(false)\">\r\n Cancel\r\n </button>\r\n <button class=\"app-dialog-button app-dialog-confirm-button\" (click)=\"onClose(true)\">\r\n {{confirmButtonText}}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap\";#info-dialog{min-height:150px;width:400px;box-sizing:border-box;position:relative}#info-dialog .fa{font-size:35px;margin:0 auto 20px;display:block;text-align:center;color:#009fdb;cursor:default}.scroll-content{overflow-y:auto;margin:auto;max-height:150px;width:100%}.app-dialog{font-family:Inter,Inter,sans-serif}.app-dialog .app-dialog-title{text-align:center;font-weight:600;font-size:16px;font-family:Inter,Inter,sans-serif;margin:0 0 24px}.app-dialog .flex-gap-container{gap:16px;position:absolute;right:0;bottom:0;gap:15px;display:flex}.app-dialog .app-dialog-content{color:#000000b3;font-size:14px}.app-dialog-button{height:32px;padding:10px 12px;text-align:center;border-radius:50px;box-shadow:none;line-height:11px;border:none;font-size:14px;font-family:Inter,Inter,sans-serif;cursor:pointer}.app-dialog-cancel-button{border:1px solid rgba(0,0,0,.5);color:#000}.app-dialog-confirm-button{background:#F23933;color:#fff}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }], encapsulation: i0.ViewEncapsulation.None });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserListConfirmDialogComponent, decorators: [{
70
+ type: Component,
71
+ args: [{ selector: 'app-info-dialog', encapsulation: ViewEncapsulation.None, template: "<div id=\"info-dialog\" class=\"app-dialog\" aria-labelledby=\"info-dialog-label\" role=\"dialog\">\r\n <h3 *ngIf=\"title\" class=\"app-dialog-title\">{{title}}</h3>\r\n <div mat-dialog-content *ngIf=\"message\" class=\"app-dialog-content\">\r\n <div [innerHTML]=\"message\"></div>\r\n </div>\r\n <div mat-dialog-actions class=\"flex-gap-container\">\r\n <button class=\"app-dialog-button app-dialog-cancel-button\" (click)=\"onClose(false)\">\r\n Cancel\r\n </button>\r\n <button class=\"app-dialog-button app-dialog-confirm-button\" (click)=\"onClose(true)\">\r\n {{confirmButtonText}}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap\";#info-dialog{min-height:150px;width:400px;box-sizing:border-box;position:relative}#info-dialog .fa{font-size:35px;margin:0 auto 20px;display:block;text-align:center;color:#009fdb;cursor:default}.scroll-content{overflow-y:auto;margin:auto;max-height:150px;width:100%}.app-dialog{font-family:Inter,Inter,sans-serif}.app-dialog .app-dialog-title{text-align:center;font-weight:600;font-size:16px;font-family:Inter,Inter,sans-serif;margin:0 0 24px}.app-dialog .flex-gap-container{gap:16px;position:absolute;right:0;bottom:0;gap:15px;display:flex}.app-dialog .app-dialog-content{color:#000000b3;font-size:14px}.app-dialog-button{height:32px;padding:10px 12px;text-align:center;border-radius:50px;box-shadow:none;line-height:11px;border:none;font-size:14px;font-family:Inter,Inter,sans-serif;cursor:pointer}.app-dialog-cancel-button{border:1px solid rgba(0,0,0,.5);color:#000}.app-dialog-confirm-button{background:#F23933;color:#fff}\n"] }]
72
+ }], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: InfoDialogConfig, decorators: [{
73
+ type: Inject,
74
+ args: [MAT_DIALOG_DATA]
75
+ }] }]; } });
76
+ class InfoDialogConfig {
77
+ }
78
+
79
+ const getSavableData = (model, exclude) => {
80
+ let result = Object.keys(model);
81
+ if (exclude && exclude.length) {
82
+ result = result.filter(key => !exclude.some(item => item === key));
83
+ }
84
+ return result.reduce((result, key) => {
85
+ if (model[key] instanceof Array && model[key].length && model[key][0].getSavableData) {
86
+ result[key] = model[key].map((item) => item.getSavableData());
87
+ }
88
+ else if (model[key] instanceof Object && model[key].getSavableData) {
89
+ result[key] = model[key].getSavableData();
90
+ }
91
+ else {
92
+ result[key] = model[key];
93
+ }
94
+ return result;
95
+ }, {});
96
+ };
97
+
98
+ const API = {
99
+ USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
100
+ UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
101
+ PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
102
+ USER_BY_ID: '/api/provision/:siteId/users/:userId',
103
+ QUICK_USERS_SEARCH: "/api/search/quickusers",
104
+ DELETE_USER: "/api/search/quickusers",
105
+ MOVE_USER: "/api/migration/webex/singlemigration/features/PERSON",
106
+ AVAILABLE_DN_IN_RANGES: "/api/sites/:siteId/available-dn-in-ranges",
107
+ DELETE_LINE: "/api/provision/:siteId/deleteLine/:pkid/:token",
108
+ DISASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/deleteLineAssociation/:linePkid/:token",
109
+ CHECK_DELETE_LINE: "/api/provision/:siteId/checklinedeletion",
110
+ ASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/createLineAssociation/:token",
111
+ CHECK_DESTINATION_NUMBER: "/api/provision/:siteId/check-dn",
112
+ UPDATE_LINE_FIELDS: "/api/provision/:siteId/lineFields/:pkid/:token",
113
+ UPDATE_DEVICE_FIELDS: "/api/provision/:siteId/deviceFields/:deviceName/:token",
114
+ WEBEX_USERS: "/api/webex/provisioning/customers/:customerId/users",
115
+ MIGRATED_USERS: "/api/search/migratedusers",
116
+ REVERT_WEBEX_USER: "/api/webex/provisioning/customers/:customerId/persons/:webexUUID/removecallinglicense",
117
+ PHONE_NUMBERS: "/api/search/webex/customers/:customerId/locations/:locationId/phonenumbers"
118
+ };
119
+ const REGEX_PATTERN = {
120
+ EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
121
+ '@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
122
+ '?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
123
+ };
124
+ const PAGINATION_DEFAULTS = {
125
+ SIZE: 10,
126
+ INDEX: 0
127
+ };
128
+ const PAGINATION_SIZE_OPTIONS = [
129
+ 10,
130
+ 50,
131
+ 100,
132
+ 500
133
+ ];
134
+ const CUCS_TO_IGNORE = [
135
+ 189,
136
+ 194,
137
+ 191,
138
+ 190
139
+ ];
140
+ const CUCMS_TO_IGNORE = [
141
+ 249,
142
+ 255,
143
+ 251,
144
+ 250
145
+ ];
146
+ const MAX_INTEGER = 2147483647;
147
+
148
+ class SimplifiedUser {
149
+ constructor(user) {
150
+ if (user) {
151
+ this.userid = user.userid;
152
+ this.email = user.email;
153
+ this.firstName = user.firstName;
154
+ this.lastName = user.lastName;
155
+ this.token = user.token;
156
+ }
157
+ this.initForm();
158
+ }
159
+ initForm() {
160
+ const formBuilder = new FormBuilder();
161
+ const formSettings = {
162
+ userid: [{ value: this.userid || '', disabled: true }, [Validators.required, Validators.maxLength(128)]],
163
+ email: [{ value: this.email || '', disabled: true }, [
164
+ Validators.pattern(REGEX_PATTERN.EMAIL),
165
+ Validators.required
166
+ ]],
167
+ firstName: [{ value: this.firstName || '', disabled: true }],
168
+ lastName: [{ value: this.lastName || '', disabled: true }, Validators.required],
169
+ };
170
+ this.form = formBuilder.group(formSettings);
171
+ }
172
+ toggleEditMode() {
173
+ this.editMode = !this.editMode;
174
+ ['userid', 'email', 'firstName', 'lastName'].forEach(token => {
175
+ if (this.editMode) {
176
+ this.form.get(token)?.enable();
177
+ }
178
+ else {
179
+ this.form.get(token)?.disable();
180
+ }
181
+ });
182
+ }
183
+ getSavableData() {
184
+ const excludedFields = ['form', 'editMode', 'viewMode', 'token', 'hasModifiedCache'];
185
+ return getSavableData(this, excludedFields);
186
+ }
187
+ equal(userToCompare) {
188
+ if (!userToCompare) {
189
+ return false;
190
+ }
191
+ return JSON.stringify(this.getSavableData()) === JSON.stringify(userToCompare.getSavableData());
192
+ }
193
+ }
194
+
195
+ class UtilsService {
196
+ static sortSortArrayByProperty(array, sortBy) {
197
+ if (!array) {
198
+ return null;
199
+ }
200
+ return array.sort((a, b) => {
201
+ if (!a[sortBy] && !b[sortBy]) {
202
+ return 0;
203
+ }
204
+ if (a[sortBy] && !b[sortBy]) {
205
+ return 1;
206
+ }
207
+ if (!a[sortBy] && b[sortBy]) {
208
+ return -1;
209
+ }
210
+ const positionA = a[sortBy];
211
+ const positionB = b[sortBy];
212
+ return (positionA < positionB) ? -1 : (positionA > positionB) ? 1 : 0;
213
+ });
214
+ }
215
+ static diff(origObject, updatedObj, path, keysToIgnore) {
216
+ let result = [];
217
+ if (Object.is(origObject, updatedObj)) {
218
+ return undefined;
219
+ }
220
+ if (!updatedObj || typeof updatedObj !== 'object') {
221
+ return updatedObj;
222
+ }
223
+ const concat = Array.from(new Set([...Object.keys(origObject || {}), ...Object.keys(updatedObj || {})]));
224
+ const filter = keysToIgnore ? concat.filter(key => !keysToIgnore.includes(key)) : concat;
225
+ filter
226
+ .forEach(key => {
227
+ if (typeof updatedObj[key] === 'object' && typeof origObject[key] === 'object') {
228
+ if (UtilsService.differs(updatedObj[key], origObject[key])) {
229
+ const newPath = `${path}${path ? '.' : ''}${key}`;
230
+ const values = UtilsService.diff(origObject[key], updatedObj[key], newPath, keysToIgnore);
231
+ if (values !== undefined) {
232
+ result = [...result, ...values];
233
+ }
234
+ }
235
+ }
236
+ else if (updatedObj && !origObject || updatedObj[key] !== origObject[key] && !Object.is(origObject[key], updatedObj[key])) {
237
+ const value = updatedObj ? UtilsService.formatIfEmpty(updatedObj[key]) : null;
238
+ result.push(`${path}${path ? '.' : ''}${key}=${value}`);
239
+ }
240
+ });
241
+ return result;
242
+ }
243
+ static formatIfEmpty(value) {
244
+ if (value) {
245
+ return value;
246
+ }
247
+ switch (typeof value) {
248
+ case 'boolean':
249
+ return value;
250
+ case 'string':
251
+ return '';
252
+ default:
253
+ return null;
254
+ }
255
+ }
256
+ static differs(obj1, obj2) {
257
+ return JSON.stringify(obj1) !== JSON.stringify(obj2);
258
+ }
259
+ }
260
+ UtilsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
261
+ UtilsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService });
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, decorators: [{
263
+ type: Injectable
264
+ }] });
265
+
266
+ class APIService {
267
+ constructor(httpClient) {
268
+ this.httpClient = httpClient;
269
+ this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
270
+ }
271
+ fetch(url, params = {}, cache) {
272
+ const headers = this.getHeaders(cache);
273
+ return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
274
+ }
275
+ post(url, body, params = {}) {
276
+ body = body || null;
277
+ const headers = this.getHeaders();
278
+ return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
279
+ }
280
+ // use when response extended data is necessary:
281
+ postExtended(url, body = null, params = {}, headers = {}) {
282
+ headers = headers || this.getHeaders();
283
+ return this.httpClient.post(this.apiUrl + url, body, {
284
+ headers,
285
+ observe: 'response',
286
+ params: this.prepareEncodedParams(params)
287
+ });
288
+ }
289
+ put(url, body = null, params = {}) {
290
+ const headers = this.getHeaders();
291
+ return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
292
+ }
293
+ delete(url, params = {}) {
294
+ const headers = this.getHeaders();
295
+ return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
296
+ }
297
+ fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
298
+ const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
299
+ const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
300
+ return this.fetch(url, params, cache);
301
+ }
302
+ prepareEncodedParams(params) {
303
+ const result = {};
304
+ if (!params) {
305
+ return {};
306
+ }
307
+ for (const key of Object.keys(params)) {
308
+ if (params[key]) {
309
+ const stringParam = params[key].toString();
310
+ result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
311
+ }
312
+ }
313
+ return result;
314
+ }
315
+ getHeaders(cache) {
316
+ let headers = new HttpHeaders();
317
+ if (cache) {
318
+ headers = headers.append('_Cache', 'true ');
319
+ }
320
+ const token = this.token || this.getParameterByName('token');
321
+ headers = headers.append('Authorization', 'Bearer ' + token);
322
+ return headers;
323
+ }
324
+ getParameterByName(name, url = window.location.href) {
325
+ name = name.replace(/[\[\]]/g, '\\$&');
326
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
327
+ if (!results)
328
+ return null;
329
+ if (!results[2])
330
+ return '';
331
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
332
+ }
333
+ }
334
+ APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
335
+ APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService });
336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
337
+ type: Injectable
338
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
339
+
340
+ class ApiWebexService extends APIService {
341
+ constructor(httpClient) {
342
+ super(httpClient);
343
+ //this.apiUrl = window.location.protocol + "//"+ window.location.hostname + environment.apiAuthUrl;
344
+ this.apiUrl = 'https://webex.car-west.net/webex';
345
+ }
346
+ }
347
+ ApiWebexService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
348
+ ApiWebexService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService });
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService, decorators: [{
350
+ type: Injectable
351
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
352
+
353
+ class UserService {
354
+ constructor(apiService, apiWebexService) {
355
+ this.apiService = apiService;
356
+ this.apiWebexService = apiWebexService;
357
+ this.siteId = -1;
358
+ this.userId = '';
359
+ this.userIdExistPending = false;
360
+ this.hasExistedUserId = false;
361
+ }
362
+ ngOnInit() {
363
+ console.log(this.siteId);
364
+ }
365
+ fetchUserToken(siteId, userId) {
366
+ this.siteId = siteId;
367
+ this.userId = userId;
368
+ return this.apiService.fetch(API.USER_TOKEN.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(userId))))
369
+ .pipe(map((result) => {
370
+ const token = Object.keys(result)[0];
371
+ this.setSimplifiedUser(Object.values(result)[0], token);
372
+ }));
373
+ // .pipe(this.handleError(false, true));
374
+ }
375
+ updateUserFields(body) {
376
+ if (!this.userId || !this.siteId || !this.user?.token) {
377
+ return;
378
+ }
379
+ return this.apiService.post(API.UPDATE_USER_FIELDS.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), body);
380
+ // .pipe(this.handleError(false, true));
381
+ }
382
+ moveUser(customerId, user) {
383
+ // return new Observable<boolean>(observer => {
384
+ // setTimeout(() => {
385
+ // observer.next(true);
386
+ //
387
+ // }, 80000);
388
+ // });
389
+ return this.apiWebexService.post(API.MOVE_USER, this.getMoveUserBody(customerId, user));
390
+ // .pipe(this.handleError(true, true));
391
+ }
392
+ moveUserToMT(customerId, user) {
393
+ // return new Observable<boolean>(observer => {
394
+ // setTimeout(() => {
395
+ // observer.next(true);
396
+ //
397
+ // }, 80000);
398
+ // });
399
+ return this.apiWebexService.post(API.MOVE_USER, this.getMoveUserBody(customerId, user));
400
+ // .pipe(this.handleError(true, true));
401
+ }
402
+ moveUserToDI(customerId, user) {
403
+ // return new Observable<boolean>(observer => {
404
+ // setTimeout(() => {
405
+ // observer.next(true);
406
+ //
407
+ // }, 80000);
408
+ // });
409
+ const URL = API.REVERT_WEBEX_USER.replace(':customerId', customerId).replace(':webexUUID', String(user.webexUUID));
410
+ return this.apiWebexService.post(URL, this.getMoveUserBody(customerId, user));
411
+ // .pipe(this.handleError(true, true));
412
+ }
413
+ getMoveUserBody(customerId, user) {
414
+ return {
415
+ customerId: customerId,
416
+ entities: {
417
+ PERSON: [{ cucmId: user.cucmId, entityId: user.userid }]
418
+ }
419
+ };
420
+ }
421
+ deleteUser(siteId, userId) {
422
+ return this.apiService.delete(API.DELETE_USER.replace(':siteId', String(siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(userId))));
423
+ // .pipe(this.handleError(true, true));
424
+ }
425
+ fetchUserById(id) {
426
+ this.userIdExistPending = true;
427
+ return this.apiService.fetch(API.USER_BY_ID.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(id))))
428
+ .pipe(map(result => {
429
+ this.userIdExistPending = false;
430
+ return result;
431
+ }));
432
+ }
433
+ persistCacheChanges() {
434
+ const params = {
435
+ excludeDeviceExtraOptions: true
436
+ };
437
+ return this.processUserChangesToCache()
438
+ .pipe(map((result) => {
439
+ return this.apiService.post(API.PERSIST_USER_CACHE.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), {}, params)
440
+ .subscribe(() => {
441
+ });
442
+ // .pipe(map((user) => {
443
+ // // this.setUser(user, false, this.user.token);
444
+ // this.user.hasModifiedCache = false;
445
+ // }))
446
+ // .pipe(this.handleError(true, true));
447
+ }));
448
+ }
449
+ processUserChangesToCache() {
450
+ const calls = [];
451
+ const body = UtilsService.diff(this.originUser.getSavableData(), this.user.getSavableData(), 'user');
452
+ if (body) {
453
+ calls.push(this.updateUserFields(body));
454
+ }
455
+ if (!calls?.length) {
456
+ return of(this.user);
457
+ }
458
+ return forkJoin(calls)
459
+ .pipe(map((responses) => {
460
+ // ApiUserResponse
461
+ this.handleSaveUserResponse(responses);
462
+ }));
463
+ // .pipe(this.handleError(false, true));
464
+ }
465
+ hasUnsavedChanges() {
466
+ return !this.user.equal(this.originUser);
467
+ }
468
+ setSimplifiedUser(user, token) {
469
+ this.user = new SimplifiedUser(user);
470
+ const copiedUser = JSON.parse(JSON.stringify(user));
471
+ this.originUser = new SimplifiedUser(copiedUser);
472
+ this.user.token = this.user.token || token;
473
+ this.originUser.token = this.originUser.token || token;
474
+ }
475
+ handleSaveUserResponse(responses) {
476
+ if (!responses?.length) {
477
+ return;
478
+ }
479
+ for (let len = responses.length, i = len - 1; i >= 0; i--) {
480
+ if (responses[i] && responses[i].currentUpdatedUser) {
481
+ // this.setUser(responses[i].currentUpdatedUser, false, this.user.token);
482
+ this.user.hasModifiedCache = true;
483
+ return;
484
+ }
485
+ }
486
+ }
487
+ }
488
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService, deps: [{ token: APIService }, { token: ApiWebexService }], target: i0.ɵɵFactoryTarget.Injectable });
489
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService });
490
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService, decorators: [{
491
+ type: Injectable
492
+ }], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }]; } });
493
+
494
+ const TTL_DEFAULT = 30000;
495
+ const TTL_LONG_DEFAULT = 45000;
496
+ var NotificationType;
497
+ (function (NotificationType) {
498
+ NotificationType["info"] = "info";
499
+ NotificationType["error"] = "error";
500
+ NotificationType["success"] = "success";
501
+ NotificationType["warning"] = "warning";
502
+ })(NotificationType || (NotificationType = {}));
503
+ class Notification {
504
+ constructor(data) {
505
+ this.ttl = TTL_DEFAULT;
506
+ Object.assign(this, data || {});
507
+ if (this.ttl === undefined) {
508
+ this.ttl = this.message && this.message.length && this.message.length < 80 ? TTL_DEFAULT : TTL_LONG_DEFAULT;
509
+ }
510
+ }
511
+ isInfo() {
512
+ return this.type === NotificationType.info;
513
+ }
514
+ isError() {
515
+ return this.type === NotificationType.error;
516
+ }
517
+ isSuccess() {
518
+ return this.type === NotificationType.success;
519
+ }
520
+ isWarning() {
521
+ return this.type === NotificationType.warning;
522
+ }
523
+ }
524
+
525
+ const SUCCESS_TIME = 5000;
526
+ const INACTIVE_SESSION_MESSAGE = 'Your session was lost due to inactivity. Please login again';
527
+ const INACTIVE_SESSION = 'SESSION_INACTIVE';
528
+ class NotificationService {
529
+ constructor() {
530
+ this.listChange = new Subject();
531
+ this.max = 0;
532
+ this.list = [];
533
+ }
534
+ error(message, ttl) {
535
+ this.notify('error', message, ttl);
536
+ }
537
+ success(message, ttl) {
538
+ this.notify('success', message, (!ttl) ? SUCCESS_TIME : ttl);
539
+ }
540
+ warning(message, ttl) {
541
+ this.notify('warning', message, ttl);
542
+ }
543
+ info(message, ttl) {
544
+ this.notify('info', message, ttl);
545
+ }
546
+ notify(type, message, ttl) {
547
+ const found = this.list.find((n) => n.message === message);
548
+ if (found) {
549
+ this.remove(found);
550
+ }
551
+ const notification = new Notification({
552
+ id: ++this.max,
553
+ type, message, ttl
554
+ });
555
+ if (notification.ttl > 0) {
556
+ notification.timerId = setTimeout(() => this.remove(notification, true), notification.ttl);
557
+ }
558
+ this.list.push(notification);
559
+ this.listChange.next(this.list);
560
+ }
561
+ remove(notification, auto) {
562
+ if (!auto && notification.timerId) {
563
+ // clear timeout in case of manual remove
564
+ clearInterval(notification.timerId);
565
+ }
566
+ this.list = this.list.filter(n => n.id !== notification.id);
567
+ this.listChange.next(this.list);
568
+ }
569
+ removeInactiveSessionError() {
570
+ if (!this.list || !this.list.length) {
571
+ return;
572
+ }
573
+ this.list = this.list.filter(n => n.message !== INACTIVE_SESSION_MESSAGE && n.message !== INACTIVE_SESSION);
574
+ this.listChange.next(this.list);
575
+ }
576
+ }
577
+ NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
578
+ NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService });
579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, decorators: [{
580
+ type: Injectable
581
+ }], ctorParameters: function () { return []; } });
582
+
583
+ class ListUser {
584
+ constructor(user, roleName) {
585
+ this.devices = [];
586
+ this.deviceProfiles = [];
587
+ if (user) {
588
+ Object.assign(this, user);
589
+ }
590
+ if (roleName) {
591
+ this.roleName = roleName;
592
+ }
593
+ }
594
+ }
595
+
596
+ class RemoveKynFromIBMService {
597
+ constructor() {
598
+ }
599
+ removeCUCMS(date, customerId) {
600
+ if (customerId === 8) {
601
+ return date.filter((val) => !CUCMS_TO_IGNORE.includes(Math.round(val.cucmId)));
602
+ }
603
+ return date;
604
+ }
605
+ removeCUCS(date, customerId) {
606
+ if (customerId === 8) {
607
+ return date.filter((val) => !CUCS_TO_IGNORE.includes(Math.round(val.cucId)));
608
+ }
609
+ return date;
610
+ }
611
+ }
612
+ RemoveKynFromIBMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
613
+ RemoveKynFromIBMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService });
614
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, decorators: [{
615
+ type: Injectable
616
+ }], ctorParameters: function () { return []; } });
617
+
618
+ class UsersSearchService {
619
+ constructor(apiService, webexApiService, removeKynFromIBMService) {
620
+ this.apiService = apiService;
621
+ this.webexApiService = webexApiService;
622
+ this.removeKynFromIBMService = removeKynFromIBMService;
623
+ this.siteId = -1;
624
+ this.userId = '';
625
+ this.userIdExistPending = false;
626
+ this.hasExistedUserId = false;
627
+ this.pageSize = PAGINATION_DEFAULTS.SIZE;
628
+ this.pageIndex = PAGINATION_DEFAULTS.SIZE;
629
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
630
+ this.foundUsers$ = new BehaviorSubject(null);
631
+ }
632
+ getPagination() {
633
+ return {
634
+ total: this.total,
635
+ pageSizeOptions: this.pageSizeOptions,
636
+ pageSize: this.pageSize,
637
+ pageIndex: this.pageIndex
638
+ };
639
+ }
640
+ setDefaultValues() {
641
+ this.total = 0;
642
+ this.pageSize = PAGINATION_DEFAULTS.SIZE;
643
+ this.pageIndex = PAGINATION_DEFAULTS.INDEX;
644
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
645
+ }
646
+ quickRegularUsersSearch(searchParams, isMigratedUsersOnly, pageSize) {
647
+ console.log('searchParams = ', searchParams);
648
+ this.searchParams = searchParams || { customerid: this.customerId, siteid: this.siteId };
649
+ return this.apiService.fetchPagination(API.QUICK_USERS_SEARCH, this.pageSize, pageSize || this.pageIndex, this.searchParams)
650
+ .pipe(map((res) => {
651
+ // this.totals = this.totals || {};
652
+ // this.totals['users'] = res.total;
653
+ // this.foundUsers$.next(this.removeKynFromIBMService.removeCUCMS(users, this.customerId));
654
+ if (!isMigratedUsersOnly) {
655
+ const users = res.pageData && res.pageData.length ? res.pageData
656
+ .map(user => new ListUser(user, 'Dedicated Instance Calling user')) : [];
657
+ if (this.migratedUsersIds?.length) {
658
+ this.setMigratedPropToUsers(users);
659
+ }
660
+ this.total = res.total;
661
+ this.foundUsers$.next(users);
662
+ }
663
+ else {
664
+ this.migratedUsersIds = res.pageData && res.pageData.length ? res.pageData
665
+ .map(user => user.userid) : [];
666
+ }
667
+ }));
668
+ // .pipe(this.handleError(true));
669
+ }
670
+ quickWebexUsersSearch(searchParams, isMigratedUsersOnly, pageSize) {
671
+ this.searchParams = searchParams || { customerid: this.customerId, siteid: this.siteId };
672
+ return this.webexApiService.fetchPagination(API.QUICK_USERS_SEARCH, this.pageSize, pageSize || this.pageIndex, this.searchParams)
673
+ .pipe(map((res) => {
674
+ if (!isMigratedUsersOnly) {
675
+ const users = res.pageData && res.pageData.length ? res.pageData
676
+ .map(user => new ListUser(user, 'Dedicated Instance Calling user')) : [];
677
+ if (this.migratedUsersIds?.length) {
678
+ this.setMigratedPropToUsers(users);
679
+ }
680
+ this.total = res.total;
681
+ this.foundUsers$.next(users);
682
+ }
683
+ else {
684
+ this.migratedUsersIds = res.pageData && res.pageData.length ? res.pageData
685
+ .map(user => user.userid) : [];
686
+ }
687
+ }));
688
+ // .pipe(this.handleError(true));
689
+ }
690
+ getMigratedUsers(customerId) {
691
+ return this.webexApiService.fetch(API.WEBEX_USERS.replace(':customerId', String(customerId)), {})
692
+ .pipe(map((result) => {
693
+ if (result && result.length) {
694
+ this.migratedUsers = result.filter((user) => user.webexUUID && user.devices && user.devices.length);
695
+ }
696
+ }));
697
+ }
698
+ getMigratedWebexUsers(customerId) {
699
+ const params = { customerid: customerId, type: 'PERSON' };
700
+ return this.webexApiService.fetch(API.MIGRATED_USERS.replace(':customerId', String(customerId)), params, true)
701
+ .pipe(map((result) => {
702
+ }));
703
+ }
704
+ setMigratedPropToUsers(users) {
705
+ users.forEach((user) => {
706
+ const migratedUser = this.migratedUsers.filter((migratedUser) => migratedUser.userid === user.email);
707
+ if (migratedUser && migratedUser[0]) {
708
+ user.roleName = '';
709
+ user.isMigrated = true;
710
+ user.status = 'Migrated';
711
+ user.webexUUID = migratedUser[0].webexUUID;
712
+ }
713
+ else {
714
+ user.roleName = 'Dedicated Instance Calling user';
715
+ user.isMigrated = false;
716
+ user.status = 'Active';
717
+ user.webexUUID = '';
718
+ }
719
+ });
720
+ console.log('users ttt', users);
721
+ }
722
+ }
723
+ UsersSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService, deps: [{ token: APIService }, { token: ApiWebexService }, { token: RemoveKynFromIBMService }], target: i0.ɵɵFactoryTarget.Injectable });
724
+ UsersSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService });
725
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService, decorators: [{
726
+ type: Injectable
727
+ }], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }, { type: RemoveKynFromIBMService }]; } });
728
+
729
+ class PaginationComponent {
730
+ constructor() {
731
+ this.pageEmitter = new EventEmitter();
732
+ this.pageNumberChangeEmitter = new EventEmitter();
733
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
734
+ }
735
+ ngOnInit() {
736
+ }
737
+ pageEvent(event) {
738
+ this.pageEmitter.emit(event);
739
+ }
740
+ changePerPageNumber(event) {
741
+ this.pageNumberChangeEmitter.emit(event.value);
742
+ }
743
+ }
744
+ PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
745
+ PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PaginationComponent, selector: "app-pagination", inputs: { pagination: "pagination", showPageSizeOptions: "showPageSizeOptions", showRefreshButton: "showRefreshButton", lengthPending: "lengthPending" }, outputs: { pageEmitter: "pageEmitter", pageNumberChangeEmitter: "pageNumberChangeEmitter" }, ngImport: i0, template: "<div class=\"flex-box pagination\">\r\n <div class=\"page-indexes-box\">\r\n <mat-paginator\r\n [id]=\"'commonPagination'\"\r\n [hidePageSize]=\"true\"\r\n [length]=\"pagination.total\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n <mat-spinner class=\"length-spinner\" [diameter]=\"20\" mode=\"indeterminate\" *ngIf=\"lengthPending\">\r\n </mat-spinner>\r\n </div>\r\n\r\n <div class=\"flex-box per-page-block\" *ngIf=\"showPageSizeOptions\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select [(ngModel)]=\"pagination.pageSize\" (selectionChange)=\"changePerPageNumber($event)\" #page\r\n [id]=\"'commonPaginationSelect'\">\r\n <mat-option *ngFor=\"let option of pageSizeOptions; let i = index;\" [id]=\"'paginationSelectOpt_' + i\" [value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n", styles: [".search-header-refresh-icon{align-items:center;line-height:54px;margin-left:10px}button[mat-icon-button] i{font-size:18px}mat-spinner.length-spinner{position:absolute;right:120px}h3,.search-header-refresh-icon{float:left}.page-options,.mat-paginator{float:right}.per-page-block mat-form-field{width:70px!important}.per-page-block span{margin-right:20px}.pagination{display:flex;justify-content:flex-end}.select-page-size{width:60px;margin:0 0 0 15px;padding:0 10px}.item_per_page{line-height:35px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }] });
746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, decorators: [{
747
+ type: Component,
748
+ args: [{ selector: 'app-pagination', template: "<div class=\"flex-box pagination\">\r\n <div class=\"page-indexes-box\">\r\n <mat-paginator\r\n [id]=\"'commonPagination'\"\r\n [hidePageSize]=\"true\"\r\n [length]=\"pagination.total\"\r\n [pageIndex]=\"pagination.pageIndex\"\r\n [pageSize]=\"pagination.pageSize\"\r\n [pageSizeOptions]=\"pagination.pageSizeOptions\"\r\n (page)=\"pageEvent($event)\">\r\n </mat-paginator>\r\n <mat-spinner class=\"length-spinner\" [diameter]=\"20\" mode=\"indeterminate\" *ngIf=\"lengthPending\">\r\n </mat-spinner>\r\n </div>\r\n\r\n <div class=\"flex-box per-page-block\" *ngIf=\"showPageSizeOptions\">\r\n <div class=\"item_per_page\">Items per page:</div>\r\n <div class=\"select-box select-page-size\">\r\n <mat-select [(ngModel)]=\"pagination.pageSize\" (selectionChange)=\"changePerPageNumber($event)\" #page\r\n [id]=\"'commonPaginationSelect'\">\r\n <mat-option *ngFor=\"let option of pageSizeOptions; let i = index;\" [id]=\"'paginationSelectOpt_' + i\" [value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n", styles: [".search-header-refresh-icon{align-items:center;line-height:54px;margin-left:10px}button[mat-icon-button] i{font-size:18px}mat-spinner.length-spinner{position:absolute;right:120px}h3,.search-header-refresh-icon{float:left}.page-options,.mat-paginator{float:right}.per-page-block mat-form-field{width:70px!important}.per-page-block span{margin-right:20px}.pagination{display:flex;justify-content:flex-end}.select-page-size{width:60px;margin:0 0 0 15px;padding:0 10px}.item_per_page{line-height:35px}\n"] }]
749
+ }], ctorParameters: function () { return []; }, propDecorators: { pagination: [{
750
+ type: Input
751
+ }], showPageSizeOptions: [{
752
+ type: Input
753
+ }], showRefreshButton: [{
754
+ type: Input
755
+ }], lengthPending: [{
756
+ type: Input
757
+ }], pageEmitter: [{
758
+ type: Output
759
+ }], pageNumberChangeEmitter: [{
760
+ type: Output
761
+ }] } });
762
+
763
+ class AppLoaderComponent {
764
+ constructor() {
765
+ }
766
+ }
767
+ AppLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
768
+ AppLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AppLoaderComponent, selector: "app-loader", ngImport: i0, template: "<div class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"120\"></mat-progress-spinner>\r\n</div>\r\n", styles: [".overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff3;z-index:200}\n"], dependencies: [{ kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], encapsulation: i0.ViewEncapsulation.None });
769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, decorators: [{
770
+ type: Component,
771
+ args: [{ selector: 'app-loader', encapsulation: ViewEncapsulation.None, template: "<div class=\"overlay\">\r\n <mat-progress-spinner\r\n class=\"page-spinner\"\r\n mode=\"indeterminate\"\r\n [diameter]=\"120\"></mat-progress-spinner>\r\n</div>\r\n", styles: [".overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff3;z-index:200}\n"] }]
772
+ }], ctorParameters: function () { return []; } });
773
+
774
+ var EntityChangeType;
775
+ (function (EntityChangeType) {
776
+ EntityChangeType["added"] = "added";
777
+ EntityChangeType["updated"] = "updated";
778
+ EntityChangeType["existing"] = "existing";
779
+ EntityChangeType["removed"] = "removed";
780
+ EntityChangeType["unassociated"] = "unassociated";
781
+ })(EntityChangeType || (EntityChangeType = {}));
782
+ var DnRangeType;
783
+ (function (DnRangeType) {
784
+ DnRangeType["extension"] = "EXTENSION";
785
+ DnRangeType["cpg"] = "CPG";
786
+ DnRangeType["callpark"] = "CALLPARK";
787
+ DnRangeType["huntgroup"] = "HUNTGROUP";
788
+ DnRangeType["meetme"] = "MEETME";
789
+ DnRangeType["did"] = "DID";
790
+ })(DnRangeType || (DnRangeType = {}));
791
+
792
+ class DnsService {
793
+ constructor(apiService, apiWebexService) {
794
+ this.apiService = apiService;
795
+ this.apiWebexService = apiWebexService;
796
+ this.availableNumbers = {};
797
+ this.phoneNumbers = [];
798
+ }
799
+ getNumberRange(siteId, routePartition, withdids, from, pageSize) {
800
+ // @ts-ignore
801
+ if (this.availableNumbers[routePartition]?.length) {
802
+ return new Observable(observer => {
803
+ // @ts-ignore
804
+ observer.next(this.availableNumbers[routePartition]);
805
+ });
806
+ }
807
+ this.availableDidPatternsMappedToDn = {};
808
+ pageSize = pageSize ? pageSize : 20;
809
+ const params = { dntype: DnRangeType.extension, routepartition: routePartition, size: pageSize, page: 0 };
810
+ if (withdids) {
811
+ // @ts-ignore
812
+ params['withdids'] = 'true';
813
+ }
814
+ if (from) {
815
+ // @ts-ignore
816
+ params['from'] = from;
817
+ }
818
+ // @ts-ignore
819
+ this.availableNumbers[routePartition] = this.availableNumbers[routePartition] || [];
820
+ return this.apiService.fetch(API.AVAILABLE_DN_IN_RANGES.replace(':siteId', siteId), params)
821
+ .pipe(map((res) => {
822
+ res.availableNumberList.forEach((availableNumber) => {
823
+ this.setAvailableDidMappedToDn(availableNumber);
824
+ // @ts-ignore
825
+ this.availableNumbers[routePartition] = [...this.availableNumbers[routePartition], ...this.getUnwrapNumberRange(availableNumber)];
826
+ });
827
+ }));
828
+ // .pipe(this.handleError(true, false));
829
+ }
830
+ setAvailableDidMappedToDn(availableNumber) {
831
+ if (availableNumber.unUsedNumbersWithDids && availableNumber.unUsedNumbersWithDids.length) {
832
+ availableNumber.unUsedNumbersWithDids.forEach((numberWithDids) => {
833
+ const dn = numberWithDids['unUsedNumber'];
834
+ this.availableDidPatternsMappedToDn[dn] = [{}];
835
+ if (numberWithDids['translationPatternList'] && numberWithDids['translationPatternList'].length > 0) {
836
+ this.availableDidPatternsMappedToDn[dn] = numberWithDids['translationPatternList'];
837
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = [{}];
838
+ if (numberWithDids['mappedDids'] && numberWithDids['mappedDids'].length > 0) {
839
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = numberWithDids['mappedDids'];
840
+ }
841
+ }
842
+ this.availableDidPatternsMappedToDn[dn][0]['vm'] = numberWithDids['vm'];
843
+ });
844
+ }
845
+ }
846
+ getUnwrapNumberRange(availableNumber) {
847
+ let unwrapNumberRange = this.unwrapNumberRange(availableNumber.phoneNumberRange.from, availableNumber.phoneNumberRange.to)
848
+ .map((unwrappedNumber) => {
849
+ const dn = availableNumber.phoneNumberRange.prefix + unwrappedNumber;
850
+ let str = dn;
851
+ if (this.availableDidPatternsMappedToDn[dn] && this.availableDidPatternsMappedToDn[dn].length > 0) {
852
+ if (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] && this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 0) {
853
+ str += ' DID: ' + (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 1 ? 'multiple' :
854
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'][0]);
855
+ }
856
+ if (this.availableDidPatternsMappedToDn[dn][0]['vm']) {
857
+ str += ' In Use - VM';
858
+ }
859
+ }
860
+ return str;
861
+ });
862
+ unwrapNumberRange = unwrapNumberRange.filter((unwrappedNumber) => !availableNumber.usedNumbers.includes(unwrappedNumber));
863
+ return unwrapNumberRange;
864
+ }
865
+ unwrapNumberRange(start, end) {
866
+ const regExp = /(^0+)/;
867
+ let leadingZeros = '';
868
+ const matches = start.match(regExp);
869
+ if (matches) {
870
+ leadingZeros = matches[1];
871
+ }
872
+ const startNumeric = new Big(start);
873
+ const endNumeric = new Big(end);
874
+ // @ts-ignore
875
+ return Array.from({ length: (endNumeric.minus(startNumeric).plus(new Big(1)).toFixed(0)) }, (v, k) => {
876
+ const number = String(startNumeric.plus(new Big(k)).toFixed(0));
877
+ if ((leadingZeros + number).length > start.length) {
878
+ leadingZeros = leadingZeros.substr(1);
879
+ }
880
+ return leadingZeros + number;
881
+ });
882
+ }
883
+ fetchPhoneNumbers(customerId, locationId) {
884
+ const params = {
885
+ available: true,
886
+ numberType: 'NUMBER'
887
+ };
888
+ return this.apiWebexService.fetch(API.PHONE_NUMBERS.replace(':customerId', String(customerId)).replace(':locationId', locationId), params)
889
+ .pipe(map((result) => {
890
+ if (result?.length) {
891
+ this.phoneNumbers = result.map((item) => item.phoneNumber);
892
+ }
893
+ return result;
894
+ }));
895
+ }
896
+ }
897
+ DnsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService, deps: [{ token: APIService }, { token: ApiWebexService }], target: i0.ɵɵFactoryTarget.Injectable });
898
+ DnsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService });
899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService, decorators: [{
900
+ type: Injectable
901
+ }], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }]; } });
902
+
903
+ // for test only
904
+ const LOCATION = 'Y2lzY29zcGFyazovL3VzL0xPQ0FUSU9OLzE2YjY0NjljLTBjZmQtNDJjMS1iOWJjLTUyN2FlZTNhN2RlOQ';
905
+ class MoveUserStepperComponent {
906
+ get currentNumber() {
907
+ if (this.user?.devices?.length && this.user.devices[0]?.lineAssociations && this.user.devices[0].lineAssociations[0]) {
908
+ return this.user.devices[0].lineAssociations[0].directoryNumber.directoryNumber;
909
+ }
910
+ return '';
911
+ }
912
+ constructor(dnsService) {
913
+ this.dnsService = dnsService;
914
+ this.runMoveUser = new EventEmitter();
915
+ this.cancel = new EventEmitter();
916
+ this.isLinear = true;
917
+ this.phoneNumberPending = false;
918
+ }
919
+ ngOnInit() {
920
+ if (this.user) {
921
+ this.user.moveType = {
922
+ phoneNumber: '1',
923
+ extension: '1'
924
+ };
925
+ }
926
+ }
927
+ onStepChange(event) {
928
+ // alert('step change ' + event.selectedIndex);
929
+ /*if (event.selectedIndex === 4) {
930
+ this.runMoveUser.emit();
931
+ }*/
932
+ }
933
+ selectPhoneNumberMigrationType(event) {
934
+ if (event.value && event.value === '2') {
935
+ this.getPhoneNumbers();
936
+ }
937
+ }
938
+ onPhoneNumberChange(event) {
939
+ this.user.newNumber;
940
+ }
941
+ onExtensionCHange(event) {
942
+ this.user.newExtension;
943
+ }
944
+ isFieldAvailable(type, value) {
945
+ if (this.user?.moveType) {
946
+ return this.user.moveType[type] && this.user.moveType[type] === value;
947
+ }
948
+ return false;
949
+ }
950
+ getPhoneNumbers() {
951
+ this.phoneNumberPending = true;
952
+ this.dnsService.fetchPhoneNumbers(this.customerId, LOCATION)
953
+ .subscribe(() => {
954
+ this.phoneNumberPending = false;
955
+ }, () => this.phoneNumberPending = false);
956
+ }
957
+ goNextStep(stepper) {
958
+ /*const currentStep = stepper.selectedIndex;
959
+
960
+ if (currentStep === 1) { stepper.selectedIndex = 3; }
961
+ // else if (currentStep === 3) { stepper.selectedIndex = 0; }
962
+
963
+ [
964
+ stepper.steps.get(1),
965
+ stepper.steps.get(2)
966
+
967
+ ].map(step => step ? step.completed = true : undefined);*/
968
+ }
969
+ }
970
+ MoveUserStepperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserStepperComponent, deps: [{ token: DnsService }], target: i0.ɵɵFactoryTarget.Component });
971
+ MoveUserStepperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MoveUserStepperComponent, selector: "app-move-user-stepper", inputs: { user: "user", customerId: "customerId" }, outputs: { runMoveUser: "runMoveUser", cancel: "cancel" }, ngImport: i0, template: "<mat-stepper *ngIf=\"user?.moveType\" (selectionChange)=\"onStepChange($event)\" [linear]=\"isLinear\" labelPosition=\"bottom\" #stepper>\r\n <mat-step>\r\n <div class=\"step-title\">Step 1: Select location</div>\r\n<!-- <form>-->\r\n <ng-template matStepLabel>Select location</ng-template>\r\n <mat-label class=\"mat-label\">Phone number</mat-label>\r\n <mat-radio-group\r\n class=\"radio-group\"\r\n [(ngModel)]=\"user.moveType.phoneNumber\"\r\n name=\"phoneNumber\" (change)=\"selectPhoneNumberMigrationType($event)\">\r\n <mat-radio-button class=\"radio-button\" value=\"1\" color=\"primary\">Keep current number {{currentNumber}}</mat-radio-button>\r\n <mat-radio-button class=\"radio-button\" value=\"2\" color=\"primary\">Select a new number</mat-radio-button>\r\n\r\n <div *ngIf=\"user.moveType.phoneNumber === '2'\" class=\"select-container\">\r\n <mat-progress-spinner *ngIf=\"phoneNumberPending\"\r\n class=\"field-spinner\" mode=\"indeterminate\"\r\n [diameter]=\"30\"></mat-progress-spinner>\r\n\r\n <mat-select class=\"select\" placeholder=\"Select number\" [(ngModel)]=\"user.newNumber\"\r\n (selectionChange)=\"onPhoneNumberChange($event)\">\r\n <mat-option *ngFor=\"let option of dnsService.phoneNumbers\" value=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n <mat-radio-button class=\"radio-button\" value=\"3\" color=\"primary\">Remove number</mat-radio-button>\r\n </mat-radio-group>\r\n <mat-label class=\"mat-label\">Extension</mat-label>\r\n <mat-radio-group class=\"radio-group\" name=\"extension\"\r\n [(ngModel)]=\"user.moveType.extension\">\r\n <mat-radio-button class=\"radio-button\" value=\"1\" color=\"primary\">Keep current extension</mat-radio-button>\r\n <mat-radio-button class=\"radio-button\" value=\"2\" color=\"primary\">Select a new extension</mat-radio-button>\r\n <mat-form-field *ngIf=\"user.moveType.extension === '2'\" appearance=\"outline\">\r\n <input matInput type=\"text\" (change)=\"onExtensionCHange($event)\"\r\n [(ngModel)]=\"user.newExtension\"\r\n [placeholder]=\"'Enter extension'\" />\r\n </mat-form-field>\r\n\r\n <mat-radio-button class=\"radio-button\" value=\"3\" color=\"primary\">Remove extension</mat-radio-button>\r\n </mat-radio-group>\r\n<!-- </form>-->\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">Next</button>\r\n <button mat-button class=\"webex-btn btn-cancel\" (click)=\"cancel.emit()\">Cancel</button>\r\n </div>\r\n </mat-step>\r\n <!--<mat-step [aria-labelledby]=\"true ? 'disabled_af' : null\">\r\n <div class=\"step-title\">Step 2: Device eligibility check</div>\r\n <ng-template matStepLabel>Device eligibility check</ng-template>\r\n <form></form>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">Next</button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>Previous</button>\r\n </div>\r\n </mat-step>-->\r\n <!--<mat-step [aria-labelledby]=\"true ? 'disabled_af' : null\">\r\n <div class=\"step-title\">Step 3: Validation</div>\r\n <form>\r\n <ng-template matStepLabel>Validation</ng-template>\r\n <mat-label class=\"mat-label\">Validation Success!</mat-label>\r\n <p class=\"validation-text\">There is no issue for moving this user to the new location, $MTlocationname. Please be aware of the changes below once the user is being moved to the new location.</p>\r\n <mat-label class=\"mat-label\">Expected changes</mat-label>\r\n <ul>\r\n <li>Tablet device (TABAVICK) needs to be reconfigured with Webex App. User will receive an email with link to download.</li>\r\n <li>Cisco 8875 (SEP751FC9BAB854) will not be migrated.</li>\r\n <li>The user will be removed from Call Park Group.</li>\r\n <li>If the device is using the location level device settings, the device will pick up the new location device settings once the user is moved. If some of the device settings are overwritten at the user level, these user level settings will be retained and the rest of the settings will be picked up at the higher level (organization or location) settings.</li>\r\n <li>If the current location has a different recording service from the one of the new location, the recording of this user may be lost after moving location.</li>\r\n </ul>\r\n <div>\r\n <mat-checkbox class=\"checkbox\" checked=\"true\" color=\"primary\">I confirm that I understand these conditions. I acknowledge the changes.</mat-checkbox>\r\n </div>\r\n </form>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">Next</button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>Previous</button>\r\n </div>\r\n </mat-step>-->\r\n <mat-step>\r\n <div class=\"step-title\">Step 2: Result</div>\r\n <ng-template matStepLabel>Result</ng-template>\r\n <form>\r\n <mat-label class=\"mat-label\">Moving user has been successfully initiated!</mat-label>\r\n <p class=\"validation-text\">\r\n The user will be moved to the new location, $MTlocationname.\r\n <br>\r\n For the progress of move, please visit the <a class=\"form-link\" href=\"#\">user details</a>.\r\n </p>\r\n </form>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-done\" matStepperNext (click)=\"runMoveUser.emit()\">Done</button>\r\n </div>\r\n </mat-step>\r\n </mat-stepper>\r\n", styles: [".mat-stepper-horizontal{height:-moz-fit-content;height:fit-content;max-height:750px;margin:0 auto;width:70%;background-color:transparent;.mat-horizontal-stepper-header-container {margin: 0 auto; width: 800px;};.mat-step-icon {width: 18px; height: 18px; border: 3px solid hsl(0deg 0% 50.2%);};.mat-step-icon-selected {background-color: hsl(0deg 0% 77.65%) !important; border-color: hsl(211.8deg 66.67% 29.41%);};.mat-step-icon-state-number {background-color: white;};.mat-step-icon-state-edit {background-color: hsl(210deg 84.82% 43.92%); border-color: hsl(210deg 84.82% 43.92%);};.mat-step-header .mat-step-icon-state-done {background-color: hsl(210deg 84.82% 43.92%); border-color: hsl(210deg 84.82% 43.92%);};.mat-step-icon-content {display: none;};.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after {border-top-width: 3px !important;};.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after,.mat-stepper-horizontal-line {border-top-width: 3px !important; background-color: hsl(0deg 0% 48.24%);}}::ng-deep .mat-step-header[aria-labelledby=disabled_af]{pointer-events:none!important;cursor:not-allowed}::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-icon,::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-label{cursor:not-allowed;opacity:.6}.mat-mdc-form-field{margin-top:16px}.mat-label{font-size:16px;font-weight:600;margin:1rem 0}.step-title{font-size:28px;font-weight:700;margin:.5rem 0 1.5rem 2rem}.validation-text{margin-top:.5rem;margin-bottom:2rem}ul{padding:.5rem 2rem;margin-top:.5rem;margin-bottom:2rem}form{background-color:#fff;padding:2.5rem;height:350px;max-height:700px;border-radius:.5rem}.form-link{text-decoration:none;color:#007bff}.radio-group{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button{margin:.5rem 0}.select{width:350px;padding:.5rem;margin:.5rem 0;border:1px solid #a0a0a0;border-radius:.5rem}.step-actions{display:flex;flex-flow:row-reverse;margin-top:2rem;gap:1rem}.webex-btn{border:1px solid black;border-radius:1rem;cursor:pointer;gap:1rem}.btn-next{background-color:#000;color:#fff}.btn-cancel,.btn-done{background-color:#fff;color:#000}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.icon-close{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M12.0005 13.0538L6.92737 18.1269C6.78892 18.2654 6.61489 18.3362 6.40527 18.3394C6.19567 18.3426 6.01844 18.2718 5.87357 18.1269C5.72869 17.982 5.65625 17.8064 5.65625 17.6C5.65625 17.3936 5.72869 17.218 5.87357 17.0731L10.9466 12L5.87357 6.92689C5.73511 6.78844 5.66427 6.6144 5.66107 6.40479C5.65786 6.19519 5.72869 6.01795 5.87357 5.87309C6.01844 5.7282 6.19407 5.65576 6.40047 5.65576C6.60687 5.65576 6.78251 5.7282 6.92737 5.87309L12.0005 10.9462L17.0736 5.87309C17.212 5.73462 17.3861 5.66379 17.5957 5.66059C17.8053 5.65737 17.9825 5.7282 18.1274 5.87309C18.2723 6.01795 18.3447 6.19359 18.3447 6.39999C18.3447 6.60639 18.2723 6.78202 18.1274 6.92689L13.0543 12L18.1274 17.0731C18.2658 17.2115 18.3367 17.3856 18.3399 17.5952C18.3431 17.8048 18.2723 17.982 18.1274 18.1269C17.9825 18.2718 17.8069 18.3442 17.6005 18.3442C17.3941 18.3442 17.2184 18.2718 17.0736 18.1269L12.0005 13.0538Z%22 fill%3D%22%23333333%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i6$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i9.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i9.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i9.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["selectedIndex", "disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i9.MatStepperNext, selector: "button[matStepperNext]", inputs: ["type"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i11.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i11.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }] });
972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserStepperComponent, decorators: [{
973
+ type: Component,
974
+ args: [{ selector: 'app-move-user-stepper', template: "<mat-stepper *ngIf=\"user?.moveType\" (selectionChange)=\"onStepChange($event)\" [linear]=\"isLinear\" labelPosition=\"bottom\" #stepper>\r\n <mat-step>\r\n <div class=\"step-title\">Step 1: Select location</div>\r\n<!-- <form>-->\r\n <ng-template matStepLabel>Select location</ng-template>\r\n <mat-label class=\"mat-label\">Phone number</mat-label>\r\n <mat-radio-group\r\n class=\"radio-group\"\r\n [(ngModel)]=\"user.moveType.phoneNumber\"\r\n name=\"phoneNumber\" (change)=\"selectPhoneNumberMigrationType($event)\">\r\n <mat-radio-button class=\"radio-button\" value=\"1\" color=\"primary\">Keep current number {{currentNumber}}</mat-radio-button>\r\n <mat-radio-button class=\"radio-button\" value=\"2\" color=\"primary\">Select a new number</mat-radio-button>\r\n\r\n <div *ngIf=\"user.moveType.phoneNumber === '2'\" class=\"select-container\">\r\n <mat-progress-spinner *ngIf=\"phoneNumberPending\"\r\n class=\"field-spinner\" mode=\"indeterminate\"\r\n [diameter]=\"30\"></mat-progress-spinner>\r\n\r\n <mat-select class=\"select\" placeholder=\"Select number\" [(ngModel)]=\"user.newNumber\"\r\n (selectionChange)=\"onPhoneNumberChange($event)\">\r\n <mat-option *ngFor=\"let option of dnsService.phoneNumbers\" value=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </div>\r\n\r\n <mat-radio-button class=\"radio-button\" value=\"3\" color=\"primary\">Remove number</mat-radio-button>\r\n </mat-radio-group>\r\n <mat-label class=\"mat-label\">Extension</mat-label>\r\n <mat-radio-group class=\"radio-group\" name=\"extension\"\r\n [(ngModel)]=\"user.moveType.extension\">\r\n <mat-radio-button class=\"radio-button\" value=\"1\" color=\"primary\">Keep current extension</mat-radio-button>\r\n <mat-radio-button class=\"radio-button\" value=\"2\" color=\"primary\">Select a new extension</mat-radio-button>\r\n <mat-form-field *ngIf=\"user.moveType.extension === '2'\" appearance=\"outline\">\r\n <input matInput type=\"text\" (change)=\"onExtensionCHange($event)\"\r\n [(ngModel)]=\"user.newExtension\"\r\n [placeholder]=\"'Enter extension'\" />\r\n </mat-form-field>\r\n\r\n <mat-radio-button class=\"radio-button\" value=\"3\" color=\"primary\">Remove extension</mat-radio-button>\r\n </mat-radio-group>\r\n<!-- </form>-->\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">Next</button>\r\n <button mat-button class=\"webex-btn btn-cancel\" (click)=\"cancel.emit()\">Cancel</button>\r\n </div>\r\n </mat-step>\r\n <!--<mat-step [aria-labelledby]=\"true ? 'disabled_af' : null\">\r\n <div class=\"step-title\">Step 2: Device eligibility check</div>\r\n <ng-template matStepLabel>Device eligibility check</ng-template>\r\n <form></form>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">Next</button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>Previous</button>\r\n </div>\r\n </mat-step>-->\r\n <!--<mat-step [aria-labelledby]=\"true ? 'disabled_af' : null\">\r\n <div class=\"step-title\">Step 3: Validation</div>\r\n <form>\r\n <ng-template matStepLabel>Validation</ng-template>\r\n <mat-label class=\"mat-label\">Validation Success!</mat-label>\r\n <p class=\"validation-text\">There is no issue for moving this user to the new location, $MTlocationname. Please be aware of the changes below once the user is being moved to the new location.</p>\r\n <mat-label class=\"mat-label\">Expected changes</mat-label>\r\n <ul>\r\n <li>Tablet device (TABAVICK) needs to be reconfigured with Webex App. User will receive an email with link to download.</li>\r\n <li>Cisco 8875 (SEP751FC9BAB854) will not be migrated.</li>\r\n <li>The user will be removed from Call Park Group.</li>\r\n <li>If the device is using the location level device settings, the device will pick up the new location device settings once the user is moved. If some of the device settings are overwritten at the user level, these user level settings will be retained and the rest of the settings will be picked up at the higher level (organization or location) settings.</li>\r\n <li>If the current location has a different recording service from the one of the new location, the recording of this user may be lost after moving location.</li>\r\n </ul>\r\n <div>\r\n <mat-checkbox class=\"checkbox\" checked=\"true\" color=\"primary\">I confirm that I understand these conditions. I acknowledge the changes.</mat-checkbox>\r\n </div>\r\n </form>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-next\" matStepperNext (click)=\"goNextStep(stepper)\">Next</button>\r\n <button mat-button class=\"webex-btn btn-cancel\" matStepperPrevious>Previous</button>\r\n </div>\r\n </mat-step>-->\r\n <mat-step>\r\n <div class=\"step-title\">Step 2: Result</div>\r\n <ng-template matStepLabel>Result</ng-template>\r\n <form>\r\n <mat-label class=\"mat-label\">Moving user has been successfully initiated!</mat-label>\r\n <p class=\"validation-text\">\r\n The user will be moved to the new location, $MTlocationname.\r\n <br>\r\n For the progress of move, please visit the <a class=\"form-link\" href=\"#\">user details</a>.\r\n </p>\r\n </form>\r\n <div class=\"step-actions\">\r\n <button mat-button class=\"webex-btn btn-done\" matStepperNext (click)=\"runMoveUser.emit()\">Done</button>\r\n </div>\r\n </mat-step>\r\n </mat-stepper>\r\n", styles: [".mat-stepper-horizontal{height:-moz-fit-content;height:fit-content;max-height:750px;margin:0 auto;width:70%;background-color:transparent;.mat-horizontal-stepper-header-container {margin: 0 auto; width: 800px;};.mat-step-icon {width: 18px; height: 18px; border: 3px solid hsl(0deg 0% 50.2%);};.mat-step-icon-selected {background-color: hsl(0deg 0% 77.65%) !important; border-color: hsl(211.8deg 66.67% 29.41%);};.mat-step-icon-state-number {background-color: white;};.mat-step-icon-state-edit {background-color: hsl(210deg 84.82% 43.92%); border-color: hsl(210deg 84.82% 43.92%);};.mat-step-header .mat-step-icon-state-done {background-color: hsl(210deg 84.82% 43.92%); border-color: hsl(210deg 84.82% 43.92%);};.mat-step-icon-content {display: none;};.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after {border-top-width: 3px !important;};.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after,.mat-stepper-horizontal-line {border-top-width: 3px !important; background-color: hsl(0deg 0% 48.24%);}}::ng-deep .mat-step-header[aria-labelledby=disabled_af]{pointer-events:none!important;cursor:not-allowed}::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-icon,::ng-deep .mat-step-header[aria-labelledby=disabled_af] .mat-step-label{cursor:not-allowed;opacity:.6}.mat-mdc-form-field{margin-top:16px}.mat-label{font-size:16px;font-weight:600;margin:1rem 0}.step-title{font-size:28px;font-weight:700;margin:.5rem 0 1.5rem 2rem}.validation-text{margin-top:.5rem;margin-bottom:2rem}ul{padding:.5rem 2rem;margin-top:.5rem;margin-bottom:2rem}form{background-color:#fff;padding:2.5rem;height:350px;max-height:700px;border-radius:.5rem}.form-link{text-decoration:none;color:#007bff}.radio-group{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button{margin:.5rem 0}.select{width:350px;padding:.5rem;margin:.5rem 0;border:1px solid #a0a0a0;border-radius:.5rem}.step-actions{display:flex;flex-flow:row-reverse;margin-top:2rem;gap:1rem}.webex-btn{border:1px solid black;border-radius:1rem;cursor:pointer;gap:1rem}.btn-next{background-color:#000;color:#fff}.btn-cancel,.btn-done{background-color:#fff;color:#000}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.icon-close{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M12.0005 13.0538L6.92737 18.1269C6.78892 18.2654 6.61489 18.3362 6.40527 18.3394C6.19567 18.3426 6.01844 18.2718 5.87357 18.1269C5.72869 17.982 5.65625 17.8064 5.65625 17.6C5.65625 17.3936 5.72869 17.218 5.87357 17.0731L10.9466 12L5.87357 6.92689C5.73511 6.78844 5.66427 6.6144 5.66107 6.40479C5.65786 6.19519 5.72869 6.01795 5.87357 5.87309C6.01844 5.7282 6.19407 5.65576 6.40047 5.65576C6.60687 5.65576 6.78251 5.7282 6.92737 5.87309L12.0005 10.9462L17.0736 5.87309C17.212 5.73462 17.3861 5.66379 17.5957 5.66059C17.8053 5.65737 17.9825 5.7282 18.1274 5.87309C18.2723 6.01795 18.3447 6.19359 18.3447 6.39999C18.3447 6.60639 18.2723 6.78202 18.1274 6.92689L13.0543 12L18.1274 17.0731C18.2658 17.2115 18.3367 17.3856 18.3399 17.5952C18.3431 17.8048 18.2723 17.982 18.1274 18.1269C17.9825 18.2718 17.8069 18.3442 17.6005 18.3442C17.3941 18.3442 17.2184 18.2718 17.0736 18.1269L12.0005 13.0538Z%22 fill%3D%22%23333333%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}\n"] }]
975
+ }], ctorParameters: function () { return [{ type: DnsService }]; }, propDecorators: { user: [{
976
+ type: Input
977
+ }], customerId: [{
978
+ type: Input
979
+ }], runMoveUser: [{
980
+ type: Output
981
+ }], cancel: [{
982
+ type: Output
983
+ }] } });
984
+
985
+ class MoveUserWizardComponent {
986
+ constructor(dnsService) {
987
+ this.dnsService = dnsService;
988
+ this.closeMoveUserWizard = new EventEmitter();
989
+ this.runMoveUser = new EventEmitter();
990
+ this.dataPending = false;
991
+ }
992
+ onClose() {
993
+ this.closeMoveUserWizard.emit();
994
+ }
995
+ onRunMoveUser() {
996
+ this.runMoveUser.emit();
997
+ }
998
+ }
999
+ MoveUserWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserWizardComponent, deps: [{ token: DnsService }], target: i0.ɵɵFactoryTarget.Component });
1000
+ MoveUserWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MoveUserWizardComponent, selector: "app-move-user-wizard", inputs: { user: "user", customerId: "customerId" }, outputs: { closeMoveUserWizard: "closeMoveUserWizard", runMoveUser: "runMoveUser" }, ngImport: i0, template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div class=\"move-user-stepper-container\">\r\n <header class=\"move-user-header\">\r\n <div class=\"move-user-header__title\">Move User</div>\r\n <div class=\"move-user-header__close\">\r\n <span class=\"app-icon icon-close\" (click)=\"onClose()\"></span>\r\n </div>\r\n </header>\r\n <app-move-user-stepper *ngIf=\"user\" [customerId]=\"customerId\" [user]=\"user\" (cancel)=\"onClose()\"\r\n (runMoveUser)=\"onRunMoveUser()\"></app-move-user-stepper>\r\n</div>\r\n", styles: [".move-user-header{background-color:#1170cf;height:45px;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:18px;font-weight:500}.move-user-header__close{cursor:pointer;& i{font-size:25px;font-weight:100}}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.icon-close{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M12.0005 13.0538L6.92737 18.1269C6.78892 18.2654 6.61489 18.3362 6.40527 18.3394C6.19567 18.3426 6.01844 18.2718 5.87357 18.1269C5.72869 17.982 5.65625 17.8064 5.65625 17.6C5.65625 17.3936 5.72869 17.218 5.87357 17.0731L10.9466 12L5.87357 6.92689C5.73511 6.78844 5.66427 6.6144 5.66107 6.40479C5.65786 6.19519 5.72869 6.01795 5.87357 5.87309C6.01844 5.7282 6.19407 5.65576 6.40047 5.65576C6.60687 5.65576 6.78251 5.7282 6.92737 5.87309L12.0005 10.9462L17.0736 5.87309C17.212 5.73462 17.3861 5.66379 17.5957 5.66059C17.8053 5.65737 17.9825 5.7282 18.1274 5.87309C18.2723 6.01795 18.3447 6.19359 18.3447 6.39999C18.3447 6.60639 18.2723 6.78202 18.1274 6.92689L13.0543 12L18.1274 17.0731C18.2658 17.2115 18.3367 17.3856 18.3399 17.5952C18.3431 17.8048 18.2723 17.982 18.1274 18.1269C17.9825 18.2718 17.8069 18.3442 17.6005 18.3442C17.3941 18.3442 17.2184 18.2718 17.0736 18.1269L12.0005 13.0538Z%22 fill%3D%22%23333333%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AppLoaderComponent, selector: "app-loader" }, { kind: "component", type: MoveUserStepperComponent, selector: "app-move-user-stepper", inputs: ["user", "customerId"], outputs: ["runMoveUser", "cancel"] }] });
1001
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserWizardComponent, decorators: [{
1002
+ type: Component,
1003
+ args: [{ selector: 'app-move-user-wizard', template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div class=\"move-user-stepper-container\">\r\n <header class=\"move-user-header\">\r\n <div class=\"move-user-header__title\">Move User</div>\r\n <div class=\"move-user-header__close\">\r\n <span class=\"app-icon icon-close\" (click)=\"onClose()\"></span>\r\n </div>\r\n </header>\r\n <app-move-user-stepper *ngIf=\"user\" [customerId]=\"customerId\" [user]=\"user\" (cancel)=\"onClose()\"\r\n (runMoveUser)=\"onRunMoveUser()\"></app-move-user-stepper>\r\n</div>\r\n", styles: [".move-user-header{background-color:#1170cf;height:45px;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:18px;font-weight:500}.move-user-header__close{cursor:pointer;& i{font-size:25px;font-weight:100}}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.icon-close{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cpath d%3D%22M12.0005 13.0538L6.92737 18.1269C6.78892 18.2654 6.61489 18.3362 6.40527 18.3394C6.19567 18.3426 6.01844 18.2718 5.87357 18.1269C5.72869 17.982 5.65625 17.8064 5.65625 17.6C5.65625 17.3936 5.72869 17.218 5.87357 17.0731L10.9466 12L5.87357 6.92689C5.73511 6.78844 5.66427 6.6144 5.66107 6.40479C5.65786 6.19519 5.72869 6.01795 5.87357 5.87309C6.01844 5.7282 6.19407 5.65576 6.40047 5.65576C6.60687 5.65576 6.78251 5.7282 6.92737 5.87309L12.0005 10.9462L17.0736 5.87309C17.212 5.73462 17.3861 5.66379 17.5957 5.66059C17.8053 5.65737 17.9825 5.7282 18.1274 5.87309C18.2723 6.01795 18.3447 6.19359 18.3447 6.39999C18.3447 6.60639 18.2723 6.78202 18.1274 6.92689L13.0543 12L18.1274 17.0731C18.2658 17.2115 18.3367 17.3856 18.3399 17.5952C18.3431 17.8048 18.2723 17.982 18.1274 18.1269C17.9825 18.2718 17.8069 18.3442 17.6005 18.3442C17.3941 18.3442 17.2184 18.2718 17.0736 18.1269L12.0005 13.0538Z%22 fill%3D%22%23333333%22%2F%3E%0D%3C%2Fsvg%3E%0D\")}\n"] }]
1004
+ }], ctorParameters: function () { return [{ type: DnsService }]; }, propDecorators: { user: [{
1005
+ type: Input
1006
+ }], customerId: [{
1007
+ type: Input
1008
+ }], closeMoveUserWizard: [{
1009
+ type: Output
1010
+ }], runMoveUser: [{
1011
+ type: Output
1012
+ }] } });
1013
+
1014
+ const DISPLAYED_COLS = ['user-icon', 'name', 'email', 'status', 'role', 'actions'];
1015
+ const LOCAL_STORAGE = {
1016
+ USER_IN_MIGRATION: 'userIdInMigration'
1017
+ };
1018
+ class UsersListComponent {
1019
+ get form() {
1020
+ return this.userService?.user?.form;
1021
+ }
1022
+ constructor(userService, apiService, apiWebexService, notifications, usersSearchService, dialog) {
1023
+ this.userService = userService;
1024
+ this.apiService = apiService;
1025
+ this.apiWebexService = apiWebexService;
1026
+ this.notifications = notifications;
1027
+ this.usersSearchService = usersSearchService;
1028
+ this.dialog = dialog;
1029
+ this.openUser = new EventEmitter();
1030
+ this.userMoved = new EventEmitter();
1031
+ this.switchToWizard = new EventEmitter();
1032
+ this.displayedColumns = DISPLAYED_COLS;
1033
+ this.showMoveUserWizard = false;
1034
+ }
1035
+ ngOnInit() {
1036
+ this.usersSearchService.setDefaultValues();
1037
+ this.usersSearchService.customerId = this.customerId;
1038
+ this.usersSearchService.siteId = this.siteId;
1039
+ this.apiService.token = this.token;
1040
+ this.apiWebexService.token = this.token;
1041
+ this.apiService.apiUrl = this.host + '/dcp';
1042
+ this.apiWebexService.apiUrl = this.host + '/webex';
1043
+ this.getMigratedUsers();
1044
+ this.searchSubscription = this.usersSearchService.foundUsers$
1045
+ .subscribe((users) => {
1046
+ this.initializeDataSource(users);
1047
+ });
1048
+ }
1049
+ pageNumberChangeEvent(perPageNumber) {
1050
+ this.usersSearchService.pageSize = perPageNumber;
1051
+ this.usersSearchService.pageIndex = 0;
1052
+ this.runSearch();
1053
+ }
1054
+ closeMoveUserWizard() {
1055
+ this.moveUser = null;
1056
+ this.showMoveUserWizard = false;
1057
+ this.switchToWizard.emit(false);
1058
+ }
1059
+ pageEvent(event) {
1060
+ this.usersSearchService.pageSize = event.pageSize;
1061
+ this.usersSearchService.pageIndex = event.pageIndex;
1062
+ this.runSearch();
1063
+ }
1064
+ onUserClick(user) {
1065
+ this.openUser.emit(user);
1066
+ }
1067
+ moveUserToMT(user, index) {
1068
+ if (user && user.siteId && user.userid) {
1069
+ this.moveUserPending = true;
1070
+ this.moveInProgressUserId = user.userid;
1071
+ this.setStatusToUser(index, 'In Progress');
1072
+ localStorage.setItem(LOCAL_STORAGE.USER_IN_MIGRATION, user.userid);
1073
+ const subscription = this.userService.moveUserToMT(this.customerId, user)
1074
+ .subscribe(() => {
1075
+ this.moveUser = null;
1076
+ this.moveUserIndex = null;
1077
+ this.getMigratedUsers();
1078
+ }, () => {
1079
+ this.removeUserInMigrationProgress();
1080
+ this.setStatusToUser(index, 'Migration Error');
1081
+ });
1082
+ }
1083
+ }
1084
+ moveUserToDI(user, index) {
1085
+ if (user && user.siteId && user.webexUUID) {
1086
+ this.moveUserPending = true;
1087
+ this.moveInProgressUserId = user.userid;
1088
+ this.users[index].status = 'In Progress';
1089
+ localStorage.setItem(LOCAL_STORAGE.USER_IN_MIGRATION, user.userid);
1090
+ const subscription = this.userService.moveUserToDI(this.customerId, user)
1091
+ .subscribe(() => {
1092
+ this.removeUserInMigrationProgress();
1093
+ this.setStatusToUser(index, 'Active');
1094
+ this.users[index].webexUUID = '';
1095
+ if (this.usersSearchService.migratedUsers && this.usersSearchService.migratedUsers.length) {
1096
+ this.usersSearchService.migratedUsers = this.usersSearchService.migratedUsers.filter((migratedUser) => migratedUser.userid !== user.email);
1097
+ }
1098
+ }, () => {
1099
+ this.removeUserInMigrationProgress();
1100
+ this.setStatusToUser(index, 'Migration Error');
1101
+ });
1102
+ }
1103
+ }
1104
+ removeUserInMigrationProgress() {
1105
+ localStorage.removeItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1106
+ this.moveInProgressUserId = '';
1107
+ this.moveUserPending = false;
1108
+ }
1109
+ setStatusToUser(index, status) {
1110
+ if (this.users && this.users[index]) {
1111
+ this.users[index].status = status;
1112
+ if (status === 'Migrated') {
1113
+ this.users[index].roleName = '';
1114
+ this.users[index].isMigrated = true;
1115
+ this.users[index].status = status;
1116
+ }
1117
+ else {
1118
+ this.users[index].roleName = 'Dedicated Instance Calling user';
1119
+ this.users[index].isMigrated = false;
1120
+ this.users[index].status = status;
1121
+ }
1122
+ }
1123
+ this.dataSource = new MatTableDataSource(this.users);
1124
+ }
1125
+ initializeDataSource(users) {
1126
+ if (users?.length) {
1127
+ // this.setRandomUserRole(users);
1128
+ this.users = users;
1129
+ this.setUserMigrationProgress();
1130
+ this.usersSearchService.setMigratedPropToUsers(this.users);
1131
+ this.dataSource = new MatTableDataSource(users);
1132
+ }
1133
+ }
1134
+ setUserRole() {
1135
+ if (this.users?.length) {
1136
+ this.users.forEach(user => {
1137
+ if (!user.isMigrated) {
1138
+ user.roleName = 'Dedicated Instance Calling user';
1139
+ }
1140
+ });
1141
+ }
1142
+ }
1143
+ setRandomUserRole(users) {
1144
+ const max = Math.round(this.usersSearchService.pageSize - this.usersSearchService.pageSize / 4);
1145
+ const min = Math.round(this.usersSearchService.pageSize / 2);
1146
+ const randomAmount = Math.round(Math.random() * (max - min) + min);
1147
+ const indexes = this.getArrayOfRandomUserIndexes(randomAmount);
1148
+ indexes.forEach(index => {
1149
+ if (users[index]) {
1150
+ users[index].roleName = 'Dedicated Instance Calling user';
1151
+ }
1152
+ });
1153
+ }
1154
+ getArrayOfRandomUserIndexes(randomAmount) {
1155
+ const indexes = [];
1156
+ while (randomAmount > 0) {
1157
+ const index = Math.round(Math.random() * (this.usersSearchService.pageSize - 1));
1158
+ indexes.push(index);
1159
+ randomAmount--;
1160
+ }
1161
+ return indexes;
1162
+ }
1163
+ runSearch() {
1164
+ this.dataPending = true;
1165
+ this.usersSearchService.quickRegularUsersSearch()
1166
+ .subscribe(() => {
1167
+ this.dataPending = false;
1168
+ }, () => {
1169
+ this.dataPending = false;
1170
+ this.notifications.error('The data can not be received');
1171
+ });
1172
+ }
1173
+ setUserMigrationProgress() {
1174
+ const userIdInMigration = localStorage.getItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1175
+ if (userIdInMigration) {
1176
+ const index = this.users.findIndex(user => user.userid === userIdInMigration);
1177
+ this.moveInProgressUserId = index > -1 ? this.users[index].userid : '';
1178
+ this.moveUserPending = index > -1;
1179
+ }
1180
+ }
1181
+ getMigratedUsers() {
1182
+ this.dataPending = true;
1183
+ const searchParams = {
1184
+ customerid: this.customerId,
1185
+ siteid: this.siteId,
1186
+ 'cloud-only': 'true'
1187
+ };
1188
+ // this.usersSearchService.quickWebexUsersSearch(searchParams, true, MAX_INTEGER)
1189
+ this.usersSearchService.getMigratedUsers(this.customerId)
1190
+ // this.usersSearchService.getMigratedWebexUsers(this.customerId)
1191
+ .subscribe(() => {
1192
+ const userIdInMigration = localStorage.getItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1193
+ if (userIdInMigration && this.usersSearchService.migratedUsers.filter((migratedUser) => migratedUser.userid === userIdInMigration)) {
1194
+ localStorage.removeItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1195
+ }
1196
+ this.runSearch();
1197
+ }, () => {
1198
+ this.dataPending = false;
1199
+ this.notifications.error('The data can not be received');
1200
+ });
1201
+ }
1202
+ onMoveUser(user, index, type) {
1203
+ const dialogRef = this.dialog.open(UserListConfirmDialogComponent, {
1204
+ data: {
1205
+ title: `Move user to ${type}?`,
1206
+ message: `You\'re sure that you want to move ${user.userid} to ${type}?`,
1207
+ confirmButtonText: 'Yes, continue'
1208
+ }
1209
+ });
1210
+ dialogRef.beforeClosed().subscribe((result) => {
1211
+ if (result) {
1212
+ switch (type) {
1213
+ case 'QuickMove':
1214
+ this.moveUserToMT(user, index);
1215
+ break;
1216
+ case 'MT':
1217
+ this.moveUser = user;
1218
+ this.moveUserIndex = index;
1219
+ this.showMoveUserWizard = true;
1220
+ this.switchToWizard.emit(true);
1221
+ break;
1222
+ case 'DI':
1223
+ this.moveUserToDI(user, index);
1224
+ break;
1225
+ }
1226
+ }
1227
+ });
1228
+ }
1229
+ runMoveUserToMT() {
1230
+ this.showMoveUserWizard = false;
1231
+ this.moveUserToMT(this.moveUser, this.moveUserIndex);
1232
+ }
1233
+ }
1234
+ UsersListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListComponent, deps: [{ token: UserService }, { token: APIService }, { token: ApiWebexService }, { token: NotificationService }, { token: UsersSearchService }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
1235
+ UsersListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UsersListComponent, selector: "app-users-list", inputs: { token: "token", customerId: "customerId", siteId: "siteId", host: "host" }, outputs: { openUser: "openUser", userMoved: "userMoved", switchToWizard: "switchToWizard" }, ngImport: i0, template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div *ngIf=\"!showMoveUserWizard\" id=\"users-list\">\r\n <app-pagination\r\n [pagination]=\"usersSearchService.getPagination()\"\r\n [showPageSizeOptions]=\"true\"\r\n (pageNumberChangeEmitter)=\"pageNumberChangeEvent($event)\"\r\n (pageEmitter)=\"pageEvent($event)\">\r\n </app-pagination>\r\nnew users list 2\r\n <table class=\"webex-table\" mat-table *ngIf=\"users?.length\" #table [dataSource]=\"dataSource\">\r\n\r\n <ng-container matColumnDef=\"user-icon\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\"></th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\">\r\n <span class=\"icon-webex-box\"><span class=\"icon-webex icon-webex-user\"></span></span>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"name\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">First / Last Name</th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\"> {{ user.firstName }} {{ user.lastName }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"email\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Email</th>\r\n <td class=\"user-site\" [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n mat-cell *matCellDef=\"let user\" (click)=\"onUserClick(user)\">\r\n {{ user.email }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"status\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Status</th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\">\r\n <span class=\"icon-user-status icon-user-status-active\"></span>{{user.status}}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"actions\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\"></th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user, let i = index\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\">\r\n <mat-progress-spinner class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"user.status === 'In Progress'\"></mat-progress-spinner>\r\n <button *ngIf=\"!(moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid)\"\r\n class=\"button-action-dot\" mat-icon-button [matMenuTriggerFor]=\"menu\">\r\n <div class=\"icon-actions-dots\">\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n </div>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <button mat-menu-item [disabled]=\"true\">Resend Invitation</button>\r\n <button mat-menu-item [disabled]=\"true\">Reset Password</button>\r\n <button *ngIf=\"!user.isMigrated\" mat-menu-item (click)=\"onMoveUser(user, i, 'QuickMove')\">Quick Move User</button>\r\n <button *ngIf=\"!user.isMigrated\" mat-menu-item (click)=\"onMoveUser(user, i, 'MT')\">Move User to MT</button>\r\n <button *ngIf=\"user.isMigrated\" mat-menu-item (click)=\"onMoveUser(user, i, 'DI')\">Move User to DI</button>\r\n <button mat-menu-item [disabled]=\"true\">Deactivate User</button>\r\n <button mat-menu-item [disabled]=\"true\">Delete User</button>\r\n </mat-menu>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"role\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Administrator Role</th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\" (click)=\"onUserClick(user)\">{{ user.roleName || '' }}</td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n</div>\r\n\r\n<app-move-user-wizard *ngIf=\"showMoveUserWizard\" [user]=\"moveUser\"\r\n [customerId]=\"customerId\" (runMoveUser)=\"runMoveUserToMT()\"\r\n (closeMoveUserWizard)=\"closeMoveUserWizard()\"></app-move-user-wizard>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";table.mat-table{border-spacing:0;width:100%}::ng-deep .mat-paginator{background:none}.icon-user-status{width:.5rem;height:.5rem;border-radius:50%;background-color:#707070;margin:0 5px 0 0}.icon-user-status.icon-user-status-active{background-color:#1d805f;display:inline-block}.mat-select{height:100%;line-height:35px}.mat-form-field-wrapper{padding-bottom:0!important}.mat-form-field{padding:0;max-width:300px}.fa:hover{color:#0d56aa!important}.mat-icon-button{background:transparent}.icon-webex-box{width:2rem;height:2rem;font-size:.7rem;line-height:1rem;display:inline-block;background:#d0d0d0;border-radius:2rem;line-height:40px;text-align:center}.icon-webex{filter:invert(12%) sepia(14%) saturate(4%) hue-rotate(354deg) brightness(103%) contrast(90%);background-repeat:no-repeat;background-position:center;display:inline-block;height:1rem;width:1rem}.icon-webex-user{background-image:url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg id%3D%22a%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 16.67 15.56%22%3E%3Cdefs%3E%3Cstyle%3E.b%7Bfill%3Anone%3Bstroke%3A%232c355d%3Bstroke-width%3A1.4px%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cpath class%3D%22b%22 d%3D%22M4.87%2C3.89c0-1.72%2C1.51-3.19%2C3.47-3.19s3.47%2C1.47%2C3.47%2C3.19-1.51%2C3.19-3.47%2C3.19-3.47-1.47-3.47-3.19ZM.7%2C12.64c0-.37%2C.19-.76%2C.67-1.17%2C.48-.41%2C1.17-.78%2C2-1.09%2C1.66-.62%2C3.66-.93%2C4.97-.93s3.31%2C.31%2C4.97%2C.93c.83%2C.31%2C1.52%2C.68%2C2%2C1.09%2C.47%2C.41%2C.67%2C.8%2C.67%2C1.17v2.22H.7v-2.22Z%22%2F%3E%3C%2Fsvg%3E\")}.icon-user-status{display:inline-block}*{margin:0}body{background:#f7f7f7}body,th,td{font-family:Poppins,Poppins,sans-serif;font-size:14px}th{color:#0000008a;text-align:left}td{box-sizing:border-box;padding:10px 5px 10px 0}.content-box{margin:auto;position:relative;width:95%}.content-box table{width:100%}.edit-icon-td{width:50px;position:relative}.edit-icon-td button{position:absolute;top:4px}.mat-progress-spinner circle,.mat-spinner circle{stroke:#009fdb!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.user-info-box{background:white;display:grid;grid-template-columns:30% 70%;border-radius:8px;border:rgba(0,0,0,.2) 1px solid;padding:24px;font-weight:400;font-size:14px}.user-info-box h3{display:block;font-weight:500;font-size:16px}.mat-divider{margin:5px 0!important}.info-boxes-container{padding:24px 0;display:flex;flex-direction:column;gap:24px}.header-box{height:60px;width:100%;line-height:60px;background:white;border-bottom:1px solid #dedddd}.header-box .header-back-block{float:left}.header-box .header-button-block{float:right}.webex-table{width:100%;margin:auto}.webex-table tr{border-bottom:1px solid #dedede}.webex-table th{background:#f7f7f7;color:#636363;font-size:12px}.webex-table td{background:#fff;color:#000;font-size:14px}.webex-table tr:hover td:not(.disabled-user-row){background:#ededed;cursor:pointer}.webex-table th.mat-header-cell,.webex-table td.mat-cell,.webex-table td.mat-footer-cell{border-bottom:1px solid #dedede}.webex-table tr.mat-header-row{height:37px}.mat-form-field{padding:0 0 5px;width:93%}.mat-form-field.mat-form-field-disabled{border-bottom:none}.mat-error{color:#c73636;margin:13px 0 0}.select-box{border-radius:30px;background:#F3F6F6;border:1px solid #E2E9EF;height:35px;position:relative}.select-box select{border:none!important;background:transparent;height:100%;width:92%;margin:auto;display:block}option:focus,option:focus-visible{border:none!important;outline:none!important}option{height:30px;cursor:pointer;color:#636363}option:hover{background:#ededed!important}.mat-select{height:100%!important;line-height:35px!important}.info-holder,.input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__name,.input-holder__name{font-weight:500!important;font-size:14px!important}.info-holder__inputs .input-holder,.input-holder__inputs .input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__inputs .input-holder__name,.input-holder__inputs .input-holder__name{font-weight:400!important;font-size:14px!important}.mat-form-field-wrapper,.mat-form-field-flex{height:30px!important}.mat-form-field-appearance-outline .mat-form-field-outline,.mat-form-field-outline .mat-form-field-outline-thick{height:35px!important}.mat-select{line-height:20px!important}.mat-form-field-appearance-outline .mat-form-field-infix{padding:14px 12px 10px;border-top:0;max-width:300px}.mat-tab-group{font-family:Inter,sans-serif}.mat-tab-label{font-weight:500!important;font-size:14px!important;height:auto!important;min-width:auto!important;padding:0!important}.mat-ink-bar{background-color:#000000e6!important;height:3px!important}.mat-form-field-wrapper{padding-bottom:0}.mat-form-field{max-width:300px}table{border-collapse:collapse;border-spacing:0}.mat-form-field-appearance-outline .mat-form-field-infix{padding:0!important}.mat-divider{margin:12px 0}::ng-deep .mat-form-field-wrapper{height:30px}::ng-deep .mat-form-field-flex{height:30px}::ng-deep .mat-form-field-appearance-outline .mat-form-field-outline{height:35px}:ng-deep .mat-form-field-outline .mat-form-field-outline-thick{height:35px}::ng-deep .mat-select{line-height:20px}::ng-deep .mat-form-field-infix{border-top:0px!important}::ng-deep .mat-paginator{background:transparent!important}::ng-deep .mat-paginator-container{min-height:30px!important}::ng-deep .mat-paginator-range-label{margin:0 10px 0 24px!important;font-size:15px!important}::ng-deep .pagination{font-size:13px;color:#0000008a}::ng-deep .per-page-block{display:flex;line-height:42px!important}::ng-deep .item_per_page{line-height:42px!important}::ng-deep .select-page-size{line-height:42px!important}::ng-deep mat-progress-spinner.page-spinner{position:fixed;margin:auto;inset:0}::ng-deep mat-progress-spinner.field-spinner{position:relative;margin:-20px auto auto}::ng-deep mat-progress-spinner.tab-spinner{position:relative;margin:0 auto auto}.icon-dot{display:block;color:#4f4f4f;font-size:16px;line-height:5px}.button-action-dot:hover{background:#dfdfdf}.button-action-dot{padding:0 5px 5px;border-radius:.25rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i10.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i10.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i10.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i10.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i10.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i10.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i10.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i10.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i10.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i10.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i11$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i11$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i11$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["pagination", "showPageSizeOptions", "showRefreshButton", "lengthPending"], outputs: ["pageEmitter", "pageNumberChangeEmitter"] }, { kind: "component", type: AppLoaderComponent, selector: "app-loader" }, { kind: "component", type: MoveUserWizardComponent, selector: "app-move-user-wizard", inputs: ["user", "customerId"], outputs: ["closeMoveUserWizard", "runMoveUser"] }] });
1236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListComponent, decorators: [{
1237
+ type: Component,
1238
+ args: [{ selector: 'app-users-list', template: "<app-loader *ngIf=\"dataPending\"></app-loader>\r\n<div *ngIf=\"!showMoveUserWizard\" id=\"users-list\">\r\n <app-pagination\r\n [pagination]=\"usersSearchService.getPagination()\"\r\n [showPageSizeOptions]=\"true\"\r\n (pageNumberChangeEmitter)=\"pageNumberChangeEvent($event)\"\r\n (pageEmitter)=\"pageEvent($event)\">\r\n </app-pagination>\r\nnew users list 2\r\n <table class=\"webex-table\" mat-table *ngIf=\"users?.length\" #table [dataSource]=\"dataSource\">\r\n\r\n <ng-container matColumnDef=\"user-icon\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\"></th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\">\r\n <span class=\"icon-webex-box\"><span class=\"icon-webex icon-webex-user\"></span></span>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"name\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">First / Last Name</th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\"> {{ user.firstName }} {{ user.lastName }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"email\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Email</th>\r\n <td class=\"user-site\" [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n mat-cell *matCellDef=\"let user\" (click)=\"onUserClick(user)\">\r\n {{ user.email }}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"status\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Status</th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\"\r\n (click)=\"onUserClick(user)\">\r\n <span class=\"icon-user-status icon-user-status-active\"></span>{{user.status}}\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"actions\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\"></th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user, let i = index\"\r\n [ngClass]=\"{'disabled-user-row': moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid}\">\r\n <mat-progress-spinner class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"user.status === 'In Progress'\"></mat-progress-spinner>\r\n <button *ngIf=\"!(moveUserPending && moveInProgressUserId && moveInProgressUserId === user?.userid)\"\r\n class=\"button-action-dot\" mat-icon-button [matMenuTriggerFor]=\"menu\">\r\n <div class=\"icon-actions-dots\">\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n <span class=\"icon-dot\">.</span>\r\n </div>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <button mat-menu-item [disabled]=\"true\">Resend Invitation</button>\r\n <button mat-menu-item [disabled]=\"true\">Reset Password</button>\r\n <button *ngIf=\"!user.isMigrated\" mat-menu-item (click)=\"onMoveUser(user, i, 'QuickMove')\">Quick Move User</button>\r\n <button *ngIf=\"!user.isMigrated\" mat-menu-item (click)=\"onMoveUser(user, i, 'MT')\">Move User to MT</button>\r\n <button *ngIf=\"user.isMigrated\" mat-menu-item (click)=\"onMoveUser(user, i, 'DI')\">Move User to DI</button>\r\n <button mat-menu-item [disabled]=\"true\">Deactivate User</button>\r\n <button mat-menu-item [disabled]=\"true\">Delete User</button>\r\n </mat-menu>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"role\">\r\n <th mat-header-cell *matHeaderCellDef class=\"webex-table-th\">Administrator Role</th>\r\n <td class=\"user-site\" mat-cell *matCellDef=\"let user\" (click)=\"onUserClick(user)\">{{ user.roleName || '' }}</td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n</div>\r\n\r\n<app-move-user-wizard *ngIf=\"showMoveUserWizard\" [user]=\"moveUser\"\r\n [customerId]=\"customerId\" (runMoveUser)=\"runMoveUserToMT()\"\r\n (closeMoveUserWizard)=\"closeMoveUserWizard()\"></app-move-user-wizard>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";table.mat-table{border-spacing:0;width:100%}::ng-deep .mat-paginator{background:none}.icon-user-status{width:.5rem;height:.5rem;border-radius:50%;background-color:#707070;margin:0 5px 0 0}.icon-user-status.icon-user-status-active{background-color:#1d805f;display:inline-block}.mat-select{height:100%;line-height:35px}.mat-form-field-wrapper{padding-bottom:0!important}.mat-form-field{padding:0;max-width:300px}.fa:hover{color:#0d56aa!important}.mat-icon-button{background:transparent}.icon-webex-box{width:2rem;height:2rem;font-size:.7rem;line-height:1rem;display:inline-block;background:#d0d0d0;border-radius:2rem;line-height:40px;text-align:center}.icon-webex{filter:invert(12%) sepia(14%) saturate(4%) hue-rotate(354deg) brightness(103%) contrast(90%);background-repeat:no-repeat;background-position:center;display:inline-block;height:1rem;width:1rem}.icon-webex-user{background-image:url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg id%3D%22a%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 16.67 15.56%22%3E%3Cdefs%3E%3Cstyle%3E.b%7Bfill%3Anone%3Bstroke%3A%232c355d%3Bstroke-width%3A1.4px%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cpath class%3D%22b%22 d%3D%22M4.87%2C3.89c0-1.72%2C1.51-3.19%2C3.47-3.19s3.47%2C1.47%2C3.47%2C3.19-1.51%2C3.19-3.47%2C3.19-3.47-1.47-3.47-3.19ZM.7%2C12.64c0-.37%2C.19-.76%2C.67-1.17%2C.48-.41%2C1.17-.78%2C2-1.09%2C1.66-.62%2C3.66-.93%2C4.97-.93s3.31%2C.31%2C4.97%2C.93c.83%2C.31%2C1.52%2C.68%2C2%2C1.09%2C.47%2C.41%2C.67%2C.8%2C.67%2C1.17v2.22H.7v-2.22Z%22%2F%3E%3C%2Fsvg%3E\")}.icon-user-status{display:inline-block}*{margin:0}body{background:#f7f7f7}body,th,td{font-family:Poppins,Poppins,sans-serif;font-size:14px}th{color:#0000008a;text-align:left}td{box-sizing:border-box;padding:10px 5px 10px 0}.content-box{margin:auto;position:relative;width:95%}.content-box table{width:100%}.edit-icon-td{width:50px;position:relative}.edit-icon-td button{position:absolute;top:4px}.mat-progress-spinner circle,.mat-spinner circle{stroke:#009fdb!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.user-info-box{background:white;display:grid;grid-template-columns:30% 70%;border-radius:8px;border:rgba(0,0,0,.2) 1px solid;padding:24px;font-weight:400;font-size:14px}.user-info-box h3{display:block;font-weight:500;font-size:16px}.mat-divider{margin:5px 0!important}.info-boxes-container{padding:24px 0;display:flex;flex-direction:column;gap:24px}.header-box{height:60px;width:100%;line-height:60px;background:white;border-bottom:1px solid #dedddd}.header-box .header-back-block{float:left}.header-box .header-button-block{float:right}.webex-table{width:100%;margin:auto}.webex-table tr{border-bottom:1px solid #dedede}.webex-table th{background:#f7f7f7;color:#636363;font-size:12px}.webex-table td{background:#fff;color:#000;font-size:14px}.webex-table tr:hover td:not(.disabled-user-row){background:#ededed;cursor:pointer}.webex-table th.mat-header-cell,.webex-table td.mat-cell,.webex-table td.mat-footer-cell{border-bottom:1px solid #dedede}.webex-table tr.mat-header-row{height:37px}.mat-form-field{padding:0 0 5px;width:93%}.mat-form-field.mat-form-field-disabled{border-bottom:none}.mat-error{color:#c73636;margin:13px 0 0}.select-box{border-radius:30px;background:#F3F6F6;border:1px solid #E2E9EF;height:35px;position:relative}.select-box select{border:none!important;background:transparent;height:100%;width:92%;margin:auto;display:block}option:focus,option:focus-visible{border:none!important;outline:none!important}option{height:30px;cursor:pointer;color:#636363}option:hover{background:#ededed!important}.mat-select{height:100%!important;line-height:35px!important}.info-holder,.input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__name,.input-holder__name{font-weight:500!important;font-size:14px!important}.info-holder__inputs .input-holder,.input-holder__inputs .input-holder{display:grid;grid-template-columns:30% 70%;align-items:baseline}.info-holder__inputs .input-holder__name,.input-holder__inputs .input-holder__name{font-weight:400!important;font-size:14px!important}.mat-form-field-wrapper,.mat-form-field-flex{height:30px!important}.mat-form-field-appearance-outline .mat-form-field-outline,.mat-form-field-outline .mat-form-field-outline-thick{height:35px!important}.mat-select{line-height:20px!important}.mat-form-field-appearance-outline .mat-form-field-infix{padding:14px 12px 10px;border-top:0;max-width:300px}.mat-tab-group{font-family:Inter,sans-serif}.mat-tab-label{font-weight:500!important;font-size:14px!important;height:auto!important;min-width:auto!important;padding:0!important}.mat-ink-bar{background-color:#000000e6!important;height:3px!important}.mat-form-field-wrapper{padding-bottom:0}.mat-form-field{max-width:300px}table{border-collapse:collapse;border-spacing:0}.mat-form-field-appearance-outline .mat-form-field-infix{padding:0!important}.mat-divider{margin:12px 0}::ng-deep .mat-form-field-wrapper{height:30px}::ng-deep .mat-form-field-flex{height:30px}::ng-deep .mat-form-field-appearance-outline .mat-form-field-outline{height:35px}:ng-deep .mat-form-field-outline .mat-form-field-outline-thick{height:35px}::ng-deep .mat-select{line-height:20px}::ng-deep .mat-form-field-infix{border-top:0px!important}::ng-deep .mat-paginator{background:transparent!important}::ng-deep .mat-paginator-container{min-height:30px!important}::ng-deep .mat-paginator-range-label{margin:0 10px 0 24px!important;font-size:15px!important}::ng-deep .pagination{font-size:13px;color:#0000008a}::ng-deep .per-page-block{display:flex;line-height:42px!important}::ng-deep .item_per_page{line-height:42px!important}::ng-deep .select-page-size{line-height:42px!important}::ng-deep mat-progress-spinner.page-spinner{position:fixed;margin:auto;inset:0}::ng-deep mat-progress-spinner.field-spinner{position:relative;margin:-20px auto auto}::ng-deep mat-progress-spinner.tab-spinner{position:relative;margin:0 auto auto}.icon-dot{display:block;color:#4f4f4f;font-size:16px;line-height:5px}.button-action-dot:hover{background:#dfdfdf}.button-action-dot{padding:0 5px 5px;border-radius:.25rem}\n"] }]
1239
+ }], ctorParameters: function () { return [{ type: UserService }, { type: APIService }, { type: ApiWebexService }, { type: NotificationService }, { type: UsersSearchService }, { type: i1.MatDialog }]; }, propDecorators: { token: [{
1240
+ type: Input
1241
+ }], customerId: [{
1242
+ type: Input
1243
+ }], siteId: [{
1244
+ type: Input
1245
+ }], openUser: [{
1246
+ type: Output
1247
+ }], userMoved: [{
1248
+ type: Output
1249
+ }], switchToWizard: [{
1250
+ type: Output
1251
+ }], host: [{
1252
+ type: Input
1253
+ }] } });
1254
+
1255
+ class EventsCommunicationService {
1256
+ constructor() {
1257
+ this.onSuccessfulLoginEvent = new Subject();
1258
+ }
1259
+ }
1260
+ EventsCommunicationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1261
+ EventsCommunicationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService });
1262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService, decorators: [{
1263
+ type: Injectable
1264
+ }], ctorParameters: function () { return []; } });
1265
+
1266
+ class MaterialModule {
1267
+ }
1268
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1269
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
1270
+ MatButtonModule,
1271
+ MatListModule,
1272
+ MatProgressSpinnerModule,
1273
+ MatExpansionModule,
1274
+ MatInputModule,
1275
+ MatInputModule,
1276
+ MatListModule,
1277
+ MatTreeModule,
1278
+ MatTreeModule,
1279
+ MatNativeDateModule,
1280
+ MatDatepickerModule,
1281
+ MatTooltipModule,
1282
+ MatAutocompleteModule,
1283
+ MatChipsModule,
1284
+ MatSidenavModule,
1285
+ MatFormFieldModule,
1286
+ MatStepperModule,
1287
+ MatTabsModule,
1288
+ MatCardModule,
1289
+ MatSelectModule,
1290
+ MatCheckboxModule,
1291
+ MatSlideToggleModule,
1292
+ MatTableModule,
1293
+ MatPaginatorModule,
1294
+ MatMenuModule,
1295
+ MatDialogModule,
1296
+ MatRadioModule], exports: [DragDropModule,
1297
+ MatButtonModule,
1298
+ MatListModule,
1299
+ MatProgressSpinnerModule,
1300
+ MatExpansionModule,
1301
+ MatInputModule,
1302
+ MatInputModule,
1303
+ MatListModule,
1304
+ MatTreeModule,
1305
+ MatTreeModule,
1306
+ MatNativeDateModule,
1307
+ MatDatepickerModule,
1308
+ MatTooltipModule,
1309
+ MatAutocompleteModule,
1310
+ MatChipsModule,
1311
+ MatSidenavModule,
1312
+ MatFormFieldModule,
1313
+ MatStepperModule,
1314
+ MatTabsModule,
1315
+ MatCardModule,
1316
+ MatCheckboxModule,
1317
+ MatSelectModule,
1318
+ MatSlideToggleModule,
1319
+ MatProgressSpinnerModule,
1320
+ MatTableModule,
1321
+ MatPaginatorModule,
1322
+ MatMenuModule,
1323
+ MatDialogModule,
1324
+ MatRadioModule] });
1325
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
1326
+ MatButtonModule,
1327
+ MatListModule,
1328
+ MatProgressSpinnerModule,
1329
+ MatExpansionModule,
1330
+ MatInputModule,
1331
+ MatInputModule,
1332
+ MatListModule,
1333
+ MatTreeModule,
1334
+ MatTreeModule,
1335
+ MatNativeDateModule,
1336
+ MatDatepickerModule,
1337
+ MatTooltipModule,
1338
+ MatAutocompleteModule,
1339
+ MatChipsModule,
1340
+ MatSidenavModule,
1341
+ MatFormFieldModule,
1342
+ MatStepperModule,
1343
+ MatTabsModule,
1344
+ MatCardModule,
1345
+ MatSelectModule,
1346
+ MatCheckboxModule,
1347
+ MatSlideToggleModule,
1348
+ MatTableModule,
1349
+ MatPaginatorModule,
1350
+ MatMenuModule,
1351
+ MatDialogModule,
1352
+ MatRadioModule, DragDropModule,
1353
+ MatButtonModule,
1354
+ MatListModule,
1355
+ MatProgressSpinnerModule,
1356
+ MatExpansionModule,
1357
+ MatInputModule,
1358
+ MatInputModule,
1359
+ MatListModule,
1360
+ MatTreeModule,
1361
+ MatTreeModule,
1362
+ MatNativeDateModule,
1363
+ MatDatepickerModule,
1364
+ MatTooltipModule,
1365
+ MatAutocompleteModule,
1366
+ MatChipsModule,
1367
+ MatSidenavModule,
1368
+ MatFormFieldModule,
1369
+ MatStepperModule,
1370
+ MatTabsModule,
1371
+ MatCardModule,
1372
+ MatCheckboxModule,
1373
+ MatSelectModule,
1374
+ MatSlideToggleModule,
1375
+ MatProgressSpinnerModule,
1376
+ MatTableModule,
1377
+ MatPaginatorModule,
1378
+ MatMenuModule,
1379
+ MatDialogModule,
1380
+ MatRadioModule] });
1381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
1382
+ type: NgModule,
1383
+ args: [{
1384
+ imports: [
1385
+ DragDropModule,
1386
+ MatButtonModule,
1387
+ MatListModule,
1388
+ MatProgressSpinnerModule,
1389
+ MatExpansionModule,
1390
+ MatInputModule,
1391
+ MatInputModule,
1392
+ MatListModule,
1393
+ MatTreeModule,
1394
+ MatTreeModule,
1395
+ MatNativeDateModule,
1396
+ MatDatepickerModule,
1397
+ MatTooltipModule,
1398
+ MatAutocompleteModule,
1399
+ MatChipsModule,
1400
+ MatSidenavModule,
1401
+ MatFormFieldModule,
1402
+ MatStepperModule,
1403
+ MatTabsModule,
1404
+ MatCardModule,
1405
+ MatSelectModule,
1406
+ MatCheckboxModule,
1407
+ MatSlideToggleModule,
1408
+ MatTableModule,
1409
+ MatPaginatorModule,
1410
+ MatMenuModule,
1411
+ MatDialogModule,
1412
+ MatRadioModule
1413
+ ],
1414
+ exports: [
1415
+ DragDropModule,
1416
+ MatButtonModule,
1417
+ MatListModule,
1418
+ MatProgressSpinnerModule,
1419
+ MatExpansionModule,
1420
+ MatInputModule,
1421
+ MatInputModule,
1422
+ MatListModule,
1423
+ MatTreeModule,
1424
+ MatTreeModule,
1425
+ MatNativeDateModule,
1426
+ MatDatepickerModule,
1427
+ MatTooltipModule,
1428
+ MatAutocompleteModule,
1429
+ MatChipsModule,
1430
+ MatSidenavModule,
1431
+ MatFormFieldModule,
1432
+ MatStepperModule,
1433
+ MatTabsModule,
1434
+ MatCardModule,
1435
+ MatCheckboxModule,
1436
+ MatSelectModule,
1437
+ MatSlideToggleModule,
1438
+ MatProgressSpinnerModule,
1439
+ MatTableModule,
1440
+ MatPaginatorModule,
1441
+ MatMenuModule,
1442
+ MatDialogModule,
1443
+ MatRadioModule
1444
+ ],
1445
+ }]
1446
+ }] });
1447
+
1448
+ class UsersListModule {
1449
+ }
1450
+ UsersListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1451
+ UsersListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, declarations: [UsersListComponent,
1452
+ PaginationComponent,
1453
+ AppLoaderComponent,
1454
+ MoveUserWizardComponent,
1455
+ MoveUserStepperComponent,
1456
+ UserListConfirmDialogComponent], imports: [BrowserModule,
1457
+ FormsModule,
1458
+ ReactiveFormsModule,
1459
+ HttpClientModule,
1460
+ MaterialModule], exports: [UsersListComponent] });
1461
+ UsersListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, providers: [
1462
+ UserService,
1463
+ APIService,
1464
+ EventsCommunicationService,
1465
+ UsersSearchService,
1466
+ NotificationService,
1467
+ RemoveKynFromIBMService,
1468
+ ApiWebexService,
1469
+ DnsService
1470
+ ], imports: [BrowserModule,
1471
+ FormsModule,
1472
+ ReactiveFormsModule,
1473
+ HttpClientModule,
1474
+ MaterialModule] });
1475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, decorators: [{
1476
+ type: NgModule,
1477
+ args: [{
1478
+ declarations: [
1479
+ UsersListComponent,
1480
+ PaginationComponent,
1481
+ AppLoaderComponent,
1482
+ MoveUserWizardComponent,
1483
+ MoveUserStepperComponent,
1484
+ UserListConfirmDialogComponent
1485
+ ],
1486
+ imports: [
1487
+ BrowserModule,
1488
+ FormsModule,
1489
+ ReactiveFormsModule,
1490
+ HttpClientModule,
1491
+ MaterialModule
1492
+ ],
1493
+ providers: [
1494
+ UserService,
1495
+ APIService,
1496
+ EventsCommunicationService,
1497
+ UsersSearchService,
1498
+ NotificationService,
1499
+ RemoveKynFromIBMService,
1500
+ ApiWebexService,
1501
+ DnsService
1502
+ ],
1503
+ exports: [UsersListComponent]
1504
+ }]
1505
+ }] });
1506
+
1507
+ /**
1508
+ * Generated bundle index. Do not edit.
1509
+ */
1510
+
1511
+ export { APIService, EventsCommunicationService, NotificationService, RemoveKynFromIBMService, UserService, UsersListComponent, UsersListModule, UsersSearchService };
1512
+ //# sourceMappingURL=tuki-io-tuki-widgets-users-list.mjs.map