@rtsee/ngx 0.0.133 → 0.0.134

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.
@@ -84,7 +84,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
84
84
  /**
85
85
  * Progressive image upgrade directive (`img[rtseeProgressiveImg]`).
86
86
  * Loads `initialSrc` (e.g. `smImageUrl` on heroes or `xsImageUrl` on thumbnails) first for instant LCP,
87
- * then decodes `fullSrc` off-thread once visible and swaps `src` seamlessly with zero layout shift.
87
+ * skips redundant high-res downloads when `initialSrc` already covers the rendered viewport/DPR or
88
+ * on constrained cellular connections, and defers LCP-candidate hero swaps until after first user
89
+ * interaction so Chrome never resets the Largest Contentful Paint timestamp during page load.
88
90
  */
89
91
  class ProgressiveImageDirective {
90
92
  constructor(elRef, renderer, ngZone, platformId) {
@@ -96,6 +98,7 @@ class ProgressiveImageDirective {
96
98
  this.pendingTimer = null;
97
99
  this.removeLoadListener = null;
98
100
  this.removeErrorListener = null;
101
+ this.removeInteractionListeners = null;
99
102
  this.runId = 0;
100
103
  this.destroyed = false;
101
104
  this.isBrowser = isPlatformBrowser(platformId);
@@ -135,11 +138,30 @@ class ProgressiveImageDirective {
135
138
  };
136
139
  imgEl.addEventListener('error', onError, { once: true });
137
140
  this.removeErrorListener = () => imgEl.removeEventListener('error', onError);
141
+ if (this.isConstrainedNetwork()) {
142
+ return;
143
+ }
138
144
  const afterInitialLoaded = () => {
139
145
  if (this.destroyed || currentRun !== this.runId) {
140
146
  return;
141
147
  }
142
- if (this.eager || typeof IntersectionObserver === 'undefined') {
148
+ if (!this.needsHigherResolution(imgEl)) {
149
+ return;
150
+ }
151
+ const isLcpHero = this.eager || imgEl.getAttribute('fetchpriority') === 'high';
152
+ if (isLcpHero) {
153
+ // Defer hero upgrade until first user input so LCP locks onto the fast sm variant
154
+ this.waitForUserInteraction(() => {
155
+ if (this.destroyed || currentRun !== this.runId) {
156
+ return;
157
+ }
158
+ if (this.needsHigherResolution(imgEl)) {
159
+ this.scheduleUpgrade(targetUrl, currentRun);
160
+ }
161
+ });
162
+ return;
163
+ }
164
+ if (typeof IntersectionObserver === 'undefined') {
143
165
  this.scheduleUpgrade(targetUrl, currentRun);
144
166
  return;
145
167
  }
@@ -147,9 +169,11 @@ class ProgressiveImageDirective {
147
169
  if (entries.some((e) => e.isIntersecting)) {
148
170
  this.observer?.disconnect();
149
171
  this.observer = null;
150
- this.scheduleUpgrade(targetUrl, currentRun);
172
+ if (this.needsHigherResolution(imgEl)) {
173
+ this.scheduleUpgrade(targetUrl, currentRun);
174
+ }
151
175
  }
152
- }, { rootMargin: '200px' });
176
+ }, { rootMargin: '120px' });
153
177
  this.observer.observe(imgEl);
154
178
  };
155
179
  if (imgEl.complete && imgEl.naturalWidth > 0) {
@@ -162,8 +186,75 @@ class ProgressiveImageDirective {
162
186
  }
163
187
  });
164
188
  }
