@tuki-io/tuki-widgets 0.0.0-watch

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 (331) hide show
  1. package/README.md +24 -0
  2. package/di2mt/README.md +42 -0
  3. package/di2mt/api/api.endpoints.d.ts +20 -0
  4. package/di2mt/index.d.ts +5 -0
  5. package/di2mt/public-api.d.ts +12 -0
  6. package/di2mt/shared/components/card/card.component.d.ts +6 -0
  7. package/di2mt/shared/components/chart-card/chart-card.component.d.ts +22 -0
  8. package/di2mt/shared/components/stat-card/stat-card.component.d.ts +14 -0
  9. package/di2mt/shared/components/status-list-card/status-list-card.component.d.ts +7 -0
  10. package/di2mt/shared/components/summary-card/summary-card.component.d.ts +9 -0
  11. package/di2mt/shared/components/table-filters/table-filters.component.d.ts +14 -0
  12. package/di2mt/shared/material.module.d.ts +15 -0
  13. package/di2mt/shared/services/api.service.d.ts +20 -0
  14. package/di2mt/shared/shared.module.d.ts +16 -0
  15. package/di2mt/shared/types/constants.d.ts +7 -0
  16. package/di2mt/shared/types/data-table.d.ts +5 -0
  17. package/di2mt/shared/types/table/filter.d.ts +16 -0
  18. package/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.d.ts +48 -0
  19. package/di2mt/widgets/site-upgrade/site-upgrade.module.d.ts +12 -0
  20. package/di2mt/widgets/site-upgrade/site-upgrade.service.d.ts +12 -0
  21. package/di2mt/widgets/site-upgrade/types/user-upgrade.d.ts +14 -0
  22. package/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.d.ts +19 -0
  23. package/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.d.ts +19 -0
  24. package/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.d.ts +18 -0
  25. package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.d.ts +19 -0
  26. package/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.d.ts +19 -0
  27. package/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.d.ts +15 -0
  28. package/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.d.ts +18 -0
  29. package/di2mt/widgets/upgrade-overview/types/upgrade-overview.d.ts +56 -0
  30. package/di2mt/widgets/upgrade-overview/upgrade-overview.module.d.ts +15 -0
  31. package/di2mt/widgets/upgrade-overview/upgrade-overview.service.d.ts +17 -0
  32. package/di2mt/widgets/user-upgrade/types/user-upgrade.d.ts +16 -0
  33. package/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.d.ts +49 -0
  34. package/di2mt/widgets/user-upgrade/user-upgrade.module.d.ts +12 -0
  35. package/di2mt/widgets/user-upgrade/user-upgrade.service.d.ts +14 -0
  36. package/esm2020/di2mt/api/api.endpoints.mjs +21 -0
  37. package/esm2020/di2mt/public-api.mjs +23 -0
  38. package/esm2020/di2mt/shared/components/card/card.component.mjs +13 -0
  39. package/esm2020/di2mt/shared/components/chart-card/chart-card.component.mjs +62 -0
  40. package/esm2020/di2mt/shared/components/stat-card/stat-card.component.mjs +47 -0
  41. package/esm2020/di2mt/shared/components/status-list-card/status-list-card.component.mjs +17 -0
  42. package/esm2020/di2mt/shared/components/summary-card/summary-card.component.mjs +36 -0
  43. package/esm2020/di2mt/shared/components/table-filters/table-filters.component.mjs +37 -0
  44. package/esm2020/di2mt/shared/material.module.mjs +76 -0
  45. package/esm2020/di2mt/shared/services/api.service.mjs +86 -0
  46. package/esm2020/di2mt/shared/shared.module.mjs +61 -0
  47. package/esm2020/di2mt/shared/types/constants.mjs +12 -0
  48. package/esm2020/di2mt/shared/types/data-table.mjs +2 -0
  49. package/esm2020/di2mt/shared/types/table/filter.mjs +2 -0
  50. package/esm2020/di2mt/tuki-io-tuki-widgets-di2mt.mjs +5 -0
  51. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.mjs +182 -0
  52. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.module.mjs +40 -0
  53. package/esm2020/di2mt/widgets/site-upgrade/site-upgrade.service.mjs +43 -0
  54. package/esm2020/di2mt/widgets/site-upgrade/types/user-upgrade.mjs +3 -0
  55. package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-sites/already-upgraded-sites-card.component.mjs +64 -0
  56. package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.mjs +64 -0
  57. package/esm2020/di2mt/widgets/upgrade-overview/cards/preconditions-status-list/preconditions-status-list-card.component.mjs +68 -0
  58. package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-sites/ready-to-upgrade-sites-card.component.mjs +45 -0
  59. package/esm2020/di2mt/widgets/upgrade-overview/cards/ready-to-upgrade-users/ready-to-upgrade-users-card.component.mjs +45 -0
  60. package/esm2020/di2mt/widgets/upgrade-overview/cards/site-infrastructure-status-list/site-infrastructure-status-list-card.component.mjs +64 -0
  61. package/esm2020/di2mt/widgets/upgrade-overview/cards/upgrade-state-comparison-chart/upgrade-state-comparison-chart-card.component.mjs +74 -0
  62. package/esm2020/di2mt/widgets/upgrade-overview/types/upgrade-overview.mjs +2 -0
  63. package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.module.mjs +59 -0
  64. package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.service.mjs +82 -0
  65. package/esm2020/di2mt/widgets/user-upgrade/types/user-upgrade.mjs +3 -0
  66. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade-data-table/user-upgrade-data-table.component.mjs +197 -0
  67. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.module.mjs +40 -0
  68. package/esm2020/di2mt/widgets/user-upgrade/user-upgrade.service.mjs +58 -0
  69. package/esm2020/lib/widgets.component.mjs +22 -0
  70. package/esm2020/lib/widgets.module.mjs +21 -0
  71. package/esm2020/lib/widgets.service.mjs +14 -0
  72. package/esm2020/public-api.mjs +7 -0
  73. package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
  74. package/esm2020/user-device-manage/public-api.mjs +9 -0
  75. package/esm2020/user-device-manage/src/app.constants.mjs +95 -0
  76. package/esm2020/user-device-manage/src/classes/device.mjs +85 -0
  77. package/esm2020/user-device-manage/src/classes/line-association-interface.mjs +2 -0
  78. package/esm2020/user-device-manage/src/classes/line-association.mjs +121 -0
  79. package/esm2020/user-device-manage/src/classes/line-call-info-display.mjs +10 -0
  80. package/esm2020/user-device-manage/src/classes/line-directory.mjs +27 -0
  81. package/esm2020/user-device-manage/src/classes/line.mjs +18 -0
  82. package/esm2020/user-device-manage/src/classes/notification.mjs +32 -0
  83. package/esm2020/user-device-manage/src/classes/recording-options.mjs +7 -0
  84. package/esm2020/user-device-manage/src/classes/simplified-user.mjs +111 -0
  85. package/esm2020/user-device-manage/src/classes/site-defaults.mjs +21 -0
  86. package/esm2020/user-device-manage/src/classes/translation-pattern.mjs +32 -0
  87. package/esm2020/user-device-manage/src/classes/types.mjs +24 -0
  88. package/esm2020/user-device-manage/src/common-functions.mjs +19 -0
  89. package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +34 -0
  90. package/esm2020/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.mjs +31 -0
  91. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.mjs +16 -0
  92. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +64 -0
  93. package/esm2020/user-device-manage/src/device-associated-line/device-associated-line.component.mjs +179 -0
  94. package/esm2020/user-device-manage/src/device-list/device-list.component.mjs +24 -0
  95. package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +335 -0
  96. package/esm2020/user-device-manage/src/environments/environment.mjs +11 -0
  97. package/esm2020/user-device-manage/src/interseptors/auth.interceptor.mjs +36 -0
  98. package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  99. package/esm2020/user-device-manage/src/material.module.mjs +192 -0
  100. package/esm2020/user-device-manage/src/notifications/notification.component.mjs +35 -0
  101. package/esm2020/user-device-manage/src/services/api.service.mjs +79 -0
  102. package/esm2020/user-device-manage/src/services/device.service.mjs +83 -0
  103. package/esm2020/user-device-manage/src/services/dns.service.mjs +104 -0
  104. package/esm2020/user-device-manage/src/services/line.service.mjs +76 -0
  105. package/esm2020/user-device-manage/src/services/notification.service.mjs +62 -0
  106. package/esm2020/user-device-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  107. package/esm2020/user-device-manage/src/services/site-settings.service.mjs +70 -0
  108. package/esm2020/user-device-manage/src/services/sorting-utils.service.mjs +197 -0
  109. package/esm2020/user-device-manage/src/services/user.service.mjs +243 -0
  110. package/esm2020/user-device-manage/src/services/utils.service.mjs +87 -0
  111. package/esm2020/user-device-manage/src/services/validation.service.mjs +760 -0
  112. package/esm2020/user-device-manage/src/user-device-manage.module.mjs +107 -0
  113. package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +14 -0
  114. package/esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs +5 -0
  115. package/esm2020/user-manage/public-api.mjs +7 -0
  116. package/esm2020/user-manage/src/app.constants.mjs +50 -0
  117. package/esm2020/user-manage/src/classes/device.mjs +37 -0
  118. package/esm2020/user-manage/src/classes/line-association-interface.mjs +2 -0
  119. package/esm2020/user-manage/src/classes/line-association.mjs +110 -0
  120. package/esm2020/user-manage/src/classes/line-call-info-display.mjs +10 -0
  121. package/esm2020/user-manage/src/classes/line-directory.mjs +27 -0
  122. package/esm2020/user-manage/src/classes/line.mjs +18 -0
  123. package/esm2020/user-manage/src/classes/notification.mjs +32 -0
  124. package/esm2020/user-manage/src/classes/pagination.mjs +8 -0
  125. package/esm2020/user-manage/src/classes/recording-options.mjs +7 -0
  126. package/esm2020/user-manage/src/classes/simplified-user.mjs +109 -0
  127. package/esm2020/user-manage/src/classes/table-data.mjs +2 -0
  128. package/esm2020/user-manage/src/classes/translation-pattern.mjs +32 -0
  129. package/esm2020/user-manage/src/classes/user-list.mjs +10 -0
  130. package/esm2020/user-manage/src/common-functions.mjs +19 -0
  131. package/esm2020/user-manage/src/device-list/device-list.component.mjs +24 -0
  132. package/esm2020/user-manage/src/environments/environment.mjs +11 -0
  133. package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +36 -0
  134. package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  135. package/esm2020/user-manage/src/material.module.mjs +188 -0
  136. package/esm2020/user-manage/src/notifications/notification.component.mjs +35 -0
  137. package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +25 -0
  138. package/esm2020/user-manage/src/services/api.service.mjs +79 -0
  139. package/esm2020/user-manage/src/services/dns.service.mjs +110 -0
  140. package/esm2020/user-manage/src/services/line.service.mjs +34 -0
  141. package/esm2020/user-manage/src/services/notification.service.mjs +62 -0
  142. package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  143. package/esm2020/user-manage/src/services/site-settings.service.mjs +36 -0
  144. package/esm2020/user-manage/src/services/sorting-utils.service.mjs +197 -0
  145. package/esm2020/user-manage/src/services/user.service.mjs +207 -0
  146. package/esm2020/user-manage/src/services/users-search.service.mjs +50 -0
  147. package/esm2020/user-manage/src/services/utils.service.mjs +73 -0
  148. package/esm2020/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.mjs +65 -0
  149. package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +78 -0
  150. package/esm2020/user-manage/src/user-info/user-info.component.mjs +20 -0
  151. package/esm2020/user-manage/src/user-manage-widget.component.mjs +208 -0
  152. package/esm2020/user-manage/src/user-manage.module.mjs +99 -0
  153. package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +14 -0
  154. package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +43 -0
  155. package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +5 -0
  156. package/esm2020/users-list/public-api.mjs +9 -0
  157. package/esm2020/users-list/src/app.constants.mjs +54 -0
  158. package/esm2020/users-list/src/classes/app-location.mjs +32 -0
  159. package/esm2020/users-list/src/classes/device.mjs +7 -0
  160. package/esm2020/users-list/src/classes/line.mjs +18 -0
  161. package/esm2020/users-list/src/classes/move-user.mjs +178 -0
  162. package/esm2020/users-list/src/classes/notification.mjs +31 -0
  163. package/esm2020/users-list/src/classes/pagination.mjs +8 -0
  164. package/esm2020/users-list/src/classes/simlified-user.mjs +50 -0
  165. package/esm2020/users-list/src/classes/table-data.mjs +2 -0
  166. package/esm2020/users-list/src/classes/user-list.mjs +14 -0
  167. package/esm2020/users-list/src/material.module.mjs +209 -0
  168. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.mjs +38 -0
  169. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.mjs +23 -0
  170. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +189 -0
  171. package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +38 -0
  172. package/esm2020/users-list/src/services/api-webex.service.mjs +18 -0
  173. package/esm2020/users-list/src/services/api.service.mjs +78 -0
  174. package/esm2020/users-list/src/services/dns.service.mjs +120 -0
  175. package/esm2020/users-list/src/services/events-communication.service.mjs +14 -0
  176. package/esm2020/users-list/src/services/move-user.service.mjs +53 -0
  177. package/esm2020/users-list/src/services/notification.service.mjs +62 -0
  178. package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +25 -0
  179. package/esm2020/users-list/src/services/site-settings.service.mjs +27 -0
  180. package/esm2020/users-list/src/services/user.service.mjs +142 -0
  181. package/esm2020/users-list/src/services/users-search.service.mjs +122 -0
  182. package/esm2020/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.mjs +34 -0
  183. package/esm2020/users-list/src/users-list.component.mjs +287 -0
  184. package/esm2020/users-list/src/users-list.module.mjs +92 -0
  185. package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +14 -0
  186. package/esm2020/users-list/src/utils/common-functions.mjs +32 -0
  187. package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +43 -0
  188. package/esm2020/users-list/src/utils/utils.service.mjs +73 -0
  189. package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +5 -0
  190. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +1469 -0
  191. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
  192. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +3402 -0
  193. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  194. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +2124 -0
  195. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  196. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +1994 -0
  197. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  198. package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
  199. package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
  200. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +1460 -0
  201. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -0
  202. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +3364 -0
  203. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -0
  204. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +2107 -0
  205. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  206. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +1973 -0
  207. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  208. package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
  209. package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
  210. package/index.d.ts +5 -0
  211. package/lib/widgets.component.d.ts +8 -0
  212. package/lib/widgets.module.d.ts +7 -0
  213. package/lib/widgets.service.d.ts +6 -0
  214. package/package.json +65 -0
  215. package/public-api.d.ts +3 -0
  216. package/user-device-manage/index.d.ts +5 -0
  217. package/user-device-manage/public-api.d.ts +8 -0
  218. package/user-device-manage/src/app.constants.d.ts +74 -0
  219. package/user-device-manage/src/classes/device.d.ts +233 -0
  220. package/user-device-manage/src/classes/line-association-interface.d.ts +45 -0
  221. package/user-device-manage/src/classes/line-association.d.ts +62 -0
  222. package/user-device-manage/src/classes/line-call-info-display.d.ts +11 -0
  223. package/user-device-manage/src/classes/line-directory.d.ts +15 -0
  224. package/user-device-manage/src/classes/line.d.ts +140 -0
  225. package/user-device-manage/src/classes/notification.d.ts +18 -0
  226. package/user-device-manage/src/classes/recording-options.d.ts +5 -0
  227. package/user-device-manage/src/classes/simplified-user.d.ts +52 -0
  228. package/user-device-manage/src/classes/site-defaults.d.ts +146 -0
  229. package/user-device-manage/src/classes/translation-pattern.d.ts +19 -0
  230. package/user-device-manage/src/classes/types.d.ts +19 -0
  231. package/user-device-manage/src/common-functions.d.ts +1 -0
  232. package/user-device-manage/src/confirm-dialog/info-dialog.component.d.ts +20 -0
  233. package/user-device-manage/src/device-associated-line/associated-line-row/associated-line-row.component.d.ts +15 -0
  234. package/user-device-manage/src/device-associated-line/device-associated-line-details-box/device-associated-line-details-box.component.d.ts +7 -0
  235. package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +24 -0
  236. package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +89 -0
  237. package/user-device-manage/src/device-list/device-list.component.d.ts +11 -0
  238. package/user-device-manage/src/device-manage-widget.component.d.ts +71 -0
  239. package/user-device-manage/src/environments/environment.d.ts +9 -0
  240. package/user-device-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  241. package/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  242. package/user-device-manage/src/material.module.d.ts +29 -0
  243. package/user-device-manage/src/notifications/notification.component.d.ts +19 -0
  244. package/user-device-manage/src/services/api.service.d.ts +20 -0
  245. package/user-device-manage/src/services/device.service.d.ts +21 -0
  246. package/user-device-manage/src/services/dns.service.d.ts +14 -0
  247. package/user-device-manage/src/services/line.service.d.ts +33 -0
  248. package/user-device-manage/src/services/notification.service.d.ts +18 -0
  249. package/user-device-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  250. package/user-device-manage/src/services/site-settings.service.d.ts +25 -0
  251. package/user-device-manage/src/services/sorting-utils.service.d.ts +26 -0
  252. package/user-device-manage/src/services/user.service.d.ts +51 -0
  253. package/user-device-manage/src/services/utils.service.d.ts +10 -0
  254. package/user-device-manage/src/services/validation.service.d.ts +165 -0
  255. package/user-device-manage/src/user-device-manage.module.d.ts +22 -0
  256. package/user-device-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  257. package/user-manage/index.d.ts +5 -0
  258. package/user-manage/public-api.d.ts +6 -0
  259. package/user-manage/src/app.constants.d.ts +29 -0
  260. package/user-manage/src/classes/device.d.ts +203 -0
  261. package/user-manage/src/classes/line-association-interface.d.ts +40 -0
  262. package/user-manage/src/classes/line-association.d.ts +55 -0
  263. package/user-manage/src/classes/line-call-info-display.d.ts +11 -0
  264. package/user-manage/src/classes/line-directory.d.ts +16 -0
  265. package/user-manage/src/classes/line.d.ts +140 -0
  266. package/user-manage/src/classes/notification.d.ts +18 -0
  267. package/user-manage/src/classes/pagination.d.ts +13 -0
  268. package/user-manage/src/classes/recording-options.d.ts +5 -0
  269. package/user-manage/src/classes/simplified-user.d.ts +50 -0
  270. package/user-manage/src/classes/table-data.d.ts +5 -0
  271. package/user-manage/src/classes/translation-pattern.d.ts +18 -0
  272. package/user-manage/src/classes/user-list.d.ts +34 -0
  273. package/user-manage/src/common-functions.d.ts +1 -0
  274. package/user-manage/src/device-list/device-list.component.d.ts +11 -0
  275. package/user-manage/src/environments/environment.d.ts +9 -0
  276. package/user-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  277. package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  278. package/user-manage/src/material.module.d.ts +28 -0
  279. package/user-manage/src/notifications/notification.component.d.ts +19 -0
  280. package/user-manage/src/removeKynFromIBM.service.d.ts +8 -0
  281. package/user-manage/src/services/api.service.d.ts +21 -0
  282. package/user-manage/src/services/dns.service.d.ts +14 -0
  283. package/user-manage/src/services/line.service.d.ts +17 -0
  284. package/user-manage/src/services/notification.service.d.ts +18 -0
  285. package/user-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  286. package/user-manage/src/services/site-settings.service.d.ts +9 -0
  287. package/user-manage/src/services/sorting-utils.service.d.ts +26 -0
  288. package/user-manage/src/services/user.service.d.ts +43 -0
  289. package/user-manage/src/services/users-search.service.d.ts +25 -0
  290. package/user-manage/src/services/utils.service.d.ts +9 -0
  291. package/user-manage/src/user-calling/user-calling-extension/user-calling-extension.component.d.ts +24 -0
  292. package/user-manage/src/user-calling/user-calling.component.d.ts +30 -0
  293. package/user-manage/src/user-info/user-info.component.d.ts +9 -0
  294. package/user-manage/src/user-manage-widget.component.d.ts +45 -0
  295. package/user-manage/src/user-manage.module.d.ts +21 -0
  296. package/user-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  297. package/user-manage/src/utils/pagination/pagination.component.d.ts +18 -0
  298. package/users-list/index.d.ts +5 -0
  299. package/users-list/public-api.d.ts +8 -0
  300. package/users-list/src/app.constants.d.ts +36 -0
  301. package/users-list/src/classes/app-location.d.ts +17 -0
  302. package/users-list/src/classes/device.d.ts +224 -0
  303. package/users-list/src/classes/line.d.ts +140 -0
  304. package/users-list/src/classes/move-user.d.ts +85 -0
  305. package/users-list/src/classes/notification.d.ts +18 -0
  306. package/users-list/src/classes/pagination.d.ts +13 -0
  307. package/users-list/src/classes/simlified-user.d.ts +25 -0
  308. package/users-list/src/classes/table-data.d.ts +5 -0
  309. package/users-list/src/classes/user-list.d.ts +36 -0
  310. package/users-list/src/material.module.d.ts +31 -0
  311. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user/device-move-user-wizard.component.d.ts +21 -0
  312. package/users-list/src/move-user-wizard/move-user-stepper/device-move-user-tab/devices-move-user-wizard-tab.component.d.ts +12 -0
  313. package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +55 -0
  314. package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +17 -0
  315. package/users-list/src/services/api-webex.service.d.ts +8 -0
  316. package/users-list/src/services/api.service.d.ts +21 -0
  317. package/users-list/src/services/dns.service.d.ts +18 -0
  318. package/users-list/src/services/events-communication.service.d.ts +8 -0
  319. package/users-list/src/services/move-user.service.d.ts +17 -0
  320. package/users-list/src/services/notification.service.d.ts +18 -0
  321. package/users-list/src/services/removeKynFromIBM.service.d.ts +8 -0
  322. package/users-list/src/services/site-settings.service.d.ts +11 -0
  323. package/users-list/src/services/user.service.d.ts +35 -0
  324. package/users-list/src/services/users-search.service.d.ts +34 -0
  325. package/users-list/src/user-list-confirm-dialog/user-list-confirm-dialog.component.d.ts +20 -0
  326. package/users-list/src/users-list.component.d.ts +60 -0
  327. package/users-list/src/users-list.module.d.ts +18 -0
  328. package/users-list/src/utils/app-loader/app-loader.d.ts +6 -0
  329. package/users-list/src/utils/common-functions.d.ts +2 -0
  330. package/users-list/src/utils/pagination/pagination.component.d.ts +18 -0
  331. package/users-list/src/utils/utils.service.d.ts +9 -0
