@rtsee/ngx 0.0.137 → 0.0.139

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, PLATFORM_ID, Input, Inject, Directive, Component, ViewChild, EventEmitter, Output, forwardRef, reflectComponentType, DOCUMENT, HostListener, ChangeDetectionStrategy, output, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
2
+ import { Injectable, PLATFORM_ID, Input, Inject, Directive, Component, ViewChild, EventEmitter, Output, forwardRef, reflectComponentType, HostListener, DOCUMENT, ChangeDetectionStrategy, output, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
3
3
  import * as i1$3 from '@angular/common';
4
4
  import { isPlatformBrowser, NgClass, NgIf, NgForOf, DecimalPipe, DatePipe, NgComponentOutlet, SlicePipe, JsonPipe, DOCUMENT as DOCUMENT$1, CommonModule, NgStyle, NgOptimizedImage } from '@angular/common';
5
5
  import * as i1 from '@angular/forms';
@@ -10,11 +10,11 @@ import * as i4 from 'primeng/button';
10
10
  import { Button, ButtonModule } from 'primeng/button';
11
11
  import { interval, tap, map } from 'rxjs';
12
12
  import { RTSeeTextLabelKeys, RTSeeCore, defaultLabels, hasPermission, RTSeePeerPermissions } from '@rtsee/core';
13
+ import { RTSEE_BLOCK_REASONS, RTSeeChatMemberRoles, RTSeeIllustratorEvents, RTSeeChatTypes, OzzyTaskStatus, CREATE_STORY_ACTION_NAME, EDIT_STORY_ACTION_NAME, CREATE_SLIDE_ACTION_NAME, EDIT_SLIDE_ACTION_NAME, getStoryTranslatorLanguage, STORY_TRANSLATOR_LANGUAGES, RTSEE_REPORT_REASONS, RTSeeModerationWidgets } from '@rtsee/common';
13
14
  import { AuthEndpointsKeys, LS_TOKEN_LABEL, LS_USER_LABEL, DEFAULT_ROUTE_NAMES } from '@rtsee/auth';
14
15
  import * as i2 from '@angular/router';
15
16
  import { RouterLink, RouterLinkActive, NavigationStart, NavigationEnd } from '@angular/router';
16
17
  import * as i1$1 from '@angular/common/http';
17
- import { RTSeeChatMemberRoles, RTSeeIllustratorEvents, RTSeeChatTypes, OzzyTaskStatus, CREATE_STORY_ACTION_NAME, EDIT_STORY_ACTION_NAME, CREATE_SLIDE_ACTION_NAME, EDIT_SLIDE_ACTION_NAME, getStoryTranslatorLanguage, STORY_TRANSLATOR_LANGUAGES } from '@rtsee/common';
18
18
  import { sanitizeImageUrl, RTSeeFormFieldEvents, ManageAgentForm, RTSeeForm, RTSeeFormFieldRadioGroup, RTSeeFormField, RTSeeFormFieldImageUploader, fetchImageBlob, RTSeeFormFieldSelect, RTSeeFormFieldAutocomplete, RTSeeRater } from '@rtsee/utilities-ui';
19
19
  import { InputText } from 'primeng/inputtext';
20
20
  import { InputGroup } from 'primeng/inputgroup';
@@ -521,6 +521,11 @@ class ProfileComponent {
521
521
  constructor(authService, router) {
522
522
  this.authService = authService;
523
523
  this.router = router;
524
+ this.blockReasons = RTSEE_BLOCK_REASONS;
525
+ this.showBlockForm = false;
526
+ this.selectedBlockReason = RTSEE_BLOCK_REASONS[0].value;
527
+ this.blockExplanation = '';
528
+ this.blockSubmitting = false;
524
529
  this.AuthEndpointsKeys = AuthEndpointsKeys;
525
530
  this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
526
531
  this.authConfiguration = this.authService.rtseeAuth.authConfiguration;
@@ -529,6 +534,13 @@ class ProfileComponent {
529
534
  if (this.peer) {
530
535
  return { id: this.peer.clientId, name: this.peer.name, imageUrl: this.peer.imageUrl };
531
536
  }
537
+ if (this.messenger?.openedProfile) {
538
+ return {
539
+ id: this.messenger.openedProfile.clientId,
540
+ name: this.messenger.openedProfile.name,
541
+ imageUrl: this.messenger.openedProfile.imageUrl,
542
+ };
543
+ }
532
544
  if (this.messenger?.openedChat) {
533
545
  const myId = this.messenger.myPeer?.clientId || this.messenger.clientId;
534
546
  const other = this.messenger.openedChat.members.find((m) => m.id !== myId && m.clientId !== myId);
@@ -546,15 +558,18 @@ class ProfileComponent {
546
558
  return undefined;
547
559
  }
548
560
  get isOtherUser() {
549
- if (!this.messenger?.ownProfileOpened) {
550
- return true;
551
- }
552
561
  const myId = this.messenger?.myPeer?.clientId || this.messenger?.clientId;
553
562
  if (this.targetPeer && myId && this.targetPeer.id !== myId) {
554
563
  return true;
555
564
  }
565
+ if (!this.messenger?.ownProfileOpened && this.peer && this.peer.clientId !== myId) {
566
+ return true;
567
+ }
556
568
  return false;
557
569
  }
570
+ get isTargetBlocked() {
571
+ return Boolean(this.targetPeer?.id && this.messenger?.isUserBlocked(this.targetPeer.id));
572
+ }
558
573
  get displayName() {
559
574
  return (this.targetPeer?.name ||
560
575
  this.messenger?.openedChat?.name ||
@@ -583,20 +598,68 @@ class ProfileComponent {
583
598
  }
584
599
  return 'My Profile';
585
600
  }
601
+ openBlockUserPrompt() {
602
+ this.selectedBlockReason = RTSEE_BLOCK_REASONS[0].value;
603
+ this.blockExplanation = '';
604
+ this.showBlockForm = true;
605
+ }
606
+ cancelBlockUserPrompt() {
607
+ if (this.blockSubmitting) {
608
+ return;
609
+ }
610
+ this.showBlockForm = false;
611
+ }
612
+ async confirmBlockUser() {
613
+ const targetId = this.targetPeer?.id;
614
+ if (!targetId || this.blockSubmitting) {
615
+ return;
616
+ }
617
+ this.blockSubmitting = true;
618
+ try {
619
+ await this.messenger.blockUser({
620
+ blockedUserId: targetId,
621
+ reason: this.selectedBlockReason,
622
+ explanation: this.blockExplanation.trim() || undefined,
623
+ });
624
+ this.showBlockForm = false;
625
+ }
626
+ catch (e) {
627
+ console.error('Failed to block user:', e);
628
+ }
629
+ finally {
630
+ this.blockSubmitting = false;
631
+ }
632
+ }
633
+ async unblockTargetUser() {
634
+ const targetId = this.targetPeer?.id;
635
+ if (!targetId || this.blockSubmitting) {
636
+ return;
637
+ }
638
+ this.blockSubmitting = true;
639
+ try {
640
+ await this.messenger.unblockUser(targetId);
641
+ }
642
+ catch (e) {
643
+ console.error('Failed to unblock user:', e);
644
+ }
645
+ finally {
646
+ this.blockSubmitting = false;
647
+ }
648
+ }
586
649
  setLanguage() {
587
650
  this.messenger.setLanguage(this.messenger.currentLanguage);
588
651
  void this.messenger.propagateLanguageChange(this.messenger.currentLanguage);
589
652
  }
590
653
  call() {
591
654
  const chat = this.messenger.openedChat;
592
- if (!chat) {
655
+ if (!chat || this.isTargetBlocked) {
593
656
  return;
594
657
  }
595
658
  void this.messenger.initializeVideoCall(chat);
596
659
  }
597
660
  videoCall() {
598
661
  const chat = this.messenger.openedChat;
599
- if (!chat) {
662
+ if (!chat || this.isTargetBlocked) {
600
663
  return;
601
664
  }
602
665
  void this.messenger.initializeVideoCall(chat);
@@ -609,11 +672,11 @@ class ProfileComponent {
609
672
  }, 200);
610
673
  }
611
674
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ProfileComponent, deps: [{ token: RTSeeAuthService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
612
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ProfileComponent, isStandalone: true, selector: "rtsee-profile", inputs: { messenger: "messenger", peer: "peer" }, ngImport: i0, template: "<div class=\"rts-chat-info rts-messenger-profile\">\n @if (displaySubtitle) {\n <div class=\"rts-chat-info-meta\">\n <p class=\"rts-chat-info-type\">{{ displaySubtitle }}</p>\n </div>\n }\n\n @if (isOtherUser) {\n <div class=\"rts-chat-info-call-actions\">\n <button class=\"rts-call-btn\"\n (click)=\"call()\"\n type=\"button\"\n title=\"Audio Call\"\n >\n <span class=\"material-icons-outlined\">call</span>\n <span>Audio</span>\n </button>\n <button class=\"rts-call-btn rts-call-btn-video\"\n (click)=\"videoCall()\"\n type=\"button\"\n title=\"Video Call\"\n >\n <span class=\"material-icons-outlined\">videocam</span>\n <span>Video</span>\n </button>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n <div class=\"rts-chat-info-actions\">\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManageProfile()\"\n >\n <span class=\"material-icons-outlined\">edit</span>\n {{ messenger.labels[RTSeeTextLabelKeys.MESSENGER_EDIT_PROFILE_BTN_LABEL] || 'Edit Profile' }}\n </button>\n </div>\n\n <hr class=\"rts-divider\" />\n }\n\n <!-- language selection is available to every user (anonymous included) -->\n @if (!isOtherUser && messenger.myPeer) {\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-field-row\">\n <label class=\"rts-profile-field-label\" for=\"rts-profile-language-select\">\n {{ messenger.labels[RTSeeTextLabelKeys.LANGUAGE_LABEL] || 'Language' }}\n </label>\n <p-select [options]=\"messenger.languageOptions\"\n [(ngModel)]=\"messenger.currentLanguage\"\n (ngModelChange)=\"setLanguage()\"\n optionLabel=\"key\"\n optionValue=\"key\"\n inputId=\"rts-profile-language-select\"\n [placeholder]=\"messenger.labels[RTSeeTextLabelKeys.MESSANGER_LANGUAGE_PLACEHOLDER]\"\n class=\"rts-profile-language-select\"\n />\n </div>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n @if (messenger.myPeer.plan) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-plan-badge\">\n <span class=\"material-icons-outlined\">verified</span>\n <span>{{ messenger.myPeer.plan.productName }}</span>\n </div>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManagePlanPage()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.MANAGE_PLAN] || 'Manage Plan' }}\n </button>\n </div>\n } @else {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n (click)=\"messenger.openPaymentPage()\"\n >\n <span class=\"material-icons-outlined\">stars</span>\n {{ messenger.labels[RTSeeTextLabelKeys.SUBSCRIBE_LABEL] || 'Upgrade Plan' }}\n </button>\n </div>\n }\n\n <hr class=\"rts-divider\" />\n <div class=\"rts-chat-info-danger-zone\">\n <button class=\"rts-btn rts-btn-danger rts-btn-block\"\n (click)=\"logOut()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.LOGOUT_BUTTON] || 'Logout' }}\n </button>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer?.isAnonymous) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-anon-box\">\n <div class=\"rts-profile-anon-icon\">\n <span class=\"material-icons-outlined\">shield</span>\n </div>\n <div class=\"rts-profile-anon-text\">\n @if (!messenger.currentLanguage || messenger.currentLanguage === 'eng') {\n <p>This is a temporary anonymous identity. Sign up or sign in to save your history permanently.</p>\n } @else if (messenger.currentLanguage === 'ua') {\n <p>\u0426\u0435 \u0442\u0438\u043C\u0447\u0430\u0441\u043E\u0432\u0430 \u0430\u043D\u043E\u043D\u0456\u043C\u043D\u0430 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456\u0441\u0442\u044C. \u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0439\u0442\u0435\u0441\u044F, \u0430\u0431\u0438 \u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0456\u0441\u0442\u043E\u0440\u0456\u044E \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u044F.</p>\n }\n </div>\n </div>\n\n <div class=\"rts-profile-auth-actions\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_UP)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_UP_BUTTON] || 'Sign Up' }}\n </button>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_IN_BUTTON] || 'Sign In' }}\n </button>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: FormsModule }, { 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"] }] }); }
675
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ProfileComponent, isStandalone: true, selector: "rtsee-profile", inputs: { messenger: "messenger", peer: "peer" }, ngImport: i0, template: "<div class=\"rts-chat-info rts-messenger-profile\">\n @if (displaySubtitle) {\n <div class=\"rts-chat-info-meta\">\n <p class=\"rts-chat-info-type\">{{ displaySubtitle }}</p>\n </div>\n }\n\n @if (isOtherUser) {\n <div class=\"rts-chat-info-call-actions\">\n <button class=\"rts-call-btn\"\n (click)=\"call()\"\n [disabled]=\"isTargetBlocked\"\n type=\"button\"\n title=\"Audio Call\"\n >\n <span class=\"material-icons-outlined\">call</span>\n <span>Audio</span>\n </button>\n <button class=\"rts-call-btn rts-call-btn-video\"\n (click)=\"videoCall()\"\n [disabled]=\"isTargetBlocked\"\n type=\"button\"\n title=\"Video Call\"\n >\n <span class=\"material-icons-outlined\">videocam</span>\n <span>Video</span>\n </button>\n </div>\n\n <div class=\"rts-profile-moderation-section\">\n @if (isTargetBlocked) {\n <button\n type=\"button\"\n class=\"rts-block-user-btn rts-unblock-btn\"\n [disabled]=\"blockSubmitting\"\n (click)=\"unblockTargetUser()\"\n >\n <span class=\"material-icons-outlined\">person_add_alt_1</span>\n <span>{{ blockSubmitting ? 'Unblocking...' : 'Unblock User' }}</span>\n </button>\n } @else {\n <button\n type=\"button\"\n class=\"rts-block-user-btn\"\n (click)=\"openBlockUserPrompt()\"\n >\n <span class=\"material-icons-outlined\">block</span>\n <span>Block User</span>\n </button>\n }\n\n @if (showBlockForm && !isTargetBlocked) {\n <div class=\"rts-block-modal-card\">\n <h5>Block {{ displayName }}?</h5>\n <p>\n Blocked users cannot message you directly, and their messages will be hidden for you across chats.\n </p>\n <select [(ngModel)]=\"selectedBlockReason\" aria-label=\"Reason for blocking\">\n @for (reason of blockReasons; track reason.value) {\n <option [value]=\"reason.value\">{{ reason.label }}</option>\n }\n </select>\n <textarea\n rows=\"2\"\n maxlength=\"500\"\n placeholder=\"Optional details...\"\n [(ngModel)]=\"blockExplanation\"\n ></textarea>\n <div class=\"rts-block-modal-actions\">\n <button\n type=\"button\"\n class=\"rts-block-cancel\"\n [disabled]=\"blockSubmitting\"\n (click)=\"cancelBlockUserPrompt()\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n class=\"rts-block-confirm\"\n [disabled]=\"blockSubmitting\"\n (click)=\"confirmBlockUser()\"\n >\n {{ blockSubmitting ? 'Blocking...' : 'Block User' }}\n </button>\n </div>\n </div>\n }\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n <div class=\"rts-chat-info-actions\">\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManageProfile()\"\n >\n <span class=\"material-icons-outlined\">edit</span>\n {{ messenger.labels[RTSeeTextLabelKeys.MESSENGER_EDIT_PROFILE_BTN_LABEL] || 'Edit Profile' }}\n </button>\n </div>\n\n <hr class=\"rts-divider\" />\n }\n\n <!-- language selection is available to every user (anonymous included) -->\n @if (!isOtherUser && messenger.myPeer) {\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-field-row\">\n <label class=\"rts-profile-field-label\" for=\"rts-profile-language-select\">\n {{ messenger.labels[RTSeeTextLabelKeys.LANGUAGE_LABEL] || 'Language' }}\n </label>\n <p-select [options]=\"messenger.languageOptions\"\n [(ngModel)]=\"messenger.currentLanguage\"\n (ngModelChange)=\"setLanguage()\"\n optionLabel=\"key\"\n optionValue=\"key\"\n inputId=\"rts-profile-language-select\"\n [placeholder]=\"messenger.labels[RTSeeTextLabelKeys.MESSANGER_LANGUAGE_PLACEHOLDER]\"\n class=\"rts-profile-language-select\"\n />\n </div>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n @if (messenger.myPeer.plan) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-plan-badge\">\n <span class=\"material-icons-outlined\">verified</span>\n <span>{{ messenger.myPeer.plan.productName }}</span>\n </div>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManagePlanPage()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.MANAGE_PLAN] || 'Manage Plan' }}\n </button>\n </div>\n } @else {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n (click)=\"messenger.openPaymentPage()\"\n >\n <span class=\"material-icons-outlined\">stars</span>\n {{ messenger.labels[RTSeeTextLabelKeys.SUBSCRIBE_LABEL] || 'Upgrade Plan' }}\n </button>\n </div>\n }\n\n <hr class=\"rts-divider\" />\n <div class=\"rts-chat-info-danger-zone\">\n <button class=\"rts-btn rts-btn-danger rts-btn-block\"\n (click)=\"logOut()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.LOGOUT_BUTTON] || 'Logout' }}\n </button>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer?.isAnonymous) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-anon-box\">\n <div class=\"rts-profile-anon-icon\">\n <span class=\"material-icons-outlined\">shield</span>\n </div>\n <div class=\"rts-profile-anon-text\">\n @if (!messenger.currentLanguage || messenger.currentLanguage === 'eng') {\n <p>This is a temporary anonymous identity. Sign up or sign in to save your history permanently.</p>\n } @else if (messenger.currentLanguage === 'ua') {\n <p>\u0426\u0435 \u0442\u0438\u043C\u0447\u0430\u0441\u043E\u0432\u0430 \u0430\u043D\u043E\u043D\u0456\u043C\u043D\u0430 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456\u0441\u0442\u044C. \u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0439\u0442\u0435\u0441\u044F, \u0430\u0431\u0438 \u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0456\u0441\u0442\u043E\u0440\u0456\u044E \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u044F.</p>\n }\n </div>\n </div>\n\n <div class=\"rts-profile-auth-actions\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_UP)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_UP_BUTTON] || 'Sign Up' }}\n </button>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_IN_BUTTON] || 'Sign In' }}\n </button>\n </div>\n }\n</div>\n", styles: [".rts-profile-moderation-section{margin-top:16px;display:flex;flex-direction:column;gap:10px}.rts-block-user-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px 16px;border-radius:12px;border:1px solid rgba(255,107,107,.45);background:#ff6b6b1f;color:#ff7675;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease}.rts-block-user-btn:hover{background:#ff6b6b38;border-color:#ff6b6bb3}.rts-block-user-btn.rts-unblock-btn{border-color:#a29bfe73;background:#6c5ce729;color:#a29bfe}.rts-block-modal-card{margin-top:8px;padding:14px;border-radius:12px;background:#ffffff0a;border:1px solid rgba(255,255,255,.14);display:flex;flex-direction:column;gap:10px}.rts-block-modal-card h5{margin:0;font-size:14px;font-weight:700}.rts-block-modal-card p{margin:0;font-size:12px;opacity:.75;line-height:1.4}.rts-block-modal-card select,.rts-block-modal-card textarea{width:100%;box-sizing:border-box;background:#1d1f29;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:9px;padding:9px 10px;font-size:13px;font-family:inherit}.rts-block-modal-actions{display:flex;justify-content:flex-end;gap:8px}.rts-block-modal-actions button{padding:8px 14px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer;border:none}.rts-block-cancel{background:#ffffff1a;color:#fff}.rts-block-confirm{background:#e14b4b;color:#fff}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { 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.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.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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
613
676
  }
614
677
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ProfileComponent, decorators: [{
615
678
  type: Component,
616
- args: [{ selector: 'rtsee-profile', imports: [RouterLink, Select, FormsModule], standalone: true, template: "<div class=\"rts-chat-info rts-messenger-profile\">\n @if (displaySubtitle) {\n <div class=\"rts-chat-info-meta\">\n <p class=\"rts-chat-info-type\">{{ displaySubtitle }}</p>\n </div>\n }\n\n @if (isOtherUser) {\n <div class=\"rts-chat-info-call-actions\">\n <button class=\"rts-call-btn\"\n (click)=\"call()\"\n type=\"button\"\n title=\"Audio Call\"\n >\n <span class=\"material-icons-outlined\">call</span>\n <span>Audio</span>\n </button>\n <button class=\"rts-call-btn rts-call-btn-video\"\n (click)=\"videoCall()\"\n type=\"button\"\n title=\"Video Call\"\n >\n <span class=\"material-icons-outlined\">videocam</span>\n <span>Video</span>\n </button>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n <div class=\"rts-chat-info-actions\">\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManageProfile()\"\n >\n <span class=\"material-icons-outlined\">edit</span>\n {{ messenger.labels[RTSeeTextLabelKeys.MESSENGER_EDIT_PROFILE_BTN_LABEL] || 'Edit Profile' }}\n </button>\n </div>\n\n <hr class=\"rts-divider\" />\n }\n\n <!-- language selection is available to every user (anonymous included) -->\n @if (!isOtherUser && messenger.myPeer) {\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-field-row\">\n <label class=\"rts-profile-field-label\" for=\"rts-profile-language-select\">\n {{ messenger.labels[RTSeeTextLabelKeys.LANGUAGE_LABEL] || 'Language' }}\n </label>\n <p-select [options]=\"messenger.languageOptions\"\n [(ngModel)]=\"messenger.currentLanguage\"\n (ngModelChange)=\"setLanguage()\"\n optionLabel=\"key\"\n optionValue=\"key\"\n inputId=\"rts-profile-language-select\"\n [placeholder]=\"messenger.labels[RTSeeTextLabelKeys.MESSANGER_LANGUAGE_PLACEHOLDER]\"\n class=\"rts-profile-language-select\"\n />\n </div>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n @if (messenger.myPeer.plan) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-plan-badge\">\n <span class=\"material-icons-outlined\">verified</span>\n <span>{{ messenger.myPeer.plan.productName }}</span>\n </div>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManagePlanPage()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.MANAGE_PLAN] || 'Manage Plan' }}\n </button>\n </div>\n } @else {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n (click)=\"messenger.openPaymentPage()\"\n >\n <span class=\"material-icons-outlined\">stars</span>\n {{ messenger.labels[RTSeeTextLabelKeys.SUBSCRIBE_LABEL] || 'Upgrade Plan' }}\n </button>\n </div>\n }\n\n <hr class=\"rts-divider\" />\n <div class=\"rts-chat-info-danger-zone\">\n <button class=\"rts-btn rts-btn-danger rts-btn-block\"\n (click)=\"logOut()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.LOGOUT_BUTTON] || 'Logout' }}\n </button>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer?.isAnonymous) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-anon-box\">\n <div class=\"rts-profile-anon-icon\">\n <span class=\"material-icons-outlined\">shield</span>\n </div>\n <div class=\"rts-profile-anon-text\">\n @if (!messenger.currentLanguage || messenger.currentLanguage === 'eng') {\n <p>This is a temporary anonymous identity. Sign up or sign in to save your history permanently.</p>\n } @else if (messenger.currentLanguage === 'ua') {\n <p>\u0426\u0435 \u0442\u0438\u043C\u0447\u0430\u0441\u043E\u0432\u0430 \u0430\u043D\u043E\u043D\u0456\u043C\u043D\u0430 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456\u0441\u0442\u044C. \u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0439\u0442\u0435\u0441\u044F, \u0430\u0431\u0438 \u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0456\u0441\u0442\u043E\u0440\u0456\u044E \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u044F.</p>\n }\n </div>\n </div>\n\n <div class=\"rts-profile-auth-actions\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_UP)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_UP_BUTTON] || 'Sign Up' }}\n </button>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_IN_BUTTON] || 'Sign In' }}\n </button>\n </div>\n }\n</div>\n" }]
679
+ args: [{ selector: 'rtsee-profile', imports: [RouterLink, Select, FormsModule], standalone: true, template: "<div class=\"rts-chat-info rts-messenger-profile\">\n @if (displaySubtitle) {\n <div class=\"rts-chat-info-meta\">\n <p class=\"rts-chat-info-type\">{{ displaySubtitle }}</p>\n </div>\n }\n\n @if (isOtherUser) {\n <div class=\"rts-chat-info-call-actions\">\n <button class=\"rts-call-btn\"\n (click)=\"call()\"\n [disabled]=\"isTargetBlocked\"\n type=\"button\"\n title=\"Audio Call\"\n >\n <span class=\"material-icons-outlined\">call</span>\n <span>Audio</span>\n </button>\n <button class=\"rts-call-btn rts-call-btn-video\"\n (click)=\"videoCall()\"\n [disabled]=\"isTargetBlocked\"\n type=\"button\"\n title=\"Video Call\"\n >\n <span class=\"material-icons-outlined\">videocam</span>\n <span>Video</span>\n </button>\n </div>\n\n <div class=\"rts-profile-moderation-section\">\n @if (isTargetBlocked) {\n <button\n type=\"button\"\n class=\"rts-block-user-btn rts-unblock-btn\"\n [disabled]=\"blockSubmitting\"\n (click)=\"unblockTargetUser()\"\n >\n <span class=\"material-icons-outlined\">person_add_alt_1</span>\n <span>{{ blockSubmitting ? 'Unblocking...' : 'Unblock User' }}</span>\n </button>\n } @else {\n <button\n type=\"button\"\n class=\"rts-block-user-btn\"\n (click)=\"openBlockUserPrompt()\"\n >\n <span class=\"material-icons-outlined\">block</span>\n <span>Block User</span>\n </button>\n }\n\n @if (showBlockForm && !isTargetBlocked) {\n <div class=\"rts-block-modal-card\">\n <h5>Block {{ displayName }}?</h5>\n <p>\n Blocked users cannot message you directly, and their messages will be hidden for you across chats.\n </p>\n <select [(ngModel)]=\"selectedBlockReason\" aria-label=\"Reason for blocking\">\n @for (reason of blockReasons; track reason.value) {\n <option [value]=\"reason.value\">{{ reason.label }}</option>\n }\n </select>\n <textarea\n rows=\"2\"\n maxlength=\"500\"\n placeholder=\"Optional details...\"\n [(ngModel)]=\"blockExplanation\"\n ></textarea>\n <div class=\"rts-block-modal-actions\">\n <button\n type=\"button\"\n class=\"rts-block-cancel\"\n [disabled]=\"blockSubmitting\"\n (click)=\"cancelBlockUserPrompt()\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n class=\"rts-block-confirm\"\n [disabled]=\"blockSubmitting\"\n (click)=\"confirmBlockUser()\"\n >\n {{ blockSubmitting ? 'Blocking...' : 'Block User' }}\n </button>\n </div>\n </div>\n }\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n <div class=\"rts-chat-info-actions\">\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManageProfile()\"\n >\n <span class=\"material-icons-outlined\">edit</span>\n {{ messenger.labels[RTSeeTextLabelKeys.MESSENGER_EDIT_PROFILE_BTN_LABEL] || 'Edit Profile' }}\n </button>\n </div>\n\n <hr class=\"rts-divider\" />\n }\n\n <!-- language selection is available to every user (anonymous included) -->\n @if (!isOtherUser && messenger.myPeer) {\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-field-row\">\n <label class=\"rts-profile-field-label\" for=\"rts-profile-language-select\">\n {{ messenger.labels[RTSeeTextLabelKeys.LANGUAGE_LABEL] || 'Language' }}\n </label>\n <p-select [options]=\"messenger.languageOptions\"\n [(ngModel)]=\"messenger.currentLanguage\"\n (ngModelChange)=\"setLanguage()\"\n optionLabel=\"key\"\n optionValue=\"key\"\n inputId=\"rts-profile-language-select\"\n [placeholder]=\"messenger.labels[RTSeeTextLabelKeys.MESSANGER_LANGUAGE_PLACEHOLDER]\"\n class=\"rts-profile-language-select\"\n />\n </div>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer && !messenger.myPeer.isAnonymous) {\n @if (messenger.myPeer.plan) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <div class=\"rts-profile-plan-badge\">\n <span class=\"material-icons-outlined\">verified</span>\n <span>{{ messenger.myPeer.plan.productName }}</span>\n </div>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n (click)=\"messenger.openManagePlanPage()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.MANAGE_PLAN] || 'Manage Plan' }}\n </button>\n </div>\n } @else {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-section\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n (click)=\"messenger.openPaymentPage()\"\n >\n <span class=\"material-icons-outlined\">stars</span>\n {{ messenger.labels[RTSeeTextLabelKeys.SUBSCRIBE_LABEL] || 'Upgrade Plan' }}\n </button>\n </div>\n }\n\n <hr class=\"rts-divider\" />\n <div class=\"rts-chat-info-danger-zone\">\n <button class=\"rts-btn rts-btn-danger rts-btn-block\"\n (click)=\"logOut()\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.LOGOUT_BUTTON] || 'Logout' }}\n </button>\n </div>\n }\n\n @if (!isOtherUser && messenger.myPeer?.isAnonymous) {\n <hr class=\"rts-divider\" />\n <div class=\"rts-profile-anon-box\">\n <div class=\"rts-profile-anon-icon\">\n <span class=\"material-icons-outlined\">shield</span>\n </div>\n <div class=\"rts-profile-anon-text\">\n @if (!messenger.currentLanguage || messenger.currentLanguage === 'eng') {\n <p>This is a temporary anonymous identity. Sign up or sign in to save your history permanently.</p>\n } @else if (messenger.currentLanguage === 'ua') {\n <p>\u0426\u0435 \u0442\u0438\u043C\u0447\u0430\u0441\u043E\u0432\u0430 \u0430\u043D\u043E\u043D\u0456\u043C\u043D\u0430 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456\u0441\u0442\u044C. \u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0439\u0442\u0435\u0441\u044F, \u0430\u0431\u0438 \u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0456\u0441\u0442\u043E\u0440\u0456\u044E \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u044F.</p>\n }\n </div>\n </div>\n\n <div class=\"rts-profile-auth-actions\">\n <button class=\"rts-btn rts-btn-primary rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_UP)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_UP_BUTTON] || 'Sign Up' }}\n </button>\n <button class=\"rts-btn rts-btn-ghost rts-btn-block\"\n [routerLink]=\"authConfiguration.getRoutePathSplit(AuthEndpointsKeys.SIGN_IN)\"\n >\n {{ messenger.labels[RTSeeTextLabelKeys.SIGN_IN_BUTTON] || 'Sign In' }}\n </button>\n </div>\n }\n</div>\n", styles: [".rts-profile-moderation-section{margin-top:16px;display:flex;flex-direction:column;gap:10px}.rts-block-user-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px 16px;border-radius:12px;border:1px solid rgba(255,107,107,.45);background:#ff6b6b1f;color:#ff7675;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease}.rts-block-user-btn:hover{background:#ff6b6b38;border-color:#ff6b6bb3}.rts-block-user-btn.rts-unblock-btn{border-color:#a29bfe73;background:#6c5ce729;color:#a29bfe}.rts-block-modal-card{margin-top:8px;padding:14px;border-radius:12px;background:#ffffff0a;border:1px solid rgba(255,255,255,.14);display:flex;flex-direction:column;gap:10px}.rts-block-modal-card h5{margin:0;font-size:14px;font-weight:700}.rts-block-modal-card p{margin:0;font-size:12px;opacity:.75;line-height:1.4}.rts-block-modal-card select,.rts-block-modal-card textarea{width:100%;box-sizing:border-box;background:#1d1f29;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:9px;padding:9px 10px;font-size:13px;font-family:inherit}.rts-block-modal-actions{display:flex;justify-content:flex-end;gap:8px}.rts-block-modal-actions button{padding:8px 14px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer;border:none}.rts-block-cancel{background:#ffffff1a;color:#fff}.rts-block-confirm{background:#e14b4b;color:#fff}\n"] }]
617
680
  }], ctorParameters: () => [{ type: RTSeeAuthService }, { type: i2.Router }], propDecorators: { messenger: [{
618
681
  type: Input
619
682
  }], peer: [{
@@ -5720,6 +5783,130 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
5720
5783
  type: Input
5721
5784
  }] } });
5722
5785
 
5786
+ class ProfanityWarningWidgetComponent {
5787
+ dismiss() {
5788
+ if (this.chat && this.message) {
5789
+ this.chat.removeLocalMessage(this.message);
5790
+ }
5791
+ }
5792
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ProfanityWarningWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5793
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: ProfanityWarningWidgetComponent, isStandalone: true, selector: "rtsee-profanity-warning-widget", inputs: { message: "message", chat: "chat", messenger: "messenger" }, ngImport: i0, template: `
5794
+ <div class="rts-moderation-warning rts-moderation-profanity" role="alert">
5795
+ <div class="rts-moderation-warning-header">
5796
+ <span class="material-icons-outlined rts-moderation-warning-icon">gpp_maybe</span>
5797
+ <strong class="rts-moderation-warning-title">Message Not Delivered</strong>
5798
+ <button
5799
+ type="button"
5800
+ class="rts-moderation-dismiss-btn"
5801
+ title="Dismiss warning"
5802
+ (click)="dismiss()"
5803
+ >
5804
+ <span class="material-icons-outlined">close</span>
5805
+ </button>
5806
+ </div>
5807
+ <p class="rts-moderation-warning-body">
5808
+ {{ message?.text || 'Your message was blocked by our content filter because it contains inappropriate or offensive language.' }}
5809
+ </p>
5810
+ <span class="rts-moderation-warning-sub">Only visible to you</span>
5811
+ </div>
5812
+ `, isInline: true }); }
5813
+ }
5814
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ProfanityWarningWidgetComponent, decorators: [{
5815
+ type: Component,
5816
+ args: [{
5817
+ selector: 'rtsee-profanity-warning-widget',
5818
+ standalone: true,
5819
+ template: `
5820
+ <div class="rts-moderation-warning rts-moderation-profanity" role="alert">
5821
+ <div class="rts-moderation-warning-header">
5822
+ <span class="material-icons-outlined rts-moderation-warning-icon">gpp_maybe</span>
5823
+ <strong class="rts-moderation-warning-title">Message Not Delivered</strong>
5824
+ <button
5825
+ type="button"
5826
+ class="rts-moderation-dismiss-btn"
5827
+ title="Dismiss warning"
5828
+ (click)="dismiss()"
5829
+ >
5830
+ <span class="material-icons-outlined">close</span>
5831
+ </button>
5832
+ </div>
5833
+ <p class="rts-moderation-warning-body">
5834
+ {{ message?.text || 'Your message was blocked by our content filter because it contains inappropriate or offensive language.' }}
5835
+ </p>
5836
+ <span class="rts-moderation-warning-sub">Only visible to you</span>
5837
+ </div>
5838
+ `,
5839
+ }]
5840
+ }], propDecorators: { message: [{
5841
+ type: Input
5842
+ }], chat: [{
5843
+ type: Input
5844
+ }], messenger: [{
5845
+ type: Input
5846
+ }] } });
5847
+
5848
+ class BlockedUserNoticeWidgetComponent {
5849
+ dismiss() {
5850
+ if (this.chat && this.message) {
5851
+ this.chat.removeLocalMessage(this.message);
5852
+ }
5853
+ }
5854
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: BlockedUserNoticeWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5855
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: BlockedUserNoticeWidgetComponent, isStandalone: true, selector: "rtsee-blocked-user-notice-widget", inputs: { message: "message", chat: "chat", messenger: "messenger" }, ngImport: i0, template: `
5856
+ <div class="rts-moderation-warning rts-moderation-blocked" role="alert">
5857
+ <div class="rts-moderation-warning-header">
5858
+ <span class="material-icons-outlined rts-moderation-warning-icon">block</span>
5859
+ <strong class="rts-moderation-warning-title">Cannot Send Message</strong>
5860
+ <button
5861
+ type="button"
5862
+ class="rts-moderation-dismiss-btn"
5863
+ title="Dismiss notice"
5864
+ (click)="dismiss()"
5865
+ >
5866
+ <span class="material-icons-outlined">close</span>
5867
+ </button>
5868
+ </div>
5869
+ <p class="rts-moderation-warning-body">
5870
+ {{ message?.text || 'You cannot send messages to this user because you have been blocked.' }}
5871
+ </p>
5872
+ <span class="rts-moderation-warning-sub">Only visible to you</span>
5873
+ </div>
5874
+ `, isInline: true }); }
5875
+ }
5876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: BlockedUserNoticeWidgetComponent, decorators: [{
5877
+ type: Component,
5878
+ args: [{
5879
+ selector: 'rtsee-blocked-user-notice-widget',
5880
+ standalone: true,
5881
+ template: `
5882
+ <div class="rts-moderation-warning rts-moderation-blocked" role="alert">
5883
+ <div class="rts-moderation-warning-header">
5884
+ <span class="material-icons-outlined rts-moderation-warning-icon">block</span>
5885
+ <strong class="rts-moderation-warning-title">Cannot Send Message</strong>
5886
+ <button
5887
+ type="button"
5888
+ class="rts-moderation-dismiss-btn"
5889
+ title="Dismiss notice"
5890
+ (click)="dismiss()"
5891
+ >
5892
+ <span class="material-icons-outlined">close</span>
5893
+ </button>
5894
+ </div>
5895
+ <p class="rts-moderation-warning-body">
5896
+ {{ message?.text || 'You cannot send messages to this user because you have been blocked.' }}
5897
+ </p>
5898
+ <span class="rts-moderation-warning-sub">Only visible to you</span>
5899
+ </div>
5900
+ `,
5901
+ }]
5902
+ }], propDecorators: { message: [{
5903
+ type: Input
5904
+ }], chat: [{
5905
+ type: Input
5906
+ }], messenger: [{
5907
+ type: Input
5908
+ }] } });
5909
+
5723
5910
  class MessageWidgetsService {
5724
5911
  constructor() {
5725
5912
  this.widgetsMap = [
@@ -5728,6 +5915,8 @@ class MessageWidgetsService {
5728
5915
  { name: 'rtsee-media', component: MediaWidgetComponent },
5729
5916
  { name: 'rts-workflow', component: RtsWorkflowComponent },
5730
5917
  { name: 'rtsee-task', component: RTSeeTaskComponent },
5918
+ { name: 'rtsee-profanity-warning', component: ProfanityWarningWidgetComponent },
5919
+ { name: 'rtsee-blocked-user-notice', component: BlockedUserNoticeWidgetComponent },
5731
5920
  ];
5732
5921
  }
5733
5922
  getWidgetComponentByName(name) {
@@ -5754,13 +5943,104 @@ class MessageComponent {
5754
5943
  this.widgetsService = widgetsService;
5755
5944
  this.componentFactoryResolver = componentFactoryResolver;
5756
5945
  this.timeFormatService = timeFormatService;
5946
+ this.reportReasons = RTSEE_REPORT_REASONS;
5947
+ this.showActionMenu = false;
5948
+ this.showReportModal = false;
5949
+ this.selectedReportReason = RTSEE_REPORT_REASONS[0].value;
5950
+ this.reportExplanation = '';
5951
+ this.reportSubmitting = false;
5952
+ this.reportSubmitted = false;
5953
+ this.longPressTimer = null;
5757
5954
  this.widgetRef = null;
5758
5955
  this.widgetHasMessageInput = false;
5759
5956
  this.currentWidgetName = null;
5760
5957
  }
5958
+ get isModerationNotice() {
5959
+ return (this.message?.widget === RTSeeModerationWidgets.PROFANITY_WARNING ||
5960
+ this.message?.widget === RTSeeModerationWidgets.BLOCKED_USER_NOTICE ||
5961
+ Boolean(this.message?.data?.isLocalModerationNotice));
5962
+ }
5963
+ get canReportMessage() {
5964
+ return !this.isModerationNotice;
5965
+ }
5966
+ closeActionMenu() {
5967
+ if (this.showActionMenu) {
5968
+ this.showActionMenu = false;
5969
+ }
5970
+ }
5971
+ onTouchStart() {
5972
+ if (!this.canReportMessage) {
5973
+ return;
5974
+ }
5975
+ this.clearLongPressTimer();
5976
+ this.longPressTimer = setTimeout(() => {
5977
+ this.showActionMenu = true;
5978
+ }, 500);
5979
+ }
5980
+ onTouchEndOrMove() {
5981
+ this.clearLongPressTimer();
5982
+ }
5983
+ onContextMenu(event) {
5984
+ if (!this.canReportMessage) {
5985
+ return;
5986
+ }
5987
+ event.preventDefault();
5988
+ event.stopPropagation();
5989
+ this.showActionMenu = true;
5990
+ }
5991
+ openReportModal(event) {
5992
+ event?.stopPropagation();
5993
+ this.showActionMenu = false;
5994
+ this.selectedReportReason = RTSEE_REPORT_REASONS[0].value;
5995
+ this.reportExplanation = '';
5996
+ this.reportSubmitted = false;
5997
+ this.showReportModal = true;
5998
+ }
5999
+ closeReportModal(event) {
6000
+ event?.stopPropagation();
6001
+ if (this.reportSubmitting) {
6002
+ return;
6003
+ }
6004
+ this.showReportModal = false;
6005
+ }
6006
+ async submitReport() {
6007
+ if (!this.messenger || this.reportSubmitting || !this.selectedReportReason) {
6008
+ return;
6009
+ }
6010
+ this.reportSubmitting = true;
6011
+ try {
6012
+ await this.messenger.reportContent({
6013
+ messageId: this.message?.id,
6014
+ chatId: this.chat?.id,
6015
+ reportedUserId: this.message?.from?.id,
6016
+ messageText: this.message?.text,
6017
+ reason: this.selectedReportReason,
6018
+ explanation: this.reportExplanation.trim() || undefined,
6019
+ });
6020
+ this.reportSubmitted = true;
6021
+ setTimeout(() => {
6022
+ this.showReportModal = false;
6023
+ this.reportSubmitted = false;
6024
+ }, 1200);
6025
+ }
6026
+ catch (e) {
6027
+ console.error('Failed to submit content report:', e);
6028
+ }
6029
+ finally {
6030
+ this.reportSubmitting = false;
6031
+ }
6032
+ }
5761
6033
  ngOnInit() { }
6034
+ ngOnDestroy() {
6035
+ this.clearLongPressTimer();
6036
+ }
6037
+ clearLongPressTimer() {
6038
+ if (this.longPressTimer) {
6039
+ clearTimeout(this.longPressTimer);
6040
+ this.longPressTimer = null;
6041
+ }
6042
+ }
5762
6043
  ngOnChanges(changes) {
5763
- // The message instance or widget type can be replaced (e.g. stream start -> media widget -> downsized versions)
5764
6044
  if (changes['message'] && !changes['message'].firstChange) {
5765
6045
  if (this.widgetHost && this.message?.widget !== this.currentWidgetName) {
5766
6046
  this.renderWidget();
@@ -5809,16 +6089,17 @@ class MessageComponent {
5809
6089
  /* eslint-enable */
5810
6090
  }
5811
6091
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessageComponent, deps: [{ token: MessageWidgetsService }, { token: i0.ComponentFactoryResolver }, { token: TimeFormatHelperService }], target: i0.ɵɵFactoryTarget.Component }); }
5812
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", 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 }], usesOnChanges: true, ngImport: i0, template: "<div class=\"rts-message-container\" #rtsMessageContainer\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"comment\"\n itemscope\n itemtype=\"https://schema.org/Comment\"\n [ngClass]=\"{\n 'rts-message-from-me': message.from.id === messenger.clientId,\n 'rts-message-is-widget': !!message.widget\n }\">\n <div class=\"rts-messenger-message\">\n @if (message.widget) {\n <ng-template widgetHost></ng-template>\n }\n @if (!message.widget) {\n <p class=\"rts-messenger-message-text\"\n itemprop=\"text\"\n data-ugc=\"true\"\n rel=\"ugc\"\n >{{ message.text }}</p>\n }\n <div class=\"rts-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>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MessageTimeAndStatusComponent, selector: "rtsee-message-time-and-status", inputs: ["message", "hideStatus", "inChat"] }, { kind: "directive", type: WidgetDirective, selector: "[widgetHost]" }] }); }
6092
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: MessageComponent, isStandalone: true, selector: "rtsee-message", inputs: { chat: "chat", message: "message", member: "member", messenger: "messenger" }, host: { listeners: { "document:click": "closeActionMenu()" } }, viewQueries: [{ propertyName: "widgetHost", first: true, predicate: WidgetDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"rts-message-container\" #rtsMessageContainer\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"comment\"\n itemscope\n itemtype=\"https://schema.org/Comment\"\n (touchstart)=\"onTouchStart()\"\n (touchend)=\"onTouchEndOrMove()\"\n (touchmove)=\"onTouchEndOrMove()\"\n (touchcancel)=\"onTouchEndOrMove()\"\n (contextmenu)=\"onContextMenu($event)\"\n [ngClass]=\"{\n 'rts-message-from-me': message.from.id === messenger.clientId,\n 'rts-message-is-widget': !!message.widget,\n 'rts-message-is-moderation-notice': isModerationNotice\n }\">\n @if (showActionMenu && canReportMessage) {\n <div class=\"rts-message-action-menu\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"rts-message-action-menu-btn\"\n (click)=\"openReportModal($event)\"\n >\n <span class=\"material-icons-outlined\">flag</span>\n <span>Report</span>\n </button>\n </div>\n }\n\n <div class=\"rts-messenger-message\">\n @if (message.widget) {\n <ng-template widgetHost></ng-template>\n }\n @if (!message.widget) {\n <p class=\"rts-messenger-message-text\"\n itemprop=\"text\"\n data-ugc=\"true\"\n rel=\"ugc\"\n >{{ message.text }}</p>\n }\n @if (!isModerationNotice) {\n <div class=\"rts-messenger-message-info\" #rtsMessageInfo>\n @if (canReportMessage) {\n <button\n type=\"button\"\n class=\"rts-message-hover-report-btn\"\n title=\"Report message\"\n (click)=\"openReportModal($event)\"\n >\n <span class=\"material-icons-outlined\">flag</span>\n </button>\n }\n <rtsee-message-time-and-status\n [message]=\"message\"\n [inChat]=\"true\"\n [hideStatus]=\"message.from.id !== messenger.clientId\"\n ></rtsee-message-time-and-status>\n </div>\n }\n </div>\n</div>\n\n@if (showReportModal) {\n <div class=\"rts-moderation-modal-backdrop\" (click)=\"closeReportModal($event)\">\n <div class=\"rts-moderation-modal\" (click)=\"$event.stopPropagation()\">\n <h4>\n <span class=\"material-icons-outlined\" style=\"color: #ff7675\">flag</span>\n <span>Report Message</span>\n </h4>\n @if (reportSubmitted) {\n <p class=\"rts-moderation-modal-desc\" style=\"color: #55efc4; margin-bottom: 0\">\n Thank you. Your report has been submitted for moderation review within 24 hours.\n </p>\n } @else {\n <p class=\"rts-moderation-modal-desc\">\n Select why you are reporting this message. Our moderation team reviews reports promptly.\n </p>\n <div class=\"rts-moderation-field\">\n <label for=\"rts-report-reason-select\">Reason</label>\n <select\n id=\"rts-report-reason-select\"\n [(ngModel)]=\"selectedReportReason\"\n >\n @for (reason of reportReasons; track reason.value) {\n <option [value]=\"reason.value\">{{ reason.label }}</option>\n }\n </select>\n </div>\n <div class=\"rts-moderation-field\">\n <label for=\"rts-report-explanation\">Additional explanation (optional)</label>\n <textarea\n id=\"rts-report-explanation\"\n rows=\"3\"\n maxlength=\"1000\"\n placeholder=\"Provide any relevant context...\"\n [(ngModel)]=\"reportExplanation\"\n ></textarea>\n </div>\n <div class=\"rts-moderation-modal-actions\">\n <button\n type=\"button\"\n class=\"rts-moderation-btn rts-moderation-btn-cancel\"\n [disabled]=\"reportSubmitting\"\n (click)=\"closeReportModal($event)\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n class=\"rts-moderation-btn rts-moderation-btn-danger\"\n [disabled]=\"reportSubmitting || !selectedReportReason\"\n (click)=\"submitReport()\"\n >\n {{ reportSubmitting ? 'Submitting...' : 'Submit Report' }}\n </button>\n </div>\n }\n </div>\n </div>\n}\n", styles: [".rts-message-container{position:relative}.rts-message-hover-report-btn{opacity:0;background:transparent;border:none;color:#ffffff8c;cursor:pointer;padding:2px 4px;border-radius:6px;display:inline-flex;align-items:center;transition:opacity .15s ease,color .15s ease,background .15s ease}.rts-message-container:hover .rts-message-hover-report-btn,.rts-message-hover-report-btn:focus-visible{opacity:1}.rts-message-hover-report-btn:hover{color:#ff7675;background:#ff76751f}.rts-message-hover-report-btn .material-icons-outlined{font-size:14px}.rts-message-action-menu{position:absolute;top:-36px;left:12px;z-index:30;background:#1c1d24;border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:4px;box-shadow:0 8px 24px #00000073;display:inline-flex;gap:4px}.rts-message-from-me .rts-message-action-menu{left:auto;right:12px}.rts-message-action-menu-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:none;border-radius:7px;background:transparent;color:#ff7675;font-size:13px;font-weight:600;cursor:pointer}.rts-message-action-menu-btn:hover{background:#ff767524}.rts-message-action-menu-btn .material-icons-outlined{font-size:16px}.rts-moderation-modal-backdrop{position:fixed;inset:0;z-index:9999;background:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px}.rts-moderation-modal{width:100%;max-width:420px;background:#16171d;color:#f5f6fa;border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:20px;box-shadow:0 20px 50px #0009}.rts-moderation-modal h4{margin:0 0 6px;font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}.rts-moderation-modal p.rts-moderation-modal-desc{margin:0 0 14px;font-size:13px;color:#ffffffad;line-height:1.45}.rts-moderation-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.rts-moderation-field label{font-size:12px;font-weight:600;color:#fffc}.rts-moderation-field select,.rts-moderation-field textarea{width:100%;box-sizing:border-box;background:#22242e;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:10px 12px;font-size:14px;font-family:inherit}.rts-moderation-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.rts-moderation-btn{padding:9px 16px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent}.rts-moderation-btn-cancel{background:#ffffff14;color:#fff}.rts-moderation-btn-danger{background:#e14b4b;color:#fff}.rts-moderation-btn:disabled{opacity:.6;cursor:not-allowed}:host ::ng-deep .rts-moderation-warning{border-radius:12px;padding:10px 12px;min-width:220px;border:1px solid rgba(255,159,67,.45);background:#ff9f4324;color:#fff}:host ::ng-deep .rts-moderation-blocked{border-color:#eb4d4b80;background:#eb4d4b26}:host ::ng-deep .rts-moderation-warning-header{display:flex;align-items:center;gap:6px;margin-bottom:4px}:host ::ng-deep .rts-moderation-warning-icon{font-size:18px;color:#ff9f43}:host ::ng-deep .rts-moderation-blocked .rts-moderation-warning-icon{color:#ff6b6b}:host ::ng-deep .rts-moderation-warning-title{flex:1;font-size:13px;font-weight:700}:host ::ng-deep .rts-moderation-dismiss-btn{background:transparent;border:none;color:#ffffffb3;cursor:pointer;padding:2px;display:inline-flex}:host ::ng-deep .rts-moderation-dismiss-btn .material-icons-outlined{font-size:16px}:host ::ng-deep .rts-moderation-warning-body{margin:0 0 4px;font-size:13px;line-height:1.4}:host ::ng-deep .rts-moderation-warning-sub{font-size:11px;opacity:.72}\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.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.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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: MessageTimeAndStatusComponent, selector: "rtsee-message-time-and-status", inputs: ["message", "hideStatus", "inChat"] }, { kind: "directive", type: WidgetDirective, selector: "[widgetHost]" }] }); }
5813
6093
  }
5814
6094
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessageComponent, decorators: [{
5815
6095
  type: Component,
5816
6096
  args: [{ selector: 'rtsee-message', imports: [
5817
6097
  NgClass,
6098
+ FormsModule,
5818
6099
  MessageTimeAndStatusComponent,
5819
6100
  WidgetDirective,
5820
6101
  RatingComponent,
5821
- ], standalone: true, template: "<div class=\"rts-message-container\" #rtsMessageContainer\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"comment\"\n itemscope\n itemtype=\"https://schema.org/Comment\"\n [ngClass]=\"{\n 'rts-message-from-me': message.from.id === messenger.clientId,\n 'rts-message-is-widget': !!message.widget\n }\">\n <div class=\"rts-messenger-message\">\n @if (message.widget) {\n <ng-template widgetHost></ng-template>\n }\n @if (!message.widget) {\n <p class=\"rts-messenger-message-text\"\n itemprop=\"text\"\n data-ugc=\"true\"\n rel=\"ugc\"\n >{{ message.text }}</p>\n }\n <div class=\"rts-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>\n" }]
6102
+ ], standalone: true, template: "<div class=\"rts-message-container\" #rtsMessageContainer\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"comment\"\n itemscope\n itemtype=\"https://schema.org/Comment\"\n (touchstart)=\"onTouchStart()\"\n (touchend)=\"onTouchEndOrMove()\"\n (touchmove)=\"onTouchEndOrMove()\"\n (touchcancel)=\"onTouchEndOrMove()\"\n (contextmenu)=\"onContextMenu($event)\"\n [ngClass]=\"{\n 'rts-message-from-me': message.from.id === messenger.clientId,\n 'rts-message-is-widget': !!message.widget,\n 'rts-message-is-moderation-notice': isModerationNotice\n }\">\n @if (showActionMenu && canReportMessage) {\n <div class=\"rts-message-action-menu\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"rts-message-action-menu-btn\"\n (click)=\"openReportModal($event)\"\n >\n <span class=\"material-icons-outlined\">flag</span>\n <span>Report</span>\n </button>\n </div>\n }\n\n <div class=\"rts-messenger-message\">\n @if (message.widget) {\n <ng-template widgetHost></ng-template>\n }\n @if (!message.widget) {\n <p class=\"rts-messenger-message-text\"\n itemprop=\"text\"\n data-ugc=\"true\"\n rel=\"ugc\"\n >{{ message.text }}</p>\n }\n @if (!isModerationNotice) {\n <div class=\"rts-messenger-message-info\" #rtsMessageInfo>\n @if (canReportMessage) {\n <button\n type=\"button\"\n class=\"rts-message-hover-report-btn\"\n title=\"Report message\"\n (click)=\"openReportModal($event)\"\n >\n <span class=\"material-icons-outlined\">flag</span>\n </button>\n }\n <rtsee-message-time-and-status\n [message]=\"message\"\n [inChat]=\"true\"\n [hideStatus]=\"message.from.id !== messenger.clientId\"\n ></rtsee-message-time-and-status>\n </div>\n }\n </div>\n</div>\n\n@if (showReportModal) {\n <div class=\"rts-moderation-modal-backdrop\" (click)=\"closeReportModal($event)\">\n <div class=\"rts-moderation-modal\" (click)=\"$event.stopPropagation()\">\n <h4>\n <span class=\"material-icons-outlined\" style=\"color: #ff7675\">flag</span>\n <span>Report Message</span>\n </h4>\n @if (reportSubmitted) {\n <p class=\"rts-moderation-modal-desc\" style=\"color: #55efc4; margin-bottom: 0\">\n Thank you. Your report has been submitted for moderation review within 24 hours.\n </p>\n } @else {\n <p class=\"rts-moderation-modal-desc\">\n Select why you are reporting this message. Our moderation team reviews reports promptly.\n </p>\n <div class=\"rts-moderation-field\">\n <label for=\"rts-report-reason-select\">Reason</label>\n <select\n id=\"rts-report-reason-select\"\n [(ngModel)]=\"selectedReportReason\"\n >\n @for (reason of reportReasons; track reason.value) {\n <option [value]=\"reason.value\">{{ reason.label }}</option>\n }\n </select>\n </div>\n <div class=\"rts-moderation-field\">\n <label for=\"rts-report-explanation\">Additional explanation (optional)</label>\n <textarea\n id=\"rts-report-explanation\"\n rows=\"3\"\n maxlength=\"1000\"\n placeholder=\"Provide any relevant context...\"\n [(ngModel)]=\"reportExplanation\"\n ></textarea>\n </div>\n <div class=\"rts-moderation-modal-actions\">\n <button\n type=\"button\"\n class=\"rts-moderation-btn rts-moderation-btn-cancel\"\n [disabled]=\"reportSubmitting\"\n (click)=\"closeReportModal($event)\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n class=\"rts-moderation-btn rts-moderation-btn-danger\"\n [disabled]=\"reportSubmitting || !selectedReportReason\"\n (click)=\"submitReport()\"\n >\n {{ reportSubmitting ? 'Submitting...' : 'Submit Report' }}\n </button>\n </div>\n }\n </div>\n </div>\n}\n", styles: [".rts-message-container{position:relative}.rts-message-hover-report-btn{opacity:0;background:transparent;border:none;color:#ffffff8c;cursor:pointer;padding:2px 4px;border-radius:6px;display:inline-flex;align-items:center;transition:opacity .15s ease,color .15s ease,background .15s ease}.rts-message-container:hover .rts-message-hover-report-btn,.rts-message-hover-report-btn:focus-visible{opacity:1}.rts-message-hover-report-btn:hover{color:#ff7675;background:#ff76751f}.rts-message-hover-report-btn .material-icons-outlined{font-size:14px}.rts-message-action-menu{position:absolute;top:-36px;left:12px;z-index:30;background:#1c1d24;border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:4px;box-shadow:0 8px 24px #00000073;display:inline-flex;gap:4px}.rts-message-from-me .rts-message-action-menu{left:auto;right:12px}.rts-message-action-menu-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:none;border-radius:7px;background:transparent;color:#ff7675;font-size:13px;font-weight:600;cursor:pointer}.rts-message-action-menu-btn:hover{background:#ff767524}.rts-message-action-menu-btn .material-icons-outlined{font-size:16px}.rts-moderation-modal-backdrop{position:fixed;inset:0;z-index:9999;background:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px}.rts-moderation-modal{width:100%;max-width:420px;background:#16171d;color:#f5f6fa;border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:20px;box-shadow:0 20px 50px #0009}.rts-moderation-modal h4{margin:0 0 6px;font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}.rts-moderation-modal p.rts-moderation-modal-desc{margin:0 0 14px;font-size:13px;color:#ffffffad;line-height:1.45}.rts-moderation-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.rts-moderation-field label{font-size:12px;font-weight:600;color:#fffc}.rts-moderation-field select,.rts-moderation-field textarea{width:100%;box-sizing:border-box;background:#22242e;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:10px 12px;font-size:14px;font-family:inherit}.rts-moderation-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.rts-moderation-btn{padding:9px 16px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent}.rts-moderation-btn-cancel{background:#ffffff14;color:#fff}.rts-moderation-btn-danger{background:#e14b4b;color:#fff}.rts-moderation-btn:disabled{opacity:.6;cursor:not-allowed}:host ::ng-deep .rts-moderation-warning{border-radius:12px;padding:10px 12px;min-width:220px;border:1px solid rgba(255,159,67,.45);background:#ff9f4324;color:#fff}:host ::ng-deep .rts-moderation-blocked{border-color:#eb4d4b80;background:#eb4d4b26}:host ::ng-deep .rts-moderation-warning-header{display:flex;align-items:center;gap:6px;margin-bottom:4px}:host ::ng-deep .rts-moderation-warning-icon{font-size:18px;color:#ff9f43}:host ::ng-deep .rts-moderation-blocked .rts-moderation-warning-icon{color:#ff6b6b}:host ::ng-deep .rts-moderation-warning-title{flex:1;font-size:13px;font-weight:700}:host ::ng-deep .rts-moderation-dismiss-btn{background:transparent;border:none;color:#ffffffb3;cursor:pointer;padding:2px;display:inline-flex}:host ::ng-deep .rts-moderation-dismiss-btn .material-icons-outlined{font-size:16px}:host ::ng-deep .rts-moderation-warning-body{margin:0 0 4px;font-size:13px;line-height:1.4}:host ::ng-deep .rts-moderation-warning-sub{font-size:11px;opacity:.72}\n"] }]
5822
6103
  }], ctorParameters: () => [{ type: MessageWidgetsService }, { type: i0.ComponentFactoryResolver }, { type: TimeFormatHelperService }], propDecorators: { chat: [{
5823
6104
  type: Input
5824
6105
  }], message: [{
@@ -5830,6 +6111,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
5830
6111
  }], widgetHost: [{
5831
6112
  type: ViewChild,
5832
6113
  args: [WidgetDirective, { static: false }]
6114
+ }], closeActionMenu: [{
6115
+ type: HostListener,
6116
+ args: ['document:click']
5833
6117
  }] } });