189
+ isConstrainedNetwork() {
190
+ if (typeof navigator === 'undefined') {
191
+ return false;
192
+ }
193
+ const conn = navigator.connection;
194
+ if (!conn) {
195
+ return false;
196
+ }
197
+ if (conn.saveData) {
198
+ return true;
199
+ }
200
+ const eff = (conn.effectiveType || '').toLowerCase();
201
+ return eff === 'slow-2g' || eff === '2g' || eff === '3g';
202
+ }
203
+ needsHigherResolution(imgEl) {
204
+ const loadedWidth = imgEl.naturalWidth || 0;
205
+ if (!loadedWidth) {
206
+ return true;
207
+ }
208
+ const cssWidth = imgEl.clientWidth ||
209
+ imgEl.getBoundingClientRect().width ||
210
+ (typeof window !== 'undefined' ? window.innerWidth : 0);
211
+ if (!cssWidth) {
212
+ return false;
213
+ }
214
+ // On mobile viewports (<= 768px), 640px sm WebP behind hero overlays and 280px xs WebP
215
+ // in <= 160px thumbnails are already crisp; avoid downloading multi-MB originals.
216
+ if (typeof window !== 'undefined' && window.innerWidth <= 768) {
217
+ return loadedWidth < cssWidth * 1.15;
218
+ }
219
+ const dpr = typeof window !== 'undefined'
220
+ ? Math.min(window.devicePixelRatio || 1, 2)
221
+ : 1;
222
+ const neededWidth = cssWidth * dpr;
223
+ return loadedWidth < neededWidth * 0.85;
224
+ }
225
+ waitForUserInteraction(callback) {
226
+ if (typeof window === 'undefined') {
227
+ return;
228
+ }
229
+ const events = [
230
+ 'pointerdown',
231
+ 'wheel',
232
+ 'touchstart',
233
+ 'keydown',
234
+ ];
235
+ let fired = false;
236
+ const handler = () => {
237
+ if (fired) {
238
+ return;
239
+ }
240
+ fired = true;
241
+ if (this.removeInteractionListeners) {
242
+ this.removeInteractionListeners();
243
+ this.removeInteractionListeners = null;
244
+ }
245
+ callback();
246
+ };
247
+ for (const ev of events) {
248
+ window.addEventListener(ev, handler, { passive: true, once: true });
249
+ }
250
+ this.removeInteractionListeners = () => {
251
+ for (const ev of events) {
252
+ window.removeEventListener(ev, handler);
253
+ }
254
+ };
255
+ }
165
256
  scheduleUpgrade(targetUrl, expectedRun) {
166
- const delayMs = this.eager ? 120 : 60;
257
+ const delayMs = 80;
167
258
  this.pendingTimer = setTimeout(() => {
168
259
  this.pendingTimer = null;
169
260
  if (this.destroyed || expectedRun !== this.runId) {
@@ -205,6 +296,10 @@ class ProgressiveImageDirective {
205
296
  this.removeErrorListener();
206
297
  this.removeErrorListener = null;
207
298
  }
299
+ if (this.removeInteractionListeners) {
300
+ this.removeInteractionListeners();
301
+ this.removeInteractionListeners = null;
302
+ }
208
303
  }
209
304
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ProgressiveImageDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive }); }
210
305
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", type: ProgressiveImageDirective, isStandalone: true, selector: "img[rtseeProgressiveImg]", inputs: { initialSrc: "initialSrc", fullSrc: "fullSrc", eager: "eager" }, usesOnChanges: true, ngImport: i0 }); }
@@ -2260,6 +2355,7 @@ class RatingComponent {
2260
2355
  this.stars = [];
2261
2356
  this.mutable = false;
2262
2357
  this.rateValue = 0;
2358
+ this.includeMicrodata = true;
2263
2359
  }
2264
2360
  ngOnInit() {
2265
2361
  this.init();
@@ -2301,15 +2397,17 @@ class RatingComponent {
2301
2397
  this.init();
2302
2398
  }
2303
2399
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2304
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RatingComponent, isStandalone: true, selector: "rtsee-rating", inputs: { config: "config", rate: "rate" }, ngImport: i0, template: "<div\n class=\"rtsee-rating\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [attr.itemprop]=\"!mutable ? 'reviewRating' : null\"\n [attr.itemscope]=\"!mutable ? '' : null\"\n [attr.itemtype]=\"!mutable ? 'https://schema.org/Rating' : null\"\n>\n @if (!mutable) {\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n }\n @for (star of stars; track $index) {\n <span class=\"rtsee-rating-star\"\n [ngClass]=\"{\n 'rtsee-rating-star-full': star === 'full',\n 'rtsee-rating-star-half': star === 'half',\n 'rtsee-rating-star-empty': star === 'empty',\n 'rtsee-rating-star-clickable': mutable\n }\"\n (click)=\"onStarClicked($index)\"\n >\u2605</span>\n }\n @if (rateValue) {\n <span class=\"rtsee-rating-number\" [attr.itemprop]=\"!mutable ? 'ratingValue' : null\">{{ rateValue | number:'1.1-1' }}</span>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
2400
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RatingComponent, isStandalone: true, selector: "rtsee-rating", inputs: { config: "config", rate: "rate", includeMicrodata: "includeMicrodata" }, ngImport: i0, template: "<div\n class=\"rtsee-rating\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [attr.itemprop]=\"!mutable && includeMicrodata ? 'reviewRating' : null\"\n [attr.itemscope]=\"!mutable && includeMicrodata ? '' : null\"\n [attr.itemtype]=\"!mutable && includeMicrodata ? 'https://schema.org/Rating' : null\"\n>\n @if (!mutable && includeMicrodata) {\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n }\n @for (star of stars; track $index) {\n <span class=\"rtsee-rating-star\"\n [ngClass]=\"{\n 'rtsee-rating-star-full': star === 'full',\n 'rtsee-rating-star-half': star === 'half',\n 'rtsee-rating-star-empty': star === 'empty',\n 'rtsee-rating-star-clickable': mutable\n }\"\n (click)=\"onStarClicked($index)\"\n >\u2605</span>\n }\n @if (rateValue) {\n <span class=\"rtsee-rating-number\" [attr.itemprop]=\"!mutable && includeMicrodata ? 'ratingValue' : null\">{{ rateValue | number:'1.1-1' }}</span>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
2305
2401
  }
