@rtsee/ngx 0.0.132 → 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.
- package/dist/ngx/fesm2022/rtsee-ngx.mjs +341 -35
- package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -1
- package/dist/ngx/index.d.ts +48 -4
- package/dist/ngx/src/lib/theme/messenger/messenger-header.scss +6 -0
- package/dist/ngx/src/lib/theme/presentation/presentation.scss +30 -0
- package/dist/ngx/src/lib/theme/presentation/stories-list.scss +111 -7
- package/dist/ngx/src/lib/theme/presentation/story-details.scss +86 -29
- package/dist/ngx/src/lib/theme/presentation/story-slides-preview.scss +1 -3
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Input, Component, ViewChild, EventEmitter, Output, forwardRef,
|
|
2
|
+
import { Injectable, PLATFORM_ID, Input, Inject, Directive, Component, ViewChild, EventEmitter, Output, forwardRef, reflectComponentType, DOCUMENT, HostListener, ChangeDetectionStrategy, output, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$3 from '@angular/common';
|
|
4
|
-
import { NgClass, NgIf, NgForOf, DecimalPipe, DatePipe, NgComponentOutlet, SlicePipe, JsonPipe, DOCUMENT as DOCUMENT$1, CommonModule, NgStyle, NgOptimizedImage } from '@angular/common';
|
|
4
|
+
import { isPlatformBrowser, NgClass, NgIf, NgForOf, DecimalPipe, DatePipe, NgComponentOutlet, SlicePipe, JsonPipe, DOCUMENT as DOCUMENT$1, CommonModule, NgStyle, NgOptimizedImage } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { FormsModule, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import { Select } from 'primeng/select';
|
|
@@ -38,6 +38,7 @@ import relativeTime from 'dayjs/plugin/relativeTime';
|
|
|
38
38
|
import shave from 'shave';
|
|
39
39
|
import { loadStripe } from '@stripe/stripe-js';
|
|
40
40
|
import { Card } from 'primeng/card';
|
|
41
|
+
import { RTSeeRoutesList } from '@rtsee/factory';
|
|
41
42
|
import { CdkCopyToClipboard } from '@angular/cdk/clipboard';
|
|
42
43
|
import { Toast } from 'primeng/toast';
|
|
43
44
|
import * as i1$4 from 'primeng/api';
|
|
@@ -53,7 +54,6 @@ import { CdkDropList, CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
|
53
54
|
import { Slider } from 'primeng/slider';
|
|
54
55
|
import { Tag } from 'primeng/tag';
|
|
55
56
|
import { SelectButton } from 'primeng/selectbutton';
|
|
56
|
-
import { RTSeeRoutesList } from '@rtsee/factory';
|
|
57
57
|
import { Avatar } from 'primeng/avatar';
|
|
58
58
|
import { Image as Image$1 } from 'primeng/image';
|
|
59
59
|
import { PanelMenu } from 'primeng/panelmenu';
|
|
@@ -81,6 +81,246 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
81
81
|
}]
|
|
82
82
|
}], ctorParameters: () => [] });
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Progressive image upgrade directive (`img[rtseeProgressiveImg]`).
|
|
86
|
+
* Loads `initialSrc` (e.g. `smImageUrl` on heroes or `xsImageUrl` on thumbnails) first for instant LCP,
|
|
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.
|
|
90
|
+
*/
|
|
91
|
+
class ProgressiveImageDirective {
|
|
92
|
+
constructor(elRef, renderer, ngZone, platformId) {
|
|
93
|
+
this.elRef = elRef;
|
|
94
|
+
this.renderer = renderer;
|
|
95
|
+
this.ngZone = ngZone;
|
|
96
|
+
this.eager = false;
|
|
97
|
+
this.observer = null;
|
|
98
|
+
this.pendingTimer = null;
|
|
99
|
+
this.removeLoadListener = null;
|
|
100
|
+
this.removeErrorListener = null;
|
|
101
|
+
this.removeInteractionListeners = null;
|
|
102
|
+
this.runId = 0;
|
|
103
|
+
this.destroyed = false;
|
|
104
|
+
this.isBrowser = isPlatformBrowser(platformId);
|
|
105
|
+
}
|
|
106
|
+
ngOnChanges(changes) {
|
|
107
|
+
if (changes['initialSrc'] || changes['fullSrc'] || changes['eager']) {
|
|
108
|
+
this.setupProgressiveLoad();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
ngOnDestroy() {
|
|
112
|
+
this.destroyed = true;
|
|
113
|
+
this.cleanupPending();
|
|
114
|
+
}
|
|
115
|
+
setupProgressiveLoad() {
|
|
116
|
+
this.cleanupPending();
|
|
117
|
+
const currentRun = ++this.runId;
|
|
118
|
+
const imgEl = this.elRef.nativeElement;
|
|
119
|
+
const startUrl = (this.initialSrc || this.fullSrc || '').trim();
|
|
120
|
+
const targetUrl = (this.fullSrc || this.initialSrc || '').trim();
|
|
121
|
+
if (!startUrl) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (imgEl.getAttribute('src') !== startUrl) {
|
|
125
|
+
this.renderer.setAttribute(imgEl, 'src', startUrl);
|
|
126
|
+
}
|
|
127
|
+
if (!this.isBrowser || !targetUrl || targetUrl === startUrl) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this.ngZone.runOutsideAngular(() => {
|
|
131
|
+
// If initial variant fails for any reason, fall back immediately to fullSrc
|
|
132
|
+
const onError = () => {
|
|
133
|
+
if (this.destroyed || currentRun !== this.runId) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
this.cleanupPending();
|
|
137
|
+
this.renderer.setAttribute(imgEl, 'src', targetUrl);
|
|
138
|
+
};
|
|
139
|
+
imgEl.addEventListener('error', onError, { once: true });
|
|
140
|
+
this.removeErrorListener = () => imgEl.removeEventListener('error', onError);
|
|
141
|
+
if (this.isConstrainedNetwork()) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const afterInitialLoaded = () => {
|
|
145
|
+
if (this.destroyed || currentRun !== this.runId) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
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') {
|
|
165
|
+
this.scheduleUpgrade(targetUrl, currentRun);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
this.observer = new IntersectionObserver((entries) => {
|
|
169
|
+
if (entries.some((e) => e.isIntersecting)) {
|
|
170
|
+
this.observer?.disconnect();
|
|
171
|
+
this.observer = null;
|
|
172
|
+
if (this.needsHigherResolution(imgEl)) {
|
|
173
|
+
this.scheduleUpgrade(targetUrl, currentRun);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}, { rootMargin: '120px' });
|
|
177
|
+
this.observer.observe(imgEl);
|
|
178
|
+
};
|
|
179
|
+
if (imgEl.complete && imgEl.naturalWidth > 0) {
|
|
180
|
+
afterInitialLoaded();
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
const onLoad = () => afterInitialLoaded();
|
|
184
|
+
imgEl.addEventListener('load', onLoad, { once: true });
|
|
185
|
+
this.removeLoadListener = () => imgEl.removeEventListener('load', onLoad);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
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
|
+
}
|
|
256
|
+
scheduleUpgrade(targetUrl, expectedRun) {
|
|
257
|
+
const delayMs = 80;
|
|
258
|
+
this.pendingTimer = setTimeout(() => {
|
|
259
|
+
this.pendingTimer = null;
|
|
260
|
+
if (this.destroyed || expectedRun !== this.runId) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const preloader = new Image();
|
|
264
|
+
preloader.decoding = 'async';
|
|
265
|
+
const commitSwap = () => {
|
|
266
|
+
if (this.destroyed || expectedRun !== this.runId) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
this.renderer.setAttribute(this.elRef.nativeElement, 'src', targetUrl);
|
|
270
|
+
};
|
|
271
|
+
preloader.onload = () => {
|
|
272
|
+
if (typeof preloader.decode === 'function') {
|
|
273
|
+
preloader.decode().then(commitSwap, commitSwap);
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
commitSwap();
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
preloader.src = targetUrl;
|
|
280
|
+
}, delayMs);
|
|
281
|
+
}
|
|
282
|
+
cleanupPending() {
|
|
283
|
+
if (this.observer) {
|
|
284
|
+
this.observer.disconnect();
|
|
285
|
+
this.observer = null;
|
|
286
|
+
}
|
|
287
|
+
if (this.pendingTimer !== null) {
|
|
288
|
+
clearTimeout(this.pendingTimer);
|
|
289
|
+
this.pendingTimer = null;
|
|
290
|
+
}
|
|
291
|
+
if (this.removeLoadListener) {
|
|
292
|
+
this.removeLoadListener();
|
|
293
|
+
this.removeLoadListener = null;
|
|
294
|
+
}
|
|
295
|
+
if (this.removeErrorListener) {
|
|
296
|
+
this.removeErrorListener();
|
|
297
|
+
this.removeErrorListener = null;
|
|
298
|
+
}
|
|
299
|
+
if (this.removeInteractionListeners) {
|
|
300
|
+
this.removeInteractionListeners();
|
|
301
|
+
this.removeInteractionListeners = null;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
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 }); }
|
|
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 }); }
|
|
306
|
+
}
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ProgressiveImageDirective, decorators: [{
|
|
308
|
+
type: Directive,
|
|
309
|
+
args: [{
|
|
310
|
+
selector: 'img[rtseeProgressiveImg]',
|
|
311
|
+
standalone: true,
|
|
312
|
+
}]
|
|
313
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
314
|
+
type: Inject,
|
|
315
|
+
args: [PLATFORM_ID]
|
|
316
|
+
}] }], propDecorators: { initialSrc: [{
|
|
317
|
+
type: Input
|
|
318
|
+
}], fullSrc: [{
|
|
319
|
+
type: Input
|
|
320
|
+
}], eager: [{
|
|
321
|
+
type: Input
|
|
322
|
+
}] } });
|
|
323
|
+
|
|
84
324
|
class RTSeeControlsComponent {
|
|
85
325
|
onPresentClicked() {
|
|
86
326
|
return this.rtsee.isPresenter
|
|
@@ -2115,6 +2355,7 @@ class RatingComponent {
|
|
|
2115
2355
|
this.stars = [];
|
|
2116
2356
|
this.mutable = false;
|
|
2117
2357
|
this.rateValue = 0;
|
|
2358
|
+
this.includeMicrodata = true;
|
|
2118
2359
|
}
|
|
2119
2360
|
ngOnInit() {
|
|
2120
2361
|
this.init();
|
|
@@ -2156,15 +2397,17 @@ class RatingComponent {
|
|
|
2156
2397
|
this.init();
|
|
2157
2398
|
}
|
|
2158
2399
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2159
|
-
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" }] }); }
|
|
2160
2401
|
}
|
|
2161
2402
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RatingComponent, decorators: [{
|
|
2162
2403
|
type: Component,
|
|
2163
|
-
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" }]
|
|
2164
2405
|
}], propDecorators: { config: [{
|
|
2165
2406
|
type: Input
|
|
2166
2407
|
}], rate: [{
|
|
2167
2408
|
type: Input
|
|
2409
|
+
}], includeMicrodata: [{
|
|
2410
|
+
type: Input
|
|
2168
2411
|
}] } });
|
|
2169
2412
|
|
|
2170
2413
|
class CallWidgetComponent {
|
|
@@ -7703,11 +7946,11 @@ class PresentationHeaderComponent {
|
|
|
7703
7946
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
7704
7947
|
}
|
|
7705
7948
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7706
|
-
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) {\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.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"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) {\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"] }] }); }
|
|
7949
|
+
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"] }] }); }
|
|
7707
7950
|
}
|
|
7708
7951
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, decorators: [{
|
|
7709
7952
|
type: Component,
|
|
7710
|
-
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) {\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.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"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) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\n" }]
|
|
7953
|
+
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" }]
|
|
7711
7954
|
}], propDecorators: { presentation: [{
|
|
7712
7955
|
type: Input
|
|
7713
7956
|
}] } });
|
|
@@ -7724,11 +7967,11 @@ class StoryThumbnailComponent {
|
|
|
7724
7967
|
}
|
|
7725
7968
|
}
|
|
7726
7969
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7727
|
-
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 <img [
|
|
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> </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"] }] }); }
|
|
7728
7971
|
}
|
|
7729
7972
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryThumbnailComponent, decorators: [{
|
|
7730
7973
|
type: Component,
|
|
7731
|
-
args: [{ selector: 'rtsee-story-thumbnail', imports: [RatingComponent, RouterLink], standalone: true, 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 <img [
|
|
7974
|
+
args: [{ selector: 'rtsee-story-thumbnail', imports: [RatingComponent, RouterLink, ProgressiveImageDirective], standalone: true, 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> </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" }]
|
|
7732
7975
|
}], propDecorators: { story: [{
|
|
7733
7976
|
type: Input
|
|
7734
7977
|
}], presentation: [{
|
|
@@ -9608,7 +9851,7 @@ class RateInputComponent {
|
|
|
9608
9851
|
}
|
|
9609
9852
|
}
|
|
9610
9853
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9611
|
-
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"] }] }); }
|
|
9612
9855
|
}
|
|
9613
9856
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateInputComponent, decorators: [{
|
|
9614
9857
|
type: Component,
|
|
@@ -9641,7 +9884,7 @@ class RateItemComponent {
|
|
|
9641
9884
|
return config ? config.name : '';
|
|
9642
9885
|
}
|
|
9643
9886
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9644
|
-
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" }] }); }
|
|
9645
9888
|
}
|
|
9646
9889
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RateItemComponent, decorators: [{
|
|
9647
9890
|
type: Component,
|
|
@@ -9847,14 +10090,14 @@ class StoryElementThumbnailComponent {
|
|
|
9847
10090
|
return (this.name || '?').trim().charAt(0).toUpperCase();
|
|
9848
10091
|
}
|
|
9849
10092
|
get showImage() {
|
|
9850
|
-
return !!this.imageUrl && !this.imageFailed;
|
|
10093
|
+
return !!(this.xsImageUrl || this.smImageUrl || this.imageUrl) && !this.imageFailed;
|
|
9851
10094
|
}
|
|
9852
10095
|
ngOnChanges(changes) {
|
|
9853
10096
|
if (changes['description'] && !changes['description'].firstChange) {
|
|
9854
10097
|
this.expanded = false;
|
|
9855
10098
|
this.scheduleMeasure();
|
|
9856
10099
|
}
|
|
9857
|
-
if (changes['imageUrl']) {
|
|
10100
|
+
if (changes['imageUrl'] || changes['smImageUrl'] || changes['xsImageUrl']) {
|
|
9858
10101
|
this.imageFailed = false;
|
|
9859
10102
|
}
|
|
9860
10103
|
}
|
|
@@ -9902,11 +10145,11 @@ class StoryElementThumbnailComponent {
|
|
|
9902
10145
|
}
|
|
9903
10146
|
}
|
|
9904
10147
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryElementThumbnailComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9905
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryElementThumbnailComponent, isStandalone: true, selector: "rtsee-story-element-thumbnail", inputs: { name: "name", description: "description", imageUrl: "imageUrl", itemProp: "itemProp", schemaType: "schemaType", horizontal: "horizontal", showMoreLabel: "showMoreLabel", showLessLabel: "showLessLabel" }, viewQueries: [{ propertyName: "descriptionEl", first: true, predicate: ["descriptionEl"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<article\n class=\"rtsee-story-element-thumbnail\"\n [class.rtsee-story-element-thumbnail-featured]=\"horizontal\"\n [class.rtsee-story-element-thumbnail-expanded]=\"expanded\"\n [attr.itemprop]=\"itemProp || null\"\n itemscope\n [attr.itemtype]=\"schemaUrl\"\n>\n <figure class=\"rtsee-story-element-thumbnail-media\">\n @if (showImage) {\n <img\n class=\"rtsee-story-element-thumbnail-image\"\n [
|
|
10148
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryElementThumbnailComponent, isStandalone: true, selector: "rtsee-story-element-thumbnail", inputs: { name: "name", description: "description", imageUrl: "imageUrl", smImageUrl: "smImageUrl", xsImageUrl: "xsImageUrl", itemProp: "itemProp", schemaType: "schemaType", horizontal: "horizontal", showMoreLabel: "showMoreLabel", showLessLabel: "showLessLabel" }, viewQueries: [{ propertyName: "descriptionEl", first: true, predicate: ["descriptionEl"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<article\n class=\"rtsee-story-element-thumbnail\"\n [class.rtsee-story-element-thumbnail-featured]=\"horizontal\"\n [class.rtsee-story-element-thumbnail-expanded]=\"expanded\"\n [attr.itemprop]=\"itemProp || null\"\n itemscope\n [attr.itemtype]=\"schemaUrl\"\n>\n <figure class=\"rtsee-story-element-thumbnail-media\">\n @if (showImage) {\n @if (imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"imageUrl\" />\n }\n <img\n class=\"rtsee-story-element-thumbnail-image\"\n rtseeProgressiveImg\n [initialSrc]=\"xsImageUrl || smImageUrl || imageUrl\"\n [fullSrc]=\"smImageUrl || imageUrl\"\n [alt]=\"name\"\n loading=\"lazy\"\n decoding=\"async\"\n width=\"144\"\n height=\"144\"\n (error)=\"onImageError()\"\n />\n } @else {\n <span class=\"rtsee-story-element-thumbnail-placeholder\" aria-hidden=\"true\">\n {{ initial }}\n </span>\n }\n </figure>\n <div class=\"rtsee-story-element-thumbnail-body\">\n <h3 class=\"rtsee-story-element-thumbnail-name\" itemprop=\"name\">{{ name }}</h3>\n @if (description) {\n <!-- full text always stays in the DOM (indexable), it's only clamped visually -->\n <div class=\"rtsee-story-element-thumbnail-description-wrapper\">\n <p\n #descriptionEl\n class=\"rtsee-story-element-thumbnail-description\"\n [class.rtsee-story-element-thumbnail-description-truncatable]=\"truncatable\"\n [id]=\"descriptionId\"\n itemprop=\"description\"\n (click)=\"toggle()\"\n >{{ description }}</p>\n <!-- kept outside of the itemprop element so the label doesn't pollute the description -->\n @if (truncatable) {\n <button\n type=\"button\"\n class=\"rtsee-story-element-thumbnail-toggle\"\n [class.rtsee-story-element-thumbnail-toggle-more]=\"!expanded\"\n [class.rtsee-story-element-thumbnail-toggle-less]=\"expanded\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"descriptionId\"\n (click)=\"toggle()\"\n >{{ expanded ? showLessLabel : showMoreLabel }}</button>\n }\n </div>\n }\n </div>\n</article>\n", dependencies: [{ kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9906
10149
|
}
|
|
9907
10150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryElementThumbnailComponent, decorators: [{
|
|
9908
10151
|
type: Component,
|
|
9909
|
-
args: [{ selector: 'rtsee-story-element-thumbnail', changeDetection: ChangeDetectionStrategy.OnPush, template: "<article\n class=\"rtsee-story-element-thumbnail\"\n [class.rtsee-story-element-thumbnail-featured]=\"horizontal\"\n [class.rtsee-story-element-thumbnail-expanded]=\"expanded\"\n [attr.itemprop]=\"itemProp || null\"\n itemscope\n [attr.itemtype]=\"schemaUrl\"\n>\n <figure class=\"rtsee-story-element-thumbnail-media\">\n @if (showImage) {\n <img\n class=\"rtsee-story-element-thumbnail-image\"\n [
|
|
10152
|
+
args: [{ selector: 'rtsee-story-element-thumbnail', standalone: true, imports: [ProgressiveImageDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<article\n class=\"rtsee-story-element-thumbnail\"\n [class.rtsee-story-element-thumbnail-featured]=\"horizontal\"\n [class.rtsee-story-element-thumbnail-expanded]=\"expanded\"\n [attr.itemprop]=\"itemProp || null\"\n itemscope\n [attr.itemtype]=\"schemaUrl\"\n>\n <figure class=\"rtsee-story-element-thumbnail-media\">\n @if (showImage) {\n @if (imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"imageUrl\" />\n }\n <img\n class=\"rtsee-story-element-thumbnail-image\"\n rtseeProgressiveImg\n [initialSrc]=\"xsImageUrl || smImageUrl || imageUrl\"\n [fullSrc]=\"smImageUrl || imageUrl\"\n [alt]=\"name\"\n loading=\"lazy\"\n decoding=\"async\"\n width=\"144\"\n height=\"144\"\n (error)=\"onImageError()\"\n />\n } @else {\n <span class=\"rtsee-story-element-thumbnail-placeholder\" aria-hidden=\"true\">\n {{ initial }}\n </span>\n }\n </figure>\n <div class=\"rtsee-story-element-thumbnail-body\">\n <h3 class=\"rtsee-story-element-thumbnail-name\" itemprop=\"name\">{{ name }}</h3>\n @if (description) {\n <!-- full text always stays in the DOM (indexable), it's only clamped visually -->\n <div class=\"rtsee-story-element-thumbnail-description-wrapper\">\n <p\n #descriptionEl\n class=\"rtsee-story-element-thumbnail-description\"\n [class.rtsee-story-element-thumbnail-description-truncatable]=\"truncatable\"\n [id]=\"descriptionId\"\n itemprop=\"description\"\n (click)=\"toggle()\"\n >{{ description }}</p>\n <!-- kept outside of the itemprop element so the label doesn't pollute the description -->\n @if (truncatable) {\n <button\n type=\"button\"\n class=\"rtsee-story-element-thumbnail-toggle\"\n [class.rtsee-story-element-thumbnail-toggle-more]=\"!expanded\"\n [class.rtsee-story-element-thumbnail-toggle-less]=\"expanded\"\n [attr.aria-expanded]=\"expanded\"\n [attr.aria-controls]=\"descriptionId\"\n (click)=\"toggle()\"\n >{{ expanded ? showLessLabel : showMoreLabel }}</button>\n }\n </div>\n }\n </div>\n</article>\n" }]
|
|
9910
10153
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { name: [{
|
|
9911
10154
|
type: Input,
|
|
9912
10155
|
args: [{ required: true }]
|
|
@@ -9914,6 +10157,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9914
10157
|
type: Input
|
|
9915
10158
|
}], imageUrl: [{
|
|
9916
10159
|
type: Input
|
|
10160
|
+
}], smImageUrl: [{
|
|
10161
|
+
type: Input
|
|
10162
|
+
}], xsImageUrl: [{
|
|
10163
|
+
type: Input
|
|
9917
10164
|
}], itemProp: [{
|
|
9918
10165
|
type: Input
|
|
9919
10166
|
}], schemaType: [{
|
|
@@ -9957,7 +10204,10 @@ class StorySlidesPreviewComponent {
|
|
|
9957
10204
|
get previews() {
|
|
9958
10205
|
const source = this.story.previewSlides;
|
|
9959
10206
|
const loading = this.story.previewSlidesLoading;
|
|
9960
|
-
const cover = this.story.
|
|
10207
|
+
const cover = this.story.xsImageUrl ||
|
|
10208
|
+
this.story.smImageUrl ||
|
|
10209
|
+
this.story.imageUrl ||
|
|
10210
|
+
null;
|
|
9961
10211
|
if (this.cache &&
|
|
9962
10212
|
this.cache.source === source &&
|
|
9963
10213
|
this.cache.loading === loading &&
|
|
@@ -9965,9 +10215,12 @@ class StorySlidesPreviewComponent {
|
|
|
9965
10215
|
return this.cache.result;
|
|
9966
10216
|
}
|
|
9967
10217
|
let result = (source || [])
|
|
9968
|
-
.filter((s) => !!s.imageUrl)
|
|
10218
|
+
.filter((s) => !!(s.xsImageUrl || s.smImageUrl || s.imageUrl))
|
|
9969
10219
|
.slice(0, this.count)
|
|
9970
|
-
.map((s) => ({
|
|
10220
|
+
.map((s) => ({
|
|
10221
|
+
imageUrl: (s.xsImageUrl || s.smImageUrl || s.imageUrl),
|
|
10222
|
+
slideNumber: s.slideNumber,
|
|
10223
|
+
}));
|
|
9971
10224
|
// no illustrated slides: fall back to the story cover
|
|
9972
10225
|
if (!result.length && !loading && cover) {
|
|
9973
10226
|
result = [{ imageUrl: cover, slideNumber: 1 }];
|
|
@@ -9993,18 +10246,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9993
10246
|
}] } });
|
|
9994
10247
|
|
|
9995
10248
|
class StoryDetailsComponent {
|
|
9996
|
-
constructor(hostRef, scroller, document) {
|
|
10249
|
+
constructor(hostRef, scroller, router, document) {
|
|
9997
10250
|
this.hostRef = hostRef;
|
|
9998
10251
|
this.scroller = scroller;
|
|
10252
|
+
this.router = router;
|
|
9999
10253
|
this.document = document;
|
|
10000
10254
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
10001
10255
|
this.Math = Math;
|
|
10002
10256
|
}
|
|
10257
|
+
get readTogetherLabel() {
|
|
10258
|
+
return (this.presentation?.labels?.[RTSeeTextLabelKeys.READ_TOGETHER_VIDEO_CALL_BUTTON] || 'Read Together on Video Call');
|
|
10259
|
+
}
|
|
10260
|
+
get readTogetherHint() {
|
|
10261
|
+
return (this.presentation?.labels?.[RTSeeTextLabelKeys.READ_TOGETHER_VIDEO_CALL_HINT] || 'Invite a listener to read a synchronized story slide deck together');
|
|
10262
|
+
}
|
|
10263
|
+
onReadTogetherVideoCallClicked() {
|
|
10264
|
+
const targetRoute = this.presentation.startReadTogetherVideoCall({
|
|
10265
|
+
storyId: this.story?.id,
|
|
10266
|
+
storyName: this.story?.name,
|
|
10267
|
+
imageUrl: this.story?.imageUrl || undefined,
|
|
10268
|
+
}, this.messenger);
|
|
10269
|
+
void this.router.navigateByUrl(targetRoute).catch(() => { });
|
|
10270
|
+
}
|
|
10003
10271
|
ngAfterViewInit() {
|
|
10004
10272
|
this.scrollToTop();
|
|
10005
10273
|
}
|
|
10006
10274
|
ngOnChanges(changes) {
|
|
10007
|
-
if (changes['story'] &&
|
|
10275
|
+
if (changes['story'] &&
|
|
10276
|
+
!changes['story'].firstChange &&
|
|
10277
|
+
changes['story'].previousValue?.id !== changes['story'].currentValue?.id) {
|
|
10008
10278
|
this.scrollToTop();
|
|
10009
10279
|
}
|
|
10010
10280
|
}
|
|
@@ -10056,13 +10326,13 @@ class StoryDetailsComponent {
|
|
|
10056
10326
|
}
|
|
10057
10327
|
return stars;
|
|
10058
10328
|
}
|
|
10059
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.ViewportScroller }, { token: DOCUMENT$1 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10060
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryDetailsComponent, isStandalone: true, selector: "rtsee-story-details", inputs: { story: "story", presentation: "presentation", messenger: "messenger" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-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 <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-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 @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { 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: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "chatData", "entity", "messenger", "isFramed"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: StoryElementThumbnailComponent, selector: "rtsee-story-element-thumbnail", inputs: ["name", "description", "imageUrl", "itemProp", "schemaType", "horizontal", "showMoreLabel", "showLessLabel"] }, { kind: "component", type: StorySlidesPreviewComponent, selector: "rtsee-story-slides-preview", inputs: ["story", "slidesLabel", "minuteLabel", "count"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
10329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.ViewportScroller }, { token: i2.Router }, { token: DOCUMENT$1 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10330
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryDetailsComponent, isStandalone: true, selector: "rtsee-story-details", inputs: { story: "story", presentation: "presentation", messenger: "messenger" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\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 <section class=\"rtsee-story-details-cover\">\n @if (story.smImageUrl || story.imageUrl) {\n <img\n class=\"rtsee-story-details-cover-img\"\n rtseeProgressiveImg\n [initialSrc]=\"story.smImageUrl || story.imageUrl\"\n [fullSrc]=\"story.imageUrl\"\n [eager]=\"true\"\n [alt]=\"story.name\"\n fetchpriority=\"high\"\n decoding=\"async\"\n width=\"1200\"\n height=\"675\"\n />\n }\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-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 <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <div class=\"rtsee-story-details-cta-group\">\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n <button\n type=\"button\"\n class=\"rtsee-story-details-read-together-btn\"\n (click)=\"onReadTogetherVideoCallClicked()\"\n [attr.title]=\"readTogetherHint\"\n >\n <svg\n class=\"rtsee-story-details-read-together-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 </div>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n [smImageUrl]=\"story.author.smImageUrl\"\n [xsImageUrl]=\"story.author.xsImageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n [smImageUrl]=\"character.smImageUrl\"\n [xsImageUrl]=\"character.xsImageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n [smImageUrl]=\"artifact.smImageUrl\"\n [xsImageUrl]=\"artifact.xsImageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n [smImageUrl]=\"place.smImageUrl\"\n [xsImageUrl]=\"place.xsImageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-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 @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { 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: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "chatData", "entity", "messenger", "isFramed"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: StoryElementThumbnailComponent, selector: "rtsee-story-element-thumbnail", inputs: ["name", "description", "imageUrl", "smImageUrl", "xsImageUrl", "itemProp", "schemaType", "horizontal", "showMoreLabel", "showLessLabel"] }, { kind: "component", type: StorySlidesPreviewComponent, selector: "rtsee-story-slides-preview", inputs: ["story", "slidesLabel", "minuteLabel", "count"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "directive", type: ProgressiveImageDirective, selector: "img[rtseeProgressiveImg]", inputs: ["initialSrc", "fullSrc", "eager"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
10061
10331
|
}
|
|
10062
10332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, decorators: [{
|
|
10063
10333
|
type: Component,
|
|
10064
|
-
args: [{ selector: 'rtsee-story-details', imports: [Chip, Tag, Button, ChatComponent, RtseeEntityPreviewComponent, RouterLink, StoryElementThumbnailComponent, StorySlidesPreviewComponent, StoryThumbnailComponent, DecimalPipe], template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-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 <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-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 @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n" }]
|
|
10065
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.ViewportScroller }, { type: Document, decorators: [{
|
|
10334
|
+
args: [{ selector: 'rtsee-story-details', imports: [Chip, Tag, Button, ChatComponent, RtseeEntityPreviewComponent, RouterLink, StoryElementThumbnailComponent, StorySlidesPreviewComponent, StoryThumbnailComponent, DecimalPipe, ProgressiveImageDirective], template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\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 <section class=\"rtsee-story-details-cover\">\n @if (story.smImageUrl || story.imageUrl) {\n <img\n class=\"rtsee-story-details-cover-img\"\n rtseeProgressiveImg\n [initialSrc]=\"story.smImageUrl || story.imageUrl\"\n [fullSrc]=\"story.imageUrl\"\n [eager]=\"true\"\n [alt]=\"story.name\"\n fetchpriority=\"high\"\n decoding=\"async\"\n width=\"1200\"\n height=\"675\"\n />\n }\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-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 <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <div class=\"rtsee-story-details-cta-group\">\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n <button\n type=\"button\"\n class=\"rtsee-story-details-read-together-btn\"\n (click)=\"onReadTogetherVideoCallClicked()\"\n [attr.title]=\"readTogetherHint\"\n >\n <svg\n class=\"rtsee-story-details-read-together-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 </div>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n [smImageUrl]=\"story.author.smImageUrl\"\n [xsImageUrl]=\"story.author.xsImageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n [smImageUrl]=\"character.smImageUrl\"\n [xsImageUrl]=\"character.xsImageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n [smImageUrl]=\"artifact.smImageUrl\"\n [xsImageUrl]=\"artifact.xsImageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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 <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n [smImageUrl]=\"place.smImageUrl\"\n [xsImageUrl]=\"place.xsImageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\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=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-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 @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n" }]
|
|
10335
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.ViewportScroller }, { type: i2.Router }, { type: Document, decorators: [{
|
|
10066
10336
|
type: Inject,
|
|
10067
10337
|
args: [DOCUMENT$1]
|
|
10068
10338
|
}] }], propDecorators: { story: [{
|
|
@@ -10074,18 +10344,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
10074
10344
|
}] } });
|
|
10075
10345
|
|
|
10076
10346
|
class StoriesListComponent {
|
|
10077
|
-
constructor(hostRef, scroller, document) {
|
|
10347
|
+
constructor(hostRef, scroller, router, document) {
|
|
10078
10348
|
this.hostRef = hostRef;
|
|
10079
10349
|
this.scroller = scroller;
|
|
10350
|
+
this.router = router;
|
|
10080
10351
|
this.document = document;
|
|
10081
10352
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
10082
10353
|
this.Math = Math;
|
|
10083
10354
|
}
|
|
10355
|
+
get readTogetherLabel() {
|
|
10356
|
+
return (this.presentation?.labels?.[RTSeeTextLabelKeys.READ_TOGETHER_VIDEO_CALL_BUTTON] || 'Read Together on Video Call');
|
|
10357
|
+
}
|
|
10358
|
+
get readTogetherHint() {
|
|
10359
|
+
return (this.presentation?.labels?.[RTSeeTextLabelKeys.READ_TOGETHER_VIDEO_CALL_HINT] || 'Invite a listener to read a synchronized story slide deck together');
|
|
10360
|
+
}
|
|
10361
|
+
onReadTogetherVideoCallClicked() {
|
|
10362
|
+
const targetRoute = this.presentation.startReadTogetherVideoCall({
|
|
10363
|
+
listId: this.list?.id,
|
|
10364
|
+
listName: this.list?.name,
|
|
10365
|
+
imageUrl: this.list?.imageUrl || undefined,
|
|
10366
|
+
}, this.messenger);
|
|
10367
|
+
void this.router.navigateByUrl(targetRoute).catch(() => { });
|
|
10368
|
+
}
|
|
10084
10369
|
ngAfterViewInit() {
|
|
10085
10370
|
this.scrollToTop();
|
|
10086
10371
|
}
|
|
10087
10372
|
ngOnChanges(changes) {
|
|
10088
|
-
if (changes['list'] &&
|
|
10373
|
+
if (changes['list'] &&
|
|
10374
|
+
!changes['list'].firstChange &&
|
|
10375
|
+
changes['list'].previousValue?.id !== changes['list'].currentValue?.id) {
|
|
10089
10376
|
this.scrollToTop();
|
|
10090
10377
|
}
|
|
10091
10378
|
}
|
|
@@ -10139,8 +10426,8 @@ class StoriesListComponent {
|
|
|
10139
10426
|
requestAnimationFrame(() => performReset());
|
|
10140
10427
|
}
|
|
10141
10428
|
}
|
|
10142
|
-
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: DOCUMENT$1 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10143
|
-
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\n <!-- HERO BANNER -->\n <header\n class=\"rtsee-stories-list-banner\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\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 @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?.imageUrl) {\n <img\n [src]=\"item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\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: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
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 }); }
|
|
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" }] }); }
|
|
10144
10431
|
}
|
|
10145
10432
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListComponent, decorators: [{
|
|
10146
10433
|
type: Component,
|
|
@@ -10149,8 +10436,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
10149
10436
|
DecimalPipe,
|
|
10150
10437
|
RatingComponent,
|
|
10151
10438
|
RtseeEntityPreviewComponent,
|
|
10152
|
-
|
|
10153
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.ViewportScroller }, { type: Document, decorators: [{
|
|
10439
|
+
ProgressiveImageDirective,
|
|
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" }]
|
|
10441
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.ViewportScroller }, { type: i2.Router }, { type: Document, decorators: [{
|
|
10154
10442
|
type: Inject,
|
|
10155
10443
|
args: [DOCUMENT$1]
|
|
10156
10444
|
}] }], propDecorators: { list: [{
|
|
@@ -10182,11 +10470,11 @@ class StoriesListThumbnailComponent {
|
|
|
10182
10470
|
}
|
|
10183
10471
|
}
|
|
10184
10472
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10185
|
-
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 [
|
|
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"] }] }); }
|
|
10186
10474
|
}
|
|
10187
10475
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, decorators: [{
|
|
10188
10476
|
type: Component,
|
|
10189
|
-
args: [{ selector: 'rtsee-stories-list-thumbnail', standalone: true, imports: [RouterLink, RatingComponent], template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\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" }]
|
|
10190
10478
|
}], propDecorators: { list: [{
|
|
10191
10479
|
type: Input
|
|
10192
10480
|
}], presentation: [{
|
|
@@ -10207,7 +10495,7 @@ class PresentationComponent {
|
|
|
10207
10495
|
}
|
|
10208
10496
|
}
|
|
10209
10497
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10210
|
-
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.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"
|
|
10498
|
+
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 @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\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 ></rtsee-stories-list-thumbnail>\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) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @for (category of presentation.categories; track category.id) {\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) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\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"] }, { 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"] }] }); }
|
|
10211
10499
|
}
|
|
10212
10500
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, decorators: [{
|
|
10213
10501
|
type: Component,
|
|
@@ -10222,7 +10510,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
10222
10510
|
StoryDetailsComponent,
|
|
10223
10511
|
StoriesListComponent,
|
|
10224
10512
|
StoriesListThumbnailComponent,
|
|
10225
|
-
], 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.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"
|
|
10513
|
+
], 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 @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\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 ></rtsee-stories-list-thumbnail>\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) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @for (category of presentation.categories; track category.id) {\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) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\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" }]
|
|
10226
10514
|
}], ctorParameters: () => [], propDecorators: { presentation: [{
|
|
10227
10515
|
type: Input
|
|
10228
10516
|
}], messenger: [{
|
|
@@ -10305,6 +10593,13 @@ class RTSeeContainerComponent {
|
|
|
10305
10593
|
}
|
|
10306
10594
|
ngOnInit() {
|
|
10307
10595
|
this.authService.init(this.auth);
|
|
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 || '/');
|
|
10308
10603
|
this.routeSubscription = this.router.events
|
|
10309
10604
|
.pipe(
|
|
10310
10605
|
// Filter for the NavigationEnd event to know when navigation is complete
|
|
@@ -10319,6 +10614,17 @@ class RTSeeContainerComponent {
|
|
|
10319
10614
|
return;
|
|
10320
10615
|
}
|
|
10321
10616
|
}
|
|
10617
|
+
syncPresentationMessengerRoute() {
|
|
10618
|
+
if (!this.rtsee?.presentation || !this.navigationConfig?.routes?.length) {
|
|
10619
|
+
return;
|
|
10620
|
+
}
|
|
10621
|
+
const messengerRoute = this.navigationConfig.routes.find((r) => r.rtseeRoute === RTSeeRoutesList.MESSENGER);
|
|
10622
|
+
if (messengerRoute?.link) {
|
|
10623
|
+
this.rtsee.presentation.messengerRoute = messengerRoute.link.startsWith('/')
|
|
10624
|
+
? messengerRoute.link
|
|
10625
|
+
: `/${messengerRoute.link}`;
|
|
10626
|
+
}
|
|
10627
|
+
}
|
|
10322
10628
|
onSidenavToggleClicked() {
|
|
10323
10629
|
this.isSidenavExpanded = !this.isSidenavExpanded;
|
|
10324
10630
|
}
|
|
@@ -11617,5 +11923,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
11617
11923
|
* Generated bundle index. Do not edit.
|
|
11618
11924
|
*/
|
|
11619
11925
|
|
|
11620
|
-
export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, ManageEntitiesListComponent, ManageEntitiesListGroupComponent, ManageEntitiesListGroupsComponent, ManageEntitiesListsComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, ProfileOpenedWidgetComponent, 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 };
|
|
11926
|
+
export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, 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 };
|
|
11621
11927
|
//# sourceMappingURL=rtsee-ngx.mjs.map
|