@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,1523 @@
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 () {
73
+ return [{ type: i1.MatDialogRef }, { type: InfoDialogConfig, decorators: [{
74
+ type: Inject,
75
+ args: [MAT_DIALOG_DATA]
76
+ }] }];
77
+ } });
78
+ class InfoDialogConfig {
79
+ }
80
+
81
+ const getSavableData = (model, exclude) => {
82
+ let result = Object.keys(model);
83
+ if (exclude && exclude.length) {
84
+ result = result.filter(key => !exclude.some(item => item === key));
85
+ }
86
+ return result.reduce((result, key) => {
87
+ if (model[key] instanceof Array && model[key].length && model[key][0].getSavableData) {
88
+ result[key] = model[key].map((item) => item.getSavableData());
89
+ }
90
+ else if (model[key] instanceof Object && model[key].getSavableData) {
91
+ result[key] = model[key].getSavableData();
92
+ }
93
+ else {
94
+ result[key] = model[key];
95
+ }
96
+ return result;
97
+ }, {});
98
+ };
99
+
100
+ const API = {
101
+ USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
102
+ UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
103
+ PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
104
+ USER_BY_ID: '/api/provision/:siteId/users/:userId',
105
+ QUICK_USERS_SEARCH: "/api/search/quickusers",
106
+ DELETE_USER: "/api/search/quickusers",
107
+ MOVE_USER: "/api/migration/webex/singlemigration/features/PERSON",
108
+ AVAILABLE_DN_IN_RANGES: "/api/sites/:siteId/available-dn-in-ranges",
109
+ DELETE_LINE: "/api/provision/:siteId/deleteLine/:pkid/:token",
110
+ DISASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/deleteLineAssociation/:linePkid/:token",
111
+ CHECK_DELETE_LINE: "/api/provision/:siteId/checklinedeletion",
112
+ ASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/createLineAssociation/:token",
113
+ CHECK_DESTINATION_NUMBER: "/api/provision/:siteId/check-dn",
114
+ UPDATE_LINE_FIELDS: "/api/provision/:siteId/lineFields/:pkid/:token",
115
+ UPDATE_DEVICE_FIELDS: "/api/provision/:siteId/deviceFields/:deviceName/:token",
116
+ WEBEX_USERS: "/api/webex/provisioning/customers/:customerId/users",
117
+ MIGRATED_USERS: "/api/search/migratedusers",
118
+ REVERT_WEBEX_USER: "/api/webex/provisioning/customers/:customerId/persons/:webexUUID/removecallinglicense",
119
+ PHONE_NUMBERS: "/api/search/webex/customers/:customerId/locations/:locationId/phonenumbers"
120
+ };
121
+ const REGEX_PATTERN = {
122
+ EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
123
+ '@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
124
+ '?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
125
+ };
126
+ const PAGINATION_DEFAULTS = {
127
+ SIZE: 10,
128
+ INDEX: 0
129
+ };
130
+ const PAGINATION_SIZE_OPTIONS = [
131
+ 10,
132
+ 50,
133
+ 100,
134
+ 500
135
+ ];
136
+ const CUCS_TO_IGNORE = [
137
+ 189,
138
+ 194,
139
+ 191,
140
+ 190
141
+ ];
142
+ const CUCMS_TO_IGNORE = [
143
+ 249,
144
+ 255,
145
+ 251,
146
+ 250
147
+ ];
148
+ const MAX_INTEGER = 2147483647;
149
+
150
+ class SimplifiedUser {
151
+ constructor(user) {
152
+ if (user) {
153
+ this.userid = user.userid;
154
+ this.email = user.email;
155
+ this.firstName = user.firstName;
156
+ this.lastName = user.lastName;
157
+ this.token = user.token;
158
+ }
159
+ this.initForm();
160
+ }
161
+ initForm() {
162
+ const formBuilder = new FormBuilder();
163
+ const formSettings = {
164
+ userid: [{ value: this.userid || '', disabled: true }, [Validators.required, Validators.maxLength(128)]],
165
+ email: [{ value: this.email || '', disabled: true }, [
166
+ Validators.pattern(REGEX_PATTERN.EMAIL),
167
+ Validators.required
168
+ ]],
169
+ firstName: [{ value: this.firstName || '', disabled: true }],
170
+ lastName: [{ value: this.lastName || '', disabled: true }, Validators.required],
171
+ };
172
+ this.form = formBuilder.group(formSettings);
173
+ }
174
+ toggleEditMode() {
175
+ this.editMode = !this.editMode;
176
+ ['userid', 'email', 'firstName', 'lastName'].forEach(token => {
177
+ var _a, _b;
178
+ if (this.editMode) {
179
+ (_a = this.form.get(token)) === null || _a === void 0 ? void 0 : _a.enable();
180
+ }
181
+ else {
182
+ (_b = this.form.get(token)) === null || _b === void 0 ? void 0 : _b.disable();
183
+ }
184
+ });
185
+ }
186
+ getSavableData() {
187
+ const excludedFields = ['form', 'editMode', 'viewMode', 'token', 'hasModifiedCache'];
188
+ return getSavableData(this, excludedFields);
189
+ }
190
+ equal(userToCompare) {
191
+ if (!userToCompare) {
192
+ return false;
193
+ }
194
+ return JSON.stringify(this.getSavableData()) === JSON.stringify(userToCompare.getSavableData());
195
+ }
196
+ }
197
+
198
+ class UtilsService {
199
+ static sortSortArrayByProperty(array, sortBy) {
200
+ if (!array) {
201
+ return null;
202
+ }
203
+ return array.sort((a, b) => {
204
+ if (!a[sortBy] && !b[sortBy]) {
205
+ return 0;
206
+ }
207
+ if (a[sortBy] && !b[sortBy]) {
208
+ return 1;
209
+ }
210
+ if (!a[sortBy] && b[sortBy]) {
211
+ return -1;
212
+ }
213
+ const positionA = a[sortBy];
214
+ const positionB = b[sortBy];
215
+ return (positionA < positionB) ? -1 : (positionA > positionB) ? 1 : 0;
216
+ });
217
+ }
218
+ static diff(origObject, updatedObj, path, keysToIgnore) {
219
+ let result = [];
220
+ if (Object.is(origObject, updatedObj)) {
221
+ return undefined;
222
+ }
223
+ if (!updatedObj || typeof updatedObj !== 'object') {
224
+ return updatedObj;
225
+ }
226
+ const concat = Array.from(new Set([...Object.keys(origObject || {}), ...Object.keys(updatedObj || {})]));
227
+ const filter = keysToIgnore ? concat.filter(key => !keysToIgnore.includes(key)) : concat;
228
+ filter
229
+ .forEach(key => {
230
+ if (typeof updatedObj[key] === 'object' && typeof origObject[key] === 'object') {
231
+ if (UtilsService.differs(updatedObj[key], origObject[key])) {
232
+ const newPath = `${path}${path ? '.' : ''}${key}`;
233
+ const values = UtilsService.diff(origObject[key], updatedObj[key], newPath, keysToIgnore);
234
+ if (values !== undefined) {
235
+ result = [...result, ...values];
236
+ }
237
+ }
238
+ }
239
+ else if (updatedObj && !origObject || updatedObj[key] !== origObject[key] && !Object.is(origObject[key], updatedObj[key])) {
240
+ const value = updatedObj ? UtilsService.formatIfEmpty(updatedObj[key]) : null;
241
+ result.push(`${path}${path ? '.' : ''}${key}=${value}`);
242
+ }
243
+ });
244
+ return result;
245
+ }
246
+ static formatIfEmpty(value) {
247
+ if (value) {
248
+ return value;
249
+ }
250
+ switch (typeof value) {
251
+ case 'boolean':
252
+ return value;
253
+ case 'string':
254
+ return '';
255
+ default:
256
+ return null;
257
+ }
258
+ }
259
+ static differs(obj1, obj2) {
260
+ return JSON.stringify(obj1) !== JSON.stringify(obj2);
261
+ }
262
+ }
263
+ UtilsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
264
+ UtilsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService });
265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, decorators: [{
266
+ type: Injectable
267
+ }] });
268
+
269
+ class APIService {
270
+ constructor(httpClient) {
271
+ this.httpClient = httpClient;
272
+ this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
273
+ }
274
+ fetch(url, params = {}, cache) {
275
+ const headers = this.getHeaders(cache);
276
+ return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
277
+ }
278
+ post(url, body, params = {}) {
279
+ body = body || null;
280
+ const headers = this.getHeaders();
281
+ return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
282
+ }
283
+ // use when response extended data is necessary:
284
+ postExtended(url, body = null, params = {}, headers = {}) {
285
+ headers = headers || this.getHeaders();
286
+ return this.httpClient.post(this.apiUrl + url, body, {
287
+ headers,
288
+ observe: 'response',
289
+ params: this.prepareEncodedParams(params)
290
+ });
291
+ }
292
+ put(url, body = null, params = {}) {
293
+ const headers = this.getHeaders();
294
+ return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
295
+ }
296
+ delete(url, params = {}) {
297
+ const headers = this.getHeaders();
298
+ return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
299
+ }
300
+ fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
301
+ const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
302
+ const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
303
+ return this.fetch(url, params, cache);
304
+ }
305
+ prepareEncodedParams(params) {
306
+ const result = {};
307
+ if (!params) {
308
+ return {};
309
+ }
310
+ for (const key of Object.keys(params)) {
311
+ if (params[key]) {
312
+ const stringParam = params[key].toString();
313
+ result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
314
+ }
315
+ }
316
+ return result;
317
+ }
318
+ getHeaders(cache) {
319
+ let headers = new HttpHeaders();
320
+ if (cache) {
321
+ headers = headers.append('_Cache', 'true ');
322
+ }
323
+ const token = this.token || this.getParameterByName('token');
324
+ headers = headers.append('Authorization', 'Bearer ' + token);
325
+ return headers;
326
+ }
327
+ getParameterByName(name, url = window.location.href) {
328
+ name = name.replace(/[\[\]]/g, '\\$&');
329
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
330
+ if (!results)
331
+ return null;
332
+ if (!results[2])
333
+ return '';
334
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
335
+ }
336
+ }
337
+ 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 });
338
+ APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService });
339
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
340
+ type: Injectable
341
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
342
+
343
+ class ApiWebexService extends APIService {
344
+ constructor(httpClient) {
345
+ super(httpClient);
346
+ //this.apiUrl = window.location.protocol + "//"+ window.location.hostname + environment.apiAuthUrl;
347
+ this.apiUrl = 'https://webex.car-west.net/webex';
348
+ }
349
+ }
350
+ 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 });
351
+ ApiWebexService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService });
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiWebexService, decorators: [{
353
+ type: Injectable
354
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
355
+
356
+ class UserService {
357
+ constructor(apiService, apiWebexService) {
358
+ this.apiService = apiService;
359
+ this.apiWebexService = apiWebexService;
360
+ this.siteId = -1;
361
+ this.userId = '';
362
+ this.userIdExistPending = false;
363
+ this.hasExistedUserId = false;
364
+ }
365
+ ngOnInit() {
366
+ console.log(this.siteId);
367
+ }
368
+ fetchUserToken(siteId, userId) {
369
+ this.siteId = siteId;
370
+ this.userId = userId;
371
+ return this.apiService.fetch(API.USER_TOKEN.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(userId))))
372
+ .pipe(map((result) => {
373
+ const token = Object.keys(result)[0];
374
+ this.setSimplifiedUser(Object.values(result)[0], token);
375
+ }));
376
+ // .pipe(this.handleError(false, true));
377
+ }
378
+ updateUserFields(body) {
379
+ var _a;
380
+ if (!this.userId || !this.siteId || !((_a = this.user) === null || _a === void 0 ? void 0 : _a.token)) {
381
+ return;
382
+ }
383
+ return this.apiService.post(API.UPDATE_USER_FIELDS.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), body);
384
+ // .pipe(this.handleError(false, true));
385
+ }
386
+ moveUser(customerId, user) {
387
+ // return new Observable<boolean>(observer => {
388
+ // setTimeout(() => {
389
+ // observer.next(true);
390
+ //
391
+ // }, 80000);
392
+ // });
393
+ return this.apiWebexService.post(API.MOVE_USER, this.getMoveUserBody(customerId, user));
394
+ // .pipe(this.handleError(true, true));
395
+ }
396
+ moveUserToMT(customerId, user) {
397
+ // return new Observable<boolean>(observer => {
398
+ // setTimeout(() => {
399
+ // observer.next(true);
400
+ //
401
+ // }, 80000);
402
+ // });
403
+ return this.apiWebexService.post(API.MOVE_USER, this.getMoveUserBody(customerId, user));
404
+ // .pipe(this.handleError(true, true));
405
+ }
406
+ moveUserToDI(customerId, user) {
407
+ // return new Observable<boolean>(observer => {
408
+ // setTimeout(() => {
409
+ // observer.next(true);
410
+ //
411
+ // }, 80000);
412
+ // });
413
+ const URL = API.REVERT_WEBEX_USER.replace(':customerId', customerId).replace(':webexUUID', String(user.webexUUID));
414
+ return this.apiWebexService.post(URL, this.getMoveUserBody(customerId, user));
415
+ // .pipe(this.handleError(true, true));
416
+ }
417
+ getMoveUserBody(customerId, user) {
418
+ return {
419
+ customerId: customerId,
420
+ entities: {
421
+ PERSON: [{ cucmId: user.cucmId, entityId: user.userid }]
422
+ }
423
+ };
424
+ }
425
+ deleteUser(siteId, userId) {
426
+ return this.apiService.delete(API.DELETE_USER.replace(':siteId', String(siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(userId))));
427
+ // .pipe(this.handleError(true, true));
428
+ }
429
+ fetchUserById(id) {
430
+ this.userIdExistPending = true;
431
+ return this.apiService.fetch(API.USER_BY_ID.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(id))))
432
+ .pipe(map(result => {
433
+ this.userIdExistPending = false;
434
+ return result;
435
+ }));
436
+ }
437
+ persistCacheChanges() {
438
+ const params = {
439
+ excludeDeviceExtraOptions: true
440
+ };
441
+ return this.processUserChangesToCache()
442
+ .pipe(map((result) => {
443
+ return this.apiService.post(API.PERSIST_USER_CACHE.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), {}, params)
444
+ .subscribe(() => {
445
+ });
446
+ // .pipe(map((user) => {
447
+ // // this.setUser(user, false, this.user.token);
448
+ // this.user.hasModifiedCache = false;
449
+ // }))
450
+ // .pipe(this.handleError(true, true));
451
+ }));
452
+ }
453
+ processUserChangesToCache() {
454
+ const calls = [];
455
+ const body = UtilsService.diff(this.originUser.getSavableData(), this.user.getSavableData(), 'user');
456
+ if (body) {
457
+ calls.push(this.updateUserFields(body));
458
+ }
459
+ if (!(calls === null || calls === void 0 ? void 0 : calls.length)) {
460
+ return of(this.user);
461
+ }
462
+ return forkJoin(calls)
463
+ .pipe(map((responses) => {
464
+ // ApiUserResponse
465
+ this.handleSaveUserResponse(responses);
466
+ }));
467
+ // .pipe(this.handleError(false, true));
468
+ }
469
+ hasUnsavedChanges() {
470
+ return !this.user.equal(this.originUser);
471
+ }
472
+ setSimplifiedUser(user, token) {
473
+ this.user = new SimplifiedUser(user);
474
+ const copiedUser = JSON.parse(JSON.stringify(user));
475
+ this.originUser = new SimplifiedUser(copiedUser);
476
+ this.user.token = this.user.token || token;
477
+ this.originUser.token = this.originUser.token || token;
478
+ }
479
+ handleSaveUserResponse(responses) {
480
+ if (!(responses === null || responses === void 0 ? void 0 : responses.length)) {
481
+ return;
482
+ }
483
+ for (let len = responses.length, i = len - 1; i >= 0; i--) {
484
+ if (responses[i] && responses[i].currentUpdatedUser) {
485
+ // this.setUser(responses[i].currentUpdatedUser, false, this.user.token);
486
+ this.user.hasModifiedCache = true;
487
+ return;
488
+ }
489
+ }
490
+ }
491
+ }
492
+ 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 });
493
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService });
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService, decorators: [{
495
+ type: Injectable
496
+ }], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }]; } });
497
+
498
+ const TTL_DEFAULT = 30000;
499
+ const TTL_LONG_DEFAULT = 45000;
500
+ var NotificationType;
501
+ (function (NotificationType) {
502
+ NotificationType["info"] = "info";
503
+ NotificationType["error"] = "error";
504
+ NotificationType["success"] = "success";
505
+ NotificationType["warning"] = "warning";
506
+ })(NotificationType || (NotificationType = {}));
507
+ class Notification {
508
+ constructor(data) {
509
+ this.ttl = TTL_DEFAULT;
510
+ Object.assign(this, data || {});
511
+ if (this.ttl === undefined) {
512
+ this.ttl = this.message && this.message.length && this.message.length < 80 ? TTL_DEFAULT : TTL_LONG_DEFAULT;
513
+ }
514
+ }
515
+ isInfo() {
516
+ return this.type === NotificationType.info;
517
+ }
518
+ isError() {
519
+ return this.type === NotificationType.error;
520
+ }
521
+ isSuccess() {
522
+ return this.type === NotificationType.success;
523
+ }
524
+ isWarning() {
525
+ return this.type === NotificationType.warning;
526
+ }
527
+ }
528
+
529
+ const SUCCESS_TIME = 5000;
530
+ const INACTIVE_SESSION_MESSAGE = 'Your session was lost due to inactivity. Please login again';
531
+ const INACTIVE_SESSION = 'SESSION_INACTIVE';
532
+ class NotificationService {
533
+ constructor() {
534
+ this.listChange = new Subject();
535
+ this.max = 0;
536
+ this.list = [];
537
+ }
538
+ error(message, ttl) {
539
+ this.notify('error', message, ttl);
540
+ }
541
+ success(message, ttl) {
542
+ this.notify('success', message, (!ttl) ? SUCCESS_TIME : ttl);
543
+ }
544
+ warning(message, ttl) {
545
+ this.notify('warning', message, ttl);
546
+ }
547
+ info(message, ttl) {
548
+ this.notify('info', message, ttl);
549
+ }
550
+ notify(type, message, ttl) {
551
+ const found = this.list.find((n) => n.message === message);
552
+ if (found) {
553
+ this.remove(found);
554
+ }
555
+ const notification = new Notification({
556
+ id: ++this.max,
557
+ type, message, ttl
558
+ });
559
+ if (notification.ttl > 0) {
560
+ notification.timerId = setTimeout(() => this.remove(notification, true), notification.ttl);
561
+ }
562
+ this.list.push(notification);
563
+ this.listChange.next(this.list);
564
+ }
565
+ remove(notification, auto) {
566
+ if (!auto && notification.timerId) {
567
+ // clear timeout in case of manual remove
568
+ clearInterval(notification.timerId);
569
+ }
570
+ this.list = this.list.filter(n => n.id !== notification.id);
571
+ this.listChange.next(this.list);
572
+ }
573
+ removeInactiveSessionError() {
574
+ if (!this.list || !this.list.length) {
575
+ return;
576
+ }
577
+ this.list = this.list.filter(n => n.message !== INACTIVE_SESSION_MESSAGE && n.message !== INACTIVE_SESSION);
578
+ this.listChange.next(this.list);
579
+ }
580
+ }
581
+ NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
582
+ NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService });
583
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, decorators: [{
584
+ type: Injectable
585
+ }], ctorParameters: function () { return []; } });
586
+
587
+ class ListUser {
588
+ constructor(user, roleName) {
589
+ this.devices = [];
590
+ this.deviceProfiles = [];
591
+ if (user) {
592
+ Object.assign(this, user);
593
+ }
594
+ if (roleName) {
595
+ this.roleName = roleName;
596
+ }
597
+ }
598
+ }
599
+
600
+ class RemoveKynFromIBMService {
601
+ constructor() {
602
+ }
603
+ removeCUCMS(date, customerId) {
604
+ if (customerId === 8) {
605
+ return date.filter((val) => !CUCMS_TO_IGNORE.includes(Math.round(val.cucmId)));
606
+ }
607
+ return date;
608
+ }
609
+ removeCUCS(date, customerId) {
610
+ if (customerId === 8) {
611
+ return date.filter((val) => !CUCS_TO_IGNORE.includes(Math.round(val.cucId)));
612
+ }
613
+ return date;
614
+ }
615
+ }
616
+ RemoveKynFromIBMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
617
+ RemoveKynFromIBMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService });
618
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, decorators: [{
619
+ type: Injectable
620
+ }], ctorParameters: function () { return []; } });
621
+
622
+ class UsersSearchService {
623
+ constructor(apiService, webexApiService, removeKynFromIBMService) {
624
+ this.apiService = apiService;
625
+ this.webexApiService = webexApiService;
626
+ this.removeKynFromIBMService = removeKynFromIBMService;
627
+ this.siteId = -1;
628
+ this.userId = '';
629
+ this.userIdExistPending = false;
630
+ this.hasExistedUserId = false;
631
+ this.pageSize = PAGINATION_DEFAULTS.SIZE;
632
+ this.pageIndex = PAGINATION_DEFAULTS.SIZE;
633
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
634
+ this.foundUsers$ = new BehaviorSubject(null);
635
+ }
636
+ getPagination() {
637
+ return {
638
+ total: this.total,
639
+ pageSizeOptions: this.pageSizeOptions,
640
+ pageSize: this.pageSize,
641
+ pageIndex: this.pageIndex
642
+ };
643
+ }
644
+ setDefaultValues() {
645
+ this.total = 0;
646
+ this.pageSize = PAGINATION_DEFAULTS.SIZE;
647
+ this.pageIndex = PAGINATION_DEFAULTS.INDEX;
648
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
649
+ }
650
+ quickRegularUsersSearch(searchParams, isMigratedUsersOnly, pageSize) {
651
+ console.log('searchParams = ', searchParams);
652
+ this.searchParams = searchParams || { customerid: this.customerId, siteid: this.siteId };
653
+ return this.apiService.fetchPagination(API.QUICK_USERS_SEARCH, this.pageSize, pageSize || this.pageIndex, this.searchParams)
654
+ .pipe(map((res) => {
655
+ var _a;
656
+ // this.totals = this.totals || {};
657
+ // this.totals['users'] = res.total;
658
+ // this.foundUsers$.next(this.removeKynFromIBMService.removeCUCMS(users, this.customerId));
659
+ if (!isMigratedUsersOnly) {
660
+ const users = res.pageData && res.pageData.length ? res.pageData
661
+ .map(user => new ListUser(user, 'Dedicated Instance Calling user')) : [];
662
+ if ((_a = this.migratedUsersIds) === null || _a === void 0 ? void 0 : _a.length) {
663
+ this.setMigratedPropToUsers(users);
664
+ }
665
+ this.total = res.total;
666
+ this.foundUsers$.next(users);
667
+ }
668
+ else {
669
+ this.migratedUsersIds = res.pageData && res.pageData.length ? res.pageData
670
+ .map(user => user.userid) : [];
671
+ }
672
+ }));
673
+ // .pipe(this.handleError(true));
674
+ }
675
+ quickWebexUsersSearch(searchParams, isMigratedUsersOnly, pageSize) {
676
+ this.searchParams = searchParams || { customerid: this.customerId, siteid: this.siteId };
677
+ return this.webexApiService.fetchPagination(API.QUICK_USERS_SEARCH, this.pageSize, pageSize || this.pageIndex, this.searchParams)
678
+ .pipe(map((res) => {
679
+ var _a;
680
+ if (!isMigratedUsersOnly) {
681
+ const users = res.pageData && res.pageData.length ? res.pageData
682
+ .map(user => new ListUser(user, 'Dedicated Instance Calling user')) : [];
683
+ if ((_a = this.migratedUsersIds) === null || _a === void 0 ? void 0 : _a.length) {
684
+ this.setMigratedPropToUsers(users);
685
+ }
686
+ this.total = res.total;
687
+ this.foundUsers$.next(users);
688
+ }
689
+ else {
690
+ this.migratedUsersIds = res.pageData && res.pageData.length ? res.pageData
691
+ .map(user => user.userid) : [];
692
+ }
693
+ }));
694
+ // .pipe(this.handleError(true));
695
+ }
696
+ getMigratedUsers(customerId) {
697
+ return this.webexApiService.fetch(API.WEBEX_USERS.replace(':customerId', String(customerId)), {})
698
+ .pipe(map((result) => {
699
+ if (result && result.length) {
700
+ this.migratedUsers = result.filter((user) => user.webexUUID && user.devices && user.devices.length);
701
+ }
702
+ }));
703
+ }
704
+ getMigratedWebexUsers(customerId) {
705
+ const params = { customerid: customerId, type: 'PERSON' };
706
+ return this.webexApiService.fetch(API.MIGRATED_USERS.replace(':customerId', String(customerId)), params, true)
707
+ .pipe(map((result) => {
708
+ }));
709
+ }
710
+ setMigratedPropToUsers(users) {
711
+ users.forEach((user) => {
712
+ const migratedUser = this.migratedUsers.filter((migratedUser) => migratedUser.userid === user.email);
713
+ if (migratedUser && migratedUser[0]) {
714
+ user.roleName = '';
715
+ user.isMigrated = true;
716
+ user.status = 'Migrated';
717
+ user.webexUUID = migratedUser[0].webexUUID;
718
+ }
719
+ else {
720
+ user.roleName = 'Dedicated Instance Calling user';
721
+ user.isMigrated = false;
722
+ user.status = 'Active';
723
+ user.webexUUID = '';
724
+ }
725
+ });
726
+ console.log('users ttt', users);
727
+ }
728
+ }
729
+ 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 });
730
+ UsersSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService });
731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService, decorators: [{
732
+ type: Injectable
733
+ }], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }, { type: RemoveKynFromIBMService }]; } });
734
+
735
+ class PaginationComponent {
736
+ constructor() {
737
+ this.pageEmitter = new EventEmitter();
738
+ this.pageNumberChangeEmitter = new EventEmitter();
739
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
740
+ }
741
+ ngOnInit() {
742
+ }
743
+ pageEvent(event) {
744
+ this.pageEmitter.emit(event);
745
+ }
746
+ changePerPageNumber(event) {
747
+ this.pageNumberChangeEmitter.emit(event.value);
748
+ }
749
+ }
750
+ PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
751
+ 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"] }] });
752
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, decorators: [{
753
+ type: Component,
754
+ 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"] }]
755
+ }], ctorParameters: function () { return []; }, propDecorators: { pagination: [{
756
+ type: Input
757
+ }], showPageSizeOptions: [{
758
+ type: Input
759
+ }], showRefreshButton: [{
760
+ type: Input
761
+ }], lengthPending: [{
762
+ type: Input
763
+ }], pageEmitter: [{
764
+ type: Output
765
+ }], pageNumberChangeEmitter: [{
766
+ type: Output
767
+ }] } });
768
+
769
+ class AppLoaderComponent {
770
+ constructor() {
771
+ }
772
+ }
773
+ AppLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
774
+ 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 });
775
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, decorators: [{
776
+ type: Component,
777
+ 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"] }]
778
+ }], ctorParameters: function () { return []; } });
779
+
780
+ var EntityChangeType;
781
+ (function (EntityChangeType) {
782
+ EntityChangeType["added"] = "added";
783
+ EntityChangeType["updated"] = "updated";
784
+ EntityChangeType["existing"] = "existing";
785
+ EntityChangeType["removed"] = "removed";
786
+ EntityChangeType["unassociated"] = "unassociated";
787
+ })(EntityChangeType || (EntityChangeType = {}));
788
+ var DnRangeType;
789
+ (function (DnRangeType) {
790
+ DnRangeType["extension"] = "EXTENSION";
791
+ DnRangeType["cpg"] = "CPG";
792
+ DnRangeType["callpark"] = "CALLPARK";
793
+ DnRangeType["huntgroup"] = "HUNTGROUP";
794
+ DnRangeType["meetme"] = "MEETME";
795
+ DnRangeType["did"] = "DID";
796
+ })(DnRangeType || (DnRangeType = {}));
797
+
798
+ class DnsService {
799
+ constructor(apiService, apiWebexService) {
800
+ this.apiService = apiService;
801
+ this.apiWebexService = apiWebexService;
802
+ this.availableNumbers = {};
803
+ this.phoneNumbers = [];
804
+ }
805
+ getNumberRange(siteId, routePartition, withdids, from, pageSize) {
806
+ var _a;
807
+ // @ts-ignore
808
+ if ((_a = this.availableNumbers[routePartition]) === null || _a === void 0 ? void 0 : _a.length) {
809
+ return new Observable(observer => {
810
+ // @ts-ignore
811
+ observer.next(this.availableNumbers[routePartition]);
812
+ });
813
+ }
814
+ this.availableDidPatternsMappedToDn = {};
815
+ pageSize = pageSize ? pageSize : 20;
816
+ const params = { dntype: DnRangeType.extension, routepartition: routePartition, size: pageSize, page: 0 };
817
+ if (withdids) {
818
+ // @ts-ignore
819
+ params['withdids'] = 'true';
820
+ }
821
+ if (from) {
822
+ // @ts-ignore
823
+ params['from'] = from;
824
+ }
825
+ // @ts-ignore
826
+ this.availableNumbers[routePartition] = this.availableNumbers[routePartition] || [];
827
+ return this.apiService.fetch(API.AVAILABLE_DN_IN_RANGES.replace(':siteId', siteId), params)
828
+ .pipe(map((res) => {
829
+ res.availableNumberList.forEach((availableNumber) => {
830
+ this.setAvailableDidMappedToDn(availableNumber);
831
+ // @ts-ignore
832
+ this.availableNumbers[routePartition] = [...this.availableNumbers[routePartition], ...this.getUnwrapNumberRange(availableNumber)];
833
+ });
834
+ }));
835
+ // .pipe(this.handleError(true, false));
836
+ }
837
+ setAvailableDidMappedToDn(availableNumber) {
838
+ if (availableNumber.unUsedNumbersWithDids && availableNumber.unUsedNumbersWithDids.length) {
839
+ availableNumber.unUsedNumbersWithDids.forEach((numberWithDids) => {
840
+ const dn = numberWithDids['unUsedNumber'];
841
+ this.availableDidPatternsMappedToDn[dn] = [{}];
842
+ if (numberWithDids['translationPatternList'] && numberWithDids['translationPatternList'].length > 0) {
843
+ this.availableDidPatternsMappedToDn[dn] = numberWithDids['translationPatternList'];
844
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = [{}];
845
+ if (numberWithDids['mappedDids'] && numberWithDids['mappedDids'].length > 0) {
846
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = numberWithDids['mappedDids'];
847
+ }
848
+ }
849
+ this.availableDidPatternsMappedToDn[dn][0]['vm'] = numberWithDids['vm'];
850
+ });
851
+ }
852
+ }
853
+ getUnwrapNumberRange(availableNumber) {
854
+ let unwrapNumberRange = this.unwrapNumberRange(availableNumber.phoneNumberRange.from, availableNumber.phoneNumberRange.to)
855
+ .map((unwrappedNumber) => {
856
+ const dn = availableNumber.phoneNumberRange.prefix + unwrappedNumber;
857
+ let str = dn;
858
+ if (this.availableDidPatternsMappedToDn[dn] && this.availableDidPatternsMappedToDn[dn].length > 0) {
859
+ if (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] && this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 0) {
860
+ str += ' DID: ' + (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 1 ? 'multiple' :
861
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'][0]);
862
+ }
863
+ if (this.availableDidPatternsMappedToDn[dn][0]['vm']) {
864
+ str += ' In Use - VM';
865
+ }
866
+ }
867
+ return str;
868
+ });
869
+ unwrapNumberRange = unwrapNumberRange.filter((unwrappedNumber) => !availableNumber.usedNumbers.includes(unwrappedNumber));
870
+ return unwrapNumberRange;
871
+ }
872
+ unwrapNumberRange(start, end) {
873
+ const regExp = /(^0+)/;
874
+ let leadingZeros = '';
875
+ const matches = start.match(regExp);
876
+ if (matches) {
877
+ leadingZeros = matches[1];
878
+ }
879
+ const startNumeric = new Big(start);
880
+ const endNumeric = new Big(end);
881
+ // @ts-ignore
882
+ return Array.from({ length: (endNumeric.minus(startNumeric).plus(new Big(1)).toFixed(0)) }, (v, k) => {
883
+ const number = String(startNumeric.plus(new Big(k)).toFixed(0));
884
+ if ((leadingZeros + number).length > start.length) {
885
+ leadingZeros = leadingZeros.substr(1);
886
+ }
887
+ return leadingZeros + number;
888
+ });
889
+ }
890
+ fetchPhoneNumbers(customerId, locationId) {
891
+ const params = {
892
+ available: true,
893
+ numberType: 'NUMBER'
894
+ };
895
+ return this.apiWebexService.fetch(API.PHONE_NUMBERS.replace(':customerId', String(customerId)).replace(':locationId', locationId), params)
896
+ .pipe(map((result) => {
897
+ if (result === null || result === void 0 ? void 0 : result.length) {
898
+ this.phoneNumbers = result.map((item) => item.phoneNumber);
899
+ }
900
+ return result;
901
+ }));
902
+ }
903
+ }
904
+ 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 });
905
+ DnsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService });
906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService, decorators: [{
907
+ type: Injectable
908
+ }], ctorParameters: function () { return [{ type: APIService }, { type: ApiWebexService }]; } });
909
+
910
+ // for test only
911
+ const LOCATION = 'Y2lzY29zcGFyazovL3VzL0xPQ0FUSU9OLzE2YjY0NjljLTBjZmQtNDJjMS1iOWJjLTUyN2FlZTNhN2RlOQ';
912
+ class MoveUserStepperComponent {
913
+ get currentNumber() {
914
+ var _a, _b, _c;
915
+ if (((_b = (_a = this.user) === null || _a === void 0 ? void 0 : _a.devices) === null || _b === void 0 ? void 0 : _b.length) && ((_c = this.user.devices[0]) === null || _c === void 0 ? void 0 : _c.lineAssociations) && this.user.devices[0].lineAssociations[0]) {
916
+ return this.user.devices[0].lineAssociations[0].directoryNumber.directoryNumber;
917
+ }
918
+ return '';
919
+ }
920
+ constructor(dnsService) {
921
+ this.dnsService = dnsService;
922
+ this.runMoveUser = new EventEmitter();
923
+ this.cancel = new EventEmitter();
924
+ this.isLinear = true;
925
+ this.phoneNumberPending = false;
926
+ }
927
+ ngOnInit() {
928
+ if (this.user) {
929
+ this.user.moveType = {
930
+ phoneNumber: '1',
931
+ extension: '1'
932
+ };
933
+ }
934
+ }
935
+ onStepChange(event) {
936
+ // alert('step change ' + event.selectedIndex);
937
+ /*if (event.selectedIndex === 4) {
938
+ this.runMoveUser.emit();
939
+ }*/
940
+ }
941
+ selectPhoneNumberMigrationType(event) {
942
+ if (event.value && event.value === '2') {
943
+ this.getPhoneNumbers();
944
+ }
945
+ }
946
+ onPhoneNumberChange(event) {
947
+ this.user.newNumber;
948
+ }
949
+ onExtensionCHange(event) {
950
+ this.user.newExtension;
951
+ }
952
+ isFieldAvailable(type, value) {
953
+ var _a;
954
+ if ((_a = this.user) === null || _a === void 0 ? void 0 : _a.moveType) {
955
+ return this.user.moveType[type] && this.user.moveType[type] === value;
956
+ }
957
+ return false;
958
+ }
959
+ getPhoneNumbers() {
960
+ this.phoneNumberPending = true;
961
+ this.dnsService.fetchPhoneNumbers(this.customerId, LOCATION)
962
+ .subscribe(() => {
963
+ this.phoneNumberPending = false;
964
+ }, () => this.phoneNumberPending = false);
965
+ }
966
+ goNextStep(stepper) {
967
+ /*const currentStep = stepper.selectedIndex;
968
+
969
+ if (currentStep === 1) { stepper.selectedIndex = 3; }
970
+ // else if (currentStep === 3) { stepper.selectedIndex = 0; }
971
+
972
+ [
973
+ stepper.steps.get(1),
974
+ stepper.steps.get(2)
975
+
976
+ ].map(step => step ? step.completed = true : undefined);*/
977
+ }
978
+ }
979
+ MoveUserStepperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserStepperComponent, deps: [{ token: DnsService }], target: i0.ɵɵFactoryTarget.Component });
980
+ 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"] }] });
981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserStepperComponent, decorators: [{
982
+ type: Component,
983
+ 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"] }]
984
+ }], ctorParameters: function () { return [{ type: DnsService }]; }, propDecorators: { user: [{
985
+ type: Input
986
+ }], customerId: [{
987
+ type: Input
988
+ }], runMoveUser: [{
989
+ type: Output
990
+ }], cancel: [{
991
+ type: Output
992
+ }] } });
993
+
994
+ class MoveUserWizardComponent {
995
+ constructor(dnsService) {
996
+ this.dnsService = dnsService;
997
+ this.closeMoveUserWizard = new EventEmitter();
998
+ this.runMoveUser = new EventEmitter();
999
+ this.dataPending = false;
1000
+ }
1001
+ onClose() {
1002
+ this.closeMoveUserWizard.emit();
1003
+ }
1004
+ onRunMoveUser() {
1005
+ this.runMoveUser.emit();
1006
+ }
1007
+ }
1008
+ MoveUserWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserWizardComponent, deps: [{ token: DnsService }], target: i0.ɵɵFactoryTarget.Component });
1009
+ 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"] }] });
1010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MoveUserWizardComponent, decorators: [{
1011
+ type: Component,
1012
+ 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"] }]
1013
+ }], ctorParameters: function () { return [{ type: DnsService }]; }, propDecorators: { user: [{
1014
+ type: Input
1015
+ }], customerId: [{
1016
+ type: Input
1017
+ }], closeMoveUserWizard: [{
1018
+ type: Output
1019
+ }], runMoveUser: [{
1020
+ type: Output
1021
+ }] } });
1022
+
1023
+ const DISPLAYED_COLS = ['user-icon', 'name', 'email', 'status', 'role', 'actions'];
1024
+ const LOCAL_STORAGE = {
1025
+ USER_IN_MIGRATION: 'userIdInMigration'
1026
+ };
1027
+ class UsersListComponent {
1028
+ get form() {
1029
+ var _a, _b;
1030
+ return (_b = (_a = this.userService) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.form;
1031
+ }
1032
+ constructor(userService, apiService, apiWebexService, notifications, usersSearchService, dialog) {
1033
+ this.userService = userService;
1034
+ this.apiService = apiService;
1035
+ this.apiWebexService = apiWebexService;
1036
+ this.notifications = notifications;
1037
+ this.usersSearchService = usersSearchService;
1038
+ this.dialog = dialog;
1039
+ this.openUser = new EventEmitter();
1040
+ this.userMoved = new EventEmitter();
1041
+ this.switchToWizard = new EventEmitter();
1042
+ this.displayedColumns = DISPLAYED_COLS;
1043
+ this.showMoveUserWizard = false;
1044
+ }
1045
+ ngOnInit() {
1046
+ this.usersSearchService.setDefaultValues();
1047
+ this.usersSearchService.customerId = this.customerId;
1048
+ this.usersSearchService.siteId = this.siteId;
1049
+ this.apiService.token = this.token;
1050
+ this.apiWebexService.token = this.token;
1051
+ this.apiService.apiUrl = this.host + '/dcp';
1052
+ this.apiWebexService.apiUrl = this.host + '/webex';
1053
+ this.getMigratedUsers();
1054
+ this.searchSubscription = this.usersSearchService.foundUsers$
1055
+ .subscribe((users) => {
1056
+ this.initializeDataSource(users);
1057
+ });
1058
+ }
1059
+ pageNumberChangeEvent(perPageNumber) {
1060
+ this.usersSearchService.pageSize = perPageNumber;
1061
+ this.usersSearchService.pageIndex = 0;
1062
+ this.runSearch();
1063
+ }
1064
+ closeMoveUserWizard() {
1065
+ this.moveUser = null;
1066
+ this.showMoveUserWizard = false;
1067
+ this.switchToWizard.emit(false);
1068
+ }
1069
+ pageEvent(event) {
1070
+ this.usersSearchService.pageSize = event.pageSize;
1071
+ this.usersSearchService.pageIndex = event.pageIndex;
1072
+ this.runSearch();
1073
+ }
1074
+ onUserClick(user) {
1075
+ this.openUser.emit(user);
1076
+ }
1077
+ moveUserToMT(user, index) {
1078
+ if (user && user.siteId && user.userid) {
1079
+ this.moveUserPending = true;
1080
+ this.moveInProgressUserId = user.userid;
1081
+ this.setStatusToUser(index, 'In Progress');
1082
+ localStorage.setItem(LOCAL_STORAGE.USER_IN_MIGRATION, user.userid);
1083
+ const subscription = this.userService.moveUserToMT(this.customerId, user)
1084
+ .subscribe(() => {
1085
+ this.moveUser = null;
1086
+ this.moveUserIndex = null;
1087
+ this.getMigratedUsers();
1088
+ }, () => {
1089
+ this.removeUserInMigrationProgress();
1090
+ this.setStatusToUser(index, 'Migration Error');
1091
+ });
1092
+ }
1093
+ }
1094
+ moveUserToDI(user, index) {
1095
+ if (user && user.siteId && user.webexUUID) {
1096
+ this.moveUserPending = true;
1097
+ this.moveInProgressUserId = user.userid;
1098
+ this.users[index].status = 'In Progress';
1099
+ localStorage.setItem(LOCAL_STORAGE.USER_IN_MIGRATION, user.userid);
1100
+ const subscription = this.userService.moveUserToDI(this.customerId, user)
1101
+ .subscribe(() => {
1102
+ this.removeUserInMigrationProgress();
1103
+ this.setStatusToUser(index, 'Active');
1104
+ this.users[index].webexUUID = '';
1105
+ if (this.usersSearchService.migratedUsers && this.usersSearchService.migratedUsers.length) {
1106
+ this.usersSearchService.migratedUsers = this.usersSearchService.migratedUsers.filter((migratedUser) => migratedUser.userid !== user.email);
1107
+ }
1108
+ }, () => {
1109
+ this.removeUserInMigrationProgress();
1110
+ this.setStatusToUser(index, 'Migration Error');
1111
+ });
1112
+ }
1113
+ }
1114
+ removeUserInMigrationProgress() {
1115
+ localStorage.removeItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1116
+ this.moveInProgressUserId = '';
1117
+ this.moveUserPending = false;
1118
+ }
1119
+ setStatusToUser(index, status) {
1120
+ if (this.users && this.users[index]) {
1121
+ this.users[index].status = status;
1122
+ if (status === 'Migrated') {
1123
+ this.users[index].roleName = '';
1124
+ this.users[index].isMigrated = true;
1125
+ this.users[index].status = status;
1126
+ }
1127
+ else {
1128
+ this.users[index].roleName = 'Dedicated Instance Calling user';
1129
+ this.users[index].isMigrated = false;
1130
+ this.users[index].status = status;
1131
+ }
1132
+ }
1133
+ this.dataSource = new MatTableDataSource(this.users);
1134
+ }
1135
+ initializeDataSource(users) {
1136
+ if (users === null || users === void 0 ? void 0 : users.length) {
1137
+ // this.setRandomUserRole(users);
1138
+ this.users = users;
1139
+ this.setUserMigrationProgress();
1140
+ this.usersSearchService.setMigratedPropToUsers(this.users);
1141
+ this.dataSource = new MatTableDataSource(users);
1142
+ }
1143
+ }
1144
+ setUserRole() {
1145
+ var _a;
1146
+ if ((_a = this.users) === null || _a === void 0 ? void 0 : _a.length) {
1147
+ this.users.forEach(user => {
1148
+ if (!user.isMigrated) {
1149
+ user.roleName = 'Dedicated Instance Calling user';
1150
+ }
1151
+ });
1152
+ }
1153
+ }
1154
+ setRandomUserRole(users) {
1155
+ const max = Math.round(this.usersSearchService.pageSize - this.usersSearchService.pageSize / 4);
1156
+ const min = Math.round(this.usersSearchService.pageSize / 2);
1157
+ const randomAmount = Math.round(Math.random() * (max - min) + min);
1158
+ const indexes = this.getArrayOfRandomUserIndexes(randomAmount);
1159
+ indexes.forEach(index => {
1160
+ if (users[index]) {
1161
+ users[index].roleName = 'Dedicated Instance Calling user';
1162
+ }
1163
+ });
1164
+ }
1165
+ getArrayOfRandomUserIndexes(randomAmount) {
1166
+ const indexes = [];
1167
+ while (randomAmount > 0) {
1168
+ const index = Math.round(Math.random() * (this.usersSearchService.pageSize - 1));
1169
+ indexes.push(index);
1170
+ randomAmount--;
1171
+ }
1172
+ return indexes;
1173
+ }
1174
+ runSearch() {
1175
+ this.dataPending = true;
1176
+ this.usersSearchService.quickRegularUsersSearch()
1177
+ .subscribe(() => {
1178
+ this.dataPending = false;
1179
+ }, () => {
1180
+ this.dataPending = false;
1181
+ this.notifications.error('The data can not be received');
1182
+ });
1183
+ }
1184
+ setUserMigrationProgress() {
1185
+ const userIdInMigration = localStorage.getItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1186
+ if (userIdInMigration) {
1187
+ const index = this.users.findIndex(user => user.userid === userIdInMigration);
1188
+ this.moveInProgressUserId = index > -1 ? this.users[index].userid : '';
1189
+ this.moveUserPending = index > -1;
1190
+ }
1191
+ }
1192
+ getMigratedUsers() {
1193
+ this.dataPending = true;
1194
+ const searchParams = {
1195
+ customerid: this.customerId,
1196
+ siteid: this.siteId,
1197
+ 'cloud-only': 'true'
1198
+ };
1199
+ // this.usersSearchService.quickWebexUsersSearch(searchParams, true, MAX_INTEGER)
1200
+ this.usersSearchService.getMigratedUsers(this.customerId)
1201
+ // this.usersSearchService.getMigratedWebexUsers(this.customerId)
1202
+ .subscribe(() => {
1203
+ const userIdInMigration = localStorage.getItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1204
+ if (userIdInMigration && this.usersSearchService.migratedUsers.filter((migratedUser) => migratedUser.userid === userIdInMigration)) {
1205
+ localStorage.removeItem(LOCAL_STORAGE.USER_IN_MIGRATION);
1206
+ }
1207
+ this.runSearch();
1208
+ }, () => {
1209
+ this.dataPending = false;
1210
+ this.notifications.error('The data can not be received');
1211
+ });
1212
+ }
1213
+ onMoveUser(user, index, type) {
1214
+ const dialogRef = this.dialog.open(UserListConfirmDialogComponent, {
1215
+ data: {
1216
+ title: `Move user to ${type}?`,
1217
+ message: `You\'re sure that you want to move ${user.userid} to ${type}?`,
1218
+ confirmButtonText: 'Yes, continue'
1219
+ }
1220
+ });
1221
+ dialogRef.beforeClosed().subscribe((result) => {
1222
+ if (result) {
1223
+ switch (type) {
1224
+ case 'QuickMove':
1225
+ this.moveUserToMT(user, index);
1226
+ break;
1227
+ case 'MT':
1228
+ this.moveUser = user;
1229
+ this.moveUserIndex = index;
1230
+ this.showMoveUserWizard = true;
1231
+ this.switchToWizard.emit(true);
1232
+ break;
1233
+ case 'DI':
1234
+ this.moveUserToDI(user, index);
1235
+ break;
1236
+ }
1237
+ }
1238
+ });
1239
+ }
1240
+ runMoveUserToMT() {
1241
+ this.showMoveUserWizard = false;
1242
+ this.moveUserToMT(this.moveUser, this.moveUserIndex);
1243
+ }
1244
+ }
1245
+ 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 });
1246
+ 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"] }] });
1247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListComponent, decorators: [{
1248
+ type: Component,
1249
+ 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"] }]
1250
+ }], ctorParameters: function () { return [{ type: UserService }, { type: APIService }, { type: ApiWebexService }, { type: NotificationService }, { type: UsersSearchService }, { type: i1.MatDialog }]; }, propDecorators: { token: [{
1251
+ type: Input
1252
+ }], customerId: [{
1253
+ type: Input
1254
+ }], siteId: [{
1255
+ type: Input
1256
+ }], openUser: [{
1257
+ type: Output
1258
+ }], userMoved: [{
1259
+ type: Output
1260
+ }], switchToWizard: [{
1261
+ type: Output
1262
+ }], host: [{
1263
+ type: Input
1264
+ }] } });
1265
+
1266
+ class EventsCommunicationService {
1267
+ constructor() {
1268
+ this.onSuccessfulLoginEvent = new Subject();
1269
+ }
1270
+ }
1271
+ EventsCommunicationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1272
+ EventsCommunicationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService });
1273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EventsCommunicationService, decorators: [{
1274
+ type: Injectable
1275
+ }], ctorParameters: function () { return []; } });
1276
+
1277
+ class MaterialModule {
1278
+ }
1279
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1280
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
1281
+ MatButtonModule,
1282
+ MatListModule,
1283
+ MatProgressSpinnerModule,
1284
+ MatExpansionModule,
1285
+ MatInputModule,
1286
+ MatInputModule,
1287
+ MatListModule,
1288
+ MatTreeModule,
1289
+ MatTreeModule,
1290
+ MatNativeDateModule,
1291
+ MatDatepickerModule,
1292
+ MatTooltipModule,
1293
+ MatAutocompleteModule,
1294
+ MatChipsModule,
1295
+ MatSidenavModule,
1296
+ MatFormFieldModule,
1297
+ MatStepperModule,
1298
+ MatTabsModule,
1299
+ MatCardModule,
1300
+ MatSelectModule,
1301
+ MatCheckboxModule,
1302
+ MatSlideToggleModule,
1303
+ MatTableModule,
1304
+ MatPaginatorModule,
1305
+ MatMenuModule,
1306
+ MatDialogModule,
1307
+ MatRadioModule], exports: [DragDropModule,
1308
+ MatButtonModule,
1309
+ MatListModule,
1310
+ MatProgressSpinnerModule,
1311
+ MatExpansionModule,
1312
+ MatInputModule,
1313
+ MatInputModule,
1314
+ MatListModule,
1315
+ MatTreeModule,
1316
+ MatTreeModule,
1317
+ MatNativeDateModule,
1318
+ MatDatepickerModule,
1319
+ MatTooltipModule,
1320
+ MatAutocompleteModule,
1321
+ MatChipsModule,
1322
+ MatSidenavModule,
1323
+ MatFormFieldModule,
1324
+ MatStepperModule,
1325
+ MatTabsModule,
1326
+ MatCardModule,
1327
+ MatCheckboxModule,
1328
+ MatSelectModule,
1329
+ MatSlideToggleModule,
1330
+ MatProgressSpinnerModule,
1331
+ MatTableModule,
1332
+ MatPaginatorModule,
1333
+ MatMenuModule,
1334
+ MatDialogModule,
1335
+ MatRadioModule] });
1336
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
1337
+ MatButtonModule,
1338
+ MatListModule,
1339
+ MatProgressSpinnerModule,
1340
+ MatExpansionModule,
1341
+ MatInputModule,
1342
+ MatInputModule,
1343
+ MatListModule,
1344
+ MatTreeModule,
1345
+ MatTreeModule,
1346
+ MatNativeDateModule,
1347
+ MatDatepickerModule,
1348
+ MatTooltipModule,
1349
+ MatAutocompleteModule,
1350
+ MatChipsModule,
1351
+ MatSidenavModule,
1352
+ MatFormFieldModule,
1353
+ MatStepperModule,
1354
+ MatTabsModule,
1355
+ MatCardModule,
1356
+ MatSelectModule,
1357
+ MatCheckboxModule,
1358
+ MatSlideToggleModule,
1359
+ MatTableModule,
1360
+ MatPaginatorModule,
1361
+ MatMenuModule,
1362
+ MatDialogModule,
1363
+ MatRadioModule, DragDropModule,
1364
+ MatButtonModule,
1365
+ MatListModule,
1366
+ MatProgressSpinnerModule,
1367
+ MatExpansionModule,
1368
+ MatInputModule,
1369
+ MatInputModule,
1370
+ MatListModule,
1371
+ MatTreeModule,
1372
+ MatTreeModule,
1373
+ MatNativeDateModule,
1374
+ MatDatepickerModule,
1375
+ MatTooltipModule,
1376
+ MatAutocompleteModule,
1377
+ MatChipsModule,
1378
+ MatSidenavModule,
1379
+ MatFormFieldModule,
1380
+ MatStepperModule,
1381
+ MatTabsModule,
1382
+ MatCardModule,
1383
+ MatCheckboxModule,
1384
+ MatSelectModule,
1385
+ MatSlideToggleModule,
1386
+ MatProgressSpinnerModule,
1387
+ MatTableModule,
1388
+ MatPaginatorModule,
1389
+ MatMenuModule,
1390
+ MatDialogModule,
1391
+ MatRadioModule] });
1392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
1393
+ type: NgModule,
1394
+ args: [{
1395
+ imports: [
1396
+ DragDropModule,
1397
+ MatButtonModule,
1398
+ MatListModule,
1399
+ MatProgressSpinnerModule,
1400
+ MatExpansionModule,
1401
+ MatInputModule,
1402
+ MatInputModule,
1403
+ MatListModule,
1404
+ MatTreeModule,
1405
+ MatTreeModule,
1406
+ MatNativeDateModule,
1407
+ MatDatepickerModule,
1408
+ MatTooltipModule,
1409
+ MatAutocompleteModule,
1410
+ MatChipsModule,
1411
+ MatSidenavModule,
1412
+ MatFormFieldModule,
1413
+ MatStepperModule,
1414
+ MatTabsModule,
1415
+ MatCardModule,
1416
+ MatSelectModule,
1417
+ MatCheckboxModule,
1418
+ MatSlideToggleModule,
1419
+ MatTableModule,
1420
+ MatPaginatorModule,
1421
+ MatMenuModule,
1422
+ MatDialogModule,
1423
+ MatRadioModule
1424
+ ],
1425
+ exports: [
1426
+ DragDropModule,
1427
+ MatButtonModule,
1428
+ MatListModule,
1429
+ MatProgressSpinnerModule,
1430
+ MatExpansionModule,
1431
+ MatInputModule,
1432
+ MatInputModule,
1433
+ MatListModule,
1434
+ MatTreeModule,
1435
+ MatTreeModule,
1436
+ MatNativeDateModule,
1437
+ MatDatepickerModule,
1438
+ MatTooltipModule,
1439
+ MatAutocompleteModule,
1440
+ MatChipsModule,
1441
+ MatSidenavModule,
1442
+ MatFormFieldModule,
1443
+ MatStepperModule,
1444
+ MatTabsModule,
1445
+ MatCardModule,
1446
+ MatCheckboxModule,
1447
+ MatSelectModule,
1448
+ MatSlideToggleModule,
1449
+ MatProgressSpinnerModule,
1450
+ MatTableModule,
1451
+ MatPaginatorModule,
1452
+ MatMenuModule,
1453
+ MatDialogModule,
1454
+ MatRadioModule
1455
+ ],
1456
+ }]
1457
+ }] });
1458
+
1459
+ class UsersListModule {
1460
+ }
1461
+ UsersListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1462
+ UsersListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, declarations: [UsersListComponent,
1463
+ PaginationComponent,
1464
+ AppLoaderComponent,
1465
+ MoveUserWizardComponent,
1466
+ MoveUserStepperComponent,
1467
+ UserListConfirmDialogComponent], imports: [BrowserModule,
1468
+ FormsModule,
1469
+ ReactiveFormsModule,
1470
+ HttpClientModule,
1471
+ MaterialModule], exports: [UsersListComponent] });
1472
+ UsersListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, providers: [
1473
+ UserService,
1474
+ APIService,
1475
+ EventsCommunicationService,
1476
+ UsersSearchService,
1477
+ NotificationService,
1478
+ RemoveKynFromIBMService,
1479
+ ApiWebexService,
1480
+ DnsService
1481
+ ], imports: [BrowserModule,
1482
+ FormsModule,
1483
+ ReactiveFormsModule,
1484
+ HttpClientModule,
1485
+ MaterialModule] });
1486
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersListModule, decorators: [{
1487
+ type: NgModule,
1488
+ args: [{
1489
+ declarations: [
1490
+ UsersListComponent,
1491
+ PaginationComponent,
1492
+ AppLoaderComponent,
1493
+ MoveUserWizardComponent,
1494
+ MoveUserStepperComponent,
1495
+ UserListConfirmDialogComponent
1496
+ ],
1497
+ imports: [
1498
+ BrowserModule,
1499
+ FormsModule,
1500
+ ReactiveFormsModule,
1501
+ HttpClientModule,
1502
+ MaterialModule
1503
+ ],
1504
+ providers: [
1505
+ UserService,
1506
+ APIService,
1507
+ EventsCommunicationService,
1508
+ UsersSearchService,
1509
+ NotificationService,
1510
+ RemoveKynFromIBMService,
1511
+ ApiWebexService,
1512
+ DnsService
1513
+ ],
1514
+ exports: [UsersListComponent]
1515
+ }]
1516
+ }] });
1517
+
1518
+ /**
1519
+ * Generated bundle index. Do not edit.
1520
+ */
1521
+
1522
+ export { APIService, EventsCommunicationService, NotificationService, RemoveKynFromIBMService, UserService, UsersListComponent, UsersListModule, UsersSearchService };
1523
+ //# sourceMappingURL=tuki-io-tuki-widgets-users-list.mjs.map