sk-front-lib 0.17.49 → 0.17.51
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/sk-byte.pipe.mjs +4 -4
- package/esm2020/lib/sk-date-time.pipe.mjs +4 -4
- package/esm2020/lib/sk-date.pipe.mjs +4 -4
- package/esm2020/lib/sk-front-lib.module.mjs +5 -5
- package/esm2020/lib/sk-keys.pipe.mjs +4 -4
- package/esm2020/lib/sk-time.pipe.mjs +4 -4
- package/fesm2015/sk-front-lib.mjs +19 -19
- package/fesm2015/sk-front-lib.mjs.map +1 -1
- package/fesm2020/sk-front-lib.mjs +19 -19
- package/fesm2020/sk-front-lib.mjs.map +1 -1
- package/lib/sk-byte.pipe.d.ts +1 -1
- package/lib/sk-date-time.pipe.d.ts +1 -1
- package/lib/sk-date.pipe.d.ts +1 -1
- package/lib/sk-keys.pipe.d.ts +1 -1
- package/lib/sk-time.pipe.d.ts +1 -1
- package/package.json +3 -67
- package/api/model/api-config.d.ts +0 -6
- package/api/model/api-pageable-param.d.ts +0 -11
- package/api/model/api-pageable.d.ts +0 -11
- package/api/model/api-response.d.ts +0 -8
- package/api/model/index.d.ts +0 -4
- package/api/package.json +0 -10
- package/api/public_api.d.ts +0 -3
- package/api/sk-api.module.d.ts +0 -12
- package/api/sk-api.service.d.ts +0 -34
- package/api/sk-front-lib-api.d.ts +0 -5
- package/article/package.json +0 -10
- package/article/public_api.d.ts +0 -6
- package/article/sk-article-editor-server.component.d.ts +0 -23
- package/article/sk-article-editor.component.d.ts +0 -27
- package/article/sk-article-server.module.d.ts +0 -10
- package/article/sk-article.module.d.ts +0 -9
- package/article/sk-article.service.d.ts +0 -96
- package/article/sk-froala-editor.directive.d.ts +0 -40
- package/article/sk-front-lib-article.d.ts +0 -5
- package/crud/package.json +0 -10
- package/crud/public_api.d.ts +0 -24
- package/crud/sk-account.service.d.ts +0 -16
- package/crud/sk-affiliate.service.d.ts +0 -38
- package/crud/sk-auth-admin.guard.d.ts +0 -13
- package/crud/sk-auth.guard.d.ts +0 -13
- package/crud/sk-auth.service.d.ts +0 -33
- package/crud/sk-board.service.d.ts +0 -21
- package/crud/sk-brand.service.d.ts +0 -19
- package/crud/sk-cart.service.d.ts +0 -72
- package/crud/sk-category.service.d.ts +0 -28
- package/crud/sk-comment.service.d.ts +0 -15
- package/crud/sk-config.service.d.ts +0 -13
- package/crud/sk-contact.service.d.ts +0 -15
- package/crud/sk-coupon.service.d.ts +0 -24
- package/crud/sk-document.service.d.ts +0 -51
- package/crud/sk-etc.service.d.ts +0 -12
- package/crud/sk-file.service.d.ts +0 -18
- package/crud/sk-front-lib-crud.d.ts +0 -5
- package/crud/sk-keyword.service.d.ts +0 -19
- package/crud/sk-order.service.d.ts +0 -45
- package/crud/sk-point.service.d.ts +0 -17
- package/crud/sk-product.service.d.ts +0 -84
- package/crud/sk-promotion.service.d.ts +0 -41
- package/crud/sk-search.service.d.ts +0 -12
- package/crud/sk-store.service.d.ts +0 -17
- package/crud/sk-user.service.d.ts +0 -25
- package/esm2020/api/model/api-config.mjs +0 -2
- package/esm2020/api/model/api-pageable-param.mjs +0 -29
- package/esm2020/api/model/api-pageable.mjs +0 -3
- package/esm2020/api/model/api-response.mjs +0 -3
- package/esm2020/api/model/index.mjs +0 -4
- package/esm2020/api/public_api.mjs +0 -4
- package/esm2020/api/sk-api.module.mjs +0 -35
- package/esm2020/api/sk-api.service.mjs +0 -145
- package/esm2020/api/sk-front-lib-api.mjs +0 -5
- package/esm2020/article/public_api.mjs +0 -7
- package/esm2020/article/sk-article-editor-server.component.mjs +0 -51
- package/esm2020/article/sk-article-editor.component.mjs +0 -93
- package/esm2020/article/sk-article-server.module.mjs +0 -33
- package/esm2020/article/sk-article.module.mjs +0 -32
- package/esm2020/article/sk-article.service.mjs +0 -248
- package/esm2020/article/sk-froala-editor.directive.mjs +0 -325
- package/esm2020/article/sk-front-lib-article.mjs +0 -5
- package/esm2020/crud/public_api.mjs +0 -25
- package/esm2020/crud/sk-account.service.mjs +0 -36
- package/esm2020/crud/sk-affiliate.service.mjs +0 -94
- package/esm2020/crud/sk-auth-admin.guard.mjs +0 -31
- package/esm2020/crud/sk-auth.guard.mjs +0 -31
- package/esm2020/crud/sk-auth.service.mjs +0 -67
- package/esm2020/crud/sk-board.service.mjs +0 -54
- package/esm2020/crud/sk-brand.service.mjs +0 -46
- package/esm2020/crud/sk-cart.service.mjs +0 -256
- package/esm2020/crud/sk-category.service.mjs +0 -63
- package/esm2020/crud/sk-comment.service.mjs +0 -43
- package/esm2020/crud/sk-config.service.mjs +0 -31
- package/esm2020/crud/sk-contact.service.mjs +0 -39
- package/esm2020/crud/sk-coupon.service.mjs +0 -62
- package/esm2020/crud/sk-document.service.mjs +0 -110
- package/esm2020/crud/sk-etc.service.mjs +0 -25
- package/esm2020/crud/sk-file.service.mjs +0 -37
- package/esm2020/crud/sk-front-lib-crud.mjs +0 -5
- package/esm2020/crud/sk-keyword.service.mjs +0 -46
- package/esm2020/crud/sk-order.service.mjs +0 -133
- package/esm2020/crud/sk-point.service.mjs +0 -45
- package/esm2020/crud/sk-product.service.mjs +0 -168
- package/esm2020/crud/sk-promotion.service.mjs +0 -84
- package/esm2020/crud/sk-search.service.mjs +0 -25
- package/esm2020/crud/sk-store.service.mjs +0 -47
- package/esm2020/crud/sk-user.service.mjs +0 -73
- package/esm2020/google-analytics/google-analytics-router.module.mjs +0 -30
- package/esm2020/google-analytics/google-analytics.module.mjs +0 -40
- package/esm2020/google-analytics/initializers/google-analytics-router.initializer.mjs +0 -24
- package/esm2020/google-analytics/initializers/google-analytics.initializer.mjs +0 -46
- package/esm2020/google-analytics/interfaces/google-analytics-command.mjs +0 -2
- package/esm2020/google-analytics/interfaces/google-analytics-settings.mjs +0 -2
- package/esm2020/google-analytics/public_api.mjs +0 -11
- package/esm2020/google-analytics/services/google-analytics.service.mjs +0 -223
- package/esm2020/google-analytics/sk-front-lib-google-analytics.mjs +0 -5
- package/esm2020/google-analytics/tokens/google-analytics-settings-token.mjs +0 -5
- package/esm2020/google-analytics/types/ga-action.type.mjs +0 -2
- package/esm2020/google-analytics/types/ga-bind.type.mjs +0 -2
- package/esm2020/image/public_api.mjs +0 -3
- package/esm2020/image/sk-front-lib-image.mjs +0 -5
- package/esm2020/image/sk-image.component.mjs +0 -262
- package/esm2020/image/sk-image.module.mjs +0 -43
- package/esm2020/model/lib/article.mjs +0 -11
- package/esm2020/model/lib/audit.mjs +0 -12
- package/esm2020/model/lib/auth.mjs +0 -2
- package/esm2020/model/lib/board.mjs +0 -21
- package/esm2020/model/lib/cart.mjs +0 -29
- package/esm2020/model/lib/comment.mjs +0 -25
- package/esm2020/model/lib/contact.mjs +0 -28
- package/esm2020/model/lib/coupon.mjs +0 -23
- package/esm2020/model/lib/document.mjs +0 -49
- package/esm2020/model/lib/etc.mjs +0 -57
- package/esm2020/model/lib/file.mjs +0 -8
- package/esm2020/model/lib/filetype.mjs +0 -179
- package/esm2020/model/lib/grid.mjs +0 -83
- package/esm2020/model/lib/nicepay.mjs +0 -81
- package/esm2020/model/lib/order.mjs +0 -106
- package/esm2020/model/lib/payment.mjs +0 -35
- package/esm2020/model/lib/point.mjs +0 -47
- package/esm2020/model/lib/product-series.mjs +0 -2
- package/esm2020/model/lib/product.mjs +0 -156
- package/esm2020/model/lib/promotion.mjs +0 -80
- package/esm2020/model/lib/shipping.mjs +0 -37
- package/esm2020/model/lib/tosspay.mjs +0 -61
- package/esm2020/model/lib/user.mjs +0 -61
- package/esm2020/model/public_api.mjs +0 -24
- package/esm2020/model/sk-front-lib-model.mjs +0 -5
- package/esm2020/search-address/dialog/dialog.component.mjs +0 -27
- package/esm2020/search-address/public_api.mjs +0 -4
- package/esm2020/search-address/sk-front-lib-search-address.mjs +0 -5
- package/esm2020/search-address/sk-search-address.directive.mjs +0 -41
- package/esm2020/search-address/sk-search-address.model.mjs +0 -8
- package/esm2020/search-address/sk-search-address.module.mjs +0 -52
- package/esm2020/search-address/sk-search-address.service.mjs +0 -65
- package/esm2020/uploader/public_api.mjs +0 -4
- package/esm2020/uploader/sk-front-lib-uploader.mjs +0 -5
- package/esm2020/uploader/sk-uploader-file-item.model.mjs +0 -95
- package/esm2020/uploader/sk-uploader.animation.mjs +0 -47
- package/esm2020/uploader/sk-uploader.class.mjs +0 -188
- package/esm2020/uploader/sk-uploader.component.mjs +0 -120
- package/esm2020/uploader/sk-uploader.directive.mjs +0 -44
- package/esm2020/uploader/sk-uploader.module.mjs +0 -62
- package/fesm2015/sk-front-lib-api.mjs +0 -218
- package/fesm2015/sk-front-lib-api.mjs.map +0 -1
- package/fesm2015/sk-front-lib-article.mjs +0 -762
- package/fesm2015/sk-front-lib-article.mjs.map +0 -1
- package/fesm2015/sk-front-lib-crud.mjs +0 -1529
- package/fesm2015/sk-front-lib-crud.mjs.map +0 -1
- package/fesm2015/sk-front-lib-google-analytics.mjs +0 -361
- package/fesm2015/sk-front-lib-google-analytics.mjs.map +0 -1
- package/fesm2015/sk-front-lib-image.mjs +0 -306
- package/fesm2015/sk-front-lib-image.mjs.map +0 -1
- package/fesm2015/sk-front-lib-model.mjs +0 -1171
- package/fesm2015/sk-front-lib-model.mjs.map +0 -1
- package/fesm2015/sk-front-lib-search-address.mjs +0 -188
- package/fesm2015/sk-front-lib-search-address.mjs.map +0 -1
- package/fesm2015/sk-front-lib-uploader.mjs +0 -551
- package/fesm2015/sk-front-lib-uploader.mjs.map +0 -1
- package/fesm2020/sk-front-lib-api.mjs +0 -216
- package/fesm2020/sk-front-lib-api.mjs.map +0 -1
- package/fesm2020/sk-front-lib-article.mjs +0 -771
- package/fesm2020/sk-front-lib-article.mjs.map +0 -1
- package/fesm2020/sk-front-lib-crud.mjs +0 -1525
- package/fesm2020/sk-front-lib-crud.mjs.map +0 -1
- package/fesm2020/sk-front-lib-google-analytics.mjs +0 -358
- package/fesm2020/sk-front-lib-google-analytics.mjs.map +0 -1
- package/fesm2020/sk-front-lib-image.mjs +0 -309
- package/fesm2020/sk-front-lib-image.mjs.map +0 -1
- package/fesm2020/sk-front-lib-model.mjs +0 -1171
- package/fesm2020/sk-front-lib-model.mjs.map +0 -1
- package/fesm2020/sk-front-lib-search-address.mjs +0 -186
- package/fesm2020/sk-front-lib-search-address.mjs.map +0 -1
- package/fesm2020/sk-front-lib-uploader.mjs +0 -549
- package/fesm2020/sk-front-lib-uploader.mjs.map +0 -1
- package/google-analytics/google-analytics-router.module.d.ts +0 -8
- package/google-analytics/google-analytics.module.d.ts +0 -10
- package/google-analytics/initializers/google-analytics-router.initializer.d.ts +0 -5
- package/google-analytics/initializers/google-analytics.initializer.d.ts +0 -4
- package/google-analytics/interfaces/google-analytics-command.d.ts +0 -4
- package/google-analytics/interfaces/google-analytics-settings.d.ts +0 -6
- package/google-analytics/package.json +0 -10
- package/google-analytics/public_api.d.ts +0 -10
- package/google-analytics/services/google-analytics.service.d.ts +0 -85
- package/google-analytics/sk-front-lib-google-analytics.d.ts +0 -5
- package/google-analytics/tokens/google-analytics-settings-token.d.ts +0 -3
- package/google-analytics/types/ga-action.type.d.ts +0 -1
- package/google-analytics/types/ga-bind.type.d.ts +0 -1
- package/image/package.json +0 -10
- package/image/public_api.d.ts +0 -3
- package/image/sk-front-lib-image.d.ts +0 -5
- package/image/sk-image.component.d.ts +0 -112
- package/image/sk-image.module.d.ts +0 -12
- package/model/lib/article.d.ts +0 -13
- package/model/lib/audit.d.ts +0 -13
- package/model/lib/auth.d.ts +0 -8
- package/model/lib/board.d.ts +0 -39
- package/model/lib/cart.d.ts +0 -45
- package/model/lib/comment.d.ts +0 -43
- package/model/lib/contact.d.ts +0 -40
- package/model/lib/coupon.d.ts +0 -116
- package/model/lib/document.d.ts +0 -104
- package/model/lib/etc.d.ts +0 -220
- package/model/lib/file.d.ts +0 -24
- package/model/lib/filetype.d.ts +0 -10
- package/model/lib/grid.d.ts +0 -97
- package/model/lib/nicepay.d.ts +0 -39
- package/model/lib/order.d.ts +0 -163
- package/model/lib/payment.d.ts +0 -32
- package/model/lib/point.d.ts +0 -30
- package/model/lib/product-series.d.ts +0 -25
- package/model/lib/product.d.ts +0 -309
- package/model/lib/promotion.d.ts +0 -169
- package/model/lib/shipping.d.ts +0 -44
- package/model/lib/tosspay.d.ts +0 -29
- package/model/lib/user.d.ts +0 -54
- package/model/package.json +0 -10
- package/model/public_api.d.ts +0 -23
- package/model/sk-front-lib-model.d.ts +0 -5
- package/search-address/dialog/dialog.component.d.ts +0 -13
- package/search-address/package.json +0 -10
- package/search-address/public_api.d.ts +0 -3
- package/search-address/sk-front-lib-search-address.d.ts +0 -5
- package/search-address/sk-search-address.directive.d.ts +0 -15
- package/search-address/sk-search-address.model.d.ts +0 -40
- package/search-address/sk-search-address.module.d.ts +0 -14
- package/search-address/sk-search-address.service.d.ts +0 -13
- package/uploader/package.json +0 -10
- package/uploader/public_api.d.ts +0 -4
- package/uploader/sk-front-lib-uploader.d.ts +0 -5
- package/uploader/sk-uploader-file-item.model.d.ts +0 -29
- package/uploader/sk-uploader.animation.d.ts +0 -1
- package/uploader/sk-uploader.class.d.ts +0 -47
- package/uploader/sk-uploader.component.d.ts +0 -28
- package/uploader/sk-uploader.directive.d.ts +0 -15
- package/uploader/sk-uploader.module.d.ts +0 -16
- /package/{sk-front-lib.d.ts → index.d.ts} +0 -0
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from 'tslib';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, APP_INITIALIZER, PLATFORM_ID, isDevMode, Injectable, Inject, APP_BOOTSTRAP_LISTENER, NgModule } from '@angular/core';
|
|
4
|
-
import { isPlatformServer, CommonModule } from '@angular/common';
|
|
5
|
-
import { Router, NavigationEnd } from '@angular/router';
|
|
6
|
-
|
|
7
|
-
const SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN = new InjectionToken('sk-google-analytics-setting', {
|
|
8
|
-
factory: () => ({ trackingCode: '' })
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
const SK_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER = {
|
|
12
|
-
provide: APP_INITIALIZER,
|
|
13
|
-
multi: true,
|
|
14
|
-
useFactory: GoogleAnalyticsInitializer,
|
|
15
|
-
deps: [
|
|
16
|
-
SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN,
|
|
17
|
-
PLATFORM_ID
|
|
18
|
-
]
|
|
19
|
-
};
|
|
20
|
-
function GoogleAnalyticsInitializer(_settings, platform) {
|
|
21
|
-
return () => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
if (!_settings.trackingCode) {
|
|
23
|
-
if (!isDevMode()) {
|
|
24
|
-
console.error('Empty tracking code for Google Analytics. Make sure to provide one when initializing SkGoogleAnalyticsModule.');
|
|
25
|
-
}
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (isPlatformServer(platform)) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
// Set default ga.js uri
|
|
32
|
-
_settings.uri = _settings.uri || `https://www.googletagmanager.com/gtag/js?id=${_settings.trackingCode}`;
|
|
33
|
-
// these commands should run first!
|
|
34
|
-
const initialCommands = [
|
|
35
|
-
{ command: 'js', values: [new Date()] },
|
|
36
|
-
{ command: 'config', values: [_settings.trackingCode] }
|
|
37
|
-
];
|
|
38
|
-
_settings.initCommands = [...initialCommands, ...(_settings.initCommands || [])];
|
|
39
|
-
window['dataLayer'] = window['dataLayer'] || [];
|
|
40
|
-
window['gtag'] = window['gtag'] || function () {
|
|
41
|
-
window['dataLayer'].push(arguments);
|
|
42
|
-
};
|
|
43
|
-
for (const command of _settings.initCommands) {
|
|
44
|
-
window['gtag'](command.command, ...command.values);
|
|
45
|
-
}
|
|
46
|
-
const s = document.createElement('script');
|
|
47
|
-
s.async = true;
|
|
48
|
-
s.src = _settings.uri;
|
|
49
|
-
const head = document.getElementsByTagName('head')[0];
|
|
50
|
-
head.appendChild(s);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
class SkGoogleAnalyticsService {
|
|
55
|
-
constructor(_trackingId, platformId) {
|
|
56
|
-
this._trackingId = _trackingId;
|
|
57
|
-
this.platformId = platformId;
|
|
58
|
-
}
|
|
59
|
-
throw(err) {
|
|
60
|
-
if (console && console.error) {
|
|
61
|
-
console.error(err);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Call native GA Tag
|
|
66
|
-
*
|
|
67
|
-
* @param action config|event
|
|
68
|
-
* @param command Action specialization
|
|
69
|
-
* @param options Command configuration
|
|
70
|
-
*/
|
|
71
|
-
gtag(action, command, ...options) {
|
|
72
|
-
if (isPlatformServer(this.platformId)) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
try {
|
|
76
|
-
window['gtag'](action, command, ...options);
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
this.throw(err);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Send an event trigger to GA. It is the same as call:
|
|
84
|
-
* ```js
|
|
85
|
-
* gtag('event', 'video_auto_play_start', {
|
|
86
|
-
* 'event_label': 'My promotional video',
|
|
87
|
-
* 'event_category': 'video_auto_play'
|
|
88
|
-
* });
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* @param action 'video_auto_play_start'
|
|
92
|
-
* @param category 'video_auto_play'
|
|
93
|
-
* @param label 'My promotional video'
|
|
94
|
-
* @param value An value to measure something
|
|
95
|
-
*/
|
|
96
|
-
event(action, category, label, value, interaction) {
|
|
97
|
-
if (isPlatformServer(this.platformId)) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
try {
|
|
101
|
-
if (window['gtag']) {
|
|
102
|
-
const opt = {};
|
|
103
|
-
if (category) {
|
|
104
|
-
opt['event_category'] = category;
|
|
105
|
-
}
|
|
106
|
-
if (label) {
|
|
107
|
-
opt['event_label'] = label;
|
|
108
|
-
}
|
|
109
|
-
if (value) {
|
|
110
|
-
opt['value'] = value;
|
|
111
|
-
}
|
|
112
|
-
if (interaction !== undefined) {
|
|
113
|
-
opt['interaction'] = interaction;
|
|
114
|
-
}
|
|
115
|
-
this.gtag('event', action, opt);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
catch (error) {
|
|
119
|
-
this.throw(error);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
purchase(data) {
|
|
123
|
-
if (isPlatformServer(this.platformId)) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
try {
|
|
127
|
-
if (window['gtag']) {
|
|
128
|
-
this.gtag('event', 'purchase', data);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
catch (error) {
|
|
132
|
-
this.throw(error);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Send an page view event. This is the same as
|
|
137
|
-
*
|
|
138
|
-
* ```js
|
|
139
|
-
* gtag('config', 'GA_TRACKING_ID', {
|
|
140
|
-
* 'page_title' : 'Homepage',
|
|
141
|
-
* 'page_path': '/home'
|
|
142
|
-
* });
|
|
143
|
-
* ```
|
|
144
|
-
*
|
|
145
|
-
* The tracking ID is injected automatically by Inject Token NGX_GOOGLE_ANALYTICS_SETTINGS_TOKEN
|
|
146
|
-
*
|
|
147
|
-
* @param path /home
|
|
148
|
-
* @param title Homepage
|
|
149
|
-
* @param location '{ page_location }'
|
|
150
|
-
* @param options '{ ... custom dimentions }'
|
|
151
|
-
*/
|
|
152
|
-
pageView(path, title, location, options) {
|
|
153
|
-
if (isPlatformServer(this.platformId)) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
try {
|
|
157
|
-
if (window['gtag']) {
|
|
158
|
-
const opt = {};
|
|
159
|
-
if (path) {
|
|
160
|
-
opt['page_path'] = path;
|
|
161
|
-
}
|
|
162
|
-
if (title) {
|
|
163
|
-
opt['page_title'] = title;
|
|
164
|
-
}
|
|
165
|
-
if (location) {
|
|
166
|
-
opt['page_location'] = location;
|
|
167
|
-
}
|
|
168
|
-
if (options) {
|
|
169
|
-
Object.assign(opt, options);
|
|
170
|
-
}
|
|
171
|
-
this.gtag('config', this._trackingId.trackingCode, opt);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
catch (error) {
|
|
175
|
-
this.throw(error);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Send an evento to report a App Page View. It is the same as
|
|
180
|
-
*
|
|
181
|
-
* ```js
|
|
182
|
-
* gtag('event', 'screen_view', {
|
|
183
|
-
* 'app_name': 'myAppName',
|
|
184
|
-
* 'screen_name' : 'Home'
|
|
185
|
-
* });
|
|
186
|
-
*
|
|
187
|
-
* ```
|
|
188
|
-
*
|
|
189
|
-
* @param screen 'screen_name'
|
|
190
|
-
* @param name 'app_name'
|
|
191
|
-
* @param appId 'app_id'
|
|
192
|
-
* @param appVersion 'app_version'
|
|
193
|
-
* @param installerId 'app_installer_id'
|
|
194
|
-
*/
|
|
195
|
-
appView(screen, appName, appId, appVersion, installerId) {
|
|
196
|
-
if (isPlatformServer(this.platformId)) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
try {
|
|
200
|
-
if (window['gtag']) {
|
|
201
|
-
const opt = {};
|
|
202
|
-
if (screen) {
|
|
203
|
-
opt['screen_name'] = screen;
|
|
204
|
-
}
|
|
205
|
-
if (appName) {
|
|
206
|
-
opt['app_name'] = appName;
|
|
207
|
-
}
|
|
208
|
-
if (appId) {
|
|
209
|
-
opt['app_id'] = appId;
|
|
210
|
-
}
|
|
211
|
-
if (appVersion) {
|
|
212
|
-
opt['app_version'] = appVersion;
|
|
213
|
-
}
|
|
214
|
-
if (installerId) {
|
|
215
|
-
opt['app_installer_id'] = installerId;
|
|
216
|
-
}
|
|
217
|
-
this.gtag('event', 'screen_view', opt);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
catch (error) {
|
|
221
|
-
this.throw(error);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Send an event to GA to report an application error. It is the same as
|
|
226
|
-
*
|
|
227
|
-
* ```js
|
|
228
|
-
* gtag('event', 'exception', {
|
|
229
|
-
* 'description': 'error_description',
|
|
230
|
-
* 'fatal': false // set to true if the error is fatal
|
|
231
|
-
* });
|
|
232
|
-
* ```
|
|
233
|
-
*
|
|
234
|
-
* @param description 'error_description'
|
|
235
|
-
* @param fatal set to true if the error is fatal
|
|
236
|
-
*/
|
|
237
|
-
exception(description, fatal) {
|
|
238
|
-
if (isPlatformServer(this.platformId)) {
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
try {
|
|
242
|
-
if (window['gtag']) {
|
|
243
|
-
const opt = {};
|
|
244
|
-
if (description) {
|
|
245
|
-
opt['description'] = description;
|
|
246
|
-
}
|
|
247
|
-
if (fatal) {
|
|
248
|
-
opt['fatal'] = fatal;
|
|
249
|
-
}
|
|
250
|
-
this.gtag('event', 'exception', opt);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
catch (error) {
|
|
254
|
-
this.throw(error);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
SkGoogleAnalyticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsService, deps: [{ token: SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
259
|
-
SkGoogleAnalyticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsService, providedIn: 'root' });
|
|
260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsService, decorators: [{
|
|
261
|
-
type: Injectable,
|
|
262
|
-
args: [{
|
|
263
|
-
providedIn: 'root'
|
|
264
|
-
}]
|
|
265
|
-
}], ctorParameters: function () {
|
|
266
|
-
return [{ type: undefined, decorators: [{
|
|
267
|
-
type: Inject,
|
|
268
|
-
args: [SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN]
|
|
269
|
-
}] }, { type: Object, decorators: [{
|
|
270
|
-
type: Inject,
|
|
271
|
-
args: [PLATFORM_ID]
|
|
272
|
-
}] }];
|
|
273
|
-
} });
|
|
274
|
-
|
|
275
|
-
const SK_GOOGLE_ANALYTICS_ROUTER_INITIALIZER_PROVIDER = {
|
|
276
|
-
provide: APP_BOOTSTRAP_LISTENER,
|
|
277
|
-
multi: true,
|
|
278
|
-
useFactory: GoogleAnalyticsRouterInitializer,
|
|
279
|
-
deps: [
|
|
280
|
-
SkGoogleAnalyticsService,
|
|
281
|
-
Router
|
|
282
|
-
]
|
|
283
|
-
};
|
|
284
|
-
function GoogleAnalyticsRouterInitializer(_googleAnalyticsService, _router) {
|
|
285
|
-
return (c) => __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
_router
|
|
287
|
-
.events
|
|
288
|
-
.subscribe(event => {
|
|
289
|
-
if (event instanceof NavigationEnd) {
|
|
290
|
-
_googleAnalyticsService.pageView(event.urlAfterRedirects, undefined, document.location.href);
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
class SkGoogleAnalyticsModule {
|
|
297
|
-
static forRoot(trackingCode, commands = [], uri) {
|
|
298
|
-
return {
|
|
299
|
-
ngModule: SkGoogleAnalyticsModule,
|
|
300
|
-
providers: [
|
|
301
|
-
{
|
|
302
|
-
provide: SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN,
|
|
303
|
-
useValue: {
|
|
304
|
-
trackingCode,
|
|
305
|
-
commands,
|
|
306
|
-
uri
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
SK_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER,
|
|
310
|
-
]
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
SkGoogleAnalyticsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
315
|
-
SkGoogleAnalyticsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsModule, imports: [CommonModule] });
|
|
316
|
-
SkGoogleAnalyticsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsModule, imports: [[
|
|
317
|
-
CommonModule,
|
|
318
|
-
]] });
|
|
319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsModule, decorators: [{
|
|
320
|
-
type: NgModule,
|
|
321
|
-
args: [{
|
|
322
|
-
imports: [
|
|
323
|
-
CommonModule,
|
|
324
|
-
],
|
|
325
|
-
declarations: [],
|
|
326
|
-
exports: [],
|
|
327
|
-
entryComponents: []
|
|
328
|
-
}]
|
|
329
|
-
}] });
|
|
330
|
-
|
|
331
|
-
class SkGoogleAnalyticsRouterModule {
|
|
332
|
-
}
|
|
333
|
-
SkGoogleAnalyticsRouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsRouterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
334
|
-
SkGoogleAnalyticsRouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsRouterModule, imports: [CommonModule,
|
|
335
|
-
SkGoogleAnalyticsModule] });
|
|
336
|
-
SkGoogleAnalyticsRouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsRouterModule, providers: [
|
|
337
|
-
SK_GOOGLE_ANALYTICS_ROUTER_INITIALIZER_PROVIDER
|
|
338
|
-
], imports: [[
|
|
339
|
-
CommonModule,
|
|
340
|
-
SkGoogleAnalyticsModule
|
|
341
|
-
]] });
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SkGoogleAnalyticsRouterModule, decorators: [{
|
|
343
|
-
type: NgModule,
|
|
344
|
-
args: [{
|
|
345
|
-
imports: [
|
|
346
|
-
CommonModule,
|
|
347
|
-
SkGoogleAnalyticsModule
|
|
348
|
-
],
|
|
349
|
-
providers: [
|
|
350
|
-
SK_GOOGLE_ANALYTICS_ROUTER_INITIALIZER_PROVIDER
|
|
351
|
-
],
|
|
352
|
-
declarations: []
|
|
353
|
-
}]
|
|
354
|
-
}] });
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Generated bundle index. Do not edit.
|
|
358
|
-
*/
|
|
359
|
-
|
|
360
|
-
export { GoogleAnalyticsInitializer, GoogleAnalyticsRouterInitializer, SK_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER, SK_GOOGLE_ANALYTICS_ROUTER_INITIALIZER_PROVIDER, SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN, SkGoogleAnalyticsModule, SkGoogleAnalyticsRouterModule, SkGoogleAnalyticsService };
|
|
361
|
-
//# sourceMappingURL=sk-front-lib-google-analytics.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sk-front-lib-google-analytics.mjs","sources":["../../../projects/sk-front-lib/google-analytics/src/tokens/google-analytics-settings-token.ts","../../../projects/sk-front-lib/google-analytics/src/initializers/google-analytics.initializer.ts","../../../projects/sk-front-lib/google-analytics/src/services/google-analytics.service.ts","../../../projects/sk-front-lib/google-analytics/src/initializers/google-analytics-router.initializer.ts","../../../projects/sk-front-lib/google-analytics/src/google-analytics.module.ts","../../../projects/sk-front-lib/google-analytics/src/google-analytics-router.module.ts","../../../projects/sk-front-lib/google-analytics/src/sk-front-lib-google-analytics.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport {ISkGoogleAnalyticsSettings} from \"../interfaces/google-analytics-settings\";\n\nexport const SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN = new InjectionToken<ISkGoogleAnalyticsSettings>('sk-google-analytics-setting', {\n factory: () => ({ trackingCode: '' })\n});\n","import {APP_INITIALIZER, Inject, isDevMode, PLATFORM_ID, Provider} from \"@angular/core\";\nimport {ISkGoogleAnalyticsSettings} from \"../interfaces/google-analytics-settings\";\nimport {SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN} from \"../tokens/google-analytics-settings-token\";\nimport {ISkGoogleAnalyticsCommand} from \"../interfaces/google-analytics-command\";\nimport {isPlatformServer} from \"@angular/common\";\n\nexport const SK_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: GoogleAnalyticsInitializer,\n deps: [\n SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN,\n PLATFORM_ID\n ]\n};\n\nexport function GoogleAnalyticsInitializer(_settings: ISkGoogleAnalyticsSettings,\n platform: Object) {\n return async () => {\n if (!_settings.trackingCode) {\n if (!isDevMode()) {\n console.error('Empty tracking code for Google Analytics. Make sure to provide one when initializing SkGoogleAnalyticsModule.');\n }\n\n return;\n }\n\n if (isPlatformServer(platform)) {\n return;\n }\n\n // Set default ga.js uri\n _settings.uri = _settings.uri || `https://www.googletagmanager.com/gtag/js?id=${_settings.trackingCode}`;\n\n // these commands should run first!\n const initialCommands: Array<ISkGoogleAnalyticsCommand> = [\n {command: 'js', values: [new Date()]},\n {command: 'config', values: [_settings.trackingCode]}\n ];\n\n _settings.initCommands = [...initialCommands, ...(_settings.initCommands || [])];\n\n window['dataLayer'] = window['dataLayer'] || [];\n window['gtag'] = window['gtag'] || function () {\n window['dataLayer'].push(arguments);\n };\n\n for (const command of _settings.initCommands) {\n window['gtag'](command.command, ...command.values);\n }\n\n const s: HTMLScriptElement = document.createElement('script');\n s.async = true;\n s.src = _settings.uri;\n\n const head: HTMLHeadElement = document.getElementsByTagName('head')[0];\n head.appendChild(s);\n };\n}\n","import {Injectable, Inject, PLATFORM_ID} from '@angular/core';\nimport {SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN} from \"../tokens/google-analytics-settings-token\";\nimport {ISkGoogleAnalyticsSettings} from \"../interfaces/google-analytics-settings\";\nimport {GaAction} from \"../types/ga-action.type\";\nimport {isPlatformServer} from \"@angular/common\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SkGoogleAnalyticsService {\n\n constructor(@Inject(SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN) protected _trackingId: ISkGoogleAnalyticsSettings,\n @Inject(PLATFORM_ID) private platformId: Object) {\n }\n\n protected throw(err: Error) {\n if (console && console.error) {\n console.error(err);\n }\n }\n\n /**\n * Call native GA Tag\n *\n * @param action config|event\n * @param command Action specialization\n * @param options Command configuration\n */\n gtag(action: string, command: string, ...options: Array<any>) {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n try {\n window['gtag'](action, command, ...options);\n } catch (err) {\n this.throw(err);\n }\n }\n\n /**\n * Send an event trigger to GA. It is the same as call:\n * ```js\n * gtag('event', 'video_auto_play_start', {\n * 'event_label': 'My promotional video',\n * 'event_category': 'video_auto_play'\n * });\n * ```\n *\n * @param action 'video_auto_play_start'\n * @param category 'video_auto_play'\n * @param label 'My promotional video'\n * @param value An value to measure something\n */\n event(action: GaAction | string, category?: string, label?: string, value?: number, interaction?: boolean) {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n try {\n if (window['gtag']) {\n const opt = {};\n if (category) {\n opt['event_category'] = category;\n }\n if (label) {\n opt['event_label'] = label;\n }\n if (value) {\n opt['value'] = value;\n }\n if (interaction !== undefined) {\n opt['interaction'] = interaction;\n }\n this.gtag('event', action as string, opt);\n }\n } catch (error) {\n this.throw(error);\n }\n }\n\n purchase(data) {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n try {\n if (window['gtag']) {\n this.gtag('event', 'purchase', data);\n }\n } catch (error) {\n this.throw(error);\n }\n }\n\n /**\n * Send an page view event. This is the same as\n *\n * ```js\n * gtag('config', 'GA_TRACKING_ID', {\n * 'page_title' : 'Homepage',\n * 'page_path': '/home'\n * });\n * ```\n *\n * The tracking ID is injected automatically by Inject Token NGX_GOOGLE_ANALYTICS_SETTINGS_TOKEN\n *\n * @param path /home\n * @param title Homepage\n * @param location '{ page_location }'\n * @param options '{ ... custom dimentions }'\n */\n pageView(path?: string, title?: string, location?: string, options?: Object) {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n try {\n if (window['gtag']) {\n const opt = {};\n if (path) {\n opt['page_path'] = path;\n }\n if (title) {\n opt['page_title'] = title;\n }\n if (location) {\n opt['page_location'] = location;\n }\n if (options) {\n Object.assign(opt, options);\n }\n this.gtag('config', this._trackingId.trackingCode, opt);\n }\n } catch (error) {\n this.throw(error);\n }\n }\n\n /**\n * Send an evento to report a App Page View. It is the same as\n *\n * ```js\n * gtag('event', 'screen_view', {\n * 'app_name': 'myAppName',\n * 'screen_name' : 'Home'\n * });\n *\n * ```\n *\n * @param screen 'screen_name'\n * @param name 'app_name'\n * @param appId 'app_id'\n * @param appVersion 'app_version'\n * @param installerId 'app_installer_id'\n */\n appView(screen: string, appName: string, appId?: string, appVersion?: string, installerId?: string) {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n try {\n if (window['gtag']) {\n const opt = {};\n if (screen) {\n opt['screen_name'] = screen;\n }\n if (appName) {\n opt['app_name'] = appName;\n }\n if (appId) {\n opt['app_id'] = appId;\n }\n if (appVersion) {\n opt['app_version'] = appVersion;\n }\n if (installerId) {\n opt['app_installer_id'] = installerId;\n }\n this.gtag('event', 'screen_view', opt);\n }\n } catch (error) {\n this.throw(error);\n }\n }\n\n /**\n * Send an event to GA to report an application error. It is the same as\n *\n * ```js\n * gtag('event', 'exception', {\n * 'description': 'error_description',\n * 'fatal': false // set to true if the error is fatal\n * });\n * ```\n *\n * @param description 'error_description'\n * @param fatal set to true if the error is fatal\n */\n exception(description?: string, fatal?: boolean) {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n try {\n if (window['gtag']) {\n const opt = {};\n if (description) {\n opt['description'] = description;\n }\n if (fatal) {\n opt['fatal'] = fatal;\n }\n this.gtag('event', 'exception', opt);\n }\n } catch (error) {\n this.throw(error);\n }\n }\n}\n","import {APP_BOOTSTRAP_LISTENER, ComponentRef, Provider} from \"@angular/core\";\nimport {NavigationEnd, Router} from \"@angular/router\";\nimport {SkGoogleAnalyticsService} from \"../services/google-analytics.service\";\n\nexport const SK_GOOGLE_ANALYTICS_ROUTER_INITIALIZER_PROVIDER: Provider = {\n provide: APP_BOOTSTRAP_LISTENER,\n multi: true,\n useFactory: GoogleAnalyticsRouterInitializer,\n deps: [\n SkGoogleAnalyticsService,\n Router\n ]\n};\n\nexport function GoogleAnalyticsRouterInitializer(\n _googleAnalyticsService: SkGoogleAnalyticsService,\n _router: Router\n) {\n return async (c: ComponentRef<any>) => {\n _router\n .events\n .subscribe(event => {\n if (event instanceof NavigationEnd) {\n _googleAnalyticsService.pageView(event.urlAfterRedirects, undefined, document.location.href);\n }\n });\n };\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN } from './tokens/google-analytics-settings-token';\nimport { ISkGoogleAnalyticsCommand } from './interfaces/google-analytics-command';\nimport { SK_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER } from './initializers/google-analytics.initializer';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n declarations: [],\n exports: [],\n entryComponents: []\n})\nexport class SkGoogleAnalyticsModule {\n static forRoot(trackingCode: string, commands: ISkGoogleAnalyticsCommand[] = [], uri?: string): ModuleWithProviders<SkGoogleAnalyticsModule> {\n return {\n ngModule: SkGoogleAnalyticsModule,\n providers: [\n {\n provide: SK_GOOGLE_ANALYTICS_SETTINGS_TOKEN,\n useValue: {\n trackingCode,\n commands,\n uri\n }\n },\n SK_GOOGLE_ANALYTICS_INITIALIZER_PROVIDER,\n ]\n };\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SkGoogleAnalyticsModule } from './google-analytics.module';\nimport { SK_GOOGLE_ANALYTICS_ROUTER_INITIALIZER_PROVIDER } from './initializers/google-analytics-router.initializer';\n\n@NgModule({\n imports: [\n CommonModule,\n SkGoogleAnalyticsModule\n ],\n providers: [\n SK_GOOGLE_ANALYTICS_ROUTER_INITIALIZER_PROVIDER\n ],\n declarations: []\n})\nexport class SkGoogleAnalyticsRouterModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAGa,kCAAkC,GAAG,IAAI,cAAc,CAA6B,6BAA6B,EAAE;IAC5H,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;CACxC;;MCCY,wCAAwC,GAAa;IAC9D,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,0BAA0B;IACtC,IAAI,EAAE;QACF,kCAAkC;QAClC,WAAW;KACd;EACH;SAEc,0BAA0B,CAAC,SAAqC,EACrC,QAAgB;IACvD,OAAO;QACH,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;YACzB,IAAI,CAAC,SAAS,EAAE,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,+GAA+G,CAAC,CAAC;aAClI;YAED,OAAO;SACV;QAED,IAAI,gBAAgB,CAAC,QAAQ,CAAC,EAAE;YAC5B,OAAO;SACV;;QAGD,SAAS,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,IAAI,+CAA+C,SAAS,CAAC,YAAY,EAAE,CAAC;;QAGzG,MAAM,eAAe,GAAqC;YACtD,EAAC,OAAO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