2306
2402
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RatingComponent, decorators: [{
2307
2403
  type: Component,
2308
- args: [{ selector: 'rtsee-rating', imports: [NgClass, DecimalPipe], template: "<div\n class=\"rtsee-rating\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [attr.itemprop]=\"!mutable ? 'reviewRating' : null\"\n [attr.itemscope]=\"!mutable ? '' : null\"\n [attr.itemtype]=\"!mutable ? 'https://schema.org/Rating' : null\"\n>\n @if (!mutable) {\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n }\n @for (star of stars; track $index) {\n <span class=\"rtsee-rating-star\"\n [ngClass]=\"{\n 'rtsee-rating-star-full': star === 'full',\n 'rtsee-rating-star-half': star === 'half',\n 'rtsee-rating-star-empty': star === 'empty',\n 'rtsee-rating-star-clickable': mutable\n }\"\n (click)=\"onStarClicked($index)\"\n >\u2605</span>\n }\n @if (rateValue) {\n <span class=\"rtsee-rating-number\" [attr.itemprop]=\"!mutable ? 'ratingValue' : null\">{{ rateValue | number:'1.1-1' }}</span>\n }\n</div>\n" }]
2404
+ args: [{ selector: 'rtsee-rating', imports: [NgClass, DecimalPipe], template: "<div\n class=\"rtsee-rating\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [attr.itemprop]=\"!mutable && includeMicrodata ? 'reviewRating' : null\"\n [attr.itemscope]=\"!mutable && includeMicrodata ? '' : null\"\n [attr.itemtype]=\"!mutable && includeMicrodata ? 'https://schema.org/Rating' : null\"\n>\n @if (!mutable && includeMicrodata) {\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n }\n @for (star of stars; track $index) {\n <span class=\"rtsee-rating-star\"\n [ngClass]=\"{\n 'rtsee-rating-star-full': star === 'full',\n 'rtsee-rating-star-half': star === 'half',\n 'rtsee-rating-star-empty': star === 'empty',\n 'rtsee-rating-star-clickable': mutable\n }\"\n (click)=\"onStarClicked($index)\"\n >\u2605</span>\n }\n @if (rateValue) {\n <span class=\"rtsee-rating-number\" [attr.itemprop]=\"!mutable && includeMicrodata ? 'ratingValue' : null\">{{ rateValue | number:'1.1-1' }}</span>\n }\n</div>\n" }]
2309
2405
  }], propDecorators: { config: [{
2310
2406
  type: Input
2311
2407
  }], rate: [{
2312
2408
  type: Input
2409
+ }], includeMicrodata: [{
2410
+ type: Input
2313
2411
  }] } });
2314
2412
 
2315
2413
  class CallWidgetComponent {
@@ -7869,7 +7967,7 @@ class StoryThumbnailComponent {
7869
7967
  }
7870
7968
  }