5834
6118
 
5835
6119
  const STICK_TO_BOTTOM_THRESHOLD = 32;
@@ -8165,6 +8449,27 @@ class RtseeEventsDashboardComponent {
8165
8449
  constructor() {
8166
8450
  this.framed = false;
8167
8451
  this.isFramed = false;
8452
+ this.activeTab = 'sessions';
8453
+ }
8454
+ get reportsManager() {
8455
+ return this.eventsDashboard?.reports;
8456
+ }
8457
+ selectTab(tab) {
8458
+ this.activeTab = tab;
8459
+ if (tab === 'reports') {
8460
+ this.reportsManager?.loadReports(this.reportsManager.reportsPage || 1);
8461
+ }
8462
+ else if (tab === 'blocks') {
8463
+ this.reportsManager?.loadBlocks(this.reportsManager.blocksPage || 1);
8464
+ }
8465
+ }
8466
+ refreshModerationTab() {
8467
+ if (this.activeTab === 'reports') {
8468
+ this.reportsManager?.loadReports(this.reportsManager.reportsPage || 1);
8469
+ }
8470
+ else if (this.activeTab === 'blocks') {
8471
+ this.reportsManager?.loadBlocks(this.reportsManager.blocksPage || 1);
8472
+ }
8168
8473
  }
8169
8474
  loadMore() {
8170
8475
  if (this.eventsDashboard) {
@@ -8172,11 +8477,11 @@ class RtseeEventsDashboardComponent {
8172
8477
  }
8173
8478
  }
8174
8479
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RtseeEventsDashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8175
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RtseeEventsDashboardComponent, isStandalone: true, selector: "rtsee-events-dashboard", inputs: { eventsDashboard: "eventsDashboard", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-events-dashboard\"\n [ngClass]=\"{\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rts-messenger-framed': framed || isFramed\n }\"\n>\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\n @if (eventsDashboard?.hasMoreClients) {\n <div class=\"rtsee-events-dashboard-load-more\">\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-load-more-btn\"\n [disabled]=\"eventsDashboard.isLoadingMore\"\n (click)=\"loadMore()\"\n >\n @if (eventsDashboard.isLoadingMore) {\n <span class=\"material-icons-outlined spin-icon\">sync</span>\n <span>Loading...</span>\n } @else {\n <span class=\"material-icons-outlined\">expand_more</span>\n <span>Load More Sessions</span>\n }\n </button>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: RtseeEventsDashboardClientThumbnailComponent, selector: "ngx-rtsee-events-dashboard-client-thumbnail", inputs: ["dashboard", "client"] }] }); }
8480
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RtseeEventsDashboardComponent, isStandalone: true, selector: "rtsee-events-dashboard", inputs: { eventsDashboard: "eventsDashboard", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-events-dashboard\"\n [ngClass]=\"{\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rts-messenger-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-events-dashboard-tabs\">\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-tab\"\n [class.active]=\"activeTab === 'sessions'\"\n (click)=\"selectTab('sessions')\"\n >\n <span class=\"material-icons-outlined\">sensors</span>\n <span>Sessions</span>\n </button>\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-tab\"\n [class.active]=\"activeTab === 'reports'\"\n (click)=\"selectTab('reports')\"\n >\n <span class=\"material-icons-outlined\">flag</span>\n <span>Reports</span>\n @if (reportsManager && reportsManager.reportsTotal > 0) {\n <span class=\"rtsee-events-dashboard-badge\">{{ reportsManager.reportsTotal }}</span>\n }\n </button>\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-tab\"\n [class.active]=\"activeTab === 'blocks'\"\n (click)=\"selectTab('blocks')\"\n >\n <span class=\"material-icons-outlined\">block</span>\n <span>Blocks</span>\n @if (reportsManager && reportsManager.blocksTotal > 0) {\n <span class=\"rtsee-events-dashboard-badge\">{{ reportsManager.blocksTotal }}</span>\n }\n </button>\n\n @if (activeTab !== 'sessions') {\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-refresh-btn\"\n (click)=\"refreshModerationTab()\"\n title=\"Refresh list\"\n >\n <span class=\"material-icons-outlined\">refresh</span>\n </button>\n }\n </div>\n\n @if (activeTab === 'sessions') {\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\n @if (eventsDashboard?.hasMoreClients) {\n <div class=\"rtsee-events-dashboard-load-more\">\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-load-more-btn\"\n [disabled]=\"eventsDashboard.isLoadingMore\"\n (click)=\"loadMore()\"\n >\n @if (eventsDashboard.isLoadingMore) {\n <span class=\"material-icons-outlined spin-icon\">sync</span>\n <span>Loading...</span>\n } @else {\n <span class=\"material-icons-outlined\">expand_more</span>\n <span>Load More Sessions</span>\n }\n </button>\n </div>\n }\n }\n\n @if (activeTab === 'reports' && reportsManager) {\n <div class=\"rtsee-moderation-panel\">\n @if (reportsManager.reportsLoading) {\n <div class=\"rtsee-moderation-empty\">Loading reports...</div>\n } @else if (!reportsManager.reports.length) {\n <div class=\"rtsee-moderation-empty\">No content reports have been submitted yet.</div>\n } @else {\n <div class=\"rtsee-moderation-list\">\n @for (item of reportsManager.reports; track item.id) {\n <div class=\"rtsee-moderation-card\">\n <div class=\"rtsee-moderation-card-top\">\n <div class=\"rtsee-moderation-actors\">\n <span class=\"actor-label\">Reporter:</span>\n <strong>{{ item.reporter.name }}</strong>\n <span class=\"actor-arrow\">\u2192</span>\n <span class=\"actor-label\">Reported:</span>\n <strong>{{ item.reportedUser?.name || 'Unknown User' }}</strong>\n </div>\n <span class=\"rtsee-moderation-time\">\n {{ item.createdAt | date: 'medium' }}\n </span>\n </div>\n <div class=\"rtsee-moderation-reason-chip\">\n <span class=\"material-icons-outlined\">flag</span>\n <span>{{ item.reason }}</span>\n </div>\n @if (item.explanation) {\n <p class=\"rtsee-moderation-explanation\">\n <strong>Explanation:</strong> {{ item.explanation }}\n </p>\n }\n @if (item.messageText) {\n <div class=\"rtsee-moderation-message-quote\">\n <span>Reported message:</span> \"{{ item.messageText }}\"\n </div>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-moderation-pagination\">\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasPrevReportsPage || reportsManager.reportsLoading\"\n (click)=\"reportsManager.prevReportsPage()\"\n >\n Previous\n </button>\n <span>\n Page {{ reportsManager.reportsPage }} of {{ reportsManager.reportsTotalPages }}\n ({{ reportsManager.reportsTotal }} total)\n </span>\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasNextReportsPage || reportsManager.reportsLoading\"\n (click)=\"reportsManager.nextReportsPage()\"\n >\n Next\n </button>\n </div>\n }\n </div>\n }\n\n @if (activeTab === 'blocks' && reportsManager) {\n <div class=\"rtsee-moderation-panel\">\n @if (reportsManager.blocksLoading) {\n <div class=\"rtsee-moderation-empty\">Loading blocks...</div>\n } @else if (!reportsManager.blocks.length) {\n <div class=\"rtsee-moderation-empty\">No active user blocks recorded.</div>\n } @else {\n <div class=\"rtsee-moderation-list\">\n @for (block of reportsManager.blocks; track block.id) {\n <div class=\"rtsee-moderation-card\">\n <div class=\"rtsee-moderation-card-top\">\n <div class=\"rtsee-moderation-actors\">\n <span class=\"actor-label\">Blocked by:</span>\n <strong>{{ block.blocker.name }}</strong>\n <span class=\"actor-arrow\">\u2192</span>\n <span class=\"actor-label\">Blocked user:</span>\n <strong>{{ block.blockedUser.name }}</strong>\n </div>\n <span class=\"rtsee-moderation-time\">\n {{ block.createdAt | date: 'medium' }}\n </span>\n </div>\n <div class=\"rtsee-moderation-reason-chip rtsee-block-chip\">\n <span class=\"material-icons-outlined\">block</span>\n <span>{{ block.reason }}</span>\n </div>\n @if (block.explanation) {\n <p class=\"rtsee-moderation-explanation\">\n <strong>Explanation:</strong> {{ block.explanation }}\n </p>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-moderation-pagination\">\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasPrevBlocksPage || reportsManager.blocksLoading\"\n (click)=\"reportsManager.prevBlocksPage()\"\n >\n Previous\n </button>\n <span>\n Page {{ reportsManager.blocksPage }} of {{ reportsManager.blocksTotalPages }}\n ({{ reportsManager.blocksTotal }} total)\n </span>\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasNextBlocksPage || reportsManager.blocksLoading\"\n (click)=\"reportsManager.nextBlocksPage()\"\n >\n Next\n </button>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: RtseeEventsDashboardClientThumbnailComponent, selector: "ngx-rtsee-events-dashboard-client-thumbnail", inputs: ["dashboard", "client"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
8176
8481
  }
8177
8482
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RtseeEventsDashboardComponent, decorators: [{
8178
8483
  type: Component,
8179
- args: [{ selector: 'rtsee-events-dashboard', imports: [NgClass, RtseeEventsDashboardClientThumbnailComponent], standalone: true, template: "<div class=\"rtsee-events-dashboard\"\n [ngClass]=\"{\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rts-messenger-framed': framed || isFramed\n }\"\n>\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\n @if (eventsDashboard?.hasMoreClients) {\n <div class=\"rtsee-events-dashboard-load-more\">\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-load-more-btn\"\n [disabled]=\"eventsDashboard.isLoadingMore\"\n (click)=\"loadMore()\"\n >\n @if (eventsDashboard.isLoadingMore) {\n <span class=\"material-icons-outlined spin-icon\">sync</span>\n <span>Loading...</span>\n } @else {\n <span class=\"material-icons-outlined\">expand_more</span>\n <span>Load More Sessions</span>\n }\n </button>\n </div>\n }\n</div>\n" }]
8484
+ args: [{ selector: 'rtsee-events-dashboard', imports: [NgClass, DatePipe, RtseeEventsDashboardClientThumbnailComponent], standalone: true, template: "<div class=\"rtsee-events-dashboard\"\n [ngClass]=\"{\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rts-messenger-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-events-dashboard-tabs\">\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-tab\"\n [class.active]=\"activeTab === 'sessions'\"\n (click)=\"selectTab('sessions')\"\n >\n <span class=\"material-icons-outlined\">sensors</span>\n <span>Sessions</span>\n </button>\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-tab\"\n [class.active]=\"activeTab === 'reports'\"\n (click)=\"selectTab('reports')\"\n >\n <span class=\"material-icons-outlined\">flag</span>\n <span>Reports</span>\n @if (reportsManager && reportsManager.reportsTotal > 0) {\n <span class=\"rtsee-events-dashboard-badge\">{{ reportsManager.reportsTotal }}</span>\n }\n </button>\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-tab\"\n [class.active]=\"activeTab === 'blocks'\"\n (click)=\"selectTab('blocks')\"\n >\n <span class=\"material-icons-outlined\">block</span>\n <span>Blocks</span>\n @if (reportsManager && reportsManager.blocksTotal > 0) {\n <span class=\"rtsee-events-dashboard-badge\">{{ reportsManager.blocksTotal }}</span>\n }\n </button>\n\n @if (activeTab !== 'sessions') {\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-refresh-btn\"\n (click)=\"refreshModerationTab()\"\n title=\"Refresh list\"\n >\n <span class=\"material-icons-outlined\">refresh</span>\n </button>\n }\n </div>\n\n @if (activeTab === 'sessions') {\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\n @if (eventsDashboard?.hasMoreClients) {\n <div class=\"rtsee-events-dashboard-load-more\">\n <button\n type=\"button\"\n class=\"rtsee-events-dashboard-load-more-btn\"\n [disabled]=\"eventsDashboard.isLoadingMore\"\n (click)=\"loadMore()\"\n >\n @if (eventsDashboard.isLoadingMore) {\n <span class=\"material-icons-outlined spin-icon\">sync</span>\n <span>Loading...</span>\n } @else {\n <span class=\"material-icons-outlined\">expand_more</span>\n <span>Load More Sessions</span>\n }\n </button>\n </div>\n }\n }\n\n @if (activeTab === 'reports' && reportsManager) {\n <div class=\"rtsee-moderation-panel\">\n @if (reportsManager.reportsLoading) {\n <div class=\"rtsee-moderation-empty\">Loading reports...</div>\n } @else if (!reportsManager.reports.length) {\n <div class=\"rtsee-moderation-empty\">No content reports have been submitted yet.</div>\n } @else {\n <div class=\"rtsee-moderation-list\">\n @for (item of reportsManager.reports; track item.id) {\n <div class=\"rtsee-moderation-card\">\n <div class=\"rtsee-moderation-card-top\">\n <div class=\"rtsee-moderation-actors\">\n <span class=\"actor-label\">Reporter:</span>\n <strong>{{ item.reporter.name }}</strong>\n <span class=\"actor-arrow\">\u2192</span>\n <span class=\"actor-label\">Reported:</span>\n <strong>{{ item.reportedUser?.name || 'Unknown User' }}</strong>\n </div>\n <span class=\"rtsee-moderation-time\">\n {{ item.createdAt | date: 'medium' }}\n </span>\n </div>\n <div class=\"rtsee-moderation-reason-chip\">\n <span class=\"material-icons-outlined\">flag</span>\n <span>{{ item.reason }}</span>\n </div>\n @if (item.explanation) {\n <p class=\"rtsee-moderation-explanation\">\n <strong>Explanation:</strong> {{ item.explanation }}\n </p>\n }\n @if (item.messageText) {\n <div class=\"rtsee-moderation-message-quote\">\n <span>Reported message:</span> \"{{ item.messageText }}\"\n </div>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-moderation-pagination\">\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasPrevReportsPage || reportsManager.reportsLoading\"\n (click)=\"reportsManager.prevReportsPage()\"\n >\n Previous\n </button>\n <span>\n Page {{ reportsManager.reportsPage }} of {{ reportsManager.reportsTotalPages }}\n ({{ reportsManager.reportsTotal }} total)\n </span>\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasNextReportsPage || reportsManager.reportsLoading\"\n (click)=\"reportsManager.nextReportsPage()\"\n >\n Next\n </button>\n </div>\n }\n </div>\n }\n\n @if (activeTab === 'blocks' && reportsManager) {\n <div class=\"rtsee-moderation-panel\">\n @if (reportsManager.blocksLoading) {\n <div class=\"rtsee-moderation-empty\">Loading blocks...</div>\n } @else if (!reportsManager.blocks.length) {\n <div class=\"rtsee-moderation-empty\">No active user blocks recorded.</div>\n } @else {\n <div class=\"rtsee-moderation-list\">\n @for (block of reportsManager.blocks; track block.id) {\n <div class=\"rtsee-moderation-card\">\n <div class=\"rtsee-moderation-card-top\">\n <div class=\"rtsee-moderation-actors\">\n <span class=\"actor-label\">Blocked by:</span>\n <strong>{{ block.blocker.name }}</strong>\n <span class=\"actor-arrow\">\u2192</span>\n <span class=\"actor-label\">Blocked user:</span>\n <strong>{{ block.blockedUser.name }}</strong>\n </div>\n <span class=\"rtsee-moderation-time\">\n {{ block.createdAt | date: 'medium' }}\n </span>\n </div>\n <div class=\"rtsee-moderation-reason-chip rtsee-block-chip\">\n <span class=\"material-icons-outlined\">block</span>\n <span>{{ block.reason }}</span>\n </div>\n @if (block.explanation) {\n <p class=\"rtsee-moderation-explanation\">\n <strong>Explanation:</strong> {{ block.explanation }}\n </p>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-moderation-pagination\">\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasPrevBlocksPage || reportsManager.blocksLoading\"\n (click)=\"reportsManager.prevBlocksPage()\"\n >\n Previous\n </button>\n <span>\n Page {{ reportsManager.blocksPage }} of {{ reportsManager.blocksTotalPages }}\n ({{ reportsManager.blocksTotal }} total)\n </span>\n <button\n type=\"button\"\n [disabled]=\"!reportsManager.hasNextBlocksPage || reportsManager.blocksLoading\"\n (click)=\"reportsManager.nextBlocksPage()\"\n >\n Next\n </button>\n </div>\n }\n </div>\n }\n</div>\n" }]
8180
8485
  }], propDecorators: { eventsDashboard: [{
8181
8486
  type: Input
8182
8487
  }], framed: [{
@@ -8218,13 +8523,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
8218
8523
  class PresentationHeaderComponent {
8219
8524
  constructor() {
8220
8525
  this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
8526
+ this.Math = Math;
8221
8527
  }
8222
8528
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8223
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationHeaderComponent, isStandalone: true, selector: "rtsee-presentation-header", inputs: { presentation: "presentation" }, ngImport: i0, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.xsImageUrl || story.smImageUrl || story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.xsImageUrl || story.smImageUrl || story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ story.activeSlideNumber || 1 }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"((story.activeSlideNumber || 1) / story.totalSlides) * 100\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\n", dependencies: [{ kind: "component", type: 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
8529
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationHeaderComponent, isStandalone: true, selector: "rtsee-presentation-header", inputs: { presentation: "presentation" }, ngImport: i0, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.xsImageUrl || story.smImageUrl || story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.xsImageUrl || story.smImageUrl || story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ Math.min(story.activeSlideNumber || 1, story.totalSlides) }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"Math.min(100, ((story.activeSlideNumber || 1) / story.totalSlides) * 100)\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\n", dependencies: [{ kind: "component", type: 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
8224
8530
  }
8225
8531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, decorators: [{
8226
8532
  type: Component,
8227
- args: [{ selector: 'rtsee-presentation-header', imports: [Button, NgClass, JoinCallComponent, RouterLink], standalone: true, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.xsImageUrl || story.smImageUrl || story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.xsImageUrl || story.smImageUrl || story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ story.activeSlideNumber || 1 }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"((story.activeSlideNumber || 1) / story.totalSlides) * 100\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\n" }]
8533
+ args: [{ selector: 'rtsee-presentation-header', imports: [Button, NgClass, JoinCallComponent, RouterLink], standalone: true, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.xsImageUrl || story.smImageUrl || story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.xsImageUrl || story.smImageUrl || story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ Math.min(story.activeSlideNumber || 1, story.totalSlides) }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"Math.min(100, ((story.activeSlideNumber || 1) / story.totalSlides) * 100)\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails && !presentation.openedStoriesList && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\n" }]
8228
8534
  }], propDecorators: { presentation: [{
8229
8535
  type: Input
8230
8536
  }] } });
@@ -8315,11 +8621,11 @@ class SlideComponent {
8315
8621
  }
8316
8622
  }
8317
8623
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SlideComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
8318
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: SlideComponent, isStandalone: true, selector: "rtsee-slide", inputs: { presentation: "presentation", story: "story", slide: "slide", settings: "settings" }, ngImport: i0, template: "<div class=\"rtsee-presentation-slide\" (scroll)=\"onScroll($event.target)\">\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 [style.font-size]=\"settings.fontSize + 'rem'\">{{slide.text}}</p>\n </div>\n <div class=\"rtsee-presentation-slide-controls\"\n [ngClass]=\"{'rtsee-presentation-slide-controls-hidden': hideRewindControls}\"\n >\n @if (story.activeSlideNumber !== 1) {\n <p-button class=\"slide-navigation-btn navigation-prev\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.PREVIOUS_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-left\"\n [severity]=\"'secondary'\"\n [iconPos]=\"'left'\"\n (click)=\"slideRewindClicked(false)\"\n >\n </p-button>\n }\n @if (story.activeSlideNumber !== this.story.totalSlides) {\n <p-button class=\"slide-navigation-btn navigation-next\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.NEXT_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-right\"\n [iconPos]=\"'right'\"\n (click)=\"slideRewindClicked(true)\"\n >\n </p-button>\n }\n </div>\n @if (\n presentation.messenger\n && story.activeSlideNumber === this.story.totalSlides\n && !presentation.myPeer.plan\n ) {\n <div class=\"rtsee-presentation-slide-payment\">\n <rtsee-payment-page [messenger]=\"presentation.messenger\" theme=\"light\"></rtsee-payment-page>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: WidgetDirective, selector: "[widgetHost]" }, { kind: "component", type: 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PaymentPageComponent, selector: "rtsee-payment-page", inputs: ["messenger", "theme"] }] }); }
8624
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: SlideComponent, isStandalone: true, selector: "rtsee-slide", inputs: { presentation: "presentation", story: "story", slide: "slide", settings: "settings" }, ngImport: i0, template: "<div class=\"rtsee-presentation-slide\" (scroll)=\"onScroll($event.target)\">\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 [style.font-size]=\"settings.fontSize + 'rem'\">{{slide.text}}</p>\n </div>\n <div class=\"rtsee-presentation-slide-controls\"\n [ngClass]=\"{'rtsee-presentation-slide-controls-hidden': hideRewindControls}\"\n >\n @if (story.activeSlideNumber !== 1) {\n <p-button class=\"slide-navigation-btn navigation-prev\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.PREVIOUS_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-left\"\n [severity]=\"'secondary'\"\n [iconPos]=\"'left'\"\n (click)=\"slideRewindClicked(false)\"\n >\n </p-button>\n }\n @if (story.activeSlideNumber < this.story.totalPlayerSlides) {\n <p-button class=\"slide-navigation-btn navigation-next\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.NEXT_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-right\"\n [iconPos]=\"'right'\"\n (click)=\"slideRewindClicked(true)\"\n >\n </p-button>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: WidgetDirective, selector: "[widgetHost]" }, { kind: "component", type: 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
8319
8625
  }
8320
8626
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SlideComponent, decorators: [{
8321
8627
  type: Component,
8322
- args: [{ selector: 'rtsee-slide', imports: [NgStyle, WidgetDirective, Button, NgClass, PaymentPageComponent], standalone: true, template: "<div class=\"rtsee-presentation-slide\" (scroll)=\"onScroll($event.target)\">\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 [style.font-size]=\"settings.fontSize + 'rem'\">{{slide.text}}</p>\n </div>\n <div class=\"rtsee-presentation-slide-controls\"\n [ngClass]=\"{'rtsee-presentation-slide-controls-hidden': hideRewindControls}\"\n >\n @if (story.activeSlideNumber !== 1) {\n <p-button class=\"slide-navigation-btn navigation-prev\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.PREVIOUS_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-left\"\n [severity]=\"'secondary'\"\n [iconPos]=\"'left'\"\n (click)=\"slideRewindClicked(false)\"\n >\n </p-button>\n }\n @if (story.activeSlideNumber !== this.story.totalSlides) {\n <p-button class=\"slide-navigation-btn navigation-next\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.NEXT_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-right\"\n [iconPos]=\"'right'\"\n (click)=\"slideRewindClicked(true)\"\n >\n </p-button>\n }\n </div>\n @if (\n presentation.messenger\n && story.activeSlideNumber === this.story.totalSlides\n && !presentation.myPeer.plan\n ) {\n <div class=\"rtsee-presentation-slide-payment\">\n <rtsee-payment-page [messenger]=\"presentation.messenger\" theme=\"light\"></rtsee-payment-page>\n </div>\n }\n </div>\n</div>\n" }]
8628
+ args: [{ selector: 'rtsee-slide', imports: [NgStyle, WidgetDirective, Button, NgClass], standalone: true, template: "<div class=\"rtsee-presentation-slide\" (scroll)=\"onScroll($event.target)\">\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 [style.font-size]=\"settings.fontSize + 'rem'\">{{slide.text}}</p>\n </div>\n <div class=\"rtsee-presentation-slide-controls\"\n [ngClass]=\"{'rtsee-presentation-slide-controls-hidden': hideRewindControls}\"\n >\n @if (story.activeSlideNumber !== 1) {\n <p-button class=\"slide-navigation-btn navigation-prev\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.PREVIOUS_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-left\"\n [severity]=\"'secondary'\"\n [iconPos]=\"'left'\"\n (click)=\"slideRewindClicked(false)\"\n >\n </p-button>\n }\n @if (story.activeSlideNumber < this.story.totalPlayerSlides) {\n <p-button class=\"slide-navigation-btn navigation-next\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.NEXT_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-right\"\n [iconPos]=\"'right'\"\n (click)=\"slideRewindClicked(true)\"\n >\n </p-button>\n }\n </div>\n </div>\n</div>\n" }]
8323
8629
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { presentation: [{
8324
8630
  type: Input
8325
8631
  }], story: [{
@@ -8330,121 +8636,447 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
8330
8636
  type: Input
8331
8637
  }] } });
8332
8638
 
8333
- /**
8334
- * Story slides player.
8335
- *
8336
- * Uses Swiper's Virtual module with `renderExternal`, so Angular only renders the few
8337
- * slides around the active one (Safari crashed when animating 20+ card slides at once).
8338
- * Swiper is aware of ALL the story slides (1..totalSlides) from the start, while the
8339
- * slide contents are lazy loaded by the story; slides not loaded yet render a placeholder.
8340
- */
8341
- class StoryPlayerComponent {
8342
- constructor(cdr) {
8343
- this.cdr = cdr;
8344
- this.swiper = null;
8345
- /** slide numbers currently rendered by the virtual swiper */
8346
- this.virtualData = { offset: 0, from: 0, to: -1, slides: [] };
8347
- }
8348
- ngOnInit() {
8349
- console.log('Story Player: Story = ', this.story);
8350
- }
8351
- ngAfterViewInit() {
8352
- this.swiper = new Swiper(this.swiperEl.nativeElement, {
8353
- // Virtual must be registered before the effect: on "setTranslate" the virtual
8354
- // slides are rendered first, then the cards effect transforms them
8355
- modules: [Virtual, EffectCards],
8356
- effect: 'cards',
8357
- grabCursor: true,
8358
- virtual: {
8359
- enabled: true,
8360
- slides: this.getVirtualSlides(),
8361
- // keep a couple of neighbours rendered so the cards stack looks natural
8362
- addSlidesBefore: 1,
8363
- addSlidesAfter: 2,
8364
- // DOM is rendered by Angular; Swiper is updated manually once it's done
8365
- renderExternal: (data) => this.renderVirtualSlides(data),
8366
- renderExternalUpdate: false,
8367
- },
8368
- });
8369
- this.story.initSwiper(this.swiper, {
8370
- virtual: true,
8371
- onSlideChange: () => {
8372
- this.cdr.detectChanges();
8373
- },
8374
- });
8375
- }
8376
- /** grows the virtual slides list when the slides count becomes known / changes */
8377
- ngDoCheck() {
8378
- if (!this.swiper || this.swiper.destroyed) {
8379
- return;
8380
- }
8381
- const total = this.getSlidesCount();
8382
- if (this.swiper.virtual.slides.length !== total) {
8383
- this.swiper.virtual.slides = this.getVirtualSlides();
8384
- this.swiper.virtual.update(true);
8385
- }
8639
+ class RateItemComponent {
8640
+ constructor() {
8641
+ this.showActions = false;
8642
+ this.edit = new EventEmitter();
8643
+ this.delete = new EventEmitter();
8386
8644
  }
8387
- ngOnDestroy() {
8388
- if (!this.swiper) {
8389
- return;
8390
- }
8391
- if (this.story.swiper === this.swiper) {
8392
- this.story.swiper = null;
8393
- }
8394
- this.swiper.destroy(true, false);
8395
- this.swiper = null;
8645
+ onEdit(event) {
8646
+ event.stopPropagation();
8647
+ this.edit.emit();
8396
8648
  }
8397
- getLoadedSlide(slideNumber) {
8398
- return this.story.slides.find((s) => s.slideNumber === slideNumber) || null;
8649
+ onDelete(event) {
8650
+ event.stopPropagation();
8651
+ this.delete.emit();
8399
8652
  }
8400
- renderVirtualSlides(data) {
8401
- this.virtualData = data;
8402
- // render synchronously: Swiper measures the slides right after this callback
8403
- this.cdr.detectChanges();
8404
- const swiper = this.swiper;
8405
- // during init (beforeInit) `this.swiper` is not assigned yet and Swiper runs these updates by itself
8406
- if (!swiper || swiper.destroyed) {
8407
- return;
8653
+ getRatingConfigName(configId) {
8654
+ if (!this.rater) {
8655
+ return '';
8408
8656
  }
8409
- swiper.updateSlides();
8410
- swiper.updateProgress();
8411
- swiper.updateSlidesClasses();
8412
- // lets the cards effect re-apply transforms to the freshly rendered slides
8413
- swiper.emit('_virtualUpdated');
8414
- }
8415
- getSlidesCount() {
8416
- const lastLoaded = this.story.slides.length
8417
- ? this.story.slides[this.story.slides.length - 1].slideNumber
8418
- : 0;
8419
- return Math.max(this.story.totalSlides || 0, lastLoaded);
8420
- }
8421
- /** virtual slides are just the slide numbers: 1..N */
8422
- getVirtualSlides() {
8423
- return Array.from({ length: this.getSlidesCount() }, (_, i) => i + 1);
8657
+ const config = this.rater.ratingConfigurations.find((c) => c.id === configId);
8658
+ return config ? config.name : '';
8424
8659
  }
8425
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryPlayerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
8426
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryPlayerComponent, isStandalone: true, selector: "rtsee-story-player", inputs: { story: "story", settings: "settings", presentation: "presentation" }, viewQueries: [{ propertyName: "swiperEl", first: true, predicate: ["swiperContainer"], descendants: true }], ngImport: i0, template: "<div class=\"rtsee-story-player\"\n [class.rtsee-story-player-theme-dark]=\"settings.isDarkReadingTheme\"\n [class.rtsee-story-player-theme-light]=\"!settings.isDarkReadingTheme\"\n>\n <div class=\"rtsee-story-player-slider swiper\" #swiperContainer>\n <div class=\"rtsee-story-player-slider-inner swiper-wrapper\">\n <!-- only the virtual window (a few slides around the active one) is rendered -->\n @for (slideNumber of virtualData.slides; track slideNumber; let i = $index) {\n @let slide = getLoadedSlide(slideNumber);\n <div class=\"story-player-slide-container swiper-slide\"\n [attr.data-swiper-slide-index]=\"virtualData.from + i\"\n [style.left.px]=\"virtualData.offset\"\n [ngClass]=\"{'story-player-slide-active': slide?.isActive}\"\n >\n @if (slide) {\n <rtsee-slide [slide]=\"slide\"\n [story]=\"story\"\n [presentation]=\"presentation\"\n [settings]=\"settings\"\n ></rtsee-slide>\n } @else {\n <div class=\"story-player-slide-placeholder\" aria-busy=\"true\">\n <span class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></span>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SlideComponent, selector: "rtsee-slide", inputs: ["presentation", "story", "slide", "settings"] }] }); }
8660
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8661
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RateItemComponent, isStandalone: true, selector: "rtsee-rate-item", inputs: { group: "group", rater: "rater", showActions: "showActions" }, outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<div\n class=\"rtsee-rates-group-item\"\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"review\"\n itemscope\n itemtype=\"https://schema.org/Review\"\n>\n <div class=\"rtsee-rates-group-header\">\n <div\n class=\"rtsee-rates-group-user-info\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n @if (group.peer?.imageUrl) {\n <img\n class=\"rtsee-rates-group-avatar\"\n [src]=\"group.peer.imageUrl\"\n alt=\"User avatar\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-rates-group-avatar-fallback\">\n {{ (group.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <span class=\"rtsee-rates-group-peer-name\" itemprop=\"name\">{{\n group.peer?.name || group.peerId\n }}</span>\n </div>\n\n <div class=\"rtsee-rates-group-right-header\">\n <span\n class=\"rtsee-rates-group-date\"\n itemprop=\"datePublished\"\n [attr.content]=\"group.createdAt\"\n >{{\n group.createdAt | date: \"short\"\n }}</span>\n\n @if (showActions) {\n <div class=\"rtsee-rates-group-actions\">\n <p-button\n (click)=\"onEdit($event)\"\n [severity]=\"'secondary'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-edit\"\n >\n <span class=\"pi pi-pencil\"></span>\n </p-button>\n <p-button\n (click)=\"onDelete($event)\"\n [severity]=\"'danger'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-delete\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n </div>\n }\n </div>\n </div>\n <div class=\"rtsee-rates-group-body\">\n @for (rate of group.rates; track rate.id) {\n <div class=\"rtsee-rates-group-rate-item-container\">\n <div class=\"rtsee-rates-group-rate-item\">\n <span class=\"rtsee-rates-group-rate-config-name\">{{\n getRatingConfigName(rate.configurationId)\n }}</span>\n <rtsee-rating [rate]=\"rate\"></rtsee-rating>\n </div>\n @if (rate.text) {\n <p class=\"rtsee-rates-group-rate-comment\" itemprop=\"reviewBody\" data-ugc=\"true\" rel=\"ugc\">\"{{ rate.text }}\"</p>\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate", "includeMicrodata"] }, { kind: "component", type: 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: "pipe", type: DatePipe, name: "date" }] }); }
8427
8662
  }
8428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryPlayerComponent, decorators: [{
8663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, decorators: [{
8429
8664
  type: Component,
8430
- args: [{ selector: 'rtsee-story-player', imports: [NgClass, SlideComponent], standalone: true, template: "<div class=\"rtsee-story-player\"\n [class.rtsee-story-player-theme-dark]=\"settings.isDarkReadingTheme\"\n [class.rtsee-story-player-theme-light]=\"!settings.isDarkReadingTheme\"\n>\n <div class=\"rtsee-story-player-slider swiper\" #swiperContainer>\n <div class=\"rtsee-story-player-slider-inner swiper-wrapper\">\n <!-- only the virtual window (a few slides around the active one) is rendered -->\n @for (slideNumber of virtualData.slides; track slideNumber; let i = $index) {\n @let slide = getLoadedSlide(slideNumber);\n <div class=\"story-player-slide-container swiper-slide\"\n [attr.data-swiper-slide-index]=\"virtualData.from + i\"\n [style.left.px]=\"virtualData.offset\"\n [ngClass]=\"{'story-player-slide-active': slide?.isActive}\"\n >\n @if (slide) {\n <rtsee-slide [slide]=\"slide\"\n [story]=\"story\"\n [presentation]=\"presentation\"\n [settings]=\"settings\"\n ></rtsee-slide>\n } @else {\n <div class=\"story-player-slide-placeholder\" aria-busy=\"true\">\n <span class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></span>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n" }]
8431
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { story: [{
8665
+ args: [{ selector: 'rtsee-rate-item', imports: [RatingComponent, DatePipe, Button], template: "<div\n class=\"rtsee-rates-group-item\"\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"review\"\n itemscope\n itemtype=\"https://schema.org/Review\"\n>\n <div class=\"rtsee-rates-group-header\">\n <div\n class=\"rtsee-rates-group-user-info\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n @if (group.peer?.imageUrl) {\n <img\n class=\"rtsee-rates-group-avatar\"\n [src]=\"group.peer.imageUrl\"\n alt=\"User avatar\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-rates-group-avatar-fallback\">\n {{ (group.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <span class=\"rtsee-rates-group-peer-name\" itemprop=\"name\">{{\n group.peer?.name || group.peerId\n }}</span>\n </div>\n\n <div class=\"rtsee-rates-group-right-header\">\n <span\n class=\"rtsee-rates-group-date\"\n itemprop=\"datePublished\"\n [attr.content]=\"group.createdAt\"\n >{{\n group.createdAt | date: \"short\"\n }}</span>\n\n @if (showActions) {\n <div class=\"rtsee-rates-group-actions\">\n <p-button\n (click)=\"onEdit($event)\"\n [severity]=\"'secondary'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-edit\"\n >\n <span class=\"pi pi-pencil\"></span>\n </p-button>\n <p-button\n (click)=\"onDelete($event)\"\n [severity]=\"'danger'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-delete\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n </div>\n }\n </div>\n </div>\n <div class=\"rtsee-rates-group-body\">\n @for (rate of group.rates; track rate.id) {\n <div class=\"rtsee-rates-group-rate-item-container\">\n <div class=\"rtsee-rates-group-rate-item\">\n <span class=\"rtsee-rates-group-rate-config-name\">{{\n getRatingConfigName(rate.configurationId)\n }}</span>\n <rtsee-rating [rate]=\"rate\"></rtsee-rating>\n </div>\n @if (rate.text) {\n <p class=\"rtsee-rates-group-rate-comment\" itemprop=\"reviewBody\" data-ugc=\"true\" rel=\"ugc\">\"{{ rate.text }}\"</p>\n }\n </div>\n }\n </div>\n</div>\n" }]
8666
+ }], propDecorators: { group: [{
8432
8667
  type: Input
8433
- }], settings: [{
8668
+ }], rater: [{
8434
8669
  type: Input
8435
- }], presentation: [{
8670
+ }], showActions: [{
8436
8671
  type: Input
8437
- }], swiperEl: [{
8438
- type: ViewChild,
8439
- args: ['swiperContainer']
8672
+ }], edit: [{
8673
+ type: Output
8674
+ }], delete: [{
8675
+ type: Output
8440
8676
  }] } });
8441
8677
 
8442
- class ManageSlidesComponent {
8443
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageSlidesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8444
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: ManageSlidesComponent, isStandalone: true, selector: "rtsee-manage-slides", inputs: { manageSlides: "manageSlides" }, ngImport: i0, template: "<div class=\"rtsee-presentation-manage-slides\">\n <div class=\"rtsee-presentation-manage-slides-header\">\n <p-button (click)=\"manageSlides.selectNewSlide()\"\n label=\"Create A New Slide\"\n ></p-button>\n </div>\n <div class=\"rtsee-presentation-manage-slides-list rtsee-ordered-list\">\n <p-orderList [value]=\"manageSlides.slides\"\n dataKey=\"id\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n scrollHeight=\"40rem\"\n controlsPosition=\"right\"\n (onReorder)=\"manageSlides.onReorder($event)\"\n [disabled]=\"manageSlides.loadInProgress\"\n >\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"rtsee-presentation-manage-slides-list-item rtsee-ordered-list-item\">\n <img\n [src]=\"option.imageUrl\"\n [alt]=\"'slide_image'\"\n [style.width]=\"'60px'\"\n class=\"rtsee-presentation-manage-slides-list-item-image rtsee-ordered-list-item-image\"\n />\n <div class=\"rtsee-presentation-manage-slides-list-item-info rtsee-ordered-list-item-info\">\n <span [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected,\n }\"\n class=\"rtsee-ordered-list-item-info-label\"\n >{{ option.slideNumber }}</span>\n <div class=\"rtsee-ordered-list-item-info-buttons\">\n <p-button label=\"Edit\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageSlides.selectSlide(option.slideNumber)\"\n ></p-button>\n <p-button label=\"Delete\"\n severity=\"warn\"\n class=\"rtsee-ordered-list-item-info-button\"\n ></p-button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-orderList>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: OrderList, selector: "p-orderList, p-orderlist, p-order-list", inputs: ["header", "styleClass", "tabindex", "ariaLabel", "ariaLabelledBy", "listStyle", "responsive", "filterBy", "filterPlaceholder", "filterLocale", "metaKeySelection", "dragdrop", "controlsPosition", "ariaFilterLabel", "filterMatchMode", "breakpoint", "stripedRows", "disabled", "trackBy", "scrollHeight", "autoOptionFocus", "dataKey", "selection", "value", "buttonProps", "moveUpButtonProps", "moveTopButtonProps", "moveDownButtonProps", "moveBottomButtonProps"], outputs: ["selectionChange", "onReorder", "onSelectionChange", "onFilterEvent", "onFocus", "onBlur"] }, { kind: "component", type: 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
8445
- }
8446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageSlidesComponent, decorators: [{
8447
- type: Component,
8678
+ class RateInputComponent {
8679
+ constructor() {
8680
+ this.sendRateForm = new FormGroup({
8681
+ comment: new FormControl(''),
8682
+ });
8683
+ this.showMissingRateError = false;
8684
+ }
8685
+ set config(value) {
8686
+ this._config = value;
8687
+ this.updateCommentControl();
8688
+ }
8689
+ get config() {
8690
+ return this._config;
8691
+ }
8692
+ ngOnInit() {
8693
+ this.updateCommentControl();
8694
+ }
8695
+ ngOnDestroy() {
8696
+ this.commentSubscription?.unsubscribe();
8697
+ }
8698
+ updateCommentControl() {
8699
+ this.commentSubscription?.unsubscribe();
8700
+ if (this._config && this._config.rate) {
8701
+ this.sendRateForm
8702
+ .get('comment')
8703
+ ?.setValue(this._config.rate.text || '', { emitEvent: false });
8704
+ this.commentSubscription = this.sendRateForm
8705
+ .get('comment')
8706
+ ?.valueChanges.subscribe((value) => {
8707
+ if (this._config.rate) {
8708
+ this._config.rate.text = value || '';
8709
+ }
8710
+ });
8711
+ }
8712
+ }
8713
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8714
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RateInputComponent, isStandalone: true, selector: "rtsee-rate-input", inputs: { showMissingRateError: "showMissingRateError", config: "config" }, ngImport: i0, template: "<div class=\"rtsee-rate-input\">\n <div class=\"rtsee-rate-input-header\">\n <h3 class=\"rtsee-rate-input-name\">{{ config.name }}</h3>\n @if (config.description) {\n <p class=\"rtsee-rate-input-description\">{{ config.description }}</p>\n }\n </div>\n <div class=\"rtsee-rate-form-container\">\n <form [formGroup]=\"sendRateForm\" class=\"rtsee-rate-form\">\n <textarea\n [invalid]=\"false\"\n [autoResize]=\"true\"\n formControlName=\"comment\"\n pTextarea\n placeholder=\"Your comment here...\"\n class=\"rtsee-rate-comment-field\"\n rows=\"1\"\n cols=\"30\"\n ></textarea>\n </form>\n </div>\n <div class=\"rtsee-rate-select-container\">\n <rtsee-rating [config]=\"config\"></rtsee-rating>\n @if (!config.rate?.value && showMissingRateError) {\n <p-message severity=\"error\">Please add your rate!</p-message>\n }\n </div>\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: Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate", "includeMicrodata"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
8715
+ }
8716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, decorators: [{
8717
+ type: Component,
8718
+ args: [{ selector: 'rtsee-rate-input', imports: [ReactiveFormsModule, Textarea, RatingComponent, Message], standalone: true, template: "<div class=\"rtsee-rate-input\">\n <div class=\"rtsee-rate-input-header\">\n <h3 class=\"rtsee-rate-input-name\">{{ config.name }}</h3>\n @if (config.description) {\n <p class=\"rtsee-rate-input-description\">{{ config.description }}</p>\n }\n </div>\n <div class=\"rtsee-rate-form-container\">\n <form [formGroup]=\"sendRateForm\" class=\"rtsee-rate-form\">\n <textarea\n [invalid]=\"false\"\n [autoResize]=\"true\"\n formControlName=\"comment\"\n pTextarea\n placeholder=\"Your comment here...\"\n class=\"rtsee-rate-comment-field\"\n rows=\"1\"\n cols=\"30\"\n ></textarea>\n </form>\n </div>\n <div class=\"rtsee-rate-select-container\">\n <rtsee-rating [config]=\"config\"></rtsee-rating>\n @if (!config.rate?.value && showMissingRateError) {\n <p-message severity=\"error\">Please add your rate!</p-message>\n }\n </div>\n</div>\n" }]
8719
+ }], propDecorators: { showMissingRateError: [{
8720
+ type: Input
8721
+ }], config: [{
8722
+ type: Input
8723
+ }] } });
8724
+
8725
+ class RaterComponent {
8726
+ constructor() {
8727
+ this.isEditing = false;
8728
+ this.showMissingRateError = false;
8729
+ this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
8730
+ }
8731
+ ngOnInit() {
8732
+ this.getRatingConfigurations()
8733
+ .then(() => {
8734
+ console.log('Getting rating configurations...');
8735
+ })
8736
+ .catch((error) => {
8737
+ console.error(error);
8738
+ });
8739
+ }
8740
+ async sendRate() {
8741
+ const rates = this.rater.configsWithRates
8742
+ .map((config) => config.rate)
8743
+ .filter((r) => !!r);
8744
+ const hasInvalidRate = rates.length === 0 ||
8745
+ rates.some((r) => typeof r.value !== 'number' || !Number.isFinite(r.value) || r.value <= 0);
8746
+ if (hasInvalidRate) {
8747
+ this.showMissingRateError = true;
8748
+ return;
8749
+ }
8750
+ this.showMissingRateError = false;
8751
+ if (this.rater.userRateGroup) {
8752
+ await this.rater.editRateGroup({
8753
+ ...this.rater.userRateGroup,
8754
+ rates,
8755
+ });
8756
+ }
8757
+ else {
8758
+ await this.rater.createRateGroup({
8759
+ entityId: this.rater.entityId,
8760
+ peerId: this.rater.peer.clientId,
8761
+ rates,
8762
+ applicationId: this.rater.applicationId,
8763
+ createdAt: new Date(),
8764
+ peer: this.rater.peer,
8765
+ });
8766
+ }
8767
+ this.isEditing = false;
8768
+ }
8769
+ async deleteRate() {
8770
+ if (this.rater.userRateGroup) {
8771
+ await this.rater.deleteRateGroup(this.rater.userRateGroup.id);
8772
+ }
8773
+ }
8774
+ startEdit() {
8775
+ this.showMissingRateError = false;
8776
+ this.isEditing = true;
8777
+ }
8778
+ async getRatingConfigurations() {
8779
+ if (!this.rater || !this.entity) {
8780
+ console.log('No rater or entity found.');
8781
+ return [];
8782
+ }
8783
+ const rates = await this.rater.getRates();
8784
+ console.log('Rates found.', rates);
8785
+ return rates;
8786
+ }
8787
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RaterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8788
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RaterComponent, isStandalone: true, selector: "rtsee-rater", inputs: { entity: "entity", rater: "rater" }, ngImport: i0, template: "<div class=\"rtsee-rater\" [ngClass]=\"{'rtsee-rater-view-mode': rater.userRateGroup && !isEditing}\">\n @if (rater.userRateGroup && !isEditing) {\n <rtsee-rate-item\n [group]=\"rater.userRateGroup\"\n [rater]=\"rater\"\n [showActions]=\"true\"\n (edit)=\"startEdit()\"\n (delete)=\"deleteRate()\"\n ></rtsee-rate-item>\n } @else {\n <div class=\"rtsee-rater-user-header\">\n @if (rater.peer?.imageUrl) {\n <img\n class=\"rtsee-rater-avatar\"\n [src]=\"rater.peer?.imageUrl\"\n alt=\"User avatar\"\n />\n } @else {\n <div class=\"rtsee-rater-avatar-fallback\">\n {{ (rater.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <div class=\"rtsee-rater-user-info\">\n <span class=\"rtsee-rater-user-name\">{{\n rater.peer?.name || \"Anonymous\"\n }}</span>\n <span class=\"rtsee-rater-user-status\">Rating publicly</span>\n </div>\n </div>\n <hr class=\"rtsee-rater-divider\" />\n @for (config of rater.configsWithRates; track config.id) {\n <rtsee-rate-input\n [config]=\"config\"\n [showMissingRateError]=\"showMissingRateError\"\n ></rtsee-rate-input>\n }\n <div class=\"rtsee-rater-actions\">\n @if (rater.userRateGroup) {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'success'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_UPDATE]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-update rts-action-button\"\n >\n <span class=\"pi pi-check\"></span>\n </p-button>\n <p-button\n (click)=\"deleteRate()\"\n [severity]=\"'danger'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_DELETE]\"\n class=\"rtsee-rater-btn-delete rts-action-button\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n } @else {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'primary'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_SEND]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-send rts-action-button\"\n >\n <span class=\"pi pi-send\"></span>\n </p-button>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: 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: RateInputComponent, selector: "rtsee-rate-input", inputs: ["showMissingRateError", "config"] }, { kind: "component", type: RateItemComponent, selector: "rtsee-rate-item", inputs: ["group", "rater", "showActions"], outputs: ["edit", "delete"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
8789
+ }
8790
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RaterComponent, decorators: [{
8791
+ type: Component,
8792
+ args: [{ selector: 'rtsee-rater', imports: [Button, RateInputComponent, RateItemComponent, NgClass], template: "<div class=\"rtsee-rater\" [ngClass]=\"{'rtsee-rater-view-mode': rater.userRateGroup && !isEditing}\">\n @if (rater.userRateGroup && !isEditing) {\n <rtsee-rate-item\n [group]=\"rater.userRateGroup\"\n [rater]=\"rater\"\n [showActions]=\"true\"\n (edit)=\"startEdit()\"\n (delete)=\"deleteRate()\"\n ></rtsee-rate-item>\n } @else {\n <div class=\"rtsee-rater-user-header\">\n @if (rater.peer?.imageUrl) {\n <img\n class=\"rtsee-rater-avatar\"\n [src]=\"rater.peer?.imageUrl\"\n alt=\"User avatar\"\n />\n } @else {\n <div class=\"rtsee-rater-avatar-fallback\">\n {{ (rater.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <div class=\"rtsee-rater-user-info\">\n <span class=\"rtsee-rater-user-name\">{{\n rater.peer?.name || \"Anonymous\"\n }}</span>\n <span class=\"rtsee-rater-user-status\">Rating publicly</span>\n </div>\n </div>\n <hr class=\"rtsee-rater-divider\" />\n @for (config of rater.configsWithRates; track config.id) {\n <rtsee-rate-input\n [config]=\"config\"\n [showMissingRateError]=\"showMissingRateError\"\n ></rtsee-rate-input>\n }\n <div class=\"rtsee-rater-actions\">\n @if (rater.userRateGroup) {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'success'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_UPDATE]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-update rts-action-button\"\n >\n <span class=\"pi pi-check\"></span>\n </p-button>\n <p-button\n (click)=\"deleteRate()\"\n [severity]=\"'danger'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_DELETE]\"\n class=\"rtsee-rater-btn-delete rts-action-button\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n } @else {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'primary'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_SEND]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-send rts-action-button\"\n >\n <span class=\"pi pi-send\"></span>\n </p-button>\n }\n </div>\n }\n</div>\n" }]
8793
+ }], propDecorators: { entity: [{
8794
+ type: Input
8795
+ }], rater: [{
8796
+ type: Input
8797
+ }] } });
8798
+
8799
+ const INITIAL_REVIEWS_LIMIT = 3;
8800
+ class StoryFinalSlideComponent {
8801
+ constructor(router) {
8802
+ this.router = router;
8803
+ this.rater = null;
8804
+ this.initializedStoryId = null;
8805
+ this.destroyed = false;
8806
+ this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
8807
+ }
8808
+ get effectiveMessenger() {
8809
+ return this.messenger || this.presentation?.messenger || null;
8810
+ }
8811
+ get isUkrainian() {
8812
+ const lang = (this.presentation?.currentLanguage ||
8813
+ this.story?.languageKey ||
8814
+ '').toLowerCase();
8815
+ return lang === 'ua' || lang === 'uk';
8816
+ }
8817
+ get canRate() {
8818
+ const peer = this.story?.peer ||
8819
+ this.story?.signalingClient?.getMyPeer?.() ||
8820
+ this.presentation?.myPeer;
8821
+ return Boolean(this.rater && peer?.clientId && !peer.isAnonymous);
8822
+ }
8823
+ ngOnInit() {
8824
+ this.ensureRaterInitialized();
8825
+ }
8826
+ ngOnChanges(changes) {
8827
+ if (changes['story'] && !changes['story'].firstChange) {
8828
+ this.ensureRaterInitialized();
8829
+ }
8830
+ }
8831
+ ngOnDestroy() {
8832
+ this.destroyed = true;
8833
+ }
8834
+ onScroll(target) {
8835
+ if (target instanceof HTMLElement) {
8836
+ if (target.scrollTop > 40) {
8837
+ this.story.toggleHeader(false);
8838
+ }
8839
+ else {
8840
+ this.story.toggleHeader(true);
8841
+ }
8842
+ }
8843
+ }
8844
+ onPreviousSlideClicked() {
8845
+ this.story.previousSlide();
8846
+ }
8847
+ onCloseClicked() {
8848
+ this.presentation.disableActiveStory();
8849
+ this.presentation.closeStoryDetails();
8850
+ }
8851
+ onRelatedStoryClicked(relatedStory) {
8852
+ this.presentation.disableActiveStory();
8853
+ if (relatedStory.friendlyUrl) {
8854
+ void this.router
8855
+ .navigate([this.presentation.routePrefix, relatedStory.friendlyUrl])
8856
+ .catch(() => { });
8857
+ }
8858
+ else {
8859
+ void this.presentation.openStoryDetails(relatedStory.id);
8860
+ }
8861
+ }
8862
+ loadMoreReviews() {
8863
+ if (!this.rater || this.rater.loadingRatesGroups) {
8864
+ return;
8865
+ }
8866
+ void this.rater.loadOtherUsersRateGroups(false, INITIAL_REVIEWS_LIMIT);
8867
+ }
8868
+ ensureRaterInitialized() {
8869
+ if (!this.story?.id || !this.effectiveMessenger) {
8870
+ return;
8871
+ }
8872
+ if (this.initializedStoryId === this.story.id && this.rater) {
8873
+ return;
8874
+ }
8875
+ const activePeer = (this.story.peer?.clientId ? this.story.peer : null) ||
8876
+ this.story.signalingClient?.getMyPeer?.() ||
8877
+ (this.presentation?.myPeer?.clientId ? this.presentation.myPeer : null) ||
8878
+ null;
8879
+ if (activePeer?.clientId) {
8880
+ this.bootRater(activePeer);
8881
+ return;
8882
+ }
8883
+ const peerPromise = this.story.signalingClient?.connection?.myPeerPromise ||
8884
+ this.presentation?.utilitiesSignalingClient?.connection?.myPeerPromise;
8885
+ if (peerPromise) {
8886
+ void peerPromise.then((peer) => {
8887
+ if (!this.destroyed && this.story) {
8888
+ this.bootRater(peer);
8889
+ }
8890
+ });
8891
+ }
8892
+ }
8893
+ bootRater(peer) {
8894
+ if (this.destroyed || !this.story?.id || !this.effectiveMessenger) {
8895
+ return;
8896
+ }
8897
+ if (!this.story.peer?.clientId) {
8898
+ this.story.peer = peer;
8899
+ }
8900
+ this.initializedStoryId = this.story.id;
8901
+ const reloadPromise = this.story.configurationId
8902
+ ? Promise.resolve()
8903
+ : this.story.reload().catch(() => { });
8904
+ const createAndLoad = () => {
8905
+ if (this.destroyed ||
8906
+ !this.story?.id ||
8907
+ !this.story.configurationId ||
8908
+ !this.effectiveMessenger) {
8909
+ return;
8910
+ }
8911
+ const raterInstance = new RTSeeRater({
8912
+ entityId: this.story.id,
8913
+ messenger: this.effectiveMessenger,
8914
+ entityConfigurationId: this.story.configurationId,
8915
+ ...this.story.getHandlerCommonOptions(),
8916
+ peer: this.story.peer || peer,
8917
+ applicationId: this.story.applicationId || peer.rtseeAppId || '',
8918
+ });
8919
+ this.rater = raterInstance;
8920
+ void raterInstance
8921
+ .loadOtherUsersRateGroups(true, INITIAL_REVIEWS_LIMIT)
8922
+ .catch(() => { });
8923
+ };
8924
+ if (this.story.configurationId) {
8925
+ createAndLoad();
8926
+ }
8927
+ else {
8928
+ void reloadPromise.then(() => createAndLoad());
8929
+ }
8930
+ }
8931
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryFinalSlideComponent, deps: [{ token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
8932
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryFinalSlideComponent, isStandalone: true, selector: "rtsee-story-final-slide", inputs: { story: "story", presentation: "presentation", settings: "settings", messenger: "messenger" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"rtsee-presentation-slide rtsee-story-final-slide\"\n [class.rtsee-story-final-slide-dark]=\"settings.isDarkReadingTheme\"\n [class.rtsee-story-final-slide-light]=\"!settings.isDarkReadingTheme\"\n (scroll)=\"onScroll($event.target)\"\n>\n <!-- Hero Cover Header: Story Main Image, Title & \"X\" Close Button -->\n <section class=\"rtsee-story-final-slide-hero\">\n @if (story.smImageUrl || story.imageUrl) {\n <img\n class=\"rtsee-story-final-slide-hero-img\"\n rtseeProgressiveImg\n [initialSrc]=\"story.smImageUrl || story.imageUrl\"\n [fullSrc]=\"story.imageUrl\"\n [eager]=\"true\"\n [alt]=\"story.name\"\n decoding=\"async\"\n />\n }\n <button\n type=\"button\"\n class=\"rtsee-story-details-btn-close rtsee-story-final-slide-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"onCloseClicked()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-final-slide-hero-overlay\"></div>\n <div class=\"rtsee-story-final-slide-hero-content\">\n <span class=\"rtsee-story-final-slide-badge\">\n {{ isUkrainian ? '\u041A\u0456\u043D\u0435\u0446\u044C \u0456\u0441\u0442\u043E\u0440\u0456\u0457' : 'The End' }}\n </span>\n <h2 class=\"rtsee-story-final-slide-title\">{{ story.name }}</h2>\n @if (story.totalSlides > 0) {\n <p-button\n class=\"rtsee-story-final-slide-prev-btn\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.PREVIOUS_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-left\"\n [severity]=\"'secondary'\"\n (click)=\"onPreviousSlideClicked()\"\n ></p-button>\n }\n </div>\n </section>\n\n <div class=\"rtsee-story-final-slide-body\">\n <!-- 1. 3 Rates / Comments from Other Users (+ Load More) -->\n <section\n class=\"rtsee-story-final-slide-section\"\n aria-label=\"Reader ratings and comments\"\n >\n <header class=\"rtsee-story-final-slide-section-header\">\n <i class=\"pi pi-comments\" aria-hidden=\"true\"></i>\n <h3>{{ presentation.labels[RTSeeTextLabelKeys.COMMENTS_LABEL] }}</h3>\n </header>\n\n @if (rater) {\n @if (rater.otherUsersRateGroups.length) {\n <div class=\"rtsee-rates-list rtsee-story-final-slide-rates-list\">\n @for (group of rater.otherUsersRateGroups; track group.id) {\n <rtsee-rate-item\n [group]=\"group\"\n [rater]=\"rater\"\n [showActions]=\"false\"\n ></rtsee-rate-item>\n }\n </div>\n @if (rater.hasMoreOtherUsersRateGroups) {\n <div class=\"rtsee-story-final-slide-load-more\">\n <p-button\n [label]=\"\n rater.loadingRatesGroups\n ? (isUkrainian ? '\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F...' : 'Loading...')\n : presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL] ||\n 'Load more'\n \"\n [disabled]=\"rater.loadingRatesGroups\"\n [severity]=\"'secondary'\"\n (click)=\"loadMoreReviews()\"\n ></p-button>\n </div>\n }\n } @else if (!rater.loadingRatesGroups) {\n <p class=\"rtsee-story-final-slide-empty-reviews\">\n {{\n isUkrainian\n ? '\u041F\u043E\u043A\u0438 \u0449\u043E \u043D\u0435\u043C\u0430\u0454 \u0432\u0456\u0434\u0433\u0443\u043A\u0456\u0432 \u0432\u0456\u0434 \u0456\u043D\u0448\u0438\u0445 \u0447\u0438\u0442\u0430\u0447\u0456\u0432 \u2014 \u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u043F\u0435\u0440\u0448\u0438\u043C!'\n : 'No comments from other readers yet \u2014 be the first to share your thoughts!'\n }}\n </p>\n }\n }\n </section>\n\n <!-- 2. Rater (Rate & Comment, reused from Story Details) -->\n @if (rater) {\n <section\n class=\"rtsee-story-final-slide-section\"\n data-ugc=\"true\"\n rel=\"ugc\"\n aria-label=\"Rate this story\"\n >\n @if (canRate || rater.userRateGroup) {\n <rtsee-rater [rater]=\"rater\" [entity]=\"story\"></rtsee-rater>\n } @else {\n <div class=\"rtsee-story-final-slide-guest-rater\">\n <i class=\"pi pi-star-fill\" aria-hidden=\"true\"></i>\n <span>\n {{\n isUkrainian\n ? '\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C \u0443 \u043F\u0440\u043E\u0444\u0456\u043B\u044C, \u0449\u043E\u0431 \u043E\u0446\u0456\u043D\u0438\u0442\u0438 \u0446\u044E \u0456\u0441\u0442\u043E\u0440\u0456\u044E \u0442\u0430 \u0437\u0430\u043B\u0438\u0448\u0438\u0442\u0438 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440.'\n : 'Sign in to rate this story and leave a comment.'\n }}\n </span>\n </div>\n }\n </section>\n }\n\n <!-- 3. Similar Stories (Related Story Entities) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-final-slide-section rtsee-story-final-slide-similar\"\n aria-label=\"Similar stories\"\n >\n <header class=\"rtsee-story-final-slide-section-header\">\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <h3>\n {{\n presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] ||\n (isUkrainian ? '\u0421\u0445\u043E\u0436\u0456 \u0456\u0441\u0442\u043E\u0440\u0456\u0457' : 'Similar Stories')\n }}\n </h3>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-final-slide-related-list\">\n @for (relatedStory of story.relatedStories; track relatedStory.id) {\n <div\n class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onRelatedStoryClicked(relatedStory)\"\n >\n <rtsee-story-thumbnail\n [story]=\"relatedStory\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n </section>\n }\n\n <!-- 4. Payment / Plans / Subscribe (moved here from the last story-text slide) -->\n @if (effectiveMessenger && !presentation.myPeer?.plan) {\n <section\n class=\"rtsee-story-final-slide-section rtsee-presentation-slide-payment\"\n aria-label=\"Subscription plans\"\n >\n <rtsee-payment-page\n [messenger]=\"effectiveMessenger\"\n [theme]=\"settings.isDarkReadingTheme ? 'dark' : 'light'\"\n ></rtsee-payment-page>\n </section>\n }\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: "component", type: 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: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }, { kind: "component", type: RateItemComponent, selector: "rtsee-rate-item", inputs: ["group", "rater", "showActions"], outputs: ["edit", "delete"] }, { kind: "component", type: RaterComponent, selector: "rtsee-rater", inputs: ["entity", "rater"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation", "priority", "eager"] }, { kind: "component", type: PaymentPageComponent, selector: "rtsee-payment-page", inputs: ["messenger", "theme"] }] }); }
8933
+ }
8934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryFinalSlideComponent, decorators: [{
8935
+ type: Component,
8936
+ args: [{ selector: 'rtsee-story-final-slide', standalone: true, imports: [
8937
+ RouterLink,
8938
+ Button,
8939
+ ProgressiveImageDirective,
8940
+ RateItemComponent,
8941
+ RaterComponent,
8942
+ StoryThumbnailComponent,
8943
+ PaymentPageComponent,
8944
+ ], template: "<div\n class=\"rtsee-presentation-slide rtsee-story-final-slide\"\n [class.rtsee-story-final-slide-dark]=\"settings.isDarkReadingTheme\"\n [class.rtsee-story-final-slide-light]=\"!settings.isDarkReadingTheme\"\n (scroll)=\"onScroll($event.target)\"\n>\n <!-- Hero Cover Header: Story Main Image, Title & \"X\" Close Button -->\n <section class=\"rtsee-story-final-slide-hero\">\n @if (story.smImageUrl || story.imageUrl) {\n <img\n class=\"rtsee-story-final-slide-hero-img\"\n rtseeProgressiveImg\n [initialSrc]=\"story.smImageUrl || story.imageUrl\"\n [fullSrc]=\"story.imageUrl\"\n [eager]=\"true\"\n [alt]=\"story.name\"\n decoding=\"async\"\n />\n }\n <button\n type=\"button\"\n class=\"rtsee-story-details-btn-close rtsee-story-final-slide-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"onCloseClicked()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-final-slide-hero-overlay\"></div>\n <div class=\"rtsee-story-final-slide-hero-content\">\n <span class=\"rtsee-story-final-slide-badge\">\n {{ isUkrainian ? '\u041A\u0456\u043D\u0435\u0446\u044C \u0456\u0441\u0442\u043E\u0440\u0456\u0457' : 'The End' }}\n </span>\n <h2 class=\"rtsee-story-final-slide-title\">{{ story.name }}</h2>\n @if (story.totalSlides > 0) {\n <p-button\n class=\"rtsee-story-final-slide-prev-btn\"\n [label]=\"presentation.labels[RTSeeTextLabelKeys.PREVIOUS_SLIDE_LABEL]\"\n icon=\"pi pi-arrow-left\"\n [severity]=\"'secondary'\"\n (click)=\"onPreviousSlideClicked()\"\n ></p-button>\n }\n </div>\n </section>\n\n <div class=\"rtsee-story-final-slide-body\">\n <!-- 1. 3 Rates / Comments from Other Users (+ Load More) -->\n <section\n class=\"rtsee-story-final-slide-section\"\n aria-label=\"Reader ratings and comments\"\n >\n <header class=\"rtsee-story-final-slide-section-header\">\n <i class=\"pi pi-comments\" aria-hidden=\"true\"></i>\n <h3>{{ presentation.labels[RTSeeTextLabelKeys.COMMENTS_LABEL] }}</h3>\n </header>\n\n @if (rater) {\n @if (rater.otherUsersRateGroups.length) {\n <div class=\"rtsee-rates-list rtsee-story-final-slide-rates-list\">\n @for (group of rater.otherUsersRateGroups; track group.id) {\n <rtsee-rate-item\n [group]=\"group\"\n [rater]=\"rater\"\n [showActions]=\"false\"\n ></rtsee-rate-item>\n }\n </div>\n @if (rater.hasMoreOtherUsersRateGroups) {\n <div class=\"rtsee-story-final-slide-load-more\">\n <p-button\n [label]=\"\n rater.loadingRatesGroups\n ? (isUkrainian ? '\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F...' : 'Loading...')\n : presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL] ||\n 'Load more'\n \"\n [disabled]=\"rater.loadingRatesGroups\"\n [severity]=\"'secondary'\"\n (click)=\"loadMoreReviews()\"\n ></p-button>\n </div>\n }\n } @else if (!rater.loadingRatesGroups) {\n <p class=\"rtsee-story-final-slide-empty-reviews\">\n {{\n isUkrainian\n ? '\u041F\u043E\u043A\u0438 \u0449\u043E \u043D\u0435\u043C\u0430\u0454 \u0432\u0456\u0434\u0433\u0443\u043A\u0456\u0432 \u0432\u0456\u0434 \u0456\u043D\u0448\u0438\u0445 \u0447\u0438\u0442\u0430\u0447\u0456\u0432 \u2014 \u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u043F\u0435\u0440\u0448\u0438\u043C!'\n : 'No comments from other readers yet \u2014 be the first to share your thoughts!'\n }}\n </p>\n }\n }\n </section>\n\n <!-- 2. Rater (Rate & Comment, reused from Story Details) -->\n @if (rater) {\n <section\n class=\"rtsee-story-final-slide-section\"\n data-ugc=\"true\"\n rel=\"ugc\"\n aria-label=\"Rate this story\"\n >\n @if (canRate || rater.userRateGroup) {\n <rtsee-rater [rater]=\"rater\" [entity]=\"story\"></rtsee-rater>\n } @else {\n <div class=\"rtsee-story-final-slide-guest-rater\">\n <i class=\"pi pi-star-fill\" aria-hidden=\"true\"></i>\n <span>\n {{\n isUkrainian\n ? '\u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C \u0443 \u043F\u0440\u043E\u0444\u0456\u043B\u044C, \u0449\u043E\u0431 \u043E\u0446\u0456\u043D\u0438\u0442\u0438 \u0446\u044E \u0456\u0441\u0442\u043E\u0440\u0456\u044E \u0442\u0430 \u0437\u0430\u043B\u0438\u0448\u0438\u0442\u0438 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440.'\n : 'Sign in to rate this story and leave a comment.'\n }}\n </span>\n </div>\n }\n </section>\n }\n\n <!-- 3. Similar Stories (Related Story Entities) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-final-slide-section rtsee-story-final-slide-similar\"\n aria-label=\"Similar stories\"\n >\n <header class=\"rtsee-story-final-slide-section-header\">\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <h3>\n {{\n presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] ||\n (isUkrainian ? '\u0421\u0445\u043E\u0436\u0456 \u0456\u0441\u0442\u043E\u0440\u0456\u0457' : 'Similar Stories')\n }}\n </h3>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-final-slide-related-list\">\n @for (relatedStory of story.relatedStories; track relatedStory.id) {\n <div\n class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onRelatedStoryClicked(relatedStory)\"\n >\n <rtsee-story-thumbnail\n [story]=\"relatedStory\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n </section>\n }\n\n <!-- 4. Payment / Plans / Subscribe (moved here from the last story-text slide) -->\n @if (effectiveMessenger && !presentation.myPeer?.plan) {\n <section\n class=\"rtsee-story-final-slide-section rtsee-presentation-slide-payment\"\n aria-label=\"Subscription plans\"\n >\n <rtsee-payment-page\n [messenger]=\"effectiveMessenger\"\n [theme]=\"settings.isDarkReadingTheme ? 'dark' : 'light'\"\n ></rtsee-payment-page>\n </section>\n }\n </div>\n</div>\n" }]
8945
+ }], ctorParameters: () => [{ type: i2.Router }], propDecorators: { story: [{
8946
+ type: Input
8947
+ }], presentation: [{
8948
+ type: Input
8949
+ }], settings: [{
8950
+ type: Input
8951
+ }], messenger: [{
8952
+ type: Input
8953
+ }] } });
8954
+
8955
+ /**
8956
+ * Story slides player.
8957
+ *
8958
+ * Uses Swiper's Virtual module with `renderExternal`, so Angular only renders the few
8959
+ * slides around the active one (Safari crashed when animating 20+ card slides at once).
8960
+ * Swiper is aware of ALL the story slides (1..totalSlides) from the start, while the
8961
+ * slide contents are lazy loaded by the story; slides not loaded yet render a placeholder.
8962
+ */
8963
+ class StoryPlayerComponent {
8964
+ constructor(cdr) {
8965
+ this.cdr = cdr;
8966
+ this.swiper = null;
8967
+ /** slide numbers currently rendered by the virtual swiper */
8968
+ this.virtualData = { offset: 0, from: 0, to: -1, slides: [] };
8969
+ }
8970
+ ngOnInit() {
8971
+ console.log('Story Player: Story = ', this.story);
8972
+ }
8973
+ ngAfterViewInit() {
8974
+ this.swiper = new Swiper(this.swiperEl.nativeElement, {
8975
+ // Virtual must be registered before the effect: on "setTranslate" the virtual
8976
+ // slides are rendered first, then the cards effect transforms them
8977
+ modules: [Virtual, EffectCards],
8978
+ effect: 'cards',
8979
+ grabCursor: true,
8980
+ virtual: {
8981
+ enabled: true,
8982
+ slides: this.getVirtualSlides(),
8983
+ // keep a couple of neighbours rendered so the cards stack looks natural
8984
+ addSlidesBefore: 1,
8985
+ addSlidesAfter: 2,
8986
+ // DOM is rendered by Angular; Swiper is updated manually once it's done
8987
+ renderExternal: (data) => this.renderVirtualSlides(data),
8988
+ renderExternalUpdate: false,
8989
+ },
8990
+ });
8991
+ this.story.initSwiper(this.swiper, {
8992
+ virtual: true,
8993
+ onSlideChange: () => {
8994
+ this.cdr.detectChanges();
8995
+ },
8996
+ });
8997
+ }
8998
+ /** grows the virtual slides list when the slides count becomes known / changes */
8999
+ ngDoCheck() {
9000
+ if (!this.swiper || this.swiper.destroyed) {
9001
+ return;
9002
+ }
9003
+ const total = this.getSlidesCount();
9004
+ if (this.swiper.virtual.slides.length !== total) {
9005
+ this.swiper.virtual.slides = this.getVirtualSlides();
9006
+ this.swiper.virtual.update(true);
9007
+ }
9008
+ }
9009
+ ngOnDestroy() {
9010
+ if (!this.swiper) {
9011
+ return;
9012
+ }
9013
+ if (this.story.swiper === this.swiper) {
9014
+ this.story.swiper = null;
9015
+ }
9016
+ this.swiper.destroy(true, false);
9017
+ this.swiper = null;
9018
+ }
9019
+ getLoadedSlide(slideNumber) {
9020
+ return this.story.slides.find((s) => s.slideNumber === slideNumber) || null;
9021
+ }
9022
+ isFinalSlide(slideNumber) {
9023
+ const storyCount = this.getStorySlidesCount();
9024
+ return storyCount > 0 && slideNumber === storyCount + 1;
9025
+ }
9026
+ renderVirtualSlides(data) {
9027
+ this.virtualData = data;
9028
+ // render synchronously: Swiper measures the slides right after this callback
9029
+ this.cdr.detectChanges();
9030
+ const swiper = this.swiper;
9031
+ // during init (beforeInit) `this.swiper` is not assigned yet and Swiper runs these updates by itself
9032
+ if (!swiper || swiper.destroyed) {
9033
+ return;
9034
+ }
9035
+ swiper.updateSlides();
9036
+ swiper.updateProgress();
9037
+ swiper.updateSlidesClasses();
9038
+ // lets the cards effect re-apply transforms to the freshly rendered slides
9039
+ swiper.emit('_virtualUpdated');
9040
+ }
9041
+ getStorySlidesCount() {
9042
+ const lastLoaded = this.story.slides.length
9043
+ ? this.story.slides[this.story.slides.length - 1].slideNumber
9044
+ : 0;
9045
+ return Math.max(this.story.totalSlides || 0, lastLoaded);
9046
+ }
9047
+ getSlidesCount() {
9048
+ const storyCount = this.getStorySlidesCount();
9049
+ return storyCount > 0 ? storyCount + 1 : 0;
9050
+ }
9051
+ /** virtual slides are just the slide numbers: 1..N */
9052
+ getVirtualSlides() {
9053
+ return Array.from({ length: this.getSlidesCount() }, (_, i) => i + 1);
9054
+ }
9055
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryPlayerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
9056
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryPlayerComponent, isStandalone: true, selector: "rtsee-story-player", inputs: { story: "story", settings: "settings", presentation: "presentation", messenger: "messenger" }, viewQueries: [{ propertyName: "swiperEl", first: true, predicate: ["swiperContainer"], descendants: true }], ngImport: i0, template: "<div class=\"rtsee-story-player\"\n [class.rtsee-story-player-theme-dark]=\"settings.isDarkReadingTheme\"\n [class.rtsee-story-player-theme-light]=\"!settings.isDarkReadingTheme\"\n>\n <div class=\"rtsee-story-player-slider swiper\" #swiperContainer>\n <div class=\"rtsee-story-player-slider-inner swiper-wrapper\">\n <!-- only the virtual window (a few slides around the active one) is rendered -->\n @for (slideNumber of virtualData.slides; track slideNumber; let i = $index) {\n @let finalSlide = isFinalSlide(slideNumber);\n @let slide = finalSlide ? null : getLoadedSlide(slideNumber);\n <div class=\"story-player-slide-container swiper-slide\"\n [attr.data-swiper-slide-index]=\"virtualData.from + i\"\n [style.left.px]=\"virtualData.offset\"\n [ngClass]=\"{\n 'story-player-slide-active': finalSlide\n ? story.activeSlideNumber === slideNumber\n : slide?.isActive\n }\"\n >\n @if (finalSlide) {\n <rtsee-story-final-slide\n [story]=\"story\"\n [presentation]=\"presentation\"\n [settings]=\"settings\"\n [messenger]=\"messenger\"\n ></rtsee-story-final-slide>\n } @else if (slide) {\n <rtsee-slide [slide]=\"slide\"\n [story]=\"story\"\n [presentation]=\"presentation\"\n [settings]=\"settings\"\n ></rtsee-slide>\n } @else {\n <div class=\"story-player-slide-placeholder\" aria-busy=\"true\">\n <span class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></span>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SlideComponent, selector: "rtsee-slide", inputs: ["presentation", "story", "slide", "settings"] }, { kind: "component", type: StoryFinalSlideComponent, selector: "rtsee-story-final-slide", inputs: ["story", "presentation", "settings", "messenger"] }] }); }
9057
+ }
9058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryPlayerComponent, decorators: [{
9059
+ type: Component,
9060
+ args: [{ selector: 'rtsee-story-player', imports: [NgClass, SlideComponent, StoryFinalSlideComponent], standalone: true, template: "<div class=\"rtsee-story-player\"\n [class.rtsee-story-player-theme-dark]=\"settings.isDarkReadingTheme\"\n [class.rtsee-story-player-theme-light]=\"!settings.isDarkReadingTheme\"\n>\n <div class=\"rtsee-story-player-slider swiper\" #swiperContainer>\n <div class=\"rtsee-story-player-slider-inner swiper-wrapper\">\n <!-- only the virtual window (a few slides around the active one) is rendered -->\n @for (slideNumber of virtualData.slides; track slideNumber; let i = $index) {\n @let finalSlide = isFinalSlide(slideNumber);\n @let slide = finalSlide ? null : getLoadedSlide(slideNumber);\n <div class=\"story-player-slide-container swiper-slide\"\n [attr.data-swiper-slide-index]=\"virtualData.from + i\"\n [style.left.px]=\"virtualData.offset\"\n [ngClass]=\"{\n 'story-player-slide-active': finalSlide\n ? story.activeSlideNumber === slideNumber\n : slide?.isActive\n }\"\n >\n @if (finalSlide) {\n <rtsee-story-final-slide\n [story]=\"story\"\n [presentation]=\"presentation\"\n [settings]=\"settings\"\n [messenger]=\"messenger\"\n ></rtsee-story-final-slide>\n } @else if (slide) {\n <rtsee-slide [slide]=\"slide\"\n [story]=\"story\"\n [presentation]=\"presentation\"\n [settings]=\"settings\"\n ></rtsee-slide>\n } @else {\n <div class=\"story-player-slide-placeholder\" aria-busy=\"true\">\n <span class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></span>\n </div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n" }]
9061
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { story: [{
9062
+ type: Input
9063
+ }], settings: [{
9064
+ type: Input
9065
+ }], presentation: [{
9066
+ type: Input
9067
+ }], messenger: [{
9068
+ type: Input
9069
+ }], swiperEl: [{
9070
+ type: ViewChild,
9071
+ args: ['swiperContainer']
9072
+ }] } });
9073
+
9074
+ class ManageSlidesComponent {
9075
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageSlidesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9076
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: ManageSlidesComponent, isStandalone: true, selector: "rtsee-manage-slides", inputs: { manageSlides: "manageSlides" }, ngImport: i0, template: "<div class=\"rtsee-presentation-manage-slides\">\n <div class=\"rtsee-presentation-manage-slides-header\">\n <p-button (click)=\"manageSlides.selectNewSlide()\"\n label=\"Create A New Slide\"\n ></p-button>\n </div>\n <div class=\"rtsee-presentation-manage-slides-list rtsee-ordered-list\">\n <p-orderList [value]=\"manageSlides.slides\"\n dataKey=\"id\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n scrollHeight=\"40rem\"\n controlsPosition=\"right\"\n (onReorder)=\"manageSlides.onReorder($event)\"\n [disabled]=\"manageSlides.loadInProgress\"\n >\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"rtsee-presentation-manage-slides-list-item rtsee-ordered-list-item\">\n <img\n [src]=\"option.imageUrl\"\n [alt]=\"'slide_image'\"\n [style.width]=\"'60px'\"\n class=\"rtsee-presentation-manage-slides-list-item-image rtsee-ordered-list-item-image\"\n />\n <div class=\"rtsee-presentation-manage-slides-list-item-info rtsee-ordered-list-item-info\">\n <span [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected,\n }\"\n class=\"rtsee-ordered-list-item-info-label\"\n >{{ option.slideNumber }}</span>\n <div class=\"rtsee-ordered-list-item-info-buttons\">\n <p-button label=\"Edit\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageSlides.selectSlide(option.slideNumber)\"\n ></p-button>\n <p-button label=\"Delete\"\n severity=\"warn\"\n class=\"rtsee-ordered-list-item-info-button\"\n ></p-button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-orderList>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: OrderList, selector: "p-orderList, p-orderlist, p-order-list", inputs: ["header", "styleClass", "tabindex", "ariaLabel", "ariaLabelledBy", "listStyle", "responsive", "filterBy", "filterPlaceholder", "filterLocale", "metaKeySelection", "dragdrop", "controlsPosition", "ariaFilterLabel", "filterMatchMode", "breakpoint", "stripedRows", "disabled", "trackBy", "scrollHeight", "autoOptionFocus", "dataKey", "selection", "value", "buttonProps", "moveUpButtonProps", "moveTopButtonProps", "moveDownButtonProps", "moveBottomButtonProps"], outputs: ["selectionChange", "onReorder", "onSelectionChange", "onFilterEvent", "onFocus", "onBlur"] }, { kind: "component", type: 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
9077
+ }
9078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageSlidesComponent, decorators: [{
9079
+ type: Component,
8448
9080
  args: [{ selector: 'rtsee-manage-slides', imports: [OrderList, Button, NgClass], template: "<div class=\"rtsee-presentation-manage-slides\">\n <div class=\"rtsee-presentation-manage-slides-header\">\n <p-button (click)=\"manageSlides.selectNewSlide()\"\n label=\"Create A New Slide\"\n ></p-button>\n </div>\n <div class=\"rtsee-presentation-manage-slides-list rtsee-ordered-list\">\n <p-orderList [value]=\"manageSlides.slides\"\n dataKey=\"id\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n scrollHeight=\"40rem\"\n controlsPosition=\"right\"\n (onReorder)=\"manageSlides.onReorder($event)\"\n [disabled]=\"manageSlides.loadInProgress\"\n >\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"rtsee-presentation-manage-slides-list-item rtsee-ordered-list-item\">\n <img\n [src]=\"option.imageUrl\"\n [alt]=\"'slide_image'\"\n [style.width]=\"'60px'\"\n class=\"rtsee-presentation-manage-slides-list-item-image rtsee-ordered-list-item-image\"\n />\n <div class=\"rtsee-presentation-manage-slides-list-item-info rtsee-ordered-list-item-info\">\n <span [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected,\n }\"\n class=\"rtsee-ordered-list-item-info-label\"\n >{{ option.slideNumber }}</span>\n <div class=\"rtsee-ordered-list-item-info-buttons\">\n <p-button label=\"Edit\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageSlides.selectSlide(option.slideNumber)\"\n ></p-button>\n <p-button label=\"Delete\"\n severity=\"warn\"\n class=\"rtsee-ordered-list-item-info-button\"\n ></p-button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-orderList>\n </div>\n</div>\n" }]
8449
9081
  }], propDecorators: { manageSlides: [{
8450
9082
  type: Input
@@ -10095,166 +10727,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
10095
10727
  type: Input
10096
10728
  }] } });
