@rtsee/ngx 0.0.59 → 0.0.61

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 (172) hide show
  1. package/dist/ngx/fesm2022/rtsee-ngx.mjs +1689 -0
  2. package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -0
  3. package/dist/ngx/index.d.ts +538 -0
  4. package/package.json +21 -18
  5. package/.editorconfig +0 -16
  6. package/CHANGELOG.md +0 -120
  7. package/angular.json +0 -67
  8. package/jest.config.ts +0 -9
  9. package/projects/ngx/ng-package.json +0 -8
  10. package/projects/ngx/package.json +0 -20
  11. package/projects/ngx/src/lib/common/components/preloader/preloader.component.html +0 -5
  12. package/projects/ngx/src/lib/common/components/preloader/preloader.component.ts +0 -30
  13. package/projects/ngx/src/lib/common/interfaces/index.ts +0 -1
  14. package/projects/ngx/src/lib/common/interfaces/server-errors.ts +0 -5
  15. package/projects/ngx/src/lib/components/constans/common.const.ts +0 -8
  16. package/projects/ngx/src/lib/components/enums/form.enum.ts +0 -8
  17. package/projects/ngx/src/lib/components/rtsee/rtsee-conference.component.html +0 -70
  18. package/projects/ngx/src/lib/components/rtsee/rtsee-conference.component.ts +0 -35
  19. package/projects/ngx/src/lib/components/rtsee/rtsee-controls/rtsee-controls.component.html +0 -54
  20. package/projects/ngx/src/lib/components/rtsee/rtsee-controls/rtsee-controls.component.scss +0 -70
  21. package/projects/ngx/src/lib/components/rtsee/rtsee-controls/rtsee-controls.component.ts +0 -24
  22. package/projects/ngx/src/lib/components/rtsee-auth/auth/auth.component.html +0 -16
  23. package/projects/ngx/src/lib/components/rtsee-auth/auth/auth.component.ts +0 -48
  24. package/projects/ngx/src/lib/components/rtsee-auth/forgot-password/forgot-password.component.html +0 -35
  25. package/projects/ngx/src/lib/components/rtsee-auth/forgot-password/forgot-password.component.ts +0 -42
  26. package/projects/ngx/src/lib/components/rtsee-auth/reset-password/reset-password.component.html +0 -43
  27. package/projects/ngx/src/lib/components/rtsee-auth/reset-password/reset-password.component.ts +0 -83
  28. package/projects/ngx/src/lib/components/rtsee-auth/services/auth.service.ts +0 -40
  29. package/projects/ngx/src/lib/components/rtsee-auth/services/utils.service.ts +0 -20
  30. package/projects/ngx/src/lib/components/rtsee-auth/sign-in/sign-in.component.html +0 -84
  31. package/projects/ngx/src/lib/components/rtsee-auth/sign-in/sign-in.component.ts +0 -120
  32. package/projects/ngx/src/lib/components/rtsee-auth/sign-up/sign-up.component.html +0 -51
  33. package/projects/ngx/src/lib/components/rtsee-auth/sign-up/sign-up.component.ts +0 -67
  34. package/projects/ngx/src/lib/components/rtsee-auth/types/auth-form.type.ts +0 -36
  35. package/projects/ngx/src/lib/components/rtsee-auth/validators/form-fields-validators.ts +0 -27
  36. package/projects/ngx/src/lib/components/rtsee-auth/vendors/vendors.component.html +0 -1
  37. package/projects/ngx/src/lib/components/rtsee-auth/vendors/vendors.component.ts +0 -10
  38. package/projects/ngx/src/lib/components/rtsee-container/rtsee-container.component.html +0 -46
  39. package/projects/ngx/src/lib/components/rtsee-container/rtsee-container.component.ts +0 -34
  40. package/projects/ngx/src/lib/components/rtsee-container/rtsee-nav/rtsee-nav.component.html +0 -25
  41. package/projects/ngx/src/lib/components/rtsee-container/rtsee-nav/rtsee-nav.component.ts +0 -26
  42. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/event-thumbnail/event-thumbnail.component.html +0 -20
  43. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/event-thumbnail/event-thumbnail.component.ts +0 -89
  44. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client/rtsee-events-dashboard-client.component.html +0 -1
  45. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client/rtsee-events-dashboard-client.component.ts +0 -8
  46. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client-thumbnail/rtsee-events-dashboard-client-thumbnail.component.html +0 -25
  47. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client-thumbnail/rtsee-events-dashboard-client-thumbnail.component.ts +0 -40
  48. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-session/rtsee-events-dashboard-session.component.html +0 -32
  49. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-session/rtsee-events-dashboard-session.component.ts +0 -21
  50. package/projects/ngx/src/lib/components/rtsee-events-dashboard/rtsee-events-dashboard.component.html +0 -12
  51. package/projects/ngx/src/lib/components/rtsee-events-dashboard/rtsee-events-dashboard.component.ts +0 -19
  52. package/projects/ngx/src/lib/components/rtsee-messenger/chat/chat.component.html +0 -10
  53. package/projects/ngx/src/lib/components/rtsee-messenger/chat/chat.component.ts +0 -18
  54. package/projects/ngx/src/lib/components/rtsee-messenger/chat-input/chat-input.component.html +0 -20
  55. package/projects/ngx/src/lib/components/rtsee-messenger/chat-input/chat-input.component.ts +0 -31
  56. package/projects/ngx/src/lib/components/rtsee-messenger/chat-thumbnail/chat-thumbnail.component.html +0 -28
  57. package/projects/ngx/src/lib/components/rtsee-messenger/chat-thumbnail/chat-thumbnail.component.ts +0 -27
  58. package/projects/ngx/src/lib/components/rtsee-messenger/chats-list/chats-list.component.html +0 -6
  59. package/projects/ngx/src/lib/components/rtsee-messenger/chats-list/chats-list.component.ts +0 -22
  60. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.html +0 -3
  61. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.scss +0 -0
  62. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.ts +0 -18
  63. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.html +0 -4
  64. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.scss +0 -0
  65. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.ts +0 -18
  66. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/models/MainMenuState.ts +0 -11
  67. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/search/search.component.html +0 -25
  68. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/search/search.component.ts +0 -36
  69. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/main-menu.component.html +0 -32
  70. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/main-menu.component.ts +0 -41
  71. package/projects/ngx/src/lib/components/rtsee-messenger/message/components/message-time-and-status/message-time-and-status.component.html +0 -9
  72. package/projects/ngx/src/lib/components/rtsee-messenger/message/components/message-time-and-status/message-time-and-status.component.ts +0 -23
  73. package/projects/ngx/src/lib/components/rtsee-messenger/message/message.component.html +0 -17
  74. package/projects/ngx/src/lib/components/rtsee-messenger/message/message.component.ts +0 -64
  75. package/projects/ngx/src/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.html +0 -10
  76. package/projects/ngx/src/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.scss +0 -1
  77. package/projects/ngx/src/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.ts +0 -36
  78. package/projects/ngx/src/lib/components/rtsee-messenger/messages-list/messages-list.component.html +0 -18
  79. package/projects/ngx/src/lib/components/rtsee-messenger/messages-list/messages-list.component.ts +0 -91
  80. package/projects/ngx/src/lib/components/rtsee-messenger/messenger/messenger.component.html +0 -31
  81. package/projects/ngx/src/lib/components/rtsee-messenger/messenger/messenger.component.ts +0 -45
  82. package/projects/ngx/src/lib/components/rtsee-messenger/messenger-header/messenger-header.component.html +0 -57
  83. package/projects/ngx/src/lib/components/rtsee-messenger/messenger-header/messenger-header.component.ts +0 -30
  84. package/projects/ngx/src/lib/components/rtsee-messenger/profile/profile.component.html +0 -20
  85. package/projects/ngx/src/lib/components/rtsee-messenger/profile/profile.component.ts +0 -25
  86. package/projects/ngx/src/lib/components/rtsee-peer/rtsee-peer.component.html +0 -28
  87. package/projects/ngx/src/lib/components/rtsee-peer/rtsee-peer.component.ts +0 -43
  88. package/projects/ngx/src/lib/components/rtsee-peers-list/rtsee-peers-list.component.html +0 -1
  89. package/projects/ngx/src/lib/components/rtsee-peers-list/rtsee-peers-list.component.scss +0 -0
  90. package/projects/ngx/src/lib/components/rtsee-peers-list/rtsee-peers-list.component.ts +0 -9
  91. package/projects/ngx/src/lib/components/rtsee-presentation/presentation/presentation.component.html +0 -25
  92. package/projects/ngx/src/lib/components/rtsee-presentation/presentation/presentation.component.ts +0 -24
  93. package/projects/ngx/src/lib/components/rtsee-presentation/presentation-header/presentation-header.component.html +0 -14
  94. package/projects/ngx/src/lib/components/rtsee-presentation/presentation-header/presentation-header.component.ts +0 -15
  95. package/projects/ngx/src/lib/components/rtsee-presentation/slide/slide.component.html +0 -33
  96. package/projects/ngx/src/lib/components/rtsee-presentation/slide/slide.component.ts +0 -26
  97. package/projects/ngx/src/lib/components/rtsee-presentation/story-player/story-player.component.html +0 -10
  98. package/projects/ngx/src/lib/components/rtsee-presentation/story-player/story-player.component.ts +0 -22
  99. package/projects/ngx/src/lib/components/rtsee-presentation/story-thumbnail/story-thumbnail.component.html +0 -15
  100. package/projects/ngx/src/lib/components/rtsee-presentation/story-thumbnail/story-thumbnail.component.scss +0 -0
  101. package/projects/ngx/src/lib/components/rtsee-presentation/story-thumbnail/story-thumbnail.component.ts +0 -19
  102. package/projects/ngx/src/lib/components/rtsee-settings/rtsee-settings.component.html +0 -44
  103. package/projects/ngx/src/lib/components/rtsee-settings/rtsee-settings.component.scss +0 -30
  104. package/projects/ngx/src/lib/components/rtsee-settings/rtsee-settings.component.ts +0 -57
  105. package/projects/ngx/src/lib/components/rtsee-soundbar/rtsee-soundbar.component.html +0 -19
  106. package/projects/ngx/src/lib/components/rtsee-soundbar/rtsee-soundbar.component.scss +0 -56
  107. package/projects/ngx/src/lib/components/rtsee-soundbar/rtsee-soundbar.component.ts +0 -66
  108. package/projects/ngx/src/lib/directives/shave.directive.ts +0 -15
  109. package/projects/ngx/src/lib/directives/widget.directive.ts +0 -9
  110. package/projects/ngx/src/lib/ngx.module.ts +0 -127
  111. package/projects/ngx/src/lib/ngx.service.spec.ts +0 -16
  112. package/projects/ngx/src/lib/ngx.service.ts +0 -11
  113. package/projects/ngx/src/lib/services/default-images.service.ts +0 -8
  114. package/projects/ngx/src/lib/services/events-widgets.service.ts +0 -19
  115. package/projects/ngx/src/lib/services/message-widgets.service.ts +0 -26
  116. package/projects/ngx/src/lib/services/time-format-helper.service.ts +0 -111
  117. package/projects/ngx/src/public-api.ts +0 -16
  118. package/projects/ngx/tsconfig.lib.json +0 -14
  119. package/projects/ngx/tsconfig.lib.prod.json +0 -10
  120. package/projects/ngx/tsconfig.spec.json +0 -10
  121. package/projects/ngx/yarn.lock +0 -8
  122. package/scss-bundle.config.json +0 -6
  123. package/setup-jest.ts +0 -1
  124. package/tsconfig.eslint.json +0 -4
  125. package/tsconfig.json +0 -35
  126. package/tsconfig.spec.json +0 -8
  127. /package/{projects → dist}/ngx/README.md +0 -0
  128. /package/{projects → dist}/ngx/src/lib/theme/auth/auth-container.scss +0 -0
  129. /package/{projects → dist}/ngx/src/lib/theme/auth/index.scss +0 -0
  130. /package/{projects → dist}/ngx/src/lib/theme/auth/variables.scss +0 -0
  131. /package/{projects → dist}/ngx/src/lib/theme/common-components/preloader.scss +0 -0
  132. /package/{projects → dist}/ngx/src/lib/theme/common-variables.scss +0 -0
  133. /package/{projects → dist}/ngx/src/lib/theme/common.scss +0 -0
  134. /package/{projects → dist}/ngx/src/lib/theme/containers/index.scss +0 -0
  135. /package/{projects → dist}/ngx/src/lib/theme/containers/nav-item.scss +0 -0
  136. /package/{projects → dist}/ngx/src/lib/theme/containers/nav.scss +0 -0
  137. /package/{projects → dist}/ngx/src/lib/theme/containers/shell.scss +0 -0
  138. /package/{projects → dist}/ngx/src/lib/theme/containers/variables.scss +0 -0
  139. /package/{projects → dist}/ngx/src/lib/theme/events-manager/client-thumbnail.scss +0 -0
  140. /package/{projects → dist}/ngx/src/lib/theme/events-manager/event-thumbnail.scss +0 -0
  141. /package/{projects → dist}/ngx/src/lib/theme/events-manager/events-dashboard-session.scss +0 -0
  142. /package/{projects → dist}/ngx/src/lib/theme/events-manager/events-dashboard.scss +0 -0
  143. /package/{projects → dist}/ngx/src/lib/theme/events-manager/events-manager.scss +0 -0
  144. /package/{projects → dist}/ngx/src/lib/theme/events-manager/index.scss +0 -0
  145. /package/{projects → dist}/ngx/src/lib/theme/events-manager.scss +0 -0
  146. /package/{projects → dist}/ngx/src/lib/theme/forms/common.scss +0 -0
  147. /package/{projects → dist}/ngx/src/lib/theme/forms/index.scss +0 -0
  148. /package/{projects → dist}/ngx/src/lib/theme/forms/variables.scss +0 -0
  149. /package/{projects → dist}/ngx/src/lib/theme/general.scss +0 -0
  150. /package/{projects → dist}/ngx/src/lib/theme/messenger/call-widget.scss +0 -0
  151. /package/{projects → dist}/ngx/src/lib/theme/messenger/chat-input.scss +0 -0
  152. /package/{projects → dist}/ngx/src/lib/theme/messenger/chat-thumbnail.scss +0 -0
  153. /package/{projects → dist}/ngx/src/lib/theme/messenger/chat.scss +0 -0
  154. /package/{projects → dist}/ngx/src/lib/theme/messenger/chats-list.scss +0 -0
  155. /package/{projects → dist}/ngx/src/lib/theme/messenger/index.scss +0 -0
  156. /package/{projects → dist}/ngx/src/lib/theme/messenger/message-time-and-status.scss +0 -0
  157. /package/{projects → dist}/ngx/src/lib/theme/messenger/message.scss +0 -0
  158. /package/{projects → dist}/ngx/src/lib/theme/messenger/messages-list.scss +0 -0
  159. /package/{projects → dist}/ngx/src/lib/theme/messenger/messenger-header.scss +0 -0
  160. /package/{projects → dist}/ngx/src/lib/theme/messenger/messenger-search.scss +0 -0
  161. /package/{projects → dist}/ngx/src/lib/theme/messenger/messenger.scss +0 -0
  162. /package/{projects → dist}/ngx/src/lib/theme/messenger/variables.scss +0 -0
  163. /package/{projects → dist}/ngx/src/lib/theme/presentation/index.scss +0 -0
  164. /package/{projects → dist}/ngx/src/lib/theme/presentation/slide.scss +0 -0
  165. /package/{projects → dist}/ngx/src/lib/theme/presentation/story-player.scss +0 -0
  166. /package/{projects → dist}/ngx/src/lib/theme/presentation/story-thumbnail.scss +0 -0
  167. /package/{projects → dist}/ngx/src/lib/theme/presentation/variables.scss +0 -0
  168. /package/{projects → dist}/ngx/src/lib/theme/styles.scss +0 -0
  169. /package/{projects → dist}/ngx/src/lib/theme/video-chat/index.scss +0 -0
  170. /package/{projects → dist}/ngx/src/lib/theme/video-chat/video-chat.scss +0 -0
  171. /package/{projects → dist}/ngx/src/lib/theme/video-chat/video-peer.scss +0 -0
  172. /package/{projects → dist}/ngx/src/lib/theme/video-chat.scss +0 -0
