easywork-common-lib 1.0.651 → 1.0.654
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/entities/capacitation/course-assigned.entity.d.ts +13 -2
- package/dist/entities/capacitation/course-assigned.entity.js +37 -6
- package/dist/entities/capacitation/course-assigned.entity.js.map +1 -1
- package/dist/entities/capacitation/course-folder-page.entity.d.ts +2 -2
- package/dist/entities/capacitation/course-folder-page.entity.js +4 -4
- package/dist/entities/capacitation/course.entity.d.ts +2 -2
- package/dist/entities/capacitation/course.entity.js +7 -7
- package/dist/entities/capacitation/course.entity.js.map +1 -1
- package/dist/entities/capacitation/index.d.ts +1 -1
- package/dist/entities/capacitation/index.js +3 -3
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/entities/user.entity.js +4 -4
- package/dist/entities/user.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Course } from './course.entity';
|
|
2
|
+
import { CourseFolderPage } from './course-folder-page.entity';
|
|
3
|
+
import { User } from '../user.entity';
|
|
4
|
+
export declare class CourseAssigned {
|
|
5
|
+
id: number;
|
|
6
|
+
order: number;
|
|
3
7
|
progress: number;
|
|
8
|
+
completedPages: {
|
|
9
|
+
pageId: number;
|
|
10
|
+
completedAt: Date;
|
|
11
|
+
}[] | null;
|
|
12
|
+
lastCompletedPage: CourseFolderPage | null;
|
|
13
|
+
user: User;
|
|
14
|
+
course: Course;
|
|
4
15
|
}
|
|
@@ -11,18 +11,49 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CourseAssigned = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
14
|
+
const course_entity_1 = require("./course.entity");
|
|
15
|
+
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
16
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
let CourseAssigned = class CourseAssigned {
|
|
18
|
+
id;
|
|
19
|
+
order;
|
|
17
20
|
progress;
|
|
21
|
+
completedPages;
|
|
22
|
+
lastCompletedPage;
|
|
23
|
+
user;
|
|
24
|
+
course;
|
|
18
25
|
};
|
|
19
26
|
exports.CourseAssigned = CourseAssigned;
|
|
20
27
|
__decorate([
|
|
21
|
-
(0,
|
|
22
|
-
(
|
|
28
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], CourseAssigned.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CourseAssigned.prototype, "order", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
23
37
|
__metadata("design:type", Number)
|
|
24
38
|
], CourseAssigned.prototype, "progress", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], CourseAssigned.prototype, "completedPages", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.ManyToOne)(() => course_folder_page_entity_1.CourseFolderPage, page => page.courseAssigned, { nullable: true }),
|
|
45
|
+
__metadata("design:type", course_folder_page_entity_1.CourseFolderPage)
|
|
46
|
+
], CourseAssigned.prototype, "lastCompletedPage", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.coursesAssigned),
|
|
49
|
+
__metadata("design:type", user_entity_1.User)
|
|
50
|
+
], CourseAssigned.prototype, "user", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.assignedUsers),
|
|
53
|
+
__metadata("design:type", course_entity_1.Course)
|
|
54
|
+
], CourseAssigned.prototype, "course", void 0);
|
|
25
55
|
exports.CourseAssigned = CourseAssigned = __decorate([
|
|
26
|
-
(0, typeorm_1.Entity)()
|
|
56
|
+
(0, typeorm_1.Entity)(),
|
|
57
|
+
(0, typeorm_1.Unique)(['user', 'course'])
|
|
27
58
|
], CourseAssigned);
|
|
28
59
|
//# sourceMappingURL=course-assigned.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-assigned.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-assigned.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"course-assigned.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-assigned.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoF;AACpF,mDAAyC;AACzC,2EAA+D;AAC/D,gDAAsC;AAI/B,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,cAAc,CAAiD;IAG/D,iBAAiB,CAA0B;IAG3C,IAAI,CAAO;IAGX,MAAM,CAAS;CAChB,CAAA;AArBY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,GAAE;;0CACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACT;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACN;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACqB;AAG/D;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4CAAgB,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAChE,4CAAgB;yDAAQ;AAG3C;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;8BAC9C,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC;8BAChD,sBAAM;8CAAC;yBApBJ,cAAc;IAF1B,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;GACd,cAAc,CAqB1B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LMSFileUploaded } from 'common';
|
|
2
2
|
import { EntityBase } from '../../common/database/base.entity';
|
|
3
3
|
import { CourseFolder } from './course-folder.entity';
|
|
4
|
-
import {
|
|
4
|
+
import { CourseAssigned } from './course-assigned.entity';
|
|
5
5
|
export declare class CourseFolderPage extends EntityBase {
|
|
6
6
|
name: string;
|
|
7
7
|
description?: string;
|
|
@@ -10,5 +10,5 @@ export declare class CourseFolderPage extends EntityBase {
|
|
|
10
10
|
order: number;
|
|
11
11
|
files?: LMSFileUploaded[];
|
|
12
12
|
folder: CourseFolder;
|
|
13
|
-
|
|
13
|
+
courseAssigned: CourseAssigned[];
|
|
14
14
|
}
|
|
@@ -14,7 +14,7 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
16
|
const course_folder_entity_1 = require("./course-folder.entity");
|
|
17
|
-
const
|
|
17
|
+
const course_assigned_entity_1 = require("./course-assigned.entity");
|
|
18
18
|
let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
19
19
|
name;
|
|
20
20
|
description;
|
|
@@ -23,7 +23,7 @@ let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
|
23
23
|
order;
|
|
24
24
|
files;
|
|
25
25
|
folder;
|
|
26
|
-
|
|
26
|
+
courseAssigned;
|
|
27
27
|
};
|
|
28
28
|
exports.CourseFolderPage = CourseFolderPage;
|
|
29
29
|
__decorate([
|
|
@@ -64,9 +64,9 @@ __decorate([
|
|
|
64
64
|
__metadata("design:type", course_folder_entity_1.CourseFolder)
|
|
65
65
|
], CourseFolderPage.prototype, "folder", void 0);
|
|
66
66
|
__decorate([
|
|
67
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
67
|
+
(0, typeorm_1.OneToMany)(() => course_assigned_entity_1.CourseAssigned, courseAssigned => courseAssigned.lastCompletedPage),
|
|
68
68
|
__metadata("design:type", Array)
|
|
69
|
-
], CourseFolderPage.prototype, "
|
|
69
|
+
], CourseFolderPage.prototype, "courseAssigned", void 0);
|
|
70
70
|
exports.CourseFolderPage = CourseFolderPage = __decorate([
|
|
71
71
|
(0, typeorm_1.Entity)()
|
|
72
72
|
], CourseFolderPage);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityBase } from '../../common/database/base.entity';
|
|
2
2
|
import { CourseFolder } from './course-folder.entity';
|
|
3
|
-
import {
|
|
3
|
+
import { CourseAssigned } from './course-assigned.entity';
|
|
4
4
|
import { User } from '../user.entity';
|
|
5
5
|
import { Group } from '../group.entity';
|
|
6
6
|
export declare class Course extends EntityBase {
|
|
@@ -14,5 +14,5 @@ export declare class Course extends EntityBase {
|
|
|
14
14
|
folders: CourseFolder[];
|
|
15
15
|
createdBy: User;
|
|
16
16
|
groups: Group[];
|
|
17
|
-
|
|
17
|
+
assignedUsers: CourseAssigned[];
|
|
18
18
|
}
|
|
@@ -14,7 +14,7 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
16
|
const course_folder_entity_1 = require("./course-folder.entity");
|
|
17
|
-
const
|
|
17
|
+
const course_assigned_entity_1 = require("./course-assigned.entity");
|
|
18
18
|
const user_entity_1 = require("../user.entity");
|
|
19
19
|
const group_entity_1 = require("../group.entity");
|
|
20
20
|
let Course = class Course extends base_entity_1.EntityBase {
|
|
@@ -28,7 +28,7 @@ let Course = class Course extends base_entity_1.EntityBase {
|
|
|
28
28
|
folders;
|
|
29
29
|
createdBy;
|
|
30
30
|
groups;
|
|
31
|
-
|
|
31
|
+
assignedUsers;
|
|
32
32
|
};
|
|
33
33
|
exports.Course = Course;
|
|
34
34
|
__decorate([
|
|
@@ -89,7 +89,7 @@ __decorate([
|
|
|
89
89
|
], Course.prototype, "isPublished", void 0);
|
|
90
90
|
__decorate([
|
|
91
91
|
(0, swagger_1.ApiProperty)({ type: () => course_folder_entity_1.CourseFolder }),
|
|
92
|
-
(0, typeorm_1.OneToMany)(() => course_folder_entity_1.CourseFolder, folder => folder.course
|
|
92
|
+
(0, typeorm_1.OneToMany)(() => course_folder_entity_1.CourseFolder, folder => folder.course),
|
|
93
93
|
__metadata("design:type", Array)
|
|
94
94
|
], Course.prototype, "folders", void 0);
|
|
95
95
|
__decorate([
|
|
@@ -98,18 +98,18 @@ __decorate([
|
|
|
98
98
|
description: 'User who creates the course',
|
|
99
99
|
required: false,
|
|
100
100
|
}),
|
|
101
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.createdCourses
|
|
101
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.createdCourses),
|
|
102
102
|
__metadata("design:type", user_entity_1.User)
|
|
103
103
|
], Course.prototype, "createdBy", void 0);
|
|
104
104
|
__decorate([
|
|
105
|
-
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, group => group.courses
|
|
105
|
+
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, group => group.courses),
|
|
106
106
|
(0, typeorm_1.JoinTable)(),
|
|
107
107
|
__metadata("design:type", Array)
|
|
108
108
|
], Course.prototype, "groups", void 0);
|
|
109
109
|
__decorate([
|
|
110
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
110
|
+
(0, typeorm_1.OneToMany)(() => course_assigned_entity_1.CourseAssigned, courseAssigned => courseAssigned.course),
|
|
111
111
|
__metadata("design:type", Array)
|
|
112
|
-
], Course.prototype, "
|
|
112
|
+
], Course.prototype, "assignedUsers", void 0);
|
|
113
113
|
exports.Course = Course = __decorate([
|
|
114
114
|
(0, typeorm_1.Entity)()
|
|
115
115
|
], Course);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsF;AACtF,6CAA8C;AAE9C,mEAA+D;AAC/D,iEAAsD;AACtD,qEAA0D;AAC1D,gDAAsC;AACtC,kDAAwC;AAGjC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAOpC,IAAI,CAAS;IAQb,WAAW,CAAU;IAQrB,KAAK,CAAS;IAOd,SAAS,CAAU;IAOnB,OAAO,CAAU;IAIjB,aAAa,CAAU;IAOvB,WAAW,CAAU;IAIrB,OAAO,CAAiB;IAQxB,SAAS,CAAO;IAIhB,MAAM,CAAU;IAGhB,
|
|
1
|
+
{"version":3,"file":"course.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsF;AACtF,6CAA8C;AAE9C,mEAA+D;AAC/D,iEAAsD;AACtD,qEAA0D;AAC1D,gDAAsC;AACtC,kDAAwC;AAGjC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAOpC,IAAI,CAAS;IAQb,WAAW,CAAU;IAQrB,KAAK,CAAS;IAOd,SAAS,CAAU;IAOnB,OAAO,CAAU;IAIjB,aAAa,CAAU;IAOvB,WAAW,CAAU;IAIrB,OAAO,CAAiB;IAQxB,SAAS,CAAO;IAIhB,MAAM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qBAAW,EAAC;QACX,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAY,EAAE,CAAC;IACzC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;;uCAC/B;AAQxB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;QAChB,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC;8BACxC,kBAAI;yCAAC;AAIhB;IAFC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;IAC/C,IAAA,mBAAS,GAAE;;sCACI;AAGhB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC;;6CACzC;iBAnErB,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAoElB"}
|
|
@@ -2,4 +2,4 @@ export { Capacitation } from './capacitation.entity';
|
|
|
2
2
|
export { Course } from './course.entity';
|
|
3
3
|
export { CourseFolder } from './course-folder.entity';
|
|
4
4
|
export { CourseFolderPage } from './course-folder-page.entity';
|
|
5
|
-
export {
|
|
5
|
+
export { CourseAssigned } from './course-assigned.entity';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CourseAssigned = exports.CourseFolderPage = exports.CourseFolder = exports.Course = exports.Capacitation = void 0;
|
|
4
4
|
var capacitation_entity_1 = require("./capacitation.entity");
|
|
5
5
|
Object.defineProperty(exports, "Capacitation", { enumerable: true, get: function () { return capacitation_entity_1.Capacitation; } });
|
|
6
6
|
var course_entity_1 = require("./course.entity");
|
|
@@ -9,6 +9,6 @@ var course_folder_entity_1 = require("./course-folder.entity");
|
|
|
9
9
|
Object.defineProperty(exports, "CourseFolder", { enumerable: true, get: function () { return course_folder_entity_1.CourseFolder; } });
|
|
10
10
|
var course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
11
11
|
Object.defineProperty(exports, "CourseFolderPage", { enumerable: true, get: function () { return course_folder_page_entity_1.CourseFolderPage; } });
|
|
12
|
-
var
|
|
13
|
-
Object.defineProperty(exports, "
|
|
12
|
+
var course_assigned_entity_1 = require("./course-assigned.entity");
|
|
13
|
+
Object.defineProperty(exports, "CourseAssigned", { enumerable: true, get: function () { return course_assigned_entity_1.CourseAssigned; } });
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,7 +8,7 @@ import { Group } from './group.entity';
|
|
|
8
8
|
import { MenuPermissions } from './menu-permissions.entity';
|
|
9
9
|
import { Agent, Contact } from './sales';
|
|
10
10
|
import { UserStatus } from '../common/enums/tools.enum';
|
|
11
|
-
import { Course,
|
|
11
|
+
import { Course, CourseAssigned } from './capacitation';
|
|
12
12
|
export declare class User extends EntityBase {
|
|
13
13
|
username: string;
|
|
14
14
|
email: string;
|
|
@@ -34,5 +34,5 @@ export declare class User extends EntityBase {
|
|
|
34
34
|
get name(): string;
|
|
35
35
|
agentProfile?: Agent;
|
|
36
36
|
createdCourses?: Course[];
|
|
37
|
-
|
|
37
|
+
coursesAssigned?: CourseAssigned[];
|
|
38
38
|
}
|
|
@@ -51,7 +51,7 @@ let User = class User extends base_entity_1.EntityBase {
|
|
|
51
51
|
}
|
|
52
52
|
agentProfile;
|
|
53
53
|
createdCourses;
|
|
54
|
-
|
|
54
|
+
coursesAssigned;
|
|
55
55
|
};
|
|
56
56
|
exports.User = User;
|
|
57
57
|
__decorate([
|
|
@@ -252,13 +252,13 @@ __decorate([
|
|
|
252
252
|
], User.prototype, "createdCourses", void 0);
|
|
253
253
|
__decorate([
|
|
254
254
|
(0, swagger_1.ApiProperty)({
|
|
255
|
-
type: () => capacitation_1.
|
|
255
|
+
type: () => capacitation_1.CourseAssigned,
|
|
256
256
|
description: 'Progress of assigned courses',
|
|
257
257
|
required: false,
|
|
258
258
|
}),
|
|
259
|
-
(0, typeorm_1.OneToMany)(() => capacitation_1.
|
|
259
|
+
(0, typeorm_1.OneToMany)(() => capacitation_1.CourseAssigned, courseAssigned => courseAssigned.user),
|
|
260
260
|
__metadata("design:type", Array)
|
|
261
|
-
], User.prototype, "
|
|
261
|
+
], User.prototype, "coursesAssigned", void 0);
|
|
262
262
|
exports.User = User = __decorate([
|
|
263
263
|
(0, typeorm_1.Entity)()
|
|
264
264
|
], User);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qCAAiG;AACjG,yDAA4C;AAC5C,qDAA2C;AAC3C,+CAAqC;AACrC,6CAAmC;AACnC,wFAA4E;AAC5E,yEAA8D;AAC9D,6CAA8C;AAC9C,iDAAuC;AACvC,uEAA4D;AAC5D,mCAAyC;AACzC,2DAAwD;AACxD,iDAAwD;AAGjD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAGlC,QAAQ,CAAU;IAIlB,KAAK,CAAU;IAIf,GAAG,CAAU;IAIb,MAAM,CAAU;IAKhB,MAAM,CAAa;IAInB,WAAW,CAAa;IAUxB,IAAI,CAAU;IAUd,eAAe,CAAU;IAQzB,kBAAkB,CAAW;IAQ7B,KAAK,CAAU;IAQf,UAAU,CAAW;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