@rtsee/ngx 0.0.138 → 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.
@@ -8523,13 +8523,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
8523
8523
  class PresentationHeaderComponent {
8524
8524
  constructor() {
8525
8525
  this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
8526
+ this.Math = Math;
8526
8527
  }
8527
8528
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8528
- 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"] }] }); }
8529
8530
  }
8530
8531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, decorators: [{
8531
8532
  type: Component,
8532
- 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" }]
8533
8534
  }], propDecorators: { presentation: [{
8534
8535
  type: Input
8535
8536
  }] } });
@@ -8620,11 +8621,11 @@ class SlideComponent {
8620
8621
  }
8621
8622
  }
8622
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 }); }
8623
- 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"] }] }); }
8624
8625
  }
8625
8626
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SlideComponent, decorators: [{
8626
8627
  type: Component,
8627
- 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" }]
8628
8629
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { presentation: [{
8629
8630
  type: Input
8630
8631
  }], story: [{
@@ -8635,6 +8636,322 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
8635
8636
  type: Input
8636
8637
  }] } });
8637
8638
 
8639
+ class RateItemComponent {
8640
+ constructor() {
8641
+ this.showActions = false;
8642
+ this.edit = new EventEmitter();
8643
+ this.delete = new EventEmitter();
8644
+ }
8645
+ onEdit(event) {
8646
+ event.stopPropagation();
8647
+ this.edit.emit();
8648
+ }
8649
+ onDelete(event) {
8650
+ event.stopPropagation();
8651
+ this.delete.emit();
8652
+ }
8653
+ getRatingConfigName(configId) {
8654
+ if (!this.rater) {
8655
+ return '';
8656
+ }
8657
+ const config = this.rater.ratingConfigurations.find((c) => c.id === configId);
8658
+ return config ? config.name : '';
8659
+ }
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" }] }); }
8662
+ }
8663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, decorators: [{
8664
+ type: Component,
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: [{
8667
+ type: Input
8668
+ }], rater: [{
8669
+ type: Input
8670
+ }], showActions: [{
8671
+ type: Input
8672
+ }], edit: [{
8673
+ type: Output
8674
+ }], delete: [{
8675
+ type: Output
8676
+ }] } });
8677
+
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
+
8638
8955
  /**
8639
8956
  * Story slides player.
8640
8957
  *
@@ -8702,6 +9019,10 @@ class StoryPlayerComponent {
8702
9019
  getLoadedSlide(slideNumber) {
8703
9020
  return this.story.slides.find((s) => s.slideNumber === slideNumber) || null;
8704
9021
  }
9022
+ isFinalSlide(slideNumber) {
9023
+ const storyCount = this.getStorySlidesCount();
9024
+ return storyCount > 0 && slideNumber === storyCount + 1;
9025
+ }
8705
9026
  renderVirtualSlides(data) {
8706
9027
  this.virtualData = data;
8707
9028
  // render synchronously: Swiper measures the slides right after this callback
@@ -8717,28 +9038,34 @@ class StoryPlayerComponent {
8717
9038
  // lets the cards effect re-apply transforms to the freshly rendered slides
8718
9039
  swiper.emit('_virtualUpdated');
8719
9040
  }
8720
- getSlidesCount() {
9041
+ getStorySlidesCount() {
8721
9042
  const lastLoaded = this.story.slides.length
8722
9043
  ? this.story.slides[this.story.slides.length - 1].slideNumber
8723
9044
  : 0;
8724
9045
  return Math.max(this.story.totalSlides || 0, lastLoaded);
8725
9046
  }
9047
+ getSlidesCount() {
9048
+ const storyCount = this.getStorySlidesCount();
9049
+ return storyCount > 0 ? storyCount + 1 : 0;
9050
+ }
8726
9051
  /** virtual slides are just the slide numbers: 1..N */
8727
9052
  getVirtualSlides() {
8728
9053
  return Array.from({ length: this.getSlidesCount() }, (_, i) => i + 1);
8729
9054
  }
8730
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 }); }
8731
- 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"] }] }); }
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"] }] }); }
8732
9057
  }
8733
9058
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryPlayerComponent, decorators: [{
8734
9059
  type: Component,
8735
- 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" }]
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" }]
8736
9061
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { story: [{
8737
9062
  type: Input
8738
9063
  }], settings: [{
8739
9064
  type: Input
8740
9065
  }], presentation: [{
8741
9066
  type: Input
9067
+ }], messenger: [{
9068
+ type: Input
8742
9069
  }], swiperEl: [{
8743
9070
  type: ViewChild,
8744
9071
  args: ['swiperContainer']
@@ -10400,166 +10727,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
10400
10727
  type: Input
10401
10728
  }] } });
10402
10729
 
