@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
|
@@ -55,9 +55,9 @@ class ClickObserverFactory {
|
|
|
55
55
|
return fromEvent(document, 'click');
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
ClickObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
59
|
-
ClickObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
58
|
+
ClickObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
59
|
+
ClickObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverFactory, providedIn: 'root' });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverFactory, decorators: [{
|
|
61
61
|
type: Injectable,
|
|
62
62
|
args: [{ providedIn: 'root' }]
|
|
63
63
|
}] });
|
|
@@ -111,9 +111,9 @@ class ClickObserverService {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
ClickObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
115
|
-
ClickObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
114
|
+
ClickObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverService, deps: [{ token: ClickObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
115
|
+
ClickObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverService, providedIn: 'root' });
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickObserverService, decorators: [{
|
|
117
117
|
type: Injectable,
|
|
118
118
|
args: [{ providedIn: 'root' }]
|
|
119
119
|
}], ctorParameters: function () { return [{ type: ClickObserverFactory }]; } });
|
|
@@ -124,9 +124,9 @@ class MutationObserverFactory {
|
|
|
124
124
|
return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
MutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
128
|
-
MutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
127
|
+
MutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
128
|
+
MutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' });
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MutationObserverFactory, decorators: [{
|
|
130
130
|
type: Injectable,
|
|
131
131
|
args: [{ providedIn: 'root' }]
|
|
132
132
|
}] });
|
|
@@ -186,9 +186,9 @@ class ContentObserverService {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
ContentObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
190
|
-
ContentObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
189
|
+
ContentObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ContentObserverService, deps: [{ token: MutationObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
190
|
+
ContentObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ContentObserverService, providedIn: 'root' });
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ContentObserverService, decorators: [{
|
|
192
192
|
type: Injectable,
|
|
193
193
|
args: [{ providedIn: 'root' }]
|
|
194
194
|
}], ctorParameters: function () { return [{ type: MutationObserverFactory }]; } });
|
|
@@ -203,9 +203,9 @@ class DestroyService {
|
|
|
203
203
|
this._destroy$.unsubscribe();
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
DestroyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
207
|
-
DestroyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
206
|
+
DestroyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
207
|
+
DestroyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyService });
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyService, decorators: [{
|
|
209
209
|
type: Injectable
|
|
210
210
|
}] });
|
|
211
211
|
|
|
@@ -231,9 +231,9 @@ class FocusVisibleService {
|
|
|
231
231
|
this._hadKeyboardEvent = false;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
FocusVisibleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
235
|
-
FocusVisibleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
234
|
+
FocusVisibleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FocusVisibleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
235
|
+
FocusVisibleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FocusVisibleService, providedIn: 'root' });
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FocusVisibleService, decorators: [{
|
|
237
237
|
type: Injectable,
|
|
238
238
|
args: [{
|
|
239
239
|
providedIn: 'root',
|
|
@@ -246,9 +246,9 @@ class ResizeObserverFactory {
|
|
|
246
246
|
return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
ResizeObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
250
|
-
ResizeObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
251
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
249
|
+
ResizeObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
250
|
+
ResizeObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverFactory, providedIn: 'root' });
|
|
251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverFactory, decorators: [{
|
|
252
252
|
type: Injectable,
|
|
253
253
|
args: [{ providedIn: 'root' }]
|
|
254
254
|
}] });
|
|
@@ -304,9 +304,9 @@ class ResizeObserverService {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
ResizeObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
308
|
-
ResizeObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
307
|
+
ResizeObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverService, deps: [{ token: ResizeObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
308
|
+
ResizeObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverService, providedIn: 'root' });
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ResizeObserverService, decorators: [{
|
|
310
310
|
type: Injectable,
|
|
311
311
|
args: [{ providedIn: 'root' }]
|
|
312
312
|
}], ctorParameters: function () { return [{ type: ResizeObserverFactory }]; } });
|
|
@@ -441,8 +441,8 @@ class ViewportService {
|
|
|
441
441
|
return 'xs';
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
ViewportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
445
|
-
ViewportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.
|
|
444
|
+
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 });
|
|
445
|
+
ViewportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ViewportService, providedIn: 'root' });
|
|
446
446
|
__decorate([
|
|
447
447
|
Memo(),
|
|
448
448
|
__metadata("design:type", Function),
|
|
@@ -459,7 +459,7 @@ __decorate([
|
|
|
459
459
|
__metadata("design:paramtypes", [Object]),
|
|
460
460
|
__metadata("design:returntype", void 0)
|
|
461
461
|
], ViewportService.prototype, "_buildMediaQuery", null);
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ViewportService, decorators: [{
|
|
463
463
|
type: Injectable,
|
|
464
464
|
args: [{
|
|
465
465
|
providedIn: 'root',
|
|
@@ -493,9 +493,9 @@ class ClickOutsideDirective {
|
|
|
493
493
|
this._subscription?.unsubscribe();
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
497
|
-
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
496
|
+
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickOutsideDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
497
|
+
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ClickOutsideDirective, isStandalone: true, selector: "[etClickOutside]", outputs: { etClickOutside: "etClickOutside" }, ngImport: i0 });
|
|
498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
499
499
|
type: Directive,
|
|
500
500
|
args: [{
|
|
501
501
|
selector: '[etClickOutside]',
|
|
@@ -646,9 +646,9 @@ class CursorDragScrollDirective {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
CursorDragScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
650
|
-
CursorDragScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
649
|
+
CursorDragScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CursorDragScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
650
|
+
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 });
|
|
651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CursorDragScrollDirective, decorators: [{
|
|
652
652
|
type: Directive,
|
|
653
653
|
args: [{
|
|
654
654
|
selector: '[etCursorDragScroll]',
|
|
@@ -671,9 +671,9 @@ class DestroyDirective {
|
|
|
671
671
|
this._destroy$.unsubscribe();
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
DestroyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
675
|
-
DestroyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
674
|
+
DestroyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
675
|
+
DestroyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: DestroyDirective, isStandalone: true, ngImport: i0 });
|
|
676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: DestroyDirective, decorators: [{
|
|
677
677
|
type: Directive,
|
|
678
678
|
args: [{
|
|
679
679
|
standalone: true,
|
|
@@ -714,9 +714,9 @@ class LetDirective {
|
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
LetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
718
|
-
LetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
717
|
+
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 });
|
|
718
|
+
LetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: LetDirective, isStandalone: true, selector: "[etLet]", inputs: { etLet: "etLet" }, ngImport: i0 });
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: LetDirective, decorators: [{
|
|
720
720
|
type: Directive,
|
|
721
721
|
args: [{
|
|
722
722
|
selector: '[etLet]',
|
|
@@ -769,9 +769,9 @@ class ObserveContentDirective {
|
|
|
769
769
|
this._currentSubscription?.unsubscribe();
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
|
-
ObserveContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
773
|
-
ObserveContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
774
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
772
|
+
ObserveContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
773
|
+
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 });
|
|
774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveContentDirective, decorators: [{
|
|
775
775
|
type: Directive,
|
|
776
776
|
args: [{
|
|
777
777
|
selector: '[etObserveContent]',
|
|
@@ -832,9 +832,9 @@ class ObserveResizeDirective {
|
|
|
832
832
|
this._currentSubscription?.unsubscribe();
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
ObserveResizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
836
|
-
ObserveResizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
835
|
+
ObserveResizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveResizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
836
|
+
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 });
|
|
837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveResizeDirective, decorators: [{
|
|
838
838
|
type: Directive,
|
|
839
839
|
args: [{
|
|
840
840
|
selector: '[etObserveResize]',
|
|
@@ -864,9 +864,9 @@ class ScrollObserverFirstElementDirective {
|
|
|
864
864
|
this._isFirstElement = coerceBooleanProperty(value);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
ScrollObserverFirstElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
868
|
-
ScrollObserverFirstElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
867
|
+
ScrollObserverFirstElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverFirstElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
868
|
+
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 });
|
|
869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverFirstElementDirective, decorators: [{
|
|
870
870
|
type: Directive,
|
|
871
871
|
args: [{
|
|
872
872
|
selector: '[etScrollObserverFirstElement]',
|
|
@@ -883,9 +883,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
883
883
|
const SCROLL_OBSERVER_IGNORE_TARGET_CLASS = 'et-scroll-observer-ignore-target';
|
|
884
884
|
class ScrollObserverIgnoreTargetDirective {
|
|
885
885
|
}
|
|
886
|
-
ScrollObserverIgnoreTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
887
|
-
ScrollObserverIgnoreTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
886
|
+
ScrollObserverIgnoreTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
887
|
+
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 });
|
|
888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, decorators: [{
|
|
889
889
|
type: Directive,
|
|
890
890
|
args: [{
|
|
891
891
|
selector: '[etScrollObserverIgnoreTarget]',
|
|
@@ -908,9 +908,9 @@ class ScrollObserverLastElementDirective {
|
|
|
908
908
|
this._isLastElement = coerceBooleanProperty(value);
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
ScrollObserverLastElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
912
|
-
ScrollObserverLastElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
911
|
+
ScrollObserverLastElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverLastElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
912
|
+
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 });
|
|
913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ScrollObserverLastElementDirective, decorators: [{
|
|
914
914
|
type: Directive,
|
|
915
915
|
args: [{
|
|
916
916
|
selector: '[etScrollObserverLastElement]',
|
|
@@ -1060,15 +1060,15 @@ class ObserveScrollStateDirective {
|
|
|
1060
1060
|
return element;
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
ObserveScrollStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1064
|
-
ObserveScrollStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
1063
|
+
ObserveScrollStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveScrollStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1064
|
+
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: [
|
|
1065
1065
|
{
|
|
1066
1066
|
provide: OBSERVE_SCROLL_STATE,
|
|
1067
1067
|
useExisting: ObserveScrollStateDirective,
|
|
1068
1068
|
},
|
|
1069
1069
|
DestroyService,
|
|
1070
1070
|
], exportAs: ["etObserveScrollState"], ngImport: i0 });
|
|
1071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveScrollStateDirective, decorators: [{
|
|
1072
1072
|
type: Directive,
|
|
1073
1073
|
args: [{
|
|
1074
1074
|
selector: '[etObserveScrollState]',
|
|
@@ -1111,9 +1111,9 @@ class RepeatDirective {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
|
-
RepeatDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1115
|
-
RepeatDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
1116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1114
|
+
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 });
|
|
1115
|
+
RepeatDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: RepeatDirective, isStandalone: true, selector: "[etRepeat]", inputs: { repeatCount: ["etRepeat", "repeatCount"] }, ngImport: i0 });
|
|
1116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: RepeatDirective, decorators: [{
|
|
1117
1117
|
type: Directive,
|
|
1118
1118
|
args: [{
|
|
1119
1119
|
selector: '[etRepeat]',
|
|
@@ -1153,6 +1153,10 @@ class SeoDirective {
|
|
|
1153
1153
|
this._cleanUp();
|
|
1154
1154
|
this.parent?._activate();
|
|
1155
1155
|
}
|
|
1156
|
+
// TODO(TRB): This should get split up into multiple methods to make it more readable
|
|
1157
|
+
// - updateTitle
|
|
1158
|
+
// - updateMeta
|
|
1159
|
+
// - updateLink
|
|
1156
1160
|
updateConfig(config) {
|
|
1157
1161
|
this._config = mergeSeoConfig(config, this.parent?.config || {});
|
|
1158
1162
|
if (this._isDeactivated) {
|
|
@@ -1279,9 +1283,9 @@ class SeoDirective {
|
|
|
1279
1283
|
}
|
|
1280
1284
|
}
|
|
1281
1285
|
}
|
|
1282
|
-
SeoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1283
|
-
SeoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.
|
|
1284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1286
|
+
SeoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: SeoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1287
|
+
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 });
|
|
1288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: SeoDirective, decorators: [{
|
|
1285
1289
|
type: Directive,
|
|
1286
1290
|
args: [{
|
|
1287
1291
|
standalone: true,
|
|
@@ -1289,6 +1293,328 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
1289
1293
|
}]
|
|
1290
1294
|
}] });
|
|
1291
1295
|
|
|
1296
|
+
// TODO(TRB): Add correct type once provided by API
|
|
1297
|
+
const normalizeGameResultType = (type) => {
|
|
1298
|
+
if (!type) {
|
|
1299
|
+
return null;
|
|
1300
|
+
}
|
|
1301
|
+
switch (type) {
|
|
1302
|
+
case 'extra_time':
|
|
1303
|
+
return {
|
|
1304
|
+
i18n: 'game-result-type.extra-time',
|
|
1305
|
+
shortCode: 'AET',
|
|
1306
|
+
text: 'After Extra Time',
|
|
1307
|
+
};
|
|
1308
|
+
case 'penalty':
|
|
1309
|
+
return {
|
|
1310
|
+
i18n: 'game-result-type.penalty',
|
|
1311
|
+
shortCode: 'PSO',
|
|
1312
|
+
text: 'Penalty shootout',
|
|
1313
|
+
};
|
|
1314
|
+
case 'golden_goal':
|
|
1315
|
+
return {
|
|
1316
|
+
i18n: 'game-result-type.golden-goal',
|
|
1317
|
+
shortCode: 'GG',
|
|
1318
|
+
text: 'Golden Goal',
|
|
1319
|
+
};
|
|
1320
|
+
case 'default':
|
|
1321
|
+
default:
|
|
1322
|
+
return {
|
|
1323
|
+
i18n: 'game-result-type.full-time',
|
|
1324
|
+
shortCode: 'FT',
|
|
1325
|
+
text: 'Full Time',
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
class NormalizeGameResultTypePipe {
|
|
1331
|
+
constructor() {
|
|
1332
|
+
this.transform = normalizeGameResultType;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
NormalizeGameResultTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1336
|
+
NormalizeGameResultTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, isStandalone: true, name: "etNormalizeGameResultType" });
|
|
1337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, decorators: [{
|
|
1338
|
+
type: Pipe,
|
|
1339
|
+
args: [{ name: 'etNormalizeGameResultType', standalone: true }]
|
|
1340
|
+
}] });
|
|
1341
|
+
|
|
1342
|
+
const normalizeMatchState = (match) => {
|
|
1343
|
+
if (match?.isCompletedByReferee) {
|
|
1344
|
+
return "autoWin" /* MatchStateType.AUTO_WIN */;
|
|
1345
|
+
}
|
|
1346
|
+
else if (match?.status === 'preparing') {
|
|
1347
|
+
return "preMatch" /* MatchStateType.PRE_MATCH */;
|
|
1348
|
+
}
|
|
1349
|
+
else if (match?.status === 'started') {
|
|
1350
|
+
return "live" /* MatchStateType.LIVE */;
|
|
1351
|
+
}
|
|
1352
|
+
else if (match?.status === 'published' || match?.status === 'finished') {
|
|
1353
|
+
return "postMatch" /* MatchStateType.POST_MATCH */;
|
|
1354
|
+
}
|
|
1355
|
+
else if (match?.round.state !== 'preparing') {
|
|
1356
|
+
return "preparingRound" /* MatchStateType.PREPARING_ROUND */;
|
|
1357
|
+
}
|
|
1358
|
+
return null;
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
class NormalizeMatchStatePipe {
|
|
1362
|
+
constructor() {
|
|
1363
|
+
this.transform = normalizeMatchState;
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
NormalizeMatchStatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1367
|
+
NormalizeMatchStatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchStatePipe, isStandalone: true, name: "etNormalizeMatchState" });
|
|
1368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchStatePipe, decorators: [{
|
|
1369
|
+
type: Pipe,
|
|
1370
|
+
args: [{ name: 'etNormalizeMatchState', standalone: true }]
|
|
1371
|
+
}] });
|
|
1372
|
+
|
|
1373
|
+
const normalizeMatchParticipants = (match) => {
|
|
1374
|
+
const matchState = normalizeMatchState(match);
|
|
1375
|
+
if (!match || !matchState) {
|
|
1376
|
+
return null;
|
|
1377
|
+
}
|
|
1378
|
+
return {
|
|
1379
|
+
home: normalizeMatchParticipant(match, 'home'),
|
|
1380
|
+
away: normalizeMatchParticipant(match, 'away'),
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
const normalizeMatchParticipant = (match, side) => {
|
|
1384
|
+
const matchState = normalizeMatchState(match);
|
|
1385
|
+
if (!match || !matchState) {
|
|
1386
|
+
return null;
|
|
1387
|
+
}
|
|
1388
|
+
const participant = match[side];
|
|
1389
|
+
const participantType = match.home?.type ?? match.away?.type ?? 'unknown';
|
|
1390
|
+
if (!participant) {
|
|
1391
|
+
if (matchState === "postMatch" /* MatchStateType.POST_MATCH */ || matchState === "autoWin" /* MatchStateType.AUTO_WIN */) {
|
|
1392
|
+
return {
|
|
1393
|
+
participantType,
|
|
1394
|
+
type: 'none',
|
|
1395
|
+
i18n: 'match-participant.none',
|
|
1396
|
+
text: 'No opponent',
|
|
1397
|
+
data: participant,
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
else {
|
|
1401
|
+
return {
|
|
1402
|
+
participantType,
|
|
1403
|
+
type: 'tbd',
|
|
1404
|
+
i18n: 'match-participant.tbd',
|
|
1405
|
+
text: 'TBD',
|
|
1406
|
+
data: participant,
|
|
1407
|
+
};
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
else {
|
|
1411
|
+
return {
|
|
1412
|
+
participantType,
|
|
1413
|
+
type: 'participant',
|
|
1414
|
+
data: participant,
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
class NormalizeMatchParticipantsPipe {
|
|
1420
|
+
constructor() {
|
|
1421
|
+
this.transform = normalizeMatchParticipants;
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
NormalizeMatchParticipantsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1425
|
+
NormalizeMatchParticipantsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, isStandalone: true, name: "etNormalizeMatchParticipants" });
|
|
1426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, decorators: [{
|
|
1427
|
+
type: Pipe,
|
|
1428
|
+
args: [{ name: 'etNormalizeMatchParticipants', standalone: true }]
|
|
1429
|
+
}] });
|
|
1430
|
+
|
|
1431
|
+
const EMPTY_SCORE = {
|
|
1432
|
+
home: { score: 'match-score.placeholder', isWinner: false },
|
|
1433
|
+
away: { score: 'match-score.placeholder', isWinner: false },
|
|
1434
|
+
isNumeric: false,
|
|
1435
|
+
subLine: null,
|
|
1436
|
+
};
|
|
1437
|
+
const normalizeMatchScore = (match) => {
|
|
1438
|
+
if (!match) {
|
|
1439
|
+
return null;
|
|
1440
|
+
}
|
|
1441
|
+
const matchState = normalizeMatchState(match);
|
|
1442
|
+
const subLine = getMatchScoreSubLine(match);
|
|
1443
|
+
if (!match.homeScore && !match.awayScore) {
|
|
1444
|
+
return { ...EMPTY_SCORE, subLine, isNumeric: false };
|
|
1445
|
+
}
|
|
1446
|
+
if (isKnockoutMatch(match)) {
|
|
1447
|
+
if (matchState === "preMatch" /* MatchStateType.PRE_MATCH */ || matchState === "live" /* MatchStateType.LIVE */) {
|
|
1448
|
+
return { ...EMPTY_SCORE, subLine, isNumeric: false };
|
|
1449
|
+
}
|
|
1450
|
+
return {
|
|
1451
|
+
home: {
|
|
1452
|
+
score: getKnockoutMatchScore(match.homeScore),
|
|
1453
|
+
isWinner: match.homeScore?.status === 'won',
|
|
1454
|
+
},
|
|
1455
|
+
away: {
|
|
1456
|
+
score: getKnockoutMatchScore(match.awayScore),
|
|
1457
|
+
isWinner: match.awayScore?.status === 'won',
|
|
1458
|
+
},
|
|
1459
|
+
subLine,
|
|
1460
|
+
isNumeric: false,
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
else if (isGroupMatch(match)) {
|
|
1464
|
+
if (match.games.length === 1) {
|
|
1465
|
+
// Return the score if only one game has been played
|
|
1466
|
+
return {
|
|
1467
|
+
...getGroupMatchScore(match),
|
|
1468
|
+
subLine,
|
|
1469
|
+
isNumeric: true,
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
else {
|
|
1473
|
+
return {
|
|
1474
|
+
...getGroupMatchPoints(match),
|
|
1475
|
+
subLine,
|
|
1476
|
+
isNumeric: true,
|
|
1477
|
+
};
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
else {
|
|
1481
|
+
return {
|
|
1482
|
+
...getGroupMatchScore(match),
|
|
1483
|
+
subLine,
|
|
1484
|
+
isNumeric: true,
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
const isKnockoutMatch = (match) => {
|
|
1489
|
+
if (!match) {
|
|
1490
|
+
return false;
|
|
1491
|
+
}
|
|
1492
|
+
return (match.matchType === 'single_elimination' ||
|
|
1493
|
+
match.matchType === 'double_elimination' ||
|
|
1494
|
+
match.matchType === 'fifa_swiss');
|
|
1495
|
+
};
|
|
1496
|
+
const isGroupMatch = (match) => {
|
|
1497
|
+
if (!match) {
|
|
1498
|
+
return false;
|
|
1499
|
+
}
|
|
1500
|
+
return match.matchType === 'groups' || match.matchType === 'league';
|
|
1501
|
+
};
|
|
1502
|
+
const getKnockoutMatchScore = (score) => {
|
|
1503
|
+
if (score?.status === 'won') {
|
|
1504
|
+
return 'match-score.knockout.won';
|
|
1505
|
+
}
|
|
1506
|
+
else if (score?.status === 'lost') {
|
|
1507
|
+
return 'match-score.knockout.lost';
|
|
1508
|
+
}
|
|
1509
|
+
else if (score?.status === 'tie') {
|
|
1510
|
+
return 'match-score.knockout.tie';
|
|
1511
|
+
}
|
|
1512
|
+
return null;
|
|
1513
|
+
};
|
|
1514
|
+
const getMatchScoreSubLine = (match) => {
|
|
1515
|
+
if (isKnockoutMatch(match)) {
|
|
1516
|
+
return null;
|
|
1517
|
+
}
|
|
1518
|
+
else if (isGroupMatch(match)) {
|
|
1519
|
+
return 'match-score.groups.sub-line';
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
return null;
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
const getGroupMatchScore = (match) => {
|
|
1526
|
+
if (!match) {
|
|
1527
|
+
return null;
|
|
1528
|
+
}
|
|
1529
|
+
return {
|
|
1530
|
+
home: {
|
|
1531
|
+
score: match.homeScore?.ownPoints || 0,
|
|
1532
|
+
isWinner: match.homeScore?.status === 'won',
|
|
1533
|
+
},
|
|
1534
|
+
away: {
|
|
1535
|
+
score: match.awayScore?.ownPoints || 0,
|
|
1536
|
+
isWinner: match.awayScore?.status === 'won',
|
|
1537
|
+
},
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
1540
|
+
const getGroupMatchPoints = (match) => {
|
|
1541
|
+
if (!match) {
|
|
1542
|
+
return null;
|
|
1543
|
+
}
|
|
1544
|
+
return {
|
|
1545
|
+
home: {
|
|
1546
|
+
score: match.homeScore?.score || 0,
|
|
1547
|
+
isWinner: match.homeScore?.status === 'won',
|
|
1548
|
+
},
|
|
1549
|
+
away: {
|
|
1550
|
+
score: match.awayScore?.score || 0,
|
|
1551
|
+
isWinner: match.awayScore?.status === 'won',
|
|
1552
|
+
},
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
class NormalizeMatchScorePipe {
|
|
1557
|
+
constructor() {
|
|
1558
|
+
this.transform = normalizeMatchScore;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
NormalizeMatchScorePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchScorePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1562
|
+
NormalizeMatchScorePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchScorePipe, isStandalone: true, name: "etNormalizeMatchScore" });
|
|
1563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchScorePipe, decorators: [{
|
|
1564
|
+
type: Pipe,
|
|
1565
|
+
args: [{ name: 'etNormalizeMatchScore', standalone: true }]
|
|
1566
|
+
}] });
|
|
1567
|
+
|
|
1568
|
+
const normalizeMatchType = (matchType) => {
|
|
1569
|
+
if (!matchType) {
|
|
1570
|
+
return null;
|
|
1571
|
+
}
|
|
1572
|
+
switch (matchType) {
|
|
1573
|
+
case 'double_elimination':
|
|
1574
|
+
return {
|
|
1575
|
+
i18n: 'match-type.double-elimination',
|
|
1576
|
+
text: 'Double Elimination',
|
|
1577
|
+
};
|
|
1578
|
+
case 'single_elimination':
|
|
1579
|
+
return {
|
|
1580
|
+
i18n: 'match-type.single-elimination',
|
|
1581
|
+
text: 'Single Elimination',
|
|
1582
|
+
};
|
|
1583
|
+
case 'fifa_swiss':
|
|
1584
|
+
return {
|
|
1585
|
+
i18n: 'match-type.fifa-swiss',
|
|
1586
|
+
text: 'FIFA Swiss',
|
|
1587
|
+
};
|
|
1588
|
+
case 'groups':
|
|
1589
|
+
return {
|
|
1590
|
+
i18n: 'match-type.groups',
|
|
1591
|
+
text: 'Groups',
|
|
1592
|
+
};
|
|
1593
|
+
case 'league':
|
|
1594
|
+
return {
|
|
1595
|
+
i18n: 'match-type.league',
|
|
1596
|
+
text: 'League',
|
|
1597
|
+
};
|
|
1598
|
+
case 'pools':
|
|
1599
|
+
return {
|
|
1600
|
+
i18n: 'match-type.pools',
|
|
1601
|
+
text: 'Pools',
|
|
1602
|
+
};
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
|
|
1606
|
+
class NormalizeMatchTypePipe {
|
|
1607
|
+
constructor() {
|
|
1608
|
+
this.transform = normalizeMatchType;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
NormalizeMatchTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1612
|
+
NormalizeMatchTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchTypePipe, isStandalone: true, name: "etNormalizeMatchType" });
|
|
1613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NormalizeMatchTypePipe, decorators: [{
|
|
1614
|
+
type: Pipe,
|
|
1615
|
+
args: [{ name: 'etNormalizeMatchType', standalone: true }]
|
|
1616
|
+
}] });
|
|
1617
|
+
|
|
1292
1618
|
const toArray = (value) => {
|
|
1293
1619
|
return Array.from({ length: value }, (_, i) => i);
|
|
1294
1620
|
};
|
|
@@ -1299,9 +1625,9 @@ class ToArrayPipe {
|
|
|
1299
1625
|
this.transform = toArray;
|
|
1300
1626
|
}
|
|
1301
1627
|
}
|
|
1302
|
-
ToArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.
|
|
1303
|
-
ToArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.
|
|
1304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.
|
|
1628
|
+
ToArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ToArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1629
|
+
ToArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: ToArrayPipe, isStandalone: true, name: "toArray" });
|
|
1630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ToArrayPipe, decorators: [{
|
|
1305
1631
|
type: Pipe,
|
|
1306
1632
|
args: [{ name: 'toArray', standalone: true }]
|
|
1307
1633
|
}] });
|
|
@@ -1310,5 +1636,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
1310
1636
|
* Generated bundle index. Do not edit.
|
|
1311
1637
|
*/
|
|
1312
1638
|
|
|
1313
|
-
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 };
|
|
1639
|
+
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 };
|
|
1314
1640
|
//# sourceMappingURL=ethlete-core.mjs.map
|