7871
7969
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7872
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryThumbnailComponent, isStandalone: true, selector: "rtsee-story-thumbnail", inputs: { story: "story", presentation: "presentation" }, ngImport: i0, template: "<a [routerLink]=\"[presentation.routePrefix, story.friendlyUrl || story.id]\" class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\">\n <div class=\"rtsee-story-thumbnail-image\">\n @if (story.xsImageUrl || story.smImageUrl || story.imageUrl) {\n <img\n rtseeProgressiveImg\n [initialSrc]=\"story.xsImageUrl || story.smImageUrl || story.imageUrl\"\n [fullSrc]=\"story.smImageUrl || story.imageUrl\"\n [alt]=\"story.name\"\n class=\"rtsee-story-thumbnail-image\"\n width=\"280\"\n height=\"210\"\n loading=\"lazy\"\n decoding=\"async\"\n />\n }\n </div>\n @if (story.preselectedSlideNumber) {\n <div class=\"rtsee-story-thumbnail-progress-bar-container\">\n <div class=\"rtsee-story-thumbnail-progress-bar\">\n <div class=\"rtsee-story-thumbnail-progress-bar-inner\"\n [style.width]=\"progressPercent + '%'\"\n ></div>\n </div>\n </div>\n }\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n <div class=\"rtsee-story-thumbnail-body-meta\">\n @if (story.rating) {\n <rtsee-rating [rate]=\"{maxValue: 5, value: story.rating}\"></rtsee-rating>\n }\n @if (story.averageReadTime) {\n <span class=\"rtsee-story-thumbnail-time-container\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">\n <span>{{ Math.ceil(story.averageReadTime / 60) }}</span>\n <span>&nbsp;</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}</span>\n </span>\n </span>\n }\n @if (story.recommendedAge) {\n <span class=\"rtsee-story-thumbnail-label-container\">{{story.recommendedAge}}</span>\n }\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }] }); }
7970
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryThumbnailComponent, isStandalone: true, selector: "rtsee-story-thumbnail", inputs: { story: "story", presentation: "presentation" }, ngImport: i0, template: "<a [routerLink]=\"[presentation.routePrefix, story.friendlyUrl || story.id]\" class=\"rtsee-story-thumbnail\">\n <div class=\"rtsee-story-thumbnail-image-container\">\n <div class=\"rtsee-story-thumbnail-image\">\n @if (story.xsImageUrl || story.smImageUrl || story.imageUrl) {\n <img\n rtseeProgressiveImg\n [initialSrc]=\"story.xsImageUrl || story.smImageUrl || story.imageUrl\"\n [fullSrc]=\"story.smImageUrl || story.imageUrl\"\n [alt]=\"story.name\"\n class=\"rtsee-story-thumbnail-image\"\n width=\"280\"\n height=\"210\"\n loading=\"lazy\"\n decoding=\"async\"\n />\n }\n </div>\n @if (story.preselectedSlideNumber) {\n <div class=\"rtsee-story-thumbnail-progress-bar-container\">\n <div class=\"rtsee-story-thumbnail-progress-bar\">\n <div class=\"rtsee-story-thumbnail-progress-bar-inner\"\n [style.width]=\"progressPercent + '%'\"\n ></div>\n </div>\n </div>\n }\n </div>\n <div class=\"rtsee-story-thumbnail-body-container\">\n <h4 class=\"rtsee-story-thumbnail-title\">{{story.name}}</h4>\n <div class=\"rtsee-story-thumbnail-body-meta\">\n @if (story.rating) {\n <rtsee-rating [rate]=\"{maxValue: 5, value: story.rating}\"></rtsee-rating>\n }\n @if (story.averageReadTime) {\n <span class=\"rtsee-story-thumbnail-time-container\">\n <span class=\"rtsee-story-thumbnail-info-time-icon material-icons-outlined\">schedule</span>\n <span class=\"rtsee-story-thumbnail-info-read-time\">\n <span>{{ Math.ceil(story.averageReadTime / 60) }}</span>\n <span>&nbsp;</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}</span>\n </span>\n </span>\n }\n @if (story.recommendedAge) {\n <span class=\"rtsee-story-thumbnail-label-container\">{{story.recommendedAge}}</span>\n }\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate", "includeMicrodata"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }] }); }
7873
7971
  }
7874
7972
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryThumbnailComponent, decorators: [{
7875
7973
  type: Component,
@@ -9753,7 +9851,7 @@ class RateInputComponent {
9753
9851
  }
9754
9852
  }
9755
9853
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9756
- 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"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
9854
+ 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"] }] }); }
9757
9855
  }
9758
9856
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, decorators: [{
9759
9857
  type: Component,
@@ -9786,7 +9884,7 @@ class RateItemComponent {
9786
9884
  return config ? config.name : '';
9787
9885
  }
9788
9886
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9789
- 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"] }, { 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" }] }); }
9887
+ 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" }] }); }
9790
9888
  }
