@rtsee/presentation 0.0.94 → 0.0.97
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/presentation/src/interfaces/RTSeePresentationInput.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/index.d.ts +2 -2
- package/dist/presentation/src/interfaces/index.js +2 -2
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoriesCategoriesOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoriesCategoryOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoriesLabelOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoriesLabelsOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoriesOptions.d.ts +2 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoriesOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoriesTopicsOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoryOptions.d.ts +2 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStoryOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeeManageStorySlideOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/RTSeePresentationDashboardOptions.d.ts +2 -0
- package/dist/presentation/src/interfaces/manage/RTSeePresentationDashboardOptions.d.ts.map +1 -1
- package/dist/presentation/src/interfaces/manage/index.d.ts +12 -12
- package/dist/presentation/src/interfaces/manage/index.js +12 -12
- package/dist/presentation/src/models/RTSeePresentation.d.ts +4 -2
- package/dist/presentation/src/models/RTSeePresentation.d.ts.map +1 -1
- package/dist/presentation/src/models/RTSeePresentation.js +80 -32
- package/dist/presentation/src/models/RTSeePresentation.js.map +1 -1
- package/dist/presentation/src/models/RTSeePresentationSettings.d.ts.map +1 -1
- package/dist/presentation/src/models/RTSeePresentationSettings.js +4 -3
- package/dist/presentation/src/models/RTSeePresentationSettings.js.map +1 -1
- package/dist/presentation/src/models/RTSeeStory.d.ts +11 -9
- package/dist/presentation/src/models/RTSeeStory.d.ts.map +1 -1
- package/dist/presentation/src/models/RTSeeStory.js +68 -53
- package/dist/presentation/src/models/RTSeeStory.js.map +1 -1
- package/dist/presentation/src/models/RTSeeStoryCategory.d.ts +6 -3
- package/dist/presentation/src/models/RTSeeStoryCategory.d.ts.map +1 -1
- package/dist/presentation/src/models/RTSeeStoryCategory.js +17 -13
- package/dist/presentation/src/models/RTSeeStoryCategory.js.map +1 -1
- package/dist/presentation/src/models/RTSeeStorySlide.d.ts.map +1 -1
- package/dist/presentation/src/models/RTSeeStorySlide.js +1 -1
- package/dist/presentation/src/models/RTSeeStorySlide.js.map +1 -1
- package/dist/presentation/src/models/index.d.ts +7 -7
- package/dist/presentation/src/models/index.js +7 -7
- package/dist/presentation/src/models/manage/RTSeeManageStories.d.ts +2 -1
- package/dist/presentation/src/models/manage/RTSeeManageStories.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStories.js +22 -14
- package/dist/presentation/src/models/manage/RTSeeManageStories.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStory.d.ts +7 -8
- package/dist/presentation/src/models/manage/RTSeeManageStory.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStory.js +35 -54
- package/dist/presentation/src/models/manage/RTSeeManageStory.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryCategories.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryCategories.js +15 -15
- package/dist/presentation/src/models/manage/RTSeeManageStoryCategories.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryCategory.d.ts +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryCategory.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryCategory.js +3 -3
- package/dist/presentation/src/models/manage/RTSeeManageStoryCategory.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryLabel.d.ts +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryLabel.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryLabel.js +5 -4
- package/dist/presentation/src/models/manage/RTSeeManageStoryLabel.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryLabels.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryLabels.js +15 -17
- package/dist/presentation/src/models/manage/RTSeeManageStoryLabels.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStorySlide.d.ts +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStorySlide.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStorySlide.js +6 -6
- package/dist/presentation/src/models/manage/RTSeeManageStorySlide.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStorySlides.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStorySlides.js +18 -19
- package/dist/presentation/src/models/manage/RTSeeManageStorySlides.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryTopic.d.ts +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryTopic.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryTopic.js +15 -14
- package/dist/presentation/src/models/manage/RTSeeManageStoryTopic.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryTopics.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeeManageStoryTopics.js +14 -16
- package/dist/presentation/src/models/manage/RTSeeManageStoryTopics.js.map +1 -1
- package/dist/presentation/src/models/manage/RTSeePresentationDashboard.d.ts +2 -0
- package/dist/presentation/src/models/manage/RTSeePresentationDashboard.d.ts.map +1 -1
- package/dist/presentation/src/models/manage/RTSeePresentationDashboard.js +9 -6
- package/dist/presentation/src/models/manage/RTSeePresentationDashboard.js.map +1 -1
- package/dist/presentation/src/models/manage/index.d.ts +11 -11
- package/dist/presentation/src/models/manage/index.js +11 -11
- package/dist/presentation/src/models/remote-actions/PresentationRemoteActions.d.ts +5 -5
- package/dist/presentation/src/models/remote-actions/PresentationRemoteActions.d.ts.map +1 -1
- package/dist/presentation/src/models/remote-actions/PresentationRemoteActions.js +25 -25
- package/dist/presentation/src/models/remote-actions/PresentationRemoteActions.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,58 +1,61 @@
|
|
|
1
1
|
import { RTSeeStorySlide } from "./RTSeeStorySlide";
|
|
2
2
|
import { PresentationSignalingEvents } from "@rtsee/common";
|
|
3
|
-
import {
|
|
3
|
+
import { RTSeeEntity } from "@rtsee/utilities-ui";
|
|
4
4
|
const DEFAULT_SLIDE_PRELOAD_N = 5;
|
|
5
|
-
export class RTSeeStory extends
|
|
6
|
-
id;
|
|
7
|
-
name;
|
|
8
|
-
imageUrl;
|
|
5
|
+
export class RTSeeStory extends RTSeeEntity {
|
|
9
6
|
description;
|
|
10
7
|
slides = [];
|
|
11
8
|
categories = [];
|
|
12
|
-
labels = [];
|
|
13
9
|
isPublished;
|
|
14
|
-
commentsEnabled;
|
|
15
10
|
discussion = null;
|
|
16
11
|
totalSlides;
|
|
17
12
|
averageReadTime;
|
|
18
13
|
getRemoteSlides;
|
|
19
14
|
preloadBuffer;
|
|
20
15
|
preselectedSlideNumber;
|
|
16
|
+
rating = null;
|
|
17
|
+
ratesCount = null;
|
|
21
18
|
activeSlideNumber = 0;
|
|
22
19
|
activeSlide = null;
|
|
23
20
|
swiper = null;
|
|
24
21
|
renderedSlidesBuffer = [];
|
|
25
22
|
lastRenderedSlideNumber = 0;
|
|
23
|
+
entitiesRemoteActions;
|
|
26
24
|
//ui
|
|
27
25
|
headerVisible = true;
|
|
26
|
+
evCollector;
|
|
28
27
|
constructor(options) {
|
|
29
|
-
super(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
28
|
+
super({
|
|
29
|
+
...options,
|
|
30
|
+
entityData: options.storyData,
|
|
31
|
+
remoteActions: options.entitiesRemoteActions
|
|
32
|
+
});
|
|
33
|
+
this.id = options.storyData.id || "";
|
|
34
|
+
this.name = options.storyData.name || "";
|
|
35
|
+
this.description = options.storyData.description || "";
|
|
36
|
+
this.imageUrl = options.storyData.imageUrl || "";
|
|
37
|
+
this.totalSlides = options.storyData.totalSlides || 0;
|
|
38
|
+
this.averageReadTime = options.storyData.averageReadTime || 0;
|
|
36
39
|
this.getRemoteSlides = options.getRemoteSlides;
|
|
37
40
|
this.preloadBuffer = options.preloadBuffer || DEFAULT_SLIDE_PRELOAD_N;
|
|
38
|
-
this.categories = options.categories;
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
|
|
42
|
-
this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.onSlidesLoaded(options.slides);
|
|
41
|
+
this.categories = options.storyData.categories;
|
|
42
|
+
this.isPublished = options.storyData.isPublished || false;
|
|
43
|
+
this.preselectedSlideNumber =
|
|
44
|
+
options.storyData.preselectedSlideNumber || null;
|
|
45
|
+
this.entitiesRemoteActions = options.entitiesRemoteActions;
|
|
46
|
+
if (options.storyData.slides) {
|
|
47
|
+
this.onSlidesLoaded(options.storyData.slides);
|
|
46
48
|
}
|
|
49
|
+
this.evCollector = this.getEventsCollector(options);
|
|
47
50
|
}
|
|
48
|
-
|
|
49
|
-
console.log(
|
|
51
|
+
initStory() {
|
|
52
|
+
console.log("preselected slide is: ", this.preselectedSlideNumber);
|
|
50
53
|
this.setSlide(this.preselectedSlideNumber || 1);
|
|
51
54
|
}
|
|
52
55
|
initSwiper(swiper) {
|
|
53
56
|
this.swiper = swiper;
|
|
54
57
|
// this.swiper.append(this);
|
|
55
|
-
swiper.on(
|
|
58
|
+
swiper.on("transitionEnd", () => {
|
|
56
59
|
if (swiper.realIndex + 1 === this.activeSlideNumber) {
|
|
57
60
|
return;
|
|
58
61
|
}
|
|
@@ -61,13 +64,15 @@ export class RTSeeStory extends EventEmitter {
|
|
|
61
64
|
}
|
|
62
65
|
onNewSlideRendered(slideNumber, el) {
|
|
63
66
|
if (!this.swiper) {
|
|
64
|
-
this.lastRenderedSlideNumber =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
this.lastRenderedSlideNumber =
|
|
68
|
+
slideNumber > this.lastRenderedSlideNumber
|
|
69
|
+
? slideNumber
|
|
70
|
+
: this.lastRenderedSlideNumber;
|
|
67
71
|
return;
|
|
68
72
|
}
|
|
69
73
|
this.renderedSlidesBuffer.push({
|
|
70
|
-
slideNumber,
|
|
74
|
+
slideNumber,
|
|
75
|
+
el,
|
|
71
76
|
});
|
|
72
77
|
this.processSlidesBuffer();
|
|
73
78
|
}
|
|
@@ -115,9 +120,21 @@ export class RTSeeStory extends EventEmitter {
|
|
|
115
120
|
this.swiper.slidePrev();
|
|
116
121
|
// this.setActiveSlideNumber(this.activeSlideNumber - 1);
|
|
117
122
|
}
|
|
118
|
-
onSlideElementAdded() {
|
|
123
|
+
onSlideElementAdded() { }
|
|
124
|
+
getEventsCollector(options) {
|
|
125
|
+
return options.evCollector || { send: this.eventSendMock };
|
|
126
|
+
}
|
|
127
|
+
eventSendMock(event) {
|
|
128
|
+
console.log('RTSeeStory: eventSendMock', event);
|
|
119
129
|
}
|
|
120
130
|
onActiveSlideNumberChanged() {
|
|
131
|
+
this.evCollector.send({
|
|
132
|
+
name: `slide-number-changed-${this.activeSlideNumber}`,
|
|
133
|
+
data: {
|
|
134
|
+
storyName: this.name,
|
|
135
|
+
slideNumber: this.activeSlideNumber
|
|
136
|
+
}
|
|
137
|
+
});
|
|
121
138
|
const loadedActiveSlide = this.getLocalSlideByNumber(this.activeSlideNumber);
|
|
122
139
|
if (!loadedActiveSlide) {
|
|
123
140
|
void this.loadBasedOnActiveSlideNumberBiDirectional();
|
|
@@ -129,11 +146,11 @@ export class RTSeeStory extends EventEmitter {
|
|
|
129
146
|
const backTotal = this.getTotalBackwardSlidesCount();
|
|
130
147
|
if (frontBuffer < this.preloadBuffer && frontBuffer < frontTotal) {
|
|
131
148
|
void this.loadSlidesFront(frontBuffer);
|
|
132
|
-
console.log(
|
|
149
|
+
console.log("Front buffer loading");
|
|
133
150
|
}
|
|
134
151
|
if (backBuffer < this.preloadBuffer && backBuffer < backTotal) {
|
|
135
152
|
void this.loadSlidesBack(backBuffer);
|
|
136
|
-
console.log(
|
|
153
|
+
console.log("Back buffer loading");
|
|
137
154
|
}
|
|
138
155
|
}
|
|
139
156
|
async loadBasedOnActiveSlideNumberBiDirectional() {
|
|
@@ -144,21 +161,21 @@ export class RTSeeStory extends EventEmitter {
|
|
|
144
161
|
storyId: this.id,
|
|
145
162
|
direction: "front",
|
|
146
163
|
slideNumber: startSlideNumber,
|
|
147
|
-
limit: DEFAULT_SLIDE_PRELOAD_N * 2
|
|
164
|
+
limit: DEFAULT_SLIDE_PRELOAD_N * 2,
|
|
148
165
|
});
|
|
149
166
|
this.onSlidesLoaded(slidesResponse.slides);
|
|
150
167
|
}
|
|
151
168
|
async loadSlidesFront(currentBuffer) {
|
|
152
169
|
const lastLoadedSlide = this.activeSlideNumber + currentBuffer;
|
|
153
|
-
console.log(
|
|
154
|
-
console.log(
|
|
155
|
-
console.log(
|
|
156
|
-
console.log(
|
|
170
|
+
console.log("Loading Slides Front");
|
|
171
|
+
console.log("Current Slide", this.activeSlideNumber);
|
|
172
|
+
console.log("Current Buffer", currentBuffer);
|
|
173
|
+
console.log("Last Loaded Slide Nr", lastLoadedSlide);
|
|
157
174
|
const slidesResponse = await this.getRemoteSlides({
|
|
158
175
|
storyId: this.id,
|
|
159
176
|
direction: "front",
|
|
160
177
|
slideNumber: lastLoadedSlide + 1,
|
|
161
|
-
limit: this.preloadBuffer
|
|
178
|
+
limit: this.preloadBuffer,
|
|
162
179
|
});
|
|
163
180
|
this.onSlidesLoaded(slidesResponse.slides);
|
|
164
181
|
}
|
|
@@ -169,12 +186,11 @@ export class RTSeeStory extends EventEmitter {
|
|
|
169
186
|
storyId: this.id,
|
|
170
187
|
direction: "back",
|
|
171
188
|
slideNumber: lastLoadedSlide,
|
|
172
|
-
limit: missingSlidesNumber
|
|
189
|
+
limit: missingSlidesNumber,
|
|
173
190
|
});
|
|
174
191
|
this.onSlidesLoaded(slidesResponse.slides);
|
|
175
192
|
}
|
|
176
193
|
onSlidesLoaded(slides) {
|
|
177
|
-
console.log('Slides Loaded: ', slides);
|
|
178
194
|
this.addSlides(slides);
|
|
179
195
|
this.markActiveSlide();
|
|
180
196
|
}
|
|
@@ -211,12 +227,12 @@ export class RTSeeStory extends EventEmitter {
|
|
|
211
227
|
if (!this.activeSlideNumber) {
|
|
212
228
|
throw new Error("RTSeeStory: activeSlide is needed for computing the buffer");
|
|
213
229
|
}
|
|
214
|
-
const activeSlideIndex = this.slides
|
|
215
|
-
.findIndex((s) => s.slideNumber === this.activeSlideNumber);
|
|
230
|
+
const activeSlideIndex = this.slides.findIndex((s) => s.slideNumber === this.activeSlideNumber);
|
|
216
231
|
let buffer = 0;
|
|
217
232
|
for (let i = 1; i <= this.preloadBuffer; i++) {
|
|
218
|
-
if (this.slides[activeSlideIndex + i]
|
|
219
|
-
|
|
233
|
+
if (this.slides[activeSlideIndex + i] &&
|
|
234
|
+
this.slides[activeSlideIndex + i].slideNumber ===
|
|
235
|
+
this.activeSlideNumber + i) {
|
|
220
236
|
buffer++;
|
|
221
237
|
}
|
|
222
238
|
else {
|
|
@@ -229,12 +245,12 @@ export class RTSeeStory extends EventEmitter {
|
|
|
229
245
|
if (!this.activeSlideNumber) {
|
|
230
246
|
throw new Error("RTSeeStory: activeSlide is needed for computing the buffer");
|
|
231
247
|
}
|
|
232
|
-
const activeSlideIndex = this.slides
|
|
233
|
-
.findIndex((s) => s.slideNumber === this.activeSlideNumber);
|
|
248
|
+
const activeSlideIndex = this.slides.findIndex((s) => s.slideNumber === this.activeSlideNumber);
|
|
234
249
|
let buffer = 0;
|
|
235
250
|
for (let i = 1; i <= this.preloadBuffer; i++) {
|
|
236
|
-
if (this.slides[activeSlideIndex - i]
|
|
237
|
-
|
|
251
|
+
if (this.slides[activeSlideIndex - i] &&
|
|
252
|
+
this.slides[activeSlideIndex - i].slideNumber ===
|
|
253
|
+
this.activeSlideNumber - i) {
|
|
238
254
|
buffer++;
|
|
239
255
|
}
|
|
240
256
|
else {
|
|
@@ -250,20 +266,19 @@ export class RTSeeStory extends EventEmitter {
|
|
|
250
266
|
const payload = {
|
|
251
267
|
storyId: this.id,
|
|
252
268
|
currentSlide: this.activeSlideNumber,
|
|
253
|
-
isCompleted: this.activeSlideNumber === this.totalSlides
|
|
269
|
+
isCompleted: this.activeSlideNumber === this.totalSlides,
|
|
254
270
|
};
|
|
255
271
|
this.emit(PresentationSignalingEvents.STORY_SESSION_EVENT, payload);
|
|
256
272
|
}
|
|
257
273
|
processSlidesBuffer() {
|
|
258
274
|
let slidesAppendedCount = 0;
|
|
259
|
-
this.renderedSlidesBuffer
|
|
260
|
-
|
|
261
|
-
console.log('got to the loop');
|
|
275
|
+
this.renderedSlidesBuffer.sort((a, b) => a.slideNumber - b.slideNumber);
|
|
276
|
+
console.log("got to the loop");
|
|
262
277
|
for (let i = 0; i < this.renderedSlidesBuffer.length; i++) {
|
|
263
278
|
const bufferItem = this.renderedSlidesBuffer[i];
|
|
264
279
|
console.log(`pre-append slide: ${bufferItem.slideNumber}, last rendered is: ${this.lastRenderedSlideNumber}`);
|
|
265
280
|
if (bufferItem.slideNumber === this.lastRenderedSlideNumber + 1) {
|
|
266
|
-
console.log(
|
|
281
|
+
console.log("appending a slide HERE", bufferItem.slideNumber);
|
|
267
282
|
this.swiper.appendSlide(bufferItem.el);
|
|
268
283
|
this.lastRenderedSlideNumber = bufferItem.slideNumber;
|
|
269
284
|
slidesAppendedCount++;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeStory.js","sourceRoot":"","sources":["../../../../src/models/RTSeeStory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eA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D,mBAAmB,EAAE,CAAC;YACxB,CAAC;QACH,CAAC;QAED,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { IRTSeeStory,
|
|
1
|
+
import { IEntitiesRemoteActions, IRTSeeStory, IRTSeeStoryCategoryOptions, ITagsRemoteActions } from "@rtsee/common";
|
|
2
2
|
import { RTSeeStory } from "@rtsee/presentation";
|
|
3
|
-
|
|
3
|
+
import { RTSeeSignalHandlersDriver, IRTSeeEventsCollector } from "@rtsee/core";
|
|
4
|
+
export declare class RTSeeStoryCategory extends RTSeeSignalHandlersDriver {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
6
7
|
description: string;
|
|
7
8
|
stories: RTSeeStory[];
|
|
8
|
-
|
|
9
|
+
entitiesRemoteActions?: IEntitiesRemoteActions & ITagsRemoteActions;
|
|
10
|
+
evCollector?: IRTSeeEventsCollector;
|
|
11
|
+
constructor(options: IRTSeeStoryCategoryOptions);
|
|
9
12
|
populateStories(stories: IRTSeeStory[]): RTSeeStory[];
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=RTSeeStoryCategory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeStoryCategory.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeeStoryCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"RTSeeStoryCategory.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeeStoryCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE/E,qBAAa,kBAAmB,SAAQ,yBAAyB;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,qBAAqB,CAAC,EAAE,sBAAsB,GAAG,kBAAkB,CAAC;IACpE,WAAW,CAAC,EAAE,qBAAqB,CAAC;gBAExB,OAAO,EAAE,0BAA0B;IAW/C,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,UAAU,EAAE;CAYtD"}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import { RTSeeStory } from "@rtsee/presentation";
|
|
2
|
-
|
|
2
|
+
import { RTSeeSignalHandlersDriver } from "@rtsee/core";
|
|
3
|
+
export class RTSeeStoryCategory extends RTSeeSignalHandlersDriver {
|
|
3
4
|
id;
|
|
4
5
|
name;
|
|
5
6
|
description;
|
|
6
7
|
stories;
|
|
8
|
+
entitiesRemoteActions;
|
|
9
|
+
evCollector;
|
|
7
10
|
constructor(options) {
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
11
|
+
super(options);
|
|
12
|
+
this.id = options.categoryData.id;
|
|
13
|
+
this.name = options.categoryData.name;
|
|
14
|
+
this.description = options.categoryData.description;
|
|
15
|
+
this.stories = this.populateStories(options.categoryData.stories);
|
|
16
|
+
this.entitiesRemoteActions = options.entitiesRemoteActions;
|
|
17
|
+
this.evCollector = options.evCollector;
|
|
12
18
|
}
|
|
13
19
|
populateStories(stories) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
this.stories = stories.map((s) => new RTSeeStory({ ...s, ...remoteActionsStub }));
|
|
20
|
+
this.stories = stories.map((s) => new RTSeeStory({
|
|
21
|
+
storyData: s,
|
|
22
|
+
entitiesRemoteActions: this.entitiesRemoteActions,
|
|
23
|
+
...this.getHandlerCommonOptions(),
|
|
24
|
+
evCollector: this.evCollector,
|
|
25
|
+
}));
|
|
22
26
|
return this.stories;
|
|
23
27
|
}
|
|
24
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeStoryCategory.js","sourceRoot":"","sources":["../../../../src/models/RTSeeStoryCategory.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"RTSeeStoryCategory.js","sourceRoot":"","sources":["../../../../src/models/RTSeeStoryCategory.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAyB,MAAM,aAAa,CAAC;AAE/E,MAAM,OAAO,kBAAmB,SAAQ,yBAAyB;IAC/D,EAAE,CAAS;IACX,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,OAAO,CAAe;IACtB,qBAAqB,CAA+C;IACpE,WAAW,CAAyB;IAEpC,YAAY,OAAmC;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAClE,IAAI,CAAC,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC;QAC3D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACzC,CAAC;IAED,eAAe,CAAC,OAAsB;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,CACxB,CAAC,CAAC,EAAE,EAAE,CACJ,IAAI,UAAU,CAAC;YACb,SAAS,EAAE,CAAC;YACZ,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,GAAG,IAAI,CAAC,uBAAuB,EAAE;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CACL,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeStorySlide.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeeStorySlide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"RTSeeStorySlide.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeeStorySlide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,qBAAa,eAAe,CAAC,CAAC,GAAG,GAAG,CAClC,SAAQ,YACR,YAAW,gBAAgB;IAE3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,OAAO,CAAS;gBAEd,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAYxC,SAAS;IAKT,WAAW;CAIZ"}
|
|
@@ -10,7 +10,7 @@ export class RTSeeStorySlide extends EventEmitter {
|
|
|
10
10
|
isActive = false;
|
|
11
11
|
constructor(options) {
|
|
12
12
|
super();
|
|
13
|
-
this.id = options.id ||
|
|
13
|
+
this.id = options.id || "";
|
|
14
14
|
this.storyId = options.storyId;
|
|
15
15
|
this.text = options.text;
|
|
16
16
|
this.slideNumber = options.slideNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeStorySlide.js","sourceRoot":"","sources":["../../../../src/models/RTSeeStorySlide.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"RTSeeStorySlide.js","sourceRoot":"","sources":["../../../../src/models/RTSeeStorySlide.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,OAAO,eACX,SAAQ,YAAY;IAGpB,EAAE,CAAS;IACX,OAAO,CAAS;IAChB,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,QAAQ,CAAU;IAClB,MAAM,CAAU;IAChB,IAAI,CAAK;IACT,QAAQ,GAAY,KAAK,CAAC;IAE1B,YAAY,OAA4B;QACtC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3B,CAAC;IAED,SAAS;QACP,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,0BAA0B;IAC5B,CAAC;IAED,WAAW;QACT,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,4BAA4B;IAC9B,CAAC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from "./manage";
|
|
2
|
+
export * from "./RTSeePresentation";
|
|
3
|
+
export * from "./RTSeeStory";
|
|
4
|
+
export * from "./RTSeeStorySlide";
|
|
5
|
+
export * from "./RTSeeStoryCategory";
|
|
6
|
+
export * from "./RTSeePresentationSettings";
|
|
7
|
+
export * from "./remote-actions/PresentationRemoteActions";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from "./manage";
|
|
2
|
+
export * from "./RTSeePresentation";
|
|
3
|
+
export * from "./RTSeeStory";
|
|
4
|
+
export * from "./RTSeeStorySlide";
|
|
5
|
+
export * from "./RTSeeStoryCategory";
|
|
6
|
+
export * from "./RTSeePresentationSettings";
|
|
7
|
+
export * from "./remote-actions/PresentationRemoteActions";
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRTSeeStory } from "@rtsee/common";
|
|
1
|
+
import { IEntitiesRemoteActions, IRTSeeStory, ITagsRemoteActions } from "@rtsee/common";
|
|
2
2
|
import { IPresentationRemoteActions, IRTSeeManageStoriesOptions, RTSeeManageStory } from "@rtsee/presentation";
|
|
3
3
|
import { IPeer, IRTSeeSignalingClientBase } from "@rtsee/core";
|
|
4
4
|
export declare class RTSeeManageStories {
|
|
@@ -8,6 +8,7 @@ export declare class RTSeeManageStories {
|
|
|
8
8
|
companionUrl: string;
|
|
9
9
|
signalingClient: IRTSeeSignalingClientBase;
|
|
10
10
|
presentationsRemoteActions: IPresentationRemoteActions;
|
|
11
|
+
entitiesRemoteActions: IEntitiesRemoteActions & ITagsRemoteActions;
|
|
11
12
|
isInitialized: boolean;
|
|
12
13
|
storiesLoadInProgress: boolean;
|
|
13
14
|
constructor(options: IRTSeeManageStoriesOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeManageStories.d.ts","sourceRoot":"","sources":["../../../../../src/models/manage/RTSeeManageStories.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RTSeeManageStories.d.ts","sourceRoot":"","sources":["../../../../../src/models/manage/RTSeeManageStories.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACY,kBAAkB,EAE1C,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE/D,qBAAa,kBAAkB;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAC9C,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,yBAAyB,CAAC;IAC3C,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,qBAAqB,EAAE,sBAAsB,GAAG,kBAAkB,CAAC;IACnE,aAAa,EAAE,OAAO,CAAS;IAE/B,qBAAqB,EAAE,OAAO,CAAS;gBAE3B,OAAO,EAAE,0BAA0B;IAa/C,IAAI,IAAI,IAAI;IAQZ,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAIjD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIlC,SAAS;IAIT,cAAc,IAAI,WAAW;YAmBf,kBAAkB;YAiBlB,WAAW;YAgBX,aAAa;IAK3B,OAAO,CAAC,gBAAgB;CAwBzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PresentationSignalingEvents } from "@rtsee/common";
|
|
2
|
-
import { RTSeeManageStory } from "@rtsee/presentation";
|
|
1
|
+
import { PresentationSignalingEvents, } from "@rtsee/common";
|
|
2
|
+
import { RTSeeManageStory, } from "@rtsee/presentation";
|
|
3
3
|
export class RTSeeManageStories {
|
|
4
4
|
stories;
|
|
5
5
|
selectedStory = null;
|
|
@@ -7,6 +7,7 @@ export class RTSeeManageStories {
|
|
|
7
7
|
companionUrl;
|
|
8
8
|
signalingClient;
|
|
9
9
|
presentationsRemoteActions;
|
|
10
|
+
entitiesRemoteActions;
|
|
10
11
|
isInitialized = false;
|
|
11
12
|
storiesLoadInProgress = false;
|
|
12
13
|
constructor(options) {
|
|
@@ -15,8 +16,9 @@ export class RTSeeManageStories {
|
|
|
15
16
|
this.peer = options.peer;
|
|
16
17
|
this.signalingClient = options.signalingClient;
|
|
17
18
|
this.presentationsRemoteActions = options.presentationsRemoteActions;
|
|
19
|
+
this.entitiesRemoteActions = options.entitiesRemoteActions;
|
|
18
20
|
if (!this.companionUrl) {
|
|
19
|
-
throw new Error(
|
|
21
|
+
throw new Error("RTSeeManageStories requires companion url");
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
init() {
|
|
@@ -27,8 +29,7 @@ export class RTSeeManageStories {
|
|
|
27
29
|
void this.loadStories();
|
|
28
30
|
}
|
|
29
31
|
getStoryById(storyId) {
|
|
30
|
-
return this.stories
|
|
31
|
-
.find((story) => story.id === storyId) || null;
|
|
32
|
+
return this.stories.find((story) => story.id === storyId) || null;
|
|
32
33
|
}
|
|
33
34
|
selectStory(storyId) {
|
|
34
35
|
void this.loadAndSelectStory(storyId);
|
|
@@ -38,13 +39,17 @@ export class RTSeeManageStories {
|
|
|
38
39
|
}
|
|
39
40
|
selectNewStory() {
|
|
40
41
|
const blankStory = {
|
|
41
|
-
id:
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
id: "",
|
|
43
|
+
applicationId: this.peer.rtseeAppId,
|
|
44
|
+
configurationId: '',
|
|
45
|
+
name: "",
|
|
46
|
+
imageUrl: "",
|
|
44
47
|
totalSlides: 0,
|
|
45
48
|
averageReadTime: 0,
|
|
46
|
-
description:
|
|
47
|
-
slides: []
|
|
49
|
+
description: "",
|
|
50
|
+
slides: [],
|
|
51
|
+
tagIds: [],
|
|
52
|
+
tags: [],
|
|
48
53
|
};
|
|
49
54
|
this.setSelectedStory(blankStory);
|
|
50
55
|
return blankStory;
|
|
@@ -67,8 +72,10 @@ export class RTSeeManageStories {
|
|
|
67
72
|
async loadStories() {
|
|
68
73
|
this.storiesLoadInProgress = true;
|
|
69
74
|
try {
|
|
70
|
-
const result = await this.presentationsRemoteActions
|
|
71
|
-
|
|
75
|
+
const result = await this.presentationsRemoteActions.getStories.send({
|
|
76
|
+
offset: this.stories.length,
|
|
77
|
+
limit: 30,
|
|
78
|
+
});
|
|
72
79
|
this.stories = [...this.stories, ...result.stories];
|
|
73
80
|
this.storiesLoadInProgress = false;
|
|
74
81
|
}
|
|
@@ -87,9 +94,10 @@ export class RTSeeManageStories {
|
|
|
87
94
|
peer: this.peer,
|
|
88
95
|
companionUrl: this.companionUrl,
|
|
89
96
|
signalingClient: this.signalingClient,
|
|
90
|
-
presentationsRemoteActions: this.presentationsRemoteActions
|
|
97
|
+
presentationsRemoteActions: this.presentationsRemoteActions,
|
|
98
|
+
entitiesRemoteActions: this.entitiesRemoteActions
|
|
91
99
|
});
|
|
92
|
-
this.selectedStory.on(
|
|
100
|
+
this.selectedStory.on("cancel-clicked", () => {
|
|
93
101
|
this.selectedStory = null;
|
|
94
102
|
});
|
|
95
103
|
this.selectedStory.on(`${PresentationSignalingEvents.CREATE_STORY}-success`, (story) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeManageStories.js","sourceRoot":"","sources":["../../../../../src/models/manage/RTSeeManageStories.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RTSeeManageStories.js","sourceRoot":"","sources":["../../../../../src/models/manage/RTSeeManageStories.ts"],"names":[],"mappings":"AAAA,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@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IRTSeeStory, IRTSeeStoryCategory,
|
|
1
|
+
import { IEntitiesRemoteActions, IRTSeeStory, IRTSeeStoryCategory, ITagsRemoteActions } from "@rtsee/common";
|
|
2
2
|
import { IRTSeeManageStoryOptions, IPresentationRemoteActions, RTSeeManageStorySlides } from "@rtsee/presentation";
|
|
3
|
-
import {
|
|
3
|
+
import { RTSeeForm } from "@rtsee/utilities-ui";
|
|
4
4
|
import { IPeer, IRTSeeSignalingClientBase, IRTSeeSignalingError } from "@rtsee/core";
|
|
5
5
|
import { EventEmitter } from "events";
|
|
6
6
|
export declare class RTSeeManageStory extends EventEmitter {
|
|
@@ -8,17 +8,16 @@ export declare class RTSeeManageStory extends EventEmitter {
|
|
|
8
8
|
companionUrl: string;
|
|
9
9
|
manageSlides: RTSeeManageStorySlides;
|
|
10
10
|
peer: IPeer;
|
|
11
|
-
|
|
12
|
-
imageUploader: RTSeeImageUploader;
|
|
13
|
-
categoriesMultiselect: RTSeeFormAutocomplete<IRTSeeStoryCategory, string>;
|
|
14
|
-
labelsMultiselect: RTSeeFormAutocomplete<IRTSeeStoryLabel, string>;
|
|
11
|
+
activeStoryForm: RTSeeForm<IRTSeeStory> | null;
|
|
15
12
|
signalingClient: IRTSeeSignalingClientBase;
|
|
16
13
|
presentationsRemoteActions: IPresentationRemoteActions;
|
|
14
|
+
entitiesRemoteActions: IEntitiesRemoteActions & ITagsRemoteActions;
|
|
17
15
|
saveInProgress: boolean;
|
|
18
16
|
constructor(options: IRTSeeManageStoryOptions);
|
|
17
|
+
initForm(): void;
|
|
19
18
|
getStoryCategories(query: string): Promise<IRTSeeStoryCategory[]>;
|
|
20
|
-
|
|
21
|
-
save(storyData:
|
|
19
|
+
private getTags;
|
|
20
|
+
save(storyData: IRTSeeStory): Promise<void>;
|
|
22
21
|
onSaveSuccess(story: IRTSeeStory): void;
|
|
23
22
|
onSaveError(error: IRTSeeSignalingError): void;
|
|
24
23
|
cancel(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeManageStory.d.ts","sourceRoot":"","sources":["../../../../../src/models/manage/RTSeeManageStory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,
|
|
1
|
+
{"version":3,"file":"RTSeeManageStory.d.ts","sourceRoot":"","sources":["../../../../../src/models/manage/RTSeeManageStory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EAInB,kBAAkB,EAEnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,wBAAwB,EAExB,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,SAAS,EAMV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,EACL,yBAAyB,EACzB,oBAAoB,EAErB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,KAAK,EAAE,WAAW,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,sBAAsB,CAAC;IACrC,IAAI,EAAE,KAAK,CAAC;IACZ,eAAe,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,CAAQ;IACtD,eAAe,EAAE,yBAAyB,CAAC;IAC3C,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,qBAAqB,EAAE,sBAAsB,GAAG,kBAAkB,CAAC;IAGnE,cAAc,EAAE,OAAO,CAAS;gBAEpB,OAAO,EAAE,wBAAwB;IA4B7C,QAAQ,IAAI,IAAI;IA8BV,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;YAazD,OAAO;IAaf,IAAI,CAAC,SAAS,EAAE,WAAW;IAqBjC,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAKvC,WAAW,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI;IAK9C,MAAM;IAIN,OAAO,CAAC,aAAa;CAMtB"}
|