10097
10729
 
10098
- class RateInputComponent {
10099
- constructor() {
10100
- this.sendRateForm = new FormGroup({
10101
- comment: new FormControl(''),
10102
- });
10103
- this.showMissingRateError = false;
10104
- }
10105
- set config(value) {
10106
- this._config = value;
10107
- this.updateCommentControl();
10108
- }
10109
- get config() {
10110
- return this._config;
10111
- }
10112
- ngOnInit() {
10113
- this.updateCommentControl();
10114
- }
10115
- ngOnDestroy() {
10116
- this.commentSubscription?.unsubscribe();
10117
- }
10118
- updateCommentControl() {
10119
- this.commentSubscription?.unsubscribe();
10120
- if (this._config && this._config.rate) {
10121
- this.sendRateForm
10122
- .get('comment')
10123
- ?.setValue(this._config.rate.text || '', { emitEvent: false });
10124
- this.commentSubscription = this.sendRateForm
10125
- .get('comment')
10126
- ?.valueChanges.subscribe((value) => {
10127
- if (this._config.rate) {
10128
- this._config.rate.text = value || '';
10129
- }
10130
- });
10131
- }
10132
- }
10133
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10134
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RateInputComponent, isStandalone: true, selector: "rtsee-rate-input", inputs: { showMissingRateError: "showMissingRateError", config: "config" }, ngImport: i0, template: "<div class=\"rtsee-rate-input\">\n <div class=\"rtsee-rate-input-header\">\n <h3 class=\"rtsee-rate-input-name\">{{ config.name }}</h3>\n @if (config.description) {\n <p class=\"rtsee-rate-input-description\">{{ config.description }}</p>\n }\n </div>\n <div class=\"rtsee-rate-form-container\">\n <form [formGroup]=\"sendRateForm\" class=\"rtsee-rate-form\">\n <textarea\n [invalid]=\"false\"\n [autoResize]=\"true\"\n formControlName=\"comment\"\n pTextarea\n placeholder=\"Your comment here...\"\n class=\"rtsee-rate-comment-field\"\n rows=\"1\"\n cols=\"30\"\n ></textarea>\n </form>\n </div>\n <div class=\"rtsee-rate-select-container\">\n <rtsee-rating [config]=\"config\"></rtsee-rating>\n @if (!config.rate?.value && showMissingRateError) {\n <p-message severity=\"error\">Please add your rate!</p-message>\n }\n </div>\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: Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate", "includeMicrodata"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
10135
- }
10136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, decorators: [{
10137
- type: Component,
10138
- args: [{ selector: 'rtsee-rate-input', imports: [ReactiveFormsModule, Textarea, RatingComponent, Message], standalone: true, template: "<div class=\"rtsee-rate-input\">\n <div class=\"rtsee-rate-input-header\">\n <h3 class=\"rtsee-rate-input-name\">{{ config.name }}</h3>\n @if (config.description) {\n <p class=\"rtsee-rate-input-description\">{{ config.description }}</p>\n }\n </div>\n <div class=\"rtsee-rate-form-container\">\n <form [formGroup]=\"sendRateForm\" class=\"rtsee-rate-form\">\n <textarea\n [invalid]=\"false\"\n [autoResize]=\"true\"\n formControlName=\"comment\"\n pTextarea\n placeholder=\"Your comment here...\"\n class=\"rtsee-rate-comment-field\"\n rows=\"1\"\n cols=\"30\"\n ></textarea>\n </form>\n </div>\n <div class=\"rtsee-rate-select-container\">\n <rtsee-rating [config]=\"config\"></rtsee-rating>\n @if (!config.rate?.value && showMissingRateError) {\n <p-message severity=\"error\">Please add your rate!</p-message>\n }\n </div>\n</div>\n" }]
10139
- }], propDecorators: { showMissingRateError: [{
10140
- type: Input
10141
- }], config: [{
10142
- type: Input
10143
- }] } });
10144
-
10145
- class RateItemComponent {
10146
- constructor() {
10147
- this.showActions = false;
10148
- this.edit = new EventEmitter();
10149
- this.delete = new EventEmitter();
10150
- }
10151
- onEdit(event) {
10152
- event.stopPropagation();
10153
- this.edit.emit();
10154
- }
10155
- onDelete(event) {
10156
- event.stopPropagation();
10157
- this.delete.emit();
10158
- }
10159
- getRatingConfigName(configId) {
10160
- if (!this.rater) {
10161
- return '';
10162
- }
10163
- const config = this.rater.ratingConfigurations.find((c) => c.id === configId);
10164
- return config ? config.name : '';
10165
- }
10166
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10167
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RateItemComponent, isStandalone: true, selector: "rtsee-rate-item", inputs: { group: "group", rater: "rater", showActions: "showActions" }, outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<div\n class=\"rtsee-rates-group-item\"\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"review\"\n itemscope\n itemtype=\"https://schema.org/Review\"\n>\n <div class=\"rtsee-rates-group-header\">\n <div\n class=\"rtsee-rates-group-user-info\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n @if (group.peer?.imageUrl) {\n <img\n class=\"rtsee-rates-group-avatar\"\n [src]=\"group.peer.imageUrl\"\n alt=\"User avatar\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-rates-group-avatar-fallback\">\n {{ (group.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <span class=\"rtsee-rates-group-peer-name\" itemprop=\"name\">{{\n group.peer?.name || group.peerId\n }}</span>\n </div>\n\n <div class=\"rtsee-rates-group-right-header\">\n <span\n class=\"rtsee-rates-group-date\"\n itemprop=\"datePublished\"\n [attr.content]=\"group.createdAt\"\n >{{\n group.createdAt | date: \"short\"\n }}</span>\n\n @if (showActions) {\n <div class=\"rtsee-rates-group-actions\">\n <p-button\n (click)=\"onEdit($event)\"\n [severity]=\"'secondary'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-edit\"\n >\n <span class=\"pi pi-pencil\"></span>\n </p-button>\n <p-button\n (click)=\"onDelete($event)\"\n [severity]=\"'danger'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-delete\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n </div>\n }\n </div>\n </div>\n <div class=\"rtsee-rates-group-body\">\n @for (rate of group.rates; track rate.id) {\n <div class=\"rtsee-rates-group-rate-item-container\">\n <div class=\"rtsee-rates-group-rate-item\">\n <span class=\"rtsee-rates-group-rate-config-name\">{{\n getRatingConfigName(rate.configurationId)\n }}</span>\n <rtsee-rating [rate]=\"rate\"></rtsee-rating>\n </div>\n @if (rate.text) {\n <p class=\"rtsee-rates-group-rate-comment\" itemprop=\"reviewBody\" data-ugc=\"true\" rel=\"ugc\">\"{{ rate.text }}\"</p>\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate", "includeMicrodata"] }, { kind: "component", type: 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: "pipe", type: DatePipe, name: "date" }] }); }
10168
- }
10169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, decorators: [{
10170
- type: Component,
10171
- args: [{ selector: 'rtsee-rate-item', imports: [RatingComponent, DatePipe, Button], template: "<div\n class=\"rtsee-rates-group-item\"\n data-ugc=\"true\"\n rel=\"ugc\"\n itemprop=\"review\"\n itemscope\n itemtype=\"https://schema.org/Review\"\n>\n <div class=\"rtsee-rates-group-header\">\n <div\n class=\"rtsee-rates-group-user-info\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n @if (group.peer?.imageUrl) {\n <img\n class=\"rtsee-rates-group-avatar\"\n [src]=\"group.peer.imageUrl\"\n alt=\"User avatar\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-rates-group-avatar-fallback\">\n {{ (group.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <span class=\"rtsee-rates-group-peer-name\" itemprop=\"name\">{{\n group.peer?.name || group.peerId\n }}</span>\n </div>\n\n <div class=\"rtsee-rates-group-right-header\">\n <span\n class=\"rtsee-rates-group-date\"\n itemprop=\"datePublished\"\n [attr.content]=\"group.createdAt\"\n >{{\n group.createdAt | date: \"short\"\n }}</span>\n\n @if (showActions) {\n <div class=\"rtsee-rates-group-actions\">\n <p-button\n (click)=\"onEdit($event)\"\n [severity]=\"'secondary'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-edit\"\n >\n <span class=\"pi pi-pencil\"></span>\n </p-button>\n <p-button\n (click)=\"onDelete($event)\"\n [severity]=\"'danger'\"\n [text]=\"true\"\n class=\"rtsee-rates-group-btn-delete\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n </div>\n }\n </div>\n </div>\n <div class=\"rtsee-rates-group-body\">\n @for (rate of group.rates; track rate.id) {\n <div class=\"rtsee-rates-group-rate-item-container\">\n <div class=\"rtsee-rates-group-rate-item\">\n <span class=\"rtsee-rates-group-rate-config-name\">{{\n getRatingConfigName(rate.configurationId)\n }}</span>\n <rtsee-rating [rate]=\"rate\"></rtsee-rating>\n </div>\n @if (rate.text) {\n <p class=\"rtsee-rates-group-rate-comment\" itemprop=\"reviewBody\" data-ugc=\"true\" rel=\"ugc\">\"{{ rate.text }}\"</p>\n }\n </div>\n }\n </div>\n</div>\n" }]
10172
- }], propDecorators: { group: [{
10173
- type: Input
10174
- }], rater: [{
10175
- type: Input
10176
- }], showActions: [{
10177
- type: Input
10178
- }], edit: [{
10179
- type: Output
10180
- }], delete: [{
10181
- type: Output
10182
- }] } });
10183
-
10184
- class RaterComponent {
10185
- constructor() {
10186
- this.isEditing = false;
10187
- this.showMissingRateError = false;
10188
- this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
10189
- }
10190
- ngOnInit() {
10191
- this.getRatingConfigurations()
10192
- .then(() => {
10193
- console.log('Getting rating configurations...');
10194
- })
10195
- .catch((error) => {
10196
- console.error(error);
10197
- });
10198
- }
10199
- async sendRate() {
10200
- const rates = this.rater.configsWithRates
10201
- .map((config) => config.rate)
10202
- .filter((r) => !!r);
10203
- const hasInvalidRate = rates.length === 0 ||
10204
- rates.some((r) => typeof r.value !== 'number' || !Number.isFinite(r.value) || r.value <= 0);
10205
- if (hasInvalidRate) {
10206
- this.showMissingRateError = true;
10207
- return;
10208
- }
10209
- this.showMissingRateError = false;
10210
- if (this.rater.userRateGroup) {
10211
- await this.rater.editRateGroup({
10212
- ...this.rater.userRateGroup,
10213
- rates,
10214
- });
10215
- }
10216
- else {
10217
- await this.rater.createRateGroup({
10218
- entityId: this.rater.entityId,
10219
- peerId: this.rater.peer.clientId,
10220
- rates,
10221
- applicationId: this.rater.applicationId,
10222
- createdAt: new Date(),
10223
- peer: this.rater.peer,
10224
- });
10225
- }
10226
- this.isEditing = false;
10227
- }
10228
- async deleteRate() {
10229
- if (this.rater.userRateGroup) {
10230
- await this.rater.deleteRateGroup(this.rater.userRateGroup.id);
10231
- }
10232
- }
10233
- startEdit() {
10234
- this.showMissingRateError = false;
10235
- this.isEditing = true;
10236
- }
10237
- async getRatingConfigurations() {
10238
- if (!this.rater || !this.entity) {
10239
- console.log('No rater or entity found.');
10240
- return [];
10241
- }
10242
- const rates = await this.rater.getRates();
10243
- console.log('Rates found.', rates);
10244
- return rates;
10245
- }
10246
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RaterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10247
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RaterComponent, isStandalone: true, selector: "rtsee-rater", inputs: { entity: "entity", rater: "rater" }, ngImport: i0, template: "<div class=\"rtsee-rater\" [ngClass]=\"{'rtsee-rater-view-mode': rater.userRateGroup && !isEditing}\">\n @if (rater.userRateGroup && !isEditing) {\n <rtsee-rate-item\n [group]=\"rater.userRateGroup\"\n [rater]=\"rater\"\n [showActions]=\"true\"\n (edit)=\"startEdit()\"\n (delete)=\"deleteRate()\"\n ></rtsee-rate-item>\n } @else {\n <div class=\"rtsee-rater-user-header\">\n @if (rater.peer?.imageUrl) {\n <img\n class=\"rtsee-rater-avatar\"\n [src]=\"rater.peer?.imageUrl\"\n alt=\"User avatar\"\n />\n } @else {\n <div class=\"rtsee-rater-avatar-fallback\">\n {{ (rater.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <div class=\"rtsee-rater-user-info\">\n <span class=\"rtsee-rater-user-name\">{{\n rater.peer?.name || \"Anonymous\"\n }}</span>\n <span class=\"rtsee-rater-user-status\">Rating publicly</span>\n </div>\n </div>\n <hr class=\"rtsee-rater-divider\" />\n @for (config of rater.configsWithRates; track config.id) {\n <rtsee-rate-input\n [config]=\"config\"\n [showMissingRateError]=\"showMissingRateError\"\n ></rtsee-rate-input>\n }\n <div class=\"rtsee-rater-actions\">\n @if (rater.userRateGroup) {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'success'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_UPDATE]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-update rts-action-button\"\n >\n <span class=\"pi pi-check\"></span>\n </p-button>\n <p-button\n (click)=\"deleteRate()\"\n [severity]=\"'danger'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_DELETE]\"\n class=\"rtsee-rater-btn-delete rts-action-button\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n } @else {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'primary'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_SEND]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-send rts-action-button\"\n >\n <span class=\"pi pi-send\"></span>\n </p-button>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: 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: RateInputComponent, selector: "rtsee-rate-input", inputs: ["showMissingRateError", "config"] }, { kind: "component", type: RateItemComponent, selector: "rtsee-rate-item", inputs: ["group", "rater", "showActions"], outputs: ["edit", "delete"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
10248
- }
10249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RaterComponent, decorators: [{
10250
- type: Component,
10251
- args: [{ selector: 'rtsee-rater', imports: [Button, RateInputComponent, RateItemComponent, NgClass], template: "<div class=\"rtsee-rater\" [ngClass]=\"{'rtsee-rater-view-mode': rater.userRateGroup && !isEditing}\">\n @if (rater.userRateGroup && !isEditing) {\n <rtsee-rate-item\n [group]=\"rater.userRateGroup\"\n [rater]=\"rater\"\n [showActions]=\"true\"\n (edit)=\"startEdit()\"\n (delete)=\"deleteRate()\"\n ></rtsee-rate-item>\n } @else {\n <div class=\"rtsee-rater-user-header\">\n @if (rater.peer?.imageUrl) {\n <img\n class=\"rtsee-rater-avatar\"\n [src]=\"rater.peer?.imageUrl\"\n alt=\"User avatar\"\n />\n } @else {\n <div class=\"rtsee-rater-avatar-fallback\">\n {{ (rater.peer?.name || \"?\").substring(0, 1) }}\n </div>\n }\n <div class=\"rtsee-rater-user-info\">\n <span class=\"rtsee-rater-user-name\">{{\n rater.peer?.name || \"Anonymous\"\n }}</span>\n <span class=\"rtsee-rater-user-status\">Rating publicly</span>\n </div>\n </div>\n <hr class=\"rtsee-rater-divider\" />\n @for (config of rater.configsWithRates; track config.id) {\n <rtsee-rate-input\n [config]=\"config\"\n [showMissingRateError]=\"showMissingRateError\"\n ></rtsee-rate-input>\n }\n <div class=\"rtsee-rater-actions\">\n @if (rater.userRateGroup) {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'success'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_UPDATE]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-update rts-action-button\"\n >\n <span class=\"pi pi-check\"></span>\n </p-button>\n <p-button\n (click)=\"deleteRate()\"\n [severity]=\"'danger'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_DELETE]\"\n class=\"rtsee-rater-btn-delete rts-action-button\"\n >\n <span class=\"pi pi-trash\"></span>\n </p-button>\n } @else {\n <p-button\n (click)=\"sendRate()\"\n [severity]=\"'primary'\"\n [label]=\"rater.messenger.labels[RTSeeTextLabelKeys.RATER_SEND]\"\n type=\"submit\"\n class=\"rtsee-rater-btn-send rts-action-button\"\n >\n <span class=\"pi pi-send\"></span>\n </p-button>\n }\n </div>\n }\n</div>\n" }]
10252
- }], propDecorators: { entity: [{
10253
- type: Input
10254
- }], rater: [{
10255
- type: Input
10256
- }] } });
10257
-
10258
10730
  class RatesListComponent {
10259
10731
  ngOnInit() {
10260
10732
  if (this.rater) {
@@ -10846,7 +11318,7 @@ class PresentationComponent {
10846
11318
  }
10847
11319
  }
10848
11320
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10849
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationComponent, isStandalone: true, selector: "rtsee-presentation", inputs: { presentation: "presentation", messenger: "messenger", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if ((presentation.storyLoadInProgress && !presentation.openedStoryDetails && !presentation.activeStory) || (presentation.storiesListLoadInProgress && !presentation.openedStoriesList)) {\n <div class=\"rtsee-page-skeleton\" aria-busy=\"true\">\n <div class=\"rtsee-page-skeleton-hero\"></div>\n <div class=\"rtsee-page-skeleton-body\">\n <rtsee-preloader [diameter]=\"18\"></rtsee-preloader>\n </div>\n </div>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\"\n [attr.aria-busy]=\"(presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) && !presentation.categories.length ? 'true' : null\"\n >\n @if (presentation.homeListGroup?.items?.length) {\n <div\n class=\"rtsee-presentation-lists-row\"\n role=\"navigation\"\n aria-label=\"Curated Story Lists\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n >\n <meta itemprop=\"numberOfItems\" [attr.content]=\"presentation.homeListGroup!.items.length\" />\n @for (listItem of presentation.homeListGroup!.items; track listItem.id; let idx = $index) {\n <div\n class=\"rtsee-presentation-list-thumbnail-container\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n [priority]=\"idx === 0\"\n [eager]=\"idx < 8\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n } @else if (presentation.homeListGroupLoadInProgress || (presentation.categoriesLoadInProgress && !presentation.categories.length)) {\n <div\n class=\"rtsee-presentation-lists-row rtsee-presentation-lists-row-skeleton\"\n aria-hidden=\"true\"\n >\n @for (cardIdx of skeletonListCards; track cardIdx) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <div class=\"rtsee-skeleton-list-card\">\n <div class=\"rtsee-skeleton-list-card-top\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-rating\"></span>\n </div>\n <div class=\"rtsee-skeleton-list-card-bottom\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-count\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-lg\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-sm\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id; let sessIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && sessIdx === 0\"\n [eager]=\"!presentation.homeListGroup?.items?.length && sessIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.categories.length) {\n @for (category of presentation.categories; track category.id; let catIdx = $index) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id; let storyIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && !presentation.activeSessionsStories.length && catIdx === 0 && storyIdx === 0\"\n [eager]=\"catIdx < 2 && storyIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n } @else if (presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) {\n <div class=\"rtsee-presentation-categories-skeleton\" role=\"status\" aria-label=\"Loading stories\">\n @for (catIdx of skeletonCategories; track catIdx) {\n <div class=\"rtsee-presentation-category-header rtsee-presentation-category-header-skeleton\" aria-hidden=\"true\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-title\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-desc\"></span>\n </div>\n <div class=\"rtsee-presentation-stories-list rtsee-presentation-stories-list-skeleton\" aria-hidden=\"true\">\n @for (storyIdx of skeletonStoryCards; track storyIdx) {\n <div class=\"rtsee-presentation-story-thumbnail-container rtsee-skeleton-story-card\">\n <div class=\"rtsee-skeleton-shimmer rtsee-skeleton-story-cover\"></div>\n <div class=\"rtsee-skeleton-story-body\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-1\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-2\"></span>\n <div class=\"rtsee-skeleton-story-meta\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-rate\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-time\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-story-meta-age\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PresentationHeaderComponent, selector: "rtsee-presentation-header", inputs: ["presentation"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation", "priority", "eager"] }, { kind: "component", type: StoryPlayerComponent, selector: "rtsee-story-player", inputs: ["story", "settings", "presentation"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: PresentationsDashboardComponent, selector: "rtsee-presentations-dashboard", inputs: ["dashboard"] }, { kind: "component", type: PresentationSettingsComponent, selector: "rtsee-presentation-settings", inputs: ["settings", "presentation"] }, { kind: "component", type: StoryDetailsComponent, selector: "rtsee-story-details", inputs: ["story", "presentation", "messenger"] }, { kind: "component", type: StoriesListComponent, selector: "rtsee-stories-list", inputs: ["list", "presentation", "messenger"] }, { kind: "component", type: StoriesListThumbnailComponent, selector: "rtsee-stories-list-thumbnail", inputs: ["list", "presentation", "listRoutePrefix", "priority", "eager"] }] }); }
11321
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationComponent, isStandalone: true, selector: "rtsee-presentation", inputs: { presentation: "presentation", messenger: "messenger", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if ((presentation.storyLoadInProgress && !presentation.openedStoryDetails && !presentation.activeStory) || (presentation.storiesListLoadInProgress && !presentation.openedStoriesList)) {\n <div class=\"rtsee-page-skeleton\" aria-busy=\"true\">\n <div class=\"rtsee-page-skeleton-hero\"></div>\n <div class=\"rtsee-page-skeleton-body\">\n <rtsee-preloader [diameter]=\"18\"></rtsee-preloader>\n </div>\n </div>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\"\n [attr.aria-busy]=\"(presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) && !presentation.categories.length ? 'true' : null\"\n >\n @if (presentation.homeListGroup?.items?.length) {\n <div\n class=\"rtsee-presentation-lists-row\"\n role=\"navigation\"\n aria-label=\"Curated Story Lists\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n >\n <meta itemprop=\"numberOfItems\" [attr.content]=\"presentation.homeListGroup!.items.length\" />\n @for (listItem of presentation.homeListGroup!.items; track listItem.id; let idx = $index) {\n <div\n class=\"rtsee-presentation-list-thumbnail-container\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n [priority]=\"idx === 0\"\n [eager]=\"idx < 8\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n } @else if (presentation.homeListGroupLoadInProgress || (presentation.categoriesLoadInProgress && !presentation.categories.length)) {\n <div\n class=\"rtsee-presentation-lists-row rtsee-presentation-lists-row-skeleton\"\n aria-hidden=\"true\"\n >\n @for (cardIdx of skeletonListCards; track cardIdx) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <div class=\"rtsee-skeleton-list-card\">\n <div class=\"rtsee-skeleton-list-card-top\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-rating\"></span>\n </div>\n <div class=\"rtsee-skeleton-list-card-bottom\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-count\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-lg\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-sm\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id; let sessIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && sessIdx === 0\"\n [eager]=\"!presentation.homeListGroup?.items?.length && sessIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.categories.length) {\n @for (category of presentation.categories; track category.id; let catIdx = $index) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id; let storyIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && !presentation.activeSessionsStories.length && catIdx === 0 && storyIdx === 0\"\n [eager]=\"catIdx < 2 && storyIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n } @else if (presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) {\n <div class=\"rtsee-presentation-categories-skeleton\" role=\"status\" aria-label=\"Loading stories\">\n @for (catIdx of skeletonCategories; track catIdx) {\n <div class=\"rtsee-presentation-category-header rtsee-presentation-category-header-skeleton\" aria-hidden=\"true\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-title\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-desc\"></span>\n </div>\n <div class=\"rtsee-presentation-stories-list rtsee-presentation-stories-list-skeleton\" aria-hidden=\"true\">\n @for (storyIdx of skeletonStoryCards; track storyIdx) {\n <div class=\"rtsee-presentation-story-thumbnail-container rtsee-skeleton-story-card\">\n <div class=\"rtsee-skeleton-shimmer rtsee-skeleton-story-cover\"></div>\n <div class=\"rtsee-skeleton-story-body\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-1\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-2\"></span>\n <div class=\"rtsee-skeleton-story-meta\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-rate\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-time\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-story-meta-age\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PresentationHeaderComponent, selector: "rtsee-presentation-header", inputs: ["presentation"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation", "priority", "eager"] }, { kind: "component", type: StoryPlayerComponent, selector: "rtsee-story-player", inputs: ["story", "settings", "presentation", "messenger"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: PresentationsDashboardComponent, selector: "rtsee-presentations-dashboard", inputs: ["dashboard"] }, { kind: "component", type: PresentationSettingsComponent, selector: "rtsee-presentation-settings", inputs: ["settings", "presentation"] }, { kind: "component", type: StoryDetailsComponent, selector: "rtsee-story-details", inputs: ["story", "presentation", "messenger"] }, { kind: "component", type: StoriesListComponent, selector: "rtsee-stories-list", inputs: ["list", "presentation", "messenger"] }, { kind: "component", type: StoriesListThumbnailComponent, selector: "rtsee-stories-list-thumbnail", inputs: ["list", "presentation", "listRoutePrefix", "priority", "eager"] }] }); }
10850
11322
  }