9791
9889
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, decorators: [{
9792
9890
  type: Component,
@@ -10329,7 +10427,7 @@ class StoriesListComponent {
10329
10427
  }
10330
10428
  }
10331
10429
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.ViewportScroller }, { token: i2.Router }, { token: DOCUMENT$1 }], target: i0.ɵɵFactoryTarget.Component }); }
10332
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListComponent, isStandalone: true, selector: "rtsee-stories-list", inputs: { list: "list", presentation: "presentation", messenger: "messenger" }, usesOnChanges: true, ngImport: i0, template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n <div\n itemprop=\"potentialAction\"\n itemscope\n itemtype=\"https://schema.org/CommunicateAction\"\n hidden\n >\n <meta itemprop=\"name\" [attr.content]=\"readTogetherLabel\" />\n <meta itemprop=\"description\" [attr.content]=\"readTogetherHint\" />\n </div>\n\n <!-- HERO BANNER -->\n <header class=\"rtsee-stories-list-banner\">\n @if (list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-banner-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.imageUrl\"\n [eager]=\"true\"\n [alt]=\"list.name\"\n fetchpriority=\"high\"\n decoding=\"async\"\n width=\"1200\"\n height=\"675\"\n />\n }\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-meta\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n <span class=\"rtsee-stories-list-rating-value\">{{\n list.rating | number: '1.1-1'\n }}</span>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: {{ list.ratesCount }})\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n <section\n class=\"rtsee-stories-list-read-together-panel\"\n [attr.aria-label]=\"readTogetherLabel\"\n >\n <p class=\"rtsee-stories-list-read-together-hint\">\n {{ readTogetherHint }}\n </p>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-read-together-btn\"\n (click)=\"onReadTogetherVideoCallClicked()\"\n [attr.title]=\"readTogetherHint\"\n >\n <svg\n class=\"rtsee-stories-list-read-together-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"19\"\n height=\"19\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"23 7 16 12 23 17 23 7\" />\n <rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\" />\n </svg>\n <span>{{ readTogetherLabel }}</span>\n </button>\n </section>\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <div class=\"rtsee-stories-list-item-top\">\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl) {\n <img\n rtseeProgressiveImg\n [initialSrc]=\"item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl\"\n [fullSrc]=\"item.entity?.smImageUrl || item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n width=\"112\"\n height=\"112\"\n [attr.loading]=\"idx < 3 ? 'eager' : 'lazy'\"\n decoding=\"async\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n\n <div class=\"rtsee-stories-list-item-cover-top\">\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n @if (item.entity?.rating && item.entity!.rating! > 0) {\n <div\n class=\"rtsee-stories-list-item-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"item.entity!.ratesCount || 1\" />\n <span class=\"rtsee-stories-list-item-rating-star\" aria-hidden=\"true\">\u2605</span>\n <span class=\"rtsee-stories-list-item-rating-value\" itemprop=\"ratingValue\">{{\n item.entity!.rating | number: '1.1-1'\n }}</span>\n </div>\n }\n </div>\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n @if (item.entity?.averageReadTime || item.entity?.recommendedAge) {\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n <i class=\"pi pi-clock\" aria-hidden=\"true\"></i>\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-stories-list-item-actions\">\n <a\n class=\"rtsee-stories-list-item-start-btn\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity, item.entityId)\"\n >\n <i class=\"pi pi-book\" aria-hidden=\"true\"></i>\n <span>{{\n hasReadingProgress(item)\n ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON]\n : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\n }}</span>\n </a>\n </div>\n </div>\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
10430
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListComponent, isStandalone: true, selector: "rtsee-stories-list", inputs: { list: "list", presentation: "presentation", messenger: "messenger" }, usesOnChanges: true, ngImport: i0, template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n <div\n itemprop=\"potentialAction\"\n itemscope\n itemtype=\"https://schema.org/CommunicateAction\"\n hidden\n >\n <meta itemprop=\"name\" [attr.content]=\"readTogetherLabel\" />\n <meta itemprop=\"description\" [attr.content]=\"readTogetherHint\" />\n </div>\n\n <!-- HERO BANNER -->\n <header class=\"rtsee-stories-list-banner\">\n @if (list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-banner-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.imageUrl\"\n [eager]=\"true\"\n [alt]=\"list.name\"\n fetchpriority=\"high\"\n decoding=\"async\"\n width=\"1200\"\n height=\"675\"\n />\n }\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div\n class=\"rtsee-stories-list-meta\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingValue\" [attr.content]=\"list.rating | number: '1.1-1'\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"list.ratesCount || 1\" />\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\" [includeMicrodata]=\"false\"></rtsee-rating>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: <span itemprop=\"reviewCount\">{{ list.ratesCount }}</span>)\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n <section\n class=\"rtsee-stories-list-read-together-panel\"\n [attr.aria-label]=\"readTogetherLabel\"\n >\n <p class=\"rtsee-stories-list-read-together-hint\">\n {{ readTogetherHint }}\n </p>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-read-together-btn\"\n (click)=\"onReadTogetherVideoCallClicked()\"\n [attr.title]=\"readTogetherHint\"\n >\n <svg\n class=\"rtsee-stories-list-read-together-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"19\"\n height=\"19\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"23 7 16 12 23 17 23 7\" />\n <rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\" />\n </svg>\n <span>{{ readTogetherLabel }}</span>\n </button>\n </section>\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <div class=\"rtsee-stories-list-item-top\">\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl) {\n <img\n rtseeProgressiveImg\n [initialSrc]=\"item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl\"\n [fullSrc]=\"item.entity?.smImageUrl || item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n width=\"112\"\n height=\"112\"\n loading=\"lazy\"\n decoding=\"async\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n\n <div class=\"rtsee-stories-list-item-cover-top\">\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n @if (item.entity?.rating && item.entity!.rating! > 0) {\n <div\n class=\"rtsee-stories-list-item-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"item.entity!.ratesCount || 1\" />\n <span class=\"rtsee-stories-list-item-rating-star\" aria-hidden=\"true\">\u2605</span>\n <span class=\"rtsee-stories-list-item-rating-value\" itemprop=\"ratingValue\">{{\n item.entity!.rating | number: '1.1-1'\n }}</span>\n </div>\n }\n </div>\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n @if (item.entity?.averageReadTime || item.entity?.recommendedAge) {\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n <i class=\"pi pi-clock\" aria-hidden=\"true\"></i>\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-stories-list-item-actions\">\n <a\n class=\"rtsee-stories-list-item-start-btn\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity, item.entityId)\"\n >\n <i class=\"pi pi-book\" aria-hidden=\"true\"></i>\n <span>{{\n hasReadingProgress(item)\n ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON]\n : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\n }}</span>\n </a>\n </div>\n </div>\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate", "includeMicrodata"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
10333
10431
  }
