@tuki-io/tuki-widgets 0.0.219-dev.6 → 0.0.219-dev.62

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 (261) hide show
  1. package/contact-center/cc-import/cc-import.module.d.ts +13 -0
  2. package/contact-center/cc-import/cc-import.service.d.ts +85 -0
  3. package/contact-center/cc-import/components/import-contact-center-panel/import-contact-center-panel.component.d.ts +56 -0
  4. package/contact-center/cc-import/components/import-contact-center-wizard/import-contact-center-wizard.component.d.ts +77 -0
  5. package/contact-center/cc-import/components/import-contact-center-wizard/import-contact-center-wizard.types.d.ts +3 -0
  6. package/contact-center/cc-import/constants/cc-import.constants.d.ts +37 -0
  7. package/contact-center/cc-import/mock/cc-import.mock.d.ts +4 -0
  8. package/contact-center/cc-import/types/cc-import.d.ts +73 -0
  9. package/contact-center/cc-import/types/uccx.d.ts +109 -0
  10. package/contact-center/cc-readiness/cc-readiness.module.d.ts +3 -3
  11. package/contact-center/public-api.d.ts +8 -0
  12. package/contact-center/shared/api.endpoints.d.ts +25 -0
  13. package/contact-center/shared/api.service.d.ts +3 -1
  14. package/contact-center/shared/components/card/card.component.d.ts +13 -0
  15. package/contact-center/shared/dcp-api.service.d.ts +15 -0
  16. package/contact-center/shared/shared.module.d.ts +11 -5
  17. package/di2mt/api/api.endpoints.d.ts +3 -0
  18. package/esm2020/contact-center/cc-import/cc-import.module.mjs +45 -0
  19. package/esm2020/contact-center/cc-import/cc-import.service.mjs +228 -0
  20. package/esm2020/contact-center/cc-import/components/import-contact-center-panel/import-contact-center-panel.component.mjs +144 -0
  21. package/esm2020/contact-center/cc-import/components/import-contact-center-wizard/import-contact-center-wizard.component.mjs +243 -0
  22. package/esm2020/contact-center/cc-import/components/import-contact-center-wizard/import-contact-center-wizard.types.mjs +3 -0
  23. package/esm2020/contact-center/cc-import/constants/cc-import.constants.mjs +62 -0
  24. package/esm2020/contact-center/cc-import/mock/cc-import.mock.mjs +78 -0
  25. package/esm2020/contact-center/cc-import/types/cc-import.mjs +2 -0
  26. package/esm2020/contact-center/cc-import/types/uccx.mjs +24 -0
  27. package/esm2020/contact-center/cc-readiness/cc-readiness.module.mjs +7 -6
  28. package/esm2020/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.mjs +5 -5
  29. package/esm2020/contact-center/cc-readiness/widgets/summary-grid/summary-grid.component.mjs +2 -2
  30. package/esm2020/contact-center/public-api.mjs +9 -1
  31. package/esm2020/contact-center/shared/api.endpoints.mjs +26 -1
  32. package/esm2020/contact-center/shared/api.service.mjs +8 -3
  33. package/esm2020/contact-center/shared/components/card/card.component.mjs +24 -0
  34. package/esm2020/contact-center/shared/dcp-api.service.mjs +26 -0
  35. package/esm2020/contact-center/shared/shared.module.mjs +15 -5
  36. package/esm2020/di2mt/api/api.endpoints.mjs +4 -1
  37. package/esm2020/locations/public-api.mjs +8 -0
  38. package/esm2020/locations/src/app.constants.mjs +18 -0
  39. package/esm2020/locations/src/location-confirm-dialog/location-confirm-dialog.component.mjs +23 -0
  40. package/esm2020/locations/src/locations.component.mjs +398 -0
  41. package/esm2020/locations/src/locations.module.mjs +42 -0
  42. package/esm2020/locations/src/material.module.mjs +55 -0
  43. package/esm2020/locations/src/services/api.service.mjs +67 -0
  44. package/esm2020/locations/src/services/locations.service.mjs +69 -0
  45. package/esm2020/locations/src/types/location.mjs +2 -0
  46. package/esm2020/locations/src/utils/app-loader/app-loader.mjs +14 -0
  47. package/esm2020/locations/tuki-io-tuki-widgets-locations.mjs +5 -0
  48. package/esm2020/meetings/public-api.mjs +8 -0
  49. package/esm2020/meetings/src/app.constants.mjs +9 -0
  50. package/esm2020/meetings/src/components/live-meetings/live-meeting/live-meeting.component.mjs +107 -0
  51. package/esm2020/meetings/src/components/live-meetings/live-meetings.component.mjs +98 -0
  52. package/esm2020/meetings/src/components/meeting-spaces/meeting-space/meeting-space.component.mjs +110 -0
  53. package/esm2020/meetings/src/components/meeting-spaces/meeting-spaces.component.mjs +65 -0
  54. package/esm2020/meetings/src/material.module.mjs +76 -0
  55. package/esm2020/meetings/src/meetings.component.mjs +65 -0
  56. package/esm2020/meetings/src/meetings.module.mjs +51 -0
  57. package/esm2020/meetings/src/services/api.service.mjs +67 -0
  58. package/esm2020/meetings/src/services/live-meetings.service.mjs +178 -0
  59. package/esm2020/meetings/src/services/meeting-spaces.service.mjs +102 -0
  60. package/esm2020/meetings/src/types/live-meeting.mjs +2 -0
  61. package/esm2020/meetings/src/types/meeting-space.mjs +2 -0
  62. package/esm2020/meetings/src/utils/app-loader/app-loader.mjs +14 -0
  63. package/esm2020/meetings/tuki-io-tuki-widgets-meetings.mjs +5 -0
  64. package/esm2020/shared/public-api.mjs +4 -0
  65. package/esm2020/shared/src/ui/material.module.mjs +188 -0
  66. package/esm2020/shared/src/ui/shared.module.mjs +36 -0
  67. package/esm2020/shared/src/ui/tk-page-section/tk-page-section.component.mjs +13 -0
  68. package/esm2020/shared/src/ui/tk-page-section-row/tk-page-section-row.component.mjs +13 -0
  69. package/esm2020/shared/src/ui/ui.module.mjs +37 -0
  70. package/esm2020/shared/tuki-io-tuki-widgets-shared.mjs +5 -0
  71. package/esm2020/user-creation/src/utils/device-default-prefix.mjs +19 -2
  72. package/esm2020/user-creation/src/utils/device-name-dynamic-tokens.mjs +4 -0
  73. package/esm2020/user-creation/src/utils/parse-device-name-rule.mjs +6 -3
  74. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.mjs +60 -13
  75. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +2 -1
  76. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +8 -6
  77. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.mjs +13 -9
  78. package/esm2020/user-device-manage/public-api.mjs +4 -1
  79. package/esm2020/user-device-manage/src/app.constants.mjs +9 -3
  80. package/esm2020/user-device-manage/src/associate-lines/associate-lines.component.mjs +311 -0
  81. package/esm2020/user-device-manage/src/classes/device.mjs +1 -1
  82. package/esm2020/user-device-manage/src/classes/deviceProfile.mjs +1 -1
  83. package/esm2020/user-device-manage/src/classes/simplified-user.mjs +1 -1
  84. package/esm2020/user-device-manage/src/confirm-dialog/info-dialog.component.mjs +2 -2
  85. package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +34 -17
  86. package/esm2020/user-device-manage/src/device-settings/device-settings.component.mjs +207 -0
  87. package/esm2020/user-device-manage/src/line-key-config/line-key-config.component.mjs +401 -0
  88. package/esm2020/user-device-manage/src/services/device.service.mjs +32 -2
  89. package/esm2020/user-device-manage/src/services/user.service.mjs +34 -6
  90. package/esm2020/user-device-manage/src/user-device-manage.module.mjs +19 -7
  91. package/esm2020/user-manage/src/app.constants.mjs +8 -1
  92. package/esm2020/user-manage/src/classes/simplified-user.mjs +19 -4
  93. package/esm2020/user-manage/src/device-list/device-list.component.mjs +7 -4
  94. package/esm2020/user-manage/src/device-list/device-row/device-row.component.mjs +6 -3
  95. package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +9 -5
  96. package/esm2020/user-manage/src/material.module.mjs +21 -7
  97. package/esm2020/user-manage/src/services/dcp-api.service.mjs +79 -0
  98. package/esm2020/user-manage/src/services/site-settings.service.mjs +11 -4
  99. package/esm2020/user-manage/src/services/user.service.mjs +94 -19
  100. package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +12 -7
  101. package/esm2020/user-manage/src/user-manage-widget.component.mjs +90 -39
  102. package/esm2020/user-manage/src/user-manage.module.mjs +14 -4
  103. package/esm2020/user-manage/src/user-summary/user-summary.component.mjs +30 -0
  104. package/esm2020/users-list/src/app.constants.mjs +2 -1
  105. package/esm2020/users-list/src/classes/simlified-user.mjs +1 -1
  106. package/esm2020/users-list/src/classes/user-list.mjs +2 -1
  107. package/esm2020/users-list/src/components/table-toolbar/table-toolbar.component.mjs +3 -3
  108. package/esm2020/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.mjs +14 -3
  109. package/esm2020/users-list/src/move-user-wizard/move-user-wizard.component.mjs +5 -3
  110. package/esm2020/users-list/src/users-list.component.mjs +100 -17
  111. package/esm2020/workspaces/public-api.mjs +8 -0
  112. package/esm2020/workspaces/src/app.constants.mjs +27 -0
  113. package/esm2020/workspaces/src/components/workspace-confirm-dialog/workspace-confirm-dialog.component.mjs +32 -0
  114. package/esm2020/workspaces/src/components/workspace-detail/workspace-detail.component.mjs +96 -0
  115. package/esm2020/workspaces/src/components/workspace-device-detail/workspace-device-detail.component.mjs +66 -0
  116. package/esm2020/workspaces/src/components/workspaces-filters/workspaces-filters.component.mjs +56 -0
  117. package/esm2020/workspaces/src/components/workspaces-table/workspaces-table.component.mjs +130 -0
  118. package/esm2020/workspaces/src/material.module.mjs +83 -0
  119. package/esm2020/workspaces/src/services/api-webex.service.mjs +14 -0
  120. package/esm2020/workspaces/src/services/api.service.mjs +67 -0
  121. package/esm2020/workspaces/src/services/workspace-detail.service.mjs +169 -0
  122. package/esm2020/workspaces/src/services/workspaces-migration.service.mjs +59 -0
  123. package/esm2020/workspaces/src/services/workspaces.service.mjs +152 -0
  124. package/esm2020/workspaces/src/types/workspace.mjs +4 -0
  125. package/esm2020/workspaces/src/utils/app-loader/app-loader.mjs +14 -0
  126. package/esm2020/workspaces/src/utils/device-icon.mjs +13 -0
  127. package/esm2020/workspaces/src/utils/workspace-name.mjs +8 -0
  128. package/esm2020/workspaces/src/workspaces.component.mjs +322 -0
  129. package/esm2020/workspaces/src/workspaces.module.mjs +54 -0
  130. package/esm2020/workspaces/tuki-io-tuki-widgets-workspaces.mjs +5 -0
  131. package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs +998 -127
  132. package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs.map +1 -1
  133. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +3 -0
  134. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
  135. package/fesm2015/tuki-io-tuki-widgets-locations.mjs +679 -0
  136. package/fesm2015/tuki-io-tuki-widgets-locations.mjs.map +1 -0
  137. package/fesm2015/tuki-io-tuki-widgets-meetings.mjs +894 -0
  138. package/fesm2015/tuki-io-tuki-widgets-meetings.mjs.map +1 -0
  139. package/fesm2015/tuki-io-tuki-widgets-shared.mjs +280 -0
  140. package/fesm2015/tuki-io-tuki-widgets-shared.mjs.map +1 -0
  141. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +111 -32
  142. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
  143. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +1013 -48
  144. package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
  145. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +380 -89
  146. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
  147. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +121 -22
  148. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
  149. package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs +1292 -0
  150. package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs.map +1 -0
  151. package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs +989 -127
  152. package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs.map +1 -1
  153. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +3 -0
  154. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
  155. package/fesm2020/tuki-io-tuki-widgets-locations.mjs +672 -0
  156. package/fesm2020/tuki-io-tuki-widgets-locations.mjs.map +1 -0
  157. package/fesm2020/tuki-io-tuki-widgets-meetings.mjs +902 -0
  158. package/fesm2020/tuki-io-tuki-widgets-meetings.mjs.map +1 -0
  159. package/fesm2020/tuki-io-tuki-widgets-shared.mjs +280 -0
  160. package/fesm2020/tuki-io-tuki-widgets-shared.mjs.map +1 -0
  161. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +104 -28
  162. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
  163. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +996 -47
  164. package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
  165. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +366 -82
  166. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
  167. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +120 -22
  168. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
  169. package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs +1294 -0
  170. package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs.map +1 -0
  171. package/locations/index.d.ts +5 -0
  172. package/locations/public-api.d.ts +2 -0
  173. package/locations/src/app.constants.d.ts +10 -0
  174. package/locations/src/location-confirm-dialog/location-confirm-dialog.component.d.ts +15 -0
  175. package/locations/src/locations.component.d.ts +92 -0
  176. package/locations/src/locations.module.d.ts +13 -0
  177. package/locations/src/material.module.d.ts +12 -0
  178. package/locations/src/services/api.service.d.ts +18 -0
  179. package/locations/src/services/locations.service.d.ts +25 -0
  180. package/locations/src/types/location.d.ts +30 -0
  181. package/locations/src/utils/app-loader/app-loader.d.ts +6 -0
  182. package/meetings/index.d.ts +5 -0
  183. package/meetings/public-api.d.ts +2 -0
  184. package/meetings/src/app.constants.d.ts +8 -0
  185. package/meetings/src/components/live-meetings/live-meeting/live-meeting.component.d.ts +34 -0
  186. package/meetings/src/components/live-meetings/live-meetings.component.d.ts +43 -0
  187. package/meetings/src/components/meeting-spaces/meeting-space/meeting-space.component.d.ts +39 -0
  188. package/meetings/src/components/meeting-spaces/meeting-spaces.component.d.ts +27 -0
  189. package/meetings/src/material.module.d.ts +15 -0
  190. package/meetings/src/meetings.component.d.ts +29 -0
  191. package/meetings/src/meetings.module.d.ts +16 -0
  192. package/meetings/src/services/api.service.d.ts +18 -0
  193. package/meetings/src/services/live-meetings.service.d.ts +9 -0
  194. package/meetings/src/services/meeting-spaces.service.d.ts +16 -0
  195. package/meetings/src/types/live-meeting.d.ts +71 -0
  196. package/meetings/src/types/meeting-space.d.ts +52 -0
  197. package/meetings/src/utils/app-loader/app-loader.d.ts +6 -0
  198. package/package.json +33 -1
  199. package/shared/index.d.ts +5 -0
  200. package/shared/public-api.d.ts +3 -0
  201. package/shared/src/ui/material.module.d.ts +28 -0
  202. package/shared/src/ui/shared.module.d.ts +10 -0
  203. package/{user-device-manage/src/shared/tk-page-section/page-section.component.d.ts → shared/src/ui/tk-page-section/tk-page-section.component.d.ts} +1 -1
  204. package/shared/src/ui/tk-page-section-row/tk-page-section-row.component.d.ts +6 -0
  205. package/shared/src/ui/ui.module.d.ts +11 -0
  206. package/user-creation/src/utils/device-default-prefix.d.ts +7 -2
  207. package/user-creation/src/utils/device-name-dynamic-tokens.d.ts +1 -0
  208. package/user-creation/src/utils/parse-device-name-rule.d.ts +1 -0
  209. package/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.d.ts +2 -0
  210. package/user-device-manage/public-api.d.ts +3 -0
  211. package/user-device-manage/src/app.constants.d.ts +6 -0
  212. package/user-device-manage/src/associate-lines/associate-lines.component.d.ts +95 -0
  213. package/user-device-manage/src/classes/device.d.ts +15 -0
  214. package/user-device-manage/src/classes/deviceProfile.d.ts +5 -0
  215. package/user-device-manage/src/classes/simplified-user.d.ts +1 -1
  216. package/user-device-manage/src/device-associated-line/device-associated-line.component.d.ts +1 -0
  217. package/user-device-manage/src/device-manage-widget.component.d.ts +6 -1
  218. package/user-device-manage/src/device-settings/device-settings.component.d.ts +53 -0
  219. package/user-device-manage/src/line-key-config/line-key-config.component.d.ts +84 -0
  220. package/user-device-manage/src/services/device.service.d.ts +6 -1
  221. package/user-device-manage/src/services/user.service.d.ts +2 -1
  222. package/user-device-manage/src/user-device-manage.module.d.ts +12 -10
  223. package/user-manage/src/app.constants.d.ts +7 -0
  224. package/user-manage/src/classes/simplified-user.d.ts +17 -1
  225. package/user-manage/src/device-list/device-list.component.d.ts +2 -0
  226. package/user-manage/src/material.module.d.ts +3 -1
  227. package/user-manage/src/services/dcp-api.service.d.ts +21 -0
  228. package/user-manage/src/services/user.service.d.ts +19 -1
  229. package/user-manage/src/user-calling/user-calling.component.d.ts +3 -2
  230. package/user-manage/src/user-manage-widget.component.d.ts +14 -2
  231. package/user-manage/src/user-manage.module.d.ts +9 -7
  232. package/user-manage/src/user-summary/user-summary.component.d.ts +10 -0
  233. package/users-list/src/app.constants.d.ts +1 -0
  234. package/users-list/src/classes/simlified-user.d.ts +1 -1
  235. package/users-list/src/classes/user-list.d.ts +4 -0
  236. package/users-list/src/move-user-wizard/move-user-stepper/move-user-stepper.component.d.ts +3 -1
  237. package/users-list/src/move-user-wizard/move-user-wizard.component.d.ts +2 -1
  238. package/users-list/src/users-list.component.d.ts +6 -1
  239. package/workspaces/index.d.ts +5 -0
  240. package/workspaces/public-api.d.ts +2 -0
  241. package/workspaces/src/app.constants.d.ts +25 -0
  242. package/workspaces/src/components/workspace-confirm-dialog/workspace-confirm-dialog.component.d.ts +20 -0
  243. package/workspaces/src/components/workspace-detail/workspace-detail.component.d.ts +34 -0
  244. package/workspaces/src/components/workspace-device-detail/workspace-device-detail.component.d.ts +25 -0
  245. package/workspaces/src/components/workspaces-filters/workspaces-filters.component.d.ts +20 -0
  246. package/workspaces/src/components/workspaces-table/workspaces-table.component.d.ts +43 -0
  247. package/workspaces/src/material.module.d.ts +16 -0
  248. package/workspaces/src/services/api-webex.service.d.ts +6 -0
  249. package/workspaces/src/services/api.service.d.ts +18 -0
  250. package/workspaces/src/services/workspace-detail.service.d.ts +22 -0
  251. package/workspaces/src/services/workspaces-migration.service.d.ts +18 -0
  252. package/workspaces/src/services/workspaces.service.d.ts +11 -0
  253. package/workspaces/src/types/workspace.d.ts +439 -0
  254. package/workspaces/src/utils/app-loader/app-loader.d.ts +6 -0
  255. package/workspaces/src/utils/device-icon.d.ts +1 -0
  256. package/workspaces/src/utils/workspace-name.d.ts +1 -0
  257. package/workspaces/src/workspaces.component.d.ts +75 -0
  258. package/workspaces/src/workspaces.module.d.ts +17 -0
  259. package/contact-center/cc-readiness/components/card/card.component.d.ts +0 -6
  260. package/esm2020/contact-center/cc-readiness/components/card/card.component.mjs +0 -13
  261. package/esm2020/user-device-manage/src/shared/tk-page-section/page-section.component.mjs +0 -13