10851
11323
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, decorators: [{
10852
11324
  type: Component,
@@ -10861,7 +11333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
10861
11333
  StoryDetailsComponent,
10862
11334
  StoriesListComponent,
10863
11335
  StoriesListThumbnailComponent,
10864
- ], standalone: true, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if ((presentation.storyLoadInProgress && !presentation.openedStoryDetails && !presentation.activeStory) || (presentation.storiesListLoadInProgress && !presentation.openedStoriesList)) {\n <div class=\"rtsee-page-skeleton\" aria-busy=\"true\">\n <div class=\"rtsee-page-skeleton-hero\"></div>\n <div class=\"rtsee-page-skeleton-body\">\n <rtsee-preloader [diameter]=\"18\"></rtsee-preloader>\n </div>\n </div>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\"\n [attr.aria-busy]=\"(presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) && !presentation.categories.length ? 'true' : null\"\n >\n @if (presentation.homeListGroup?.items?.length) {\n <div\n class=\"rtsee-presentation-lists-row\"\n role=\"navigation\"\n aria-label=\"Curated Story Lists\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n >\n <meta itemprop=\"numberOfItems\" [attr.content]=\"presentation.homeListGroup!.items.length\" />\n @for (listItem of presentation.homeListGroup!.items; track listItem.id; let idx = $index) {\n <div\n class=\"rtsee-presentation-list-thumbnail-container\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n [priority]=\"idx === 0\"\n [eager]=\"idx < 8\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n } @else if (presentation.homeListGroupLoadInProgress || (presentation.categoriesLoadInProgress && !presentation.categories.length)) {\n <div\n class=\"rtsee-presentation-lists-row rtsee-presentation-lists-row-skeleton\"\n aria-hidden=\"true\"\n >\n @for (cardIdx of skeletonListCards; track cardIdx) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <div class=\"rtsee-skeleton-list-card\">\n <div class=\"rtsee-skeleton-list-card-top\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-rating\"></span>\n </div>\n <div class=\"rtsee-skeleton-list-card-bottom\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-count\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-lg\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-sm\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id; let sessIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && sessIdx === 0\"\n [eager]=\"!presentation.homeListGroup?.items?.length && sessIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.categories.length) {\n @for (category of presentation.categories; track category.id; let catIdx = $index) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id; let storyIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && !presentation.activeSessionsStories.length && catIdx === 0 && storyIdx === 0\"\n [eager]=\"catIdx < 2 && storyIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n } @else if (presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) {\n <div class=\"rtsee-presentation-categories-skeleton\" role=\"status\" aria-label=\"Loading stories\">\n @for (catIdx of skeletonCategories; track catIdx) {\n <div class=\"rtsee-presentation-category-header rtsee-presentation-category-header-skeleton\" aria-hidden=\"true\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-title\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-desc\"></span>\n </div>\n <div class=\"rtsee-presentation-stories-list rtsee-presentation-stories-list-skeleton\" aria-hidden=\"true\">\n @for (storyIdx of skeletonStoryCards; track storyIdx) {\n <div class=\"rtsee-presentation-story-thumbnail-container rtsee-skeleton-story-card\">\n <div class=\"rtsee-skeleton-shimmer rtsee-skeleton-story-cover\"></div>\n <div class=\"rtsee-skeleton-story-body\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-1\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-2\"></span>\n <div class=\"rtsee-skeleton-story-meta\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-rate\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-time\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-story-meta-age\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n" }]
11336
+ ], standalone: true, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if ((presentation.storyLoadInProgress && !presentation.openedStoryDetails && !presentation.activeStory) || (presentation.storiesListLoadInProgress && !presentation.openedStoriesList)) {\n <div class=\"rtsee-page-skeleton\" aria-busy=\"true\">\n <div class=\"rtsee-page-skeleton-hero\"></div>\n <div class=\"rtsee-page-skeleton-body\">\n <rtsee-preloader [diameter]=\"18\"></rtsee-preloader>\n </div>\n </div>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\"\n [attr.aria-busy]=\"(presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) && !presentation.categories.length ? 'true' : null\"\n >\n @if (presentation.homeListGroup?.items?.length) {\n <div\n class=\"rtsee-presentation-lists-row\"\n role=\"navigation\"\n aria-label=\"Curated Story Lists\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n >\n <meta itemprop=\"numberOfItems\" [attr.content]=\"presentation.homeListGroup!.items.length\" />\n @for (listItem of presentation.homeListGroup!.items; track listItem.id; let idx = $index) {\n <div\n class=\"rtsee-presentation-list-thumbnail-container\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n [priority]=\"idx === 0\"\n [eager]=\"idx < 8\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n } @else if (presentation.homeListGroupLoadInProgress || (presentation.categoriesLoadInProgress && !presentation.categories.length)) {\n <div\n class=\"rtsee-presentation-lists-row rtsee-presentation-lists-row-skeleton\"\n aria-hidden=\"true\"\n >\n @for (cardIdx of skeletonListCards; track cardIdx) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <div class=\"rtsee-skeleton-list-card\">\n <div class=\"rtsee-skeleton-list-card-top\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-rating\"></span>\n </div>\n <div class=\"rtsee-skeleton-list-card-bottom\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-list-count\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-lg\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-list-title-sm\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id; let sessIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && sessIdx === 0\"\n [eager]=\"!presentation.homeListGroup?.items?.length && sessIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.categories.length) {\n @for (category of presentation.categories; track category.id; let catIdx = $index) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id; let storyIdx = $index) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n [priority]=\"!presentation.homeListGroup?.items?.length && !presentation.activeSessionsStories.length && catIdx === 0 && storyIdx === 0\"\n [eager]=\"catIdx < 2 && storyIdx < 8\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n } @else if (presentation.categoriesLoadInProgress || presentation.homeListGroupLoadInProgress) {\n <div class=\"rtsee-presentation-categories-skeleton\" role=\"status\" aria-label=\"Loading stories\">\n @for (catIdx of skeletonCategories; track catIdx) {\n <div class=\"rtsee-presentation-category-header rtsee-presentation-category-header-skeleton\" aria-hidden=\"true\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-title\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-category-desc\"></span>\n </div>\n <div class=\"rtsee-presentation-stories-list rtsee-presentation-stories-list-skeleton\" aria-hidden=\"true\">\n @for (storyIdx of skeletonStoryCards; track storyIdx) {\n <div class=\"rtsee-presentation-story-thumbnail-container rtsee-skeleton-story-card\">\n <div class=\"rtsee-skeleton-shimmer rtsee-skeleton-story-cover\"></div>\n <div class=\"rtsee-skeleton-story-body\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-1\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-title-2\"></span>\n <div class=\"rtsee-skeleton-story-meta\">\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-rate\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-line rtsee-skeleton-story-meta-time\"></span>\n <span class=\"rtsee-skeleton-shimmer rtsee-skeleton-pill rtsee-skeleton-story-meta-age\"></span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n" }]
10865
11337
  }], ctorParameters: () => [], propDecorators: { presentation: [{
10866
11338
  type: Input
10867
11339
  }], messenger: [{
@@ -12323,6 +12795,8 @@ class RTSeeModule {
12323
12795
  ContactsMultiselectComponent,
12324
12796
  ResetPasswordComponent,
12325
12797
  ChatComponent,
12798
+ MessageComponent,
12799
+ MessagesListComponent,
12326
12800
  ChatInputComponent,
12327
12801
  MessengerComponent,
12328
12802
  RTSeeContainerComponent,
@@ -12434,5 +12908,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
12434
12908
  * Generated bundle index. Do not edit.
12435
12909
  */
12436
12910
 
12437
- export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, InviteModalComponent, ManageEntitiesListComponent, ManageEntitiesListGroupComponent, ManageEntitiesListGroupsComponent, ManageEntitiesListsComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, ProfileOpenedWidgetComponent, ProgressiveImageDirective, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskActionComponent, RTSeeTaskComponent, RefineStoriesListFormStepComponent, RefineStoriesListWorkflowForm, RequestDemoClickedWidgetComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, SlideNumberChangedWidgetComponent, SlideTaskActionThumbnailComponent, StoriesListComponent, StoriesListLinkStepComponent, StoriesListThumbnailComponent, StoryDetailsComponent, StoryDetailsOpenedWidgetComponent, StoryElementsSectionComponent, StoryReadingStartedWidgetComponent, StoryTaskActionThumbnailComponent, StoryThumbnailComponent, TaskActionPromptComponent, TaskActionThumbnailComponent, TaskActionWidgetsService, TestChatNowClickedWidgetComponent, TranslateStoriesListFormStepComponent, TranslateStoriesListWorkflowForm, TranslationsPanelComponent, WorkflowStepsService };
12911
+ export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, InviteModalComponent, ManageEntitiesListComponent, ManageEntitiesListGroupComponent, ManageEntitiesListGroupsComponent, ManageEntitiesListsComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, ProfileOpenedWidgetComponent, ProgressiveImageDirective, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskActionComponent, RTSeeTaskComponent, RefineStoriesListFormStepComponent, RefineStoriesListWorkflowForm, RequestDemoClickedWidgetComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, SlideNumberChangedWidgetComponent, SlideTaskActionThumbnailComponent, StoriesListComponent, StoriesListLinkStepComponent, StoriesListThumbnailComponent, StoryDetailsComponent, StoryDetailsOpenedWidgetComponent, StoryElementsSectionComponent, StoryFinalSlideComponent, StoryReadingStartedWidgetComponent, StoryTaskActionThumbnailComponent, StoryThumbnailComponent, TaskActionPromptComponent, TaskActionThumbnailComponent, TaskActionWidgetsService, TestChatNowClickedWidgetComponent, TranslateStoriesListFormStepComponent, TranslateStoriesListWorkflowForm, TranslationsPanelComponent, WorkflowStepsService };
12438
12912
  //# sourceMappingURL=rtsee-ngx.mjs.map