10334
10432
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListComponent, decorators: [{
10335
10433
  type: Component,
@@ -10339,7 +10437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
10339
10437
  RatingComponent,
10340
10438
  RtseeEntityPreviewComponent,
10341
10439
  ProgressiveImageDirective,
10342
- ], template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n <div\n itemprop=\"potentialAction\"\n itemscope\n itemtype=\"https://schema.org/CommunicateAction\"\n hidden\n >\n <meta itemprop=\"name\" [attr.content]=\"readTogetherLabel\" />\n <meta itemprop=\"description\" [attr.content]=\"readTogetherHint\" />\n </div>\n\n <!-- HERO BANNER -->\n <header class=\"rtsee-stories-list-banner\">\n @if (list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-banner-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.imageUrl\"\n [eager]=\"true\"\n [alt]=\"list.name\"\n fetchpriority=\"high\"\n decoding=\"async\"\n width=\"1200\"\n height=\"675\"\n />\n }\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-meta\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n <span class=\"rtsee-stories-list-rating-value\">{{\n list.rating | number: '1.1-1'\n }}</span>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: {{ list.ratesCount }})\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n <section\n class=\"rtsee-stories-list-read-together-panel\"\n [attr.aria-label]=\"readTogetherLabel\"\n >\n <p class=\"rtsee-stories-list-read-together-hint\">\n {{ readTogetherHint }}\n </p>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-read-together-btn\"\n (click)=\"onReadTogetherVideoCallClicked()\"\n [attr.title]=\"readTogetherHint\"\n >\n <svg\n class=\"rtsee-stories-list-read-together-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"19\"\n height=\"19\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"23 7 16 12 23 17 23 7\" />\n <rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\" />\n </svg>\n <span>{{ readTogetherLabel }}</span>\n </button>\n </section>\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <div class=\"rtsee-stories-list-item-top\">\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl) {\n <img\n rtseeProgressiveImg\n [initialSrc]=\"item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl\"\n [fullSrc]=\"item.entity?.smImageUrl || item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n width=\"112\"\n height=\"112\"\n [attr.loading]=\"idx < 3 ? 'eager' : 'lazy'\"\n decoding=\"async\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n\n <div class=\"rtsee-stories-list-item-cover-top\">\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n @if (item.entity?.rating && item.entity!.rating! > 0) {\n <div\n class=\"rtsee-stories-list-item-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"item.entity!.ratesCount || 1\" />\n <span class=\"rtsee-stories-list-item-rating-star\" aria-hidden=\"true\">\u2605</span>\n <span class=\"rtsee-stories-list-item-rating-value\" itemprop=\"ratingValue\">{{\n item.entity!.rating | number: '1.1-1'\n }}</span>\n </div>\n }\n </div>\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n @if (item.entity?.averageReadTime || item.entity?.recommendedAge) {\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n <i class=\"pi pi-clock\" aria-hidden=\"true\"></i>\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-stories-list-item-actions\">\n <a\n class=\"rtsee-stories-list-item-start-btn\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity, item.entityId)\"\n >\n <i class=\"pi pi-book\" aria-hidden=\"true\"></i>\n <span>{{\n hasReadingProgress(item)\n ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON]\n : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\n }}</span>\n </a>\n </div>\n </div>\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n" }]
10440
+ ], template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n <div\n itemprop=\"potentialAction\"\n itemscope\n itemtype=\"https://schema.org/CommunicateAction\"\n hidden\n >\n <meta itemprop=\"name\" [attr.content]=\"readTogetherLabel\" />\n <meta itemprop=\"description\" [attr.content]=\"readTogetherHint\" />\n </div>\n\n <!-- HERO BANNER -->\n <header class=\"rtsee-stories-list-banner\">\n @if (list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-banner-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.imageUrl\"\n [eager]=\"true\"\n [alt]=\"list.name\"\n fetchpriority=\"high\"\n decoding=\"async\"\n width=\"1200\"\n height=\"675\"\n />\n }\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div\n class=\"rtsee-stories-list-meta\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingValue\" [attr.content]=\"list.rating | number: '1.1-1'\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"list.ratesCount || 1\" />\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\" [includeMicrodata]=\"false\"></rtsee-rating>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: <span itemprop=\"reviewCount\">{{ list.ratesCount }}</span>)\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n <section\n class=\"rtsee-stories-list-read-together-panel\"\n [attr.aria-label]=\"readTogetherLabel\"\n >\n <p class=\"rtsee-stories-list-read-together-hint\">\n {{ readTogetherHint }}\n </p>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-read-together-btn\"\n (click)=\"onReadTogetherVideoCallClicked()\"\n [attr.title]=\"readTogetherHint\"\n >\n <svg\n class=\"rtsee-stories-list-read-together-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"19\"\n height=\"19\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"23 7 16 12 23 17 23 7\" />\n <rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\" />\n </svg>\n <span>{{ readTogetherLabel }}</span>\n </button>\n </section>\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <div class=\"rtsee-stories-list-item-top\">\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl) {\n <img\n rtseeProgressiveImg\n [initialSrc]=\"item.entity?.xsImageUrl || item.entity?.smImageUrl || item.entity?.imageUrl\"\n [fullSrc]=\"item.entity?.smImageUrl || item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n width=\"112\"\n height=\"112\"\n loading=\"lazy\"\n decoding=\"async\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n\n <div class=\"rtsee-stories-list-item-cover-top\">\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n @if (item.entity?.rating && item.entity!.rating! > 0) {\n <div\n class=\"rtsee-stories-list-item-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"item.entity!.ratesCount || 1\" />\n <span class=\"rtsee-stories-list-item-rating-star\" aria-hidden=\"true\">\u2605</span>\n <span class=\"rtsee-stories-list-item-rating-value\" itemprop=\"ratingValue\">{{\n item.entity!.rating | number: '1.1-1'\n }}</span>\n </div>\n }\n </div>\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n @if (item.entity?.averageReadTime || item.entity?.recommendedAge) {\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n <i class=\"pi pi-clock\" aria-hidden=\"true\"></i>\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n }\n </div>\n\n <div class=\"rtsee-stories-list-item-actions\">\n <a\n class=\"rtsee-stories-list-item-start-btn\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity, item.entityId)\"\n >\n <i class=\"pi pi-book\" aria-hidden=\"true\"></i>\n <span>{{\n hasReadingProgress(item)\n ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON]\n : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\n }}</span>\n </a>\n </div>\n </div>\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n" }]
10343
10441
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.ViewportScroller }, { type: i2.Router }, { type: Document, decorators: [{
10344
10442
  type: Inject,
10345
10443
  args: [DOCUMENT$1]
@@ -10372,11 +10470,11 @@ class StoriesListThumbnailComponent {
10372
10470
  }
10373
10471
  }
10374
10472
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10375
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListThumbnailComponent, isStandalone: true, selector: "rtsee-stories-list-thumbnail", inputs: { list: "list", presentation: "presentation", listRoutePrefix: "listRoutePrefix" }, ngImport: i0, template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [attr.aria-label]=\"list.name\"\n itemprop=\"url\"\n>\n @if (list.xsImageUrl || list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-thumbnail-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.xsImageUrl || list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.smImageUrl || list.imageUrl\"\n alt=\"\"\n width=\"280\"\n height=\"280\"\n loading=\"lazy\"\n decoding=\"async\"\n />\n }\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n @if (list.description) {\n <meta itemprop=\"description\" [attr.content]=\"list.description\" />\n }\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }} {{ storiesCountLabel }}\n </span>\n }\n <h3 class=\"rtsee-stories-list-thumbnail-title\" itemprop=\"name\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }, { kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }] }); }
10473
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListThumbnailComponent, isStandalone: true, selector: "rtsee-stories-list-thumbnail", inputs: { list: "list", presentation: "presentation", listRoutePrefix: "listRoutePrefix" }, ngImport: i0, template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [attr.aria-label]=\"list.name\"\n itemprop=\"url\"\n>\n @if (list.xsImageUrl || list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-thumbnail-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.xsImageUrl || list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.smImageUrl || list.imageUrl\"\n alt=\"\"\n width=\"280\"\n height=\"280\"\n loading=\"lazy\"\n decoding=\"async\"\n />\n }\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n @if (list.description) {\n <meta itemprop=\"description\" [attr.content]=\"list.description\" />\n }\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\" [includeMicrodata]=\"false\"></rtsee-rating>\n </div>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }} {{ storiesCountLabel }}\n </span>\n }\n <h3 class=\"rtsee-stories-list-thumbnail-title\" itemprop=\"name\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate", "includeMicrodata"] }, { kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }] }); }
10376
10474
  }
