@ethlete/core 0.2.0-next.8 → 0.2.0-next.9
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/esm2020/lib/directives/click-outside/click-outside.directive.mjs +3 -3
- package/esm2020/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.mjs +3 -3
- package/esm2020/lib/directives/destroy/destroy.directive.mjs +3 -3
- package/esm2020/lib/directives/let/let.directive.mjs +3 -3
- package/esm2020/lib/directives/observe-content/observe-content.directive.mjs +3 -3
- package/esm2020/lib/directives/observe-resize/observe-resize.directive.mjs +3 -3
- package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.directive.mjs +3 -3
- package/esm2020/lib/directives/repeat/repeat.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.mjs +3 -3
- package/esm2020/lib/directives/seo/seo.directive.mjs +8 -4
- package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.mjs +2 -0
- package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.mjs +34 -0
- package/esm2020/lib/pipes/normalize-game-result-type/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.types.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.util.mjs +47 -0
- package/esm2020/lib/pipes/normalize-match-participants/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.types.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.util.mjs +126 -0
- package/esm2020/lib/pipes/normalize-match-score/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-state/index.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.constants.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.util.mjs +19 -0
- package/esm2020/lib/pipes/normalize-match-state/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-type/normalize-match-type.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-type/normalize-match-type.util.mjs +38 -0
- package/esm2020/lib/pipes/normalize-match-type/public-api.mjs +3 -0
- package/esm2020/lib/pipes/public-api.mjs +6 -1
- package/esm2020/lib/pipes/to-array/to-array.pipe.mjs +3 -3
- package/esm2020/lib/services/click-observer.service.mjs +6 -6
- package/esm2020/lib/services/content-observer.service.mjs +6 -6
- package/esm2020/lib/services/destroy.service.mjs +3 -3
- package/esm2020/lib/services/focus-visible.service.mjs +3 -3
- package/esm2020/lib/services/resize-observer.service.mjs +6 -6
- package/esm2020/lib/services/viewport.service.mjs +3 -3
- package/esm2020/lib/types/i18n.types.mjs +2 -0
- package/esm2020/lib/types/public-api.mjs +3 -2
- package/fesm2015/ethlete-core.mjs +385 -67
- package/fesm2015/ethlete-core.mjs.map +1 -1
- package/fesm2020/ethlete-core.mjs +393 -67
- package/fesm2020/ethlete-core.mjs.map +1 -1
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.d.ts +7 -0
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.d.ts +4 -0
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.d.ts +2 -0
- package/lib/pipes/normalize-game-result-type/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-participants/normalize-match-participants.types.d.ts +21 -0
- package/lib/pipes/normalize-match-participants/normalize-match-participants.util.d.ts +4 -0
- package/lib/pipes/normalize-match-participants/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-score/normalize-match-score.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-score/normalize-match-score.types.d.ts +12 -0
- package/lib/pipes/normalize-match-score/normalize-match-score.util.d.ts +27 -0
- package/lib/pipes/normalize-match-score/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-state/index.d.ts +1 -0
- package/lib/pipes/normalize-match-state/normalize-match-state.constants.d.ts +7 -0
- package/lib/pipes/normalize-match-state/normalize-match-state.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-state/normalize-match-state.util.d.ts +3 -0
- package/lib/pipes/normalize-match-state/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-type/normalize-match-type.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-type/normalize-match-type.util.d.ts +3 -0
- package/lib/pipes/normalize-match-type/public-api.d.ts +2 -0
- package/lib/pipes/public-api.d.ts +5 -0
- package/lib/types/i18n.types.d.ts +4 -0
- package/lib/types/public-api.d.ts +2 -1
- package/package.json +4 -3
|
@@ -57,9 +57,9 @@ class ClickObserverFactory {
|
|
|
57
57
|
return fromEvent(document, 'click');
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
ClickObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
61
|
-
ClickObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
60
|
+
ClickObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
61
|
+
ClickObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverFactory, providedIn: 'root' });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverFactory, decorators: [{
|
|
63
63
|
type: Injectable,
|
|
64
64
|
args: [{ providedIn: 'root' }]
|
|
65
65
|
}] });
|
|
@@ -113,9 +113,9 @@ class ClickObserverService {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
ClickObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
117
|
-
ClickObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
116
|
+
ClickObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverService, deps: [{ token: ClickObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
117
|
+
ClickObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverService, providedIn: 'root' });
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverService, decorators: [{
|
|
119
119
|
type: Injectable,
|
|
120
120
|
args: [{ providedIn: 'root' }]
|
|
121
121
|
}], ctorParameters: function () { return [{ type: ClickObserverFactory }]; } });
|
|
@@ -126,9 +126,9 @@ class MutationObserverFactory {
|
|
|
126
126
|
return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
MutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
130
|
-
MutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
129
|
+
MutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
130
|
+
MutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' });
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MutationObserverFactory, decorators: [{
|
|
132
132
|
type: Injectable,
|
|
133
133
|
args: [{ providedIn: 'root' }]
|
|
134
134
|
}] });
|
|
@@ -188,9 +188,9 @@ class ContentObserverService {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
ContentObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
192
|
-
ContentObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
191
|
+
ContentObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ContentObserverService, deps: [{ token: MutationObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
192
|
+
ContentObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ContentObserverService, providedIn: 'root' });
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ContentObserverService, decorators: [{
|
|
194
194
|
type: Injectable,
|
|
195
195
|
args: [{ providedIn: 'root' }]
|
|
196
196
|
}], ctorParameters: function () { return [{ type: MutationObserverFactory }]; } });
|
|
@@ -205,9 +205,9 @@ class DestroyService {
|
|
|
205
205
|
this._destroy$.unsubscribe();
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
DestroyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
209
|
-
DestroyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
208
|
+
DestroyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
209
|
+
DestroyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyService });
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyService, decorators: [{
|
|
211
211
|
type: Injectable
|
|
212
212
|
}] });
|
|
213
213
|
|
|
@@ -233,9 +233,9 @@ class FocusVisibleService {
|
|
|
233
233
|
this._hadKeyboardEvent = false;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
FocusVisibleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
237
|
-
FocusVisibleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
236
|
+
FocusVisibleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FocusVisibleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
237
|
+
FocusVisibleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FocusVisibleService, providedIn: 'root' });
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FocusVisibleService, decorators: [{
|
|
239
239
|
type: Injectable,
|
|
240
240
|
args: [{
|
|
241
241
|
providedIn: 'root',
|
|
@@ -248,9 +248,9 @@ class ResizeObserverFactory {
|
|
|
248
248
|
return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
ResizeObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
252
|
-
ResizeObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
251
|
+
ResizeObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
252
|
+
ResizeObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverFactory, providedIn: 'root' });
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverFactory, decorators: [{
|
|
254
254
|
type: Injectable,
|
|
255
255
|
args: [{ providedIn: 'root' }]
|
|
256
256
|
}] });
|
|
@@ -306,9 +306,9 @@ class ResizeObserverService {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
ResizeObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
310
|
-
ResizeObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
309
|
+
ResizeObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverService, deps: [{ token: ResizeObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
310
|
+
ResizeObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverService, providedIn: 'root' });
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverService, decorators: [{
|
|
312
312
|
type: Injectable,
|
|
313
313
|
args: [{ providedIn: 'root' }]
|
|
314
314
|
}], ctorParameters: function () { return [{ type: ResizeObserverFactory }]; } });
|
|
@@ -443,8 +443,8 @@ class ViewportService {
|
|
|
443
443
|
return 'xs';
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
ViewportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
447
|
-
ViewportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
446
|
+
ViewportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ViewportService, deps: [{ token: VIEWPORT_CONFIG, optional: true }, { token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
447
|
+
ViewportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ViewportService, providedIn: 'root' });
|
|
448
448
|
__decorate([
|
|
449
449
|
Memo(),
|
|
450
450
|
__metadata("design:type", Function),
|
|
@@ -462,7 +462,7 @@ __decorate([
|
|
|
462
462
|
__metadata("design:paramtypes", [Object]),
|
|
463
463
|
__metadata("design:returntype", void 0)
|
|
464
464
|
], ViewportService.prototype, "_buildMediaQuery", null);
|
|
465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ViewportService, decorators: [{
|
|
466
466
|
type: Injectable,
|
|
467
467
|
args: [{
|
|
468
468
|
providedIn: 'root',
|
|
@@ -499,9 +499,9 @@ class ClickOutsideDirective {
|
|
|
499
499
|
(_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
503
|
-
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
502
|
+
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickOutsideDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
503
|
+
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ClickOutsideDirective, isStandalone: true, selector: "[etClickOutside]", outputs: { etClickOutside: "etClickOutside" }, ngImport: i0 });
|
|
504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
505
505
|
type: Directive,
|
|
506
506
|
args: [{
|
|
507
507
|
selector: '[etClickOutside]',
|
|
@@ -655,9 +655,9 @@ class CursorDragScrollDirective {
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
CursorDragScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
659
|
-
CursorDragScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
658
|
+
CursorDragScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CursorDragScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
659
|
+
CursorDragScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: CursorDragScrollDirective, isStandalone: true, selector: "[etCursorDragScroll]", inputs: { enabled: ["etCursorDragScroll", "enabled"] }, providers: [DestroyService], exportAs: ["etCursorDragScroll"], ngImport: i0 });
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CursorDragScrollDirective, decorators: [{
|
|
661
661
|
type: Directive,
|
|
662
662
|
args: [{
|
|
663
663
|
selector: '[etCursorDragScroll]',
|
|
@@ -680,9 +680,9 @@ class DestroyDirective {
|
|
|
680
680
|
this._destroy$.unsubscribe();
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
DestroyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
684
|
-
DestroyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
683
|
+
DestroyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
684
|
+
DestroyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: DestroyDirective, isStandalone: true, ngImport: i0 });
|
|
685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyDirective, decorators: [{
|
|
686
686
|
type: Directive,
|
|
687
687
|
args: [{
|
|
688
688
|
standalone: true,
|
|
@@ -723,9 +723,9 @@ class LetDirective {
|
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
LetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
727
|
-
LetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
726
|
+
LetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: LetDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
727
|
+
LetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: LetDirective, isStandalone: true, selector: "[etLet]", inputs: { etLet: "etLet" }, ngImport: i0 });
|
|
728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: LetDirective, decorators: [{
|
|
729
729
|
type: Directive,
|
|
730
730
|
args: [{
|
|
731
731
|
selector: '[etLet]',
|
|
@@ -779,9 +779,9 @@ class ObserveContentDirective {
|
|
|
779
779
|
(_a = this._currentSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
ObserveContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
783
|
-
ObserveContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
782
|
+
ObserveContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
783
|
+
ObserveContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ObserveContentDirective, isStandalone: true, selector: "[etObserveContent]", inputs: { disabled: ["etObserveContentDisabled", "disabled"], debounce: ["etObserveContentDebounce", "debounce"] }, outputs: { event: "etObserveContent" }, exportAs: ["etObserveContent"], ngImport: i0 });
|
|
784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveContentDirective, decorators: [{
|
|
785
785
|
type: Directive,
|
|
786
786
|
args: [{
|
|
787
787
|
selector: '[etObserveContent]',
|
|
@@ -843,9 +843,9 @@ class ObserveResizeDirective {
|
|
|
843
843
|
(_a = this._currentSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
ObserveResizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
847
|
-
ObserveResizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
846
|
+
ObserveResizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveResizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
847
|
+
ObserveResizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ObserveResizeDirective, isStandalone: true, selector: "[etObserveResize]", inputs: { disabled: ["etObserveResizeDisabled", "disabled"], debounce: ["etObserveResizeDebounce", "debounce"] }, outputs: { event: "etObserveResize" }, exportAs: ["etObserveResize"], ngImport: i0 });
|
|
848
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveResizeDirective, decorators: [{
|
|
849
849
|
type: Directive,
|
|
850
850
|
args: [{
|
|
851
851
|
selector: '[etObserveResize]',
|
|
@@ -875,9 +875,9 @@ class ScrollObserverFirstElementDirective {
|
|
|
875
875
|
this._isFirstElement = coerceBooleanProperty(value);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
ScrollObserverFirstElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
879
|
-
ScrollObserverFirstElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
880
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
878
|
+
ScrollObserverFirstElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverFirstElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
879
|
+
ScrollObserverFirstElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ScrollObserverFirstElementDirective, isStandalone: true, selector: "[etScrollObserverFirstElement]", inputs: { isFirstElement: ["etScrollObserverFirstElement", "isFirstElement"] }, host: { properties: { "class.et-scroll-observer-first-element": "this.isFirstElement" } }, ngImport: i0 });
|
|
880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverFirstElementDirective, decorators: [{
|
|
881
881
|
type: Directive,
|
|
882
882
|
args: [{
|
|
883
883
|
selector: '[etScrollObserverFirstElement]',
|
|
@@ -894,9 +894,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
894
894
|
const SCROLL_OBSERVER_IGNORE_TARGET_CLASS = 'et-scroll-observer-ignore-target';
|
|
895
895
|
class ScrollObserverIgnoreTargetDirective {
|
|
896
896
|
}
|
|
897
|
-
ScrollObserverIgnoreTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
898
|
-
ScrollObserverIgnoreTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
899
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
897
|
+
ScrollObserverIgnoreTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
898
|
+
ScrollObserverIgnoreTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ScrollObserverIgnoreTargetDirective, isStandalone: true, selector: "[etScrollObserverIgnoreTarget]", host: { classAttribute: "et-scroll-observer-ignore-target" }, ngImport: i0 });
|
|
899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, decorators: [{
|
|
900
900
|
type: Directive,
|
|
901
901
|
args: [{
|
|
902
902
|
selector: '[etScrollObserverIgnoreTarget]',
|
|
@@ -919,9 +919,9 @@ class ScrollObserverLastElementDirective {
|
|
|
919
919
|
this._isLastElement = coerceBooleanProperty(value);
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
|
-
ScrollObserverLastElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
923
|
-
ScrollObserverLastElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
922
|
+
ScrollObserverLastElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverLastElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
923
|
+
ScrollObserverLastElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ScrollObserverLastElementDirective, isStandalone: true, selector: "[etScrollObserverLastElement]", inputs: { isLastElement: ["etScrollObserverLastElement", "isLastElement"] }, host: { properties: { "class.et-scroll-observer-last-element": "this.isLastElement" }, classAttribute: "et-scroll-observer-last-element" }, ngImport: i0 });
|
|
924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverLastElementDirective, decorators: [{
|
|
925
925
|
type: Directive,
|
|
926
926
|
args: [{
|
|
927
927
|
selector: '[etScrollObserverLastElement]',
|
|
@@ -1075,15 +1075,15 @@ class ObserveScrollStateDirective {
|
|
|
1075
1075
|
return element;
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
|
-
ObserveScrollStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1079
|
-
ObserveScrollStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
1078
|
+
ObserveScrollStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveScrollStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1079
|
+
ObserveScrollStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ObserveScrollStateDirective, isStandalone: true, selector: "[etObserveScrollState]", inputs: { observerRootMargin: "observerRootMargin", observerThreshold: "observerThreshold" }, outputs: { etObserveScrollState: "etObserveScrollState" }, providers: [
|
|
1080
1080
|
{
|
|
1081
1081
|
provide: OBSERVE_SCROLL_STATE,
|
|
1082
1082
|
useExisting: ObserveScrollStateDirective,
|
|
1083
1083
|
},
|
|
1084
1084
|
DestroyService,
|
|
1085
1085
|
], exportAs: ["etObserveScrollState"], ngImport: i0 });
|
|
1086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveScrollStateDirective, decorators: [{
|
|
1087
1087
|
type: Directive,
|
|
1088
1088
|
args: [{
|
|
1089
1089
|
selector: '[etObserveScrollState]',
|
|
@@ -1126,9 +1126,9 @@ class RepeatDirective {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
RepeatDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1130
|
-
RepeatDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
1131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1129
|
+
RepeatDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: RepeatDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1130
|
+
RepeatDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: RepeatDirective, isStandalone: true, selector: "[etRepeat]", inputs: { repeatCount: ["etRepeat", "repeatCount"] }, ngImport: i0 });
|
|
1131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: RepeatDirective, decorators: [{
|
|
1132
1132
|
type: Directive,
|
|
1133
1133
|
args: [{
|
|
1134
1134
|
selector: '[etRepeat]',
|
|
@@ -1167,6 +1167,10 @@ class SeoDirective {
|
|
|
1167
1167
|
this._cleanUp();
|
|
1168
1168
|
(_a = this.parent) === null || _a === void 0 ? void 0 : _a._activate();
|
|
1169
1169
|
}
|
|
1170
|
+
// TODO(TRB): This should get split up into multiple methods to make it more readable
|
|
1171
|
+
// - updateTitle
|
|
1172
|
+
// - updateMeta
|
|
1173
|
+
// - updateLink
|
|
1170
1174
|
updateConfig(config) {
|
|
1171
1175
|
var _a;
|
|
1172
1176
|
this._config = mergeSeoConfig(config, ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.config) || {});
|
|
@@ -1295,9 +1299,9 @@ class SeoDirective {
|
|
|
1295
1299
|
}
|
|
1296
1300
|
}
|
|
1297
1301
|
}
|
|
1298
|
-
SeoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1299
|
-
SeoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
1300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1302
|
+
SeoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: SeoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1303
|
+
SeoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: SeoDirective, isStandalone: true, providers: [{ provide: SEO_DIRECTIVE_TOKEN, useExisting: SeoDirective }], ngImport: i0 });
|
|
1304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: SeoDirective, decorators: [{
|
|
1301
1305
|
type: Directive,
|
|
1302
1306
|
args: [{
|
|
1303
1307
|
standalone: true,
|
|
@@ -1305,6 +1309,320 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
1305
1309
|
}]
|
|
1306
1310
|
}] });
|
|
1307
1311
|
|
|
1312
|
+
// TODO(TRB): Add correct type once provided by API
|
|
1313
|
+
const normalizeGameResultType = (type) => {
|
|
1314
|
+
if (!type) {
|
|
1315
|
+
return null;
|
|
1316
|
+
}
|
|
1317
|
+
switch (type) {
|
|
1318
|
+
case 'extra_time':
|
|
1319
|
+
return {
|
|
1320
|
+
i18n: 'game-result-type.extra-time',
|
|
1321
|
+
shortCode: 'AET',
|
|
1322
|
+
text: 'After Extra Time',
|
|
1323
|
+
};
|
|
1324
|
+
case 'penalty':
|
|
1325
|
+
return {
|
|
1326
|
+
i18n: 'game-result-type.penalty',
|
|
1327
|
+
shortCode: 'PSO',
|
|
1328
|
+
text: 'Penalty shootout',
|
|
1329
|
+
};
|
|
1330
|
+
case 'golden_goal':
|
|
1331
|
+
return {
|
|
1332
|
+
i18n: 'game-result-type.golden-goal',
|
|
1333
|
+
shortCode: 'GG',
|
|
1334
|
+
text: 'Golden Goal',
|
|
1335
|
+
};
|
|
1336
|
+
case 'default':
|
|
1337
|
+
default:
|
|
1338
|
+
return {
|
|
1339
|
+
i18n: 'game-result-type.full-time',
|
|
1340
|
+
shortCode: 'FT',
|
|
1341
|
+
text: 'Full Time',
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
class NormalizeGameResultTypePipe {
|
|
1347
|
+
constructor() {
|
|
1348
|
+
this.transform = normalizeGameResultType;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
NormalizeGameResultTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1352
|
+
NormalizeGameResultTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, isStandalone: true, name: "etNormalizeGameResultType" });
|
|
1353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, decorators: [{
|
|
1354
|
+
type: Pipe,
|
|
1355
|
+
args: [{ name: 'etNormalizeGameResultType', standalone: true }]
|
|
1356
|
+
}] });
|
|
1357
|
+
|
|
1358
|
+
const normalizeMatchState = (match) => {
|
|
1359
|
+
if (match === null || match === void 0 ? void 0 : match.isCompletedByReferee) {
|
|
1360
|
+
return "autoWin" /* MatchStateType.AUTO_WIN */;
|
|
1361
|
+
}
|
|
1362
|
+
else if ((match === null || match === void 0 ? void 0 : match.status) === 'preparing') {
|
|
1363
|
+
return "preMatch" /* MatchStateType.PRE_MATCH */;
|
|
1364
|
+
}
|
|
1365
|
+
else if ((match === null || match === void 0 ? void 0 : match.status) === 'started') {
|
|
1366
|
+
return "live" /* MatchStateType.LIVE */;
|
|
1367
|
+
}
|
|
1368
|
+
else if ((match === null || match === void 0 ? void 0 : match.status) === 'published' || (match === null || match === void 0 ? void 0 : match.status) === 'finished') {
|
|
1369
|
+
return "postMatch" /* MatchStateType.POST_MATCH */;
|
|
1370
|
+
}
|
|
1371
|
+
else if ((match === null || match === void 0 ? void 0 : match.round.state) !== 'preparing') {
|
|
1372
|
+
return "preparingRound" /* MatchStateType.PREPARING_ROUND */;
|
|
1373
|
+
}
|
|
1374
|
+
return null;
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
class NormalizeMatchStatePipe {
|
|
1378
|
+
constructor() {
|
|
1379
|
+
this.transform = normalizeMatchState;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
NormalizeMatchStatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1383
|
+
NormalizeMatchStatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchStatePipe, isStandalone: true, name: "etNormalizeMatchState" });
|
|
1384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchStatePipe, decorators: [{
|
|
1385
|
+
type: Pipe,
|
|
1386
|
+
args: [{ name: 'etNormalizeMatchState', standalone: true }]
|
|
1387
|
+
}] });
|
|
1388
|
+
|
|
1389
|
+
const normalizeMatchParticipants = (match) => {
|
|
1390
|
+
const matchState = normalizeMatchState(match);
|
|
1391
|
+
if (!match || !matchState) {
|
|
1392
|
+
return null;
|
|
1393
|
+
}
|
|
1394
|
+
return {
|
|
1395
|
+
home: normalizeMatchParticipant(match, 'home'),
|
|
1396
|
+
away: normalizeMatchParticipant(match, 'away'),
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
const normalizeMatchParticipant = (match, side) => {
|
|
1400
|
+
var _a, _b, _c, _d;
|
|
1401
|
+
const matchState = normalizeMatchState(match);
|
|
1402
|
+
if (!match || !matchState) {
|
|
1403
|
+
return null;
|
|
1404
|
+
}
|
|
1405
|
+
const participant = match[side];
|
|
1406
|
+
const participantType = (_d = (_b = (_a = match.home) === null || _a === void 0 ? void 0 : _a.type) !== null && _b !== void 0 ? _b : (_c = match.away) === null || _c === void 0 ? void 0 : _c.type) !== null && _d !== void 0 ? _d : 'unknown';
|
|
1407
|
+
if (!participant) {
|
|
1408
|
+
if (matchState === "postMatch" /* MatchStateType.POST_MATCH */ || matchState === "autoWin" /* MatchStateType.AUTO_WIN */) {
|
|
1409
|
+
return {
|
|
1410
|
+
participantType,
|
|
1411
|
+
type: 'none',
|
|
1412
|
+
i18n: 'match-participant.none',
|
|
1413
|
+
text: 'No opponent',
|
|
1414
|
+
data: participant,
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
else {
|
|
1418
|
+
return {
|
|
1419
|
+
participantType,
|
|
1420
|
+
type: 'tbd',
|
|
1421
|
+
i18n: 'match-participant.tbd',
|
|
1422
|
+
text: 'TBD',
|
|
1423
|
+
data: participant,
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
else {
|
|
1428
|
+
return {
|
|
1429
|
+
participantType,
|
|
1430
|
+
type: 'participant',
|
|
1431
|
+
data: participant,
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
class NormalizeMatchParticipantsPipe {
|
|
1437
|
+
constructor() {
|
|
1438
|
+
this.transform = normalizeMatchParticipants;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
NormalizeMatchParticipantsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1442
|
+
NormalizeMatchParticipantsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, isStandalone: true, name: "etNormalizeMatchParticipants" });
|
|
1443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, decorators: [{
|
|
1444
|
+
type: Pipe,
|
|
1445
|
+
args: [{ name: 'etNormalizeMatchParticipants', standalone: true }]
|
|
1446
|
+
}] });
|
|
1447
|
+
|
|
1448
|
+
const EMPTY_SCORE = {
|
|
1449
|
+
home: { score: 'match-score.placeholder', isWinner: false },
|
|
1450
|
+
away: { score: 'match-score.placeholder', isWinner: false },
|
|
1451
|
+
isNumeric: false,
|
|
1452
|
+
subLine: null,
|
|
1453
|
+
};
|
|
1454
|
+
const normalizeMatchScore = (match) => {
|
|
1455
|
+
var _a, _b;
|
|
1456
|
+
if (!match) {
|
|
1457
|
+
return null;
|
|
1458
|
+
}
|
|
1459
|
+
const matchState = normalizeMatchState(match);
|
|
1460
|
+
const subLine = getMatchScoreSubLine(match);
|
|
1461
|
+
if (!match.homeScore && !match.awayScore) {
|
|
1462
|
+
return Object.assign(Object.assign({}, EMPTY_SCORE), { subLine, isNumeric: false });
|
|
1463
|
+
}
|
|
1464
|
+
if (isKnockoutMatch(match)) {
|
|
1465
|
+
if (matchState === "preMatch" /* MatchStateType.PRE_MATCH */ || matchState === "live" /* MatchStateType.LIVE */) {
|
|
1466
|
+
return Object.assign(Object.assign({}, EMPTY_SCORE), { subLine, isNumeric: false });
|
|
1467
|
+
}
|
|
1468
|
+
return {
|
|
1469
|
+
home: {
|
|
1470
|
+
score: getKnockoutMatchScore(match.homeScore),
|
|
1471
|
+
isWinner: ((_a = match.homeScore) === null || _a === void 0 ? void 0 : _a.status) === 'won',
|
|
1472
|
+
},
|
|
1473
|
+
away: {
|
|
1474
|
+
score: getKnockoutMatchScore(match.awayScore),
|
|
1475
|
+
isWinner: ((_b = match.awayScore) === null || _b === void 0 ? void 0 : _b.status) === 'won',
|
|
1476
|
+
},
|
|
1477
|
+
subLine,
|
|
1478
|
+
isNumeric: false,
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
else if (isGroupMatch(match)) {
|
|
1482
|
+
if (match.games.length === 1) {
|
|
1483
|
+
// Return the score if only one game has been played
|
|
1484
|
+
return Object.assign(Object.assign({}, getGroupMatchScore(match)), { subLine, isNumeric: true });
|
|
1485
|
+
}
|
|
1486
|
+
else {
|
|
1487
|
+
return Object.assign(Object.assign({}, getGroupMatchPoints(match)), { subLine, isNumeric: true });
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
else {
|
|
1491
|
+
return Object.assign(Object.assign({}, getGroupMatchScore(match)), { subLine, isNumeric: true });
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
const isKnockoutMatch = (match) => {
|
|
1495
|
+
if (!match) {
|
|
1496
|
+
return false;
|
|
1497
|
+
}
|
|
1498
|
+
return (match.matchType === 'single_elimination' ||
|
|
1499
|
+
match.matchType === 'double_elimination' ||
|
|
1500
|
+
match.matchType === 'fifa_swiss');
|
|
1501
|
+
};
|
|
1502
|
+
const isGroupMatch = (match) => {
|
|
1503
|
+
if (!match) {
|
|
1504
|
+
return false;
|
|
1505
|
+
}
|
|
1506
|
+
return match.matchType === 'groups' || match.matchType === 'league';
|
|
1507
|
+
};
|
|
1508
|
+
const getKnockoutMatchScore = (score) => {
|
|
1509
|
+
if ((score === null || score === void 0 ? void 0 : score.status) === 'won') {
|
|
1510
|
+
return 'match-score.knockout.won';
|
|
1511
|
+
}
|
|
1512
|
+
else if ((score === null || score === void 0 ? void 0 : score.status) === 'lost') {
|
|
1513
|
+
return 'match-score.knockout.lost';
|
|
1514
|
+
}
|
|
1515
|
+
else if ((score === null || score === void 0 ? void 0 : score.status) === 'tie') {
|
|
1516
|
+
return 'match-score.knockout.tie';
|
|
1517
|
+
}
|
|
1518
|
+
return null;
|
|
1519
|
+
};
|
|
1520
|
+
const getMatchScoreSubLine = (match) => {
|
|
1521
|
+
if (isKnockoutMatch(match)) {
|
|
1522
|
+
return null;
|
|
1523
|
+
}
|
|
1524
|
+
else if (isGroupMatch(match)) {
|
|
1525
|
+
return 'match-score.groups.sub-line';
|
|
1526
|
+
}
|
|
1527
|
+
else {
|
|
1528
|
+
return null;
|
|
1529
|
+
}
|
|
1530
|
+
};
|
|
1531
|
+
const getGroupMatchScore = (match) => {
|
|
1532
|
+
var _a, _b, _c, _d;
|
|
1533
|
+
if (!match) {
|
|
1534
|
+
return null;
|
|
1535
|
+
}
|
|
1536
|
+
return {
|
|
1537
|
+
home: {
|
|
1538
|
+
score: ((_a = match.homeScore) === null || _a === void 0 ? void 0 : _a.ownPoints) || 0,
|
|
1539
|
+
isWinner: ((_b = match.homeScore) === null || _b === void 0 ? void 0 : _b.status) === 'won',
|
|
1540
|
+
},
|
|
1541
|
+
away: {
|
|
1542
|
+
score: ((_c = match.awayScore) === null || _c === void 0 ? void 0 : _c.ownPoints) || 0,
|
|
1543
|
+
isWinner: ((_d = match.awayScore) === null || _d === void 0 ? void 0 : _d.status) === 'won',
|
|
1544
|
+
},
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
const getGroupMatchPoints = (match) => {
|
|
1548
|
+
var _a, _b, _c, _d;
|
|
1549
|
+
if (!match) {
|
|
1550
|
+
return null;
|
|
1551
|
+
}
|
|
1552
|
+
return {
|
|
1553
|
+
home: {
|
|
1554
|
+
score: ((_a = match.homeScore) === null || _a === void 0 ? void 0 : _a.score) || 0,
|
|
1555
|
+
isWinner: ((_b = match.homeScore) === null || _b === void 0 ? void 0 : _b.status) === 'won',
|
|
1556
|
+
},
|
|
1557
|
+
away: {
|
|
1558
|
+
score: ((_c = match.awayScore) === null || _c === void 0 ? void 0 : _c.score) || 0,
|
|
1559
|
+
isWinner: ((_d = match.awayScore) === null || _d === void 0 ? void 0 : _d.status) === 'won',
|
|
1560
|
+
},
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
class NormalizeMatchScorePipe {
|
|
1565
|
+
constructor() {
|
|
1566
|
+
this.transform = normalizeMatchScore;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
NormalizeMatchScorePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchScorePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1570
|
+
NormalizeMatchScorePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchScorePipe, isStandalone: true, name: "etNormalizeMatchScore" });
|
|
1571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchScorePipe, decorators: [{
|
|
1572
|
+
type: Pipe,
|
|
1573
|
+
args: [{ name: 'etNormalizeMatchScore', standalone: true }]
|
|
1574
|
+
}] });
|
|
1575
|
+
|
|
1576
|
+
const normalizeMatchType = (matchType) => {
|
|
1577
|
+
if (!matchType) {
|
|
1578
|
+
return null;
|
|
1579
|
+
}
|
|
1580
|
+
switch (matchType) {
|
|
1581
|
+
case 'double_elimination':
|
|
1582
|
+
return {
|
|
1583
|
+
i18n: 'match-type.double-elimination',
|
|
1584
|
+
text: 'Double Elimination',
|
|
1585
|
+
};
|
|
1586
|
+
case 'single_elimination':
|
|
1587
|
+
return {
|
|
1588
|
+
i18n: 'match-type.single-elimination',
|
|
1589
|
+
text: 'Single Elimination',
|
|
1590
|
+
};
|
|
1591
|
+
case 'fifa_swiss':
|
|
1592
|
+
return {
|
|
1593
|
+
i18n: 'match-type.fifa-swiss',
|
|
1594
|
+
text: 'FIFA Swiss',
|
|
1595
|
+
};
|
|
1596
|
+
case 'groups':
|
|
1597
|
+
return {
|
|
1598
|
+
i18n: 'match-type.groups',
|
|
1599
|
+
text: 'Groups',
|
|
1600
|
+
};
|
|
1601
|
+
case 'league':
|
|
1602
|
+
return {
|
|
1603
|
+
i18n: 'match-type.league',
|
|
1604
|
+
text: 'League',
|
|
1605
|
+
};
|
|
1606
|
+
case 'pools':
|
|
1607
|
+
return {
|
|
1608
|
+
i18n: 'match-type.pools',
|
|
1609
|
+
text: 'Pools',
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
|
|
1614
|
+
class NormalizeMatchTypePipe {
|
|
1615
|
+
constructor() {
|
|
1616
|
+
this.transform = normalizeMatchType;
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
NormalizeMatchTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1620
|
+
NormalizeMatchTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchTypePipe, isStandalone: true, name: "etNormalizeMatchType" });
|
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchTypePipe, decorators: [{
|
|
1622
|
+
type: Pipe,
|
|
1623
|
+
args: [{ name: 'etNormalizeMatchType', standalone: true }]
|
|
1624
|
+
}] });
|
|
1625
|
+
|
|
1308
1626
|
const toArray = (value) => {
|
|
1309
1627
|
return Array.from({ length: value }, (_, i) => i);
|
|
1310
1628
|
};
|
|
@@ -1315,9 +1633,9 @@ class ToArrayPipe {
|
|
|
1315
1633
|
this.transform = toArray;
|
|
1316
1634
|
}
|
|
1317
1635
|
}
|
|
1318
|
-
ToArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1319
|
-
ToArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.
|
|
1320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1636
|
+
ToArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ToArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1637
|
+
ToArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: ToArrayPipe, isStandalone: true, name: "toArray" });
|
|
1638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ToArrayPipe, decorators: [{
|
|
1321
1639
|
type: Pipe,
|
|
1322
1640
|
args: [{ name: 'toArray', standalone: true }]
|
|
1323
1641
|
}] });
|
|
@@ -1326,5 +1644,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
1326
1644
|
* Generated bundle index. Do not edit.
|
|
1327
1645
|
*/
|
|
1328
1646
|
|
|
1329
|
-
export { ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEFAULT_VIEWPORT_CONFIG, DestroyDirective, DestroyService, FocusVisibleService, LetContext, LetDirective, Memo, MutationObserverFactory, OBSERVE_SCROLL_STATE, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, RepeatDirective, ResizeObserverFactory, ResizeObserverService, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SeoDirective, ToArrayPipe, VIEWPORT_CONFIG, ViewportService, clamp, elementCanScroll, mergeSeoConfig, provideViewportConfig, toArray, toArrayTrackByFn };
|
|
1647
|
+
export { ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEFAULT_VIEWPORT_CONFIG, DestroyDirective, DestroyService, FocusVisibleService, LetContext, LetDirective, Memo, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, RepeatDirective, ResizeObserverFactory, ResizeObserverService, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SeoDirective, ToArrayPipe, VIEWPORT_CONFIG, ViewportService, clamp, elementCanScroll, getGroupMatchPoints, getGroupMatchScore, getKnockoutMatchScore, getMatchScoreSubLine, isGroupMatch, isKnockoutMatch, mergeSeoConfig, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, provideViewportConfig, toArray, toArrayTrackByFn };
|
|
1330
1648
|
//# sourceMappingURL=ethlete-core.mjs.map
|