@@ -0,0 +1,672 @@
1
+ import * as i4 from '@angular/common';
2
+ import { CommonModule } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { NgModule, Component, ViewEncapsulation, Inject, Injectable, EventEmitter, Input, Output } from '@angular/core';
5
+ import * as i1$1 from '@angular/common/http';
6
+ import { HttpHeaders, HttpClientModule } from '@angular/common/http';
7
+ import * as i5 from '@angular/forms';
8
+ import { FormsModule } from '@angular/forms';
9
+ import * as i6 from '@angular/material/button';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import * as i1 from '@angular/material/dialog';
12
+ import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
13
+ import * as i7 from '@angular/material/icon';
14
+ import { MatIconModule } from '@angular/material/icon';
15
+ import * as i8 from '@angular/material/menu';
16
+ import { MatMenuModule } from '@angular/material/menu';
17
+ import * as i1$2 from '@angular/material/progress-spinner';
18
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
19
+ import * as i10 from '@angular/material/tooltip';
20
+ import { MatTooltipModule } from '@angular/material/tooltip';
21
+ import { map } from 'rxjs/operators';
22
+
23
+ class MaterialModule {
24
+ }
25
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatButtonModule,
27
+ MatDialogModule,
28
+ MatIconModule,
29
+ MatMenuModule,
30
+ MatProgressSpinnerModule,
31
+ MatTooltipModule], exports: [MatButtonModule,
32
+ MatDialogModule,
33
+ MatIconModule,
34
+ MatMenuModule,
35
+ MatProgressSpinnerModule,
36
+ MatTooltipModule] });
37
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, imports: [MatButtonModule,
38
+ MatDialogModule,
39
+ MatIconModule,
40
+ MatMenuModule,
41
+ MatProgressSpinnerModule,
42
+ MatTooltipModule, MatButtonModule,
43
+ MatDialogModule,
44
+ MatIconModule,
45
+ MatMenuModule,
46
+ MatProgressSpinnerModule,
47
+ MatTooltipModule] });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MaterialModule, decorators: [{
49
+ type: NgModule,
50
+ args: [{
51
+ imports: [
52
+ MatButtonModule,
53
+ MatDialogModule,
54
+ MatIconModule,
55
+ MatMenuModule,
56
+ MatProgressSpinnerModule,
57
+ MatTooltipModule,
58
+ ],
59
+ exports: [
60
+ MatButtonModule,
61
+ MatDialogModule,
62
+ MatIconModule,
63
+ MatMenuModule,
64
+ MatProgressSpinnerModule,
65
+ MatTooltipModule,
66
+ ]
67
+ }]
68
+ }] });
69
+
70
+ class LocationConfirmDialogComponent {
71
+ constructor(dialogRef, data) {
72
+ this.dialogRef = dialogRef;
73
+ this.data = data;
74
+ }
75
+ onClose(result) {
76
+ this.dialogRef.close(result);
77
+ }
78
+ }
79
+ LocationConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
80
+ LocationConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LocationConfirmDialogComponent, selector: "tk-location-confirm-dialog", ngImport: i0, template: "<div class=\"tk-location-confirm-dialog\" role=\"dialog\" aria-labelledby=\"tk-location-confirm-dialog-title\">\r\n <h3 id=\"tk-location-confirm-dialog-title\" class=\"tk-location-confirm-dialog__title\">{{ data.title }}</h3>\r\n <div mat-dialog-content class=\"tk-location-confirm-dialog__content\" [innerHTML]=\"data.message\"></div>\r\n <div mat-dialog-actions class=\"tk-location-confirm-dialog__actions\">\r\n <button type=\"button\" class=\"tk-location-confirm-dialog__button tk-location-confirm-dialog__button--cancel\" (click)=\"onClose(false)\">\r\n Cancel\r\n </button>\r\n <button type=\"button\" class=\"tk-location-confirm-dialog__button tk-location-confirm-dialog__button--confirm\" (click)=\"onClose(true)\">\r\n {{ data.confirmButtonText }}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".tk-location-confirm-dialog-panel .mat-dialog-container{padding:24px;border-radius:8px;background:#fff;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.tk-location-confirm-dialog-backdrop{background:rgba(0,0,0,.32)}.tk-location-confirm-dialog{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;width:400px;box-sizing:border-box;padding:0 0 16px}.tk-location-confirm-dialog__title{text-align:left;font-weight:600;font-size:16px;margin:0 0 20px}.tk-location-confirm-dialog__content{color:#000000b3;font-size:14px}.tk-location-confirm-dialog__content p{margin:0 0 12px}.tk-location-confirm-dialog__actions{display:flex;justify-content:flex-end;gap:12px;padding:0}.tk-location-confirm-dialog__button{height:32px;padding:0 16px;border-radius:50px;box-shadow:none;border:none;font-size:14px;font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:pointer}.tk-location-confirm-dialog__button--cancel{border:1px solid rgba(0,0,0,.5);color:#000;background:#fff}.tk-location-confirm-dialog__button--confirm{background:#000;color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }], encapsulation: i0.ViewEncapsulation.None });
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationConfirmDialogComponent, decorators: [{
82
+ type: Component,
83
+ args: [{ selector: 'tk-location-confirm-dialog', encapsulation: ViewEncapsulation.None, template: "<div class=\"tk-location-confirm-dialog\" role=\"dialog\" aria-labelledby=\"tk-location-confirm-dialog-title\">\r\n <h3 id=\"tk-location-confirm-dialog-title\" class=\"tk-location-confirm-dialog__title\">{{ data.title }}</h3>\r\n <div mat-dialog-content class=\"tk-location-confirm-dialog__content\" [innerHTML]=\"data.message\"></div>\r\n <div mat-dialog-actions class=\"tk-location-confirm-dialog__actions\">\r\n <button type=\"button\" class=\"tk-location-confirm-dialog__button tk-location-confirm-dialog__button--cancel\" (click)=\"onClose(false)\">\r\n Cancel\r\n </button>\r\n <button type=\"button\" class=\"tk-location-confirm-dialog__button tk-location-confirm-dialog__button--confirm\" (click)=\"onClose(true)\">\r\n {{ data.confirmButtonText }}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".tk-location-confirm-dialog-panel .mat-dialog-container{padding:24px;border-radius:8px;background:#fff;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.tk-location-confirm-dialog-backdrop{background:rgba(0,0,0,.32)}.tk-location-confirm-dialog{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;width:400px;box-sizing:border-box;padding:0 0 16px}.tk-location-confirm-dialog__title{text-align:left;font-weight:600;font-size:16px;margin:0 0 20px}.tk-location-confirm-dialog__content{color:#000000b3;font-size:14px}.tk-location-confirm-dialog__content p{margin:0 0 12px}.tk-location-confirm-dialog__actions{display:flex;justify-content:flex-end;gap:12px;padding:0}.tk-location-confirm-dialog__button{height:32px;padding:0 16px;border-radius:50px;box-shadow:none;border:none;font-size:14px;font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:pointer}.tk-location-confirm-dialog__button--cancel{border:1px solid rgba(0,0,0,.5);color:#000;background:#fff}.tk-location-confirm-dialog__button--confirm{background:#000;color:#fff}\n"] }]
84
+ }], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
85
+ type: Inject,
86
+ args: [MAT_DIALOG_DATA]
87
+ }] }]; } });
88
+
89
+ class APIService {
90
+ constructor(httpClient) {
91
+ this.httpClient = httpClient;
92
+ }
93
+ fetch(url, params, cache) {
94
+ const headers = this.getHeaders(cache);
95
+ params = params || {};
96
+ return this.httpClient.get(this.apiUrl + url, { params: this.prepareEncodedParams(params), headers });
97
+ }
98
+ post(url, body, params = {}) {
99
+ body = body || null;
100
+ const headers = this.getHeaders();
101
+ return this.httpClient.post(this.apiUrl + url, body, { params: this.prepareEncodedParams(params), headers });
102
+ }
103
+ put(url, body = null, params = {}) {
104
+ const headers = this.getHeaders();
105
+ return this.httpClient.put(this.apiUrl + url, body, { headers, params: this.prepareEncodedParams(params) });
106
+ }
107
+ delete(url, params = {}) {
108
+ const headers = this.getHeaders();
109
+ return this.httpClient.delete(this.apiUrl + url, { headers, params: this.prepareEncodedParams(params) });
110
+ }
111
+ prepareEncodedParams(params) {
112
+ const result = {};
113
+ if (!params) {
114
+ return {};
115
+ }
116
+ for (const key of Object.keys(params)) {
117
+ if (params[key]) {
118
+ const stringParam = params[key].toString();
119
+ result[key] = stringParam.includes('+') ? encodeURIComponent(stringParam) : stringParam;
120
+ }
121
+ }
122
+ return result;
123
+ }
124
+ getHeaders(cache) {
125
+ let headers = new HttpHeaders();
126
+ if (cache) {
127
+ headers = headers.append('_Cache', 'true ');
128
+ }
129
+ const token = this.token || this.getParameterByName('token');
130
+ headers = headers.append('Authorization', 'Bearer ' + token);
131
+ return headers;
132
+ }
133
+ getParameterByName(name, url = window.location.href) {
134
+ name = name.replace(/[\[\]]/g, '\\$&');
135
+ var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url);
136
+ if (!results)
137
+ return null;
138
+ if (!results[2])
139
+ return '';
140
+ return decodeURIComponent(results[2].replace(/\+/g, ' '));
141
+ }
142
+ }
143
+ APIService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
144
+ APIService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, providedIn: 'root' });
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APIService, decorators: [{
146
+ type: Injectable,
147
+ args: [{
148
+ providedIn: 'root'
149
+ }]
150
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
151
+
152
+ const API = {
153
+ SITES_LOCATIONS: {
154
+ // Returns every site for the customer paired with its mapped Control Hub
155
+ // location (or null when the site hasn't been migrated yet) — this is the
156
+ // source of truth for siteId, superseding the old LOCATIONS.GET_ALL
157
+ // endpoint, which only listed already-mapped locations and exposed no siteId.
158
+ GET_ALL: "/api/webex/configuration/customers/:customerId/siteslocations",
159
+ },
160
+ SITE_MIGRATION: {
161
+ MIGRATE_SITE: "/api/migration/WEBEX/sites/:siteId/migrate",
162
+ BATCH_STATUS: "/api/migration/webex/customer/:customerId/batchesstatus",
163
+ // Pre-existing migration batches for the customer, matched to a site by
164
+ // siteId. Reachable through the same exHost/webex gateway as everything
165
+ // else in this service — no separate host needed.
166
+ GET_BATCH_SITES: "/api/e2emigration/batch/:customerId/Sites",
167
+ },
168
+ };
169
+
170
+ function toLocationAddress(raw) {
171
+ return {
172
+ address1: raw?.address1 || '',
173
+ address2: raw?.address2 || '',
174
+ city: raw?.city || '',
175
+ state: raw?.state || '',
176
+ postalCode: raw?.postalCode || '',
177
+ country: raw?.country || '',
178
+ countryName: raw?.countryName || raw?.country || '',
179
+ };
180
+ }
181
+ function toLocation(raw) {
182
+ return {
183
+ id: String(raw?.id ?? ''),
184
+ name: raw?.name || '',
185
+ timeZone: raw?.timeZone || '',
186
+ address: toLocationAddress(raw?.address),
187
+ // Every location returned by this endpoint is a Webex Control Hub location.
188
+ provisioningType: raw?.provisioningType || 'WEBEX',
189
+ hasPendingActions: !!raw?.hasPendingActions,
190
+ };
191
+ }
192
+ function toSite(raw) {
193
+ return {
194
+ id: Number(raw?.id),
195
+ name: raw?.name || '',
196
+ };
197
+ }
198
+ function toSiteLocation(raw) {
199
+ return {
200
+ site: toSite(raw?.site),
201
+ location: raw?.location ? toLocation(raw.location) : null,
202
+ };
203
+ }
204
+ class LocationsService {
205
+ constructor(apiService) {
206
+ this.apiService = apiService;
207
+ }
208
+ fetchSiteLocations(customerId) {
209
+ const url = API.SITES_LOCATIONS.GET_ALL.replace(':customerId', String(customerId));
210
+ return this.apiService.fetch(url).pipe(map((response) => (Array.isArray(response) ? response : []).map(toSiteLocation)));
211
+ }
212
+ migrateSite(siteId, batchId) {
213
+ const url = API.SITE_MIGRATION.MIGRATE_SITE.replace(':siteId', String(siteId));
214
+ return this.apiService.post(url, {}, batchId != null ? { batchId } : {});
215
+ }
216
+ getBatchSites(customerId) {
217
+ const url = API.SITE_MIGRATION.GET_BATCH_SITES.replace(':customerId', String(customerId));
218
+ return this.apiService.fetch(url).pipe(map((response) => (Array.isArray(response) ? response : [])));
219
+ }
220
+ getMigrationBatchStatuses(customerId, batchIds) {
221
+ const url = API.SITE_MIGRATION.BATCH_STATUS.replace(':customerId', String(customerId));
222
+ return this.apiService.post(url, batchIds);
223
+ }
224
+ }
225
+ LocationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsService, deps: [{ token: APIService }], target: i0.ɵɵFactoryTarget.Injectable });
226
+ LocationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsService, providedIn: 'root' });
227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsService, decorators: [{
228
+ type: Injectable,
229
+ args: [{
230
+ providedIn: 'root'
231
+ }]
232
+ }], ctorParameters: function () { return [{ type: APIService }]; } });
233
+
234
+ class AppLoaderComponent {
235
+ constructor() {
236
+ }
237
+ }
238
+ AppLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
239
+ 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]=\"70\"\r\n strokeWidth=\"3\"></mat-progress-spinner>\r\n</div>\r\n", styles: [".overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff3;z-index:200}.mat-progress-spinner circle,.mat-spinner circle{stroke:#000!important}\n"], dependencies: [{ kind: "component", type: i1$2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], encapsulation: i0.ViewEncapsulation.None });
240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppLoaderComponent, decorators: [{
241
+ type: Component,
242
+ 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]=\"70\"\r\n strokeWidth=\"3\"></mat-progress-spinner>\r\n</div>\r\n", styles: [".overlay{position:fixed;width:100%;height:100%;inset:0;background-color:#fff3;z-index:200}.mat-progress-spinner circle,.mat-spinner circle{stroke:#000!important}\n"] }]
243
+ }], ctorParameters: function () { return []; } });
244
+
245
+ const MIGRATION_POLL_INTERVAL_MS = 10000;
246
+ const PAGE_SIZE_OPTIONS = [10, 25, 50];
247
+ class LocationsComponent {
248
+ constructor(apiService, locationsService, dialog) {
249
+ this.apiService = apiService;
250
+ this.locationsService = locationsService;
251
+ this.dialog = dialog;
252
+ this.openLocation = new EventEmitter();
253
+ this.editLocation = new EventEmitter();
254
+ this.removeLocation = new EventEmitter();
255
+ this.addLocation = new EventEmitter();
256
+ this.importLocations = new EventEmitter();
257
+ // Every site for the customer, each paired with its mapped Control Hub
258
+ // location or null — the siteslocations API returns the full, unpaged list,
259
+ // so search/filter/sort/pagination below all run client-side over this.
260
+ this.siteLocations = [];
261
+ this.isLoading = false;
262
+ this.searchTerm = '';
263
+ this.sortDirection = 'asc';
264
+ this.isBannerDismissed = false;
265
+ this.pageSizeOptions = PAGE_SIZE_OPTIONS;
266
+ this.pageIndex = 0;
267
+ this.pageSize = PAGE_SIZE_OPTIONS[0];
268
+ this.isFilterPanelOpen = false;
269
+ this.filters = {
270
+ country: '',
271
+ pendingActions: '',
272
+ status: '',
273
+ };
274
+ this.countryDisplayNames = typeof Intl !== 'undefined' && 'DisplayNames' in Intl
275
+ ? new Intl.DisplayNames(['en'], { type: 'region' })
276
+ : null;
277
+ this.migrationIntervals = new Map();
278
+ this.batchInfoBySiteId = new Map();
279
+ // Same icon set as users-list's "Provisioning Type" column (assets/icons/webex.svg,
280
+ // local_24.svg, di_cloud_24.svg).
281
+ this.provisioningTypeIcons = {
282
+ WEBEX: { src: 'assets/icons/webex.svg', tooltip: 'Webex Calling' },
283
+ UCM: { src: 'assets/icons/local_24.svg', tooltip: 'UCM' },
284
+ DI: { src: 'assets/icons/di_cloud_24.svg', tooltip: 'Webex Calling DI' },
285
+ };
286
+ }
287
+ ngOnInit() {
288
+ this.apiService.token = this.token;
289
+ this.apiService.apiUrl = this.exHost + '/webex';
290
+ this.loadSiteLocations();
291
+ this.loadBatchSites();
292
+ }
293
+ ngOnDestroy() {
294
+ this.migrationIntervals.forEach(interval => clearInterval(interval));
295
+ this.migrationIntervals.clear();
296
+ }
297
+ loadSiteLocations() {
298
+ this.isLoading = true;
299
+ this.locationsService.fetchSiteLocations(this.customerId).subscribe({
300
+ next: (siteLocations) => {
301
+ this.siteLocations = this.applyBatchIds(siteLocations);
302
+ this.isLoading = false;
303
+ },
304
+ error: () => {
305
+ this.isLoading = false;
306
+ },
307
+ });
308
+ }
309
+ // Runs independently of loadSiteLocations() — whichever resolves second
310
+ // re-applies the merge, so batchId ends up set regardless of load order.
311
+ loadBatchSites() {
312
+ this.locationsService.getBatchSites(this.customerId).subscribe({
313
+ next: (batches) => {
314
+ this.batchInfoBySiteId = new Map(batches.map(batch => [batch.siteId, { batchId: batch.id, status: batch.status }]));
315
+ this.siteLocations = this.applyBatchIds(this.siteLocations);
316
+ },
317
+ });
318
+ }
319
+ applyBatchIds(rows) {
320
+ return rows.map(row => {
321
+ const info = this.batchInfoBySiteId.get(row.site.id);
322
+ return { ...row, batchId: info?.batchId, batchStatus: info?.status ?? null };
323
+ });
324
+ }
325
+ get pendingLocations() {
326
+ return this.siteLocations.filter(row => !!row.location?.hasPendingActions);
327
+ }
328
+ get showPendingBanner() {
329
+ return !this.isBannerDismissed && this.pendingLocations.length > 0;
330
+ }
331
+ get countries() {
332
+ return Array.from(new Set(this.siteLocations.map(row => this.countryLabel(row)).filter(Boolean))).sort();
333
+ }
334
+ get statuses() {
335
+ return Array.from(new Set(this.siteLocations.map(row => row.batchStatus).filter((v) => !!v))).sort();
336
+ }
337
+ get filteredRows() {
338
+ const term = this.searchTerm.trim().toLowerCase();
339
+ const filtered = this.siteLocations.filter(row => (!term ||
340
+ this.rowName(row).toLowerCase().includes(term) ||
341
+ this.addressLine(row).toLowerCase().includes(term) ||
342
+ (row.location?.address?.city || '').toLowerCase().includes(term) ||
343
+ (row.location?.address?.state || '').toLowerCase().includes(term) ||
344
+ this.countryLabel(row).toLowerCase().includes(term)) &&
345
+ (!this.filters.country || this.countryLabel(row) === this.filters.country) &&
346
+ (!this.filters.pendingActions || String(!!row.location?.hasPendingActions) === this.filters.pendingActions) &&
347
+ (!this.filters.status || row.batchStatus === this.filters.status));
348
+ return filtered.sort((a, b) => {
349
+ const comparison = this.rowName(a).localeCompare(this.rowName(b));
350
+ return this.sortDirection === 'asc' ? comparison : -comparison;
351
+ });
352
+ }
353
+ get pagedRows() {
354
+ const start = this.pageIndex * this.pageSize;
355
+ return this.filteredRows.slice(start, start + this.pageSize);
356
+ }
357
+ get totalElements() {
358
+ return this.filteredRows.length;
359
+ }
360
+ get pageRangeLabel() {
361
+ if (!this.totalElements) {
362
+ return '0 of 0';
363
+ }
364
+ const start = this.pageIndex * this.pageSize + 1;
365
+ const end = Math.min(this.totalElements, start + this.pagedRows.length - 1);
366
+ return `${start} – ${end} of ${this.totalElements}`;
367
+ }
368
+ get hasPreviousPage() {
369
+ return this.pageIndex > 0;
370
+ }
371
+ get hasNextPage() {
372
+ return (this.pageIndex + 1) * this.pageSize < this.totalElements;
373
+ }
374
+ rowName(row) {
375
+ return row.site.name;
376
+ }
377
+ // Categorizes the free-text batch status into the three states the status
378
+ // dot can show — matched by keyword since the backend uses inconsistent
379
+ // casing/wording ("Finished Successfully", "COMPLETED", "collecting with
380
+ // fixes", "New", "FAILED", ...).
381
+ batchStatusCategory(row) {
382
+ const value = (row.batchStatus || '').toLowerCase();
383
+ if (!value) {
384
+ return '';
385
+ }
386
+ if (value.includes('fail')) {
387
+ return 'failed';
388
+ }
389
+ if (value.includes('complet') || value.includes('finished') || value.includes('success')) {
390
+ return 'success';
391
+ }
392
+ return 'in-progress';
393
+ }
394
+ isSuccessStatus(row) {
395
+ return this.batchStatusCategory(row) === 'success';
396
+ }
397
+ isInProgressStatus(row) {
398
+ return this.batchStatusCategory(row) === 'in-progress';
399
+ }
400
+ isFailedStatus(row) {
401
+ return this.batchStatusCategory(row) === 'failed';
402
+ }
403
+ addressLine(row) {
404
+ if (!row.location) {
405
+ return '';
406
+ }
407
+ return [row.location.address.address1, row.location.address.address2, row.location.address.city]
408
+ .filter(Boolean)
409
+ .join(' - ');
410
+ }
411
+ countryLabel(row) {
412
+ if (!row.location) {
413
+ return '';
414
+ }
415
+ const { countryName, country } = row.location.address;
416
+ if (countryName) {
417
+ return countryName;
418
+ }
419
+ if (!country) {
420
+ return '';
421
+ }
422
+ return this.countryDisplayNames?.of(country) || country;
423
+ }
424
+ provisioningTypeIcon(row) {
425
+ if (!row.location) {
426
+ return null;
427
+ }
428
+ return this.provisioningTypeIcons[row.location.provisioningType] || null;
429
+ }
430
+ onSearchInputChange(event) {
431
+ this.searchTerm = event.target.value;
432
+ this.pageIndex = 0;
433
+ }
434
+ toggleNameSort() {
435
+ this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
436
+ }
437
+ dismissBanner() {
438
+ this.isBannerDismissed = true;
439
+ }
440
+ toggleFilterPanel() {
441
+ this.isFilterPanelOpen = !this.isFilterPanelOpen;
442
+ }
443
+ closeFilterPanel() {
444
+ this.isFilterPanelOpen = false;
445
+ }
446
+ onFilterChange() {
447
+ this.pageIndex = 0;
448
+ }
449
+ clearFilters() {
450
+ this.filters = { country: '', pendingActions: '', status: '' };
451
+ this.pageIndex = 0;
452
+ }
453
+ onPageSizeChange(event) {
454
+ this.pageSize = Number(event.target.value);
455
+ this.pageIndex = 0;
456
+ }
457
+ goToPreviousPage() {
458
+ if (this.hasPreviousPage) {
459
+ this.pageIndex--;
460
+ }
461
+ }
462
+ goToNextPage() {
463
+ if (this.hasNextPage) {
464
+ this.pageIndex++;
465
+ }
466
+ }
467
+ onOpenLocation(row) {
468
+ if (row.location) {
469
+ this.openLocation.emit(row.location.id);
470
+ }
471
+ }
472
+ onEditLocation(row) {
473
+ if (row.location) {
474
+ this.editLocation.emit(row.location.id);
475
+ }
476
+ }
477
+ onRemoveLocation(row) {
478
+ if (row.location) {
479
+ this.removeLocation.emit(row.location.id);
480
+ }
481
+ }
482
+ canMigrateSite(row) {
483
+ return row.migrationStatus !== 'IN_PROGRESS';
484
+ }
485
+ onMigrateSite(row) {
486
+ const dialogRef = this.dialog.open(LocationConfirmDialogComponent, {
487
+ panelClass: 'tk-location-confirm-dialog-panel',
488
+ backdropClass: 'tk-location-confirm-dialog-backdrop',
489
+ data: {
490
+ title: `Migrate ${row.site.name}?`,
491
+ message: `<p>Are you sure you want to migrate <em>${row.site.name}</em> site?</p>`,
492
+ confirmButtonText: 'Yes, migrate',
493
+ },
494
+ });
495
+ dialogRef.afterClosed().subscribe(confirmed => {
496
+ if (confirmed) {
497
+ this.migrateSite(row);
498
+ }
499
+ });
500
+ }
501
+ migrateSite(row) {
502
+ const siteId = row.site.id;
503
+ row.migrationStatus = 'IN_PROGRESS';
504
+ this.locationsService.migrateSite(siteId, row.batchId).subscribe({
505
+ next: (batchId) => {
506
+ if (batchId) {
507
+ this.pollMigrationStatus(siteId, batchId);
508
+ }
509
+ else {
510
+ this.onMigrationComplete(siteId);
511
+ }
512
+ },
513
+ error: () => {
514
+ this.setMigrationStatus(siteId, 'FAILED');
515
+ },
516
+ });
517
+ }
518
+ pollMigrationStatus(siteId, batchId) {
519
+ this.clearMigrationInterval(siteId);
520
+ const poll = () => {
521
+ this.locationsService.getMigrationBatchStatuses(this.customerId, [batchId]).subscribe({
522
+ next: (statuses) => {
523
+ const status = statuses.find(item => item.id === batchId);
524
+ // The batch stops being returned once it's done processing, so its
525
+ // absence here means completion — only its presence with an
526
+ // in-progress status means we should keep polling.
527
+ if (status && status.status === 'In Progress') {
528
+ return;
529
+ }
530
+ this.clearMigrationInterval(siteId);
531
+ if (!status || status.status === 'Completed') {
532
+ this.onMigrationComplete(siteId);
533
+ }
534
+ else {
535
+ this.setMigrationStatus(siteId, 'FAILED');
536
+ }
537
+ },
538
+ error: () => {
539
+ this.clearMigrationInterval(siteId);
540
+ this.setMigrationStatus(siteId, 'FAILED');
541
+ },
542
+ });
543
+ };
544
+ poll();
545
+ this.migrationIntervals.set(siteId, setInterval(poll, MIGRATION_POLL_INTERVAL_MS));
546
+ }
547
+ // Looks the row up by siteId (rather than closing over a row reference) so
548
+ // status updates still land on whatever object is currently in
549
+ // siteLocations, even after loadSiteLocations()/mergeSiteLocations() below
550
+ // have replaced the array with freshly-fetched row objects.
551
+ setMigrationStatus(siteId, status) {
552
+ const row = this.siteLocations.find(item => item.site.id === siteId);
553
+ if (row) {
554
+ row.migrationStatus = status;
555
+ }
556
+ }
557
+ // The migrate/batch-status APIs don't return the newly created location's
558
+ // details, so re-fetch to pick up its mapping, address, timezone, etc.
559
+ onMigrationComplete(siteId) {
560
+ this.setMigrationStatus(siteId, 'COMPLETED');
561
+ this.locationsService.fetchSiteLocations(this.customerId).subscribe({
562
+ next: (fresh) => this.mergeSiteLocations(fresh),
563
+ });
564
+ }
565
+ // Preserves the IN_PROGRESS status of any other site still migrating so a
566
+ // concurrent poll's next tick doesn't land on a row that briefly lost it.
567
+ mergeSiteLocations(fresh) {
568
+ const inProgressSiteIds = new Set(this.siteLocations.filter(row => row.migrationStatus === 'IN_PROGRESS').map(row => row.site.id));
569
+ this.siteLocations = this.applyBatchIds(fresh).map(row => inProgressSiteIds.has(row.site.id) && !row.location
570
+ ? { ...row, migrationStatus: 'IN_PROGRESS' }
571
+ : row);
572
+ }
573
+ clearMigrationInterval(siteId) {
574
+ const interval = this.migrationIntervals.get(siteId);
575
+ if (interval) {
576
+ clearInterval(interval);
577
+ this.migrationIntervals.delete(siteId);
578
+ }
579
+ }
580
+ onAddLocation() {
581
+ this.addLocation.emit();
582
+ }
583
+ onImportLocations() {
584
+ this.importLocations.emit();
585
+ }
586
+ exportLocations() {
587
+ const rows = this.filteredRows.map(row => [
588
+ row.site.name,
589
+ this.addressLine(row),
590
+ this.countryLabel(row),
591
+ row.batchStatus || 'Not migrated',
592
+ ]);
593
+ const csvLines = [
594
+ ['Location Name', 'Address', 'Country/Region', 'Status'],
595
+ ...rows,
596
+ ].map(row => row.map(cell => `"${String(cell).replace(/"/g, '""')}"`).join(','));
597
+ const blob = new Blob([csvLines.join('\n')], { type: 'text/csv;charset=utf-8;' });
598
+ const url = URL.createObjectURL(blob);
599
+ const link = document.createElement('a');
600
+ link.href = url;
601
+ link.download = 'locations.csv';
602
+ link.click();
603
+ URL.revokeObjectURL(url);
604
+ }
605
+ }
606
+ LocationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsComponent, deps: [{ token: APIService }, { token: LocationsService }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
607
+ LocationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LocationsComponent, selector: "tk-locations", inputs: { exHost: "exHost", token: "token", customerId: "customerId" }, outputs: { openLocation: "openLocation", editLocation: "editLocation", removeLocation: "removeLocation", addLocation: "addLocation", importLocations: "importLocations" }, ngImport: i0, template: "<div class=\"tk-locations\">\r\n <app-loader *ngIf=\"isLoading\"></app-loader>\r\n\r\n <div class=\"tk-locations__view-toggle\">\r\n <button type=\"button\" class=\"tk-locations__view-button tk-locations__view-button--active\">\r\n <mat-icon class=\"tk-locations__view-icon\">menu</mat-icon>\r\n List\r\n </button>\r\n <button type=\"button\" class=\"tk-locations__view-button\" disabled title=\"Map view coming soon\">\r\n <mat-icon class=\"tk-locations__view-icon\">place</mat-icon>\r\n Map\r\n </button>\r\n </div>\r\n\r\n <div class=\"tk-locations__banner\" *ngIf=\"showPendingBanner\">\r\n <mat-icon class=\"tk-locations__banner-icon\">warning</mat-icon>\r\n <span class=\"tk-locations__banner-text\">\r\n View location(s) with pending action items to resume your calling service in {{ pendingLocations.length }} or more locations.\r\n </span>\r\n <button type=\"button\" class=\"tk-locations__banner-close\" aria-label=\"Dismiss\" (click)=\"dismissBanner()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <div class=\"tk-locations__toolbar\">\r\n <div style=\"position: relative; width: fit-content; min-width: 200px\">\r\n <input\r\n [value]=\"searchTerm\"\r\n class=\"blue-input\"\r\n (input)=\"onSearchInputChange($event)\"\r\n type=\"text\"\r\n placeholder=\"Search by name, city, state, country\"\r\n style=\"\r\n width: 100%;\r\n height: 34px;\r\n border-radius: 0.5rem;\r\n font-size: 16px;\r\n padding: 6px 12px 6px 44px;\r\n border: 1px solid #00000080;\r\n background: #fff;\r\n color: #222;\r\n outline: none;\r\n box-sizing: border-box;\r\n min-width: 280px;\r\n \"\r\n />\r\n <span\r\n style=\"\r\n position: absolute;\r\n left: 12px;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n color: #757575;\r\n font-size: 18px;\r\n font-weight: normal;\r\n pointer-events: none;\r\n \"\r\n >\r\n <i\r\n class=\"material-icons\"\r\n style=\"font-size: 18px; font-weight: normal\"\r\n >search</i\r\n >\r\n </span>\r\n </div>\r\n\r\n <button type=\"button\" class=\"tk-locations__filter-button\" (click)=\"toggleFilterPanel()\">\r\n <img class=\"tk-locations__filter-icon\" src=\"assets/icons/filter-regular.svg\" alt=\"filter_list\" title=\"filter_list\">\r\n Filter\r\n </button>\r\n\r\n <span class=\"tk-locations__count\">{{ totalElements }} locations</span>\r\n\r\n <button type=\"button\" class=\"tk-locations__download-button\" aria-label=\"Download locations\" title=\"Download locations\" (click)=\"exportLocations()\">\r\n <mat-icon>file_download</mat-icon>\r\n </button>\r\n\r\n <button type=\"button\" class=\"tk-locations__manage-button\" [matMenuTriggerFor]=\"manageMenu\">\r\n Manage locations\r\n <mat-icon class=\"tk-locations__manage-chevron\">expand_more</mat-icon>\r\n </button>\r\n <mat-menu #manageMenu=\"matMenu\" xPosition=\"before\">\r\n <button mat-menu-item type=\"button\" (click)=\"onAddLocation()\">Add location</button>\r\n <button mat-menu-item type=\"button\" (click)=\"onImportLocations()\">Import locations</button>\r\n </mat-menu>\r\n </div>\r\n\r\n <table class=\"tk-locations__table\">\r\n <thead>\r\n <tr>\r\n <th (click)=\"toggleNameSort()\">\r\n Location Name\r\n <mat-icon class=\"tk-locations__sort-icon\">{{ sortDirection === 'asc' ? 'arrow_upward' : 'arrow_downward' }}</mat-icon>\r\n </th>\r\n <th>Address</th>\r\n <th>Country/Region</th>\r\n <th>Status</th>\r\n <th>Provisioning Type</th>\r\n <th class=\"tk-locations__actions-col\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let row of pagedRows\" (click)=\"onOpenLocation(row)\">\r\n <td class=\"tk-locations__name-cell\">\r\n <a href=\"javascript:void(0)\" class=\"tk-locations__name-link\" (click)=\"$event.stopPropagation(); onOpenLocation(row)\">{{ row.site.name }}</a>\r\n </td>\r\n <td>{{ addressLine(row) || '\u2014' }}</td>\r\n <td>{{ countryLabel(row) || '\u2014' }}</td>\r\n <td>\r\n <span class=\"tk-locations__status\" *ngIf=\"row.batchStatus; else noStatus\">\r\n <span\r\n class=\"tk-locations__status-dot\"\r\n [class.tk-locations__status-dot--success]=\"isSuccessStatus(row)\"\r\n [class.tk-locations__status-dot--in-progress]=\"isInProgressStatus(row)\"\r\n [class.tk-locations__status-dot--failed]=\"isFailedStatus(row)\"></span>\r\n {{ row.batchStatus }}\r\n </span>\r\n <ng-template #noStatus>\u2014</ng-template>\r\n </td>\r\n <td>\r\n <span class=\"tk-locations__icon-wrapper\" *ngIf=\"provisioningTypeIcon(row) as pt; else noProvisioningType\">\r\n <img [src]=\"pt.src\" [matTooltip]=\"pt.tooltip\" matTooltipPosition=\"right\" width=\"20\" alt=\"\">\r\n </span>\r\n <ng-template #noProvisioningType>\u2014</ng-template>\r\n </td>\r\n <td class=\"tk-locations__actions-col\">\r\n <mat-progress-spinner\r\n *ngIf=\"row.migrationStatus === 'IN_PROGRESS'\"\r\n class=\"tk-locations__row-action-spinner\"\r\n [diameter]=\"20\"\r\n strokeWidth=\"2\"\r\n mode=\"indeterminate\"\r\n matTooltip=\"Migrating site\u2026\">\r\n </mat-progress-spinner>\r\n <button\r\n *ngIf=\"row.migrationStatus !== 'IN_PROGRESS'\"\r\n mat-icon-button\r\n class=\"tk-locations__row-action-button\"\r\n [matMenuTriggerFor]=\"rowMenu\"\r\n (click)=\"$event.stopPropagation()\"\r\n aria-label=\"Open location actions\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n <mat-menu #rowMenu=\"matMenu\" yPosition=\"below\">\r\n <button *ngIf=\"row.location\" mat-menu-item type=\"button\" (click)=\"onOpenLocation(row)\">View details</button>\r\n <button *ngIf=\"row.location\" mat-menu-item type=\"button\" (click)=\"onEditLocation(row)\">Edit location</button>\r\n <button\r\n *ngIf=\"canMigrateSite(row)\"\r\n mat-menu-item\r\n type=\"button\"\r\n (click)=\"onMigrateSite(row)\">Migrate site</button>\r\n <button *ngIf=\"row.location\" mat-menu-item type=\"button\" (click)=\"onRemoveLocation(row)\">Remove location</button>\r\n </mat-menu>\r\n </td>\r\n </tr>\r\n <tr *ngIf=\"!pagedRows.length\">\r\n <td colspan=\"6\" class=\"tk-locations__empty\">No locations match your search.</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <div class=\"tk-locations__footer\">\r\n <div class=\"tk-locations__rows-per-page\">\r\n <label for=\"tk-locations-page-size\">Rows per page:</label>\r\n <select id=\"tk-locations-page-size\" class=\"tk-locations__rows-per-page-select\" [ngModel]=\"pageSize\" (change)=\"onPageSizeChange($event)\">\r\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option>\r\n </select>\r\n </div>\r\n <span class=\"tk-locations__footer-text\">{{ pageRangeLabel }}</span>\r\n <div class=\"tk-locations__pagination\">\r\n <button type=\"button\" class=\"tk-locations__pagination-button\" [disabled]=\"!hasPreviousPage\" (click)=\"goToPreviousPage()\" aria-label=\"Previous page\">\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"tk-locations__pagination-button\" [disabled]=\"!hasNextPage\" (click)=\"goToNextPage()\" aria-label=\"Next page\">\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"tk-locations__filter-backdrop\"\r\n *ngIf=\"isFilterPanelOpen\"\r\n (click)=\"closeFilterPanel()\">\r\n </div>\r\n\r\n <aside class=\"tk-locations__filter-panel\" [class.tk-locations__filter-panel--open]=\"isFilterPanelOpen\">\r\n <div class=\"tk-locations__filter-panel-header\">\r\n <h3 class=\"tk-locations__filter-panel-title\">Filter locations</h3>\r\n <button\r\n type=\"button\"\r\n class=\"tk-locations__filter-panel-close\"\r\n aria-label=\"Close filter panel\"\r\n (click)=\"closeFilterPanel()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-panel-body\">\r\n <div class=\"tk-locations__filter-field\">\r\n <label class=\"tk-locations__filter-label\" for=\"tk-locations-filter-status\">Status</label>\r\n <div class=\"tk-locations__filter-select-wrap\">\r\n <select id=\"tk-locations-filter-status\" class=\"tk-locations__filter-select\" [(ngModel)]=\"filters.status\" (change)=\"onFilterChange()\">\r\n <option value=\"\">All</option>\r\n <option *ngFor=\"let status of statuses\" [value]=\"status\">{{ status }}</option>\r\n </select>\r\n <mat-icon class=\"tk-locations__filter-select-icon\">expand_more</mat-icon>\r\n </div>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-field\">\r\n <label class=\"tk-locations__filter-label\" for=\"tk-locations-filter-country\">Country/Region</label>\r\n <div class=\"tk-locations__filter-select-wrap\">\r\n <select id=\"tk-locations-filter-country\" class=\"tk-locations__filter-select\" [(ngModel)]=\"filters.country\" (change)=\"onFilterChange()\">\r\n <option value=\"\">All countries</option>\r\n <option *ngFor=\"let country of countries\" [value]=\"country\">{{ country }}</option>\r\n </select>\r\n <mat-icon class=\"tk-locations__filter-select-icon\">expand_more</mat-icon>\r\n </div>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-field\">\r\n <label class=\"tk-locations__filter-label\" for=\"tk-locations-filter-pending\">Pending action items</label>\r\n <div class=\"tk-locations__filter-select-wrap\">\r\n <select id=\"tk-locations-filter-pending\" class=\"tk-locations__filter-select\" [(ngModel)]=\"filters.pendingActions\" (change)=\"onFilterChange()\">\r\n <option value=\"\">All</option>\r\n <option value=\"true\">Yes</option>\r\n <option value=\"false\">No</option>\r\n </select>\r\n <mat-icon class=\"tk-locations__filter-select-icon\">expand_more</mat-icon>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-panel-footer\">\r\n <button type=\"button\" class=\"tk-locations__filter-clear\" (click)=\"clearFilters()\">Clear all</button>\r\n <button type=\"button\" class=\"tk-locations__filter-done\" (click)=\"closeFilterPanel()\">Done</button>\r\n </div>\r\n </aside>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";.tk-locations{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;color:#000000f2;padding-top:0}.tk-locations__view-toggle{display:flex;align-items:center;gap:.25rem;margin-bottom:1rem;width:-moz-fit-content;width:fit-content}.tk-locations__view-button{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem .875rem;background:none;border:none;border-radius:6.25rem;font-family:inherit;font-size:1rem;font-weight:500;color:#000000b3;cursor:pointer}.tk-locations__view-button:hover:not(:disabled){background:rgba(0,0,0,.0705882353)}.tk-locations__view-button--active{background:#C1C1C1;color:#000000f2}.tk-locations__view-button--active:hover{background:rgba(0,0,0,.3019607843)}.tk-locations__view-button:disabled{cursor:default;opacity:.5}.tk-locations__view-button:disabled:hover{background:none}.tk-locations__view-icon{height:1.125rem;width:1.125rem;opacity:.6}.tk-locations__view-button--active .tk-locations__view-icon{opacity:1}.tk-locations__banner{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.75rem 1rem;background:#fdf1d6;border:1px solid #f0d9a6;border-radius:.5rem;color:#7a5b0a}.tk-locations__banner-icon{font-size:1.125rem;height:1.125rem;width:1.125rem;color:#b5860b;flex-shrink:0}.tk-locations__banner-text{flex:1;font-size:.8125rem}.tk-locations__banner-close{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;color:#7a5b0a;cursor:pointer}.tk-locations__banner-close:hover{color:#000000f2}.tk-locations__toolbar{display:flex;align-items:center;gap:.75rem;margin:.5rem .5rem 1rem}.tk-locations__filter-button{display:inline-flex;align-items:center;gap:.375rem;height:34px;padding:.5rem .875rem;background:#fff;border:1px solid rgba(0,0,0,.5019607843);border-radius:.5rem;font-family:inherit;font-size:.8125rem;font-weight:500;color:#000000f2;cursor:pointer}.tk-locations__filter-button:hover{background:rgba(0,0,0,.03)}.tk-locations__filter-icon{font-size:1rem;height:1rem;width:1rem;opacity:.6}.tk-locations__count{font-size:.8125rem;color:#0009;white-space:nowrap}.tk-locations__download-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-left:auto;background:none;border:none;color:#0009;cursor:pointer}.tk-locations__download-button:hover{color:#000000f2}.tk-locations__manage-button{display:inline-flex;align-items:center;gap:.375rem;height:34px;padding:.5rem 1rem;background:#000;color:#fff;border:none;border-radius:6.25rem;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer}.tk-locations__manage-button:hover{background:#222}.tk-locations__manage-icon,.tk-locations__manage-chevron{font-size:1.125rem;height:1.125rem;width:1.125rem}.tk-locations__table{width:100%;border-collapse:collapse;font-family:Inter,sans-serif}.tk-locations__table th{height:39px;padding:.5rem 1.5rem .5rem .75rem;background-color:#ededed;text-align:start;font-size:.75rem;font-weight:500;color:#000000b3;word-break:break-all;max-inline-size:100%;cursor:pointer}.tk-locations__table th:hover{background-color:#dedede}.tk-locations__table td{height:49px;padding:.5rem 1.5rem .5rem .75rem;box-shadow:inset 0 -1px #0003;background-color:#fff;text-align:start;font-size:.875rem;color:#000000f2;word-break:break-all;cursor:pointer;transition:background-color .2s,box-shadow .2s}.tk-locations__table tbody tr:hover td{background:#ededed}.tk-locations__sort-icon{font-size:1rem;height:1rem;width:1rem;vertical-align:middle;margin-left:.25rem;color:#00000080}.tk-locations__name-cell{min-width:0}.tk-locations__name-link{color:#000000de;font-weight:500;text-decoration:none}.tk-locations__actions-col{width:3rem;text-align:center!important;position:relative}.tk-locations__row-action-spinner{display:inline-block;margin:0 auto}.tk-locations__icon-wrapper{display:inline-flex;align-items:center}.tk-locations__status{display:inline-flex;align-items:center;gap:.375rem;white-space:nowrap}.tk-locations__status-dot{width:.5rem;height:.5rem;border-radius:50%;background:rgba(0,0,0,.3);flex-shrink:0}.tk-locations__status-dot--success{background:#1d805f}.tk-locations__status-dot--in-progress{background:#639fff}.tk-locations__status-dot--failed{background:#c73636}.tk-locations__row-action-button{color:#0009}.tk-locations__row-action-button:hover{color:#000000f2}.tk-locations__empty{padding:1.5rem;text-align:center;color:#0009}.tk-locations__footer{display:flex;align-items:center;justify-content:flex-end;gap:1.5rem;margin-top:1rem;font-size:.8125rem;color:#0009}.tk-locations__rows-per-page{display:flex;align-items:center;gap:.5rem}.tk-locations__rows-per-page-select{padding:.25rem .5rem;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:6px;font-family:inherit;font-size:.8125rem;color:#000000f2;cursor:pointer}.tk-locations__pagination{display:flex;align-items:center;gap:.25rem}.tk-locations__pagination-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;color:#0009;cursor:pointer}.tk-locations__pagination-button:hover:not(:disabled){color:#000000f2}.tk-locations__pagination-button:disabled{color:#00000040;cursor:default}.tk-locations__filter-backdrop{position:fixed;inset:0;z-index:1000;background-color:oklch(18% .01 260/20%)}.tk-locations__filter-panel{position:fixed;top:0;right:0;bottom:0;z-index:1001;display:flex;flex-direction:column;width:22rem;max-width:100vw;background:#fff;border-left:1px solid rgba(0,0,0,.12);box-shadow:-4px 0 16px #00000014;font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;transform:translate(100%);transition:transform .1s ease;will-change:transform}.tk-locations__filter-panel--open{transform:translate(0)}.tk-locations__filter-panel-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(0,0,0,.12)}.tk-locations__filter-panel-title{margin:0;font-size:1rem;font-weight:600;color:#000000f2}.tk-locations__filter-panel-close{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;color:#0009;cursor:pointer}.tk-locations__filter-panel-close:hover{color:#000000f2}.tk-locations__filter-panel-body{padding:1.5rem 1.5rem 0;overflow-y:auto}.tk-locations__filter-field{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.tk-locations__filter-label{font-size:.8125rem;font-weight:500;color:#000000f2}.tk-locations__filter-select-wrap{position:relative;display:flex;align-items:center}.tk-locations__filter-select{width:100%;appearance:none;padding:.625rem 2rem .625rem .75rem;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:6px;font-family:inherit;font-size:.8125rem;color:#000000f2;cursor:pointer}.tk-locations__filter-select:focus{outline:none;border-color:#0006}.tk-locations__filter-select-icon{position:absolute;right:.5rem;font-size:1.125rem;height:1.125rem;width:1.125rem;color:#0006;pointer-events:none}.tk-locations__filter-panel-footer{display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem 1.5rem}.tk-locations__filter-clear{background:none;border:none;padding:0;font-family:inherit;font-size:.813rem;font-weight:500;color:#000000f2;cursor:pointer;padding-inline:.75rem;height:2rem;border-radius:6px}.tk-locations__filter-clear:hover{background-color:oklch(95.5% .005 260)}.tk-locations__filter-done{background-color:#fff;border-radius:6px;font-weight:500;font-family:inherit;font-size:.813rem;cursor:pointer;border:1px solid oklch(92% .003 260);padding-inline:.75rem;height:2rem}.tk-locations__filter-done:hover{background-color:oklch(95.5% .005 260)}::ng-deep input.blue-input{border:solid .0625rem rgba(0,0,0,.5019607843)!important}::ng-deep input.blue-input:focus{color:#000000b3;background-color:#ededed;border:solid .0625rem rgba(0,0,0,.5019607843);font-weight:500;cursor:pointer;box-shadow:0 0 0 .12rem #fff,0 0 0 .25rem #1170cf,0 0 0 .3rem #1170cf59;background-color:#fff!important}::ng-deep input.blue-input:focus:focus-visible{outline:none}::ng-deep input.blue-input:hover{background-color:#00000012!important}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i8.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i8.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i1$2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: AppLoaderComponent, selector: "app-loader" }] });
608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsComponent, decorators: [{
609
+ type: Component,
610
+ args: [{ selector: 'tk-locations', template: "<div class=\"tk-locations\">\r\n <app-loader *ngIf=\"isLoading\"></app-loader>\r\n\r\n <div class=\"tk-locations__view-toggle\">\r\n <button type=\"button\" class=\"tk-locations__view-button tk-locations__view-button--active\">\r\n <mat-icon class=\"tk-locations__view-icon\">menu</mat-icon>\r\n List\r\n </button>\r\n <button type=\"button\" class=\"tk-locations__view-button\" disabled title=\"Map view coming soon\">\r\n <mat-icon class=\"tk-locations__view-icon\">place</mat-icon>\r\n Map\r\n </button>\r\n </div>\r\n\r\n <div class=\"tk-locations__banner\" *ngIf=\"showPendingBanner\">\r\n <mat-icon class=\"tk-locations__banner-icon\">warning</mat-icon>\r\n <span class=\"tk-locations__banner-text\">\r\n View location(s) with pending action items to resume your calling service in {{ pendingLocations.length }} or more locations.\r\n </span>\r\n <button type=\"button\" class=\"tk-locations__banner-close\" aria-label=\"Dismiss\" (click)=\"dismissBanner()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <div class=\"tk-locations__toolbar\">\r\n <div style=\"position: relative; width: fit-content; min-width: 200px\">\r\n <input\r\n [value]=\"searchTerm\"\r\n class=\"blue-input\"\r\n (input)=\"onSearchInputChange($event)\"\r\n type=\"text\"\r\n placeholder=\"Search by name, city, state, country\"\r\n style=\"\r\n width: 100%;\r\n height: 34px;\r\n border-radius: 0.5rem;\r\n font-size: 16px;\r\n padding: 6px 12px 6px 44px;\r\n border: 1px solid #00000080;\r\n background: #fff;\r\n color: #222;\r\n outline: none;\r\n box-sizing: border-box;\r\n min-width: 280px;\r\n \"\r\n />\r\n <span\r\n style=\"\r\n position: absolute;\r\n left: 12px;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n color: #757575;\r\n font-size: 18px;\r\n font-weight: normal;\r\n pointer-events: none;\r\n \"\r\n >\r\n <i\r\n class=\"material-icons\"\r\n style=\"font-size: 18px; font-weight: normal\"\r\n >search</i\r\n >\r\n </span>\r\n </div>\r\n\r\n <button type=\"button\" class=\"tk-locations__filter-button\" (click)=\"toggleFilterPanel()\">\r\n <img class=\"tk-locations__filter-icon\" src=\"assets/icons/filter-regular.svg\" alt=\"filter_list\" title=\"filter_list\">\r\n Filter\r\n </button>\r\n\r\n <span class=\"tk-locations__count\">{{ totalElements }} locations</span>\r\n\r\n <button type=\"button\" class=\"tk-locations__download-button\" aria-label=\"Download locations\" title=\"Download locations\" (click)=\"exportLocations()\">\r\n <mat-icon>file_download</mat-icon>\r\n </button>\r\n\r\n <button type=\"button\" class=\"tk-locations__manage-button\" [matMenuTriggerFor]=\"manageMenu\">\r\n Manage locations\r\n <mat-icon class=\"tk-locations__manage-chevron\">expand_more</mat-icon>\r\n </button>\r\n <mat-menu #manageMenu=\"matMenu\" xPosition=\"before\">\r\n <button mat-menu-item type=\"button\" (click)=\"onAddLocation()\">Add location</button>\r\n <button mat-menu-item type=\"button\" (click)=\"onImportLocations()\">Import locations</button>\r\n </mat-menu>\r\n </div>\r\n\r\n <table class=\"tk-locations__table\">\r\n <thead>\r\n <tr>\r\n <th (click)=\"toggleNameSort()\">\r\n Location Name\r\n <mat-icon class=\"tk-locations__sort-icon\">{{ sortDirection === 'asc' ? 'arrow_upward' : 'arrow_downward' }}</mat-icon>\r\n </th>\r\n <th>Address</th>\r\n <th>Country/Region</th>\r\n <th>Status</th>\r\n <th>Provisioning Type</th>\r\n <th class=\"tk-locations__actions-col\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let row of pagedRows\" (click)=\"onOpenLocation(row)\">\r\n <td class=\"tk-locations__name-cell\">\r\n <a href=\"javascript:void(0)\" class=\"tk-locations__name-link\" (click)=\"$event.stopPropagation(); onOpenLocation(row)\">{{ row.site.name }}</a>\r\n </td>\r\n <td>{{ addressLine(row) || '\u2014' }}</td>\r\n <td>{{ countryLabel(row) || '\u2014' }}</td>\r\n <td>\r\n <span class=\"tk-locations__status\" *ngIf=\"row.batchStatus; else noStatus\">\r\n <span\r\n class=\"tk-locations__status-dot\"\r\n [class.tk-locations__status-dot--success]=\"isSuccessStatus(row)\"\r\n [class.tk-locations__status-dot--in-progress]=\"isInProgressStatus(row)\"\r\n [class.tk-locations__status-dot--failed]=\"isFailedStatus(row)\"></span>\r\n {{ row.batchStatus }}\r\n </span>\r\n <ng-template #noStatus>\u2014</ng-template>\r\n </td>\r\n <td>\r\n <span class=\"tk-locations__icon-wrapper\" *ngIf=\"provisioningTypeIcon(row) as pt; else noProvisioningType\">\r\n <img [src]=\"pt.src\" [matTooltip]=\"pt.tooltip\" matTooltipPosition=\"right\" width=\"20\" alt=\"\">\r\n </span>\r\n <ng-template #noProvisioningType>\u2014</ng-template>\r\n </td>\r\n <td class=\"tk-locations__actions-col\">\r\n <mat-progress-spinner\r\n *ngIf=\"row.migrationStatus === 'IN_PROGRESS'\"\r\n class=\"tk-locations__row-action-spinner\"\r\n [diameter]=\"20\"\r\n strokeWidth=\"2\"\r\n mode=\"indeterminate\"\r\n matTooltip=\"Migrating site\u2026\">\r\n </mat-progress-spinner>\r\n <button\r\n *ngIf=\"row.migrationStatus !== 'IN_PROGRESS'\"\r\n mat-icon-button\r\n class=\"tk-locations__row-action-button\"\r\n [matMenuTriggerFor]=\"rowMenu\"\r\n (click)=\"$event.stopPropagation()\"\r\n aria-label=\"Open location actions\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n <mat-menu #rowMenu=\"matMenu\" yPosition=\"below\">\r\n <button *ngIf=\"row.location\" mat-menu-item type=\"button\" (click)=\"onOpenLocation(row)\">View details</button>\r\n <button *ngIf=\"row.location\" mat-menu-item type=\"button\" (click)=\"onEditLocation(row)\">Edit location</button>\r\n <button\r\n *ngIf=\"canMigrateSite(row)\"\r\n mat-menu-item\r\n type=\"button\"\r\n (click)=\"onMigrateSite(row)\">Migrate site</button>\r\n <button *ngIf=\"row.location\" mat-menu-item type=\"button\" (click)=\"onRemoveLocation(row)\">Remove location</button>\r\n </mat-menu>\r\n </td>\r\n </tr>\r\n <tr *ngIf=\"!pagedRows.length\">\r\n <td colspan=\"6\" class=\"tk-locations__empty\">No locations match your search.</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <div class=\"tk-locations__footer\">\r\n <div class=\"tk-locations__rows-per-page\">\r\n <label for=\"tk-locations-page-size\">Rows per page:</label>\r\n <select id=\"tk-locations-page-size\" class=\"tk-locations__rows-per-page-select\" [ngModel]=\"pageSize\" (change)=\"onPageSizeChange($event)\">\r\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option>\r\n </select>\r\n </div>\r\n <span class=\"tk-locations__footer-text\">{{ pageRangeLabel }}</span>\r\n <div class=\"tk-locations__pagination\">\r\n <button type=\"button\" class=\"tk-locations__pagination-button\" [disabled]=\"!hasPreviousPage\" (click)=\"goToPreviousPage()\" aria-label=\"Previous page\">\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"tk-locations__pagination-button\" [disabled]=\"!hasNextPage\" (click)=\"goToNextPage()\" aria-label=\"Next page\">\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"tk-locations__filter-backdrop\"\r\n *ngIf=\"isFilterPanelOpen\"\r\n (click)=\"closeFilterPanel()\">\r\n </div>\r\n\r\n <aside class=\"tk-locations__filter-panel\" [class.tk-locations__filter-panel--open]=\"isFilterPanelOpen\">\r\n <div class=\"tk-locations__filter-panel-header\">\r\n <h3 class=\"tk-locations__filter-panel-title\">Filter locations</h3>\r\n <button\r\n type=\"button\"\r\n class=\"tk-locations__filter-panel-close\"\r\n aria-label=\"Close filter panel\"\r\n (click)=\"closeFilterPanel()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-panel-body\">\r\n <div class=\"tk-locations__filter-field\">\r\n <label class=\"tk-locations__filter-label\" for=\"tk-locations-filter-status\">Status</label>\r\n <div class=\"tk-locations__filter-select-wrap\">\r\n <select id=\"tk-locations-filter-status\" class=\"tk-locations__filter-select\" [(ngModel)]=\"filters.status\" (change)=\"onFilterChange()\">\r\n <option value=\"\">All</option>\r\n <option *ngFor=\"let status of statuses\" [value]=\"status\">{{ status }}</option>\r\n </select>\r\n <mat-icon class=\"tk-locations__filter-select-icon\">expand_more</mat-icon>\r\n </div>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-field\">\r\n <label class=\"tk-locations__filter-label\" for=\"tk-locations-filter-country\">Country/Region</label>\r\n <div class=\"tk-locations__filter-select-wrap\">\r\n <select id=\"tk-locations-filter-country\" class=\"tk-locations__filter-select\" [(ngModel)]=\"filters.country\" (change)=\"onFilterChange()\">\r\n <option value=\"\">All countries</option>\r\n <option *ngFor=\"let country of countries\" [value]=\"country\">{{ country }}</option>\r\n </select>\r\n <mat-icon class=\"tk-locations__filter-select-icon\">expand_more</mat-icon>\r\n </div>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-field\">\r\n <label class=\"tk-locations__filter-label\" for=\"tk-locations-filter-pending\">Pending action items</label>\r\n <div class=\"tk-locations__filter-select-wrap\">\r\n <select id=\"tk-locations-filter-pending\" class=\"tk-locations__filter-select\" [(ngModel)]=\"filters.pendingActions\" (change)=\"onFilterChange()\">\r\n <option value=\"\">All</option>\r\n <option value=\"true\">Yes</option>\r\n <option value=\"false\">No</option>\r\n </select>\r\n <mat-icon class=\"tk-locations__filter-select-icon\">expand_more</mat-icon>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"tk-locations__filter-panel-footer\">\r\n <button type=\"button\" class=\"tk-locations__filter-clear\" (click)=\"clearFilters()\">Clear all</button>\r\n <button type=\"button\" class=\"tk-locations__filter-done\" (click)=\"closeFilterPanel()\">Done</button>\r\n </div>\r\n </aside>\r\n</div>\r\n", styles: ["@import\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap\";.tk-locations{font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;color:#000000f2;padding-top:0}.tk-locations__view-toggle{display:flex;align-items:center;gap:.25rem;margin-bottom:1rem;width:-moz-fit-content;width:fit-content}.tk-locations__view-button{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem .875rem;background:none;border:none;border-radius:6.25rem;font-family:inherit;font-size:1rem;font-weight:500;color:#000000b3;cursor:pointer}.tk-locations__view-button:hover:not(:disabled){background:rgba(0,0,0,.0705882353)}.tk-locations__view-button--active{background:#C1C1C1;color:#000000f2}.tk-locations__view-button--active:hover{background:rgba(0,0,0,.3019607843)}.tk-locations__view-button:disabled{cursor:default;opacity:.5}.tk-locations__view-button:disabled:hover{background:none}.tk-locations__view-icon{height:1.125rem;width:1.125rem;opacity:.6}.tk-locations__view-button--active .tk-locations__view-icon{opacity:1}.tk-locations__banner{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.75rem 1rem;background:#fdf1d6;border:1px solid #f0d9a6;border-radius:.5rem;color:#7a5b0a}.tk-locations__banner-icon{font-size:1.125rem;height:1.125rem;width:1.125rem;color:#b5860b;flex-shrink:0}.tk-locations__banner-text{flex:1;font-size:.8125rem}.tk-locations__banner-close{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;color:#7a5b0a;cursor:pointer}.tk-locations__banner-close:hover{color:#000000f2}.tk-locations__toolbar{display:flex;align-items:center;gap:.75rem;margin:.5rem .5rem 1rem}.tk-locations__filter-button{display:inline-flex;align-items:center;gap:.375rem;height:34px;padding:.5rem .875rem;background:#fff;border:1px solid rgba(0,0,0,.5019607843);border-radius:.5rem;font-family:inherit;font-size:.8125rem;font-weight:500;color:#000000f2;cursor:pointer}.tk-locations__filter-button:hover{background:rgba(0,0,0,.03)}.tk-locations__filter-icon{font-size:1rem;height:1rem;width:1rem;opacity:.6}.tk-locations__count{font-size:.8125rem;color:#0009;white-space:nowrap}.tk-locations__download-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-left:auto;background:none;border:none;color:#0009;cursor:pointer}.tk-locations__download-button:hover{color:#000000f2}.tk-locations__manage-button{display:inline-flex;align-items:center;gap:.375rem;height:34px;padding:.5rem 1rem;background:#000;color:#fff;border:none;border-radius:6.25rem;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer}.tk-locations__manage-button:hover{background:#222}.tk-locations__manage-icon,.tk-locations__manage-chevron{font-size:1.125rem;height:1.125rem;width:1.125rem}.tk-locations__table{width:100%;border-collapse:collapse;font-family:Inter,sans-serif}.tk-locations__table th{height:39px;padding:.5rem 1.5rem .5rem .75rem;background-color:#ededed;text-align:start;font-size:.75rem;font-weight:500;color:#000000b3;word-break:break-all;max-inline-size:100%;cursor:pointer}.tk-locations__table th:hover{background-color:#dedede}.tk-locations__table td{height:49px;padding:.5rem 1.5rem .5rem .75rem;box-shadow:inset 0 -1px #0003;background-color:#fff;text-align:start;font-size:.875rem;color:#000000f2;word-break:break-all;cursor:pointer;transition:background-color .2s,box-shadow .2s}.tk-locations__table tbody tr:hover td{background:#ededed}.tk-locations__sort-icon{font-size:1rem;height:1rem;width:1rem;vertical-align:middle;margin-left:.25rem;color:#00000080}.tk-locations__name-cell{min-width:0}.tk-locations__name-link{color:#000000de;font-weight:500;text-decoration:none}.tk-locations__actions-col{width:3rem;text-align:center!important;position:relative}.tk-locations__row-action-spinner{display:inline-block;margin:0 auto}.tk-locations__icon-wrapper{display:inline-flex;align-items:center}.tk-locations__status{display:inline-flex;align-items:center;gap:.375rem;white-space:nowrap}.tk-locations__status-dot{width:.5rem;height:.5rem;border-radius:50%;background:rgba(0,0,0,.3);flex-shrink:0}.tk-locations__status-dot--success{background:#1d805f}.tk-locations__status-dot--in-progress{background:#639fff}.tk-locations__status-dot--failed{background:#c73636}.tk-locations__row-action-button{color:#0009}.tk-locations__row-action-button:hover{color:#000000f2}.tk-locations__empty{padding:1.5rem;text-align:center;color:#0009}.tk-locations__footer{display:flex;align-items:center;justify-content:flex-end;gap:1.5rem;margin-top:1rem;font-size:.8125rem;color:#0009}.tk-locations__rows-per-page{display:flex;align-items:center;gap:.5rem}.tk-locations__rows-per-page-select{padding:.25rem .5rem;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:6px;font-family:inherit;font-size:.8125rem;color:#000000f2;cursor:pointer}.tk-locations__pagination{display:flex;align-items:center;gap:.25rem}.tk-locations__pagination-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;color:#0009;cursor:pointer}.tk-locations__pagination-button:hover:not(:disabled){color:#000000f2}.tk-locations__pagination-button:disabled{color:#00000040;cursor:default}.tk-locations__filter-backdrop{position:fixed;inset:0;z-index:1000;background-color:oklch(18% .01 260/20%)}.tk-locations__filter-panel{position:fixed;top:0;right:0;bottom:0;z-index:1001;display:flex;flex-direction:column;width:22rem;max-width:100vw;background:#fff;border-left:1px solid rgba(0,0,0,.12);box-shadow:-4px 0 16px #00000014;font-family:Inter,Helvetica Neue,Helvetica,Arial,sans-serif;transform:translate(100%);transition:transform .1s ease;will-change:transform}.tk-locations__filter-panel--open{transform:translate(0)}.tk-locations__filter-panel-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(0,0,0,.12)}.tk-locations__filter-panel-title{margin:0;font-size:1rem;font-weight:600;color:#000000f2}.tk-locations__filter-panel-close{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;color:#0009;cursor:pointer}.tk-locations__filter-panel-close:hover{color:#000000f2}.tk-locations__filter-panel-body{padding:1.5rem 1.5rem 0;overflow-y:auto}.tk-locations__filter-field{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.tk-locations__filter-label{font-size:.8125rem;font-weight:500;color:#000000f2}.tk-locations__filter-select-wrap{position:relative;display:flex;align-items:center}.tk-locations__filter-select{width:100%;appearance:none;padding:.625rem 2rem .625rem .75rem;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:6px;font-family:inherit;font-size:.8125rem;color:#000000f2;cursor:pointer}.tk-locations__filter-select:focus{outline:none;border-color:#0006}.tk-locations__filter-select-icon{position:absolute;right:.5rem;font-size:1.125rem;height:1.125rem;width:1.125rem;color:#0006;pointer-events:none}.tk-locations__filter-panel-footer{display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem 1.5rem}.tk-locations__filter-clear{background:none;border:none;padding:0;font-family:inherit;font-size:.813rem;font-weight:500;color:#000000f2;cursor:pointer;padding-inline:.75rem;height:2rem;border-radius:6px}.tk-locations__filter-clear:hover{background-color:oklch(95.5% .005 260)}.tk-locations__filter-done{background-color:#fff;border-radius:6px;font-weight:500;font-family:inherit;font-size:.813rem;cursor:pointer;border:1px solid oklch(92% .003 260);padding-inline:.75rem;height:2rem}.tk-locations__filter-done:hover{background-color:oklch(95.5% .005 260)}::ng-deep input.blue-input{border:solid .0625rem rgba(0,0,0,.5019607843)!important}::ng-deep input.blue-input:focus{color:#000000b3;background-color:#ededed;border:solid .0625rem rgba(0,0,0,.5019607843);font-weight:500;cursor:pointer;box-shadow:0 0 0 .12rem #fff,0 0 0 .25rem #1170cf,0 0 0 .3rem #1170cf59;background-color:#fff!important}::ng-deep input.blue-input:focus:focus-visible{outline:none}::ng-deep input.blue-input:hover{background-color:#00000012!important}\n"] }]
611
+ }], ctorParameters: function () { return [{ type: APIService }, { type: LocationsService }, { type: i1.MatDialog }]; }, propDecorators: { exHost: [{
612
+ type: Input
613
+ }], token: [{
614
+ type: Input
615
+ }], customerId: [{
616
+ type: Input
617
+ }], openLocation: [{
618
+ type: Output
619
+ }], editLocation: [{
620
+ type: Output
621
+ }], removeLocation: [{
622
+ type: Output
623
+ }], addLocation: [{
624
+ type: Output
625
+ }], importLocations: [{
626
+ type: Output
627
+ }] } });
628
+
629
+ class LocationsModule {
630
+ }
631
+ LocationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
632
+ LocationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: LocationsModule, declarations: [LocationsComponent,
633
+ LocationConfirmDialogComponent,
634
+ AppLoaderComponent], imports: [CommonModule,
635
+ HttpClientModule,
636
+ FormsModule,
637
+ MaterialModule], exports: [LocationsComponent] });
638
+ LocationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsModule, imports: [CommonModule,
639
+ HttpClientModule,
640
+ FormsModule,
641
+ MaterialModule] });
642
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocationsModule, decorators: [{
643
+ type: NgModule,
644
+ args: [{
645
+ declarations: [
646
+ LocationsComponent,
647
+ LocationConfirmDialogComponent,
648
+ AppLoaderComponent,
649
+ ],
650
+ imports: [
651
+ CommonModule,
652
+ HttpClientModule,
653
+ FormsModule,
654
+ MaterialModule,
655
+ ],
656
+ exports: [
657
+ LocationsComponent,
658
+ ],
659
+ }]
660
+ }] });
661
+
662
+ /*
663
+ * Public API Surface of @tuki-io/tuki-widgets
664
+ */
665
+ // Widget Modules
666
+
667
+ /**
668
+ * Generated bundle index. Do not edit.
669
+ */
670
+
671
+ export { LocationsComponent, LocationsModule };
672
+ //# sourceMappingURL=tuki-io-tuki-widgets-locations.mjs.map