10377
10475
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, decorators: [{
10378
10476
  type: Component,
10379
- args: [{ selector: 'rtsee-stories-list-thumbnail', standalone: true, imports: [RouterLink, RatingComponent, ProgressiveImageDirective], template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [attr.aria-label]=\"list.name\"\n itemprop=\"url\"\n>\n @if (list.xsImageUrl || list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-thumbnail-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.xsImageUrl || list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.smImageUrl || list.imageUrl\"\n alt=\"\"\n width=\"280\"\n height=\"280\"\n loading=\"lazy\"\n decoding=\"async\"\n />\n }\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n @if (list.description) {\n <meta itemprop=\"description\" [attr.content]=\"list.description\" />\n }\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }} {{ storiesCountLabel }}\n </span>\n }\n <h3 class=\"rtsee-stories-list-thumbnail-title\" itemprop=\"name\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n" }]
10477
+ args: [{ selector: 'rtsee-stories-list-thumbnail', standalone: true, imports: [RouterLink, RatingComponent, ProgressiveImageDirective], template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [attr.aria-label]=\"list.name\"\n itemprop=\"url\"\n>\n @if (list.xsImageUrl || list.smImageUrl || list.imageUrl) {\n <img\n class=\"rtsee-stories-list-thumbnail-img\"\n rtseeProgressiveImg\n [initialSrc]=\"list.xsImageUrl || list.smImageUrl || list.imageUrl\"\n [fullSrc]=\"list.smImageUrl || list.imageUrl\"\n alt=\"\"\n width=\"280\"\n height=\"280\"\n loading=\"lazy\"\n decoding=\"async\"\n />\n }\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n @if (list.description) {\n <meta itemprop=\"description\" [attr.content]=\"list.description\" />\n }\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\" [includeMicrodata]=\"false\"></rtsee-rating>\n </div>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }} {{ storiesCountLabel }}\n </span>\n }\n <h3 class=\"rtsee-stories-list-thumbnail-title\" itemprop=\"name\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n" }]
10380
10478
  }], propDecorators: { list: [{
10381
10479
  type: Input
10382
10480
  }], presentation: [{
@@ -10496,6 +10594,12 @@ class RTSeeContainerComponent {
10496
10594
  ngOnInit() {
10497
10595
  this.authService.init(this.auth);
10498
10596
  this.syncPresentationMessengerRoute();
10597
+ const initialUrl = this.router.url && this.router.url !== '/'
10598
+ ? this.router.url
10599
+ : typeof window !== 'undefined'
10600
+ ? `${window.location.pathname}${window.location.search}`
10601
+ : this.router.url;
10602
+ this.defineSideNavState(initialUrl || '/');
10499
10603
  this.routeSubscription = this.router.events
10500
10604
  .pipe(
10501
10605
  // Filter for the NavigationEnd event to know when navigation is complete