@@ -0,0 +1,2124 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, ViewEncapsulation, Input, NgModule, ChangeDetectionStrategy, EventEmitter, Output } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import { HttpHeaders, HttpErrorResponse, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
5
+ import { map, catchError } from 'rxjs/operators';
6
+ import { Subject, of, forkJoin, throwError, BehaviorSubject, Observable } from 'rxjs';
7
+ import * as i4 from '@angular/forms';
8
+ import { FormBuilder, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
9
+ import { BrowserModule } from '@angular/platform-browser';
10
+ import * as i5 from '@angular/material/progress-spinner';
11
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
12
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
13
+ import * as i3 from '@angular/common';
14
+ import { CommonModule } from '@angular/common';
15
+ import { MatExpansionModule } from '@angular/material/expansion';
16
+ import { MatDatepickerModule } from '@angular/material/datepicker';
17
+ import { MatAutocompleteModule } from '@angular/material/autocomplete';
18
+ import { MatChipsModule } from '@angular/material/chips';
19
+ import { MatListModule } from '@angular/material/list';
20
+ import { MatSidenavModule } from '@angular/material/sidenav';
21
+ import { MatTreeModule } from '@angular/material/tree';
22
+ import { DragDropModule } from '@angular/cdk/drag-drop';
23
+ import { MatButtonModule } from '@angular/material/button';
24
+ import * as i7$1 from '@angular/material/input';
25
+ import { MatInputModule } from '@angular/material/input';
26
+ import * as i7 from '@angular/material/core';
27
+ import { MatNativeDateModule } from '@angular/material/core';
28
+ import { MatTooltipModule } from '@angular/material/tooltip';
29
+ import * as i6$1 from '@angular/material/form-field';
30
+ import { MatFormFieldModule } from '@angular/material/form-field';
31
+ import { MatStepperModule } from '@angular/material/stepper';
32
+ import * as i8$1 from '@angular/material/tabs';
33
+ import { MatTabsModule } from '@angular/material/tabs';
34
+ import { MatCardModule } from '@angular/material/card';
35
+ import * as i8 from '@angular/material/select';
36
+ import { MatSelectModule } from '@angular/material/select';
37
+ import { MatCheckboxModule } from '@angular/material/checkbox';
38
+ import * as i2 from '@angular/material/slide-toggle';
39
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
40
+ import { MatTableModule } from '@angular/material/table';
41
+ import * as i6 from '@angular/material/paginator';
42
+ import { MatPaginatorModule } from '@angular/material/paginator';
43
+ import * as i5$1 from '@angular/material/divider';
44
+ import { Big } from 'big.js';
45
+
46
+ class APIService {
47
+ constructor(httpClient) {
48
+ this.httpClient = httpClient;
49
+ this.apiUrl = window.location.protocol + '//' + window.location.hostname + '/dcp';
50
+ }
51
+ fetch(url, params, cache) {
52
+ const headers = this.getHeaders(cache);
53
+ params = params || {};
54
+ return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
55
+ }
56
+ post(url, body, params = {}) {
57
+ body = body || null;
58
+ const headers = this.getHeaders();
59
+ return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
60
+ }
61
+ // use when response extended data is necessary:
62
+ postExtended(url, body = null, params = {}, headers = {}) {
63
+ headers = headers || this.getHeaders();
64
+ return this.httpClient.post(this.apiUrl + url, body, {
65
+ headers,
66
+ observe: 'response',
67
+ params: this.prepareEncodedParams(params)
68
+ });
69
+ }
70
+ put(url, body = null, params = {}) {
71
+ const headers = this.getHeaders();
72
+ return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
73
+ }
74
+ delete(url, params = {}) {
75
+ const headers = this.getHeaders();
76
+ return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
77
+ }
78
+ fetchPagination(url, pageSize, pageNumber, additionalParams = {}, cache) {
79
+ const copyAdditionalParams = JSON.parse(JSON.stringify(additionalParams));
80
+ const params = Object.assign(copyAdditionalParams, { size: pageSize.toString(), page: pageNumber.toString() });
81
+ return this.fetch(url, params, cache);
82
+ }
83
+ prepareEncodedParams(params) {
84
+ const result = {};
85
+ if (!params) {
86
+ return {};
87
+ }
88
+ for (const key of Object.keys(params)) {
89
+ if (params[key]) {
90
+ const stringParam = params[key].toString();
91
+ result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
92
+ }
93
+ }
94
+ return result;
95
+ }
96
+ getHeaders(cache) {
97
+ let headers = new HttpHeaders();
98
+ if (cache) {
99
+ headers = headers.append('_Cache', 'true ');
100
+ }
101
+ const token = this.token || this.getParameterByName('token');
102
+ headers = headers.append('Authorization', 'Bearer ' + token);
103
+ return headers;
104
+ }
105
+ getParameterByName(name, url = window.location.href) {
106
+ name = name.replace(/[\[\]]/g, '\\$&');
107
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
108
+ if (!results)
109
+ return null;
110
+ if (!results[2])
111
+ return '';
112
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
113
+ }
114
+ }
115
+ APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
116
+ APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService });
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
118
+ type: Injectable
119
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
120
+
121
+ const API = {
122
+ USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
123
+ UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
124
+ PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
125
+ USER_BY_ID: '/api/provision/:siteId/users/:userId',
126
+ QUICK_USERS_SEARCH: "/api/search/quickusers",
127
+ LOCATION: "/api/provision/options/:siteId/locations",
128
+ USER_LOCALES: "/api/provision/options/:siteId/userlocales",
129
+ USER_PROFILES: "/api/provision/options/:siteId/userprofiles",
130
+ AVAILABLE_DN_IN_RANGES: "/api/sites/:siteId/available-dn-in-ranges",
131
+ DELETE_LINE: "/api/provision/:siteId/deleteLine/:pkid/:token",
132
+ DISASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/deleteLineAssociation/:linePkid/:token",
133
+ CHECK_DELETE_LINE: "/api/provision/:siteId/checklinedeletion",
134
+ ASSOCIATE_LINE: "/api/provision/:siteId/:deviceName/createLineAssociation/:token",
135
+ CHECK_DESTINATION_NUMBER: "/api/provision/:siteId/check-dn",
136
+ UPDATE_LINE_FIELDS: "/api/provision/:siteId/lineFields/:pkid/:token",
137
+ UPDATE_DEVICE_FIELDS: "/api/provision/:siteId/deviceFields/:deviceName/:token"
138
+ };
139
+ const REGEX_PATTERN = {
140
+ EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
141
+ '@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
142
+ '?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
143
+ };
144
+ const PAGINATION_DEFAULTS = {
145
+ SIZE: 10,
146
+ INDEX: 0
147
+ };
148
+ const PAGINATION_SIZE_OPTIONS = [
149
+ 10,
150
+ 50,
151
+ 100,
152
+ 500
153
+ ];
154
+ const CUCS_TO_IGNORE = [
155
+ 189,
156
+ 194,
157
+ 191,
158
+ 190
159
+ ];
160
+ const CUCMS_TO_IGNORE = [
161
+ 249,
162
+ 255,
163
+ 251,
164
+ 250
165
+ ];
166
+ const RECORDING_MEDIA_SOURCE = [
167
+ "Gateway Preferred",
168
+ "Phone Preferred"
169
+ ];
170
+
171
+ const urlMap = {
172
+ locations: API.LOCATION,
173
+ userLocales: API.USER_LOCALES,
174
+ userProfiles: API.USER_PROFILES
175
+ };
176
+ class SiteSettingsService {
177
+ constructor(apiService) {
178
+ this.apiService = apiService;
179
+ }
180
+ getSelectionOptions(siteId, token) {
181
+ if (!siteId) {
182
+ return;
183
+ }
184
+ // @ts-ignore
185
+ const URL = urlMap[token];
186
+ return this.apiService.fetch(URL.replace(':siteId', String(siteId)), null, true)
187
+ // @ts-ignore
188
+ .pipe(map((options) => {
189
+ // @ts-ignore
190
+ this[token] = options ? options.sort() : [];
191
+ // @ts-ignore
192
+ return this[token];
193
+ }));
194
+ }
195
+ }
196
+ SiteSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteSettingsService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
197
+ SiteSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteSettingsService });
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SiteSettingsService, decorators: [{
199
+ type: Injectable
200
+ }], ctorParameters: function () { return [{ type: APIService }]; } });
201
+
202
+ const getSavableData = (model, exclude) => {
203
+ let result = Object.keys(model);
204
+ if (exclude && exclude.length) {
205
+ result = result.filter(key => !exclude.some(item => item === key));
206
+ }
207
+ return result.reduce((result, key) => {
208
+ if (model[key] instanceof Array && model[key].length && model[key][0].getSavableData) {
209
+ result[key] = model[key].map((item) => item.getSavableData());
210
+ }
211
+ else if (model[key] instanceof Object && model[key].getSavableData) {
212
+ result[key] = model[key].getSavableData();
213
+ }
214
+ else {
215
+ result[key] = model[key];
216
+ }
217
+ return result;
218
+ }, {});
219
+ };
220
+
221
+ class LineDirectory {
222
+ constructor(lineDirectory) {
223
+ Object.assign(this, lineDirectory || {});
224
+ // @ts-ignore
225
+ if (this.directoryNumber && this.routePartitionName) {
226
+ this.displayValue = `${this.directoryNumber}/${this.routePartitionName}`;
227
+ }
228
+ this.initForm();
229
+ }
230
+ getSavableData() {
231
+ return getSavableData(this, ['form', 'displayValue', 'templateDirectoryNumber']);
232
+ }
233
+ equal(itemToCompare) {
234
+ return JSON.stringify(this.getSavableData()) === JSON.stringify(itemToCompare.getSavableData());
235
+ }
236
+ initForm() {
237
+ const formBuilder = new FormBuilder();
238
+ const formSettings = {
239
+ directoryNumber: [{ value: this.directoryNumber || '', disabled: true }, [Validators.required]],
240
+ routePartitionName: [{ value: this.routePartitionName || '', disabled: true }]
241
+ };
242
+ this.form = formBuilder.group(formSettings);
243
+ }
244
+ }
245
+
246
+ class LineCallInfoDisplay {
247
+ constructor(lineCallInfoDisplay) {
248
+ Object.assign(this, lineCallInfoDisplay || {});
249
+ }
250
+ getSavableData() {
251
+ return getSavableData(this, ['form']);
252
+ }
253
+ }
254
+
255
+ class TranslationPattern {
256
+ constructor(translationPattern) {
257
+ Object.assign(this, translationPattern || {});
258
+ this.initForm();
259
+ }
260
+ getSavableData() {
261
+ return getSavableData(this, ['form', 'isNewForExistingLine']);
262
+ }
263
+ initForm() {
264
+ const formBuilder = new FormBuilder();
265
+ const formSettings = {
266
+ pattern: [{ value: this.pattern || '' }],
267
+ calledPartyTransformationMask: [{ value: this.calledPartyTransformationMask || '' }]
268
+ };
269
+ this.form = formBuilder.group(formSettings);
270
+ }
271
+ getSiteId() {
272
+ if (this.site && this.site.id != null) {
273
+ return this.site.id;
274
+ }
275
+ if (this.hasMultipleSiteIds()) {
276
+ return this.multipleSitesId.split(',')[0];
277
+ }
278
+ return null;
279
+ }
280
+ hasMultipleSiteIds() {
281
+ return this.hasMultipleSites && !!this.multipleSitesId && this.multipleSitesId.length > 0;
282
+ }
283
+ }
284
+
285
+ class LineAssociation {
286
+ constructor(lineAssociation) {
287
+ this.sharedUsers = [];
288
+ this.sharedDevices = [];
289
+ Object.assign(this, lineAssociation || {});
290
+ if (lineAssociation) {
291
+ this.index = lineAssociation.index || null;
292
+ this.position = lineAssociation.position || null;
293
+ this.e164Mask = lineAssociation.e164Mask || '';
294
+ this.textLabel = lineAssociation.textLabel || '';
295
+ this.displayLabel = lineAssociation.displayLabel || '';
296
+ this.displayLabelAscii = lineAssociation.displayLabelAscii || '';
297
+ this.linePkid = lineAssociation.linePkid || lineAssociation.pkid || '';
298
+ this.maxNumberOfCalls = lineAssociation.maxNumberOfCalls || null;
299
+ this.busyTrigger = lineAssociation.busyTrigger || null;
300
+ this.directoryNumber = new LineDirectory(lineAssociation.directoryNumber);
301
+ this.didPattern = new TranslationPattern(lineAssociation.didPattern);
302
+ this.recordingOption = lineAssociation.recordingOption || RecordingOptions.disabled;
303
+ this.recordingProfile = lineAssociation.recordingProfile || '';
304
+ this.recordingMediaSource = lineAssociation.recordingMediaSource || RECORDING_MEDIA_SOURCE[0];
305
+ this.visualMWI = lineAssociation.visualMWI || '';
306
+ this.audibleMWI = lineAssociation.audibleMWI || '';
307
+ this.ringSetting_idle = lineAssociation.ringSetting_idle || '';
308
+ this.ringSetting_active = lineAssociation.ringSetting_active || '';
309
+ this.pickupAAS_idle = lineAssociation.pickupAAS_idle || '';
310
+ this.pickupAAS_active = lineAssociation.pickupAAS_active || '';
311
+ this.monitorCSS = lineAssociation.monitorCSS || '';
312
+ this.logMissedCall = lineAssociation.logMissedCall || true;
313
+ this.callInfoDisplay = new LineCallInfoDisplay(lineAssociation.callInfoDisplay);
314
+ this.lineLocalId = lineAssociation.lineLocalId || lineAssociation.localId || '';
315
+ this.callingSearchSpace = lineAssociation.callingSearchSpace || '';
316
+ this.ownerUserId = lineAssociation.ownerUserId;
317
+ this.associated = lineAssociation.associated;
318
+ this.alertingName = lineAssociation.alertingName;
319
+ this.description = lineAssociation.description;
320
+ this.patternUsage = lineAssociation.patternUsage;
321
+ this.plarDestinationNumber = lineAssociation.plarDestinationNumber;
322
+ this.prefixDigits = lineAssociation.prefixDigits;
323
+ this.plarDescription = lineAssociation.plarDescription;
324
+ this.plarEnabled = lineAssociation.plarEnabled;
325
+ this.populateWithDid = lineAssociation.populateWithDid;
326
+ }
327
+ this.initForm();
328
+ }
329
+ getSavableData() {
330
+ const excludedFields = ['viewMode', 'form', 'callingSearchSpace', 'plarDestinationNumber', 'prefixDigits', 'plarDescription', 'plarEnabled'];
331
+ return getSavableData(this, excludedFields);
332
+ }
333
+ getDnSavableData() {
334
+ }
335
+ initForm() {
336
+ // TEMP simplified line form
337
+ const formBuilder = new FormBuilder();
338
+ const formSettings = {
339
+ directoryNumber: [this.directoryNumber.directoryNumber || ''],
340
+ };
341
+ this.form = formBuilder.group(formSettings);
342
+ }
343
+ /*initForm(appValidators: ValidationService) {
344
+ const formBuilder = new FormBuilder();
345
+ const formSettings = {
346
+ displayLabel: [this.displayLabel || '', [Validators.maxLength(30), Validators.pattern('[^%&\\[{}|"<>\\]]*')]],
347
+ alertingName: [this.alertingName || ''],
348
+ description: [this.description || ''],
349
+ e164Mask: [this.e164Mask || '', [appValidators.e164MaskLabel]],
350
+ displayLabelAscii: [this.displayLabelAscii || '', [appValidators.displayLabelAscii]],
351
+ textLabel: [this.textLabel || '', [Validators.maxLength(30), Validators.pattern('[^"]*')]],
352
+ maxNumberOfCalls: [this.maxNumberOfCalls || '', [ Validators.min(0)]],
353
+ busyTrigger: [this.busyTrigger || '', [Validators.min(0), Validators.max(this.maxNumberOfCalls || 200)]],
354
+ recordingOption: [this.recordingOption || ''],
355
+ recordingProfile: [this.recordingProfile || '', [appValidators.conditionalRequired('recordingOption',
356
+ [RecordingOptions.auto_enabled, RecordingOptions.selective_enabled])]],
357
+ recordingMediaSource: [this.recordingMediaSource || ''],
358
+ visualMWI: [this.visualMWI || ''],
359
+ audibleMWI: [this.audibleMWI || ''],
360
+ ringSetting_idle: [this.ringSetting_idle || ''],
361
+ ringSetting_active: [this.ringSetting_active || ''],
362
+ pickupAAS_idle: [this.pickupAAS_idle || ''],
363
+ pickupAAS_active: [this.pickupAAS_active || ''],
364
+ monitorCSS: [this.monitorCSS || ''],
365
+ logMissedCall: [this.logMissedCall === 'true'],
366
+ callerName: [this.callInfoDisplay && this.callInfoDisplay.callerName === 'true'],
367
+ callerNumber: [this.callInfoDisplay && this.callInfoDisplay.callerNumber === 'true'],
368
+ redirectedNumber: [this.callInfoDisplay && this.callInfoDisplay.redirectedNumber === 'true'],
369
+ dialedNumber: [this.callInfoDisplay && this.callInfoDisplay.dialedNumber === 'true' ]
370
+ };
371
+ this.form = formBuilder.group(formSettings);
372
+ if (this.directoryNumber) {
373
+ this.form.addControl('directoryNumber', this.directoryNumber.form);
374
+ }
375
+ if (this.didPattern) {
376
+ this.form.addControl('didPattern', this.didPattern.form);
377
+ }
378
+ }*/
379
+ equals(line) {
380
+ if (!line) {
381
+ return false;
382
+ }
383
+ return this.directoryNumber.directoryNumber === line.directoryNumber.directoryNumber &&
384
+ this.directoryNumber.routePartitionName === line.directoryNumber.routePartitionName;
385
+ }
386
+ }
387
+
388
+ class Device {
389
+ constructor(device) {
390
+ var _a;
391
+ this.lineAssociationsHasChanges = false;
392
+ this.plarService = false;
393
+ if (device) {
394
+ this.name = device.name;
395
+ this.pkiid = device.pkiid;
396
+ this.deviceType = device.deviceType;
397
+ this.protocol = device.protocol;
398
+ this.description = device.description;
399
+ this.buttonTemplate = device.buttonTemplate;
400
+ this.softkeyTemplate = device.softkeyTemplate;
401
+ this.devicePoolName = device.devicePoolName;
402
+ this.location = device.location;
403
+ this.firmwareVersion = device.firmwareVersion;
404
+ this.plarService = device.plarService;
405
+ this.callingSearchSpaceName = device.callingSearchSpaceName;
406
+ this.registrationStatus = 'Unknown'; // TEMP for demo
407
+ this.ipAddress = 'None'; // TEMP for demo
408
+ this.lineAssociations = ((_a = device.lineAssociations) === null || _a === void 0 ? void 0 : _a.length) ?
409
+ device.lineAssociations.map((line) => new LineAssociation(line)) : [];
410
+ }
411
+ }
412
+ getSavableData() {
413
+ const excludedFields = ['form'];
414
+ return getSavableData(this, excludedFields);
415
+ }
416
+ }
417
+ var RecordingOptions;
418
+ (function (RecordingOptions) {
419
+ RecordingOptions["disabled"] = "Call Recording Disabled";
420
+ RecordingOptions["auto_enabled"] = "Automatic Call Recording Enabled";
421
+ RecordingOptions["selective_enabled"] = "Selective Call Recording Enabled";
422
+ })(RecordingOptions || (RecordingOptions = {}));
423
+
424
+ class SimplifiedUser {
425
+ constructor(user, isLdap) {
426
+ // isLdap TEMP because of token response issue
427
+ if (user) {
428
+ this.userid = user.userid;
429
+ this.email = user.email;
430
+ this.firstName = user.firstName;
431
+ this.lastName = user.lastName;
432
+ this.siteId = user.siteId;
433
+ this.siteName = user.siteName;
434
+ this.token = user.token;
435
+ this.department = user.department;
436
+ this.manager = user.manager;
437
+ this.associatedPc = user.associatedPc;
438
+ this.digestCredentials = user.digestCredentials;
439
+ this.userProfile = user.userProfile;
440
+ this.enableMobileVoiceAccess = user.enableMobileVoiceAccess;
441
+ this.ldapIntegrated = user.ldapIntegrated || isLdap || false;
442
+ this.userLocale = user.userLocale;
443
+ this.confirmDigestCredentials = user.confirmDigestCredentials;
444
+ this.middleName = user.middleName;
445
+ this.telephoneNumber = user.telephoneNumber;
446
+ this.mobileNumber = user.mobileNumber;
447
+ this.directoryUri = user.directoryUri;
448
+ this.title = user.title;
449
+ this.homeNumber = user.homeNumber;
450
+ this.pagerNumber = user.pagerNumber;
451
+ this.displayName = user.displayName;
452
+ if (user.devices && user.devices.length) {
453
+ this.devices = user.devices.map((device) => new Device(device));
454
+ if (user.lines && user.lines.length) {
455
+ this.devices.forEach(device => {
456
+ if (device && device.lineAssociations && device.lineAssociations.length) {
457
+ device.lineAssociations.forEach(lineAssociation => {
458
+ lineAssociation.callingSearchSpace = this.getLineVal(lineAssociation, user.lines, 'callingSearchSpace');
459
+ lineAssociation.textLabel = lineAssociation.textLabel || this.getLineVal(lineAssociation, user.lines, 'textLabel') || '';
460
+ lineAssociation.alertingName = lineAssociation.alertingName || this.getLineVal(lineAssociation, user.lines, 'alertingName') || '';
461
+ });
462
+ }
463
+ });
464
+ }
465
+ }
466
+ }
467
+ this.initForm();
468
+ }
469
+ getLineVal(lineAssociation, lines, token) {
470
+ const lineForVal = lines.find((line) => line.directoryNumber.directoryNumber === lineAssociation.directoryNumber.directoryNumber);
471
+ return lineForVal && lineForVal[token] || '';
472
+ }
473
+ getUserDetailsSavableData() {
474
+ const excludedFields = ['devices', 'deviceProfiles', 'lines', 'singleNumberReach', 'vmPassword', 'vmUnifiedMessagingAccount', 'alternateExtensions', 'callerInput', 'lineAppearances', 'meetMes', 'webAppPasswordSettings', 'form'];
475
+ return getSavableData(this, excludedFields);
476
+ }
477
+ initForm() {
478
+ const formBuilder = new FormBuilder();
479
+ const formSettings = {
480
+ userid: [{ value: this.userid || '', disabled: this.ldapIntegrated }, [Validators.required, Validators.maxLength(128)]],
481
+ email: [{ value: this.email || '', disabled: this.ldapIntegrated }, [
482
+ Validators.pattern(REGEX_PATTERN.EMAIL),
483
+ Validators.required
484
+ ]],
485
+ firstName: [{ value: this.firstName || '', disabled: this.ldapIntegrated }],
486
+ lastName: [{ value: this.lastName || '', disabled: this.ldapIntegrated }, Validators.required],
487
+ department: [{ value: this.department || '', disabled: false }],
488
+ middleName: [{ value: this.middleName || '', disabled: false }],
489
+ title: [{ value: this.title || '', disabled: false }],
490
+ telephoneNumber: [{ value: this.telephoneNumber || '', disabled: false }],
491
+ homeNumber: [{ value: this.homeNumber || '', disabled: false }],
492
+ mobileNumber: [{ value: this.mobileNumber || '', disabled: false }],
493
+ pagerNumber: [{ value: this.pagerNumber || '', disabled: false }],
494
+ displayName: [{ value: this.displayName || '', disabled: false }],
495
+ manager: [{ value: this.manager || '', disabled: false }],
496
+ associatedPc: [this.associatedPc || ''],
497
+ directoryUri: [this.directoryUri || ''],
498
+ userProfile: [this.userProfile],
499
+ enableMobileVoiceAccess: [this.enableMobileVoiceAccess],
500
+ ldapIntegrated: [this.ldapIntegrated],
501
+ userLocale: [this.userLocale || ''],
502
+ digestCredentials: [''],
503
+ confirmDigestCredentials: ['']
504
+ };
505
+ this.form = formBuilder.group(formSettings);
506
+ }
507
+ toggleEditMode() {
508
+ this.editMode = !this.editMode;
509
+ /*['userid', 'email', 'firstName', 'lastName'].forEach(token => {
510
+ if (this.editMode) {
511
+ this.form.get(token)?.enable();
512
+ } else {
513
+ this.form.get(token)?.disable();
514
+ }
515
+ })*/
516
+ }
517
+ getSavableData() {
518
+ const excludedFields = ['form', 'editMode', 'viewMode', 'token', 'hasModifiedCache', 'confirmDigestCredentials'];
519
+ return getSavableData(this, excludedFields);
520
+ }
521
+ equal(userToCompare) {
522
+ if (!userToCompare) {
523
+ return false;
524
+ }
525
+ return JSON.stringify(this.getSavableData()) === JSON.stringify(userToCompare.getSavableData());
526
+ }
527
+ }
528
+
529
+ class UtilsService {
530
+ static sortSortArrayByProperty(array, sortBy) {
531
+ if (!array) {
532
+ return null;
533
+ }
534
+ return array.sort((a, b) => {
535
+ if (!a[sortBy] && !b[sortBy]) {
536
+ return 0;
537
+ }
538
+ if (a[sortBy] && !b[sortBy]) {
539
+ return 1;
540
+ }
541
+ if (!a[sortBy] && b[sortBy]) {
542
+ return -1;
543
+ }
544
+ const positionA = a[sortBy];
545
+ const positionB = b[sortBy];
546
+ return (positionA < positionB) ? -1 : (positionA > positionB) ? 1 : 0;
547
+ });
548
+ }
549
+ static diff(origObject, updatedObj, path, keysToIgnore) {
550
+ let result = [];
551
+ if (Object.is(origObject, updatedObj)) {
552
+ return undefined;
553
+ }
554
+ if (!updatedObj || typeof updatedObj !== 'object') {
555
+ return updatedObj;
556
+ }
557
+ const concat = Array.from(new Set([...Object.keys(origObject || {}), ...Object.keys(updatedObj || {})]));
558
+ const filter = keysToIgnore ? concat.filter(key => !keysToIgnore.includes(key)) : concat;
559
+ filter
560
+ .forEach(key => {
561
+ if (typeof updatedObj[key] === 'object' && typeof origObject[key] === 'object') {
562
+ if (UtilsService.differs(updatedObj[key], origObject[key])) {
563
+ const newPath = `${path}${path ? '.' : ''}${key}`;
564
+ const values = UtilsService.diff(origObject[key], updatedObj[key], newPath, keysToIgnore);
565
+ if (values !== undefined) {
566
+ result = [...result, ...values];
567
+ }
568
+ }
569
+ }
570
+ else if (updatedObj && !origObject || updatedObj[key] !== origObject[key] && !Object.is(origObject[key], updatedObj[key])) {
571
+ const value = updatedObj ? UtilsService.formatIfEmpty(updatedObj[key]) : null;
572
+ result.push(`${path}${path ? '.' : ''}${key}=${value}`);
573
+ }
574
+ });
575
+ return result;
576
+ }
577
+ static formatIfEmpty(value) {
578
+ if (value) {
579
+ return value;
580
+ }
581
+ switch (typeof value) {
582
+ case 'boolean':
583
+ return value;
584
+ case 'string':
585
+ return '';
586
+ default:
587
+ return null;
588
+ }
589
+ }
590
+ static differs(obj1, obj2) {
591
+ return JSON.stringify(obj1) !== JSON.stringify(obj2);
592
+ }
593
+ }
594
+ UtilsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
595
+ UtilsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService });
596
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsService, decorators: [{
597
+ type: Injectable
598
+ }] });
599
+
600
+ const string_array = function (original, updated, fullKey) {
601
+ if (!updated || !SortingUtilsService.differs(original, updated)) {
602
+ return null;
603
+ }
604
+ return `${fullKey}=${updated.join(',')}`;
605
+ };
606
+ const line_reference = function (original, updated, fullKey) {
607
+ if (!updated || !SortingUtilsService.differs(original, updated)) {
608
+ return null;
609
+ }
610
+ // @ts-ignore
611
+ return Object.keys(updated).map(key => `${fullKey}.${key}=${updated[key]}`);
612
+ };
613
+ const nullable = function (original, updated, fullKey) {
614
+ if (!original && updated) {
615
+ // @ts-ignore
616
+ return Object.keys(updated).map(key => `${fullKey}.${key}=${updated[key]}`);
617
+ }
618
+ else if (original && !updated) {
619
+ return `${fullKey}=null`;
620
+ }
621
+ else {
622
+ return SortingUtilsService.diff(original, updated, fullKey, []);
623
+ }
624
+ };
625
+ class SortingUtilsService {
626
+ static sortDevicesByTypeAndName(array) {
627
+ if (!array) {
628
+ return null;
629
+ }
630
+ return array.sort((a, b) => {
631
+ if (a.deviceType === b.deviceType) {
632
+ return (a.name < b.name) ? -1 : (a.name > b.name) ? 1 : 0;
633
+ }
634
+ else {
635
+ return (a.deviceType < b.deviceType) ? -1 : 1;
636
+ }
637
+ });
638
+ }
639
+ static sortLinesByDirectoryName(array) {
640
+ if (!array) {
641
+ return null;
642
+ }
643
+ return array.sort((a, b) => {
644
+ if (!a.directoryNumber && !b.directoryNumber) {
645
+ return 0;
646
+ }
647
+ if (a.directoryNumber && !b.directoryNumber) {
648
+ return 1;
649
+ }
650
+ if (!a.directoryNumber && b.directoryNumber) {
651
+ return -1;
652
+ }
653
+ const directoryNumberA = a.directoryNumber.directoryNumber;
654
+ const directoryNumberB = b.directoryNumber.directoryNumber;
655
+ return (directoryNumberA < directoryNumberB) ? -1 : (directoryNumberA > directoryNumberB) ? 1 : 0;
656
+ });
657
+ }
658
+ static sortLineAssociationsByPosition(array) {
659
+ if (!array) {
660
+ return null;
661
+ }
662
+ return array.sort((a, b) => {
663
+ if (!a.position && !b.position) {
664
+ return 0;
665
+ }
666
+ if (a.position && !b.position) {
667
+ return 1;
668
+ }
669
+ if (!a.position && b.position) {
670
+ return -1;
671
+ }
672
+ const positionA = a.position;
673
+ const positionB = b.position;
674
+ return (positionA < positionB) ? -1 : (positionA > positionB) ? 1 : 0;
675
+ });
676
+ }
677
+ static sortSortArrayByProperty(array, sortBy) {
678
+ if (!array) {
679
+ return null;
680
+ }
681
+ return array.sort((a, b) => {
682
+ if (!a[sortBy] && !b[sortBy]) {
683
+ return 0;
684
+ }
685
+ if (a[sortBy] && !b[sortBy]) {
686
+ return 1;
687
+ }
688
+ if (!a[sortBy] && b[sortBy]) {
689
+ return -1;
690
+ }
691
+ const positionA = a[sortBy];
692
+ const positionB = b[sortBy];
693
+ return (positionA < positionB) ? -1 : (positionA > positionB) ? 1 : 0;
694
+ });
695
+ }
696
+ static diff(origObject, updatedObj, path, keysToIgnore) {
697
+ let result = [];
698
+ if (Object.is(origObject, updatedObj)) {
699
+ return undefined;
700
+ }
701
+ if (!updatedObj || typeof updatedObj !== 'object') {
702
+ return updatedObj;
703
+ }
704
+ const concat = Array.from(new Set([...Object.keys(origObject || {}), ...Object.keys(updatedObj || {})]));
705
+ const filter = keysToIgnore ? concat.filter(key => !keysToIgnore.includes(key)) : concat;
706
+ filter
707
+ .forEach(key => {
708
+ // @ts-ignore
709
+ if (this.dictionary[key]) {
710
+ // @ts-ignore
711
+ const complexResult = this.dictionary[key](origObject[key], updatedObj[key], `${path}${path ? '.' : ''}${key}`);
712
+ if (complexResult) {
713
+ if (Array.isArray(complexResult)) {
714
+ result = [...result, ...complexResult];
715
+ }
716
+ else {
717
+ result.push(complexResult);
718
+ }
719
+ }
720
+ }
721
+ else if (typeof updatedObj[key] === 'object' && typeof origObject[key] === 'object') {
722
+ if (SortingUtilsService.differs(updatedObj[key], origObject[key])) {
723
+ const newPath = `${path}${path ? '.' : ''}${key}`;
724
+ const values = SortingUtilsService.diff(origObject[key], updatedObj[key], newPath, keysToIgnore);
725
+ if (values !== undefined) {
726
+ result = [...result, ...values];
727
+ }
728
+ }
729
+ }
730
+ else if (updatedObj && !origObject || updatedObj[key] !== origObject[key] && !Object.is(origObject[key], updatedObj[key])) {
731
+ const value = updatedObj ? SortingUtilsService.formatIfEmpty(updatedObj[key]) : null;
732
+ result.push(`${path}${path ? '.' : ''}${key}=${value}`);
733
+ }
734
+ });
735
+ return result;
736
+ }
737
+ static formatIfEmpty(value) {
738
+ if (value) {
739
+ return value;
740
+ }
741
+ switch (typeof value) {
742
+ case 'boolean':
743
+ return value;
744
+ case 'string':
745
+ return '';
746
+ default:
747
+ return null;
748
+ }
749
+ }
750
+ static differs(obj1, obj2) {
751
+ return JSON.stringify(obj1) !== JSON.stringify(obj2);
752
+ }
753
+ }
754
+ SortingUtilsService.dictionary = {
755
+ features: string_array,
756
+ services: string_array,
757
+ directoryNumber: line_reference,
758
+ primaryLineReference: line_reference,
759
+ speedDials: function (original, updated, fullKey) {
760
+ if (!updated || !SortingUtilsService.differs(original, updated)) {
761
+ return null;
762
+ }
763
+ // todo only changes, identification
764
+ let map = [];
765
+ updated.map((speedDial) => {
766
+ const currentFullKey = `${fullKey}.${speedDial.index}`; // ${speedDial.type} CHECk ?
767
+ map = [...map, Object.keys(speedDial).map(key => `${currentFullKey}.${key}=${speedDial[key]}`)];
768
+ });
769
+ return map;
770
+ },
771
+ lineAssociations: function (original, updated, fullKey) {
772
+ if (!updated || !SortingUtilsService.differs(original, updated)) {
773
+ return null;
774
+ }
775
+ let map = [];
776
+ updated.map((lineAssociation) => {
777
+ const currentFullKey = `${fullKey}.${lineAssociation.linePkid ? lineAssociation.linePkid : lineAssociation.lineLocalId}`;
778
+ const originalLineAssociation = original.find(line => line.index === lineAssociation.index);
779
+ if (SortingUtilsService.differs(originalLineAssociation, lineAssociation)) {
780
+ const diff = SortingUtilsService.diff(originalLineAssociation, lineAssociation, currentFullKey, []);
781
+ map = [...map, ...diff];
782
+ }
783
+ });
784
+ return map;
785
+ },
786
+ enterpriseAltNum: nullable,
787
+ e164AltNum: nullable
788
+ };
789
+ SortingUtilsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SortingUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
790
+ SortingUtilsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SortingUtilsService });
791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SortingUtilsService, decorators: [{
792
+ type: Injectable
793
+ }] });
794
+
795
+ class LineService {
796
+ generateLineAssociationFromLine(lineAssociation) {
797
+ return {
798
+ directoryNumber: lineAssociation ? this.generateLineDirectory(lineAssociation) : null,
799
+ didPattern: lineAssociation ? this.generateDidPatternForLineAssociation(lineAssociation) : null,
800
+ mappedDids: lineAssociation ? '' : 'null',
801
+ index: lineAssociation ? lineAssociation.index : null,
802
+ position: lineAssociation ? lineAssociation.position : null,
803
+ textLabel: lineAssociation ? lineAssociation.textLabel : null,
804
+ // displayLabel: lineAssociation ? lineAssociation.displayLabel : 'null',
805
+ alertingName: lineAssociation ? lineAssociation.alertingName : null,
806
+ callerNumber: lineAssociation ? '' : 'null'
807
+ };
808
+ }
809
+ generateLineDirectory(lineAssociation) {
810
+ return {
811
+ directoryNumber: lineAssociation.directoryNumber.directoryNumber,
812
+ routePartitionName: lineAssociation.directoryNumber.routePartitionName,
813
+ };
814
+ }
815
+ generateDidPatternForLineAssociation(lineAssociation) {
816
+ return {
817
+ calledPartyTransformationMask: lineAssociation.directoryNumber && lineAssociation.directoryNumber.directoryNumber
818
+ };
819
+ }
820
+ }
821
+ LineService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LineService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
822
+ LineService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LineService });
823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LineService, decorators: [{
824
+ type: Injectable
825
+ }] });
826
+
827
+ class UserService {
828
+ get lineAssociation() {
829
+ return this.user && this.originUser.devices && this.user.devices[0] && this.user.devices[0].lineAssociations && this.user.devices[0].lineAssociations[0];
830
+ }
831
+ get originLineAssociation() {
832
+ return this.originUser && this.originUser.devices && this.originUser.devices[0] && this.originUser.devices[0].lineAssociations && this.originUser.devices[0].lineAssociations[0];
833
+ }
834
+ constructor(apiService, lineService) {
835
+ this.apiService = apiService;
836
+ this.lineService = lineService;
837
+ this.siteId = -1;
838
+ this.userId = '';
839
+ this.dataPending = false;
840
+ this.userIdExistPending = false;
841
+ this.hasExistedUserId = false;
842
+ this.onUserLineSaved$ = new Subject();
843
+ }
844
+ ngOnInit() {
845
+ console.log(this.siteId);
846
+ }
847
+ fetchUserToken(siteId, userId, isLdap, isSetNewTokenOnly) {
848
+ // isLdap TEMP because of token response issue
849
+ this.siteId = siteId;
850
+ this.userId = userId;
851
+ return this.apiService.fetch(API.USER_TOKEN.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(userId))))
852
+ .pipe(map((result) => {
853
+ const user = result && Object.values(result)[0];
854
+ const token = Object.keys(result)[0];
855
+ if (user) {
856
+ if (!isSetNewTokenOnly) {
857
+ this.setSimplifiedUser(user);
858
+ this.user.token = user.token;
859
+ }
860
+ this.user.token = user.token || token;
861
+ this.originUser.token = user.token || token;
862
+ }
863
+ }));
864
+ // .pipe(this.handleError(false, true));
865
+ }
866
+ updateUserFields(body) {
867
+ if (!this.siteId) {
868
+ return;
869
+ }
870
+ return this.apiService.post(API.UPDATE_USER_FIELDS.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), body);
871
+ // .pipe(this.handleError(false, true));
872
+ }
873
+ fetchUserById(id) {
874
+ this.userIdExistPending = true;
875
+ return this.apiService.fetch(API.USER_BY_ID.replace(':siteId', String(this.siteId)).replace(':userId', encodeURIComponent(encodeURIComponent(id))))
876
+ .pipe(map(result => {
877
+ this.userIdExistPending = false;
878
+ return result;
879
+ }));
880
+ }
881
+ persistCacheChanges() {
882
+ /*const params = {
883
+ excludeDeviceExtraOptions: true
884
+ };*/
885
+ return this.processUserChangesToCache()
886
+ .pipe(map((result) => {
887
+ return this.apiService.post(API.PERSIST_USER_CACHE.replace(':siteId', String(this.siteId)).replace(':token', this.user.token), {})
888
+ .subscribe(() => {
889
+ });
890
+ // .pipe(map((user) => {
891
+ // // this.setUser(user, false, this.user.token);
892
+ // this.user.hasModifiedCache = false;
893
+ // }))
894
+ // .pipe(this.handleError(true, true));
895
+ }));
896
+ }
897
+ processUserChangesToCache() {
898
+ const calls = [];
899
+ const body = UtilsService.diff(this.originUser.getUserDetailsSavableData(), this.user.getUserDetailsSavableData(), 'user');
900
+ if (body === null || body === void 0 ? void 0 : body.length) {
901
+ calls.push(this.updateUserFields(body));
902
+ }
903
+ if (!(calls === null || calls === void 0 ? void 0 : calls.length)) {
904
+ return of(this.user);
905
+ }
906
+ return forkJoin(calls)
907
+ .pipe(map((responses) => {
908
+ // ApiUserResponse
909
+ this.handleSaveUserResponse(responses);
910
+ }));
911
+ // .pipe(this.handleError(false, true));
912
+ }
913
+ saveNewLine() {
914
+ this.dataPending = true;
915
+ this.deleteLine(this.user.siteId, this.lineAssociation.linePkid, encodeURIComponent(this.user.token))
916
+ .subscribe(() => {
917
+ const URL = API.PERSIST_USER_CACHE.replace(':siteId', String(this.siteId)).replace(':token', this.user.token);
918
+ this.apiService.post(URL, {})
919
+ .subscribe(() => {
920
+ this.fetchUserToken(this.siteId, this.user.userid, false, true)
921
+ .subscribe(() => {
922
+ this.runNewLineCreation();
923
+ });
924
+ });
925
+ });
926
+ }
927
+ runNewLineCreation() {
928
+ // CREATE NEW LINE
929
+ const newLineBody = SortingUtilsService.diff(this.lineService.generateLineAssociationFromLine(null), this.lineService.generateLineAssociationFromLine(this.lineAssociation), 'device.lineAssociations', null);
930
+ this.associateLineToUserDevice(this.user.siteId, this.user.devices[0].name, newLineBody, null, this.lineAssociation.callingSearchSpace).subscribe((response) => {
931
+ var _a;
932
+ if (response && response.currentUpdatedUser) {
933
+ const linePkId = this.getLinePkIdFromUser(response === null || response === void 0 ? void 0 : response.currentUpdatedUser, 0);
934
+ forkJoin([
935
+ this.updateLineFields(this.siteId, linePkId, this.user.token, this.lineAssociation.alertingName),
936
+ this.updateDeviceFields(this.siteId, (_a = this.user.devices[0]) === null || _a === void 0 ? void 0 : _a.name, this.user.token)
937
+ ]).subscribe((response) => {
938
+ this.originUser.devices[0].lineAssociations[0].directoryNumber.directoryNumber = this.lineAssociation.directoryNumber.directoryNumber;
939
+ this.onUserLineSaved$.next(true);
940
+ });
941
+ }
942
+ });
943
+ // -----
944
+ }
945
+ getLinePkIdFromUser(user, index) {
946
+ if (user.devices && user.devices[index] && user.devices[index].lineAssociations && user.devices[index].lineAssociations[index]) {
947
+ return user.devices[index].lineAssociations[index].linePkid || user.devices[index].lineAssociations[index].lineLocalId;
948
+ }
949
+ }
950
+ deleteLine(siteId, pkid, token) {
951
+ return this.apiService.delete(API.DELETE_LINE.replace(':siteId', String(siteId)).replace(':pkid', pkid).replace(':token', encodeURIComponent(token)), {});
952
+ // .pipe(this.handleError(true, false));
953
+ }
954
+ disassociateLine(siteId, linePkid, token, deviceName) {
955
+ return this.apiService.delete(API.DISASSOCIATE_LINE.replace(':siteId', String(siteId))
956
+ .replace(':linePkid', linePkid)
957
+ .replace(':deviceName', deviceName)
958
+ .replace(':token', encodeURIComponent(token)), {});
959
+ // .pipe(this.handleError(true, false));
960
+ }
961
+ updateLineFields(siteId, pkid, token, alertingName) {
962
+ const body = ['line.description=', `line.alertingName=${alertingName}`];
963
+ return this.apiService.post(API.UPDATE_LINE_FIELDS.replace(':siteId', String(siteId)).replace(':pkid', encodeURIComponent(pkid)).replace(':token', encodeURIComponent(token)), body);
964
+ // .pipe(this.handleError(true, false));
965
+ }
966
+ updateDeviceFields(siteId, deviceName, token) {
967
+ const body = ['device.associatedDNs.0=null'];
968
+ return this.apiService.post(API.UPDATE_DEVICE_FIELDS.replace(':siteId', String(siteId)).replace(':deviceName', deviceName).replace(':token', encodeURIComponent(token)), body);
969
+ // .pipe(this.handleError(true, false));
970
+ }
971
+ checkDestinationNumber(siteId, directoryNumber, routePartitionName) {
972
+ const params = {
973
+ dntype: 'EXTENSION'
974
+ };
975
+ const body = {
976
+ directoryNumber: directoryNumber,
977
+ routePartitionName: routePartitionName
978
+ };
979
+ return this.apiService.post(API.CHECK_DESTINATION_NUMBER.replace(':siteId', siteId), body, params);
980
+ }
981
+ associateLineToUserDevice(siteId, deviceName, body, pkid, css) {
982
+ let params = {};
983
+ if (pkid) {
984
+ params = { linePkid: pkid };
985
+ }
986
+ if (css) {
987
+ // @ts-ignore
988
+ params['css'] = css;
989
+ }
990
+ return this.apiService.post(API.ASSOCIATE_LINE.replace(':siteId', String(siteId)).replace(':deviceName', deviceName)
991
+ .replace(':token', encodeURIComponent(this.user.token)), body, params);
992
+ // .pipe(this.handleError(true, true));
993
+ }
994
+ hasUnsavedChanges() {
995
+ if (this.user && this.originUser) {
996
+ return !this.user.equal(this.originUser);
997
+ }
998
+ return false;
999
+ }
1000
+ setSimplifiedUser(user, isLdap) {
1001
+ // isLdap TEMP because of token response issue
1002
+ this.user = new SimplifiedUser(user, isLdap);
1003
+ const copiedUser = JSON.parse(JSON.stringify(user));
1004
+ this.originUser = new SimplifiedUser(copiedUser, isLdap);
1005
+ }
1006
+ handleSaveUserResponse(responses) {
1007
+ if (!(responses === null || responses === void 0 ? void 0 : responses.length)) {
1008
+ return;
1009
+ }
1010
+ for (let len = responses.length, i = len - 1; i >= 0; i--) {
1011
+ if (responses[i] && responses[i].currentUpdatedUser) {
1012
+ // this.setUser(responses[i].currentUpdatedUser, false, this.user.token);
1013
+ this.user.hasModifiedCache = true;
1014
+ return;
1015
+ }
1016
+ }
1017
+ }
1018
+ }
1019
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService, deps: [{ token: APIService }, { token: LineService }], target: i0.ɵɵFactoryTarget.Injectable });
1020
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService });
1021
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserService, decorators: [{
1022
+ type: Injectable
1023
+ }], ctorParameters: function () { return [{ type: APIService }, { type: LineService }]; } });
1024
+
1025
+ class AppLoaderComponent {
1026
+ constructor() {
1027
+ }
1028
+ }
1029
+ AppLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1030
+ 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: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], encapsulation: i0.ViewEncapsulation.None });
1031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, decorators: [{
1032
+ type: Component,
1033
+ 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"] }]
1034
+ }], ctorParameters: function () { return []; } });
1035
+
1036
+ class AuthInterceptor {
1037
+ constructor() {
1038
+ }
1039
+ intercept(request, next) {
1040
+ request = request.clone({
1041
+ setHeaders: {
1042
+ // Authorization: basicAuthHeaderString
1043
+ },
1044
+ withCredentials: true
1045
+ });
1046
+ return next.handle(request).pipe(catchError(err => {
1047
+ if (err instanceof HttpErrorResponse) {
1048
+ if (err.status === 401) {
1049
+ if (window.history.length < 3) {
1050
+ err.error.message = '';
1051
+ }
1052
+ else {
1053
+ err.error.message = 'SESSION_INACTIVE';
1054
+ }
1055
+ }
1056
+ }
1057
+ return throwError(err);
1058
+ }));
1059
+ }
1060
+ }
1061
+ AuthInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1062
+ AuthInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthInterceptor });
1063
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthInterceptor, decorators: [{
1064
+ type: Injectable
1065
+ }], ctorParameters: function () { return []; } });
1066
+
1067
+ class UserInfoComponent {
1068
+ }
1069
+ UserInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1070
+ UserInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserInfoComponent, selector: "app-user-info", inputs: { name: "name", active: "active", email: "email", position: "position" }, ngImport: i0, template: "<div class=\"info-holder\">\r\n <div class=\"content-box flex-box\">\r\n <div class=\"info-holder__user-image\">\r\n <img src=\"../../../assets/a24749b225874bb3e3a4cb5d2f42e82c.png\" alt=\"\" class=\"avatar\">\r\n </div>\r\n <div class=\"info-holder__user-information\">\r\n <div class=\"info-holder__user-name\">{{name}}</div>\r\n <div class=\"info-holder__user-breadcrumbs\">\r\n <div class=\"is-active\" *ngIf=\"active; else notActive\">\r\n <span class=\"icon-user-status icon-user-status-active\"></span>Active\r\n </div>\r\n <div class=\"icon-separator\"></div>\r\n <div class=\"email\">{{email}}</div>\r\n <div class=\"icon-separator\"></div>\r\n <div class=\"position\">{{position}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n\r\n<ng-template #notActive>\r\n <div class=\"is-active\">\r\n <svg width=\"8\" height=\"9\" viewBox=\"0 0 8 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 8.5C6.20914 8.5 8 6.70914 8 4.5C8 2.29086 6.20914 0.5 4 0.5C1.79086 0.5 0 2.29086 0 4.5C0 6.70914 1.79086 8.5 4 8.5Z\" fill=\"grey\"/>\r\n </svg>\r\n <div>Not active</div>\r\n </div>\r\n</ng-template>\r\n", styles: [".info-holder{display:flex;gap:16px;align-items:center;font-family:Inter,sans-serif;height:102px;width:100%;background:white;margin:0 0 30px}.info-holder__user-image img{width:40px;border-radius:120px;margin:20px 0 0}.info-holder__user-information{padding:10px;margin:10px;gap:10px;display:flex;flex-direction:column}.info-holder__user-name{font-size:20px;font-weight:500}.info-holder__user-breadcrumbs{display:flex;gap:8px;font-weight:400;font-size:14px;color:#000000b3;align-items:center}.info-holder .icon-separator{height:5px;width:5px;background-color:#000000b3;border-radius:50%}.info-holder .is-active{display:flex;gap:8px;align-items:center}.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}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1071
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserInfoComponent, decorators: [{
1072
+ type: Component,
1073
+ args: [{ selector: 'app-user-info', template: "<div class=\"info-holder\">\r\n <div class=\"content-box flex-box\">\r\n <div class=\"info-holder__user-image\">\r\n <img src=\"../../../assets/a24749b225874bb3e3a4cb5d2f42e82c.png\" alt=\"\" class=\"avatar\">\r\n </div>\r\n <div class=\"info-holder__user-information\">\r\n <div class=\"info-holder__user-name\">{{name}}</div>\r\n <div class=\"info-holder__user-breadcrumbs\">\r\n <div class=\"is-active\" *ngIf=\"active; else notActive\">\r\n <span class=\"icon-user-status icon-user-status-active\"></span>Active\r\n </div>\r\n <div class=\"icon-separator\"></div>\r\n <div class=\"email\">{{email}}</div>\r\n <div class=\"icon-separator\"></div>\r\n <div class=\"position\">{{position}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n\r\n<ng-template #notActive>\r\n <div class=\"is-active\">\r\n <svg width=\"8\" height=\"9\" viewBox=\"0 0 8 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 8.5C6.20914 8.5 8 6.70914 8 4.5C8 2.29086 6.20914 0.5 4 0.5C1.79086 0.5 0 2.29086 0 4.5C0 6.70914 1.79086 8.5 4 8.5Z\" fill=\"grey\"/>\r\n </svg>\r\n <div>Not active</div>\r\n </div>\r\n</ng-template>\r\n", styles: [".info-holder{display:flex;gap:16px;align-items:center;font-family:Inter,sans-serif;height:102px;width:100%;background:white;margin:0 0 30px}.info-holder__user-image img{width:40px;border-radius:120px;margin:20px 0 0}.info-holder__user-information{padding:10px;margin:10px;gap:10px;display:flex;flex-direction:column}.info-holder__user-name{font-size:20px;font-weight:500}.info-holder__user-breadcrumbs{display:flex;gap:8px;font-weight:400;font-size:14px;color:#000000b3;align-items:center}.info-holder .icon-separator{height:5px;width:5px;background-color:#000000b3;border-radius:50%}.info-holder .is-active{display:flex;gap:8px;align-items:center}.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}\n"] }]
1074
+ }], propDecorators: { name: [{
1075
+ type: Input
1076
+ }], active: [{
1077
+ type: Input
1078
+ }], email: [{
1079
+ type: Input
1080
+ }], position: [{
1081
+ type: Input
1082
+ }] } });
1083
+
1084
+ class MaterialModule {
1085
+ }
1086
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1087
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
1088
+ MatButtonModule,
1089
+ MatListModule,
1090
+ MatProgressSpinnerModule,
1091
+ MatExpansionModule,
1092
+ MatInputModule,
1093
+ MatInputModule,
1094
+ MatListModule,
1095
+ MatTreeModule,
1096
+ MatTreeModule,
1097
+ MatNativeDateModule,
1098
+ MatDatepickerModule,
1099
+ MatTooltipModule,
1100
+ MatAutocompleteModule,
1101
+ MatChipsModule,
1102
+ MatSidenavModule,
1103
+ MatFormFieldModule,
1104
+ MatStepperModule,
1105
+ MatTabsModule,
1106
+ MatCardModule,
1107
+ MatSelectModule,
1108
+ MatCheckboxModule,
1109
+ MatSlideToggleModule,
1110
+ MatTableModule,
1111
+ MatPaginatorModule], exports: [DragDropModule,
1112
+ MatButtonModule,
1113
+ MatListModule,
1114
+ MatProgressSpinnerModule,
1115
+ MatExpansionModule,
1116
+ MatInputModule,
1117
+ MatInputModule,
1118
+ MatListModule,
1119
+ MatTreeModule,
1120
+ MatTreeModule,
1121
+ MatNativeDateModule,
1122
+ MatDatepickerModule,
1123
+ MatTooltipModule,
1124
+ MatAutocompleteModule,
1125
+ MatChipsModule,
1126
+ MatSidenavModule,
1127
+ MatFormFieldModule,
1128
+ MatStepperModule,
1129
+ MatTabsModule,
1130
+ MatCardModule,
1131
+ MatCheckboxModule,
1132
+ MatSelectModule,
1133
+ MatSlideToggleModule,
1134
+ MatProgressSpinnerModule,
1135
+ MatTableModule,
1136
+ MatPaginatorModule] });
1137
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [DragDropModule,
1138
+ MatButtonModule,
1139
+ MatListModule,
1140
+ MatProgressSpinnerModule,
1141
+ MatExpansionModule,
1142
+ MatInputModule,
1143
+ MatInputModule,
1144
+ MatListModule,
1145
+ MatTreeModule,
1146
+ MatTreeModule,
1147
+ MatNativeDateModule,
1148
+ MatDatepickerModule,
1149
+ MatTooltipModule,
1150
+ MatAutocompleteModule,
1151
+ MatChipsModule,
1152
+ MatSidenavModule,
1153
+ MatFormFieldModule,
1154
+ MatStepperModule,
1155
+ MatTabsModule,
1156
+ MatCardModule,
1157
+ MatSelectModule,
1158
+ MatCheckboxModule,
1159
+ MatSlideToggleModule,
1160
+ MatTableModule,
1161
+ MatPaginatorModule, DragDropModule,
1162
+ MatButtonModule,
1163
+ MatListModule,
1164
+ MatProgressSpinnerModule,
1165
+ MatExpansionModule,
1166
+ MatInputModule,
1167
+ MatInputModule,
1168
+ MatListModule,
1169
+ MatTreeModule,
1170
+ MatTreeModule,
1171
+ MatNativeDateModule,
1172
+ MatDatepickerModule,
1173
+ MatTooltipModule,
1174
+ MatAutocompleteModule,
1175
+ MatChipsModule,
1176
+ MatSidenavModule,
1177
+ MatFormFieldModule,
1178
+ MatStepperModule,
1179
+ MatTabsModule,
1180
+ MatCardModule,
1181
+ MatCheckboxModule,
1182
+ MatSelectModule,
1183
+ MatSlideToggleModule,
1184
+ MatProgressSpinnerModule,
1185
+ MatTableModule,
1186
+ MatPaginatorModule] });
1187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
1188
+ type: NgModule,
1189
+ args: [{
1190
+ imports: [
1191
+ DragDropModule,
1192
+ MatButtonModule,
1193
+ MatListModule,
1194
+ MatProgressSpinnerModule,
1195
+ MatExpansionModule,
1196
+ MatInputModule,
1197
+ MatInputModule,
1198
+ MatListModule,
1199
+ MatTreeModule,
1200
+ MatTreeModule,
1201
+ MatNativeDateModule,
1202
+ MatDatepickerModule,
1203
+ MatTooltipModule,
1204
+ MatAutocompleteModule,
1205
+ MatChipsModule,
1206
+ MatSidenavModule,
1207
+ MatFormFieldModule,
1208
+ MatStepperModule,
1209
+ MatTabsModule,
1210
+ MatCardModule,
1211
+ MatSelectModule,
1212
+ MatCheckboxModule,
1213
+ MatSlideToggleModule,
1214
+ MatTableModule,
1215
+ MatPaginatorModule
1216
+ ],
1217
+ exports: [
1218
+ DragDropModule,
1219
+ MatButtonModule,
1220
+ MatListModule,
1221
+ MatProgressSpinnerModule,
1222
+ MatExpansionModule,
1223
+ MatInputModule,
1224
+ MatInputModule,
1225
+ MatListModule,
1226
+ MatTreeModule,
1227
+ MatTreeModule,
1228
+ MatNativeDateModule,
1229
+ MatDatepickerModule,
1230
+ MatTooltipModule,
1231
+ MatAutocompleteModule,
1232
+ MatChipsModule,
1233
+ MatSidenavModule,
1234
+ MatFormFieldModule,
1235
+ MatStepperModule,
1236
+ MatTabsModule,
1237
+ MatCardModule,
1238
+ MatCheckboxModule,
1239
+ MatSelectModule,
1240
+ MatSlideToggleModule,
1241
+ MatProgressSpinnerModule,
1242
+ MatTableModule,
1243
+ MatPaginatorModule
1244
+ ],
1245
+ }]
1246
+ }] });
1247
+
1248
+ const environment = {
1249
+ production: false,
1250
+ // apiUrl: 'http://localhost:4200',
1251
+ apiUrl: 'http://192.168.0.191:8080',
1252
+ notificationsLifetime: 30000,
1253
+ longNotificationsLifetime: 45000,
1254
+ cashCleanTimer: 900000,
1255
+ cashArrayLength: 10000,
1256
+ matomoUrl: 'http://192.168.0.136/matomo/',
1257
+ };
1258
+
1259
+ const TTL_DEFAULT = environment.notificationsLifetime;
1260
+ const TTL_LONG_DEFAULT = environment.longNotificationsLifetime;
1261
+ var NotificationType;
1262
+ (function (NotificationType) {
1263
+ NotificationType["info"] = "info";
1264
+ NotificationType["error"] = "error";
1265
+ NotificationType["success"] = "success";
1266
+ NotificationType["warning"] = "warning";
1267
+ })(NotificationType || (NotificationType = {}));
1268
+ class Notification {
1269
+ constructor(data) {
1270
+ this.ttl = TTL_DEFAULT;
1271
+ Object.assign(this, data || {});
1272
+ if (this.ttl === undefined) {
1273
+ this.ttl = this.message && this.message.length && this.message.length < 80 ? TTL_DEFAULT : TTL_LONG_DEFAULT;
1274
+ }
1275
+ }
1276
+ isInfo() {
1277
+ return this.type === NotificationType.info;
1278
+ }
1279
+ isError() {
1280
+ return this.type === NotificationType.error;
1281
+ }
1282
+ isSuccess() {
1283
+ return this.type === NotificationType.success;
1284
+ }
1285
+ isWarning() {
1286
+ return this.type === NotificationType.warning;
1287
+ }
1288
+ }
1289
+
1290
+ const SUCCESS_TIME = 5000;
1291
+ const INACTIVE_SESSION_MESSAGE = 'Your session was lost due to inactivity. Please login again';
1292
+ const INACTIVE_SESSION = 'SESSION_INACTIVE';
1293
+ class NotificationService {
1294
+ constructor() {
1295
+ this.listChange = new Subject();
1296
+ this.max = 0;
1297
+ this.list = [];
1298
+ }
1299
+ error(message, ttl) {
1300
+ this.notify('error', message, ttl);
1301
+ }
1302
+ success(message, ttl) {
1303
+ this.notify('success', message, (!ttl) ? SUCCESS_TIME : ttl);
1304
+ }
1305
+ warning(message, ttl) {
1306
+ this.notify('warning', message, ttl);
1307
+ }
1308
+ info(message, ttl) {
1309
+ this.notify('info', message, ttl);
1310
+ }
1311
+ notify(type, message, ttl) {
1312
+ const found = this.list.find((n) => n.message === message);
1313
+ if (found) {
1314
+ this.remove(found);
1315
+ }
1316
+ const notification = new Notification({
1317
+ id: ++this.max,
1318
+ type, message, ttl
1319
+ });
1320
+ if (notification.ttl > 0) {
1321
+ notification.timerId = setTimeout(() => this.remove(notification, true), notification.ttl);
1322
+ }
1323
+ this.list.push(notification);
1324
+ this.listChange.next(this.list);
1325
+ }
1326
+ remove(notification, auto) {
1327
+ if (!auto && notification.timerId) {
1328
+ // clear timeout in case of manual remove
1329
+ clearInterval(notification.timerId);
1330
+ }
1331
+ this.list = this.list.filter(n => n.id !== notification.id);
1332
+ this.listChange.next(this.list);
1333
+ }
1334
+ removeInactiveSessionError() {
1335
+ if (!this.list || !this.list.length) {
1336
+ return;
1337
+ }
1338
+ this.list = this.list.filter(n => n.message !== INACTIVE_SESSION_MESSAGE && n.message !== INACTIVE_SESSION);
1339
+ this.listChange.next(this.list);
1340
+ }
1341
+ }
1342
+ NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1343
+ NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService });
1344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, decorators: [{
1345
+ type: Injectable
1346
+ }], ctorParameters: function () { return []; } });
1347
+
1348
+ class NotificationsComponent {
1349
+ constructor(notificationService, ref) {
1350
+ this.notificationService = notificationService;
1351
+ this.ref = ref;
1352
+ }
1353
+ ngOnInit() {
1354
+ this.listChangeSubscribe();
1355
+ }
1356
+ ngOnDestroy() {
1357
+ this.listSubscription.unsubscribe();
1358
+ }
1359
+ readMore() {
1360
+ this.isReadMore = !this.isReadMore;
1361
+ }
1362
+ removeNotification(notification) {
1363
+ this.notificationService.remove(notification);
1364
+ }
1365
+ listChangeSubscribe() {
1366
+ this.listSubscription = this.notificationService.listChange
1367
+ .subscribe((list) => {
1368
+ this.list = list;
1369
+ this.ref.detectChanges();
1370
+ });
1371
+ }
1372
+ }
1373
+ NotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationsComponent, deps: [{ token: NotificationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1374
+ NotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NotificationsComponent, selector: "app-notification", ngImport: i0, template: "<!--\r\n\r\n<div class=\"notification-block\" role=\"alert\" aria-live=\"assertive\">\r\n <div class=\"notification\"\r\n *ngFor=\"let notification of list\"\r\n [ngClass]=\"{'error': notification.isError(), 'success': notification.isSuccess()}\">\r\n\r\n <div class=\"flex-box\">\r\n <div class=\"notification-icons-block\">\r\n <i *ngIf=\"notification.isError()\" class=\"fa fa-exclamation-triangle\"></i>\r\n <i *ngIf=\"notification.isWarning()\" class=\"fa fa-hand-paper-o\"></i>\r\n <i *ngIf=\"notification.isSuccess()\" class=\"fa fa-check\"></i>\r\n <i *ngIf=\"notification.isInfo()\" class=\"fa fa-info-circle\"></i>\r\n </div>\r\n <div *ngIf=\"!isReadMore\" class=\"message-block\">\r\n {{notification.message | truncate:[93]}}\r\n </div>\r\n <div *ngIf=\"isReadMore\" class=\"message-block\">\r\n {{notification.message}}\r\n </div>\r\n </div>\r\n <div class=\"read-more-error link clickable\" *ngIf=\"notification.message && notification.message.length > 93\"\r\n (click)=\"readMore()\">{{(isReadMore ? 'BUTTON.COLLAPSE' : 'BUTTON.READ_MORE') | translate}}</div>\r\n <button\r\n class=\"close\"\r\n mat-icon-button\r\n matTooltip=\"{{'BUTTON.CLOSE' | translate}} {{'NOTIFICATION_MSG.' + notification.type | translate}} {{'NOTIFICATION_MSG.NOTI' | translate}}\"\r\n (click)=\"removeNotification(notification)\">\r\n <img class=\"notification-icon-close\" src=\"assets/icons/close_icon_modal.svg\" alt=\"\">\r\n </button>\r\n </div>\r\n</div>\r\n-->\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";.notification-block{right:0;top:110px;position:absolute;width:20%;z-index:100}.notification-block .read-more-error{margin:10px 13px 3px 0;text-align:right}.notification-block .notification{padding:15px 0 10px;margin-bottom:18px;color:#333;border-radius:3px;border-top:1.5px solid #e5e1cd;background:#fcf8e3;box-shadow:0 8px 12px #091e4226,0 0 1px #091e424f;width:368px;position:relative}.notification-block .notification .notification-icons-block{text-align:center;width:56px}.notification-block .notification .message-block{font-size:14px;font-family:Poppins,Poppins,sans-serif!important;word-break:break-word;width:270px}.notification-block .notification .notification-icon-close{height:24px}.notification-block .notification.error{background:#FFE9E9;border-top:1.5px solid #E16D6D}.notification-block .notification.success{background:#e3f4dc;border-top:1.5px solid #b3d692}.notification-block .notification .fa-exclamation-triangle{color:#e16d6d!important}.notification-block .notification .fa-check{color:#a0c37f!important}.notification-block .notification .fa-info-circle,.notification-block .notification .fa-hand-paper-o{color:#bdb89e!important}.notification-block .notification .fa{font-size:20px}.notification-block .notification .close{position:absolute;top:2px;right:-5px}.notification-block .notification .close .fa{font-size:14px}.notification-block .notification .fa{margin:0;color:inherit}@media screen and (max-width: 600px){.notification-block{width:50%;min-width:150px}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationsComponent, decorators: [{
1376
+ type: Component,
1377
+ args: [{ selector: 'app-notification', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\r\n\r\n<div class=\"notification-block\" role=\"alert\" aria-live=\"assertive\">\r\n <div class=\"notification\"\r\n *ngFor=\"let notification of list\"\r\n [ngClass]=\"{'error': notification.isError(), 'success': notification.isSuccess()}\">\r\n\r\n <div class=\"flex-box\">\r\n <div class=\"notification-icons-block\">\r\n <i *ngIf=\"notification.isError()\" class=\"fa fa-exclamation-triangle\"></i>\r\n <i *ngIf=\"notification.isWarning()\" class=\"fa fa-hand-paper-o\"></i>\r\n <i *ngIf=\"notification.isSuccess()\" class=\"fa fa-check\"></i>\r\n <i *ngIf=\"notification.isInfo()\" class=\"fa fa-info-circle\"></i>\r\n </div>\r\n <div *ngIf=\"!isReadMore\" class=\"message-block\">\r\n {{notification.message | truncate:[93]}}\r\n </div>\r\n <div *ngIf=\"isReadMore\" class=\"message-block\">\r\n {{notification.message}}\r\n </div>\r\n </div>\r\n <div class=\"read-more-error link clickable\" *ngIf=\"notification.message && notification.message.length > 93\"\r\n (click)=\"readMore()\">{{(isReadMore ? 'BUTTON.COLLAPSE' : 'BUTTON.READ_MORE') | translate}}</div>\r\n <button\r\n class=\"close\"\r\n mat-icon-button\r\n matTooltip=\"{{'BUTTON.CLOSE' | translate}} {{'NOTIFICATION_MSG.' + notification.type | translate}} {{'NOTIFICATION_MSG.NOTI' | translate}}\"\r\n (click)=\"removeNotification(notification)\">\r\n <img class=\"notification-icon-close\" src=\"assets/icons/close_icon_modal.svg\" alt=\"\">\r\n </button>\r\n </div>\r\n</div>\r\n-->\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";.notification-block{right:0;top:110px;position:absolute;width:20%;z-index:100}.notification-block .read-more-error{margin:10px 13px 3px 0;text-align:right}.notification-block .notification{padding:15px 0 10px;margin-bottom:18px;color:#333;border-radius:3px;border-top:1.5px solid #e5e1cd;background:#fcf8e3;box-shadow:0 8px 12px #091e4226,0 0 1px #091e424f;width:368px;position:relative}.notification-block .notification .notification-icons-block{text-align:center;width:56px}.notification-block .notification .message-block{font-size:14px;font-family:Poppins,Poppins,sans-serif!important;word-break:break-word;width:270px}.notification-block .notification .notification-icon-close{height:24px}.notification-block .notification.error{background:#FFE9E9;border-top:1.5px solid #E16D6D}.notification-block .notification.success{background:#e3f4dc;border-top:1.5px solid #b3d692}.notification-block .notification .fa-exclamation-triangle{color:#e16d6d!important}.notification-block .notification .fa-check{color:#a0c37f!important}.notification-block .notification .fa-info-circle,.notification-block .notification .fa-hand-paper-o{color:#bdb89e!important}.notification-block .notification .fa{font-size:20px}.notification-block .notification .close{position:absolute;top:2px;right:-5px}.notification-block .notification .close .fa{font-size:14px}.notification-block .notification .fa{margin:0;color:inherit}@media screen and (max-width: 600px){.notification-block{width:50%;min-width:150px}}\n"] }]
1378
+ }], ctorParameters: function () { return [{ type: NotificationService }, { type: i0.ChangeDetectorRef }]; } });
1379
+
1380
+ class ListUser {
1381
+ constructor(user) {
1382
+ this.devices = [];
1383
+ this.deviceProfiles = [];
1384
+ if (user) {
1385
+ Object.assign(this, user);
1386
+ }
1387
+ }
1388
+ }
1389
+
1390
+ let RemoveKynFromIBMService$1 = class RemoveKynFromIBMService {
1391
+ constructor() {
1392
+ }
1393
+ removeCUCMS(date, customerId) {
1394
+ if (customerId === 8) {
1395
+ return date.filter((val) => !CUCMS_TO_IGNORE.includes(Math.round(val.cucmId)));
1396
+ }
1397
+ return date;
1398
+ }
1399
+ removeCUCS(date, customerId) {
1400
+ if (customerId === 8) {
1401
+ return date.filter((val) => !CUCS_TO_IGNORE.includes(Math.round(val.cucId)));
1402
+ }
1403
+ return date;
1404
+ }
1405
+ };
1406
+ RemoveKynFromIBMService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService$1, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1407
+ RemoveKynFromIBMService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService$1 });
1408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService$1, decorators: [{
1409
+ type: Injectable
1410
+ }], ctorParameters: function () { return []; } });
1411
+
1412
+ class UsersSearchService {
1413
+ constructor(apiService, removeKynFromIBMService) {
1414
+ this.apiService = apiService;
1415
+ this.removeKynFromIBMService = removeKynFromIBMService;
1416
+ this.siteId = -1;
1417
+ this.userId = '';
1418
+ this.userIdExistPending = false;
1419
+ this.hasExistedUserId = false;
1420
+ this.pageSize = PAGINATION_DEFAULTS.SIZE;
1421
+ this.pageIndex = PAGINATION_DEFAULTS.SIZE;
1422
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
1423
+ this.foundUsers$ = new BehaviorSubject(null);
1424
+ }
1425
+ getPagination() {
1426
+ return {
1427
+ total: this.total,
1428
+ pageSizeOptions: this.pageSizeOptions,
1429
+ pageSize: this.pageSize,
1430
+ pageIndex: this.pageIndex
1431
+ };
1432
+ }
1433
+ quickRegularUsersSearch() {
1434
+ this.searchParams = this.searchParams || { customerid: this.customerId };
1435
+ this.searchParams['provisionType'] = 'CUCM';
1436
+ return this.apiService.fetchPagination(API.QUICK_USERS_SEARCH, this.pageSize, this.pageIndex, this.searchParams)
1437
+ .pipe(map((res) => {
1438
+ this.total = res.total;
1439
+ // this.totals = this.totals || {};
1440
+ // this.totals['users'] = res.total;
1441
+ const users = res.pageData && res.pageData.length ? res.pageData.map(user => new ListUser(user)) : [];
1442
+ // this.foundUsers$.next(this.removeKynFromIBMService.removeCUCMS(users, this.customerId));
1443
+ this.foundUsers$.next(users);
1444
+ }));
1445
+ // .pipe(this.handleError(true));
1446
+ }
1447
+ }
1448
+ UsersSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService, deps: [{ token: APIService }, { token: RemoveKynFromIBMService$1 }], target: i0.ɵɵFactoryTarget.Injectable });
1449
+ UsersSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService });
1450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UsersSearchService, decorators: [{
1451
+ type: Injectable
1452
+ }], ctorParameters: function () { return [{ type: APIService }, { type: RemoveKynFromIBMService$1 }]; } });
1453
+
1454
+ class PaginationComponent {
1455
+ constructor() {
1456
+ this.pageEmitter = new EventEmitter();
1457
+ this.pageNumberChangeEmitter = new EventEmitter();
1458
+ this.pageSizeOptions = PAGINATION_SIZE_OPTIONS;
1459
+ }
1460
+ ngOnInit() {
1461
+ }
1462
+ pageEvent(event) {
1463
+ this.pageEmitter.emit(event);
1464
+ }
1465
+ changePerPageNumber(event) {
1466
+ this.pageNumberChangeEmitter.emit(event.value);
1467
+ }
1468
+ }
1469
+ PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1470
+ 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: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }] });
1471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationComponent, decorators: [{
1472
+ type: Component,
1473
+ 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"] }]
1474
+ }], ctorParameters: function () { return []; }, propDecorators: { pagination: [{
1475
+ type: Input
1476
+ }], showPageSizeOptions: [{
1477
+ type: Input
1478
+ }], showRefreshButton: [{
1479
+ type: Input
1480
+ }], lengthPending: [{
1481
+ type: Input
1482
+ }], pageEmitter: [{
1483
+ type: Output
1484
+ }], pageNumberChangeEmitter: [{
1485
+ type: Output
1486
+ }] } });
1487
+
1488
+ class RemoveKynFromIBMService {
1489
+ constructor() {
1490
+ }
1491
+ removeCUCMS(date, customerId) {
1492
+ if (customerId === 8) {
1493
+ return date.filter((val) => !CUCMS_TO_IGNORE.includes(Math.round(val.cucmId)));
1494
+ }
1495
+ return date;
1496
+ }
1497
+ removeCUCS(date, customerId) {
1498
+ if (customerId === 8) {
1499
+ return date.filter((val) => !CUCS_TO_IGNORE.includes(Math.round(val.cucId)));
1500
+ }
1501
+ return date;
1502
+ }
1503
+ }
1504
+ RemoveKynFromIBMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1505
+ RemoveKynFromIBMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService });
1506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RemoveKynFromIBMService, decorators: [{
1507
+ type: Injectable
1508
+ }], ctorParameters: function () { return []; } });
1509
+
1510
+ class LazyLoadingSelectComponent {
1511
+ get formControl() {
1512
+ var _a;
1513
+ return (_a = this.form) === null || _a === void 0 ? void 0 : _a.get(this.controlName);
1514
+ }
1515
+ constructor(notificationService, siteSettingsService) {
1516
+ this.notificationService = notificationService;
1517
+ this.siteSettingsService = siteSettingsService;
1518
+ this.standalone = true;
1519
+ this.appearance = 'standard';
1520
+ this.changeField = new EventEmitter();
1521
+ }
1522
+ ngAfterContentInit() {
1523
+ var _a, _b;
1524
+ this.options = [(_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.get(this.controlName)) === null || _b === void 0 ? void 0 : _b.value];
1525
+ }
1526
+ getOptions() {
1527
+ if (!this.siteId && this.options.length > 1) {
1528
+ return;
1529
+ }
1530
+ this.optionsPending = true;
1531
+ this.siteSettingsService.getSelectionOptions(this.siteId, this.optionsToken)
1532
+ .subscribe(() => {
1533
+ this.optionsPending = false;
1534
+ // @ts-ignore
1535
+ this.options = this.siteSettingsService[this.optionsToken];
1536
+ }, () => {
1537
+ this.optionsPending = false;
1538
+ // this.notificationService.error(this.translate.instant('COMMON.LOAD_SELECT_OPTIONS_FAILED'));
1539
+ });
1540
+ }
1541
+ onFieldChange(token) {
1542
+ this.changeField.emit(token);
1543
+ }
1544
+ }
1545
+ LazyLoadingSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LazyLoadingSelectComponent, deps: [{ token: NotificationService }, { token: SiteSettingsService }], target: i0.ɵɵFactoryTarget.Component });
1546
+ LazyLoadingSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LazyLoadingSelectComponent, selector: "app-lazy-loading-select", inputs: { siteId: "siteId", form: "form", standalone: "standalone", placeholder: "placeholder", controlName: "controlName", optionsToken: "optionsToken", appearance: "appearance", errorCode: "errorCode", errorText: "errorText", default: "default", id: "id" }, outputs: { changeField: "changeField" }, ngImport: i0, template: "<ng-container *ngIf=\"standalone\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-select [formControl]=\"formControl\"\r\n (openedChange)=\"getOptions()\"\r\n [placeholder]=\"placeholder\"\r\n (selectionChange)=\"onFieldChange(controlName)\"\r\n [id]=\"id\">\r\n <mat-option *ngIf=\"default\" [disabled]=\"default.disabled\" [value]=\"default.key\">{{default.value}}</mat-option>\r\n <mat-option *ngFor=\"let type of options\" [value]=\"type\">\r\n {{type}}\r\n </mat-option>\r\n <mat-progress-spinner class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"optionsPending\"></mat-progress-spinner>\r\n </mat-select>\r\n <mat-error *ngIf=\"form.get(controlName)?.hasError(errorCode)\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n {{errorText}}\r\n </mat-error>\r\n </mat-form-field>\r\n</ng-container>\r\n\r\n<!--\r\nThis duplication is caused by the following bug: https://github.com/angular/components/issues/9411\r\nWhich doesn't allow projection in mat-form-field\r\n-->\r\n\r\n<ng-container *ngIf=\"!standalone\">\r\n <mat-select *ngIf=\"form.get(controlName)\"\r\n [formControl]=\"formControl\"\r\n (openedChange)=\"getOptions()\"\r\n [placeholder]=\"placeholder\"\r\n (selectionChange)=\"onFieldChange(controlName)\"\r\n [id]=\"id\"\r\n >\r\n <mat-option *ngIf=\"default\" [disabled]=\"default.disabled\" [value]=\"default.key\">{{default.value}}</mat-option>\r\n <mat-option *ngFor=\"let type of options\" [value]=\"type\">\r\n {{type}}\r\n </mat-option>\r\n <mat-progress-spinner class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"optionsPending\"></mat-progress-spinner>\r\n </mat-select>\r\n <mat-error *ngIf=\"form.get(controlName)?.hasError(errorCode)\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n {{errorText}}\r\n </mat-error>\r\n</ng-container>\r\n", styles: [".field-spinner{margin-top:-30px}mat-form-field{width:300px;max-width:300px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i6$1.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i6$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }] });
1547
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LazyLoadingSelectComponent, decorators: [{
1548
+ type: Component,
1549
+ args: [{ selector: 'app-lazy-loading-select', template: "<ng-container *ngIf=\"standalone\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-select [formControl]=\"formControl\"\r\n (openedChange)=\"getOptions()\"\r\n [placeholder]=\"placeholder\"\r\n (selectionChange)=\"onFieldChange(controlName)\"\r\n [id]=\"id\">\r\n <mat-option *ngIf=\"default\" [disabled]=\"default.disabled\" [value]=\"default.key\">{{default.value}}</mat-option>\r\n <mat-option *ngFor=\"let type of options\" [value]=\"type\">\r\n {{type}}\r\n </mat-option>\r\n <mat-progress-spinner class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"optionsPending\"></mat-progress-spinner>\r\n </mat-select>\r\n <mat-error *ngIf=\"form.get(controlName)?.hasError(errorCode)\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n {{errorText}}\r\n </mat-error>\r\n </mat-form-field>\r\n</ng-container>\r\n\r\n<!--\r\nThis duplication is caused by the following bug: https://github.com/angular/components/issues/9411\r\nWhich doesn't allow projection in mat-form-field\r\n-->\r\n\r\n<ng-container *ngIf=\"!standalone\">\r\n <mat-select *ngIf=\"form.get(controlName)\"\r\n [formControl]=\"formControl\"\r\n (openedChange)=\"getOptions()\"\r\n [placeholder]=\"placeholder\"\r\n (selectionChange)=\"onFieldChange(controlName)\"\r\n [id]=\"id\"\r\n >\r\n <mat-option *ngIf=\"default\" [disabled]=\"default.disabled\" [value]=\"default.key\">{{default.value}}</mat-option>\r\n <mat-option *ngFor=\"let type of options\" [value]=\"type\">\r\n {{type}}\r\n </mat-option>\r\n <mat-progress-spinner class=\"field-spinner\"\r\n [diameter]=\"20\"\r\n mode=\"indeterminate\"\r\n *ngIf=\"optionsPending\"></mat-progress-spinner>\r\n </mat-select>\r\n <mat-error *ngIf=\"form.get(controlName)?.hasError(errorCode)\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n {{errorText}}\r\n </mat-error>\r\n</ng-container>\r\n", styles: [".field-spinner{margin-top:-30px}mat-form-field{width:300px;max-width:300px}\n"] }]
1550
+ }], ctorParameters: function () { return [{ type: NotificationService }, { type: SiteSettingsService }]; }, propDecorators: { siteId: [{
1551
+ type: Input
1552
+ }], form: [{
1553
+ type: Input
1554
+ }], standalone: [{
1555
+ type: Input
1556
+ }], placeholder: [{
1557
+ type: Input
1558
+ }], controlName: [{
1559
+ type: Input
1560
+ }], optionsToken: [{
1561
+ type: Input
1562
+ }], appearance: [{
1563
+ type: Input
1564
+ }], errorCode: [{
1565
+ type: Input
1566
+ }], errorText: [{
1567
+ type: Input
1568
+ }], default: [{
1569
+ type: Input
1570
+ }], id: [{
1571
+ type: Input
1572
+ }], changeField: [{
1573
+ type: Output
1574
+ }] } });
1575
+
1576
+ var EntityChangeType;
1577
+ (function (EntityChangeType) {
1578
+ EntityChangeType["added"] = "added";
1579
+ EntityChangeType["updated"] = "updated";
1580
+ EntityChangeType["existing"] = "existing";
1581
+ EntityChangeType["removed"] = "removed";
1582
+ EntityChangeType["unassociated"] = "unassociated";
1583
+ })(EntityChangeType || (EntityChangeType = {}));
1584
+ var DnRangeType;
1585
+ (function (DnRangeType) {
1586
+ DnRangeType["extension"] = "EXTENSION";
1587
+ DnRangeType["cpg"] = "CPG";
1588
+ DnRangeType["callpark"] = "CALLPARK";
1589
+ DnRangeType["huntgroup"] = "HUNTGROUP";
1590
+ DnRangeType["meetme"] = "MEETME";
1591
+ DnRangeType["did"] = "DID";
1592
+ })(DnRangeType || (DnRangeType = {}));
1593
+
1594
+ // import * as Big from 'big.js';
1595
+ class DnsService {
1596
+ constructor(apiService) {
1597
+ this.apiService = apiService;
1598
+ this.availableNumbers = {};
1599
+ }
1600
+ getNumberRange(siteId, routePartition, withdids, from, pageSize) {
1601
+ // @ts-ignore
1602
+ if (this.availableNumbers[routePartition] && this.availableNumbers[routePartition].length) {
1603
+ return new Observable(observer => {
1604
+ // @ts-ignore
1605
+ observer.next(this.availableNumbers[routePartition]);
1606
+ });
1607
+ }
1608
+ this.availableDidPatternsMappedToDn = {};
1609
+ pageSize = pageSize ? pageSize : 20;
1610
+ const params = { dntype: DnRangeType.extension, routepartition: routePartition, size: pageSize, page: 0 };
1611
+ if (withdids) {
1612
+ // @ts-ignore
1613
+ params['withdids'] = 'true';
1614
+ }
1615
+ if (from) {
1616
+ // @ts-ignore
1617
+ params['from'] = from;
1618
+ }
1619
+ // @ts-ignore
1620
+ this.availableNumbers[routePartition] = this.availableNumbers[routePartition] || [];
1621
+ return this.apiService.fetch(API.AVAILABLE_DN_IN_RANGES.replace(':siteId', siteId), params)
1622
+ .pipe(map((res) => {
1623
+ res.availableNumberList.forEach((availableNumber) => {
1624
+ this.setAvailableDidMappedToDn(availableNumber);
1625
+ // @ts-ignore
1626
+ this.availableNumbers[routePartition] = [...this.availableNumbers[routePartition], ...this.getUnwrapNumberRange(availableNumber)];
1627
+ });
1628
+ }));
1629
+ // .pipe(this.handleError(true, false));
1630
+ }
1631
+ setAvailableDidMappedToDn(availableNumber) {
1632
+ if (availableNumber.unUsedNumbersWithDids && availableNumber.unUsedNumbersWithDids.length) {
1633
+ availableNumber.unUsedNumbersWithDids.forEach((numberWithDids) => {
1634
+ const dn = numberWithDids['unUsedNumber'];
1635
+ this.availableDidPatternsMappedToDn[dn] = [{}];
1636
+ if (numberWithDids['translationPatternList'] && numberWithDids['translationPatternList'].length > 0) {
1637
+ this.availableDidPatternsMappedToDn[dn] = numberWithDids['translationPatternList'];
1638
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = [{}];
1639
+ if (numberWithDids['mappedDids'] && numberWithDids['mappedDids'].length > 0) {
1640
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] = numberWithDids['mappedDids'];
1641
+ }
1642
+ }
1643
+ this.availableDidPatternsMappedToDn[dn][0]['vm'] = numberWithDids['vm'];
1644
+ });
1645
+ }
1646
+ }
1647
+ getUnwrapNumberRange(availableNumber) {
1648
+ const unwrapNumberRangeArray = this.unwrapNumberRange(availableNumber.phoneNumberRange.from, availableNumber.phoneNumberRange.to);
1649
+ if (unwrapNumberRangeArray === null || unwrapNumberRangeArray === void 0 ? void 0 : unwrapNumberRangeArray.length) {
1650
+ let unwrapNumberRange = unwrapNumberRangeArray.map((unwrappedNumber) => {
1651
+ const dn = availableNumber.phoneNumberRange.prefix + unwrappedNumber;
1652
+ let str = dn;
1653
+ if (this.availableDidPatternsMappedToDn[dn] && this.availableDidPatternsMappedToDn[dn].length > 0) {
1654
+ if (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'] && this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 0) {
1655
+ str += ' DID: ' + (this.availableDidPatternsMappedToDn[dn][0]['mappedDids'].length > 1 ? 'multiple' :
1656
+ this.availableDidPatternsMappedToDn[dn][0]['mappedDids'][0]);
1657
+ }
1658
+ if (this.availableDidPatternsMappedToDn[dn][0]['vm']) {
1659
+ str += ' In Use - VM';
1660
+ }
1661
+ }
1662
+ return str;
1663
+ });
1664
+ unwrapNumberRange = unwrapNumberRange.filter((unwrappedNumber) => !availableNumber.usedNumbers.includes(unwrappedNumber));
1665
+ return unwrapNumberRange;
1666
+ }
1667
+ else {
1668
+ return [];
1669
+ }
1670
+ }
1671
+ unwrapNumberRange(start, end) {
1672
+ const regExp = /(^0+)/;
1673
+ let leadingZeros = '';
1674
+ const matches = start.match(regExp);
1675
+ if (matches) {
1676
+ leadingZeros = matches[1];
1677
+ }
1678
+ const startNumeric = new Big(start);
1679
+ const endNumeric = new Big(end);
1680
+ // @ts-ignore
1681
+ return Array.from({ length: (endNumeric.minus(startNumeric).plus(new Big(1)).toFixed(0)) }, (v, k) => {
1682
+ const number = String(startNumeric.plus(new Big(k)).toFixed(0));
1683
+ if ((leadingZeros + number).length > start.length) {
1684
+ leadingZeros = leadingZeros.substr(1);
1685
+ }
1686
+ return leadingZeros + number;
1687
+ });
1688
+ }
1689
+ }
1690
+ DnsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
1691
+ DnsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService });
1692
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DnsService, decorators: [{
1693
+ type: Injectable
1694
+ }], ctorParameters: function () { return [{ type: APIService }]; } });
1695
+
1696
+ class UserCallingExtensionComponent {
1697
+ get user() {
1698
+ return this.userService.user;
1699
+ }
1700
+ get availableNumbers() {
1701
+ // @ts-ignore
1702
+ return this.routePartition && this.dnsService.availableNumbers ? this.dnsService.availableNumbers[this.routePartition] : null;
1703
+ }
1704
+ constructor(userService, dnsService) {
1705
+ this.userService = userService;
1706
+ this.dnsService = dnsService;
1707
+ this.onChange = new EventEmitter();
1708
+ }
1709
+ ngOnInit() {
1710
+ this.getData();
1711
+ }
1712
+ onChangeField(event) {
1713
+ // if (!token) {
1714
+ // return;
1715
+ // }
1716
+ // (this.userService.user as any)[token] = this.form?.get(token)?.value;
1717
+ this.onChange.emit(event === null || event === void 0 ? void 0 : event.value);
1718
+ }
1719
+ getData() {
1720
+ if (!this.siteId || !this.routePartition) {
1721
+ return;
1722
+ }
1723
+ this.dataPending = true;
1724
+ this.dnsService.getNumberRange(String(this.siteId), this.routePartition)
1725
+ .subscribe(() => {
1726
+ if (this.availableNumbers) {
1727
+ // @ts-ignore
1728
+ this.dnsService.availableNumbers[this.routePartition].push(this.directoryNumber);
1729
+ }
1730
+ this.dataPending = false;
1731
+ });
1732
+ }
1733
+ }
1734
+ UserCallingExtensionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserCallingExtensionComponent, deps: [{ token: UserService }, { token: DnsService }], target: i0.ɵɵFactoryTarget.Component });
1735
+ UserCallingExtensionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserCallingExtensionComponent, selector: "app-user-calling-extension", inputs: { control: "control", routePartition: "routePartition", directoryNumber: "directoryNumber", siteId: "siteId" }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<div *ngIf=\"this.availableNumbers?.length\" class=\"user-calling-extension\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-select [formControl]=\"control\" name=\"extension\"\r\n (selectionChange)=\"this.onChangeField($event)\">\r\n <mat-option *ngFor=\"let option of this.availableNumbers; let i = index;\"[value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-spinner *ngIf=\"this.dataPending\" [diameter]=\"50\"></mat-spinner>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";.user-calling-extension{max-width:200px;margin:0 0 0 6px}.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:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.spinner-container{width:100%;display:flex;justify-content:center;align-items:center}.spinner-container ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#000}.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:#636363;font-size:14px}.webex-table tr:hover td{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}.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}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-tab-group{font-family:Inter,sans-serif}::ng-deep .mat-tab-label{font-weight:500!important;font-size:16px!important;height:auto!important;min-width:auto!important;padding:0!important;opacity:1!important;color:#000!important}::ng-deep .mat-ink-bar{background-color:#000!important;height:3px!important}::ng-deep .mat-tab-labels{gap:30px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i5.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: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }] });
1736
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserCallingExtensionComponent, decorators: [{
1737
+ type: Component,
1738
+ args: [{ selector: 'app-user-calling-extension', template: "<div *ngIf=\"this.availableNumbers?.length\" class=\"user-calling-extension\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-select [formControl]=\"control\" name=\"extension\"\r\n (selectionChange)=\"this.onChangeField($event)\">\r\n <mat-option *ngFor=\"let option of this.availableNumbers; let i = index;\"[value]=\"option\">{{option}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-spinner *ngIf=\"this.dataPending\" [diameter]=\"50\"></mat-spinner>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";.user-calling-extension{max-width:200px;margin:0 0 0 6px}.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:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.spinner-container{width:100%;display:flex;justify-content:center;align-items:center}.spinner-container ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#000}.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:#636363;font-size:14px}.webex-table tr:hover td{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}.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}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-tab-group{font-family:Inter,sans-serif}::ng-deep .mat-tab-label{font-weight:500!important;font-size:16px!important;height:auto!important;min-width:auto!important;padding:0!important;opacity:1!important;color:#000!important}::ng-deep .mat-ink-bar{background-color:#000!important;height:3px!important}::ng-deep .mat-tab-labels{gap:30px}\n"] }]
1739
+ }], ctorParameters: function () { return [{ type: UserService }, { type: DnsService }]; }, propDecorators: { control: [{
1740
+ type: Input
1741
+ }], routePartition: [{
1742
+ type: Input
1743
+ }], directoryNumber: [{
1744
+ type: Input
1745
+ }], siteId: [{
1746
+ type: Input
1747
+ }], onChange: [{
1748
+ type: Output
1749
+ }] } });
1750
+
1751
+ class UserCallingComponent {
1752
+ get form() {
1753
+ var _a, _b, _c, _d;
1754
+ return ((_b = (_a = this.userService) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.devices[0]) && ((_d = (_c = this.userService) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.devices[0].lineAssociations[0].form);
1755
+ }
1756
+ get formControl() {
1757
+ var _a;
1758
+ const control = (_a = this.form) === null || _a === void 0 ? void 0 : _a.get('directoryNumber');
1759
+ return control;
1760
+ }
1761
+ get lineAssociation() {
1762
+ var _a, _b;
1763
+ return (_b = (_a = this.userService) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.devices[0].lineAssociations[0];
1764
+ }
1765
+ get user() {
1766
+ return this.userService.user;
1767
+ }
1768
+ constructor(userService, dnsService) {
1769
+ this.userService = userService;
1770
+ this.dnsService = dnsService;
1771
+ this.onExtensionChange = new EventEmitter();
1772
+ }
1773
+ ngOnInit() {
1774
+ // this.getData();
1775
+ }
1776
+ onDirectoryNumberChange(value) {
1777
+ if (this.lineAssociation && this.lineAssociation.directoryNumber) {
1778
+ // @ts-ignore
1779
+ this.userService.user.devices[0].lineAssociations[0].directoryNumber.directoryNumber = value;
1780
+ this.onExtensionChange.next(true);
1781
+ }
1782
+ }
1783
+ onChangeField(token) {
1784
+ var _a, _b;
1785
+ if (!token) {
1786
+ return;
1787
+ }
1788
+ this.userService.user[token] = (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.get(token)) === null || _b === void 0 ? void 0 : _b.value;
1789
+ }
1790
+ toggleEditMode() {
1791
+ this.userService.user.toggleEditMode();
1792
+ }
1793
+ isSavingDisabled() {
1794
+ return !this.userService.hasUnsavedChanges() || this.userService.hasExistedUserId;
1795
+ }
1796
+ onChangeExtension(value) {
1797
+ if (this.lineAssociation && this.lineAssociation.directoryNumber) {
1798
+ // @ts-ignore
1799
+ this.userService.user.devices[0].lineAssociations[0].directoryNumber.directoryNumber = value;
1800
+ }
1801
+ }
1802
+ getData() {
1803
+ this.dataPending = true;
1804
+ this.dnsService.getNumberRange(String(this.siteId), this.userId)
1805
+ .subscribe({
1806
+ complete: (v) => {
1807
+ this.dataPending = false;
1808
+ },
1809
+ error: (e) => this.dataPending = false,
1810
+ });
1811
+ }
1812
+ }
1813
+ UserCallingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserCallingComponent, deps: [{ token: UserService }, { token: DnsService }], target: i0.ɵɵFactoryTarget.Component });
1814
+ UserCallingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserCallingComponent, selector: "app-user-calling", inputs: { siteId: "siteId", userId: "userId" }, outputs: { onExtensionChange: "onExtensionChange" }, ngImport: i0, template: "<div id=\"user-calling\" class=\"info-boxes-container\" *ngIf=\"siteId && lineAssociation && form\" [formGroup]=\"form\">\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">Numbers</h3>\r\n <div class=\"form-holder__inputs\">\r\n <h4>Directory Number</h4>\r\n <table>\r\n <tr>\r\n <th>Type</th>\r\n <th>Number</th>\r\n <th>Extension</th>\r\n </tr>\r\n <tr >\r\n <td></td>\r\n <td></td>\r\n <td>\r\n <app-user-calling-extension\r\n *ngIf=\"formControl\"\r\n [siteId]=\"this.siteId\"\r\n [control]=\"formControl\"\r\n [routePartition]=\"this.lineAssociation?.directoryNumber?.routePartitionName\"\r\n [directoryNumber]=\"this.lineAssociation?.directoryNumber?.directoryNumber\"\r\n (onChange)=\"onDirectoryNumberChange($event)\">\r\n </app-user-calling-extension>\r\n\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";#user-calling{height:calc(100vh - 100px)}#user-calling table{margin:10px 0;width:100%}#user-calling th{color:#000;text-align:left;background:#efefef;font-size:14px;font-weight:500;padding:2px 5px}.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:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.spinner-container{width:100%;display:flex;justify-content:center;align-items:center}.spinner-container ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#000}.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:#636363;font-size:14px}.webex-table tr:hover td{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}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-tab-group{font-family:Inter,sans-serif}::ng-deep .mat-tab-label{font-weight:500!important;font-size:16px!important;height:auto!important;min-width:auto!important;padding:0!important;opacity:1!important;color:#000!important}::ng-deep .mat-ink-bar{background-color:#000!important;height:3px!important}::ng-deep .mat-tab-labels{gap:30px}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: UserCallingExtensionComponent, selector: "app-user-calling-extension", inputs: ["control", "routePartition", "directoryNumber", "siteId"], outputs: ["onChange"] }] });
1815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserCallingComponent, decorators: [{
1816
+ type: Component,
1817
+ args: [{ selector: 'app-user-calling', template: "<div id=\"user-calling\" class=\"info-boxes-container\" *ngIf=\"siteId && lineAssociation && form\" [formGroup]=\"form\">\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">Numbers</h3>\r\n <div class=\"form-holder__inputs\">\r\n <h4>Directory Number</h4>\r\n <table>\r\n <tr>\r\n <th>Type</th>\r\n <th>Number</th>\r\n <th>Extension</th>\r\n </tr>\r\n <tr >\r\n <td></td>\r\n <td></td>\r\n <td>\r\n <app-user-calling-extension\r\n *ngIf=\"formControl\"\r\n [siteId]=\"this.siteId\"\r\n [control]=\"formControl\"\r\n [routePartition]=\"this.lineAssociation?.directoryNumber?.routePartitionName\"\r\n [directoryNumber]=\"this.lineAssociation?.directoryNumber?.directoryNumber\"\r\n (onChange)=\"onDirectoryNumberChange($event)\">\r\n </app-user-calling-extension>\r\n\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";#user-calling{height:calc(100vh - 100px)}#user-calling table{margin:10px 0;width:100%}#user-calling th{color:#000;text-align:left;background:#efefef;font-size:14px;font-weight:500;padding:2px 5px}.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:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.spinner-container{width:100%;display:flex;justify-content:center;align-items:center}.spinner-container ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#000}.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:#636363;font-size:14px}.webex-table tr:hover td{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}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-tab-group{font-family:Inter,sans-serif}::ng-deep .mat-tab-label{font-weight:500!important;font-size:16px!important;height:auto!important;min-width:auto!important;padding:0!important;opacity:1!important;color:#000!important}::ng-deep .mat-ink-bar{background-color:#000!important;height:3px!important}::ng-deep .mat-tab-labels{gap:30px}\n"] }]
1818
+ }], ctorParameters: function () { return [{ type: UserService }, { type: DnsService }]; }, propDecorators: { siteId: [{
1819
+ type: Input
1820
+ }], userId: [{
1821
+ type: Input
1822
+ }], onExtensionChange: [{
1823
+ type: Output
1824
+ }] } });
1825
+
1826
+ class DeviceListComponent {
1827
+ constructor() {
1828
+ this.onDeviceSelect = new EventEmitter();
1829
+ console.log('devices list');
1830
+ }
1831
+ selectDevice(device) {
1832
+ this.onDeviceSelect.emit(device);
1833
+ }
1834
+ }
1835
+ DeviceListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DeviceListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1836
+ DeviceListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DeviceListComponent, selector: "app-device-list", inputs: { devices: "devices" }, outputs: { onDeviceSelect: "onDeviceSelect" }, ngImport: i0, template: "<div class=\"webex-list device-list-container\">\r\n <div class=\"webex-list-header\">\r\n <div class=\"webex-list-header__hr\">Name</div>\r\n <div class=\"webex-list-header__hr\">Type</div>\r\n <div class=\"webex-list-header__hr\">Line</div>\r\n <div class=\"webex-list-header__hr\">Device description</div>\r\n <div class=\"webex-list-header__hr\">Plar service</div>\r\n </div>\r\n <ng-container *ngFor=\"let device of devices\">\r\n <div class=\"device-item\" (click)=\"selectDevice(device)\">\r\n <div class=\"device-item__td\">{{ device.name }}</div>\r\n <div class=\"device-item__td\">{{ device.deviceType }}</div>\r\n <div class=\"device-item__td\">\r\n <span class=\"device-associated-line\" *ngFor=\"let line of device.lineAssociations\">{{line.directoryNumber?.directoryNumber}} | </span>\r\n </div>\r\n <div class=\"device-item__td\">{{ device.description }}</div>\r\n <div class=\"device-item__td\">\r\n <mat-slide-toggle class=\"device-slide-toggle\" [disabled]=\"true\" [checked]=\"device.plarService\"></mat-slide-toggle>\r\n </div>\r\n <div class=\"device-item__actions-menu\" style=\"text-align: right;\">\r\n <div class=\"device-item__more\">\r\n<!-- <mat-icon>more_vert</mat-icon>-->\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [".info-holder{display:flex;gap:16px;align-items:center;font-family:Inter,sans-serif;height:102px;width:100%;background:white;margin:0 0 30px}.info-holder__user-image img{width:40px;border-radius:120px;margin:20px 0 0}.info-holder__user-information{padding:10px;margin:10px;gap:10px;display:flex;flex-direction:column}.info-holder__user-name{font-size:20px;font-weight:500}.info-holder__user-breadcrumbs{display:flex;gap:8px;font-weight:400;font-size:14px;color:#000000b3;align-items:center}.info-holder .icon-separator{height:5px;width:5px;background-color:#000000b3;border-radius:50%}.info-holder .is-active{display:flex;gap:8px;align-items:center}.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}.webex-list{padding:2.5rem}.webex-list-header{display:flex;align-items:center;padding:1rem}.webex-list-header__hr{width:100%;font-size:12px}.device-item{position:relative;display:flex;align-items:center;justify-content:space-between;background-color:#fff;border-bottom:1px solid #b0b0b0;padding:.8rem;z-index:10;transition:background-color .3s;cursor:pointer}.device-item__td{width:100%}.device-item__actions-menu{position:absolute;margin:0 1rem;right:0}.device-item__more{display:flex;align-items:center;justify-content:center;cursor:pointer;color:#b0b0b0;border-radius:50%;padding:.5rem;transition:background-color .3s ease-in-out}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }] });
1837
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DeviceListComponent, decorators: [{
1838
+ type: Component,
1839
+ args: [{ selector: 'app-device-list', template: "<div class=\"webex-list device-list-container\">\r\n <div class=\"webex-list-header\">\r\n <div class=\"webex-list-header__hr\">Name</div>\r\n <div class=\"webex-list-header__hr\">Type</div>\r\n <div class=\"webex-list-header__hr\">Line</div>\r\n <div class=\"webex-list-header__hr\">Device description</div>\r\n <div class=\"webex-list-header__hr\">Plar service</div>\r\n </div>\r\n <ng-container *ngFor=\"let device of devices\">\r\n <div class=\"device-item\" (click)=\"selectDevice(device)\">\r\n <div class=\"device-item__td\">{{ device.name }}</div>\r\n <div class=\"device-item__td\">{{ device.deviceType }}</div>\r\n <div class=\"device-item__td\">\r\n <span class=\"device-associated-line\" *ngFor=\"let line of device.lineAssociations\">{{line.directoryNumber?.directoryNumber}} | </span>\r\n </div>\r\n <div class=\"device-item__td\">{{ device.description }}</div>\r\n <div class=\"device-item__td\">\r\n <mat-slide-toggle class=\"device-slide-toggle\" [disabled]=\"true\" [checked]=\"device.plarService\"></mat-slide-toggle>\r\n </div>\r\n <div class=\"device-item__actions-menu\" style=\"text-align: right;\">\r\n <div class=\"device-item__more\">\r\n<!-- <mat-icon>more_vert</mat-icon>-->\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [".info-holder{display:flex;gap:16px;align-items:center;font-family:Inter,sans-serif;height:102px;width:100%;background:white;margin:0 0 30px}.info-holder__user-image img{width:40px;border-radius:120px;margin:20px 0 0}.info-holder__user-information{padding:10px;margin:10px;gap:10px;display:flex;flex-direction:column}.info-holder__user-name{font-size:20px;font-weight:500}.info-holder__user-breadcrumbs{display:flex;gap:8px;font-weight:400;font-size:14px;color:#000000b3;align-items:center}.info-holder .icon-separator{height:5px;width:5px;background-color:#000000b3;border-radius:50%}.info-holder .is-active{display:flex;gap:8px;align-items:center}.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}.webex-list{padding:2.5rem}.webex-list-header{display:flex;align-items:center;padding:1rem}.webex-list-header__hr{width:100%;font-size:12px}.device-item{position:relative;display:flex;align-items:center;justify-content:space-between;background-color:#fff;border-bottom:1px solid #b0b0b0;padding:.8rem;z-index:10;transition:background-color .3s;cursor:pointer}.device-item__td{width:100%}.device-item__actions-menu{position:absolute;margin:0 1rem;right:0}.device-item__more{display:flex;align-items:center;justify-content:center;cursor:pointer;color:#b0b0b0;border-radius:50%;padding:.5rem;transition:background-color .3s ease-in-out}\n"] }]
1840
+ }], ctorParameters: function () { return []; }, propDecorators: { devices: [{
1841
+ type: Input
1842
+ }], onDeviceSelect: [{
1843
+ type: Output
1844
+ }] } });
1845
+
1846
+ class UserManageWidgetComponent {
1847
+ get form() {
1848
+ var _a, _b;
1849
+ return (_b = (_a = this.userService) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.form;
1850
+ }
1851
+ get user() {
1852
+ return this.userService.user;
1853
+ }
1854
+ get userName() {
1855
+ var _a, _b;
1856
+ return `${((_a = this.user) === null || _a === void 0 ? void 0 : _a.firstName) || ''} ${((_b = this.user) === null || _b === void 0 ? void 0 : _b.lastName) || ''}`;
1857
+ }
1858
+ get lineAssociation() {
1859
+ var _a, _b;
1860
+ return (_b = (_a = this.userService) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.devices[0].lineAssociations[0];
1861
+ }
1862
+ constructor(userService, apiService) {
1863
+ this.userService = userService;
1864
+ this.apiService = apiService;
1865
+ this.onSave = new EventEmitter();
1866
+ this.onChange = new EventEmitter();
1867
+ this.selectDevice = new EventEmitter();
1868
+ this.goBack = new EventEmitter();
1869
+ this.userService.onUserLineSaved$
1870
+ .subscribe(() => {
1871
+ this.userService.persistCacheChanges()
1872
+ .subscribe(() => {
1873
+ this.userService.dataPending = false;
1874
+ this.onSave.next("saved");
1875
+ });
1876
+ }, () => this.userService.dataPending = false);
1877
+ }
1878
+ ngOnInit() {
1879
+ this.apiService.token = this.token;
1880
+ this.apiService.apiUrl = this.host;
1881
+ this.getData();
1882
+ }
1883
+ onDeviceSelect(device) {
1884
+ this.selectDevice.emit(device.name);
1885
+ }
1886
+ onGoBack() {
1887
+ this.goBack.emit();
1888
+ }
1889
+ onExtensionChange() {
1890
+ this.onChange.next("start extension change..");
1891
+ }
1892
+ onChangeField(token) {
1893
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1894
+ this.onChange.next("start change..");
1895
+ if (!token) {
1896
+ return;
1897
+ }
1898
+ this.userService.user[token] = (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.get(token)) === null || _b === void 0 ? void 0 : _b.value;
1899
+ if (token === 'middleName') {
1900
+ (_d = (_c = this.form) === null || _c === void 0 ? void 0 : _c.get(token)) === null || _d === void 0 ? void 0 : _d.setValidators([Validators.pattern('[ a-zA-Z-]+')]);
1901
+ }
1902
+ if (token === 'telephoneNumber' || token === 'mobileNumber' || token === 'pagerNumber' || token === 'homeNumber') {
1903
+ (_f = (_e = this.form) === null || _e === void 0 ? void 0 : _e.get(token)) === null || _f === void 0 ? void 0 : _f.setValidators([Validators.pattern('[ 0-9-+]+')]);
1904
+ }
1905
+ (_h = (_g = this.form) === null || _g === void 0 ? void 0 : _g.get(token)) === null || _h === void 0 ? void 0 : _h.updateValueAndValidity();
1906
+ this.validateUserId();
1907
+ }
1908
+ saveChanges() {
1909
+ var _a;
1910
+ if (!this.userService.hasUnsavedChanges() || ((_a = this.form) === null || _a === void 0 ? void 0 : _a.invalid)) {
1911
+ return;
1912
+ }
1913
+ if (this.user.devices[0].lineAssociations[0] && !this.user.devices[0].lineAssociations[0].equals(this.userService.originUser.devices[0].lineAssociations[0])) {
1914
+ return this.userService.saveNewLine();
1915
+ }
1916
+ else {
1917
+ this.dataPending = true;
1918
+ const subscription = this.userService.persistCacheChanges()
1919
+ .subscribe(() => {
1920
+ this.dataPending = false;
1921
+ this.onSave.next("user has been saved successfully..");
1922
+ subscription.unsubscribe();
1923
+ }, () => this.dataPending = false);
1924
+ }
1925
+ }
1926
+ toggleEditMode() {
1927
+ this.userService.user.toggleEditMode();
1928
+ }
1929
+ isSavingDisabled() {
1930
+ return !this.userService.hasUnsavedChanges() || this.userService.hasExistedUserId;
1931
+ }
1932
+ changeField(token) {
1933
+ var _a, _b;
1934
+ this.onChange.next("start change..");
1935
+ const formField = (_b = (_a = this.user) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.get(token);
1936
+ if (token !== 'confirmDigestCredentials') {
1937
+ // @ts-ignore
1938
+ this.user[token] = formField === null || formField === void 0 ? void 0 : formField.value;
1939
+ }
1940
+ if (token === 'digestCredentials' || token === 'confirmDigestCredentials') {
1941
+ this.digestCredentialsHandler(token, formField);
1942
+ }
1943
+ }
1944
+ digestCredentialsHandler(token, field) {
1945
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1946
+ const fieldNameToCompare = token === 'digestCredentials' ? 'confirmDigestCredentials' : 'digestCredentials';
1947
+ const fieldToCompare = this.userService.user.form.get(fieldNameToCompare);
1948
+ if ((_b = (_a = this.userService.user) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.get(token)) {
1949
+ (_e = (_d = (_c = this.userService.user) === null || _c === void 0 ? void 0 : _c.form) === null || _d === void 0 ? void 0 : _d.get(token)) === null || _e === void 0 ? void 0 : _e.setErrors(null);
1950
+ (_h = (_g = (_f = this.userService.user) === null || _f === void 0 ? void 0 : _f.form) === null || _g === void 0 ? void 0 : _g.get(fieldNameToCompare)) === null || _h === void 0 ? void 0 : _h.setErrors(null);
1951
+ /* if (!field.value && !fieldToCompare.value) {
1952
+ this.userService.user?.digestCredentials = null;
1953
+ return;
1954
+ }
1955
+
1956
+ if (!field.value && fieldToCompare.value || !fieldToCompare.value && field.value) {
1957
+ const requiredFieldName = field.value ? fieldNameToCompare : token;
1958
+ this.userService.user.form.get(requiredFieldName).setErrors({required: true});
1959
+ return;
1960
+ }
1961
+ if (field.value && fieldToCompare.value && field.value !== fieldToCompare.value) {
1962
+ this.userService.user.form.get(token).setErrors({mismatch: true});
1963
+ this.userService.user.form.get(fieldNameToCompare).setErrors({mismatch: true});
1964
+ }*/
1965
+ }
1966
+ }
1967
+ getData() {
1968
+ this.dataPending = true;
1969
+ this.userService.fetchUserToken(this.siteId, this.userId, this.isLdap)
1970
+ .subscribe({
1971
+ complete: (v) => {
1972
+ this.dataPending = false;
1973
+ },
1974
+ error: (e) => this.dataPending = false,
1975
+ });
1976
+ }
1977
+ setCookie(name, value, days) {
1978
+ var expires = "";
1979
+ if (days) {
1980
+ var date = new Date();
1981
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
1982
+ expires = "; expires=" + date.toUTCString();
1983
+ }
1984
+ document.cookie = name + "=" + (value || "") + expires + "; path=/";
1985
+ }
1986
+ validateUserId() {
1987
+ const idControl = this.form.get('userid');
1988
+ if ((idControl === null || idControl === void 0 ? void 0 : idControl.value) !== '' && (idControl === null || idControl === void 0 ? void 0 : idControl.value) !== this.userService.originUser.userid) {
1989
+ this.userService.fetchUserById(idControl === null || idControl === void 0 ? void 0 : idControl.value)
1990
+ .subscribe((res) => {
1991
+ var _a, _b;
1992
+ this.userService.userIdExistPending = false;
1993
+ idControl === null || idControl === void 0 ? void 0 : idControl.setErrors({ exist: true });
1994
+ if ((_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.get('userid')) === null || _b === void 0 ? void 0 : _b.hasError('exist')) {
1995
+ this.userService.hasExistedUserId = true;
1996
+ }
1997
+ else {
1998
+ this.userService.hasExistedUserId = false;
1999
+ }
2000
+ }, ((error) => {
2001
+ var _a, _b;
2002
+ this.userService.userIdExistPending = false;
2003
+ if (error.status !== 404) {
2004
+ // this.notificationService.warning(this.translate.instant('APP_USER_MSG.CHECK_USER_ID_FAILED'));
2005
+ }
2006
+ else {
2007
+ this.userService.user.newUserId = (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.get('userid')) === null || _b === void 0 ? void 0 : _b.value;
2008
+ }
2009
+ }));
2010
+ }
2011
+ else {
2012
+ // delete this.userService?.user?.newUserId;
2013
+ }
2014
+ }
2015
+ save() {
2016
+ this.saveChanges();
2017
+ }
2018
+ }
2019
+ UserManageWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserManageWidgetComponent, deps: [{ token: UserService }, { token: APIService }], target: i0.ɵɵFactoryTarget.Component });
2020
+ UserManageWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UserManageWidgetComponent, selector: "app-user-manage-widget", inputs: { token: "token", host: "host", siteId: "siteId", userId: "userId", deviceName: "deviceName", isLdap: "isLdap" }, outputs: { onSave: "onSave", onChange: "onChange", selectDevice: "selectDevice", goBack: "goBack" }, ngImport: i0, template: "<app-loader *ngIf=\"dataPending || userService.dataPending\"></app-loader>\r\n\r\n<div *ngIf=\"!dataPending\">\r\n <div class=\"go-back-box\" (click)=\"onGoBack()\">\r\n <div class=\"go-back-box-container\">\r\n <span class=\"app-icon icon-webex-left-arrow\"></span>\r\n <span class=\"go-back-title\">Users</span>\r\n </div>\r\n </div>\r\n\r\n <app-user-info *ngIf=\"user\" [name]=\"userName\" [email]=\"user.email\" [active]=\"true\"\r\n [position]=\"'Member of ' + user.siteName\"></app-user-info>\r\n\r\n <mat-tab-group disableRipple class=\"content-box\">\r\n <mat-tab label=\"Profile\">\r\n <ng-container *ngTemplateOutlet=\"userProfile\">\r\n </ng-container>\r\n </mat-tab>\r\n <mat-tab label=\"Calling\" [disabled]=\"!lineAssociation\">\r\n <app-user-calling *ngIf=\"lineAssociation\" [siteId]=\"siteId\"\r\n (onExtensionChange)=\"onExtensionChange()\"></app-user-calling>\r\n </mat-tab>\r\n <mat-tab label=\"Devices\">\r\n <app-device-list [devices]=\"user?.devices\" (onDeviceSelect)=\"onDeviceSelect($event)\"></app-device-list>\r\n </mat-tab>\r\n <mat-tab label=\"Lines\" [disabled]=\"true\"></mat-tab>\r\n <mat-tab label=\"Features\" [disabled]=\"true\"></mat-tab>\r\n </mat-tab-group>\r\n\r\n <ng-template #userProfile>\r\n <form *ngIf=\"user && form\" [formGroup]=\"form\">\r\n <div class=\"info-boxes-container\">\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">User Details</h3>\r\n <div class=\"form-holder__inputs\">\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">User Id</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"userid\" matInput (input)=\"onChangeField('userid')\">\r\n <mat-error\r\n *ngIf=\"form.get('userid').hasError('required')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n This field is required\r\n </mat-error>\r\n <mat-error *ngIf=\"form.get('userid').hasError('exist')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n User ID already exists\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Email</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"email\" matInput (input)=\"onChangeField('email')\">\r\n <mat-error\r\n *ngIf=\"form.get('email').touched && form.get('email').hasError('required')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n This field is required\r\n </mat-error>\r\n <mat-error *ngIf=\"form.get('email').touched && form.get('email').hasError('pattern')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n Please enter valid email\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Fisrt Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"firstName\" matInput (input)=\"onChangeField('firstName')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Last Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"lastName\" matInput (input)=\"onChangeField('lastName')\">\r\n <mat-error\r\n *ngIf=\"form.get('lastName').touched && form.get('lastName').hasError('required')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n This field is required\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">General User Info</h3>\r\n <div class=\"form-holder__inputs\">\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Department</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"department\" matInput type=\"text\" (input)=\"onChangeField('department')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Manager user ID</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"manager\" matInput type=\"text\" (input)=\"onChangeField('manager')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Associated PC</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"associatedPc\" matInput type=\"text\" (input)=\"onChangeField('associatedPc')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Digest credentials</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"digestCredentials\" matInput type=\"text\"\r\n (input)=\"onChangeField('digestCredentials')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">User profile</div>\r\n <div class=\"input-holder__input\">\r\n <app-lazy-loading-select\r\n [siteId]=\"siteId\"\r\n [controlName]=\"'userProfile'\"\r\n [form]=\"user.form\"\r\n (changeField)=\"changeField('userProfile')\"\r\n [optionsToken]=\"'userProfiles'\"\r\n ></app-lazy-loading-select>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Mobile voice access</div>\r\n <div class=\"input-holder__input\">\r\n <mat-slide-toggle\r\n formControlName=\"enableMobileVoiceAccess\"\r\n (change)=\"onChangeField('enableMobileVoiceAccess')\"\r\n [checked]=\"user.enableMobileVoiceAccess\">\r\n </mat-slide-toggle>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Userlocale</div>\r\n <div class=\"input-holder__input\">\r\n <app-lazy-loading-select\r\n [siteId]=\"siteId\"\r\n [controlName]=\"'userLocale'\"\r\n [form]=\"user.form\"\r\n (changeField)=\"changeField($event)\"\r\n [optionsToken]=\"'userLocales'\"\r\n [default]=\"{key: '', value: 'None', disabled: false}\">\r\n </app-lazy-loading-select>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Confirm digest credentials</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"confirmDigestCredentials\" matInput type=\"text\"\r\n (input)=\"onChangeField('confirmDigestCredentials')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">Contact Information</h3>\r\n <div class=\"form-holder__inputs\">\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Middle Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"middleName\" (input)=\"onChangeField('middleName')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Telephone Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"telephoneNumber\"\r\n (input)=\"onChangeField('telephoneNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Mobile Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"mobileNumber\" (input)=\"onChangeField('mobileNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Digest credentials</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"digestCredentials\"\r\n (input)=\"onChangeField('digestCredentials')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Diractory URI</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"directoryUri\" (input)=\"onChangeField('directoryUri')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Title</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"title\" (input)=\"onChangeField('title')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Home Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"homeNumber\" (input)=\"onChangeField('homeNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Pager Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"pagerNumber\" (input)=\"onChangeField('pagerNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Display Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"displayName\" (input)=\"onChangeField('displayName')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n </form>\r\n </ng-template>\r\n</div>\r\n\r\n<!--<mat-progress-spinner *ngIf=\"dataPending\"-->\r\n<!-- class=\"page-spinner\"-->\r\n<!-- mode=\"indeterminate\"-->\r\n<!-- [diameter]=\"120\"></mat-progress-spinner>-->\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";.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:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.spinner-container{width:100%;display:flex;justify-content:center;align-items:center}.spinner-container ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#000}.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:#636363;font-size:14px}.webex-table tr:hover td{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}.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}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-tab-group{font-family:Inter,sans-serif}::ng-deep .mat-tab-label{font-weight:500!important;font-size:16px!important;height:auto!important;min-width:auto!important;padding:0!important;opacity:1!important;color:#000!important}::ng-deep .mat-ink-bar{background-color:#000!important;height:3px!important}::ng-deep .mat-tab-labels{gap:30px}::ng-deep .mat-progress-spinner{position:absolute!important;top:40%;left:45%}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.app-icon{transition:all .15s ease-out}.icon-webex-right-arrow{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2220%22 height%3D%2220%22 viewBox%3D%220 0 20 20%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cg id%3D%22arrow-right%22%3E%0D%3Cpath id%3D%22Vector%22 d%3D%22M14.0812 9.66902L6.58119 2.16902C6.53813 2.12351 6.48638 2.0871 6.429 2.06193C6.37162 2.03677 6.30978 2.02336 6.24713 2.0225C6.18448 2.02165 6.1223 2.03336 6.06425 2.05695C6.00621 2.08053 5.95348 2.11552 5.90919 2.15983C5.8649 2.20415 5.82994 2.25689 5.80638 2.31495C5.78282 2.373 5.77113 2.43519 5.77202 2.49784C5.77291 2.56049 5.78634 2.62232 5.81153 2.67969C5.83673 2.73705 5.87316 2.78879 5.91869 2.83183L13.0874 10.0003L5.91869 17.169C5.87316 17.2121 5.83673 17.2638 5.81153 17.3212C5.78634 17.3785 5.77291 17.4404 5.77202 17.503C5.77113 17.5657 5.78282 17.6279 5.80638 17.6859C5.82994 17.744 5.8649 17.7967 5.90919 17.841C5.95348 17.8853 6.00621 17.9203 6.06425 17.9439C6.1223 17.9675 6.18448 17.9792 6.24713 17.9783C6.30978 17.9775 6.37162 17.9641 6.429 17.9389C6.48638 17.9138 6.53813 17.8773 6.58119 17.8318L14.0812 10.3318C14.1691 10.2439 14.2184 10.1247 14.2184 10.0004C14.2184 9.87613 14.1691 9.75692 14.0812 9.66902Z%22 fill%3D%22%230F0F0F%22%2F%3E%0D%3C%2Fg%3E%0D%3C%2Fsvg%3E%0D\")}.icon-webex-left-arrow{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cg id%3D%22arrow-left%22%3E%0D%3Cpath id%3D%22Vector%22 d%3D%22M5.70746 7.99987L11.3539 2.35352C11.4453 2.25928 11.496 2.13287 11.495 2.00159C11.494 1.8703 11.4414 1.74467 11.3486 1.65183C11.2558 1.55899 11.1301 1.50639 10.9988 1.50539C10.8676 1.50438 10.7411 1.55506 10.6469 1.64647L4.64691 7.64647C4.55316 7.74023 4.50049 7.8674 4.50049 7.99999C4.50049 8.13259 4.55316 8.25975 4.64691 8.35352L10.6469 14.3535C10.6931 14.4011 10.7482 14.439 10.8092 14.4651C10.8702 14.4912 10.9357 14.5049 11.002 14.5054C11.0683 14.5059 11.134 14.4932 11.1954 14.468C11.2567 14.4429 11.3125 14.4058 11.3593 14.3589C11.4062 14.312 11.4433 14.2563 11.4685 14.1949C11.4936 14.1336 11.5063 14.0679 11.5058 14.0016C11.5053 13.9353 11.4916 13.8697 11.4655 13.8088C11.4394 13.7478 11.4015 13.6926 11.3539 13.6465L5.70746 7.99987Z%22 fill%3D%22black%22 fill-opacity%3D%220.95%22%2F%3E%0D%3C%2Fg%3E%0D%3C%2Fsvg%3E%0D\")}.go-back-box{background:white;border-bottom:rgba(0,0,0,.2) 1px solid;height:60px;width:100%;line-height:60px;cursor:pointer}.go-back-box-container{width:95%;margin:auto;display:flex;justify-content:flex-start}.go-back-box-container .icon-webex-left-arrow,.go-back-box-container .go-back-title{display:block;height:60px}.go-back-box-container .go-back-title{line-height:61px}.go-back-title{display:inline-block;margin:0 10px}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.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: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i6$1.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i6$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7$1.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: i8$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i8$1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }, { kind: "component", type: AppLoaderComponent, selector: "app-loader" }, { kind: "component", type: UserInfoComponent, selector: "app-user-info", inputs: ["name", "active", "email", "position"] }, { kind: "component", type: LazyLoadingSelectComponent, selector: "app-lazy-loading-select", inputs: ["siteId", "form", "standalone", "placeholder", "controlName", "optionsToken", "appearance", "errorCode", "errorText", "default", "id"], outputs: ["changeField"] }, { kind: "component", type: UserCallingComponent, selector: "app-user-calling", inputs: ["siteId", "userId"], outputs: ["onExtensionChange"] }, { kind: "component", type: DeviceListComponent, selector: "app-device-list", inputs: ["devices"], outputs: ["onDeviceSelect"] }] });
2021
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserManageWidgetComponent, decorators: [{
2022
+ type: Component,
2023
+ args: [{ selector: 'app-user-manage-widget', template: "<app-loader *ngIf=\"dataPending || userService.dataPending\"></app-loader>\r\n\r\n<div *ngIf=\"!dataPending\">\r\n <div class=\"go-back-box\" (click)=\"onGoBack()\">\r\n <div class=\"go-back-box-container\">\r\n <span class=\"app-icon icon-webex-left-arrow\"></span>\r\n <span class=\"go-back-title\">Users</span>\r\n </div>\r\n </div>\r\n\r\n <app-user-info *ngIf=\"user\" [name]=\"userName\" [email]=\"user.email\" [active]=\"true\"\r\n [position]=\"'Member of ' + user.siteName\"></app-user-info>\r\n\r\n <mat-tab-group disableRipple class=\"content-box\">\r\n <mat-tab label=\"Profile\">\r\n <ng-container *ngTemplateOutlet=\"userProfile\">\r\n </ng-container>\r\n </mat-tab>\r\n <mat-tab label=\"Calling\" [disabled]=\"!lineAssociation\">\r\n <app-user-calling *ngIf=\"lineAssociation\" [siteId]=\"siteId\"\r\n (onExtensionChange)=\"onExtensionChange()\"></app-user-calling>\r\n </mat-tab>\r\n <mat-tab label=\"Devices\">\r\n <app-device-list [devices]=\"user?.devices\" (onDeviceSelect)=\"onDeviceSelect($event)\"></app-device-list>\r\n </mat-tab>\r\n <mat-tab label=\"Lines\" [disabled]=\"true\"></mat-tab>\r\n <mat-tab label=\"Features\" [disabled]=\"true\"></mat-tab>\r\n </mat-tab-group>\r\n\r\n <ng-template #userProfile>\r\n <form *ngIf=\"user && form\" [formGroup]=\"form\">\r\n <div class=\"info-boxes-container\">\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">User Details</h3>\r\n <div class=\"form-holder__inputs\">\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">User Id</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"userid\" matInput (input)=\"onChangeField('userid')\">\r\n <mat-error\r\n *ngIf=\"form.get('userid').hasError('required')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n This field is required\r\n </mat-error>\r\n <mat-error *ngIf=\"form.get('userid').hasError('exist')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n User ID already exists\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Email</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"email\" matInput (input)=\"onChangeField('email')\">\r\n <mat-error\r\n *ngIf=\"form.get('email').touched && form.get('email').hasError('required')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n This field is required\r\n </mat-error>\r\n <mat-error *ngIf=\"form.get('email').touched && form.get('email').hasError('pattern')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n Please enter valid email\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Fisrt Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"firstName\" matInput (input)=\"onChangeField('firstName')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Last Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"lastName\" matInput (input)=\"onChangeField('lastName')\">\r\n <mat-error\r\n *ngIf=\"form.get('lastName').touched && form.get('lastName').hasError('required')\">\r\n <i class=\"fa fa-exclamation-triangle\"></i>\r\n This field is required\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">General User Info</h3>\r\n <div class=\"form-holder__inputs\">\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Department</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"department\" matInput type=\"text\" (input)=\"onChangeField('department')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Manager user ID</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"manager\" matInput type=\"text\" (input)=\"onChangeField('manager')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Associated PC</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"associatedPc\" matInput type=\"text\" (input)=\"onChangeField('associatedPc')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Digest credentials</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"digestCredentials\" matInput type=\"text\"\r\n (input)=\"onChangeField('digestCredentials')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">User profile</div>\r\n <div class=\"input-holder__input\">\r\n <app-lazy-loading-select\r\n [siteId]=\"siteId\"\r\n [controlName]=\"'userProfile'\"\r\n [form]=\"user.form\"\r\n (changeField)=\"changeField('userProfile')\"\r\n [optionsToken]=\"'userProfiles'\"\r\n ></app-lazy-loading-select>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Mobile voice access</div>\r\n <div class=\"input-holder__input\">\r\n <mat-slide-toggle\r\n formControlName=\"enableMobileVoiceAccess\"\r\n (change)=\"onChangeField('enableMobileVoiceAccess')\"\r\n [checked]=\"user.enableMobileVoiceAccess\">\r\n </mat-slide-toggle>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Userlocale</div>\r\n <div class=\"input-holder__input\">\r\n <app-lazy-loading-select\r\n [siteId]=\"siteId\"\r\n [controlName]=\"'userLocale'\"\r\n [form]=\"user.form\"\r\n (changeField)=\"changeField($event)\"\r\n [optionsToken]=\"'userLocales'\"\r\n [default]=\"{key: '', value: 'None', disabled: false}\">\r\n </app-lazy-loading-select>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Confirm digest credentials</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input formControlName=\"confirmDigestCredentials\" matInput type=\"text\"\r\n (input)=\"onChangeField('confirmDigestCredentials')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- USER INFO BOX-->\r\n <div class=\"user-info-box user-details-box\">\r\n <h3 class=\"user-box-title\">Contact Information</h3>\r\n <div class=\"form-holder__inputs\">\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Middle Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"middleName\" (input)=\"onChangeField('middleName')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Telephone Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"telephoneNumber\"\r\n (input)=\"onChangeField('telephoneNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Mobile Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"mobileNumber\" (input)=\"onChangeField('mobileNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Digest credentials</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"digestCredentials\"\r\n (input)=\"onChangeField('digestCredentials')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Diractory URI</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"directoryUri\" (input)=\"onChangeField('directoryUri')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Title</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"title\" (input)=\"onChangeField('title')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Home Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"homeNumber\" (input)=\"onChangeField('homeNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Pager Number</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"number\" formControlName=\"pagerNumber\" (input)=\"onChangeField('pagerNumber')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n <div class=\"input-holder\">\r\n <div class=\"input-holder__name\">Display Name</div>\r\n <div class=\"input-holder__input\">\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput type=\"text\" formControlName=\"displayName\" (input)=\"onChangeField('displayName')\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n </form>\r\n </ng-template>\r\n</div>\r\n\r\n<!--<mat-progress-spinner *ngIf=\"dataPending\"-->\r\n<!-- class=\"page-spinner\"-->\r\n<!-- mode=\"indeterminate\"-->\r\n<!-- [diameter]=\"120\"></mat-progress-spinner>-->\r\n", styles: ["@import\"https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900\";.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:gray!important}.data-loader{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.flex-box{display:flex;justify-content:flex-start}.spinner-container{width:100%;display:flex;justify-content:center;align-items:center}.spinner-container ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#000}.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:#636363;font-size:14px}.webex-table tr:hover td{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}.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}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-tab-group{font-family:Inter,sans-serif}::ng-deep .mat-tab-label{font-weight:500!important;font-size:16px!important;height:auto!important;min-width:auto!important;padding:0!important;opacity:1!important;color:#000!important}::ng-deep .mat-ink-bar{background-color:#000!important;height:3px!important}::ng-deep .mat-tab-labels{gap:30px}::ng-deep .mat-progress-spinner{position:absolute!important;top:40%;left:45%}.app-icon{height:20px;width:20px;display:inline-block;cursor:pointer;background-repeat:no-repeat;background-position:center}.app-icon{transition:all .15s ease-out}.icon-webex-right-arrow{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2220%22 height%3D%2220%22 viewBox%3D%220 0 20 20%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cg id%3D%22arrow-right%22%3E%0D%3Cpath id%3D%22Vector%22 d%3D%22M14.0812 9.66902L6.58119 2.16902C6.53813 2.12351 6.48638 2.0871 6.429 2.06193C6.37162 2.03677 6.30978 2.02336 6.24713 2.0225C6.18448 2.02165 6.1223 2.03336 6.06425 2.05695C6.00621 2.08053 5.95348 2.11552 5.90919 2.15983C5.8649 2.20415 5.82994 2.25689 5.80638 2.31495C5.78282 2.373 5.77113 2.43519 5.77202 2.49784C5.77291 2.56049 5.78634 2.62232 5.81153 2.67969C5.83673 2.73705 5.87316 2.78879 5.91869 2.83183L13.0874 10.0003L5.91869 17.169C5.87316 17.2121 5.83673 17.2638 5.81153 17.3212C5.78634 17.3785 5.77291 17.4404 5.77202 17.503C5.77113 17.5657 5.78282 17.6279 5.80638 17.6859C5.82994 17.744 5.8649 17.7967 5.90919 17.841C5.95348 17.8853 6.00621 17.9203 6.06425 17.9439C6.1223 17.9675 6.18448 17.9792 6.24713 17.9783C6.30978 17.9775 6.37162 17.9641 6.429 17.9389C6.48638 17.9138 6.53813 17.8773 6.58119 17.8318L14.0812 10.3318C14.1691 10.2439 14.2184 10.1247 14.2184 10.0004C14.2184 9.87613 14.1691 9.75692 14.0812 9.66902Z%22 fill%3D%22%230F0F0F%22%2F%3E%0D%3C%2Fg%3E%0D%3C%2Fsvg%3E%0D\")}.icon-webex-left-arrow{background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%3Cg id%3D%22arrow-left%22%3E%0D%3Cpath id%3D%22Vector%22 d%3D%22M5.70746 7.99987L11.3539 2.35352C11.4453 2.25928 11.496 2.13287 11.495 2.00159C11.494 1.8703 11.4414 1.74467 11.3486 1.65183C11.2558 1.55899 11.1301 1.50639 10.9988 1.50539C10.8676 1.50438 10.7411 1.55506 10.6469 1.64647L4.64691 7.64647C4.55316 7.74023 4.50049 7.8674 4.50049 7.99999C4.50049 8.13259 4.55316 8.25975 4.64691 8.35352L10.6469 14.3535C10.6931 14.4011 10.7482 14.439 10.8092 14.4651C10.8702 14.4912 10.9357 14.5049 11.002 14.5054C11.0683 14.5059 11.134 14.4932 11.1954 14.468C11.2567 14.4429 11.3125 14.4058 11.3593 14.3589C11.4062 14.312 11.4433 14.2563 11.4685 14.1949C11.4936 14.1336 11.5063 14.0679 11.5058 14.0016C11.5053 13.9353 11.4916 13.8697 11.4655 13.8088C11.4394 13.7478 11.4015 13.6926 11.3539 13.6465L5.70746 7.99987Z%22 fill%3D%22black%22 fill-opacity%3D%220.95%22%2F%3E%0D%3C%2Fg%3E%0D%3C%2Fsvg%3E%0D\")}.go-back-box{background:white;border-bottom:rgba(0,0,0,.2) 1px solid;height:60px;width:100%;line-height:60px;cursor:pointer}.go-back-box-container{width:95%;margin:auto;display:flex;justify-content:flex-start}.go-back-box-container .icon-webex-left-arrow,.go-back-box-container .go-back-title{display:block;height:60px}.go-back-box-container .go-back-title{line-height:61px}.go-back-title{display:inline-block;margin:0 10px}\n"] }]
2024
+ }], ctorParameters: function () { return [{ type: UserService }, { type: APIService }]; }, propDecorators: { onSave: [{
2025
+ type: Output
2026
+ }], onChange: [{
2027
+ type: Output
2028
+ }], selectDevice: [{
2029
+ type: Output
2030
+ }], goBack: [{
2031
+ type: Output
2032
+ }], token: [{
2033
+ type: Input
2034
+ }], host: [{
2035
+ type: Input
2036
+ }], siteId: [{
2037
+ type: Input
2038
+ }], userId: [{
2039
+ type: Input
2040
+ }], deviceName: [{
2041
+ type: Input
2042
+ }], isLdap: [{
2043
+ type: Input
2044
+ }] } });
2045
+
2046
+ class UserManageModule {
2047
+ }
2048
+ UserManageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserManageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2049
+ UserManageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UserManageModule, declarations: [AppLoaderComponent,
2050
+ UserInfoComponent,
2051
+ NotificationsComponent,
2052
+ PaginationComponent,
2053
+ LazyLoadingSelectComponent,
2054
+ UserManageWidgetComponent,
2055
+ UserCallingComponent,
2056
+ UserCallingExtensionComponent,
2057
+ DeviceListComponent], imports: [CommonModule,
2058
+ BrowserModule,
2059
+ BrowserAnimationsModule,
2060
+ FormsModule,
2061
+ ReactiveFormsModule,
2062
+ HttpClientModule,
2063
+ MaterialModule], exports: [UserManageWidgetComponent] });
2064
+ UserManageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserManageModule, providers: [
2065
+ APIService,
2066
+ UserService,
2067
+ NotificationService,
2068
+ UsersSearchService,
2069
+ RemoveKynFromIBMService,
2070
+ SiteSettingsService,
2071
+ DnsService,
2072
+ LineService,
2073
+ { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }
2074
+ ], imports: [CommonModule,
2075
+ BrowserModule,
2076
+ BrowserAnimationsModule,
2077
+ FormsModule,
2078
+ ReactiveFormsModule,
2079
+ HttpClientModule,
2080
+ MaterialModule] });
2081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserManageModule, decorators: [{
2082
+ type: NgModule,
2083
+ args: [{
2084
+ declarations: [
2085
+ AppLoaderComponent,
2086
+ UserInfoComponent,
2087
+ NotificationsComponent,
2088
+ PaginationComponent,
2089
+ LazyLoadingSelectComponent,
2090
+ UserManageWidgetComponent,
2091
+ UserCallingComponent,
2092
+ UserCallingExtensionComponent,
2093
+ DeviceListComponent
2094
+ ],
2095
+ imports: [
2096
+ CommonModule,
2097
+ BrowserModule,
2098
+ BrowserAnimationsModule,
2099
+ FormsModule,
2100
+ ReactiveFormsModule,
2101
+ HttpClientModule,
2102
+ MaterialModule,
2103
+ ],
2104
+ providers: [
2105
+ APIService,
2106
+ UserService,
2107
+ NotificationService,
2108
+ UsersSearchService,
2109
+ RemoveKynFromIBMService,
2110
+ SiteSettingsService,
2111
+ DnsService,
2112
+ LineService,
2113
+ { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }
2114
+ ],
2115
+ exports: [UserManageWidgetComponent]
2116
+ }]
2117
+ }] });
2118
+
2119
+ /**
2120
+ * Generated bundle index. Do not edit.
2121
+ */
2122
+
2123
+ export { APIService, SiteSettingsService, UserManageModule, UserManageWidgetComponent, UserService, UtilsService };
2124
+ //# sourceMappingURL=tuki-io-tuki-widgets-user-manage.mjs.map