10403
- class RateInputComponent {
10404
- constructor() {
10405
- this.sendRateForm = new FormGroup({
10406
- comment: new FormControl(''),
10407
- });
10408
- this.showMissingRateError = false;
10409
- }
10410
- set config(value) {
10411
- this._config = value;
10412
- this.updateCommentControl();
10413
- }
10414
- get config() {
10415
- return this._config;
10416
- }
10417
- ngOnInit() {
10418
- this.updateCommentControl();
10419
- }
10420
- ngOnDestroy() {
10421
- this.commentSubscription?.unsubscribe();
10422
- }
10423
- updateCommentControl() {
10424
- this.commentSubscription?.unsubscribe();
10425
- if (this._config && this._config.rate) {
10426
- this.sendRateForm
10427
- .get('comment')
10428
- ?.setValue(this._config.rate.text || '', { emitEvent: false });
10429
- this.commentSubscription = this.sendRateForm
10430
- .get('comment')
10431
- ?.valueChanges.subscribe((value) => {
10432
- if (this._config.rate) {
10433
- this._config.rate.text = value || '';
10434
- }
10435
- });
10436
- }
10437
- }
10438
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10439
- 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"] }] }); }
10440
- }
10441
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, decorators: [{
10442
- type: Component,
10443
- 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" }]
10444
- }], propDecorators: { showMissingRateError: [{
10445
- type: Input
10446
- }], config: [{
10447
- type: Input
10448
- }] } });
10449
-
10450
- class RateItemComponent {
10451
- constructor() {
10452
- this.showActions = false;
10453
- this.edit = new EventEmitter();
10454
- this.delete = new EventEmitter();
10455
- }
10456
- onEdit(event) {
10457
- event.stopPropagation();
10458
- this.edit.emit();
10459
- }
10460
- onDelete(event) {
10461
- event.stopPropagation();
10462
- this.delete.emit();
10463
- }
10464
- getRatingConfigName(configId) {
10465
- if (!this.rater) {
10466
- return '';
10467
- }
10468
- const config = this.rater.ratingConfigurations.find((c) => c.id === configId);
10469
- return config ? config.name : '';
10470
- }
10471
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10472
- 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" }] }); }
10473
- }
10474
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, decorators: [{
10475
- type: Component,
10476
- 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" }]
10477
- }], propDecorators: { group: [{
10478
- type: Input
10479
- }], rater: [{
10480
- type: Input
10481
- }], showActions: [{
10482
- type: Input
10483
- }], edit: [{
10484
- type: Output
10485
- }], delete: [{
10486
- type: Output
10487
- }] } });
10488
-
10489
- class RaterComponent {
10490
- constructor() {
10491
- this.isEditing = false;
10492
- this.showMissingRateError = false;
10493
- this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
10494
- }
10495
- ngOnInit() {
10496
- this.getRatingConfigurations()
10497
- .then(() => {
10498
- console.log('Getting rating configurations...');
10499
- })
10500
- .catch((error) => {
10501
- console.error(error);
10502
- });
10503
- }
10504
- async sendRate() {
10505
- const rates = this.rater.configsWithRates
10506
- .map((config) => config.rate)
10507
- .filter((r) => !!r);
10508
- const hasInvalidRate = rates.length === 0 ||
10509
- rates.some((r) => typeof r.value !== 'number' || !Number.isFinite(r.value) || r.value <= 0);
10510
- if (hasInvalidRate) {
10511
- this.showMissingRateError = true;
10512
- return;
10513
- }
10514
- this.showMissingRateError = false;
10515
- if (this.rater.userRateGroup) {
10516
- await this.rater.editRateGroup({
10517
- ...this.rater.userRateGroup,
10518
- rates,
10519
- });
10520
- }
10521
- else {
10522
- await this.rater.createRateGroup({
10523
- entityId: this.rater.entityId,
10524
- peerId: this.rater.peer.clientId,
10525
- rates,
10526
- applicationId: this.rater.applicationId,
10527
- createdAt: new Date(),
10528
- peer: this.rater.peer,
10529
- });
10530
- }
10531
- this.isEditing = false;
10532
- }
10533
- async deleteRate() {
10534
- if (this.rater.userRateGroup) {
10535
- await this.rater.deleteRateGroup(this.rater.userRateGroup.id);
10536
- }
10537
- }
10538
- startEdit() {
10539
- this.showMissingRateError = false;
10540
- this.isEditing = true;
10541
- }
10542
- async getRatingConfigurations() {
10543
- if (!this.rater || !this.entity) {
10544
- console.log('No rater or entity found.');
10545
- return [];
10546
- }
10547
- const rates = await this.rater.getRates();
10548
- console.log('Rates found.', rates);
10549
- return rates;
10550
- }
10551
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RaterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10552
- 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"] }] }); }
10553
- }
10554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RaterComponent, decorators: [{
10555
- type: Component,
10556
- 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" }]
10557
- }], propDecorators: { entity: [{
10558
- type: Input
10559
- }], rater: [{
10560
- type: Input
10561
- }] } });
10562
-
10563
10730
  class RatesListComponent {
10564
10731
  ngOnInit() {
10565
10732
  if (this.rater) {
@@ -11151,7 +11318,7 @@ class PresentationComponent {
11151
11318
  }
11152
11319
  }
11153
11320
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11154
- 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"] }] }); }
11155
11322
  }
11156
11323
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, decorators: [{
11157
11324
  type: Component,
@@ -11166,7 +11333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
11166
11333
  StoryDetailsComponent,
11167
11334
  StoriesListComponent,
11168
11335
  StoriesListThumbnailComponent,
11169
- ], 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" }]
11170
11337
  }], ctorParameters: () => [], propDecorators: { presentation: [{
11171
11338
  type: Input
11172
11339
  }], messenger: [{
@@ -12741,5 +12908,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
12741
12908
  * Generated bundle index. Do not edit.
12742
12909
  */
12743
12910
 
12744
- 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 };
12745
12912
  //# sourceMappingURL=rtsee-ngx.mjs.map