@@ -0,0 +1,1689 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Input, Component, ViewChild, EventEmitter, Output, Directive, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
3
+ import { NgClass, NgIf, NgForOf, SlicePipe, NgStyle, NgOptimizedImage, CommonModule } from '@angular/common';
4
+ import * as i1 from '@angular/forms';
5
+ import { FormsModule, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
6
+ import { interval, tap } from 'rxjs';
7
+ import { InfiniteScrollDirective, InfiniteScrollModule } from 'ngx-infinite-scroll';
8
+ import { RTSeeChatTypes } from '@rtsee/common';
9
+ import dayjs from 'dayjs';
10
+ import relativeTime from 'dayjs/plugin/relativeTime';
11
+ import { RTSeeChatEvents } from '@rtsee/messenger';
12
+ import { debounceTime } from 'rxjs/operators';
13
+ import * as i2 from '@angular/router';
14
+ import { RouterLink, RouterLinkActive } from '@angular/router';
15
+ import { Avatar } from 'primeng/avatar';
16
+ import { Image } from 'primeng/image';
17
+ import { Divider } from 'primeng/divider';
18
+ import { AuthEndpointsKeys, DEFAULT_ROUTE_NAMES } from '@rtsee/auth';
19
+ import * as i4 from 'primeng/button';
20
+ import { ButtonModule } from 'primeng/button';
21
+ import { InputGroup } from 'primeng/inputgroup';
22
+ import { InputText } from 'primeng/inputtext';
23
+ import { Password } from 'primeng/password';
24
+ import { FloatLabel } from 'primeng/floatlabel';
25
+ import { Checkbox } from 'primeng/checkbox';
26
+ import { Message } from 'primeng/message';
27
+ import { ProgressSpinner } from 'primeng/progressspinner';
28
+ import * as i1$1 from '@angular/common/http';
29
+ import { AutosizeModule } from 'ngx-autosize';
30
+ import shave from 'shave';
31
+ import { NgxCaptchaModule } from 'ngx-captcha';
32
+ import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
33
+ import { providePrimeNG } from 'primeng/config';
34
+ import Aura from '@primeuix/themes/aura';
35
+
36
+ class NgxService {
37
+ constructor() {
38
+ this.lol = 'lol';
39
+ }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: NgxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
41
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: NgxService, providedIn: 'root' }); }
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: NgxService, decorators: [{
44
+ type: Injectable,
45
+ args: [{
46
+ providedIn: 'root',
47
+ }]
48
+ }], ctorParameters: () => [] });
49
+
50
+ class RTSeeControlsComponent {
51
+ onPresentClicked() {
52
+ return this.rtsee.isPresenter
53
+ ? this.rtsee.stopScreenShare()
54
+ : this.rtsee.startScreenShare();
55
+ }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: RTSeeControlsComponent, isStandalone: true, selector: "ngx-rtsee-controls", inputs: { rtsee: "rtsee", fullScreenMode: "fullScreenMode" }, ngImport: i0, template: "<div class=\"rtsee-controls\" [ngClass]=\"{'rtsee-full-screen-controls' : fullScreenMode }\">\n <div class=\"rtsee-bottom-panel\">\n <div class=\"mic rtsee-buttons-container\">\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"rtsee.microphone\"\n type=\"button\"\n (click)=\"this.rtsee.disableMicrophone()\"\n >\n <span class=\"material-icons-outlined\">mic_none</span>\n </button>\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"!rtsee.microphone\"\n type=\"button\" (click)=\"this.rtsee.enableMicrophone()\"\n >\n <span class=\"material-icons-outlined\">mic_off</span>\n </button>\n </div>\n\n <div class=\"video-camera rtsee-buttons-container\">\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"rtsee.camera\"\n type=\"button\"\n (click)=\"rtsee.disableCamera()\"\n >\n <span class=\"material-icons-outlined\">videocam</span>\n </button>\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"!rtsee.camera\"\n type=\"button\"\n (click)=\"rtsee.enableCamera()\"\n >\n <span class=\"material-icons-outlined\">videocam_off</span>\n </button>\n </div>\n <div class=\"present rtsee-buttons-container\"\n [ngClass]=\"{'rtsee-present-button-container': rtsee.isPresenter}\"\n >\n <button class=\"rtsee-ripple-button\"\n type=\"button\"\n (click)=\"onPresentClicked()\"\n >\n <span class=\"material-icons-outlined\">present_to_all</span>\n </button>\n </div>\n <div class=\"call-end rtsee-buttons-container\">\n <button class=\"rtsee-ripple-button\"\n type=\"button\"\n (click)=\"rtsee.end()\"\n >\n <span class=\"material-icons-outlined\">call_end</span>\n </button>\n </div>\n </div>\n</div>\n", styles: [".rtsee-controls{display:inline-block;height:100%}.rtsee-controls .rtsee-buttons-container{height:35px;width:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 9px;cursor:pointer}.rtsee-controls .rtsee-buttons-container:last-child{margin-right:0}.rtsee-controls .rtsee-buttons-container:first-child{margin-left:0}.rtsee-controls .rtsee-buttons-container .mdc-icon-button{background-color:#333;color:#fff}.rtsee-controls .rtsee-buttons-container.call-end .mdc-icon-button{background-color:red}.rtsee-controls .rtsee-buttons-container.rtsee-present-button-container .mdc-icon-button{background-color:#090}.rtsee-controls .full-screen{align-self:flex-end;padding:12px;cursor:pointer}.rtsee-controls .rtsee-bottom-panel{padding:12px;display:flex;justify-content:center;align-items:center;border-radius:45px;background-color:#000000b3}.rtsee-controls.rtsee-full-screen-controls .rtsee-buttons-container{height:60px;width:60px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeControlsComponent, decorators: [{
60
+ type: Component,
61
+ args: [{ selector: 'ngx-rtsee-controls', imports: [
62
+ NgClass,
63
+ NgIf
64
+ ], standalone: true, template: "<div class=\"rtsee-controls\" [ngClass]=\"{'rtsee-full-screen-controls' : fullScreenMode }\">\n <div class=\"rtsee-bottom-panel\">\n <div class=\"mic rtsee-buttons-container\">\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"rtsee.microphone\"\n type=\"button\"\n (click)=\"this.rtsee.disableMicrophone()\"\n >\n <span class=\"material-icons-outlined\">mic_none</span>\n </button>\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"!rtsee.microphone\"\n type=\"button\" (click)=\"this.rtsee.enableMicrophone()\"\n >\n <span class=\"material-icons-outlined\">mic_off</span>\n </button>\n </div>\n\n <div class=\"video-camera rtsee-buttons-container\">\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"rtsee.camera\"\n type=\"button\"\n (click)=\"rtsee.disableCamera()\"\n >\n <span class=\"material-icons-outlined\">videocam</span>\n </button>\n <button class=\"rtsee-ripple-button\"\n *ngIf=\"!rtsee.camera\"\n type=\"button\"\n (click)=\"rtsee.enableCamera()\"\n >\n <span class=\"material-icons-outlined\">videocam_off</span>\n </button>\n </div>\n <div class=\"present rtsee-buttons-container\"\n [ngClass]=\"{'rtsee-present-button-container': rtsee.isPresenter}\"\n >\n <button class=\"rtsee-ripple-button\"\n type=\"button\"\n (click)=\"onPresentClicked()\"\n >\n <span class=\"material-icons-outlined\">present_to_all</span>\n </button>\n </div>\n <div class=\"call-end rtsee-buttons-container\">\n <button class=\"rtsee-ripple-button\"\n type=\"button\"\n (click)=\"rtsee.end()\"\n >\n <span class=\"material-icons-outlined\">call_end</span>\n </button>\n </div>\n </div>\n</div>\n", styles: [".rtsee-controls{display:inline-block;height:100%}.rtsee-controls .rtsee-buttons-container{height:35px;width:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 9px;cursor:pointer}.rtsee-controls .rtsee-buttons-container:last-child{margin-right:0}.rtsee-controls .rtsee-buttons-container:first-child{margin-left:0}.rtsee-controls .rtsee-buttons-container .mdc-icon-button{background-color:#333;color:#fff}.rtsee-controls .rtsee-buttons-container.call-end .mdc-icon-button{background-color:red}.rtsee-controls .rtsee-buttons-container.rtsee-present-button-container .mdc-icon-button{background-color:#090}.rtsee-controls .full-screen{align-self:flex-end;padding:12px;cursor:pointer}.rtsee-controls .rtsee-bottom-panel{padding:12px;display:flex;justify-content:center;align-items:center;border-radius:45px;background-color:#000000b3}.rtsee-controls.rtsee-full-screen-controls .rtsee-buttons-container{height:60px;width:60px}\n"] }]
65
+ }], propDecorators: { rtsee: [{
66
+ type: Input
67
+ }], fullScreenMode: [{
68
+ type: Input
69
+ }] } });
70
+
71
+ class RtseeSettingsComponent {
72
+ constructor() {
73
+ this.availableAudioInputDevices = [];
74
+ this.availableVideoInputDevices = [];
75
+ this.availableAudioOutputDevices = [];
76
+ }
77
+ ngOnInit() {
78
+ this.refreshSelectOptions();
79
+ }
80
+ refreshSelectOptions() {
81
+ void this.rtSee.refreshMediaDevicesList();
82
+ }
83
+ audioInputChanged() {
84
+ if (!this.audioInputDeviceId) {
85
+ return;
86
+ }
87
+ this.rtSee.setAudioInputDevice(this.audioInputDeviceId);
88
+ console.log(this.audioInputDeviceId);
89
+ }
90
+ audioOutputChanged() {
91
+ if (!this.audioOutputDeviceId) {
92
+ return;
93
+ }
94
+ this.rtSee.setAudioOutputDevice(this.audioOutputDeviceId);
95
+ }
96
+ videoInputChanged() {
97
+ if (!this.videoInputDeviceId) {
98
+ return;
99
+ }
100
+ this.rtSee.setVideoInputDevice(this.videoInputDeviceId);
101
+ }
102
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
103
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: RtseeSettingsComponent, isStandalone: true, selector: "ngx-rtsee-settings", inputs: { rtSee: "rtSee", fullScreenMode: "fullScreenMode" }, ngImport: i0, template: "<div class=\"rtsee-settings\" [ngClass]=\"{'rtsee-full-screen-settings' : fullScreenMode}\">\n <div class=\"rtsee-devices\">\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"audio-input\">Audio Input:</label>\n <select (click)=\"refreshSelectOptions()\"\n (ngModelChange)=\"audioInputChanged()\"\n [(ngModel)]=\"audioInputDeviceId\"\n class=\"rtsee-select\"\n id=\"audio-input\"\n >\n <option *ngFor=\"let device of rtSee.audioInputDevices\"\n [value]=\"device.deviceId\">\n {{device.label}}\n </option>\n </select>\n </div>\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"audio-output\">Audio Output:</label>\n <select (click)=\"refreshSelectOptions()\"\n (ngModelChange)=\"audioOutputChanged()\"\n [(ngModel)]=\"audioOutputDeviceId\"\n class=\"rtsee-select\"\n id=\"audio-output\"\n >\n <option *ngFor=\"let device of rtSee.audioOutputDevices\" [value]=\"device.deviceId\" >\n {{device.label}}\n </option>\n </select>\n </div>\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"video-input\">Video Input:</label>\n <select (click)=\"refreshSelectOptions()\"\n (ngModelChange)=\"videoInputChanged()\"\n [(ngModel)]=\"videoInputDeviceId\"\n class=\"rtsee-select\"\n id=\"video-input\"\n >\n <option *ngFor=\"let device of rtSee.videoInputDevices\" [value]=\"device.deviceId\">\n {{device.label}}\n </option>\n </select>\n </div>\n </div>\n</div>\n", styles: [".rtsee-settings{box-sizing:border-box;background-color:#404040;border-bottom:1px solid;max-height:180px;padding:16px 0;overflow:auto;color:#fff}.rtsee-settings .rtsee-device-select-wrapper{padding:0 10px}.rtsee-settings .rtsee-device-select-wrapper .rtsee-select-label{font-family:monospace;display:inline-block;margin:8px}.rtsee-settings.rtsee-full-screen-settings{max-height:unset;overflow:unset}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
104
+ }
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeSettingsComponent, decorators: [{
106
+ type: Component,
107
+ args: [{ selector: 'ngx-rtsee-settings', imports: [
108
+ NgClass,
109
+ FormsModule,
110
+ NgForOf
111
+ ], standalone: true, template: "<div class=\"rtsee-settings\" [ngClass]=\"{'rtsee-full-screen-settings' : fullScreenMode}\">\n <div class=\"rtsee-devices\">\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"audio-input\">Audio Input:</label>\n <select (click)=\"refreshSelectOptions()\"\n (ngModelChange)=\"audioInputChanged()\"\n [(ngModel)]=\"audioInputDeviceId\"\n class=\"rtsee-select\"\n id=\"audio-input\"\n >\n <option *ngFor=\"let device of rtSee.audioInputDevices\"\n [value]=\"device.deviceId\">\n {{device.label}}\n </option>\n </select>\n </div>\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"audio-output\">Audio Output:</label>\n <select (click)=\"refreshSelectOptions()\"\n (ngModelChange)=\"audioOutputChanged()\"\n [(ngModel)]=\"audioOutputDeviceId\"\n class=\"rtsee-select\"\n id=\"audio-output\"\n >\n <option *ngFor=\"let device of rtSee.audioOutputDevices\" [value]=\"device.deviceId\" >\n {{device.label}}\n </option>\n </select>\n </div>\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"video-input\">Video Input:</label>\n <select (click)=\"refreshSelectOptions()\"\n (ngModelChange)=\"videoInputChanged()\"\n [(ngModel)]=\"videoInputDeviceId\"\n class=\"rtsee-select\"\n id=\"video-input\"\n >\n <option *ngFor=\"let device of rtSee.videoInputDevices\" [value]=\"device.deviceId\">\n {{device.label}}\n </option>\n </select>\n </div>\n </div>\n</div>\n", styles: [".rtsee-settings{box-sizing:border-box;background-color:#404040;border-bottom:1px solid;max-height:180px;padding:16px 0;overflow:auto;color:#fff}.rtsee-settings .rtsee-device-select-wrapper{padding:0 10px}.rtsee-settings .rtsee-device-select-wrapper .rtsee-select-label{font-family:monospace;display:inline-block;margin:8px}.rtsee-settings.rtsee-full-screen-settings{max-height:unset;overflow:unset}\n"] }]
112
+ }], ctorParameters: () => [], propDecorators: { rtSee: [{
113
+ type: Input
114
+ }], fullScreenMode: [{
115
+ type: Input
116
+ }] } });
117
+
118
+ class RtseeSoundbarComponent {
119
+ constructor() {
120
+ this.intervalLength = 1000;
121
+ this.noiceLevel = 0;
122
+ this.scaleOneLevel = 0;
123
+ this.scaleTwoLevel = 0;
124
+ this.scaleThreeLevel = 0;
125
+ }
126
+ ngOnInit() {
127
+ this.startSoundMeterListening();
128
+ }
129
+ startSoundMeterListening() {
130
+ const step = interval(1000 / 10);
131
+ step.subscribe(() => {
132
+ if (!this.peer.soundMeter || !this.peer.soundMeter.level) {
133
+ this.noiceLevel = 0;
134
+ }
135
+ else {
136
+ this.noiceLevel = this.peer.soundMeter?.level * 100 || 0;
137
+ }
138
+ this.setSoundMeterHeights();
139
+ });
140
+ }
141
+ setSoundMeterHeights() {
142
+ const ZERO_LEVEL = 25;
143
+ const SCALE_STEP = 25;
144
+ const SCALE_ONE_TOP = ZERO_LEVEL + SCALE_STEP;
145
+ const SCALE_TWO_TOP = SCALE_ONE_TOP + SCALE_STEP;
146
+ if (!this.peer || !this.peer.soundMeter || this.noiceLevel < ZERO_LEVEL) {
147
+ this.scaleOneLevel = 0;
148
+ this.scaleTwoLevel = 0;
149
+ this.scaleThreeLevel = 0;
150
+ }
151
+ const scaleOneValue = ((this.noiceLevel - ZERO_LEVEL) / SCALE_STEP) * 100;
152
+ const scaleTwoValue = ((this.noiceLevel - SCALE_ONE_TOP) / SCALE_STEP) * 100;
153
+ const scaleThreeValue = ((this.noiceLevel - SCALE_TWO_TOP) / SCALE_STEP) * 100;
154
+ this.scaleOneLevel = scaleOneValue > 0 ? scaleOneValue : 0;
155
+ this.scaleTwoLevel = scaleTwoValue > 0 ? scaleTwoValue : 0;
156
+ this.scaleThreeLevel = scaleThreeValue > 0 ? scaleTwoValue : 0;
157
+ }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeSoundbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
159
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: RtseeSoundbarComponent, isStandalone: true, selector: "ngx-rtsee-soundbar", inputs: { peer: "peer" }, ngImport: i0, template: "<div class=\"rtsee-soundbar\">\n <div class=\"rtsee-soundbar-scale\">\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-one\"\n [style.height.%]=\"scaleOneLevel\"\n ></div>\n </div>\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-two\"\n [style.height.%]=\"scaleTwoLevel\"\n ></div>\n </div>\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-three\"\n [style.height.%]=\"scaleThreeLevel\"\n ></div>\n </div>\n </div>\n</div>\n", styles: [".rtsee-soundbar{height:19px;width:23px;padding:2px 0 0}.rtsee-soundbar .rtsee-soundbar-scale{height:100%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item{float:left;height:15px;width:5px;margin-left:2px;position:relative;border-radius:4px}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item:last-child:after{content:\"\";display:block;clear:both}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level{position:absolute;bottom:0;left:0;height:10%;width:100%;transition:height .05s;background-color:#00ce00;min-height:25%;border-radius:1px}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-one{max-height:33.3%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-two{max-height:66.6%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-three{max-height:100%}\n"] }); }
160
+ }
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeSoundbarComponent, decorators: [{
162
+ type: Component,
163
+ args: [{ selector: 'ngx-rtsee-soundbar', standalone: true, template: "<div class=\"rtsee-soundbar\">\n <div class=\"rtsee-soundbar-scale\">\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-one\"\n [style.height.%]=\"scaleOneLevel\"\n ></div>\n </div>\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-two\"\n [style.height.%]=\"scaleTwoLevel\"\n ></div>\n </div>\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-three\"\n [style.height.%]=\"scaleThreeLevel\"\n ></div>\n </div>\n </div>\n</div>\n", styles: [".rtsee-soundbar{height:19px;width:23px;padding:2px 0 0}.rtsee-soundbar .rtsee-soundbar-scale{height:100%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item{float:left;height:15px;width:5px;margin-left:2px;position:relative;border-radius:4px}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item:last-child:after{content:\"\";display:block;clear:both}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level{position:absolute;bottom:0;left:0;height:10%;width:100%;transition:height .05s;background-color:#00ce00;min-height:25%;border-radius:1px}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-one{max-height:33.3%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-two{max-height:66.6%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-three{max-height:100%}\n"] }]
164
+ }], ctorParameters: () => [], propDecorators: { peer: [{
165
+ type: Input
166
+ }] } });
167
+
168
+ class RtseePeerComponent {
169
+ constructor() {
170
+ this.intervalLength = 1000;
171
+ this.noiceLevel = 0;
172
+ }
173
+ ngAfterViewInit() {
174
+ if (!this.audioOutput) {
175
+ return;
176
+ }
177
+ this.peer.setAudioOutputElement(this.audioOutput.nativeElement);
178
+ }
179
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseePeerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
180
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: RtseePeerComponent, isStandalone: true, selector: "ngx-rtsee-peer", inputs: { peer: "peer" }, viewQueries: [{ propertyName: "audioOutput", first: true, predicate: ["audioOutput"], descendants: true }, { propertyName: "videoOutput", first: true, predicate: ["videoOutput"], descendants: true }], ngImport: i0, template: "<div class=\"rtsee-peer\" [ngClass]=\"{\n'rtsee-peer-video-disabled': !peer.remoteVideoStream || !peer.camera\n}\">\n <div class=\"rtsee-peer-content\">\n <div class=\"rtsee-peer-photo\" *ngIf=\"!peer.camera\">\n <div class=\"rtsee-peer-photo-wrapper\">\n <div *ngIf=\"peer.imageUrl\"\n [style.background-image]=\"'url(' + peer.imageUrl + ')'\"\n class=\"rtsee-peer-photo-image\"\n ></div>\n <img *ngIf=\"!peer.imageUrl\" [src]=\"\" alt=\"peer_photo\" class=\"rtsee-peer-photo-image\">\n </div>\n <div class=\"rtsee-peer-info\">\n <p class=\"rtsee-peer-name\" *ngIf=\"peer.name\">{{peer.name}}</p>\n </div>\n </div>\n <video #videoOutput\n class=\"rtsee-peer-video\"\n [autoplay]=\"true\"\n [srcObject]=\"peer.remoteVideoStream\"\n playsinline=\"true\"\n >\n </video>\n <div class=\"rtsee-peer-soundbar\">\n <ngx-rtsee-soundbar [peer]=\"peer\"></ngx-rtsee-soundbar>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RtseeSoundbarComponent, selector: "ngx-rtsee-soundbar", inputs: ["peer"] }] }); }
181
+ }
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseePeerComponent, decorators: [{
183
+ type: Component,
184
+ args: [{ selector: 'ngx-rtsee-peer', imports: [
185
+ NgClass,
186
+ NgIf,
187
+ RtseeSoundbarComponent
188
+ ], standalone: true, template: "<div class=\"rtsee-peer\" [ngClass]=\"{\n'rtsee-peer-video-disabled': !peer.remoteVideoStream || !peer.camera\n}\">\n <div class=\"rtsee-peer-content\">\n <div class=\"rtsee-peer-photo\" *ngIf=\"!peer.camera\">\n <div class=\"rtsee-peer-photo-wrapper\">\n <div *ngIf=\"peer.imageUrl\"\n [style.background-image]=\"'url(' + peer.imageUrl + ')'\"\n class=\"rtsee-peer-photo-image\"\n ></div>\n <img *ngIf=\"!peer.imageUrl\" [src]=\"\" alt=\"peer_photo\" class=\"rtsee-peer-photo-image\">\n </div>\n <div class=\"rtsee-peer-info\">\n <p class=\"rtsee-peer-name\" *ngIf=\"peer.name\">{{peer.name}}</p>\n </div>\n </div>\n <video #videoOutput\n class=\"rtsee-peer-video\"\n [autoplay]=\"true\"\n [srcObject]=\"peer.remoteVideoStream\"\n playsinline=\"true\"\n >\n </video>\n <div class=\"rtsee-peer-soundbar\">\n <ngx-rtsee-soundbar [peer]=\"peer\"></ngx-rtsee-soundbar>\n </div>\n </div>\n</div>\n" }]
189
+ }], ctorParameters: () => [], propDecorators: { audioOutput: [{
190
+ type: ViewChild,
191
+ args: ['audioOutput']
192
+ }], videoOutput: [{
193
+ type: ViewChild,
194
+ args: ['videoOutput']
195
+ }], peer: [{
196
+ type: Input
197
+ }] } });
198
+
199
+ class RTSeeConferenceComponent {
200
+ constructor() {
201
+ this.settingsViewEnabled = false;
202
+ }
203
+ toggleSettings() {
204
+ this.settingsViewEnabled = !this.settingsViewEnabled;
205
+ }
206
+ toggleFullScreenMode() {
207
+ this.rtSee.uiControls.toggle();
208
+ }
209
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeConferenceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
210
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: RTSeeConferenceComponent, isStandalone: true, selector: "rtsee-conference", inputs: { rtSee: "rtSee" }, ngImport: i0, template: "<div class=\"rtsee-conference-shell\" [ngClass]=\"{\n'rtsee-conference-shell-expanded': rtSee.uiControls.isExpanded,\n'rtsee-conference-shell-no-companions': !rtSee.rtcPeerConnections.connections?.length\n}\">\n <div class=\"rtsee-local-peer\" *ngIf=\"rtSee.localStream && rtSee.camera\">\n <video class=\"rtsee-local-video\"\n [autoplay]=\"true\"\n [muted]=\"true\"\n [srcObject]=\"rtSee.localStream\"\n playsinline=\"true\"\n ></video>\n </div>\n <div class=\"rtsee-window-controls\">\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleSettings()\"\n class=\"rtsee-window-controls-button rtsee-ripple-button\"\n >\n <span class=\"material-icons-outlined\">settings</span>\n </button>\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleFullScreenMode()\"\n class=\"rtsee-window-controls-button rtsee-ripple-button\"\n >\n <span class=\"material-icons-outlined\">open_in_full</span>\n </button>\n </div>\n <div class=\"rtsee-settings-container\" *ngIf=\"settingsViewEnabled\">\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleSettings()\"\n class=\"rtsee-close-settings-button\"\n >\n <span class=\"material-icons-outlined\">close</span>\n </button>\n <ngx-rtsee-settings [rtSee]=\"rtSee\" [fullScreenMode]=\"rtSee.uiControls.isExpanded\"></ngx-rtsee-settings>\n </div>\n <div class=\"rtsee-screen-share\" *ngIf=\"rtSee.screenSharePeer\" >\n <video [autoplay]=\"true\"\n [muted]=\"true\"\n [srcObject]=\"rtSee.screenSharePeer.remoteVideoStream\"\n playsinline=\"true\"\n class=\"rtsee-screen-share-video\"\n ></video>\n </div>\n <div class=\"rtsee-peers\" [ngClass]=\"{\n 'rtsee-peers-alone': !rtSee.rtcPeerConnections.connections?.length,\n 'rtsee-peers-one': rtSee.rtcPeerConnections.connections?.length === 1,\n 'rtsee-peers-three-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length > 1\n && rtSee.rtcPeerConnections.connections.length < 4,\n 'rtsee-peers-six-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length > 3\n && rtSee.rtcPeerConnections.connections.length < 7,\n 'rtsee-peers-nine-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length >= 7\n }\">\n <div class=\"rtsee-peer-wrapper\"\n *ngFor=\"let peer of rtSee.rtcPeerConnections.connections\"\n >\n <ngx-rtsee-peer [peer]=\"peer\"></ngx-rtsee-peer>\n </div>\n </div>\n <div class=\"rtsee-peers-list\"></div>\n <div class=\"rtsee-controls-wrapper\">\n <ngx-rtsee-controls [rtsee]=\"rtSee\" [fullScreenMode]=\"rtSee.uiControls.isExpanded\"></ngx-rtsee-controls>\n </div>\n</div>\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RtseeSettingsComponent, selector: "ngx-rtsee-settings", inputs: ["rtSee", "fullScreenMode"] }, { kind: "component", type: RtseePeerComponent, selector: "ngx-rtsee-peer", inputs: ["peer"] }, { kind: "component", type: RTSeeControlsComponent, selector: "ngx-rtsee-controls", inputs: ["rtsee", "fullScreenMode"] }] }); }
211
+ }
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeConferenceComponent, decorators: [{
213
+ type: Component,
214
+ args: [{ selector: 'rtsee-conference', imports: [
215
+ NgClass,
216
+ NgIf,
217
+ RtseeSettingsComponent,
218
+ RtseePeerComponent,
219
+ RTSeeControlsComponent
220
+ ], standalone: true, template: "<div class=\"rtsee-conference-shell\" [ngClass]=\"{\n'rtsee-conference-shell-expanded': rtSee.uiControls.isExpanded,\n'rtsee-conference-shell-no-companions': !rtSee.rtcPeerConnections.connections?.length\n}\">\n <div class=\"rtsee-local-peer\" *ngIf=\"rtSee.localStream && rtSee.camera\">\n <video class=\"rtsee-local-video\"\n [autoplay]=\"true\"\n [muted]=\"true\"\n [srcObject]=\"rtSee.localStream\"\n playsinline=\"true\"\n ></video>\n </div>\n <div class=\"rtsee-window-controls\">\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleSettings()\"\n class=\"rtsee-window-controls-button rtsee-ripple-button\"\n >\n <span class=\"material-icons-outlined\">settings</span>\n </button>\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleFullScreenMode()\"\n class=\"rtsee-window-controls-button rtsee-ripple-button\"\n >\n <span class=\"material-icons-outlined\">open_in_full</span>\n </button>\n </div>\n <div class=\"rtsee-settings-container\" *ngIf=\"settingsViewEnabled\">\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleSettings()\"\n class=\"rtsee-close-settings-button\"\n >\n <span class=\"material-icons-outlined\">close</span>\n </button>\n <ngx-rtsee-settings [rtSee]=\"rtSee\" [fullScreenMode]=\"rtSee.uiControls.isExpanded\"></ngx-rtsee-settings>\n </div>\n <div class=\"rtsee-screen-share\" *ngIf=\"rtSee.screenSharePeer\" >\n <video [autoplay]=\"true\"\n [muted]=\"true\"\n [srcObject]=\"rtSee.screenSharePeer.remoteVideoStream\"\n playsinline=\"true\"\n class=\"rtsee-screen-share-video\"\n ></video>\n </div>\n <div class=\"rtsee-peers\" [ngClass]=\"{\n 'rtsee-peers-alone': !rtSee.rtcPeerConnections.connections?.length,\n 'rtsee-peers-one': rtSee.rtcPeerConnections.connections?.length === 1,\n 'rtsee-peers-three-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length > 1\n && rtSee.rtcPeerConnections.connections.length < 4,\n 'rtsee-peers-six-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length > 3\n && rtSee.rtcPeerConnections.connections.length < 7,\n 'rtsee-peers-nine-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length >= 7\n }\">\n <div class=\"rtsee-peer-wrapper\"\n *ngFor=\"let peer of rtSee.rtcPeerConnections.connections\"\n >\n <ngx-rtsee-peer [peer]=\"peer\"></ngx-rtsee-peer>\n </div>\n </div>\n <div class=\"rtsee-peers-list\"></div>\n <div class=\"rtsee-controls-wrapper\">\n <ngx-rtsee-controls [rtsee]=\"rtSee\" [fullScreenMode]=\"rtSee.uiControls.isExpanded\"></ngx-rtsee-controls>\n </div>\n</div>\n\n" }]
221
+ }], ctorParameters: () => [], propDecorators: { rtSee: [{
222
+ type: Input
223
+ }] } });
224
+
225
+ class ProfileComponent {
226
+ call() {
227
+ if (!this.messenger.openedChat) {
228
+ return;
229
+ }
230
+ void this.messenger.initializeVideoCall(this.messenger.openedChat);
231
+ }
232
+ videoCall() {
233
+ if (!this.messenger.openedChat) {
234
+ return;
235
+ }
236
+ void this.messenger.initializeVideoCall(this.messenger.openedChat);
237
+ }
238
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ProfileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
239
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ProfileComponent, isStandalone: true, selector: "rtsee-profile", inputs: { messenger: "messenger" }, ngImport: i0, template: "<div class=\"rtsee-messenger-profile\">\n <ul class=\"rtsee-messenger-profile-controls\">\n <li class=\"rtsee-messenger-profile-control\">\n <div class=\"rtsee-messenger-control-item\" (click)=\"call()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">call</span>\n </div>\n <span>Call</span>\n </div>\n </li>\n <li class=\"rtsee-messenger-profile-control\">\n <div class=\"rtsee-messenger-control-item\" (click)=\"videoCall()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">videocam</span>\n </div>\n <span>Video</span>\n </div>\n </li>\n </ul>\n</div>\n" }); }
240
+ }
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ProfileComponent, decorators: [{
242
+ type: Component,
243
+ args: [{ selector: 'rtsee-profile', standalone: true, template: "<div class=\"rtsee-messenger-profile\">\n <ul class=\"rtsee-messenger-profile-controls\">\n <li class=\"rtsee-messenger-profile-control\">\n <div class=\"rtsee-messenger-control-item\" (click)=\"call()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">call</span>\n </div>\n <span>Call</span>\n </div>\n </li>\n <li class=\"rtsee-messenger-profile-control\">\n <div class=\"rtsee-messenger-control-item\" (click)=\"videoCall()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">videocam</span>\n </div>\n <span>Video</span>\n </div>\n </li>\n </ul>\n</div>\n" }]
244
+ }], propDecorators: { messenger: [{
245
+ type: Input
246
+ }] } });
247
+
248
+ class DefaultImagesService {
249
+ constructor() {
250
+ this.PROFILE = 'https://werf-assets.s3.amazonaws.com/default-profile-logo.png';
251
+ }
252
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DefaultImagesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
253
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DefaultImagesService, providedIn: 'root' }); }
254
+ }
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DefaultImagesService, decorators: [{
256
+ type: Injectable,
257
+ args: [{
258
+ providedIn: 'root',
259
+ }]
260
+ }] });
261
+
262
+ class MessengerHeaderComponent {
263
+ constructor(defaultImagesService) {
264
+ this.defaultImagesService = defaultImagesService;
265
+ this.expandToggled = new EventEmitter();
266
+ this.isExpanded = false;
267
+ this.expandToggled.emit(this.isExpanded);
268
+ }
269
+ toggleExpand() {
270
+ this.isExpanded = !this.isExpanded;
271
+ this.expandToggled.emit(this.isExpanded);
272
+ }
273
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessengerHeaderComponent, deps: [{ token: DefaultImagesService }], target: i0.ɵɵFactoryTarget.Component }); }
274
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: MessengerHeaderComponent, isStandalone: true, selector: "rtsee-messenger-header", inputs: { isExpanded: "isExpanded", messenger: "messenger" }, outputs: { expandToggled: "expandToggled" }, ngImport: i0, template: "<div class=\"rtsee-messenger-header\"\n [ngClass]=\"{\n 'rtsee-messenger-header-chat-opened': messenger.openedChat,\n 'rtsee-chat-header-unread': messenger.openedChat && !messenger.unreadMessagesCount,\n 'rtsee-messenger-header-expanded': isExpanded\n }\"\n>\n <div class=\"rtsee-messenger-profile-image-container \">\n <div *ngIf=\"!messenger.openedChat\"\n [style.background-image]=\"'url(' + messenger.myPeer?.imageUrl || defaultImagesService.PROFILE + ')'\"\n class=\"rtsee-messenger-profile-image\">\n </div>\n </div>\n\n <button class=\"rtsee-messenger-close-chat\"\n *ngIf=\"messenger.openedChat\"\n (click)=\"messenger.closeChat()\"\n >\n <span class=\"material-icons-outlined\">arrow_back</span>\n <span class=\"unread-count\" *ngIf=\"messenger.unreadMessagesCount\">{{messenger.unreadMessagesCount}}</span>\n </button>\n\n <button class=\"rtsee-messenger-menu-toggle\"\n *ngIf=\"!messenger.openedChat && false\"\n (click)=\"messenger.openMainMenu(true)\"\n >\n <span class=\"material-icons-outlined rtsee-messenger-menu-toggle-icon\">menu</span>\n </button>\n <button class=\"rtsee-messenger-fold-toggle\"\n (click)=\"messenger.changeChatFoldState(!messenger.folded)\"\n >\n <span *ngIf=\"!messenger.folded\" class=\"material-icons-outlined rtsee-messenger-menu-toggle-icon\">expand_more</span>\n <span *ngIf=\"messenger.folded\" class=\"material-icons-outlined rtsee-messenger-menu-toggle-icon\">expand_less</span>\n </button>\n\n <div *ngIf=\"messenger.openedChat\"\n [ngClass]=\"{'rtsee-messenger-header-opened-chat-info-expanded': isExpanded}\"\n class=\"rtsee-messenger-header-opened-chat-info\">\n <div class=\"rtsee-messenger-profile-header-placeholder\">\n <p *ngIf=\"messenger.openedChat\"\n class=\"rtsee-messenger-header-chat-title\"\n >{{ messenger.openedChat.name }}</p>\n <div class=\"rtsee-messenger-profile-image-container\" (click)=\"toggleExpand()\">\n <div class=\"rtsee-messenger-profile-image\"\n [style.background-image]=\"'url(' + messenger.openedChat.imageUrl || defaultImagesService.PROFILE + ')'\"\n ></div>\n </div>\n </div>\n <div class=\"rtsee-messenger-profile-data-container\">\n <rtsee-profile *ngIf=\"isExpanded\" [messenger]=\"messenger\"></rtsee-profile>\n </div>\n </div>\n\n <p *ngIf=\"!messenger.openedChat\"\n class=\"rtsee-messenger-header-title\"\n >Messaging</p>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ProfileComponent, selector: "rtsee-profile", inputs: ["messenger"] }] }); }
275
+ }
276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessengerHeaderComponent, decorators: [{
277
+ type: Component,
278
+ args: [{ selector: 'rtsee-messenger-header', imports: [
279
+ NgClass,
280
+ NgIf,
281
+ ProfileComponent
282
+ ], standalone: true, template: "<div class=\"rtsee-messenger-header\"\n [ngClass]=\"{\n 'rtsee-messenger-header-chat-opened': messenger.openedChat,\n 'rtsee-chat-header-unread': messenger.openedChat && !messenger.unreadMessagesCount,\n 'rtsee-messenger-header-expanded': isExpanded\n }\"\n>\n <div class=\"rtsee-messenger-profile-image-container \">\n <div *ngIf=\"!messenger.openedChat\"\n [style.background-image]=\"'url(' + messenger.myPeer?.imageUrl || defaultImagesService.PROFILE + ')'\"\n class=\"rtsee-messenger-profile-image\">\n </div>\n </div>\n\n <button class=\"rtsee-messenger-close-chat\"\n *ngIf=\"messenger.openedChat\"\n (click)=\"messenger.closeChat()\"\n >\n <span class=\"material-icons-outlined\">arrow_back</span>\n <span class=\"unread-count\" *ngIf=\"messenger.unreadMessagesCount\">{{messenger.unreadMessagesCount}}</span>\n </button>\n\n <button class=\"rtsee-messenger-menu-toggle\"\n *ngIf=\"!messenger.openedChat && false\"\n (click)=\"messenger.openMainMenu(true)\"\n >\n <span class=\"material-icons-outlined rtsee-messenger-menu-toggle-icon\">menu</span>\n </button>\n <button class=\"rtsee-messenger-fold-toggle\"\n (click)=\"messenger.changeChatFoldState(!messenger.folded)\"\n >\n <span *ngIf=\"!messenger.folded\" class=\"material-icons-outlined rtsee-messenger-menu-toggle-icon\">expand_more</span>\n <span *ngIf=\"messenger.folded\" class=\"material-icons-outlined rtsee-messenger-menu-toggle-icon\">expand_less</span>\n </button>\n\n <div *ngIf=\"messenger.openedChat\"\n [ngClass]=\"{'rtsee-messenger-header-opened-chat-info-expanded': isExpanded}\"\n class=\"rtsee-messenger-header-opened-chat-info\">\n <div class=\"rtsee-messenger-profile-header-placeholder\">\n <p *ngIf=\"messenger.openedChat\"\n class=\"rtsee-messenger-header-chat-title\"\n >{{ messenger.openedChat.name }}</p>\n <div class=\"rtsee-messenger-profile-image-container\" (click)=\"toggleExpand()\">\n <div class=\"rtsee-messenger-profile-image\"\n [style.background-image]=\"'url(' + messenger.openedChat.imageUrl || defaultImagesService.PROFILE + ')'\"\n ></div>\n </div>\n </div>\n <div class=\"rtsee-messenger-profile-data-container\">\n <rtsee-profile *ngIf=\"isExpanded\" [messenger]=\"messenger\"></rtsee-profile>\n </div>\n </div>\n\n <p *ngIf=\"!messenger.openedChat\"\n class=\"rtsee-messenger-header-title\"\n >Messaging</p>\n</div>\n" }]
283
+ }], ctorParameters: () => [{ type: DefaultImagesService }], propDecorators: { expandToggled: [{
284
+ type: Output
285
+ }], isExpanded: [{
286
+ type: Input
287
+ }], messenger: [{
288
+ type: Input
289
+ }] } });
290
+
291
+ class PreloaderComponent {
292
+ constructor() {
293
+ this.viewBox = '0 0 100 100';
294
+ this.d = 'M 50 96 a 46 46 0 0 1 0 -92 46 46 0 0 1 0 92';
295
+ this.color = '#000000';
296
+ if (this.diameter) {
297
+ this.viewBox = `0 0 ${this.diameter} ${this.diameter}`;
298
+ this.d = `M ${this.diameter / 2} ${this.diameter * 0.96} a ${this.diameter * 0.46} ${this.diameter * 0.46} 0 0 1 0 -${this.diameter * 0.92} ${this.diameter * 0.46} ${this.diameter * 0.46} 0 0 1 0 ${this.diameter * 0.92}`;
299
+ }
300
+ }
301
+ ngOnInit() {
302
+ //viewBox="0 0 100 100"
303
+ //d="M 50 96 a 46 46 0 0 1 0 -92 46 46 0 0 1 0 92"
304
+ }
305
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: PreloaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
306
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: PreloaderComponent, isStandalone: true, selector: "rtsee-preloader", inputs: { diameter: "diameter", color: "color" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }], ngImport: i0, template: "<div class=\"rtsee-preloader\">\n <svg [style.max-width.px]=\"diameter\" #canvas [attr.viewBox]=\"viewBox\">\n <path [attr.d]=\"d\" [attr.stroke]=\"color\"/>\n </svg>\n</div>\n" }); }
307
+ }
308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: PreloaderComponent, decorators: [{
309
+ type: Component,
310
+ args: [{ selector: 'rtsee-preloader', standalone: true, template: "<div class=\"rtsee-preloader\">\n <svg [style.max-width.px]=\"diameter\" #canvas [attr.viewBox]=\"viewBox\">\n <path [attr.d]=\"d\" [attr.stroke]=\"color\"/>\n </svg>\n</div>\n" }]
311
+ }], ctorParameters: () => [], propDecorators: { canvas: [{
312
+ type: ViewChild,
313
+ args: ['canvas']
314
+ }], diameter: [{
315
+ type: Input
316
+ }], color: [{
317
+ type: Input
318
+ }] } });
319
+
320
+ dayjs.extend(relativeTime);
321
+ class TimeFormatHelperService {
322
+ toAgo(time) {
323
+ /* eslint-disable */
324
+ return dayjs(time).fromNow();
325
+ /* eslint-enable */
326
+ }
327
+ toDayOfWeek(time) {
328
+ /* eslint-disable */
329
+ return dayjs(time).format('ddd');
330
+ /* eslint-enable */
331
+ }
332
+ toTime(time) {
333
+ /* eslint-disable */
334
+ return dayjs(time).format('HH:mm');
335
+ /* eslint-enable */
336
+ }
337
+ toDate(time) {
338
+ /* eslint-disable */
339
+ return dayjs(time).format('D MMMM');
340
+ /* eslint-enable */
341
+ }
342
+ toDateNumeral(time) {
343
+ /* eslint-disable */
344
+ return dayjs(time).format('DD.MM');
345
+ /* eslint-enable */
346
+ }
347
+ toDateNumeralWithYear(time) {
348
+ /* eslint-disable */
349
+ return dayjs(time).format('DD.MM.YY');
350
+ /* eslint-enable */
351
+ }
352
+ toDateWithYear(time) {
353
+ /* eslint-disable */
354
+ return dayjs(time).format('MMMM D, YYYY ');
355
+ /* eslint-enable */
356
+ }
357
+ formatDate(time) {
358
+ const today = new Date();
359
+ const dayMs = 1000 * 60 * 60 * 24;
360
+ const twoDays = dayMs * 2;
361
+ if (!time) {
362
+ return '';
363
+ }
364
+ if (today.getTime() - time.getTime() < dayMs &&
365
+ today.getDay() === time.getDay()) {
366
+ return 'Today';
367
+ }
368
+ if (today.getTime() - time.getTime() < twoDays &&
369
+ today.getTime() - time.getTime() > dayMs &&
370
+ today.getDay() !== time.getDay()) {
371
+ return 'Yesterday';
372
+ }
373
+ if (today.getFullYear() === time.getFullYear()) {
374
+ return this.toDate(time);
375
+ }
376
+ return this.toDateWithYear(time);
377
+ }
378
+ formatTimeOrDate(time) {
379
+ if (!time) {
380
+ return '';
381
+ }
382
+ const today = new Date();
383
+ const dayMs = 1000 * 60 * 60 * 24;
384
+ if (today.getTime() - time.getTime() < dayMs &&
385
+ today.getDay() === time.getDay()) {
386
+ return this.toTime(time);
387
+ }
388
+ if (today.getTime() - time.getTime() > dayMs &&
389
+ today.getTime() - time.getTime() < dayMs * 7) {
390
+ return this.toDayOfWeek(time);
391
+ }
392
+ if (today.getTime() - time.getTime() > dayMs * 7 &&
393
+ today.getFullYear() === time.getFullYear()) {
394
+ return this.toDateNumeral(time);
395
+ }
396
+ return this.toDateNumeralWithYear(time);
397
+ }
398
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: TimeFormatHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
399
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: TimeFormatHelperService, providedIn: 'root' }); }
400
+ }
401
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: TimeFormatHelperService, decorators: [{
402
+ type: Injectable,
403
+ args: [{
404
+ providedIn: 'root',
405
+ }]
406
+ }] });
407
+
408
+ class MessageTimeAndStatusComponent {
409
+ constructor(timeFormatService) {
410
+ this.timeFormatService = timeFormatService;
411
+ }
412
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessageTimeAndStatusComponent, deps: [{ token: TimeFormatHelperService }], target: i0.ɵɵFactoryTarget.Component }); }
413
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: MessageTimeAndStatusComponent, isStandalone: true, selector: "rtsee-message-time-and-status", inputs: { message: "message", hideStatus: "hideStatus", inChat: "inChat" }, ngImport: i0, template: "<div class=\"rtsee-messenger-message-time-and-status\">\n <span class=\"rtsee-messenger-message-status\" *ngIf=\"!hideStatus\" [ngClass]=\"{'showing-status-inside-chat': inChat }\">\n <span *ngIf=\"message.status === 'pending'\"><rtsee-preloader [diameter]=\"5\"></rtsee-preloader></span>\n <span *ngIf=\"message.status === 'sent'\" class=\"material-icons-outlined rtsee-message-sent-status\">check</span>\n <span *ngIf=\"message.status === 'delivered'\" class=\"material-icons-outlined rtsee-message-delivered-status\">check</span>\n <span *ngIf=\"message.status === 'seen'\" class=\"material-icons-outlined rtsee-message-seen-status\">done_all</span>\n </span>\n <span class=\"rtsee-messenger-message-time\">{{timeFormatService.formatTimeOrDate(message.createdAt)}}</span>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }] }); }
414
+ }
415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessageTimeAndStatusComponent, decorators: [{
416
+ type: Component,
417
+ args: [{ selector: 'rtsee-message-time-and-status', imports: [
418
+ NgIf,
419
+ NgClass,
420
+ PreloaderComponent
421
+ ], standalone: true, template: "<div class=\"rtsee-messenger-message-time-and-status\">\n <span class=\"rtsee-messenger-message-status\" *ngIf=\"!hideStatus\" [ngClass]=\"{'showing-status-inside-chat': inChat }\">\n <span *ngIf=\"message.status === 'pending'\"><rtsee-preloader [diameter]=\"5\"></rtsee-preloader></span>\n <span *ngIf=\"message.status === 'sent'\" class=\"material-icons-outlined rtsee-message-sent-status\">check</span>\n <span *ngIf=\"message.status === 'delivered'\" class=\"material-icons-outlined rtsee-message-delivered-status\">check</span>\n <span *ngIf=\"message.status === 'seen'\" class=\"material-icons-outlined rtsee-message-seen-status\">done_all</span>\n </span>\n <span class=\"rtsee-messenger-message-time\">{{timeFormatService.formatTimeOrDate(message.createdAt)}}</span>\n</div>\n" }]
422
+ }], ctorParameters: () => [{ type: TimeFormatHelperService }], propDecorators: { message: [{
423
+ type: Input
424
+ }], hideStatus: [{
425
+ type: Input
426
+ }], inChat: [{
427
+ type: Input
428
+ }] } });
429
+
430
+ class ChatThumbnailComponent {
431
+ constructor(timeFormatService) {
432
+ this.timeFormatService = timeFormatService;
433
+ this.RTSeeChatTypes = RTSeeChatTypes;
434
+ }
435
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatThumbnailComponent, deps: [{ token: TimeFormatHelperService }], target: i0.ɵɵFactoryTarget.Component }); }
436
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ChatThumbnailComponent, isStandalone: true, selector: "rtsee-chat-thumbnail", inputs: { chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rtsee-chat-thumbnail\" (click)=\"messenger.openChatById(chat.chatId)\">\n <div class=\"rtsee-chat-thumbnail-image\">\n <img [src]=\"chat.chatImageUrl\" alt=\"chat-img\">\n </div>\n <div class=\"rtsee-chat-thumbnail-left\">\n <div class=\"rtsee-chat-thumbnail-name\">\n <span>{{ chat.chatName }}</span>\n <div class=\"rtsee-chat-thumbnail-status\">\n <rtsee-message-time-and-status [message]=\"chat\"\n [hideStatus]=\"chat && !!(chat.unreadMessagesCount)\">\n </rtsee-message-time-and-status>\n </div>\n </div>\n <div class=\"rtsee-chat-thumbnail-last-message\"\n [ngClass]=\"{'rtsee-has-unread': chat.unreadMessagesCount}\"\n rtseeShave>\n <span class=\"rtsee-chat-thumbnail-last-message-sender\"\n *ngIf=\"chat.chatType !== RTSeeChatTypes.INDIVIDUAL && chat.senderName\"\n >{{chat.senderName}}</span>\n <span class=\"rtsee-chat-thumbnail-last-message-text\"\n *ngIf=\"chat.text\"\n >{{chat.text}}</span>\n <div class=\"rtsee-messenger-thumbnail-unread\" *ngIf=\"chat.unreadMessagesCount\">\n <span class=\"rtsee-messenger-thumbnail-unread-count\">{{chat.unreadMessagesCount}}</span>\n </div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MessageTimeAndStatusComponent, selector: "rtsee-message-time-and-status", inputs: ["message", "hideStatus", "inChat"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
437
+ }
438
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatThumbnailComponent, decorators: [{
439
+ type: Component,
440
+ args: [{ selector: 'rtsee-chat-thumbnail', imports: [
441
+ MessageTimeAndStatusComponent,
442
+ NgClass,
443
+ NgIf
444
+ ], standalone: true, template: "<div class=\"rtsee-chat-thumbnail\" (click)=\"messenger.openChatById(chat.chatId)\">\n <div class=\"rtsee-chat-thumbnail-image\">\n <img [src]=\"chat.chatImageUrl\" alt=\"chat-img\">\n </div>\n <div class=\"rtsee-chat-thumbnail-left\">\n <div class=\"rtsee-chat-thumbnail-name\">\n <span>{{ chat.chatName }}</span>\n <div class=\"rtsee-chat-thumbnail-status\">\n <rtsee-message-time-and-status [message]=\"chat\"\n [hideStatus]=\"chat && !!(chat.unreadMessagesCount)\">\n </rtsee-message-time-and-status>\n </div>\n </div>\n <div class=\"rtsee-chat-thumbnail-last-message\"\n [ngClass]=\"{'rtsee-has-unread': chat.unreadMessagesCount}\"\n rtseeShave>\n <span class=\"rtsee-chat-thumbnail-last-message-sender\"\n *ngIf=\"chat.chatType !== RTSeeChatTypes.INDIVIDUAL && chat.senderName\"\n >{{chat.senderName}}</span>\n <span class=\"rtsee-chat-thumbnail-last-message-text\"\n *ngIf=\"chat.text\"\n >{{chat.text}}</span>\n <div class=\"rtsee-messenger-thumbnail-unread\" *ngIf=\"chat.unreadMessagesCount\">\n <span class=\"rtsee-messenger-thumbnail-unread-count\">{{chat.unreadMessagesCount}}</span>\n </div>\n </div>\n </div>\n</div>\n" }]
445
+ }], ctorParameters: () => [{ type: TimeFormatHelperService }], propDecorators: { chat: [{
446
+ type: Input
447
+ }], messenger: [{
448
+ type: Input
449
+ }] } });
450
+
451
+ class ChatsListComponent {
452
+ ngOnInit() {
453
+ // console.log(this.chats);
454
+ }
455
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatsListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
456
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ChatsListComponent, isStandalone: true, selector: "rtsee-chats-list", inputs: { messenger: "messenger", chats: "chats" }, ngImport: i0, template: "<div class=\"rtsee-chats-list\">\n <div class=\"rtsee-chat-thumbnail-container\" *ngFor=\"let chat of chats; let last = last;\">\n <rtsee-chat-thumbnail [chat]=\"chat.thumbnail\" [messenger]=\"messenger\"></rtsee-chat-thumbnail>\n<!-- <div class=\"rtsee-chat-thumbnail-separator\" *ngIf=\"!last\"></div>-->\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ChatThumbnailComponent, selector: "rtsee-chat-thumbnail", inputs: ["chat", "messenger"] }] }); }
457
+ }
458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatsListComponent, decorators: [{
459
+ type: Component,
460
+ args: [{ selector: 'rtsee-chats-list', imports: [
461
+ NgForOf,
462
+ ChatThumbnailComponent
463
+ ], standalone: true, template: "<div class=\"rtsee-chats-list\">\n <div class=\"rtsee-chat-thumbnail-container\" *ngFor=\"let chat of chats; let last = last;\">\n <rtsee-chat-thumbnail [chat]=\"chat.thumbnail\" [messenger]=\"messenger\"></rtsee-chat-thumbnail>\n<!-- <div class=\"rtsee-chat-thumbnail-separator\" *ngIf=\"!last\"></div>-->\n </div>\n</div>\n" }]
464
+ }], propDecorators: { messenger: [{
465
+ type: Input
466
+ }], chats: [{
467
+ type: Input
468
+ }] } });
469
+
470
+ class WidgetDirective {
471
+ constructor(viewContainerRef) {
472
+ this.viewContainerRef = viewContainerRef;
473
+ }
474
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: WidgetDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
475
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.1", type: WidgetDirective, isStandalone: true, selector: "[widgetHost]", ngImport: i0 }); }
476
+ }
477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: WidgetDirective, decorators: [{
478
+ type: Directive,
479
+ args: [{
480
+ selector: '[widgetHost]',
481
+ standalone: true
482
+ }]
483
+ }], ctorParameters: () => [{ type: i0.ViewContainerRef }] });
484
+
485
+ class CallWidgetComponent {
486
+ ngOnInit() {
487
+ if (this.messenger.clientId === this.message.data?.callerId) {
488
+ this.callerName = 'You';
489
+ }
490
+ else {
491
+ this.callerName = this.message.data?.caller?.name;
492
+ }
493
+ }
494
+ joinCall() {
495
+ if (!this.messenger || !this.message.data?.roomId) {
496
+ console.log('No Room Id specified or no messenger!');
497
+ return;
498
+ }
499
+ void this.messenger.joinCall(this.message.data.roomId);
500
+ }
501
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: CallWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
502
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: CallWidgetComponent, isStandalone: true, selector: "ngx-call-widget", inputs: { message: "message", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rtsee-call-widget\">\n <p *ngIf=\"callerName && callerName !== 'You'\"> {{ callerName }} has started a call</p>\n <p *ngIf=\"callerName && callerName === 'You'\"> You have started a call</p>\n <p *ngIf=\"!callerName\"> The call has started</p>\n <button class=\"rtsee-join-call-btn\"\n [ngClass]=\"{'rtsee-join-your-call-btn': callerName && callerName === 'You'}\"\n (click)=\"joinCall()\">\n Join Call\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
503
+ }
504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: CallWidgetComponent, decorators: [{
505
+ type: Component,
506
+ args: [{ selector: 'ngx-call-widget', imports: [
507
+ NgIf,
508
+ NgClass
509
+ ], standalone: true, template: "<div class=\"rtsee-call-widget\">\n <p *ngIf=\"callerName && callerName !== 'You'\"> {{ callerName }} has started a call</p>\n <p *ngIf=\"callerName && callerName === 'You'\"> You have started a call</p>\n <p *ngIf=\"!callerName\"> The call has started</p>\n <button class=\"rtsee-join-call-btn\"\n [ngClass]=\"{'rtsee-join-your-call-btn': callerName && callerName === 'You'}\"\n (click)=\"joinCall()\">\n Join Call\n </button>\n</div>\n" }]
510
+ }], propDecorators: { message: [{
511
+ type: Input
512
+ }], messenger: [{
513
+ type: Input
514
+ }] } });
515
+
516
+ class MessageWidgetsService {
517
+ constructor() {
518
+ this.widgetsMap = [
519
+ { name: 'rtsee-call', component: CallWidgetComponent },
520
+ ];
521
+ }
522
+ getWidgetComponentByName(name) {
523
+ /* eslint-disable */
524
+ const mapping = this.widgetsMap.find((e) => e.name === name);
525
+ if (!mapping) {
526
+ return null;
527
+ }
528
+ return mapping.component;
529
+ /* eslint-enable */
530
+ }
531
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessageWidgetsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
532
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessageWidgetsService, providedIn: 'root' }); }
533
+ }
534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessageWidgetsService, decorators: [{
535
+ type: Injectable,
536
+ args: [{
537
+ providedIn: 'root',
538
+ }]
539
+ }] });
540
+
541
+ class MessageComponent {
542
+ constructor(widgetsService, componentFactoryResolver, timeFormatService) {
543
+ this.widgetsService = widgetsService;
544
+ this.componentFactoryResolver = componentFactoryResolver;
545
+ this.timeFormatService = timeFormatService;
546
+ }
547
+ ngAfterViewInit() {
548
+ /* eslint-disable */
549
+ if (this.message.widget) {
550
+ const widget = this.widgetsService.getWidgetComponentByName(this.message.widget);
551
+ if (!widget) {
552
+ return;
553
+ }
554
+ const viewContainerRef = this.widgetHost.viewContainerRef;
555
+ viewContainerRef.clear();
556
+ const componentToShow = this.componentFactoryResolver.resolveComponentFactory(widget);
557
+ const componentRef = viewContainerRef.createComponent(componentToShow);
558
+ componentRef.instance.message = this.message;
559
+ componentRef.instance.messenger = this.messenger;
560
+ componentRef.changeDetectorRef.detectChanges();
561
+ }
562
+ /* eslint-enable */
563
+ }
564
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessageComponent, deps: [{ token: MessageWidgetsService }, { token: i0.ComponentFactoryResolver }, { token: TimeFormatHelperService }], target: i0.ɵɵFactoryTarget.Component }); }
565
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: MessageComponent, isStandalone: true, selector: "rtsee-message", inputs: { chat: "chat", message: "message", member: "member", messenger: "messenger" }, viewQueries: [{ propertyName: "widgetHost", first: true, predicate: WidgetDirective, descendants: true }], ngImport: i0, template: "<div class=\"rtsee-messenger-message-container\" #rtsMessageContainer\n [ngClass]=\"{'rtsee-message-from-me': message.from.id === messenger.clientId}\"\n>\n <div class=\"rtsee-messenger-message\">\n <ng-template *ngIf=\"message.widget\" widgetHost></ng-template>\n <p *ngIf=\"!message.widget\"\n class=\"rtsee-messenger-message-text\"\n >{{ message.text }}</p>\n <div class=\"rtsee-messenger-message-info\" #rtsMessageInfo>\n <rtsee-message-time-and-status [message]=\"message\"\n [inChat]=\"true\"\n [hideStatus]=\"message.from.id !== messenger.clientId\"\n ></rtsee-message-time-and-status>\n </div>\n </div>\n <div class=\"message-tail\"></div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MessageTimeAndStatusComponent, selector: "rtsee-message-time-and-status", inputs: ["message", "hideStatus", "inChat"] }] }); }
566
+ }
567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessageComponent, decorators: [{
568
+ type: Component,
569
+ args: [{ selector: 'rtsee-message', imports: [
570
+ NgClass,
571
+ NgIf,
572
+ MessageTimeAndStatusComponent
573
+ ], standalone: true, template: "<div class=\"rtsee-messenger-message-container\" #rtsMessageContainer\n [ngClass]=\"{'rtsee-message-from-me': message.from.id === messenger.clientId}\"\n>\n <div class=\"rtsee-messenger-message\">\n <ng-template *ngIf=\"message.widget\" widgetHost></ng-template>\n <p *ngIf=\"!message.widget\"\n class=\"rtsee-messenger-message-text\"\n >{{ message.text }}</p>\n <div class=\"rtsee-messenger-message-info\" #rtsMessageInfo>\n <rtsee-message-time-and-status [message]=\"message\"\n [inChat]=\"true\"\n [hideStatus]=\"message.from.id !== messenger.clientId\"\n ></rtsee-message-time-and-status>\n </div>\n </div>\n <div class=\"message-tail\"></div>\n</div>\n" }]
574
+ }], ctorParameters: () => [{ type: MessageWidgetsService }, { type: i0.ComponentFactoryResolver }, { type: TimeFormatHelperService }], propDecorators: { chat: [{
575
+ type: Input
576
+ }], message: [{
577
+ type: Input
578
+ }], member: [{
579
+ type: Input
580
+ }], messenger: [{
581
+ type: Input
582
+ }], widgetHost: [{
583
+ type: ViewChild,
584
+ args: [WidgetDirective, { static: false }]
585
+ }] } });
586
+
587
+ class MessagesListComponent {
588
+ constructor(timeFormatService) {
589
+ this.timeFormatService = timeFormatService;
590
+ this.bindScrollFunction = this.scrollToBottom.bind(this);
591
+ }
592
+ ngOnInit() {
593
+ this.chat.on(RTSeeChatEvents.MESSAGE_ADDED, this.bindScrollFunction);
594
+ }
595
+ ngAfterViewInit() {
596
+ this.scrollToBottom();
597
+ }
598
+ onMessageSent() {
599
+ this.scrollToBottom();
600
+ }
601
+ ngOnDestroy() {
602
+ this.chat.off(RTSeeChatEvents.MESSAGE_ADDED, this.bindScrollFunction);
603
+ }
604
+ onScrolledToTop() {
605
+ if (this.chat.messagesLoadInProgress) {
606
+ return;
607
+ }
608
+ this.chat.loadRemoteMessages('back');
609
+ }
610
+ onScroll() {
611
+ // if (this.scrollContainer.nativeElement.scrollTop < 1) {
612
+ // this.scrollContainer.nativeElement.scrollTop = 1;
613
+ // }
614
+ if (this.chat.messagesLoadInProgress) {
615
+ return;
616
+ }
617
+ this.chat.loadRemoteMessages('front');
618
+ }
619
+ scrollToBottom() {
620
+ if (!this.scrollContainer?.nativeElement?.scrollHeight) {
621
+ return;
622
+ }
623
+ try {
624
+ this.scrollContainer.nativeElement.scrollTop =
625
+ this.scrollContainer.nativeElement.scrollHeight;
626
+ }
627
+ catch (err) {
628
+ console.log('Failed to Scroll');
629
+ }
630
+ }
631
+ formatDate(message) {
632
+ return this.timeFormatService.formatDate(message.createdAt);
633
+ }
634
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }], target: i0.ɵɵFactoryTarget.Component }); }
635
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: MessagesListComponent, isStandalone: true, selector: "rtsee-messages-list", inputs: { chat: "chat", messenger: "messenger" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollBlock"], descendants: true }], ngImport: i0, template: "<div class=\"rtsee-messenger-messages-list\"\n #scrollBlock\n infiniteScroll\n [infiniteScrollUpDistance]=\"2\"\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"false\"\n (scrolledUp)=\"onScrolledToTop()\"\n (scroll)=\"onScroll()\"\n>\n @for (message of chat.messages; track message.id; let i = $index) {\n <div [ngClass]=\"{'rtsee-messenger-message-wrapper-consecutive': message.from === chat.messages[i+1]?.from}\"\n class=\"rtsee-messenger-message-wrapper\"\n >\n <rtsee-message [message]=\"message\" [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-message>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MessageComponent, selector: "rtsee-message", inputs: ["chat", "message", "member", "messenger"] }] }); }
636
+ }
637
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessagesListComponent, decorators: [{
638
+ type: Component,
639
+ args: [{ selector: 'rtsee-messages-list', imports: [
640
+ InfiniteScrollDirective,
641
+ NgClass,
642
+ NgForOf,
643
+ MessageComponent
644
+ ], standalone: true, template: "<div class=\"rtsee-messenger-messages-list\"\n #scrollBlock\n infiniteScroll\n [infiniteScrollUpDistance]=\"2\"\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"false\"\n (scrolledUp)=\"onScrolledToTop()\"\n (scroll)=\"onScroll()\"\n>\n @for (message of chat.messages; track message.id; let i = $index) {\n <div [ngClass]=\"{'rtsee-messenger-message-wrapper-consecutive': message.from === chat.messages[i+1]?.from}\"\n class=\"rtsee-messenger-message-wrapper\"\n >\n <rtsee-message [message]=\"message\" [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-message>\n </div>\n }\n</div>\n" }]
645
+ }], ctorParameters: () => [{ type: TimeFormatHelperService }], propDecorators: { chat: [{
646
+ type: Input
647
+ }], messenger: [{
648
+ type: Input
649
+ }], scrollContainer: [{
650
+ type: ViewChild,
651
+ args: ['scrollBlock']
652
+ }] } });
653
+
654
+ class ChatInputComponent {
655
+ constructor() {
656
+ this.sendMessageForm = new FormGroup({
657
+ /* eslint-disable */
658
+ message: new FormControl('', Validators.required),
659
+ /* eslint-enable */
660
+ });
661
+ }
662
+ sendMessage() {
663
+ const text = this.sendMessageForm.get('message')?.value;
664
+ if (!text) {
665
+ return;
666
+ }
667
+ this.chat.sendMessage(text);
668
+ this.sendMessageForm.get('message')?.setValue('');
669
+ }
670
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
671
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ChatInputComponent, isStandalone: true, selector: "rtsee-chat-input", inputs: { messenger: "messenger", chat: "chat" }, ngImport: i0, template: "<div class=\"rtsee-chat-input\" xmlns=\"http://www.w3.org/1999/html\">\n <div class=\"rtsee-send-message\">\n <form [formGroup]=\"sendMessageForm\" class=\"rtsee-chat-input-form\">\n <textarea\n placeholder=\"Type message...\"\n type=\"text\"\n formControlName=\"message\"\n class=\"rtsee-chat-input-field\"\n autosize\n required\n (keyup.enter)=\"sendMessage()\"\n ></textarea>\n </form>\n </div>\n <button (click)=\"sendMessage()\"\n class=\"rtsee-send-message-button\"\n type=\"submit\">\n <span class=\"material-icons-outlined\">send</span>\n </button>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] }); }
672
+ }
673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatInputComponent, decorators: [{
674
+ type: Component,
675
+ args: [{ selector: 'rtsee-chat-input', imports: [
676
+ ReactiveFormsModule
677
+ ], standalone: true, template: "<div class=\"rtsee-chat-input\" xmlns=\"http://www.w3.org/1999/html\">\n <div class=\"rtsee-send-message\">\n <form [formGroup]=\"sendMessageForm\" class=\"rtsee-chat-input-form\">\n <textarea\n placeholder=\"Type message...\"\n type=\"text\"\n formControlName=\"message\"\n class=\"rtsee-chat-input-field\"\n autosize\n required\n (keyup.enter)=\"sendMessage()\"\n ></textarea>\n </form>\n </div>\n <button (click)=\"sendMessage()\"\n class=\"rtsee-send-message-button\"\n type=\"submit\">\n <span class=\"material-icons-outlined\">send</span>\n </button>\n</div>\n" }]
678
+ }], propDecorators: { messenger: [{
679
+ type: Input
680
+ }], chat: [{
681
+ type: Input
682
+ }] } });
683
+
684
+ class ChatComponent {
685
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
686
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ChatComponent, isStandalone: true, selector: "rtsee-chat", inputs: { chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rtsee-chat\">\n <div class=\"rtsee-chat-body-container\">\n <rtsee-messages-list [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-messages-list>\n </div>\n <div class=\"rtsee-chat-footer-container\">\n <div class=\"rtsee-chat-footer-container-inner\">\n <rtsee-chat-input [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-chat-input>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MessagesListComponent, selector: "rtsee-messages-list", inputs: ["chat", "messenger"] }, { kind: "component", type: ChatInputComponent, selector: "rtsee-chat-input", inputs: ["messenger", "chat"] }] }); }
687
+ }
688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ChatComponent, decorators: [{
689
+ type: Component,
690
+ args: [{ selector: 'rtsee-chat', imports: [
691
+ MessagesListComponent,
692
+ ChatInputComponent
693
+ ], standalone: true, template: "<div class=\"rtsee-chat\">\n <div class=\"rtsee-chat-body-container\">\n <rtsee-messages-list [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-messages-list>\n </div>\n <div class=\"rtsee-chat-footer-container\">\n <div class=\"rtsee-chat-footer-container-inner\">\n <rtsee-chat-input [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-chat-input>\n </div>\n </div>\n</div>\n" }]
694
+ }], propDecorators: { chat: [{
695
+ type: Input
696
+ }], messenger: [{
697
+ type: Input
698
+ }] } });
699
+
700
+ var MainMenuPanels;
701
+ (function (MainMenuPanels) {
702
+ MainMenuPanels["HOME"] = "home";
703
+ MainMenuPanels["CONTACTS_SELECT"] = "contacts-select";
704
+ MainMenuPanels["MANAGE_CHAT"] = "manage-chat";
705
+ })(MainMenuPanels || (MainMenuPanels = {}));
706
+ const DEFAULT_MAIN_MENU_STATE = MainMenuPanels.HOME;
707
+
708
+ class SearchComponent {
709
+ constructor() {
710
+ this.queryControl = new FormControl();
711
+ }
712
+ ngOnInit() {
713
+ this.queryCtrlSub = this.queryControl.valueChanges
714
+ .pipe(debounceTime(200))
715
+ .subscribe((value) => this.search.onQueryChange(value));
716
+ }
717
+ ngOnDestroy() {
718
+ if (this.queryCtrlSub) {
719
+ this.queryCtrlSub.unsubscribe();
720
+ }
721
+ }
722
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
723
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: SearchComponent, isStandalone: true, selector: "rtsee-search", inputs: { search: "search" }, ngImport: i0, template: "<div class=\"rtsee-messenger-search\">\n <input type=\"text\"\n [formControl]=\"queryControl\"\n class=\"rtsee-messenger-search-input\"\n placeholder=\"Search\"/>\n</div>\n\n<div class=\"rtsee-messenger-search-results\">\n <rtsee-preloader [diameter]=\"50\"\n *ngIf=\"search.searchInProgress\"\n ></rtsee-preloader>\n <p>Chats</p>\n <div class=\"rtsee-messenger-search-results-chats\">\n <div *ngFor=\"let chat of search.results.chats\"\n class=\"rtsee-messenger-search-results-chat-wrapper\">\n <p>{{chat.name}}</p>\n </div>\n </div>\n <p>Messages</p>\n <div class=\"rtsee-messenger-search-results-messages\">\n <div *ngFor=\"let message of search.results.messages\" class=\"rtsee-messenger-search-results-message-wrapper\">\n <p>{{message.chatName || message.senderName }}</p>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
724
+ }
725
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SearchComponent, decorators: [{
726
+ type: Component,
727
+ args: [{ selector: 'rtsee-search', imports: [
728
+ ReactiveFormsModule,
729
+ PreloaderComponent,
730
+ NgForOf
731
+ ], standalone: true, template: "<div class=\"rtsee-messenger-search\">\n <input type=\"text\"\n [formControl]=\"queryControl\"\n class=\"rtsee-messenger-search-input\"\n placeholder=\"Search\"/>\n</div>\n\n<div class=\"rtsee-messenger-search-results\">\n <rtsee-preloader [diameter]=\"50\"\n *ngIf=\"search.searchInProgress\"\n ></rtsee-preloader>\n <p>Chats</p>\n <div class=\"rtsee-messenger-search-results-chats\">\n <div *ngFor=\"let chat of search.results.chats\"\n class=\"rtsee-messenger-search-results-chat-wrapper\">\n <p>{{chat.name}}</p>\n </div>\n </div>\n <p>Messages</p>\n <div class=\"rtsee-messenger-search-results-messages\">\n <div *ngFor=\"let message of search.results.messages\" class=\"rtsee-messenger-search-results-message-wrapper\">\n <p>{{message.chatName || message.senderName }}</p>\n </div>\n </div>\n</div>\n" }]
732
+ }], propDecorators: { search: [{
733
+ type: Input
734
+ }] } });
735
+
736
+ class ManageChatComponent {
737
+ onInviteContactsClicked() {
738
+ this.menuState.activePanel = MainMenuPanels.CONTACTS_SELECT;
739
+ }
740
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ManageChatComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
741
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ManageChatComponent, isStandalone: true, selector: "rtsee-manage-chat", inputs: { messenger: "messenger", menuState: "menuState" }, ngImport: i0, template: "<div class=\"rtsee-messenger-manage-chat\">\n <p>We are going to manage chat here</p>\n <button (click)=\"onInviteContactsClicked()\">Invite Contacts</button>\n</div>\n", styles: [""] }); }
742
+ }
743
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ManageChatComponent, decorators: [{
744
+ type: Component,
745
+ args: [{ selector: 'rtsee-manage-chat', standalone: true, template: "<div class=\"rtsee-messenger-manage-chat\">\n <p>We are going to manage chat here</p>\n <button (click)=\"onInviteContactsClicked()\">Invite Contacts</button>\n</div>\n" }]
746
+ }], propDecorators: { messenger: [{
747
+ type: Input
748
+ }], menuState: [{
749
+ type: Input
750
+ }] } });
751
+
752
+ class ContactsMultiselectComponent {
753
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ContactsMultiselectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
754
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ContactsMultiselectComponent, isStandalone: true, selector: "rtsee-contacts-multiselect", inputs: { menuState: "menuState", search: "search" }, ngImport: i0, template: "<div class=\"rtsee-messenger-contacts-multiselect\">\n <rtsee-search [search]=\"search\"></rtsee-search>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: SearchComponent, selector: "rtsee-search", inputs: ["search"] }] }); }
755
+ }
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ContactsMultiselectComponent, decorators: [{
757
+ type: Component,
758
+ args: [{ selector: 'rtsee-contacts-multiselect', imports: [
759
+ SearchComponent
760
+ ], standalone: true, template: "<div class=\"rtsee-messenger-contacts-multiselect\">\n <rtsee-search [search]=\"search\"></rtsee-search>\n</div>\n" }]
761
+ }], propDecorators: { menuState: [{
762
+ type: Input
763
+ }], search: [{
764
+ type: Input
765
+ }] } });
766
+
767
+ class MainMenuComponent {
768
+ constructor() {
769
+ this.MainMenuPanels = MainMenuPanels;
770
+ this.state = {
771
+ activePanel: DEFAULT_MAIN_MENU_STATE,
772
+ };
773
+ }
774
+ onNewGroupClicked() {
775
+ this.state.activePanel = MainMenuPanels.CONTACTS_SELECT;
776
+ }
777
+ onNewChannelClicked() {
778
+ this.state.activePanel = MainMenuPanels.MANAGE_CHAT;
779
+ }
780
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
781
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: MainMenuComponent, isStandalone: true, selector: "rtsee-main-menu", inputs: { search: "search", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rtsee-messenger-main-menu\">\n <div class=\"rtsee-messenger-main-menu-home\" *ngIf=\"state.activePanel === MainMenuPanels.HOME\">\n <ul class=\"rtsee-messenger-controls\">\n <li>\n <div class=\"rtsee-messenger-control-item\" (click)=\"onNewGroupClicked()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">people</span>\n </div>\n <span>New Group</span>\n </div>\n </li>\n <li>\n <div class=\"rtsee-messenger-control-item\" (click)=\"onNewChannelClicked()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">campaign</span>\n </div>\n <span>New Channel</span>\n </div>\n </li>\n </ul>\n <rtsee-search [search]=\"search\" ></rtsee-search>\n </div>\n\n <rtsee-manage-chat *ngIf=\"state.activePanel === MainMenuPanels.MANAGE_CHAT\"\n [messenger]=\"messenger\"\n [menuState]=\"state\"\n ></rtsee-manage-chat>\n <rtsee-contacts-multiselect [search]=\"search\"\n [menuState]=\"state\"\n *ngIf=\"state.activePanel === MainMenuPanels.CONTACTS_SELECT\"\n ></rtsee-contacts-multiselect>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SearchComponent, selector: "rtsee-search", inputs: ["search"] }, { kind: "component", type: ManageChatComponent, selector: "rtsee-manage-chat", inputs: ["messenger", "menuState"] }, { kind: "component", type: ContactsMultiselectComponent, selector: "rtsee-contacts-multiselect", inputs: ["menuState", "search"] }] }); }
782
+ }
783
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MainMenuComponent, decorators: [{
784
+ type: Component,
785
+ args: [{ selector: 'rtsee-main-menu', imports: [
786
+ NgIf,
787
+ SearchComponent,
788
+ ManageChatComponent,
789
+ ContactsMultiselectComponent
790
+ ], standalone: true, template: "<div class=\"rtsee-messenger-main-menu\">\n <div class=\"rtsee-messenger-main-menu-home\" *ngIf=\"state.activePanel === MainMenuPanels.HOME\">\n <ul class=\"rtsee-messenger-controls\">\n <li>\n <div class=\"rtsee-messenger-control-item\" (click)=\"onNewGroupClicked()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">people</span>\n </div>\n <span>New Group</span>\n </div>\n </li>\n <li>\n <div class=\"rtsee-messenger-control-item\" (click)=\"onNewChannelClicked()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">campaign</span>\n </div>\n <span>New Channel</span>\n </div>\n </li>\n </ul>\n <rtsee-search [search]=\"search\" ></rtsee-search>\n </div>\n\n <rtsee-manage-chat *ngIf=\"state.activePanel === MainMenuPanels.MANAGE_CHAT\"\n [messenger]=\"messenger\"\n [menuState]=\"state\"\n ></rtsee-manage-chat>\n <rtsee-contacts-multiselect [search]=\"search\"\n [menuState]=\"state\"\n *ngIf=\"state.activePanel === MainMenuPanels.CONTACTS_SELECT\"\n ></rtsee-contacts-multiselect>\n</div>\n" }]
791
+ }], propDecorators: { search: [{
792
+ type: Input
793
+ }], messenger: [{
794
+ type: Input
795
+ }] } });
796
+
797
+ class MessengerComponent {
798
+ constructor() {
799
+ this.isHeaderExpanded = false;
800
+ }
801
+ onScroll() {
802
+ this.messenger.loadChats();
803
+ }
804
+ // onGeneralScroll($event) {
805
+ // // $event.stopPropagation();
806
+ // }
807
+ onHeaderExpandToggled(value) {
808
+ this.isHeaderExpanded = value;
809
+ }
810
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessengerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
811
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: MessengerComponent, isStandalone: true, selector: "rtsee-messenger", inputs: { messenger: "messenger" }, ngImport: i0, template: "<div class=\"rtsee-messenger\" [ngClass]=\"{\n 'rtsee-messenger-main-menu-opened': messenger.mainMenuOpened,\n 'rtsee-messenger-header-expanded': isHeaderExpanded,\n 'rtsee-messenger-folded': messenger.folded\n}\">\n <div class=\"rtsee-messenger-header-container\">\n <rtsee-messenger-header [messenger]=\"messenger\"\n (expandToggled)=\"onHeaderExpandToggled($event)\"\n ></rtsee-messenger-header>\n </div>\n <div class=\"rtsee-messenger-body-container\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"false\"\n (scrolled)=\"onScroll()\"\n >\n <rtsee-chats-list *ngIf=\"!messenger.openedChat\" [chats]=\"messenger.chats\" [messenger]=\"messenger\"></rtsee-chats-list>\n <rtsee-chat *ngIf=\"messenger.openedChat\" [messenger]=\"messenger\" [chat]=\"messenger.openedChat\"></rtsee-chat>\n <rtsee-preloader [diameter]=\"50\" *ngIf=\"messenger.loadingChatsInProgress\" ></rtsee-preloader>\n </div>\n <div class=\"rtsee-messenger-main-menu-container\">\n <rtsee-main-menu\n *ngIf=\"messenger.mainMenuOpened\"\n [search]=\"messenger.search\"\n [messenger]=\"messenger\"></rtsee-main-menu>\n </div>\n <div class=\"rtsee-messenger-overlay\" (click)=\"messenger.openMainMenu(false)\"></div>\n</div>\n\n\n", dependencies: [{ kind: "component", type: MessengerHeaderComponent, selector: "rtsee-messenger-header", inputs: ["isExpanded", "messenger"], outputs: ["expandToggled"] }, { kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ChatsListComponent, selector: "rtsee-chats-list", inputs: ["messenger", "chats"] }, { kind: "component", type: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "messenger"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: MainMenuComponent, selector: "rtsee-main-menu", inputs: ["search", "messenger"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
812
+ }
813
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MessengerComponent, decorators: [{
814
+ type: Component,
815
+ args: [{ selector: 'rtsee-messenger', imports: [
816
+ MessengerHeaderComponent,
817
+ InfiniteScrollDirective,
818
+ NgClass,
819
+ ChatsListComponent,
820
+ ChatComponent,
821
+ PreloaderComponent,
822
+ MainMenuComponent,
823
+ NgIf
824
+ ], standalone: true, template: "<div class=\"rtsee-messenger\" [ngClass]=\"{\n 'rtsee-messenger-main-menu-opened': messenger.mainMenuOpened,\n 'rtsee-messenger-header-expanded': isHeaderExpanded,\n 'rtsee-messenger-folded': messenger.folded\n}\">\n <div class=\"rtsee-messenger-header-container\">\n <rtsee-messenger-header [messenger]=\"messenger\"\n (expandToggled)=\"onHeaderExpandToggled($event)\"\n ></rtsee-messenger-header>\n </div>\n <div class=\"rtsee-messenger-body-container\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"false\"\n (scrolled)=\"onScroll()\"\n >\n <rtsee-chats-list *ngIf=\"!messenger.openedChat\" [chats]=\"messenger.chats\" [messenger]=\"messenger\"></rtsee-chats-list>\n <rtsee-chat *ngIf=\"messenger.openedChat\" [messenger]=\"messenger\" [chat]=\"messenger.openedChat\"></rtsee-chat>\n <rtsee-preloader [diameter]=\"50\" *ngIf=\"messenger.loadingChatsInProgress\" ></rtsee-preloader>\n </div>\n <div class=\"rtsee-messenger-main-menu-container\">\n <rtsee-main-menu\n *ngIf=\"messenger.mainMenuOpened\"\n [search]=\"messenger.search\"\n [messenger]=\"messenger\"></rtsee-main-menu>\n </div>\n <div class=\"rtsee-messenger-overlay\" (click)=\"messenger.openMainMenu(false)\"></div>\n</div>\n\n\n" }]
825
+ }], ctorParameters: () => [], propDecorators: { messenger: [{
826
+ type: Input
827
+ }] } });
828
+
829
+ class EventsWidgetsService {
830
+ constructor() {
831
+ this.widgetsMap = [];
832
+ }
833
+ getWidgetComponentByName(name) {
834
+ /* eslint-disable */
835
+ const mapping = this.widgetsMap.find((e) => e.name === name);
836
+ if (!mapping) {
837
+ return null;
838
+ }
839
+ return mapping.component;
840
+ /* eslint-enable */
841
+ }
842
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EventsWidgetsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
843
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EventsWidgetsService, providedIn: 'root' }); }
844
+ }
845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EventsWidgetsService, decorators: [{
846
+ type: Injectable,
847
+ args: [{
848
+ providedIn: 'root',
849
+ }]
850
+ }] });
851
+
852
+ class EventThumbnailComponent {
853
+ constructor(widgetsService, componentFactoryResolver, timeFormatService, cd) {
854
+ this.widgetsService = widgetsService;
855
+ this.componentFactoryResolver = componentFactoryResolver;
856
+ this.timeFormatService = timeFormatService;
857
+ this.cd = cd;
858
+ }
859
+ ngOnInit() {
860
+ if (this.event.data) {
861
+ this.generateTooltip();
862
+ }
863
+ }
864
+ generateTooltip() {
865
+ /* eslint-disable */
866
+ let tooltip = '';
867
+ if (typeof this.event.data !== 'object') {
868
+ return;
869
+ }
870
+ try {
871
+ for (const key in this.event.data) {
872
+ if (this.event.data.hasOwnProperty(key)) {
873
+ if (tooltip) {
874
+ tooltip += '&#013;';
875
+ }
876
+ tooltip += key + ' -> ' + this.event.data[key];
877
+ }
878
+ }
879
+ this.tooltip = tooltip;
880
+ }
881
+ catch (e) {
882
+ console.log('Failed to generate a tooltip');
883
+ }
884
+ /* eslint-enable */
885
+ }
886
+ ngAfterViewInit() {
887
+ this.cd.detectChanges();
888
+ /* eslint-disable */
889
+ if (this.event.widget) {
890
+ const widget = this.widgetsService.getWidgetComponentByName(this.event.widget);
891
+ if (!widget) {
892
+ return;
893
+ }
894
+ const viewContainerRef = this.widgetHost.viewContainerRef;
895
+ viewContainerRef.clear();
896
+ const componentToShow = this.componentFactoryResolver.resolveComponentFactory(widget);
897
+ const componentRef = viewContainerRef.createComponent(componentToShow);
898
+ componentRef.instance.event = this.event;
899
+ componentRef.instance.event = this.event;
900
+ componentRef.changeDetectorRef.detectChanges();
901
+ }
902
+ /* eslint-enable */
903
+ }
904
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EventThumbnailComponent, deps: [{ token: EventsWidgetsService }, { token: i0.ComponentFactoryResolver }, { token: TimeFormatHelperService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
905
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: EventThumbnailComponent, isStandalone: true, selector: "rtsee-event-thumbnail", inputs: { event: "event" }, viewQueries: [{ propertyName: "widgetHost", first: true, predicate: WidgetDirective, descendants: true }], ngImport: i0, template: "<div class=\"rtsee-events-dashboard-event-thumbnail\">\n <ng-template *ngIf=\"event.widget\" widgetHost></ng-template>\n <div *ngIf=\"!event.widget\" class=\"rtsee-events-dashboard-default-event-thumbnail\"\n [ngClass]=\"{'rtsee-events-dashboard-default-event-thumbnail-with-data': event.data}\"\n >\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-name\">{{event.name}}</div>\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-info\">\n <div *ngIf=\"event.data\" class=\"rtsee-events-dashboard-default-event-thumbnail-details\"\n [title]=\"tooltip\"\n >\n <span class=\"rtsee-events-dashboard-default-event-thumbnail-details-icon material-icons-outlined\"\n >info</span>\n </div>\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-time\">\n <span>{{ timeFormatService.toAgo(event.createdAt) }}</span>\n </div>\n </div>\n\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: WidgetDirective, selector: "[widgetHost]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
906
+ }
907
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EventThumbnailComponent, decorators: [{
908
+ type: Component,
909
+ args: [{ selector: 'rtsee-event-thumbnail', imports: [
910
+ WidgetDirective,
911
+ NgIf,
912
+ NgClass
913
+ ], standalone: true, template: "<div class=\"rtsee-events-dashboard-event-thumbnail\">\n <ng-template *ngIf=\"event.widget\" widgetHost></ng-template>\n <div *ngIf=\"!event.widget\" class=\"rtsee-events-dashboard-default-event-thumbnail\"\n [ngClass]=\"{'rtsee-events-dashboard-default-event-thumbnail-with-data': event.data}\"\n >\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-name\">{{event.name}}</div>\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-info\">\n <div *ngIf=\"event.data\" class=\"rtsee-events-dashboard-default-event-thumbnail-details\"\n [title]=\"tooltip\"\n >\n <span class=\"rtsee-events-dashboard-default-event-thumbnail-details-icon material-icons-outlined\"\n >info</span>\n </div>\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-time\">\n <span>{{ timeFormatService.toAgo(event.createdAt) }}</span>\n </div>\n </div>\n\n </div>\n</div>\n" }]
914
+ }], ctorParameters: () => [{ type: EventsWidgetsService }, { type: i0.ComponentFactoryResolver }, { type: TimeFormatHelperService }, { type: i0.ChangeDetectorRef }], propDecorators: { event: [{
915
+ type: Input
916
+ }], widgetHost: [{
917
+ type: ViewChild,
918
+ args: [WidgetDirective, { static: false }]
919
+ }] } });
920
+
921
+ class RtseeEventsDashboardSessionComponent {
922
+ constructor(timeFormatService) {
923
+ this.timeFormatService = timeFormatService;
924
+ }
925
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardSessionComponent, deps: [{ token: TimeFormatHelperService }], target: i0.ɵɵFactoryTarget.Component }); }
926
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: RtseeEventsDashboardSessionComponent, isStandalone: true, selector: "rtsee-rtsee-events-dashboard-session", inputs: { session: "session" }, ngImport: i0, template: "<div class=\"rtsee-events-dashboard-session\">\n <div class=\"rtsee-events-dashboard-session-header\" *ngIf=\"session.info\">\n <p class=\"rtsee-events-dashboard-session-client-info\">{{session.info.clientThumbnail}}</p>\n <p class=\"rtsee-events-dashboard-session-os-info\">{{session.info.osThumbnail}}</p>\n <div class=\"rtsee-events-dashboard-session-device-info\" [title]=\"session.info.deviceThumbnail\">\n <span *ngIf=\"session.info.deviceType === 'smartphone' && !session.info.botName\"\n class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n >phone_iphone</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.deviceType === 'tablet' && !session.info.botName\"\n >tablet_mac</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.deviceType === 'desktop' && !session.info.botName\"\n >computer</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.botName\"\n >smart_toy</span>\n </div>\n </div>\n <ul *ngIf=\"session.events && session.events.length\"\n class=\"rtsee-events-dashboard-session-events-list\"\n >\n @for (event of session.events | slice:0:5; track event.id) {\n <li class=\"rtsee-events-dashboard-session-event\">\n <rtsee-event-thumbnail [event]=\"event\"></rtsee-event-thumbnail>\n </li>\n }\n </ul>\n <div class=\"rtsee-events-dashboard-session-footer\">\n <button *ngIf=\"session.events.length > 5\">{{session.events.length - 5}} more</button>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EventThumbnailComponent, selector: "rtsee-event-thumbnail", inputs: ["event"] }, { kind: "pipe", type: SlicePipe, name: "slice" }] }); }
927
+ }
928
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardSessionComponent, decorators: [{
929
+ type: Component,
930
+ args: [{ selector: 'rtsee-rtsee-events-dashboard-session', imports: [
931
+ NgIf,
932
+ EventThumbnailComponent,
933
+ SlicePipe
934
+ ], standalone: true, template: "<div class=\"rtsee-events-dashboard-session\">\n <div class=\"rtsee-events-dashboard-session-header\" *ngIf=\"session.info\">\n <p class=\"rtsee-events-dashboard-session-client-info\">{{session.info.clientThumbnail}}</p>\n <p class=\"rtsee-events-dashboard-session-os-info\">{{session.info.osThumbnail}}</p>\n <div class=\"rtsee-events-dashboard-session-device-info\" [title]=\"session.info.deviceThumbnail\">\n <span *ngIf=\"session.info.deviceType === 'smartphone' && !session.info.botName\"\n class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n >phone_iphone</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.deviceType === 'tablet' && !session.info.botName\"\n >tablet_mac</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.deviceType === 'desktop' && !session.info.botName\"\n >computer</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.botName\"\n >smart_toy</span>\n </div>\n </div>\n <ul *ngIf=\"session.events && session.events.length\"\n class=\"rtsee-events-dashboard-session-events-list\"\n >\n @for (event of session.events | slice:0:5; track event.id) {\n <li class=\"rtsee-events-dashboard-session-event\">\n <rtsee-event-thumbnail [event]=\"event\"></rtsee-event-thumbnail>\n </li>\n }\n </ul>\n <div class=\"rtsee-events-dashboard-session-footer\">\n <button *ngIf=\"session.events.length > 5\">{{session.events.length - 5}} more</button>\n </div>\n</div>\n" }]
935
+ }], ctorParameters: () => [{ type: TimeFormatHelperService }], propDecorators: { session: [{
936
+ type: Input
937
+ }] } });
938
+
939
+ class RtseeEventsDashboardClientThumbnailComponent {
940
+ constructor(timeFormatService, defaultImagesService) {
941
+ this.timeFormatService = timeFormatService;
942
+ this.defaultImagesService = defaultImagesService;
943
+ }
944
+ ngOnInit() {
945
+ console.log('client id', this.client.id);
946
+ }
947
+ openChat() {
948
+ console.log('Open Chat Clicked! Client ID #', this.client.id);
949
+ this.dashboard.openChat(this.client);
950
+ }
951
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardClientThumbnailComponent, deps: [{ token: TimeFormatHelperService }, { token: DefaultImagesService }], target: i0.ɵɵFactoryTarget.Component }); }
952
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: RtseeEventsDashboardClientThumbnailComponent, isStandalone: true, selector: "ngx-rtsee-events-dashboard-client-thumbnail", inputs: { dashboard: "dashboard", client: "client" }, ngImport: i0, template: "<div class=\"rtsee-dashboard-client-thumbnail\">\n <div class=\"rtsee-dashboard-client-header\">\n <div class=\"rtsee-dashboard-client-header-photo\">\n <div class=\"rtsee-dashboard-client-header-image\"\n [style.background-image]=\"'url(' + client.imageUrl || defaultImagesService.PROFILE + ')'\"\n ></div>\n @if(client.isConnected) {\n <div class=\"rtsee-dashboard-client-live-indicator\"></div>\n }\n </div>\n <p class=\"rtsee-dashboard-client-name\">\n <span class=\"rtsee-dashboard-client-name-text\">{{ client.name || client.id }}</span>\n <button (click)=\"openChat()\" class=\"rtsee-dashboard-client-engage\">\n <span class=\"rtsee-dashboard-client-engage-icon material-icons-outlined\">chat_bubble</span>\n </button>\n </p>\n </div>\n <div class=\"rtsee-dashboard-sessions\">\n @for(session of client.sessions; track session.id) {\n <div class=\"rtsee-dashboard-sessions-container\">\n <rtsee-rtsee-events-dashboard-session [session]=\"session\"></rtsee-rtsee-events-dashboard-session>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: RtseeEventsDashboardSessionComponent, selector: "rtsee-rtsee-events-dashboard-session", inputs: ["session"] }] }); }
953
+ }
954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardClientThumbnailComponent, decorators: [{
955
+ type: Component,
956
+ args: [{ selector: 'ngx-rtsee-events-dashboard-client-thumbnail', imports: [
957
+ RtseeEventsDashboardSessionComponent,
958
+ NgIf,
959
+ NgForOf
960
+ ], standalone: true, template: "<div class=\"rtsee-dashboard-client-thumbnail\">\n <div class=\"rtsee-dashboard-client-header\">\n <div class=\"rtsee-dashboard-client-header-photo\">\n <div class=\"rtsee-dashboard-client-header-image\"\n [style.background-image]=\"'url(' + client.imageUrl || defaultImagesService.PROFILE + ')'\"\n ></div>\n @if(client.isConnected) {\n <div class=\"rtsee-dashboard-client-live-indicator\"></div>\n }\n </div>\n <p class=\"rtsee-dashboard-client-name\">\n <span class=\"rtsee-dashboard-client-name-text\">{{ client.name || client.id }}</span>\n <button (click)=\"openChat()\" class=\"rtsee-dashboard-client-engage\">\n <span class=\"rtsee-dashboard-client-engage-icon material-icons-outlined\">chat_bubble</span>\n </button>\n </p>\n </div>\n <div class=\"rtsee-dashboard-sessions\">\n @for(session of client.sessions; track session.id) {\n <div class=\"rtsee-dashboard-sessions-container\">\n <rtsee-rtsee-events-dashboard-session [session]=\"session\"></rtsee-rtsee-events-dashboard-session>\n </div>\n }\n </div>\n</div>\n" }]
961
+ }], ctorParameters: () => [{ type: TimeFormatHelperService }, { type: DefaultImagesService }], propDecorators: { dashboard: [{
962
+ type: Input
963
+ }], client: [{
964
+ type: Input
965
+ }] } });
966
+
967
+ class RtseeEventsDashboardComponent {
968
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
969
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: RtseeEventsDashboardComponent, isStandalone: true, selector: "rtsee-events-dashboard", inputs: { eventsDashboard: "eventsDashboard" }, ngImport: i0, template: "<div class=\"rtsee-events-dashboard\">\n <div class=\"rtsee-events-dashboard-client-thumbnails\">\n @for (client of eventsDashboard.clients; track client.id) {\n <div class=\"rtsee-events-dashboard-client-thumbnail-wrapper\">\n <ngx-rtsee-events-dashboard-client-thumbnail\n [client]=\"client\"\n [dashboard]=\"eventsDashboard\"\n ></ngx-rtsee-events-dashboard-client-thumbnail>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: RtseeEventsDashboardClientThumbnailComponent, selector: "ngx-rtsee-events-dashboard-client-thumbnail", inputs: ["dashboard", "client"] }] }); }
970
+ }
971
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardComponent, decorators: [{
972
+ type: Component,
973
+ args: [{ selector: 'rtsee-events-dashboard', imports: [
974
+ RtseeEventsDashboardClientThumbnailComponent
975
+ ], standalone: true, template: "<div class=\"rtsee-events-dashboard\">\n <div class=\"rtsee-events-dashboard-client-thumbnails\">\n @for (client of eventsDashboard.clients; track client.id) {\n <div class=\"rtsee-events-dashboard-client-thumbnail-wrapper\">\n <ngx-rtsee-events-dashboard-client-thumbnail\n [client]=\"client\"\n [dashboard]=\"eventsDashboard\"\n ></ngx-rtsee-events-dashboard-client-thumbnail>\n </div>\n }\n </div>\n</div>\n" }]
976
+ }], propDecorators: { eventsDashboard: [{
977
+ type: Input
978
+ }] } });
979
+
980
+ class PresentationHeaderComponent {
981
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: PresentationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
982
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: PresentationHeaderComponent, isStandalone: true, selector: "rtsee-presentation-header", inputs: { presentation: "presentation" }, ngImport: i0, template: "<div class=\"rtsee-presentation-header\">\n <div class=\"rtsee-presentation-room-block\">\n <div class=\"rtsee-presentation-active-room\" *ngIf=\"presentation.activeRoom\">\n <p>{{presentation.activeRoom.id}}</p>\n <button (click)=\"presentation.emitJoinRoomCallEvent()\">Join Video Call</button>\n </div>\n </div>\n <div class=\"rtsee-story-info\" *ngIf=\"presentation.activeStory\">\n <p>{{presentation.activeStory.name}}</p>\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\"\n (click)=\"presentation.disableActiveStory()\"\n >close</span>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
983
+ }
984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: PresentationHeaderComponent, decorators: [{
985
+ type: Component,
986
+ args: [{ selector: 'rtsee-presentation-header', imports: [
987
+ NgIf
988
+ ], standalone: true, template: "<div class=\"rtsee-presentation-header\">\n <div class=\"rtsee-presentation-room-block\">\n <div class=\"rtsee-presentation-active-room\" *ngIf=\"presentation.activeRoom\">\n <p>{{presentation.activeRoom.id}}</p>\n <button (click)=\"presentation.emitJoinRoomCallEvent()\">Join Video Call</button>\n </div>\n </div>\n <div class=\"rtsee-story-info\" *ngIf=\"presentation.activeStory\">\n <p>{{presentation.activeStory.name}}</p>\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\"\n (click)=\"presentation.disableActiveStory()\"\n >close</span>\n </div>\n</div>\n" }]
989
+ }], propDecorators: { presentation: [{
990
+ type: Input
991
+ }] } });
992
+
993
+ class StoryThumbnailComponent {
994
+ constructor() {
995
+ this.Math = Math;
996
+ }
997
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: StoryThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
998
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: StoryThumbnailComponent, isStandalone: true, selector: "rtsee-story-thumbnail", inputs: { story: "story" }, ngImport: i0, template: "<div class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\"\n [ngStyle]=\"{'background-image': 'url(' + story.imageUrl + ')'}\"\n >\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <div class=\"rtsee-story-thumbnail-title-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n </div>\n <div class=\"rtsee-story-thumbnail-info-container\" *ngIf=\"story.averageReadTime\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">{{ Math.ceil(story.averageReadTime / 60) }} \u0445\u0432</span>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
999
+ }
1000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: StoryThumbnailComponent, decorators: [{
1001
+ type: Component,
1002
+ args: [{ selector: 'rtsee-story-thumbnail', imports: [
1003
+ NgStyle,
1004
+ NgIf
1005
+ ], standalone: true, template: "<div class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\"\n [ngStyle]=\"{'background-image': 'url(' + story.imageUrl + ')'}\"\n >\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <div class=\"rtsee-story-thumbnail-title-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n </div>\n <div class=\"rtsee-story-thumbnail-info-container\" *ngIf=\"story.averageReadTime\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">{{ Math.ceil(story.averageReadTime / 60) }} \u0445\u0432</span>\n </div>\n </div>\n</div>\n" }]
1006
+ }], propDecorators: { story: [{
1007
+ type: Input
1008
+ }] } });
1009
+
1010
+ class SlideComponent {
1011
+ slideRewindClicked(forward) {
1012
+ if (forward) {
1013
+ this.story.nextSlide();
1014
+ }
1015
+ else {
1016
+ this.story.previousSlide();
1017
+ }
1018
+ }
1019
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SlideComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1020
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: SlideComponent, isStandalone: true, selector: "rtsee-slide", inputs: { story: "story", slide: "slide" }, ngImport: i0, template: "<div class=\"rtsee-presentation-slide\">\n @if (slide.widget) {\n <ng-template widgetHost></ng-template>\n }\n <div class=\"rtsee-presentation-slide-default\">\n @if (slide.imageUrl) {\n <div class=\"rtsee-presentation-slide-image-container\"\n [ngStyle]=\"{'background-image': 'url(' + slide.imageUrl + ')'}\"\n >\n </div>\n }\n <div class=\"rtsee-presentation-slide-text\">\n <p>{{slide.text}}</p>\n </div>\n <div class=\"rtsee-presentation-slide-controls\">\n @if (story.activeSlideNumber !== 1) {\n <button class=\"slide-navigation-btn navigation-prev\"\n (click)=\"slideRewindClicked(false)\"\n >\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">arrow_back_ios</span>\n </button>\n }\n @if (story.activeSlideNumber !== this.story.totalSlides) {\n <button class=\"slide-navigation-btn navigation-next\"\n (click)=\"slideRewindClicked(true)\"\n >\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\"\n >arrow_forward_ios</span>\n </button>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: WidgetDirective, selector: "[widgetHost]" }] }); }
1021
+ }
1022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SlideComponent, decorators: [{
1023
+ type: Component,
1024
+ args: [{ selector: 'rtsee-slide', imports: [
1025
+ NgStyle,
1026
+ WidgetDirective
1027
+ ], standalone: true, template: "<div class=\"rtsee-presentation-slide\">\n @if (slide.widget) {\n <ng-template widgetHost></ng-template>\n }\n <div class=\"rtsee-presentation-slide-default\">\n @if (slide.imageUrl) {\n <div class=\"rtsee-presentation-slide-image-container\"\n [ngStyle]=\"{'background-image': 'url(' + slide.imageUrl + ')'}\"\n >\n </div>\n }\n <div class=\"rtsee-presentation-slide-text\">\n <p>{{slide.text}}</p>\n </div>\n <div class=\"rtsee-presentation-slide-controls\">\n @if (story.activeSlideNumber !== 1) {\n <button class=\"slide-navigation-btn navigation-prev\"\n (click)=\"slideRewindClicked(false)\"\n >\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">arrow_back_ios</span>\n </button>\n }\n @if (story.activeSlideNumber !== this.story.totalSlides) {\n <button class=\"slide-navigation-btn navigation-next\"\n (click)=\"slideRewindClicked(true)\"\n >\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\"\n >arrow_forward_ios</span>\n </button>\n }\n </div>\n </div>\n</div>\n" }]
1028
+ }], propDecorators: { story: [{
1029
+ type: Input
1030
+ }], slide: [{
1031
+ type: Input
1032
+ }] } });
1033
+
1034
+ class StoryPlayerComponent {
1035
+ ngOnInit() {
1036
+ console.log('Story Player: Story = ', this.story);
1037
+ }
1038
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: StoryPlayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1039
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: StoryPlayerComponent, isStandalone: true, selector: "rtsee-story-player", inputs: { story: "story" }, ngImport: i0, template: "<div class=\"rtsee-story-player\">\n <div class=\"rtsee-story-player-slider\">\n <div class=\"story-player-slide-container\"\n *ngFor=\"let slide of story.slides\"\n [ngClass]=\"{'story-player-slide-active': slide.isActive}\"\n >\n <rtsee-slide [slide]=\"slide\" [story]=\"story\"></rtsee-slide>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SlideComponent, selector: "rtsee-slide", inputs: ["story", "slide"] }] }); }
1040
+ }
1041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: StoryPlayerComponent, decorators: [{
1042
+ type: Component,
1043
+ args: [{ selector: 'rtsee-story-player', imports: [
1044
+ NgForOf,
1045
+ NgClass,
1046
+ SlideComponent
1047
+ ], standalone: true, template: "<div class=\"rtsee-story-player\">\n <div class=\"rtsee-story-player-slider\">\n <div class=\"story-player-slide-container\"\n *ngFor=\"let slide of story.slides\"\n [ngClass]=\"{'story-player-slide-active': slide.isActive}\"\n >\n <rtsee-slide [slide]=\"slide\" [story]=\"story\"></rtsee-slide>\n </div>\n </div>\n</div>\n" }]
1048
+ }], propDecorators: { story: [{
1049
+ type: Input
1050
+ }] } });
1051
+
1052
+ class PresentationComponent {
1053
+ constructor() { }
1054
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: PresentationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1055
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: PresentationComponent, isStandalone: true, selector: "rtsee-presentation", inputs: { presentation: "presentation" }, ngImport: i0, template: "<div class=\"rtsee-presentation\">\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n @if (!presentation.activeStory) {\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.stories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"presentation.setActiveStory(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n @if (presentation.activeStory) {\n <div class=\"rtsee-presentation-story-viewer-container\">\n <rtsee-story-player [story]=\"presentation.activeStory\"\n ></rtsee-story-player>\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: PresentationHeaderComponent, selector: "rtsee-presentation-header", inputs: ["presentation"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story"] }, { kind: "component", type: StoryPlayerComponent, selector: "rtsee-story-player", inputs: ["story"] }] }); }
1056
+ }
1057
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: PresentationComponent, decorators: [{
1058
+ type: Component,
1059
+ args: [{ selector: 'rtsee-presentation', imports: [
1060
+ PresentationHeaderComponent,
1061
+ StoryThumbnailComponent,
1062
+ StoryPlayerComponent
1063
+ ], standalone: true, template: "<div class=\"rtsee-presentation\">\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n @if (!presentation.activeStory) {\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.stories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"presentation.setActiveStory(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n @if (presentation.activeStory) {\n <div class=\"rtsee-presentation-story-viewer-container\">\n <rtsee-story-player [story]=\"presentation.activeStory\"\n ></rtsee-story-player>\n </div>\n }\n</div>\n" }]
1064
+ }], ctorParameters: () => [], propDecorators: { presentation: [{
1065
+ type: Input
1066
+ }] } });
1067
+
1068
+ class RtseeNavComponent {
1069
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1070
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: RtseeNavComponent, isStandalone: true, selector: "rtsee-nav", inputs: { config: "config" }, ngImport: i0, template: "<div class=\"rtsee-nav\">\n @if (config.siteLogo) {\n <div class=\"rtsee-site-logo\">\n <p-image [src]=\"config.siteLogo.src\" class=\"rtsee-site-logo-image\"></p-image>\n <p-divider class=\"rtsee-site-logo-divider\" />\n </div>\n }\n <div class=\"rtsee-nav-bar\">\n @for (route of config.routes; track route.name) {\n <a [routerLink]=\"route.link\"\n routerLinkActive=\"rtsee-nav-item-active\"\n [ngClass]=\"{'rtsee-nav-item-hidden': !route.isEnabled || !route.iconClassName}\"\n [routerLinkActiveOptions]=\"{ exact: route.exactActiveLinkMatcher || false }\"\n class=\"rtsee-nav-item\"\n >\n <span [ngClass]=\"route.iconClassName\"\n class=\"rtsee-nav-item-icon\" >\n </span>\n </a>\n }\n <p-avatar [image]=\"'https://primefaces.org/cdn/primeng/images/demo/avatar/amyelsner.png'\"\n class=\"rtsee-nav-item rtsee-nav-image rtsee-nav-profile\"\n ></p-avatar>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "component", type: Image, selector: "p-image", inputs: ["imageClass", "imageStyle", "styleClass", "src", "srcSet", "sizes", "previewImageSrc", "previewImageSrcSet", "previewImageSizes", "alt", "width", "height", "loading", "preview", "showTransitionOptions", "hideTransitionOptions", "appendTo"], outputs: ["onShow", "onHide", "onImageError"] }, { kind: "component", type: Divider, selector: "p-divider", inputs: ["styleClass", "layout", "type", "align"] }] }); }
1071
+ }
1072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeNavComponent, decorators: [{
1073
+ type: Component,
1074
+ args: [{ selector: 'rtsee-nav', imports: [
1075
+ RouterLink,
1076
+ RouterLinkActive,
1077
+ NgClass,
1078
+ Avatar,
1079
+ Image,
1080
+ Divider
1081
+ ], standalone: true, template: "<div class=\"rtsee-nav\">\n @if (config.siteLogo) {\n <div class=\"rtsee-site-logo\">\n <p-image [src]=\"config.siteLogo.src\" class=\"rtsee-site-logo-image\"></p-image>\n <p-divider class=\"rtsee-site-logo-divider\" />\n </div>\n }\n <div class=\"rtsee-nav-bar\">\n @for (route of config.routes; track route.name) {\n <a [routerLink]=\"route.link\"\n routerLinkActive=\"rtsee-nav-item-active\"\n [ngClass]=\"{'rtsee-nav-item-hidden': !route.isEnabled || !route.iconClassName}\"\n [routerLinkActiveOptions]=\"{ exact: route.exactActiveLinkMatcher || false }\"\n class=\"rtsee-nav-item\"\n >\n <span [ngClass]=\"route.iconClassName\"\n class=\"rtsee-nav-item-icon\" >\n </span>\n </a>\n }\n <p-avatar [image]=\"'https://primefaces.org/cdn/primeng/images/demo/avatar/amyelsner.png'\"\n class=\"rtsee-nav-item rtsee-nav-image rtsee-nav-profile\"\n ></p-avatar>\n </div>\n</div>\n" }]
1082
+ }], propDecorators: { config: [{
1083
+ type: Input
1084
+ }] } });
1085
+
1086
+ class RTSeeContainerComponent {
1087
+ constructor() {
1088
+ this.isSidenavExpanded = true;
1089
+ this.isSidenavExpandededed = true;
1090
+ }
1091
+ onSidenavToggleClicked() {
1092
+ this.isSidenavExpanded = !this.isSidenavExpanded;
1093
+ }
1094
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1095
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: RTSeeContainerComponent, isStandalone: true, selector: "rtsee-container", inputs: { rtsee: "rtsee", navigationConfig: "navigationConfig" }, ngImport: i0, template: "<div class=\"rtsee-shell\"\n [ngClass]=\"{\n 'rtsee-shell-conference-mode': rtsee.conference && rtsee.conference.isInActiveCall,\n 'rtsee-shell-messenger-active': rtsee.messenger && rtsee.activeTab === 'messenger',\n 'rtsee-shell-dashboard-active': rtsee.eventsDashboard && rtsee.activeTab === 'events-dashboard',\n 'rtsee-shell-presentation-active': rtsee.presentation && rtsee.activeTab === 'presentation',\n 'rtsee-shell-side-nav-expanded': isSidenavExpanded\n }\"\n>\n <div class=\"rtsee-nav-block\">\n <rtsee-nav [config]=\"navigationConfig\"></rtsee-nav>\n </div>\n\n <div class=\"rtsee-shell-panel\">\n @if (rtsee.conference && rtsee.conference.isInActiveCall) {\n <div class=\"rtsee-conference-container\">\n <rtsee-conference [rtSee]=\"rtsee.conference\"\n ></rtsee-conference>\n </div>\n }\n\n @if (rtsee.messenger) {\n <div class=\"rtsee-messenger-container\">\n <rtsee-messenger [messenger]=\"rtsee.messenger\"\n ></rtsee-messenger>\n </div>\n }\n\n @if (rtsee.eventsDashboard && rtsee.eventsDashboard.isReady) {\n <div class=\"rtsee-events-dashboard-container\">\n <rtsee-events-dashboard [eventsDashboard]=\"rtsee.eventsDashboard\"\n ></rtsee-events-dashboard>\n </div>\n }\n\n @if (rtsee.presentation && rtsee.presentation.isActive) {\n <div class=\"rtsee-presentation-container\">\n <rtsee-presentation [presentation]=\"rtsee.presentation\"></rtsee-presentation>\n </div>\n }\n </div>\n\n <div class=\"rtsee-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: RTSeeConferenceComponent, selector: "rtsee-conference", inputs: ["rtSee"] }, { kind: "component", type: MessengerComponent, selector: "rtsee-messenger", inputs: ["messenger"] }, { kind: "component", type: RtseeEventsDashboardComponent, selector: "rtsee-events-dashboard", inputs: ["eventsDashboard"] }, { kind: "component", type: PresentationComponent, selector: "rtsee-presentation", inputs: ["presentation"] }, { kind: "component", type: RtseeNavComponent, selector: "rtsee-nav", inputs: ["config"] }] }); }
1096
+ }
1097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeContainerComponent, decorators: [{
1098
+ type: Component,
1099
+ args: [{ selector: 'rtsee-container', imports: [
1100
+ NgClass,
1101
+ RTSeeConferenceComponent,
1102
+ MessengerComponent,
1103
+ RtseeEventsDashboardComponent,
1104
+ PresentationComponent,
1105
+ RtseeNavComponent
1106
+ ], standalone: true, template: "<div class=\"rtsee-shell\"\n [ngClass]=\"{\n 'rtsee-shell-conference-mode': rtsee.conference && rtsee.conference.isInActiveCall,\n 'rtsee-shell-messenger-active': rtsee.messenger && rtsee.activeTab === 'messenger',\n 'rtsee-shell-dashboard-active': rtsee.eventsDashboard && rtsee.activeTab === 'events-dashboard',\n 'rtsee-shell-presentation-active': rtsee.presentation && rtsee.activeTab === 'presentation',\n 'rtsee-shell-side-nav-expanded': isSidenavExpanded\n }\"\n>\n <div class=\"rtsee-nav-block\">\n <rtsee-nav [config]=\"navigationConfig\"></rtsee-nav>\n </div>\n\n <div class=\"rtsee-shell-panel\">\n @if (rtsee.conference && rtsee.conference.isInActiveCall) {\n <div class=\"rtsee-conference-container\">\n <rtsee-conference [rtSee]=\"rtsee.conference\"\n ></rtsee-conference>\n </div>\n }\n\n @if (rtsee.messenger) {\n <div class=\"rtsee-messenger-container\">\n <rtsee-messenger [messenger]=\"rtsee.messenger\"\n ></rtsee-messenger>\n </div>\n }\n\n @if (rtsee.eventsDashboard && rtsee.eventsDashboard.isReady) {\n <div class=\"rtsee-events-dashboard-container\">\n <rtsee-events-dashboard [eventsDashboard]=\"rtsee.eventsDashboard\"\n ></rtsee-events-dashboard>\n </div>\n }\n\n @if (rtsee.presentation && rtsee.presentation.isActive) {\n <div class=\"rtsee-presentation-container\">\n <rtsee-presentation [presentation]=\"rtsee.presentation\"></rtsee-presentation>\n </div>\n }\n </div>\n\n <div class=\"rtsee-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
1107
+ }], propDecorators: { rtsee: [{
1108
+ type: Input
1109
+ }], navigationConfig: [{
1110
+ type: Input
1111
+ }] } });
1112
+
1113
+ class RTSeeAuthService {
1114
+ constructor(http) {
1115
+ this.http = http;
1116
+ }
1117
+ init(auth) {
1118
+ this.rtseeAuth = auth;
1119
+ this.authConfiguration = this.rtseeAuth.authConfiguration;
1120
+ }
1121
+ signIn(credentials) {
1122
+ return this.http
1123
+ .post(this.authConfiguration.getEndpointPathByEndpointName(AuthEndpointsKeys.SIGN_IN), credentials)
1124
+ .pipe(tap((res) => this.rtseeAuth.authenticate(res)));
1125
+ }
1126
+ signUp(credentials) {
1127
+ return this.http
1128
+ .post(this.authConfiguration.getEndpointPathByEndpointName(AuthEndpointsKeys.SIGN_UP), credentials);
1129
+ }
1130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeAuthService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1131
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeAuthService, providedIn: 'root' }); }
1132
+ }
1133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeAuthService, decorators: [{
1134
+ type: Injectable,
1135
+ args: [{
1136
+ providedIn: 'root'
1137
+ }]
1138
+ }], ctorParameters: () => [{ type: i1$1.HttpClient }] });
1139
+
1140
+ class SignInComponent {
1141
+ constructor(formBuilder, router, authService) {
1142
+ this.formBuilder = formBuilder;
1143
+ this.router = router;
1144
+ this.authService = authService;
1145
+ this.signInForm = this.formBuilder.group({
1146
+ username: this.formBuilder.nonNullable.control({
1147
+ value: '',
1148
+ disabled: false
1149
+ }, {
1150
+ validators: [Validators.required, Validators.email]
1151
+ }),
1152
+ password: this.formBuilder.nonNullable.control({
1153
+ value: '',
1154
+ disabled: false
1155
+ }, { validators: [Validators.required] }),
1156
+ remember: this.formBuilder.nonNullable.control(false),
1157
+ });
1158
+ this.AuthEndpointsKeys = AuthEndpointsKeys;
1159
+ this.loadInProgress = false;
1160
+ this.serverSideError = '';
1161
+ this.authConfiguration = this.authService.rtseeAuth.authConfiguration;
1162
+ }
1163
+ get usernameField() {
1164
+ return this.signInForm.get('username');
1165
+ }
1166
+ get passwordField() {
1167
+ return this.signInForm.get('password');
1168
+ }
1169
+ get rememberField() {
1170
+ return this.signInForm.get('remember');
1171
+ }
1172
+ login() {
1173
+ if (this.signInForm.valid) {
1174
+ this.disableFormFields();
1175
+ this.authService.signIn(this.signInForm.getRawValue())
1176
+ .subscribe({
1177
+ next: (() => {
1178
+ void this.router.navigate(this.authService.rtseeAuth.authConfiguration.defaultPostLoginRoute);
1179
+ this.enableFormFields();
1180
+ }),
1181
+ error: ((error) => {
1182
+ console.log(error);
1183
+ this.showServerSideErrorForXSeconds(error.error.message);
1184
+ this.enableFormFields();
1185
+ }),
1186
+ complete: (() => {
1187
+ this.enableFormFields();
1188
+ })
1189
+ });
1190
+ }
1191
+ else {
1192
+ this.signInForm.markAsTouched(); // this does not work after switching to "nonNullable" form fields
1193
+ }
1194
+ }
1195
+ showServerSideErrorForXSeconds(message, x = 3) {
1196
+ this.serverSideError = message;
1197
+ setTimeout(() => {
1198
+ this.serverSideError = '';
1199
+ }, x * 1000); // we can do pop-up message instead
1200
+ }
1201
+ disableFormFields() {
1202
+ this.loadInProgress = true;
1203
+ this.usernameField.disable();
1204
+ this.passwordField.disable();
1205
+ this.rememberField.disable();
1206
+ }
1207
+ enableFormFields() {
1208
+ this.loadInProgress = false;
1209
+ this.usernameField.enable(); // fuck me, but [disabled]="loadInProgress" on the field no longer works :(
1210
+ this.passwordField.enable();
1211
+ this.rememberField.enable();
1212
+ }
1213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SignInComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Router }, { token: RTSeeAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
1214
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: SignInComponent, isStandalone: true, selector: "rtsee-sign-in", ngImport: i0, template: "<div class=\"auth-container rtsee-form-container\" >\n <img [ngSrc]=\"authConfiguration.appLogo\"\n alt=\"Company Logo\"\n class=\"auth-logo\"\n height=\"37\"\n width=\"37\"\n />\n <h2 class=\"auth-title\">\u0412\u0445\u0456\u0434 \u0432 \u041E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u041A\u0430\u0431\u0456\u043D\u0435\u0442</h2>\n <p class=\"auth-title-description\">\u0410\u0431\u0438 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434\u0430\u0442\u0438 \u043A\u0430\u0437\u043A\u0438, \u0443\u0432\u0456\u0439\u0434\u0456\u0442\u044C \u0432 \u0441\u0432\u0456\u0439 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u043A\u0430\u0431\u0456\u043D\u0435\u0442</p>\n\n <form class=\"auth-form rtsee-form\" [formGroup]=\"signInForm\" (ngSubmit)=\"login()\">\n <div class=\"rtsee-form-field-container\">\n <p-inputgroup >\n <p-floatlabel variant=\"on\">\n <input id=\"user-email\"\n pInputText\n [formControl]=\"usernameField\"\n />\n <label for=\"user-email\">Email</label>\n </p-floatlabel>\n </p-inputgroup>\n @if (!usernameField.valid && usernameField.touched) {\n <p-message class=\"rtsee-form-field-error-message\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >Email is invalid</p-message>\n }\n </div>\n <div class=\"rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n <p-password id=\"user-password\"\n [formControl]=\"passwordField\"\n [feedback]=\"false\"\n />\n <label for=\"user-password\">Password</label>\n </p-floatlabel>\n </p-inputgroup>\n\n @if (!passwordField.valid && passwordField.touched) {\n <p-message class=\"rtsee-form-field-error-message\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >Password is required</p-message>\n }\n @if (serverSideError) {\n <p-message class=\"rtsee-form-field-error-message\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >{{serverSideError}}</p-message>\n }\n </div>\n <div class=\"rtsee-form-field-container\">\n <p-checkbox inputId=\"remember\" [binary]=\"true\" [formControl]=\"rememberField\" />\n <label for=\"remember\" class=\"ml-2\"> Remember me </label>\n </div>\n <div class=\"rtsee-form-field-container\">\n <a href=\"#\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.FORGOT_PASSWORD)\"\n class=\"auth-deep-blue-sm-medium\"\n >\u0417\u0430\u0431\u0443\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C?</a>\n </div>\n <div class=\"rtsee-form-submit-container\">\n <p-button type=\"submit\"\n label=\"Sign In\"\n [disabled]=\"loadInProgress\"\n />\n @if (loadInProgress) {\n <p-progress-spinner class=\"rtsee-progress-spinner rtsee-progress-spinner-sm\"></p-progress-spinner>\n }\n </div>\n </form>\n <p class=\"rtsee-form-label\">\n <span>\u041D\u0435\u043C\u0430\u0454 \u0430\u043A\u0430\u0443\u043D\u0442\u0443?</span>\n <span>&nbsp;</span>\n <a href=\"#\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_UP)\"\n class=\"auth-deep-blue-sm-medium\"\n >\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C!</a>\n </p>\n</div>\n", dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "component", type: FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }, { kind: "component", type: ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }] }); }
1215
+ }
1216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SignInComponent, decorators: [{
1217
+ type: Component,
1218
+ args: [{ selector: 'rtsee-sign-in', imports: [
1219
+ NgOptimizedImage,
1220
+ ReactiveFormsModule,
1221
+ RouterLink,
1222
+ ButtonModule,
1223
+ InputGroup,
1224
+ InputText,
1225
+ Password,
1226
+ FloatLabel,
1227
+ Checkbox,
1228
+ Message,
1229
+ ProgressSpinner
1230
+ ], standalone: true, template: "<div class=\"auth-container rtsee-form-container\" >\n <img [ngSrc]=\"authConfiguration.appLogo\"\n alt=\"Company Logo\"\n class=\"auth-logo\"\n height=\"37\"\n width=\"37\"\n />\n <h2 class=\"auth-title\">\u0412\u0445\u0456\u0434 \u0432 \u041E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u041A\u0430\u0431\u0456\u043D\u0435\u0442</h2>\n <p class=\"auth-title-description\">\u0410\u0431\u0438 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434\u0430\u0442\u0438 \u043A\u0430\u0437\u043A\u0438, \u0443\u0432\u0456\u0439\u0434\u0456\u0442\u044C \u0432 \u0441\u0432\u0456\u0439 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u043A\u0430\u0431\u0456\u043D\u0435\u0442</p>\n\n <form class=\"auth-form rtsee-form\" [formGroup]=\"signInForm\" (ngSubmit)=\"login()\">\n <div class=\"rtsee-form-field-container\">\n <p-inputgroup >\n <p-floatlabel variant=\"on\">\n <input id=\"user-email\"\n pInputText\n [formControl]=\"usernameField\"\n />\n <label for=\"user-email\">Email</label>\n </p-floatlabel>\n </p-inputgroup>\n @if (!usernameField.valid && usernameField.touched) {\n <p-message class=\"rtsee-form-field-error-message\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >Email is invalid</p-message>\n }\n </div>\n <div class=\"rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n <p-password id=\"user-password\"\n [formControl]=\"passwordField\"\n [feedback]=\"false\"\n />\n <label for=\"user-password\">Password</label>\n </p-floatlabel>\n </p-inputgroup>\n\n @if (!passwordField.valid && passwordField.touched) {\n <p-message class=\"rtsee-form-field-error-message\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >Password is required</p-message>\n }\n @if (serverSideError) {\n <p-message class=\"rtsee-form-field-error-message\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >{{serverSideError}}</p-message>\n }\n </div>\n <div class=\"rtsee-form-field-container\">\n <p-checkbox inputId=\"remember\" [binary]=\"true\" [formControl]=\"rememberField\" />\n <label for=\"remember\" class=\"ml-2\"> Remember me </label>\n </div>\n <div class=\"rtsee-form-field-container\">\n <a href=\"#\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.FORGOT_PASSWORD)\"\n class=\"auth-deep-blue-sm-medium\"\n >\u0417\u0430\u0431\u0443\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C?</a>\n </div>\n <div class=\"rtsee-form-submit-container\">\n <p-button type=\"submit\"\n label=\"Sign In\"\n [disabled]=\"loadInProgress\"\n />\n @if (loadInProgress) {\n <p-progress-spinner class=\"rtsee-progress-spinner rtsee-progress-spinner-sm\"></p-progress-spinner>\n }\n </div>\n </form>\n <p class=\"rtsee-form-label\">\n <span>\u041D\u0435\u043C\u0430\u0454 \u0430\u043A\u0430\u0443\u043D\u0442\u0443?</span>\n <span>&nbsp;</span>\n <a href=\"#\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_UP)\"\n class=\"auth-deep-blue-sm-medium\"\n >\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C!</a>\n </p>\n</div>\n" }]
1231
+ }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.Router }, { type: RTSeeAuthService }] });
1232
+
1233
+ class UtilsService {
1234
+ constructor() {
1235
+ }
1236
+ static getKeysAsValueObject(obj) {
1237
+ if (obj) {
1238
+ return Object.keys(obj).reduce((result, value) => {
1239
+ result[value] = value;
1240
+ return result;
1241
+ }, {});
1242
+ }
1243
+ return {};
1244
+ }
1245
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1246
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: UtilsService, providedIn: 'root' }); }
1247
+ }
1248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: UtilsService, decorators: [{
1249
+ type: Injectable,
1250
+ args: [{
1251
+ providedIn: 'root'
1252
+ }]
1253
+ }], ctorParameters: () => [] });
1254
+
1255
+ class ConfirmPasswordValidator {
1256
+ /**
1257
+ * Check matching password with confirm password
1258
+ * @param control AbstractControl
1259
+ */
1260
+ static MatchFields(control) {
1261
+ const passwordField = control.get('password');
1262
+ const passwordConfirmationField = control.get('passwordConfirmation');
1263
+ if (!passwordField || !passwordConfirmationField) {
1264
+ throw new Error('MatchFieldsValidator unable to find password controls!');
1265
+ }
1266
+ const password = passwordField.getRawValue();
1267
+ const passwordConfirmation = passwordConfirmationField.getRawValue();
1268
+ if (password !== passwordConfirmation) {
1269
+ return {
1270
+ confirmPassword: true
1271
+ };
1272
+ }
1273
+ return null;
1274
+ }
1275
+ }
1276
+
1277
+ class SignUpComponent {
1278
+ constructor(formBuilder, authService) {
1279
+ this.formBuilder = formBuilder;
1280
+ this.authService = authService;
1281
+ this.AuthEndpointsKeys = AuthEndpointsKeys;
1282
+ this.signUpForm = this.formBuilder.group({
1283
+ email: this.formBuilder.control('', { validators: [Validators.required, Validators.email] }),
1284
+ password: this.formBuilder.control('', { validators: [Validators.required, Validators.minLength(6)] }),
1285
+ passwordConfirmation: this.formBuilder.control('', {
1286
+ validators: [
1287
+ Validators.required,
1288
+ Validators.minLength(6)
1289
+ ]
1290
+ }),
1291
+ terms: this.formBuilder.control(false, { nonNullable: true,
1292
+ validators: [Validators.requiredTrue]
1293
+ }),
1294
+ }, { validators: [ConfirmPasswordValidator.MatchFields] });
1295
+ this.signUpFormKeys = UtilsService.getKeysAsValueObject(this.signUpForm.getRawValue());
1296
+ this.authConfiguration = this.authService.rtseeAuth.authConfiguration;
1297
+ }
1298
+ signUp() {
1299
+ if (this.signUpForm.valid) {
1300
+ const formValues = this.signUpForm.getRawValue();
1301
+ this.authService.signUp({
1302
+ email: formValues.email,
1303
+ password: formValues.password,
1304
+ terms: formValues.terms
1305
+ });
1306
+ // Call sign-up API
1307
+ // this.authService.signUp(formValue);
1308
+ }
1309
+ }
1310
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SignUpComponent, deps: [{ token: i1.FormBuilder }, { token: RTSeeAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
1311
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: SignUpComponent, isStandalone: true, selector: "rtsee-sign-up", ngImport: i0, template: "<div class=\"auth-container\">\n <img ngSrc=\"/assets/img.png\" alt=\"Company Logo\" class=\"logo\" height=\"38\" width=\"37\"/>\n <h2 class=\"auth-title\">\u0420\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u044F \u0432 \u041E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u041A\u0430\u0431\u0456\u043D\u0435\u0442</h2>\n <p class=\"auth-title-description\">\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C \u0441\u0432\u0456\u0439 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u043A\u0430\u0431\u0456\u043D\u0435\u0442, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434\u0430\u0442\u0438 \u043A\u0430\u0437\u043A\u0438</p>\n\n <form class=\"auth-form\" [formGroup]=\"signUpForm\" (ngSubmit)=\"signUp()\">\n <!-- Email Field -->\n <label for=\"sign-up-email\" class=\"auth-sm-medium\">\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D \u043F\u043E\u0448\u0442\u0430</label>\n <input [formControlName]=\"signUpFormKeys.email\"\n type=\"email\" id=\"sign-up-email\"\n placeholder=\"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0443 \u043F\u043E\u0448\u0442\u0443\"\n class=\"auth-input-container email-input\"\n />\n\n <!-- Password Field -->\n <label for=\"sign-up-password\" class=\"auth-sm-medium\">\u041F\u0430\u0440\u043E</label>\n <input [formControlName]=\"signUpFormKeys.password\"\n type=\"password\" id=\"sign-up-password\"\n placeholder=\"\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Confirm Password Field -->\n <label for=\"confirm-password\" class=\"auth-sm-medium\">\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434 \u043F\u0430\u0440\u043E\u043B\u044C</label>\n <input [formControlName]=\"signUpFormKeys.passwordConfirmation\"\n type=\"password\"\n id=\"confirm-password\"\n placeholder=\"\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u044C\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Terms and Conditions -->\n <div class=\"auth-options\">\n <label class=\"auth-checkbox-label\">\n <input type=\"checkbox\"\n class=\"auth-deep-blue-sm-medium\"\n [formControlName]=\"signUpFormKeys.terms\"\n />\n \u042F \u043F\u043E\u0433\u043E\u0434\u0436\u0443\u044E\u0441\u044C \u0437&nbsp;<a href=\"#\" class=\"auth-deep-blue-sm-medium\">\u0443\u043C\u043E\u0432\u0430\u043C\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u043D\u043D\u044F</a>\n </label>\n </div>\n\n <!-- Sign-Up Button -->\n <button type=\"submit\" class=\"auth-btn-container\">\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044C</button>\n </form>\n\n <!-- Redirect to Sign-In -->\n <p class=\"auth-media-blue-gray-sm-normal\">\n \u0412\u0436\u0435 \u043C\u0430\u0454\u0442\u0435 \u0430\u043A\u0430\u0443\u043D\u0442? <a href=\"#\" [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\" class=\"auth-deep-blue-sm-medium\">\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C</a>\n </p>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }] }); }
1312
+ }
1313
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SignUpComponent, decorators: [{
1314
+ type: Component,
1315
+ args: [{ selector: 'rtsee-sign-up', imports: [
1316
+ ReactiveFormsModule,
1317
+ RouterLink,
1318
+ NgOptimizedImage
1319
+ ], standalone: true, template: "<div class=\"auth-container\">\n <img ngSrc=\"/assets/img.png\" alt=\"Company Logo\" class=\"logo\" height=\"38\" width=\"37\"/>\n <h2 class=\"auth-title\">\u0420\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u044F \u0432 \u041E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u041A\u0430\u0431\u0456\u043D\u0435\u0442</h2>\n <p class=\"auth-title-description\">\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C \u0441\u0432\u0456\u0439 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0438\u0439 \u043A\u0430\u0431\u0456\u043D\u0435\u0442, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434\u0430\u0442\u0438 \u043A\u0430\u0437\u043A\u0438</p>\n\n <form class=\"auth-form\" [formGroup]=\"signUpForm\" (ngSubmit)=\"signUp()\">\n <!-- Email Field -->\n <label for=\"sign-up-email\" class=\"auth-sm-medium\">\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D \u043F\u043E\u0448\u0442\u0430</label>\n <input [formControlName]=\"signUpFormKeys.email\"\n type=\"email\" id=\"sign-up-email\"\n placeholder=\"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0443 \u043F\u043E\u0448\u0442\u0443\"\n class=\"auth-input-container email-input\"\n />\n\n <!-- Password Field -->\n <label for=\"sign-up-password\" class=\"auth-sm-medium\">\u041F\u0430\u0440\u043E</label>\n <input [formControlName]=\"signUpFormKeys.password\"\n type=\"password\" id=\"sign-up-password\"\n placeholder=\"\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Confirm Password Field -->\n <label for=\"confirm-password\" class=\"auth-sm-medium\">\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434 \u043F\u0430\u0440\u043E\u043B\u044C</label>\n <input [formControlName]=\"signUpFormKeys.passwordConfirmation\"\n type=\"password\"\n id=\"confirm-password\"\n placeholder=\"\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u044C\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Terms and Conditions -->\n <div class=\"auth-options\">\n <label class=\"auth-checkbox-label\">\n <input type=\"checkbox\"\n class=\"auth-deep-blue-sm-medium\"\n [formControlName]=\"signUpFormKeys.terms\"\n />\n \u042F \u043F\u043E\u0433\u043E\u0434\u0436\u0443\u044E\u0441\u044C \u0437&nbsp;<a href=\"#\" class=\"auth-deep-blue-sm-medium\">\u0443\u043C\u043E\u0432\u0430\u043C\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u043D\u043D\u044F</a>\n </label>\n </div>\n\n <!-- Sign-Up Button -->\n <button type=\"submit\" class=\"auth-btn-container\">\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044C</button>\n </form>\n\n <!-- Redirect to Sign-In -->\n <p class=\"auth-media-blue-gray-sm-normal\">\n \u0412\u0436\u0435 \u043C\u0430\u0454\u0442\u0435 \u0430\u043A\u0430\u0443\u043D\u0442? <a href=\"#\" [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\" class=\"auth-deep-blue-sm-medium\">\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C</a>\n </p>\n</div>\n" }]
1320
+ }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: RTSeeAuthService }] });
1321
+
1322
+ class ForgotPasswordComponent {
1323
+ constructor(formBuilder, authService) {
1324
+ this.formBuilder = formBuilder;
1325
+ this.authService = authService;
1326
+ this.isLoading = false;
1327
+ this.AuthEndpointsKeys = AuthEndpointsKeys;
1328
+ this.emailForm = this.formBuilder.group({
1329
+ email: this.formBuilder.nonNullable.control('', { validators: [Validators.required, Validators.email] }),
1330
+ });
1331
+ this.forgotPasswordFormKeys = UtilsService.getKeysAsValueObject(this.emailForm.getRawValue());
1332
+ this.authConfiguration = this.authService.rtseeAuth.authConfiguration;
1333
+ }
1334
+ submitEmail() {
1335
+ if (this.emailForm.valid) {
1336
+ }
1337
+ }
1338
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ForgotPasswordComponent, deps: [{ token: i1.FormBuilder }, { token: RTSeeAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
1339
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ForgotPasswordComponent, isStandalone: true, selector: "rtsee-forgot-password", ngImport: i0, template: "<div class=\"auth-container\">\n <img ngSrc=\"/assets/img.png\"\n alt=\"Company Logo\"\n class=\"auth-logo\"\n height=\"38\"\n width=\"37\"\n />\n <h2 class=\"auth-title\">\u0412\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043F\u0430\u0440\u043E\u043B\u044E</h2>\n <p class=\"auth-title-description\"\n >\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448\u0443 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0443 \u043F\u043E\u0448\u0442\u0443, \u0449\u043E\u0431 \u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u0456\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0456\u0457 \u0437 \u0432\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043F\u0430\u0440\u043E\u043B\u044E</p>\n\n <form class=\"auth-form\"\n [formGroup]=\"emailForm\"\n (ngSubmit)=\"submitEmail()\">\n <!-- Email Field -->\n <label for=\"forgot-password-email\" class=\"auth-sm-medium\">\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430 \u043F\u043E\u0448\u0442\u0430</label>\n <input\n [formControlName]=\"forgotPasswordFormKeys.email\"\n type=\"email\"\n id=\"forgot-password-email\"\n placeholder=\"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0443 \u043F\u043E\u0448\u0442\u0443\"\n class=\"auth-input-container email-input\"\n />\n\n <!-- Submit Button -->\n <button type=\"submit\" class=\"auth-btn-container\" [disabled]=\"isLoading\">\n <span> {{isLoading ? '\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F...' : '\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438'}}</span>\n </button>\n </form>\n\n <!-- Redirect to Sign-In -->\n <p class=\"auth-media-blue-gray-sm-normal\">\n \u041F\u0430\u043C'\u044F\u0442\u0430\u0454\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C? <a [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\" class=\"auth-deep-blue-sm-medium\">\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C</a>\n </p>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
1340
+ }
1341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ForgotPasswordComponent, decorators: [{
1342
+ type: Component,
1343
+ args: [{ selector: 'rtsee-forgot-password', imports: [
1344
+ ReactiveFormsModule,
1345
+ RouterLink
1346
+ ], standalone: true, template: "<div class=\"auth-container\">\n <img ngSrc=\"/assets/img.png\"\n alt=\"Company Logo\"\n class=\"auth-logo\"\n height=\"38\"\n width=\"37\"\n />\n <h2 class=\"auth-title\">\u0412\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043F\u0430\u0440\u043E\u043B\u044E</h2>\n <p class=\"auth-title-description\"\n >\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448\u0443 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0443 \u043F\u043E\u0448\u0442\u0443, \u0449\u043E\u0431 \u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u0456\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0456\u0457 \u0437 \u0432\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043F\u0430\u0440\u043E\u043B\u044E</p>\n\n <form class=\"auth-form\"\n [formGroup]=\"emailForm\"\n (ngSubmit)=\"submitEmail()\">\n <!-- Email Field -->\n <label for=\"forgot-password-email\" class=\"auth-sm-medium\">\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430 \u043F\u043E\u0448\u0442\u0430</label>\n <input\n [formControlName]=\"forgotPasswordFormKeys.email\"\n type=\"email\"\n id=\"forgot-password-email\"\n placeholder=\"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0443 \u043F\u043E\u0448\u0442\u0443\"\n class=\"auth-input-container email-input\"\n />\n\n <!-- Submit Button -->\n <button type=\"submit\" class=\"auth-btn-container\" [disabled]=\"isLoading\">\n <span> {{isLoading ? '\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F...' : '\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438'}}</span>\n </button>\n </form>\n\n <!-- Redirect to Sign-In -->\n <p class=\"auth-media-blue-gray-sm-normal\">\n \u041F\u0430\u043C'\u044F\u0442\u0430\u0454\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C? <a [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\" class=\"auth-deep-blue-sm-medium\">\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C</a>\n </p>\n</div>\n" }]
1347
+ }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: RTSeeAuthService }] });
1348
+
1349
+ var FormErrorKey;
1350
+ (function (FormErrorKey) {
1351
+ FormErrorKey["required"] = "required";
1352
+ FormErrorKey["email"] = "email";
1353
+ FormErrorKey["minLength"] = "minlength";
1354
+ FormErrorKey["maxLength"] = "maxlength";
1355
+ FormErrorKey["requiredLength"] = "requiredLength";
1356
+ FormErrorKey["passwordsMismatch"] = "passwordsMismatch";
1357
+ })(FormErrorKey || (FormErrorKey = {}));
1358
+
1359
+ const COMMON_CONSTANTS = {
1360
+ minPasswordLength: 8,
1361
+ requestItemLimit: 20,
1362
+ customTimeFormat: 'HH:mm',
1363
+ customDateFormat: 'dd/MM/YYYY',
1364
+ customDateFormatDaysJs: 'DD/MM/YYYY',
1365
+ customDateTimeFormat: 'dd/MM/YYYY HH:mm',
1366
+ };
1367
+
1368
+ class ResetPasswordComponent {
1369
+ constructor(formBuilder, route, authService) {
1370
+ this.formBuilder = formBuilder;
1371
+ this.route = route;
1372
+ this.authService = authService;
1373
+ this.isLoading = false;
1374
+ this.hidePassword = {
1375
+ password: true,
1376
+ passwordConfirm: true
1377
+ };
1378
+ this.resetPasswordForm = this.formBuilder.group({
1379
+ password: this.formBuilder.control('', { validators: [Validators.required, Validators.minLength(COMMON_CONSTANTS.minPasswordLength)], nonNullable: true }),
1380
+ passwordConfirm: this.formBuilder.control('', { validators: [Validators.required, Validators.minLength(COMMON_CONSTANTS.minPasswordLength)], nonNullable: true }),
1381
+ }, { validators: [this.passwordMatchValidator()] });
1382
+ this.passwordFormKeys = UtilsService.getKeysAsValueObject(this.resetPasswordForm.value);
1383
+ this.authConfiguration = this.authService.authConfiguration;
1384
+ }
1385
+ ngOnInit() {
1386
+ this.token = this.route.snapshot.params['token'];
1387
+ }
1388
+ resetPassword() {
1389
+ if (this.resetPasswordForm.valid) {
1390
+ // this.isLoading = true;
1391
+ // this.accountService.resetPassword({passwords: this.resetPasswordForm.getRawValue(), token: this.token})
1392
+ // .subscribe((success) => {
1393
+ // this.isLoading = false;
1394
+ // if (success) {
1395
+ // this.router.navigate(['/', 'sign-in']);
1396
+ // }
1397
+ // })
1398
+ }
1399
+ }
1400
+ passwordMatchValidator() {
1401
+ // @ts-ignore
1402
+ return (form) => {
1403
+ const password = form.value.password;
1404
+ const passwordConfirm = form.value.passwordConfirm;
1405
+ if (password !== passwordConfirm) {
1406
+ if (form.controls.password.valid) {
1407
+ form.controls.password.setErrors({ [FormErrorKey.passwordsMismatch]: true });
1408
+ }
1409
+ if (form.controls.passwordConfirm.valid) {
1410
+ form.controls.passwordConfirm.setErrors({ [FormErrorKey.passwordsMismatch]: true });
1411
+ }
1412
+ return { [FormErrorKey.passwordsMismatch]: true };
1413
+ }
1414
+ if (form.controls.password.hasError(FormErrorKey.passwordsMismatch)) {
1415
+ form.controls.password.setErrors(null);
1416
+ }
1417
+ if (form.controls.passwordConfirm.hasError(FormErrorKey.passwordsMismatch)) {
1418
+ form.controls.passwordConfirm.setErrors(null);
1419
+ }
1420
+ return null;
1421
+ };
1422
+ }
1423
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ResetPasswordComponent, deps: [{ token: i1.FormBuilder }, { token: i2.ActivatedRoute }, { token: RTSeeAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
1424
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: ResetPasswordComponent, isStandalone: true, selector: "rtsee-reset-password", ngImport: i0, template: "<div class=\"auth-container\">\n <img src=\"assets/img.png\" alt=\"Company Logo\" class=\"logo\" height=\"38\" width=\"37\" />\n <h2 class=\"auth-title\">\u0412\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u041F\u0430\u0440\u043E\u043B\u044F</h2>\n <p class=\"auth-title-description\">\n \u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C \u0434\u043B\u044F \u0432\u0430\u0448\u043E\u0433\u043E \u0430\u043A\u0430\u0443\u043D\u0442\u0443.\n </p>\n\n <form class=\"auth-form\"\n [formGroup]=\"resetPasswordForm\"\n (ngSubmit)=\"resetPassword()\"\n >\n <!-- New Password Field -->\n <label for=\"new-password\"\n class=\"auth-sm-medium\"\n >\u041D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C</label>\n <input [formControlName]=\"passwordFormKeys.password\"\n type=\"password\" id=\"new-password\"\n placeholder=\"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Confirm Password Field -->\n <label for=\"confirm-password\"\n class=\"auth-sm-medium\"\n >\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043D\u043D\u044F \u043F\u0430\u0440\u043E\u043B\u044F</label>\n <input [formControlName]=\"passwordFormKeys.passwordConfirm\"\n type=\"password\" id=\"confirm-password\"\n placeholder=\"\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Reset Password Button -->\n <button type=\"submit\"\n class=\"auth-btn-container\"\n >\u0412\u0456\u0434\u043D\u043E\u0432\u0438\u0442\u0438 \u041F\u0430\u0440\u043E\u043B\u044C</button>\n </form>\n\n <!-- Redirect to Login -->\n <p class=\"auth-media-blue-gray-sm-normal\">\n <span>\u0417\u0433\u0430\u0434\u0430\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C?</span>\n <a href=\"#\" class=\"auth-deep-blue-sm-medium\">\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C</a>\n </p>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] }); }
1425
+ }
1426
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ResetPasswordComponent, decorators: [{
1427
+ type: Component,
1428
+ args: [{ selector: 'rtsee-reset-password', imports: [
1429
+ ReactiveFormsModule
1430
+ ], standalone: true, template: "<div class=\"auth-container\">\n <img src=\"assets/img.png\" alt=\"Company Logo\" class=\"logo\" height=\"38\" width=\"37\" />\n <h2 class=\"auth-title\">\u0412\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u041F\u0430\u0440\u043E\u043B\u044F</h2>\n <p class=\"auth-title-description\">\n \u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C \u0434\u043B\u044F \u0432\u0430\u0448\u043E\u0433\u043E \u0430\u043A\u0430\u0443\u043D\u0442\u0443.\n </p>\n\n <form class=\"auth-form\"\n [formGroup]=\"resetPasswordForm\"\n (ngSubmit)=\"resetPassword()\"\n >\n <!-- New Password Field -->\n <label for=\"new-password\"\n class=\"auth-sm-medium\"\n >\u041D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C</label>\n <input [formControlName]=\"passwordFormKeys.password\"\n type=\"password\" id=\"new-password\"\n placeholder=\"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Confirm Password Field -->\n <label for=\"confirm-password\"\n class=\"auth-sm-medium\"\n >\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043D\u043D\u044F \u043F\u0430\u0440\u043E\u043B\u044F</label>\n <input [formControlName]=\"passwordFormKeys.passwordConfirm\"\n type=\"password\" id=\"confirm-password\"\n placeholder=\"\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C\"\n class=\"auth-input-container password-input\"\n />\n\n <!-- Reset Password Button -->\n <button type=\"submit\"\n class=\"auth-btn-container\"\n >\u0412\u0456\u0434\u043D\u043E\u0432\u0438\u0442\u0438 \u041F\u0430\u0440\u043E\u043B\u044C</button>\n </form>\n\n <!-- Redirect to Login -->\n <p class=\"auth-media-blue-gray-sm-normal\">\n <span>\u0417\u0433\u0430\u0434\u0430\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C?</span>\n <a href=\"#\" class=\"auth-deep-blue-sm-medium\">\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C</a>\n </p>\n</div>\n" }]
1431
+ }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.ActivatedRoute }, { type: RTSeeAuthService }] });
1432
+
1433
+ class RTSeeAuthComponent {
1434
+ constructor(authService) {
1435
+ this.authService = authService;
1436
+ this.activeComponent = 'sign-in';
1437
+ console.log('constructor', window.location.pathname);
1438
+ if (window.location.pathname.includes(DEFAULT_ROUTE_NAMES[AuthEndpointsKeys.SIGN_IN])) {
1439
+ this.activeComponent = 'sign-in';
1440
+ }
1441
+ else if (window.location.pathname.includes(DEFAULT_ROUTE_NAMES[AuthEndpointsKeys.SIGN_UP])) {
1442
+ this.activeComponent = 'sign-up';
1443
+ }
1444
+ else if (window.location.pathname.includes(DEFAULT_ROUTE_NAMES[AuthEndpointsKeys.FORGOT_PASSWORD])) {
1445
+ this.activeComponent = 'forgot-password';
1446
+ }
1447
+ else if (window.location.pathname
1448
+ .includes(DEFAULT_ROUTE_NAMES[AuthEndpointsKeys.RESET_PASSWORD].split('/')[0])) {
1449
+ this.activeComponent = 'reset-password';
1450
+ }
1451
+ }
1452
+ ngOnInit() {
1453
+ this.authService.init(this.auth);
1454
+ }
1455
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeAuthComponent, deps: [{ token: RTSeeAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
1456
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: RTSeeAuthComponent, isStandalone: true, selector: "rtsee-auth", inputs: { auth: "auth" }, ngImport: i0, template: "<div class=\"rtsee-auth\">\n @if (authService.rtseeAuth) {\n @if (activeComponent === 'sign-in') {\n <rtsee-sign-in></rtsee-sign-in>\n }\n @if (activeComponent === 'sign-up') {\n <rtsee-sign-up></rtsee-sign-up>\n }\n @if (activeComponent === 'forgot-password') {\n <rtsee-forgot-password></rtsee-forgot-password>\n }\n @if (activeComponent === 'reset-password') {\n <rtsee-reset-password *ngIf=\"activeComponent === 'reset-password'\"></rtsee-reset-password>\n }\n }\n</div>\n", dependencies: [{ kind: "component", type: SignInComponent, selector: "rtsee-sign-in" }, { kind: "component", type: SignUpComponent, selector: "rtsee-sign-up" }, { kind: "component", type: ForgotPasswordComponent, selector: "rtsee-forgot-password" }, { kind: "component", type: ResetPasswordComponent, selector: "rtsee-reset-password" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
1457
+ }
1458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeAuthComponent, decorators: [{
1459
+ type: Component,
1460
+ args: [{ selector: 'rtsee-auth', imports: [
1461
+ SignInComponent,
1462
+ SignUpComponent,
1463
+ ForgotPasswordComponent,
1464
+ ResetPasswordComponent,
1465
+ NgIf
1466
+ ], standalone: true, template: "<div class=\"rtsee-auth\">\n @if (authService.rtseeAuth) {\n @if (activeComponent === 'sign-in') {\n <rtsee-sign-in></rtsee-sign-in>\n }\n @if (activeComponent === 'sign-up') {\n <rtsee-sign-up></rtsee-sign-up>\n }\n @if (activeComponent === 'forgot-password') {\n <rtsee-forgot-password></rtsee-forgot-password>\n }\n @if (activeComponent === 'reset-password') {\n <rtsee-reset-password *ngIf=\"activeComponent === 'reset-password'\"></rtsee-reset-password>\n }\n }\n</div>\n" }]
1467
+ }], ctorParameters: () => [{ type: RTSeeAuthService }], propDecorators: { auth: [{
1468
+ type: Input
1469
+ }] } });
1470
+
1471
+ class RtseePeersListComponent {
1472
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseePeersListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1473
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: RtseePeersListComponent, isStandalone: true, selector: "ngx-rtsee-peers-list", ngImport: i0, template: "<p>rtsee-peers-list works!</p>\n", styles: [""] }); }
1474
+ }
1475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseePeersListComponent, decorators: [{
1476
+ type: Component,
1477
+ args: [{ selector: 'ngx-rtsee-peers-list', standalone: true, template: "<p>rtsee-peers-list works!</p>\n" }]
1478
+ }] });
1479
+
1480
+ class RtseeEventsDashboardClientComponent {
1481
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardClientComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1482
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: RtseeEventsDashboardClientComponent, isStandalone: true, selector: "ngx-rtsee-events-dashboard-client", ngImport: i0, template: "<p>rtsee-events-dashboard-client works!</p>\n" }); }
1483
+ }
1484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RtseeEventsDashboardClientComponent, decorators: [{
1485
+ type: Component,
1486
+ args: [{ selector: 'ngx-rtsee-events-dashboard-client', standalone: true, template: "<p>rtsee-events-dashboard-client works!</p>\n" }]
1487
+ }] });
1488
+
1489
+ class ShaveDirective {
1490
+ constructor(elem) {
1491
+ this.elem = elem;
1492
+ }
1493
+ ngAfterViewInit() {
1494
+ const height = this.elem.nativeElement?.offsetHeight;
1495
+ shave(this.elem.nativeElement, height);
1496
+ }
1497
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShaveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1498
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.1", type: ShaveDirective, isStandalone: true, selector: "[rtseeShave]", ngImport: i0 }); }
1499
+ }
1500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ShaveDirective, decorators: [{
1501
+ type: Directive,
1502
+ args: [{
1503
+ selector: '[rtseeShave]',
1504
+ standalone: true
1505
+ }]
1506
+ }], ctorParameters: () => [{ type: i0.ElementRef }] });
1507
+
1508
+ class VendorsComponent {
1509
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: VendorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1510
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: VendorsComponent, isStandalone: true, selector: "rtsee-vendors", ngImport: i0, template: "<p>vendors works!</p>\n" }); }
1511
+ }
1512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: VendorsComponent, decorators: [{
1513
+ type: Component,
1514
+ args: [{ selector: 'rtsee-vendors', standalone: true, template: "<p>vendors works!</p>\n" }]
1515
+ }] });
1516
+
1517
+ class RTSeeModule {
1518
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1519
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: RTSeeModule, imports: [RTSeeAuthComponent,
1520
+ VendorsComponent,
1521
+ ForgotPasswordComponent,
1522
+ SignInComponent,
1523
+ SignUpComponent,
1524
+ RtseeEventsDashboardSessionComponent,
1525
+ EventThumbnailComponent,
1526
+ ShaveDirective,
1527
+ ContactsMultiselectComponent,
1528
+ ManageChatComponent,
1529
+ CallWidgetComponent,
1530
+ WidgetDirective,
1531
+ RtseeEventsDashboardClientComponent,
1532
+ ResetPasswordComponent,
1533
+ RtseeEventsDashboardClientThumbnailComponent,
1534
+ RtseePeersListComponent,
1535
+ ChatComponent,
1536
+ MessageComponent,
1537
+ MessagesListComponent,
1538
+ ChatThumbnailComponent,
1539
+ ChatInputComponent,
1540
+ RtseeEventsDashboardComponent,
1541
+ MessengerComponent,
1542
+ RTSeeControlsComponent,
1543
+ RTSeeContainerComponent,
1544
+ RTSeeConferenceComponent,
1545
+ RtseePeerComponent,
1546
+ RtseeSoundbarComponent,
1547
+ RtseeSettingsComponent,
1548
+ MessengerHeaderComponent,
1549
+ ChatsListComponent,
1550
+ ProfileComponent,
1551
+ MainMenuComponent,
1552
+ MessageTimeAndStatusComponent,
1553
+ PreloaderComponent,
1554
+ SearchComponent,
1555
+ PresentationComponent,
1556
+ StoryPlayerComponent,
1557
+ SlideComponent,
1558
+ StoryThumbnailComponent,
1559
+ PresentationHeaderComponent,
1560
+ CommonModule,
1561
+ ReactiveFormsModule,
1562
+ AutosizeModule,
1563
+ InfiniteScrollModule,
1564
+ FormsModule,
1565
+ NgOptimizedImage,
1566
+ RouterLink,
1567
+ RouterLinkActive,
1568
+ NgxCaptchaModule], exports: [RTSeeConferenceComponent,
1569
+ MessengerComponent,
1570
+ RtseeEventsDashboardComponent,
1571
+ RTSeeContainerComponent,
1572
+ PresentationComponent,
1573
+ RTSeeAuthComponent] }); }
1574
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeModule, providers: [
1575
+ provideAnimationsAsync(),
1576
+ providePrimeNG({
1577
+ theme: {
1578
+ preset: Aura
1579
+ }
1580
+ })
1581
+ ], imports: [RTSeeAuthComponent,
1582
+ ForgotPasswordComponent,
1583
+ SignInComponent,
1584
+ SignUpComponent,
1585
+ ContactsMultiselectComponent,
1586
+ ResetPasswordComponent,
1587
+ ChatComponent,
1588
+ ChatInputComponent,
1589
+ MessengerComponent,
1590
+ RTSeeContainerComponent,
1591
+ RTSeeConferenceComponent,
1592
+ RtseeSettingsComponent,
1593
+ MainMenuComponent,
1594
+ SearchComponent,
1595
+ CommonModule,
1596
+ ReactiveFormsModule,
1597
+ AutosizeModule,
1598
+ InfiniteScrollModule,
1599
+ FormsModule,
1600
+ NgxCaptchaModule] }); }
1601
+ }
1602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: RTSeeModule, decorators: [{
1603
+ type: NgModule,
1604
+ args: [{
1605
+ providers: [
1606
+ provideAnimationsAsync(),
1607
+ providePrimeNG({
1608
+ theme: {
1609
+ preset: Aura
1610
+ }
1611
+ })
1612
+ ],
1613
+ declarations: [],
1614
+ imports: [
1615
+ RTSeeAuthComponent,
1616
+ VendorsComponent,
1617
+ ForgotPasswordComponent,
1618
+ SignInComponent,
1619
+ SignUpComponent,
1620
+ RtseeEventsDashboardSessionComponent,
1621
+ EventThumbnailComponent,
1622
+ ShaveDirective,
1623
+ ContactsMultiselectComponent,
1624
+ ManageChatComponent,
1625
+ CallWidgetComponent,
1626
+ WidgetDirective,
1627
+ RtseeEventsDashboardClientComponent,
1628
+ ResetPasswordComponent,
1629
+ RtseeEventsDashboardClientThumbnailComponent,
1630
+ RtseePeersListComponent,
1631
+ ChatComponent,
1632
+ MessageComponent,
1633
+ MessagesListComponent,
1634
+ ChatThumbnailComponent,
1635
+ ChatInputComponent,
1636
+ RtseeEventsDashboardComponent,
1637
+ MessengerComponent,
1638
+ RTSeeControlsComponent,
1639
+ RTSeeContainerComponent,
1640
+ RTSeeConferenceComponent,
1641
+ RtseePeerComponent,
1642
+ RtseeSoundbarComponent,
1643
+ RtseeSettingsComponent,
1644
+ MessengerHeaderComponent,
1645
+ ChatsListComponent,
1646
+ ProfileComponent,
1647
+ MainMenuComponent,
1648
+ MessageTimeAndStatusComponent,
1649
+ PreloaderComponent,
1650
+ SearchComponent,
1651
+ PresentationComponent,
1652
+ StoryPlayerComponent,
1653
+ SlideComponent,
1654
+ StoryThumbnailComponent,
1655
+ PresentationHeaderComponent,
1656
+ CommonModule,
1657
+ ReactiveFormsModule,
1658
+ AutosizeModule,
1659
+ InfiniteScrollModule,
1660
+ FormsModule,
1661
+ NgOptimizedImage,
1662
+ RouterLink,
1663
+ RouterLinkActive,
1664
+ NgxCaptchaModule
1665
+ ],
1666
+ exports: [
1667
+ RTSeeConferenceComponent,
1668
+ MessengerComponent,
1669
+ RtseeEventsDashboardComponent,
1670
+ RTSeeContainerComponent,
1671
+ PresentationComponent,
1672
+ RTSeeAuthComponent
1673
+ ],
1674
+ schemas: [
1675
+ CUSTOM_ELEMENTS_SCHEMA,
1676
+ ]
1677
+ }]
1678
+ }] });
1679
+
1680
+ /*
1681
+ * Public API Surface of ngx
1682
+ */
1683
+
1684
+ /**
1685
+ * Generated bundle index. Do not edit.
1686
+ */
1687
+
1688
+ export { MessengerComponent, NgxService, PresentationComponent, ProfileComponent, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent };
1689
+ //# sourceMappingURL=rtsee-ngx.mjs.map