@cuemath/web-utils 1.0.29-beta.3 → 1.0.29-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/constants/index.d.ts +1 -0
- package/dist/cjs/constants/index.js +1 -0
- package/dist/cjs/constants/index.js.map +1 -1
- package/dist/cjs/constants/instrumentation/index.d.ts +5 -0
- package/dist/cjs/constants/instrumentation/index.js +9 -0
- package/dist/cjs/constants/instrumentation/index.js.map +1 -0
- package/dist/cjs/growth-source/index.d.ts +6 -3
- package/dist/cjs/growth-source/index.js +24 -103
- package/dist/cjs/growth-source/index.js.map +1 -1
- package/dist/cjs/growth-source/types.d.ts +11 -2
- package/dist/cjs/website-category/constants/index.d.ts +2 -0
- package/dist/cjs/website-category/constants/index.js +94 -21
- package/dist/cjs/website-category/constants/index.js.map +1 -1
- package/dist/cjs/website-category/index.d.ts +1 -1
- package/dist/cjs/website-category/index.js +3 -1
- package/dist/cjs/website-category/index.js.map +1 -1
- package/dist/esm/constants/index.d.ts +1 -0
- package/dist/esm/constants/index.js +1 -0
- package/dist/esm/constants/index.js.map +1 -1
- package/dist/esm/constants/instrumentation/index.d.ts +5 -0
- package/dist/esm/constants/instrumentation/index.js +6 -0
- package/dist/esm/constants/instrumentation/index.js.map +1 -0
- package/dist/esm/growth-source/index.d.ts +6 -3
- package/dist/esm/growth-source/index.js +19 -93
- package/dist/esm/growth-source/index.js.map +1 -1
- package/dist/esm/growth-source/types.d.ts +11 -2
- package/dist/esm/website-category/constants/index.d.ts +2 -0
- package/dist/esm/website-category/constants/index.js +93 -20
- package/dist/esm/website-category/constants/index.js.map +1 -1
- package/dist/esm/website-category/index.d.ts +1 -1
- package/dist/esm/website-category/index.js +1 -1
- package/dist/esm/website-category/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./country"), exports);
|
|
18
18
|
__exportStar(require("./date-time"), exports);
|
|
19
19
|
__exportStar(require("./currency-symbols"), exports);
|
|
20
|
+
__exportStar(require("./instrumentation"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,qDAAmC;AACnC,oDAAkC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REVENUE_CHANNEL = exports.REFERRAL_PAGE_PATH = void 0;
|
|
4
|
+
exports.REFERRAL_PAGE_PATH = ['gift/invite/', 'gift/referral/'];
|
|
5
|
+
exports.REVENUE_CHANNEL = {
|
|
6
|
+
REFERRAL: 'referral',
|
|
7
|
+
ORGANIC: 'organic',
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/instrumentation/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAExD,QAAA,eAAe,GAAG;IAC7B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { SourceDetails, SourceDetailsCookie, Platform, SignupFlow, RevenueChannel
|
|
1
|
+
import type { SourceDetails, SourceDetailsCookie, Platform, SignupFlow, RevenueChannel } from './types';
|
|
2
2
|
export declare const readSourceCookie: () => SourceDetailsCookie;
|
|
3
3
|
export declare const isSourcePresent: () => boolean;
|
|
4
|
-
export declare const initSourceDetails: ({ platform, experiments, flow, affiliateChannel, offlineChannel,
|
|
4
|
+
export declare const initSourceDetails: ({ platform, experiments, flow, affiliateChannel, offlineChannel, pageProfile, performanceChannel, revenueChannel, salesProcess, guestId, landingPage, referrer, sourceChannel, }: SourceDetails) => Promise<void>;
|
|
5
5
|
export declare const setLastPage: (pagePath: string) => Promise<void>;
|
|
6
6
|
export declare const setFlowEntryPoint: (flowEntry: string) => Promise<void>;
|
|
7
7
|
export declare const setFlow: (flow: SignupFlow) => Promise<void>;
|
|
8
|
-
export declare const setOrganicChannel: (organicChannel: OrganicChannel) => Promise<void>;
|
|
9
8
|
export declare const setRevenueChannel: (revenueChannel: RevenueChannel) => Promise<void>;
|
|
10
9
|
export declare const setSalesProcess: (salesProcess: string) => Promise<void>;
|
|
11
10
|
export declare const clearSalesProcess: () => Promise<void>;
|
|
@@ -13,3 +12,7 @@ export declare const updateGuestId: (guestId: string) => Promise<void>;
|
|
|
13
12
|
export declare const setFirstPage: (pagePath: string) => Promise<void>;
|
|
14
13
|
export declare const setPlatformChannel: (platformChannel: Platform) => Promise<void>;
|
|
15
14
|
export declare const setLandingPage: (landingPage: string) => Promise<void>;
|
|
15
|
+
export declare const setReferrer: (referrer: string) => Promise<void>;
|
|
16
|
+
export declare const setSourceChannel: (sourceChannel: string) => Promise<void>;
|
|
17
|
+
export declare const setSubPlatform: (subPlatform: string) => Promise<void>;
|
|
18
|
+
export declare const setCurrentPage: (currentPage: string) => Promise<void>;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setLandingPage = exports.setPlatformChannel = exports.setFirstPage = exports.updateGuestId = exports.clearSalesProcess = exports.setSalesProcess = exports.setRevenueChannel = exports.
|
|
3
|
+
exports.setCurrentPage = exports.setSubPlatform = exports.setSourceChannel = exports.setReferrer = exports.setLandingPage = exports.setPlatformChannel = exports.setFirstPage = exports.updateGuestId = exports.clearSalesProcess = exports.setSalesProcess = exports.setRevenueChannel = exports.setFlow = exports.setFlowEntryPoint = exports.setLastPage = exports.initSourceDetails = exports.isSourcePresent = exports.readSourceCookie = void 0;
|
|
4
4
|
const cookie_1 = require("../cookie");
|
|
5
5
|
const url_parser_1 = require("../url-parser");
|
|
6
6
|
const SOURCE_DETAILS_COOKIE = 'source_details';
|
|
7
|
-
const UTM_PARAMS = [
|
|
8
|
-
'utm_source',
|
|
9
|
-
'utm_medium',
|
|
10
|
-
'utm_campaign',
|
|
11
|
-
'utm_term',
|
|
12
|
-
];
|
|
13
7
|
const readSourceCookie = () => {
|
|
14
8
|
const sourceDetails = (0, cookie_1.getCookie)(SOURCE_DETAILS_COOKIE);
|
|
15
9
|
return sourceDetails ? JSON.parse(decodeURIComponent(sourceDetails)) : undefined;
|
|
@@ -35,28 +29,12 @@ const updateSourceCookie = (sourceDetail) => {
|
|
|
35
29
|
};
|
|
36
30
|
writeSourceCookie(updatedDetails);
|
|
37
31
|
};
|
|
38
|
-
const getRevenueChannel = (platform
|
|
32
|
+
const getRevenueChannel = (platform) => {
|
|
39
33
|
let revenueChannel = 'unknown';
|
|
40
34
|
// set defaults for WEBSITE and ASTRO
|
|
41
35
|
if (platform === 'website') {
|
|
42
36
|
revenueChannel = 'organic';
|
|
43
37
|
}
|
|
44
|
-
if (utmSource) {
|
|
45
|
-
switch (true) {
|
|
46
|
-
case /^affiliate-/.test(utmSource):
|
|
47
|
-
revenueChannel = 'affiliate';
|
|
48
|
-
break;
|
|
49
|
-
case /^offline-/.test(utmSource):
|
|
50
|
-
revenueChannel = 'offline';
|
|
51
|
-
break;
|
|
52
|
-
case /^referral-/.test(utmSource):
|
|
53
|
-
revenueChannel = 'referral';
|
|
54
|
-
break;
|
|
55
|
-
case /^performance-/.test(utmSource):
|
|
56
|
-
revenueChannel = 'performance';
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
38
|
return revenueChannel;
|
|
61
39
|
};
|
|
62
40
|
/*
|
|
@@ -75,116 +53,47 @@ const getFlow = (platform, experiments) => {
|
|
|
75
53
|
}
|
|
76
54
|
return flow;
|
|
77
55
|
};
|
|
78
|
-
const getUTMParams = () => {
|
|
79
|
-
if (typeof window === undefined)
|
|
80
|
-
return {};
|
|
81
|
-
const search = new URLSearchParams(window.location.search);
|
|
82
|
-
const utmParams = UTM_PARAMS.reduce((acc, param) => {
|
|
83
|
-
const utmParam = search.get(param);
|
|
84
|
-
if (utmParam) {
|
|
85
|
-
acc[param] = utmParam;
|
|
86
|
-
}
|
|
87
|
-
return acc;
|
|
88
|
-
}, {});
|
|
89
|
-
return utmParams;
|
|
90
|
-
};
|
|
91
56
|
const getFirstPage = () => {
|
|
92
57
|
if (typeof window === undefined)
|
|
93
58
|
return '';
|
|
94
59
|
return (0, url_parser_1.removeHrefLangFromPath)(window.location.pathname);
|
|
95
60
|
};
|
|
96
|
-
/* TODO: Align Marketing Team on UTM source convention
|
|
97
|
-
affiliate-<channel>
|
|
98
|
-
performance-<channel>
|
|
99
|
-
organic-<channel>
|
|
100
|
-
offline-<channel>
|
|
101
|
-
*/
|
|
102
|
-
const getChannel = (utmSource) => {
|
|
103
|
-
// TODO: UTM source patter for FB, GOOGLE...
|
|
104
|
-
if (!utmSource)
|
|
105
|
-
return '';
|
|
106
|
-
let channel = '';
|
|
107
|
-
if (utmSource) {
|
|
108
|
-
switch (true) {
|
|
109
|
-
case /^affiliate-/.test(utmSource):
|
|
110
|
-
case /^offline-/.test(utmSource):
|
|
111
|
-
case /^referral-/.test(utmSource):
|
|
112
|
-
case /^performance-/.test(utmSource):
|
|
113
|
-
channel = utmSource.split('-')[1];
|
|
114
|
-
break;
|
|
115
|
-
default:
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return channel;
|
|
120
|
-
};
|
|
121
61
|
/*
|
|
122
62
|
Set Static Source Details of user on Visit of Platform
|
|
123
63
|
*/
|
|
124
64
|
const initSourceDetails = async ({ platform, experiments, // only for website.
|
|
125
|
-
flow, affiliateChannel, offlineChannel,
|
|
126
|
-
const utmParams = getUTMParams();
|
|
127
|
-
const { utm_source: utmSource } = utmParams;
|
|
128
|
-
const leadChannel = getChannel(utmSource);
|
|
65
|
+
flow, affiliateChannel, offlineChannel, pageProfile, performanceChannel, revenueChannel, salesProcess, guestId, landingPage, referrer, sourceChannel, }) => {
|
|
129
66
|
/*
|
|
130
67
|
source cookie was added in cross subdomain for few days initially,
|
|
131
68
|
which was later changed to subdomain specific. Now to sending older cookie to backend, removing older cookie
|
|
132
69
|
*/
|
|
133
70
|
(0, cookie_1.removeCookie)(SOURCE_DETAILS_COOKIE, true);
|
|
134
|
-
revenueChannel = revenueChannel || getRevenueChannel(platform
|
|
135
|
-
if (utmSource) {
|
|
136
|
-
switch (revenueChannel) {
|
|
137
|
-
case 'affiliate':
|
|
138
|
-
affiliateChannel = affiliateChannel || leadChannel;
|
|
139
|
-
break;
|
|
140
|
-
case 'offline':
|
|
141
|
-
offlineChannel = offlineChannel || leadChannel;
|
|
142
|
-
break;
|
|
143
|
-
case 'organic':
|
|
144
|
-
organicChannel = organicChannel || leadChannel;
|
|
145
|
-
break;
|
|
146
|
-
case 'performance':
|
|
147
|
-
performanceChannel = performanceChannel || leadChannel;
|
|
148
|
-
break;
|
|
149
|
-
default:
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
71
|
+
revenueChannel = revenueChannel || getRevenueChannel(platform);
|
|
153
72
|
if (!(0, exports.isSourcePresent)()) {
|
|
154
73
|
const sourceDetails = {
|
|
155
74
|
platform_channel: platform,
|
|
156
75
|
experiment_dict: experiments,
|
|
157
|
-
utm_params: utmParams,
|
|
158
76
|
flow: flow || getFlow(platform, experiments),
|
|
159
77
|
affiliate_channel: affiliateChannel,
|
|
160
78
|
offline_channel: offlineChannel,
|
|
161
|
-
|
|
79
|
+
page_profile: pageProfile,
|
|
162
80
|
performance_channel: performanceChannel,
|
|
163
81
|
revenue_channel: revenueChannel,
|
|
164
82
|
first_page: getFirstPage(),
|
|
165
83
|
sales_process: salesProcess,
|
|
166
84
|
guest_id: guestId,
|
|
167
85
|
landing_page: landingPage,
|
|
86
|
+
referrer,
|
|
87
|
+
source_channel: sourceChannel,
|
|
168
88
|
};
|
|
169
89
|
writeSourceCookie(sourceDetails);
|
|
170
90
|
}
|
|
171
91
|
else {
|
|
172
|
-
|
|
92
|
+
const updatedSource = {
|
|
173
93
|
experiment_dict: experiments,
|
|
174
94
|
flow: flow || getFlow(platform, experiments),
|
|
175
95
|
guest_id: guestId,
|
|
176
96
|
};
|
|
177
|
-
if (utmSource) {
|
|
178
|
-
updatedSource = {
|
|
179
|
-
...updatedSource,
|
|
180
|
-
utm_params: utmParams,
|
|
181
|
-
affiliate_channel: affiliateChannel,
|
|
182
|
-
offline_channel: offlineChannel,
|
|
183
|
-
organic_channel: organicChannel,
|
|
184
|
-
performance_channel: performanceChannel,
|
|
185
|
-
revenue_channel: revenueChannel,
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
97
|
updateSourceCookie(updatedSource);
|
|
189
98
|
}
|
|
190
99
|
};
|
|
@@ -204,10 +113,6 @@ const setFlow = async (flow) => {
|
|
|
204
113
|
updateSourceCookie({ flow });
|
|
205
114
|
};
|
|
206
115
|
exports.setFlow = setFlow;
|
|
207
|
-
const setOrganicChannel = async (organicChannel) => {
|
|
208
|
-
updateSourceCookie({ organic_channel: organicChannel });
|
|
209
|
-
};
|
|
210
|
-
exports.setOrganicChannel = setOrganicChannel;
|
|
211
116
|
const setRevenueChannel = async (revenueChannel) => {
|
|
212
117
|
updateSourceCookie({ revenue_channel: revenueChannel });
|
|
213
118
|
};
|
|
@@ -236,4 +141,20 @@ const setLandingPage = async (landingPage) => {
|
|
|
236
141
|
updateSourceCookie({ landing_page: landingPage });
|
|
237
142
|
};
|
|
238
143
|
exports.setLandingPage = setLandingPage;
|
|
144
|
+
const setReferrer = async (referrer) => {
|
|
145
|
+
updateSourceCookie({ referrer });
|
|
146
|
+
};
|
|
147
|
+
exports.setReferrer = setReferrer;
|
|
148
|
+
const setSourceChannel = async (sourceChannel) => {
|
|
149
|
+
updateSourceCookie({ source_channel: sourceChannel });
|
|
150
|
+
};
|
|
151
|
+
exports.setSourceChannel = setSourceChannel;
|
|
152
|
+
const setSubPlatform = async (subPlatform) => {
|
|
153
|
+
updateSourceCookie({ sub_platform: subPlatform });
|
|
154
|
+
};
|
|
155
|
+
exports.setSubPlatform = setSubPlatform;
|
|
156
|
+
const setCurrentPage = async (currentPage) => {
|
|
157
|
+
updateSourceCookie({ current_page: currentPage });
|
|
158
|
+
};
|
|
159
|
+
exports.setCurrentPage = setCurrentPage;
|
|
239
160
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/growth-source/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/growth-source/index.ts"],"names":[],"mappings":";;;AASA,sCAAkE;AAClE,8CAAuD;AAEvD,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAExC,MAAM,gBAAgB,GAAG,GAAwB,EAAE;IACxD,MAAM,aAAa,GAAG,IAAA,kBAAS,EAAC,qBAAqB,CAAC,CAAC;IAEvD,OAAO,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnF,CAAC,CAAC;AAJW,QAAA,gBAAgB,oBAI3B;AAEF,MAAM,iBAAiB,GAAG,CAAC,aAAkC,EAAQ,EAAE;IACrE,IAAA,qBAAY,EAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,GAAG,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEK,MAAM,eAAe,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K,MAAM,cAAc,GAAG,KAAK,EAAE,WAAmB,EAAiB,EAAE;IACzE,kBAAkB,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAFW,QAAA,cAAc,kBAEzB"}
|
|
@@ -9,6 +9,8 @@ export type UTMParams = {
|
|
|
9
9
|
utm_medium?: string;
|
|
10
10
|
utm_campaign?: string;
|
|
11
11
|
utm_term?: string;
|
|
12
|
+
utm_content?: string;
|
|
13
|
+
utm_adcontent?: string;
|
|
12
14
|
};
|
|
13
15
|
export type UTMParamsKeys = keyof UTMParams;
|
|
14
16
|
export type SourceDetailsCookie = {
|
|
@@ -20,7 +22,6 @@ export type SourceDetailsCookie = {
|
|
|
20
22
|
offline_channel?: string;
|
|
21
23
|
performance_channel?: string;
|
|
22
24
|
revenue_channel: RevenueChannel;
|
|
23
|
-
organic_channel?: string;
|
|
24
25
|
flow_entry?: string;
|
|
25
26
|
first_page?: string;
|
|
26
27
|
last_page?: string;
|
|
@@ -28,6 +29,11 @@ export type SourceDetailsCookie = {
|
|
|
28
29
|
guest_id?: string;
|
|
29
30
|
current?: Partial<SourceDetailsCookie>;
|
|
30
31
|
landing_page?: string;
|
|
32
|
+
referrer?: string;
|
|
33
|
+
source_channel?: string;
|
|
34
|
+
page_profile?: string;
|
|
35
|
+
sub_platform?: string;
|
|
36
|
+
current_page?: string;
|
|
31
37
|
};
|
|
32
38
|
export type SourceDetails = {
|
|
33
39
|
platform: Platform;
|
|
@@ -38,11 +44,14 @@ export type SourceDetails = {
|
|
|
38
44
|
offlineChannel?: string;
|
|
39
45
|
performanceChannel?: string;
|
|
40
46
|
revenueChannel: RevenueChannel;
|
|
41
|
-
organicChannel?: string;
|
|
42
47
|
flowEntry?: string;
|
|
43
48
|
firstPage?: string;
|
|
44
49
|
lastPage?: string;
|
|
45
50
|
guestId?: string;
|
|
46
51
|
salesProcess?: string;
|
|
47
52
|
landingPage?: string;
|
|
53
|
+
referrer?: string;
|
|
54
|
+
sourceChannel?: string;
|
|
55
|
+
pageProfile?: string;
|
|
56
|
+
subPlatform?: string;
|
|
48
57
|
};
|
|
@@ -1,68 +1,120 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.INTENT_PAGES = exports.BRAND_PAGES = void 0;
|
|
3
|
+
exports.REFERRAL_PAGES = exports.SUPPLY_PAGES = exports.INTENT_PAGES = exports.BRAND_PAGES = void 0;
|
|
4
4
|
const URL_PATH_MAP = {
|
|
5
5
|
HOMEPAGE: '/',
|
|
6
6
|
WHY_CHOOSE_US: '/math-online-classes',
|
|
7
|
-
ABOUT_US: '/about-us',
|
|
7
|
+
ABOUT_US: '/about-us/',
|
|
8
8
|
TUTORING_SERVICES: '/tutoring-services',
|
|
9
|
-
HOME_TUTION: '/home-tuition
|
|
9
|
+
HOME_TUTION: '/home-tuition',
|
|
10
10
|
HOME_TUTOR: '/home-tutor',
|
|
11
|
+
HOME_TUTORS: '/home-tutors/',
|
|
11
12
|
HOME_TUTORING: '/home-tutoring',
|
|
12
13
|
HYBRID_TEACHER_PROFILE: '/hybrid-teacher-profile/',
|
|
13
14
|
MATH_TUITION: '/math-tuition',
|
|
14
15
|
CENTRES: '/centres/',
|
|
15
|
-
MATHS: '/maths
|
|
16
|
+
MATHS: '/maths',
|
|
16
17
|
ONLINE_TUITIONS: '/online-tuitions',
|
|
17
|
-
GRADE_MATH: '
|
|
18
|
-
ONLINE_MATH_COURSES: '/online-math-courses',
|
|
18
|
+
GRADE_MATH: 'grade-math/',
|
|
19
|
+
ONLINE_MATH_COURSES: '/online-math-courses/',
|
|
19
20
|
TUITION_TUTORS: '/tuition-tutors',
|
|
20
21
|
TEACH: '/teach',
|
|
21
|
-
TEACHER_PROFILE: 'teacher-profile',
|
|
22
|
-
NEAR_ME: 'near-me',
|
|
23
|
-
CONTACT: '/contact',
|
|
22
|
+
TEACHER_PROFILE: '/teacher-profile/',
|
|
23
|
+
NEAR_ME: 'near-me/',
|
|
24
|
+
CONTACT: '/contact/',
|
|
24
25
|
PARENT_SIGNUP: '/parent/signup',
|
|
25
|
-
FREQUENTLY_ASKED_QUESTIONS: '/frequently-asked-questions',
|
|
26
|
+
FREQUENTLY_ASKED_QUESTIONS: '/frequently-asked-questions/',
|
|
26
27
|
HASH_HOMEPAGE: '/#',
|
|
27
28
|
QUERY_HOMEPAGE: '/?',
|
|
28
|
-
USA_HOMEPAGE: '/usa',
|
|
29
|
-
CURRICULUM: '/curriculum',
|
|
29
|
+
USA_HOMEPAGE: '/usa/',
|
|
30
|
+
CURRICULUM: '/curriculum/',
|
|
30
31
|
PRIVATE_TUTORS: '/private-tutors',
|
|
31
32
|
ONLINE_MATH_TUTORS: '/online-math-tutors',
|
|
32
|
-
MATHS_PROGRAM: '/maths-program',
|
|
33
|
+
MATHS_PROGRAM: '/maths-program/',
|
|
33
34
|
ONLINE_MATH_COURSE: '/online-math-course/',
|
|
34
|
-
TRIGONOMETRY_TUTORS: '/trigonometry-tutors',
|
|
35
|
-
GEOMETRY_TUTORS: '/geometry-tutors',
|
|
36
|
-
ALGEBRA_TUTORS: '/algebra-tutors',
|
|
37
|
-
AFTER_SCHOOL_TUTORING: '/after-school-tutoring',
|
|
38
|
-
MATHS_TEACHER: '/maths-teacher',
|
|
35
|
+
TRIGONOMETRY_TUTORS: '/trigonometry-tutors/',
|
|
36
|
+
GEOMETRY_TUTORS: '/geometry-tutors/',
|
|
37
|
+
ALGEBRA_TUTORS: '/algebra-tutors/',
|
|
38
|
+
AFTER_SCHOOL_TUTORING: '/after-school-tutoring/',
|
|
39
|
+
MATHS_TEACHER: '/maths-teacher/',
|
|
39
40
|
LIVE_ONLINE_CLASSES: '/live-online-classes',
|
|
41
|
+
PARENT_STUDENT_SEO: '/parent-signup-seo',
|
|
42
|
+
WORKSHEETS: '/worksheets',
|
|
43
|
+
WORKSHEET: '/worksheet',
|
|
44
|
+
QUESTIONS: '/questions',
|
|
45
|
+
MATH_PUZZLES: '/math-puzzles',
|
|
46
|
+
MATH_GAMES: '/math-games',
|
|
47
|
+
FORMULA: '-formula',
|
|
48
|
+
FORMULAS: '-formulas/',
|
|
49
|
+
CALCULATORS: '/calculators',
|
|
50
|
+
MULTIPLICATION_TABLE: '/multiplication-tables',
|
|
51
|
+
MULTIPLICATION: '/multiplication',
|
|
52
|
+
LEARNING: '/learning',
|
|
53
|
+
LEARN: '/learn',
|
|
54
|
+
MATH_OLYMPIAD: '/math-olympiad',
|
|
55
|
+
GEOMETRY: '/geometry',
|
|
56
|
+
DATA: '/data',
|
|
57
|
+
NUMBERS: '/numbers',
|
|
58
|
+
ALGEBRA: '/algebra',
|
|
59
|
+
CALCULUS: '/calculus',
|
|
60
|
+
MEASURMENT: '/measurement',
|
|
61
|
+
TRIGONOMETRY: '/trigonometry',
|
|
62
|
+
COMMERCIAL_MATH: '/commercial-math',
|
|
63
|
+
NCERT: '/ncert',
|
|
64
|
+
NCERT2: '/NCERT',
|
|
65
|
+
NCERT_SOLUTIONS: '/ncert-solutions',
|
|
66
|
+
STORIES_FOR_KIDS: 'stories-for-kids',
|
|
67
|
+
EN_HOMEPAGE: '/en-',
|
|
68
|
+
ABOUT: '/about/',
|
|
69
|
+
LOGIN: '/login',
|
|
70
|
+
MATH_CLASS: '/maths/class-',
|
|
71
|
+
ONLINE_MATH: '/online-math-',
|
|
72
|
+
HYBRID_TEACHER: '/hybrid-teacher',
|
|
73
|
+
TUITION_TEACHER: 'tuition-teacher',
|
|
74
|
+
CLASS: '/class-',
|
|
75
|
+
GRADE: '/grade',
|
|
76
|
+
LEAP_PAYMENT: '/leap-payment/',
|
|
77
|
+
LEARN_MATH_ONLINE: 'learn-math-online-',
|
|
78
|
+
UPGRADE: '/upgrade/',
|
|
79
|
+
HCL: '/hcl/',
|
|
80
|
+
WORK_FROM_HOME: 'work-from-home',
|
|
81
|
+
TEACHER_JOBS: 'teacher-jobs',
|
|
82
|
+
TEACHERS_JOBS: 'teachers-jobs',
|
|
83
|
+
PART_TIME_JOBS: 'part-time-jobs',
|
|
84
|
+
ONLINE_TUTORING_JOBS: '/online-tutoring-jobs/',
|
|
85
|
+
TEACHER_SIGNUP: '/teacher/signup',
|
|
86
|
+
TEACHER: '/teacher/',
|
|
87
|
+
PDF: 'pdf',
|
|
88
|
+
DOWNLOAD: 'download',
|
|
89
|
+
CUEMATH_OLYMPIAD: 'cuemath-olympiad',
|
|
90
|
+
GIFT: 'gift',
|
|
40
91
|
};
|
|
41
92
|
exports.BRAND_PAGES = [
|
|
42
93
|
URL_PATH_MAP.HOMEPAGE,
|
|
43
94
|
URL_PATH_MAP.ABOUT_US,
|
|
44
95
|
URL_PATH_MAP.CONTACT,
|
|
45
|
-
URL_PATH_MAP.PARENT_SIGNUP,
|
|
46
96
|
URL_PATH_MAP.HASH_HOMEPAGE,
|
|
47
97
|
URL_PATH_MAP.QUERY_HOMEPAGE,
|
|
48
98
|
URL_PATH_MAP.FREQUENTLY_ASKED_QUESTIONS,
|
|
49
99
|
URL_PATH_MAP.USA_HOMEPAGE,
|
|
100
|
+
URL_PATH_MAP.ABOUT,
|
|
101
|
+
URL_PATH_MAP.LOGIN,
|
|
50
102
|
];
|
|
51
103
|
exports.INTENT_PAGES = [
|
|
52
104
|
URL_PATH_MAP.WHY_CHOOSE_US,
|
|
53
105
|
URL_PATH_MAP.TUTORING_SERVICES,
|
|
54
106
|
URL_PATH_MAP.HOME_TUTION,
|
|
55
107
|
URL_PATH_MAP.HOME_TUTOR,
|
|
108
|
+
URL_PATH_MAP.HOME_TUTORS,
|
|
56
109
|
URL_PATH_MAP.HOME_TUTORING,
|
|
57
110
|
URL_PATH_MAP.HYBRID_TEACHER_PROFILE,
|
|
111
|
+
URL_PATH_MAP.HYBRID_TEACHER,
|
|
58
112
|
URL_PATH_MAP.MATH_TUITION,
|
|
59
113
|
URL_PATH_MAP.CENTRES,
|
|
60
114
|
URL_PATH_MAP.MATHS,
|
|
61
115
|
URL_PATH_MAP.ONLINE_TUITIONS,
|
|
62
|
-
URL_PATH_MAP.GRADE_MATH,
|
|
63
116
|
URL_PATH_MAP.ONLINE_MATH_COURSES,
|
|
64
117
|
URL_PATH_MAP.TUITION_TUTORS,
|
|
65
|
-
URL_PATH_MAP.TEACH,
|
|
66
118
|
URL_PATH_MAP.TEACHER_PROFILE,
|
|
67
119
|
URL_PATH_MAP.NEAR_ME,
|
|
68
120
|
URL_PATH_MAP.CURRICULUM,
|
|
@@ -76,5 +128,26 @@ exports.INTENT_PAGES = [
|
|
|
76
128
|
URL_PATH_MAP.AFTER_SCHOOL_TUTORING,
|
|
77
129
|
URL_PATH_MAP.MATHS_TEACHER,
|
|
78
130
|
URL_PATH_MAP.LIVE_ONLINE_CLASSES,
|
|
131
|
+
URL_PATH_MAP.PARENT_SIGNUP,
|
|
132
|
+
URL_PATH_MAP.PARENT_STUDENT_SEO,
|
|
133
|
+
URL_PATH_MAP.MATH_CLASS,
|
|
134
|
+
URL_PATH_MAP.GRADE_MATH,
|
|
135
|
+
URL_PATH_MAP.TUITION_TEACHER,
|
|
136
|
+
URL_PATH_MAP.LEAP_PAYMENT,
|
|
137
|
+
URL_PATH_MAP.GRADE,
|
|
138
|
+
URL_PATH_MAP.LEARN_MATH_ONLINE,
|
|
139
|
+
URL_PATH_MAP.UPGRADE,
|
|
140
|
+
URL_PATH_MAP.HCL,
|
|
141
|
+
];
|
|
142
|
+
exports.SUPPLY_PAGES = [
|
|
143
|
+
URL_PATH_MAP.WORK_FROM_HOME,
|
|
144
|
+
URL_PATH_MAP.MATHS_TEACHER,
|
|
145
|
+
URL_PATH_MAP.TEACHERS_JOBS,
|
|
146
|
+
URL_PATH_MAP.TEACHER_JOBS,
|
|
147
|
+
URL_PATH_MAP.PART_TIME_JOBS,
|
|
148
|
+
URL_PATH_MAP.ONLINE_TUTORING_JOBS,
|
|
149
|
+
URL_PATH_MAP.TEACHER_SIGNUP,
|
|
150
|
+
URL_PATH_MAP.TEACHER,
|
|
79
151
|
];
|
|
152
|
+
exports.REFERRAL_PAGES = [URL_PATH_MAP.GIFT];
|
|
80
153
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,gBAAgB;IAC/B,sBAAsB,EAAE,0BAA0B;IAClD,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,QAAQ;IACf,eAAe,EAAE,kBAAkB;IACnC,UAAU,EAAE,aAAa;IACzB,mBAAmB,EAAE,uBAAuB;IAC5C,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,QAAQ;IACf,eAAe,EAAE,mBAAmB;IACpC,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,WAAW;IACpB,aAAa,EAAE,gBAAgB;IAC/B,0BAA0B,EAAE,8BAA8B;IAC1D,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,cAAc;IAC1B,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,aAAa,EAAE,iBAAiB;IAChC,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,uBAAuB;IAC5C,eAAe,EAAE,mBAAmB;IACpC,cAAc,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YAAY,CAAC,eAAe;IAC5B,YAAY,CAAC,YAAY;IACzB,YAAY,CAAC,KAAK;IAClB,YAAY,CAAC,iBAAiB;IAC9B,YAAY,CAAC,OAAO;IACpB,YAAY,CAAC,GAAG;CACjB,CAAC;AAEW,QAAA,YAAY,GAAG;IAC1B,YAAY,CAAC,cAAc;IAC3B,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,YAAY;IACzB,YAAY,CAAC,cAAc;IAC3B,YAAY,CAAC,oBAAoB;IACjC,YAAY,CAAC,cAAc;IAC3B,YAAY,CAAC,OAAO;CACrB,CAAC;AAEW,QAAA,cAAc,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { isBrandOrIntentPage } from './utils';
|
|
2
|
-
export { BRAND_PAGES, INTENT_PAGES } from './constants';
|
|
2
|
+
export { BRAND_PAGES, INTENT_PAGES, SUPPLY_PAGES, REFERRAL_PAGES } from './constants';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.INTENT_PAGES = exports.BRAND_PAGES = exports.isBrandOrIntentPage = void 0;
|
|
3
|
+
exports.REFERRAL_PAGES = exports.SUPPLY_PAGES = exports.INTENT_PAGES = exports.BRAND_PAGES = exports.isBrandOrIntentPage = void 0;
|
|
4
4
|
var utils_1 = require("./utils");
|
|
5
5
|
Object.defineProperty(exports, "isBrandOrIntentPage", { enumerable: true, get: function () { return utils_1.isBrandOrIntentPage; } });
|
|
6
6
|
var constants_1 = require("./constants");
|
|
7
7
|
Object.defineProperty(exports, "BRAND_PAGES", { enumerable: true, get: function () { return constants_1.BRAND_PAGES; } });
|
|
8
8
|
Object.defineProperty(exports, "INTENT_PAGES", { enumerable: true, get: function () { return constants_1.INTENT_PAGES; } });
|
|
9
|
+
Object.defineProperty(exports, "SUPPLY_PAGES", { enumerable: true, get: function () { return constants_1.SUPPLY_PAGES; } });
|
|
10
|
+
Object.defineProperty(exports, "REFERRAL_PAGES", { enumerable: true, get: function () { return constants_1.REFERRAL_PAGES; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":";;;AAAA,iCAA8C;AAArC,4GAAA,mBAAmB,OAAA;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":";;;AAAA,iCAA8C;AAArC,4GAAA,mBAAmB,OAAA;AAC5B,yCAAsF;AAA7E,wGAAA,WAAW,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,2GAAA,cAAc,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/instrumentation/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { SourceDetails, SourceDetailsCookie, Platform, SignupFlow, RevenueChannel
|
|
1
|
+
import type { SourceDetails, SourceDetailsCookie, Platform, SignupFlow, RevenueChannel } from './types';
|
|
2
2
|
export declare const readSourceCookie: () => SourceDetailsCookie;
|
|
3
3
|
export declare const isSourcePresent: () => boolean;
|
|
4
|
-
export declare const initSourceDetails: ({ platform, experiments, flow, affiliateChannel, offlineChannel,
|
|
4
|
+
export declare const initSourceDetails: ({ platform, experiments, flow, affiliateChannel, offlineChannel, pageProfile, performanceChannel, revenueChannel, salesProcess, guestId, landingPage, referrer, sourceChannel, }: SourceDetails) => Promise<void>;
|
|
5
5
|
export declare const setLastPage: (pagePath: string) => Promise<void>;
|
|
6
6
|
export declare const setFlowEntryPoint: (flowEntry: string) => Promise<void>;
|
|
7
7
|
export declare const setFlow: (flow: SignupFlow) => Promise<void>;
|
|
8
|
-
export declare const setOrganicChannel: (organicChannel: OrganicChannel) => Promise<void>;
|
|
9
8
|
export declare const setRevenueChannel: (revenueChannel: RevenueChannel) => Promise<void>;
|
|
10
9
|
export declare const setSalesProcess: (salesProcess: string) => Promise<void>;
|
|
11
10
|
export declare const clearSalesProcess: () => Promise<void>;
|
|
@@ -13,3 +12,7 @@ export declare const updateGuestId: (guestId: string) => Promise<void>;
|
|
|
13
12
|
export declare const setFirstPage: (pagePath: string) => Promise<void>;
|
|
14
13
|
export declare const setPlatformChannel: (platformChannel: Platform) => Promise<void>;
|
|
15
14
|
export declare const setLandingPage: (landingPage: string) => Promise<void>;
|
|
15
|
+
export declare const setReferrer: (referrer: string) => Promise<void>;
|
|
16
|
+
export declare const setSourceChannel: (sourceChannel: string) => Promise<void>;
|
|
17
|
+
export declare const setSubPlatform: (subPlatform: string) => Promise<void>;
|
|
18
|
+
export declare const setCurrentPage: (currentPage: string) => Promise<void>;
|
|
@@ -21,12 +21,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
import { createCookie, getCookie, removeCookie } from '../cookie';
|
|
22
22
|
import { removeHrefLangFromPath } from '../url-parser';
|
|
23
23
|
const SOURCE_DETAILS_COOKIE = 'source_details';
|
|
24
|
-
const UTM_PARAMS = [
|
|
25
|
-
'utm_source',
|
|
26
|
-
'utm_medium',
|
|
27
|
-
'utm_campaign',
|
|
28
|
-
'utm_term',
|
|
29
|
-
];
|
|
30
24
|
export const readSourceCookie = () => {
|
|
31
25
|
const sourceDetails = getCookie(SOURCE_DETAILS_COOKIE);
|
|
32
26
|
return sourceDetails ? JSON.parse(decodeURIComponent(sourceDetails)) : undefined;
|
|
@@ -46,28 +40,12 @@ const updateSourceCookie = (sourceDetail) => {
|
|
|
46
40
|
? Object.assign(Object.assign({}, restAttributes), sourceDetail) : Object.assign(Object.assign({}, current), sourceDetail) });
|
|
47
41
|
writeSourceCookie(updatedDetails);
|
|
48
42
|
};
|
|
49
|
-
const getRevenueChannel = (platform
|
|
43
|
+
const getRevenueChannel = (platform) => {
|
|
50
44
|
let revenueChannel = 'unknown';
|
|
51
45
|
// set defaults for WEBSITE and ASTRO
|
|
52
46
|
if (platform === 'website') {
|
|
53
47
|
revenueChannel = 'organic';
|
|
54
48
|
}
|
|
55
|
-
if (utmSource) {
|
|
56
|
-
switch (true) {
|
|
57
|
-
case /^affiliate-/.test(utmSource):
|
|
58
|
-
revenueChannel = 'affiliate';
|
|
59
|
-
break;
|
|
60
|
-
case /^offline-/.test(utmSource):
|
|
61
|
-
revenueChannel = 'offline';
|
|
62
|
-
break;
|
|
63
|
-
case /^referral-/.test(utmSource):
|
|
64
|
-
revenueChannel = 'referral';
|
|
65
|
-
break;
|
|
66
|
-
case /^performance-/.test(utmSource):
|
|
67
|
-
revenueChannel = 'performance';
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
49
|
return revenueChannel;
|
|
72
50
|
};
|
|
73
51
|
/*
|
|
@@ -86,108 +64,47 @@ const getFlow = (platform, experiments) => {
|
|
|
86
64
|
}
|
|
87
65
|
return flow;
|
|
88
66
|
};
|
|
89
|
-
const getUTMParams = () => {
|
|
90
|
-
if (typeof window === undefined)
|
|
91
|
-
return {};
|
|
92
|
-
const search = new URLSearchParams(window.location.search);
|
|
93
|
-
const utmParams = UTM_PARAMS.reduce((acc, param) => {
|
|
94
|
-
const utmParam = search.get(param);
|
|
95
|
-
if (utmParam) {
|
|
96
|
-
acc[param] = utmParam;
|
|
97
|
-
}
|
|
98
|
-
return acc;
|
|
99
|
-
}, {});
|
|
100
|
-
return utmParams;
|
|
101
|
-
};
|
|
102
67
|
const getFirstPage = () => {
|
|
103
68
|
if (typeof window === undefined)
|
|
104
69
|
return '';
|
|
105
70
|
return removeHrefLangFromPath(window.location.pathname);
|
|
106
71
|
};
|
|
107
|
-
/* TODO: Align Marketing Team on UTM source convention
|
|
108
|
-
affiliate-<channel>
|
|
109
|
-
performance-<channel>
|
|
110
|
-
organic-<channel>
|
|
111
|
-
offline-<channel>
|
|
112
|
-
*/
|
|
113
|
-
const getChannel = (utmSource) => {
|
|
114
|
-
// TODO: UTM source patter for FB, GOOGLE...
|
|
115
|
-
if (!utmSource)
|
|
116
|
-
return '';
|
|
117
|
-
let channel = '';
|
|
118
|
-
if (utmSource) {
|
|
119
|
-
switch (true) {
|
|
120
|
-
case /^affiliate-/.test(utmSource):
|
|
121
|
-
case /^offline-/.test(utmSource):
|
|
122
|
-
case /^referral-/.test(utmSource):
|
|
123
|
-
case /^performance-/.test(utmSource):
|
|
124
|
-
channel = utmSource.split('-')[1];
|
|
125
|
-
break;
|
|
126
|
-
default:
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return channel;
|
|
131
|
-
};
|
|
132
72
|
/*
|
|
133
73
|
Set Static Source Details of user on Visit of Platform
|
|
134
74
|
*/
|
|
135
75
|
export const initSourceDetails = ({ platform, experiments, // only for website.
|
|
136
|
-
flow, affiliateChannel, offlineChannel,
|
|
137
|
-
const utmParams = getUTMParams();
|
|
138
|
-
const { utm_source: utmSource } = utmParams;
|
|
139
|
-
const leadChannel = getChannel(utmSource);
|
|
76
|
+
flow, affiliateChannel, offlineChannel, pageProfile, performanceChannel, revenueChannel, salesProcess, guestId, landingPage, referrer, sourceChannel, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
140
77
|
/*
|
|
141
78
|
source cookie was added in cross subdomain for few days initially,
|
|
142
79
|
which was later changed to subdomain specific. Now to sending older cookie to backend, removing older cookie
|
|
143
80
|
*/
|
|
144
81
|
removeCookie(SOURCE_DETAILS_COOKIE, true);
|
|
145
|
-
revenueChannel = revenueChannel || getRevenueChannel(platform
|
|
146
|
-
if (utmSource) {
|
|
147
|
-
switch (revenueChannel) {
|
|
148
|
-
case 'affiliate':
|
|
149
|
-
affiliateChannel = affiliateChannel || leadChannel;
|
|
150
|
-
break;
|
|
151
|
-
case 'offline':
|
|
152
|
-
offlineChannel = offlineChannel || leadChannel;
|
|
153
|
-
break;
|
|
154
|
-
case 'organic':
|
|
155
|
-
organicChannel = organicChannel || leadChannel;
|
|
156
|
-
break;
|
|
157
|
-
case 'performance':
|
|
158
|
-
performanceChannel = performanceChannel || leadChannel;
|
|
159
|
-
break;
|
|
160
|
-
default:
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
82
|
+
revenueChannel = revenueChannel || getRevenueChannel(platform);
|
|
164
83
|
if (!isSourcePresent()) {
|
|
165
84
|
const sourceDetails = {
|
|
166
85
|
platform_channel: platform,
|
|
167
86
|
experiment_dict: experiments,
|
|
168
|
-
utm_params: utmParams,
|
|
169
87
|
flow: flow || getFlow(platform, experiments),
|
|
170
88
|
affiliate_channel: affiliateChannel,
|
|
171
89
|
offline_channel: offlineChannel,
|
|
172
|
-
|
|
90
|
+
page_profile: pageProfile,
|
|
173
91
|
performance_channel: performanceChannel,
|
|
174
92
|
revenue_channel: revenueChannel,
|
|
175
93
|
first_page: getFirstPage(),
|
|
176
94
|
sales_process: salesProcess,
|
|
177
95
|
guest_id: guestId,
|
|
178
96
|
landing_page: landingPage,
|
|
97
|
+
referrer,
|
|
98
|
+
source_channel: sourceChannel,
|
|
179
99
|
};
|
|
180
100
|
writeSourceCookie(sourceDetails);
|
|
181
101
|
}
|
|
182
102
|
else {
|
|
183
|
-
|
|
103
|
+
const updatedSource = {
|
|
184
104
|
experiment_dict: experiments,
|
|
185
105
|
flow: flow || getFlow(platform, experiments),
|
|
186
106
|
guest_id: guestId,
|
|
187
107
|
};
|
|
188
|
-
if (utmSource) {
|
|
189
|
-
updatedSource = Object.assign(Object.assign({}, updatedSource), { utm_params: utmParams, affiliate_channel: affiliateChannel, offline_channel: offlineChannel, organic_channel: organicChannel, performance_channel: performanceChannel, revenue_channel: revenueChannel });
|
|
190
|
-
}
|
|
191
108
|
updateSourceCookie(updatedSource);
|
|
192
109
|
}
|
|
193
110
|
});
|
|
@@ -203,9 +120,6 @@ export const setFlowEntryPoint = (flowEntry) => __awaiter(void 0, void 0, void 0
|
|
|
203
120
|
export const setFlow = (flow) => __awaiter(void 0, void 0, void 0, function* () {
|
|
204
121
|
updateSourceCookie({ flow });
|
|
205
122
|
});
|
|
206
|
-
export const setOrganicChannel = (organicChannel) => __awaiter(void 0, void 0, void 0, function* () {
|
|
207
|
-
updateSourceCookie({ organic_channel: organicChannel });
|
|
208
|
-
});
|
|
209
123
|
export const setRevenueChannel = (revenueChannel) => __awaiter(void 0, void 0, void 0, function* () {
|
|
210
124
|
updateSourceCookie({ revenue_channel: revenueChannel });
|
|
211
125
|
});
|
|
@@ -227,4 +141,16 @@ export const setPlatformChannel = (platformChannel) => __awaiter(void 0, void 0,
|
|
|
227
141
|
export const setLandingPage = (landingPage) => __awaiter(void 0, void 0, void 0, function* () {
|
|
228
142
|
updateSourceCookie({ landing_page: landingPage });
|
|
229
143
|
});
|
|
144
|
+
export const setReferrer = (referrer) => __awaiter(void 0, void 0, void 0, function* () {
|
|
145
|
+
updateSourceCookie({ referrer });
|
|
146
|
+
});
|
|
147
|
+
export const setSourceChannel = (sourceChannel) => __awaiter(void 0, void 0, void 0, function* () {
|
|
148
|
+
updateSourceCookie({ source_channel: sourceChannel });
|
|
149
|
+
});
|
|
150
|
+
export const setSubPlatform = (subPlatform) => __awaiter(void 0, void 0, void 0, function* () {
|
|
151
|
+
updateSourceCookie({ sub_platform: subPlatform });
|
|
152
|
+
});
|
|
153
|
+
export const setCurrentPage = (currentPage) => __awaiter(void 0, void 0, void 0, function* () {
|
|
154
|
+
updateSourceCookie({ current_page: currentPage });
|
|
155
|
+
});
|
|
230
156
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/growth-source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/growth-source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAwB,EAAE;IACxD,MAAM,aAAa,GAAG,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAEvD,OAAO,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,aAAkC,EAAQ,EAAE;IACrE,YAAY,CAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,GAAG,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAY,EAAE;IAC3C,OAAO,CAAC,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;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,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAO,eAAyB,EAAiB,EAAE;IACnF,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC,CAAC;AAC5D,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAO,WAAmB,EAAiB,EAAE;IACzE,kBAAkB,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;AACpD,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAO,QAAgB,EAAiB,EAAE;IACnE,kBAAkB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;AACnC,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAO,aAAqB,EAAiB,EAAE;IAC7E,kBAAkB,CAAC,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC,CAAC;AACxD,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAO,WAAmB,EAAiB,EAAE;IACzE,kBAAkB,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;AACpD,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAO,WAAmB,EAAiB,EAAE;IACzE,kBAAkB,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;AACpD,CAAC,CAAA,CAAC"}
|
|
@@ -9,6 +9,8 @@ export type UTMParams = {
|
|
|
9
9
|
utm_medium?: string;
|
|
10
10
|
utm_campaign?: string;
|
|
11
11
|
utm_term?: string;
|
|
12
|
+
utm_content?: string;
|
|
13
|
+
utm_adcontent?: string;
|
|
12
14
|
};
|
|
13
15
|
export type UTMParamsKeys = keyof UTMParams;
|
|
14
16
|
export type SourceDetailsCookie = {
|
|
@@ -20,7 +22,6 @@ export type SourceDetailsCookie = {
|
|
|
20
22
|
offline_channel?: string;
|
|
21
23
|
performance_channel?: string;
|
|
22
24
|
revenue_channel: RevenueChannel;
|
|
23
|
-
organic_channel?: string;
|
|
24
25
|
flow_entry?: string;
|
|
25
26
|
first_page?: string;
|
|
26
27
|
last_page?: string;
|
|
@@ -28,6 +29,11 @@ export type SourceDetailsCookie = {
|
|
|
28
29
|
guest_id?: string;
|
|
29
30
|
current?: Partial<SourceDetailsCookie>;
|
|
30
31
|
landing_page?: string;
|
|
32
|
+
referrer?: string;
|
|
33
|
+
source_channel?: string;
|
|
34
|
+
page_profile?: string;
|
|
35
|
+
sub_platform?: string;
|
|
36
|
+
current_page?: string;
|
|
31
37
|
};
|
|
32
38
|
export type SourceDetails = {
|
|
33
39
|
platform: Platform;
|
|
@@ -38,11 +44,14 @@ export type SourceDetails = {
|
|
|
38
44
|
offlineChannel?: string;
|
|
39
45
|
performanceChannel?: string;
|
|
40
46
|
revenueChannel: RevenueChannel;
|
|
41
|
-
organicChannel?: string;
|
|
42
47
|
flowEntry?: string;
|
|
43
48
|
firstPage?: string;
|
|
44
49
|
lastPage?: string;
|
|
45
50
|
guestId?: string;
|
|
46
51
|
salesProcess?: string;
|
|
47
52
|
landingPage?: string;
|
|
53
|
+
referrer?: string;
|
|
54
|
+
sourceChannel?: string;
|
|
55
|
+
pageProfile?: string;
|
|
56
|
+
subPlatform?: string;
|
|
48
57
|
};
|
|
@@ -1,65 +1,117 @@
|
|
|
1
1
|
const URL_PATH_MAP = {
|
|
2
2
|
HOMEPAGE: '/',
|
|
3
3
|
WHY_CHOOSE_US: '/math-online-classes',
|
|
4
|
-
ABOUT_US: '/about-us',
|
|
4
|
+
ABOUT_US: '/about-us/',
|
|
5
5
|
TUTORING_SERVICES: '/tutoring-services',
|
|
6
|
-
HOME_TUTION: '/home-tuition
|
|
6
|
+
HOME_TUTION: '/home-tuition',
|
|
7
7
|
HOME_TUTOR: '/home-tutor',
|
|
8
|
+
HOME_TUTORS: '/home-tutors/',
|
|
8
9
|
HOME_TUTORING: '/home-tutoring',
|
|
9
10
|
HYBRID_TEACHER_PROFILE: '/hybrid-teacher-profile/',
|
|
10
11
|
MATH_TUITION: '/math-tuition',
|
|
11
12
|
CENTRES: '/centres/',
|
|
12
|
-
MATHS: '/maths
|
|
13
|
+
MATHS: '/maths',
|
|
13
14
|
ONLINE_TUITIONS: '/online-tuitions',
|
|
14
|
-
GRADE_MATH: '
|
|
15
|
-
ONLINE_MATH_COURSES: '/online-math-courses',
|
|
15
|
+
GRADE_MATH: 'grade-math/',
|
|
16
|
+
ONLINE_MATH_COURSES: '/online-math-courses/',
|
|
16
17
|
TUITION_TUTORS: '/tuition-tutors',
|
|
17
18
|
TEACH: '/teach',
|
|
18
|
-
TEACHER_PROFILE: 'teacher-profile',
|
|
19
|
-
NEAR_ME: 'near-me',
|
|
20
|
-
CONTACT: '/contact',
|
|
19
|
+
TEACHER_PROFILE: '/teacher-profile/',
|
|
20
|
+
NEAR_ME: 'near-me/',
|
|
21
|
+
CONTACT: '/contact/',
|
|
21
22
|
PARENT_SIGNUP: '/parent/signup',
|
|
22
|
-
FREQUENTLY_ASKED_QUESTIONS: '/frequently-asked-questions',
|
|
23
|
+
FREQUENTLY_ASKED_QUESTIONS: '/frequently-asked-questions/',
|
|
23
24
|
HASH_HOMEPAGE: '/#',
|
|
24
25
|
QUERY_HOMEPAGE: '/?',
|
|
25
|
-
USA_HOMEPAGE: '/usa',
|
|
26
|
-
CURRICULUM: '/curriculum',
|
|
26
|
+
USA_HOMEPAGE: '/usa/',
|
|
27
|
+
CURRICULUM: '/curriculum/',
|
|
27
28
|
PRIVATE_TUTORS: '/private-tutors',
|
|
28
29
|
ONLINE_MATH_TUTORS: '/online-math-tutors',
|
|
29
|
-
MATHS_PROGRAM: '/maths-program',
|
|
30
|
+
MATHS_PROGRAM: '/maths-program/',
|
|
30
31
|
ONLINE_MATH_COURSE: '/online-math-course/',
|
|
31
|
-
TRIGONOMETRY_TUTORS: '/trigonometry-tutors',
|
|
32
|
-
GEOMETRY_TUTORS: '/geometry-tutors',
|
|
33
|
-
ALGEBRA_TUTORS: '/algebra-tutors',
|
|
34
|
-
AFTER_SCHOOL_TUTORING: '/after-school-tutoring',
|
|
35
|
-
MATHS_TEACHER: '/maths-teacher',
|
|
32
|
+
TRIGONOMETRY_TUTORS: '/trigonometry-tutors/',
|
|
33
|
+
GEOMETRY_TUTORS: '/geometry-tutors/',
|
|
34
|
+
ALGEBRA_TUTORS: '/algebra-tutors/',
|
|
35
|
+
AFTER_SCHOOL_TUTORING: '/after-school-tutoring/',
|
|
36
|
+
MATHS_TEACHER: '/maths-teacher/',
|
|
36
37
|
LIVE_ONLINE_CLASSES: '/live-online-classes',
|
|
38
|
+
PARENT_STUDENT_SEO: '/parent-signup-seo',
|
|
39
|
+
WORKSHEETS: '/worksheets',
|
|
40
|
+
WORKSHEET: '/worksheet',
|
|
41
|
+
QUESTIONS: '/questions',
|
|
42
|
+
MATH_PUZZLES: '/math-puzzles',
|
|
43
|
+
MATH_GAMES: '/math-games',
|
|
44
|
+
FORMULA: '-formula',
|
|
45
|
+
FORMULAS: '-formulas/',
|
|
46
|
+
CALCULATORS: '/calculators',
|
|
47
|
+
MULTIPLICATION_TABLE: '/multiplication-tables',
|
|
48
|
+
MULTIPLICATION: '/multiplication',
|
|
49
|
+
LEARNING: '/learning',
|
|
50
|
+
LEARN: '/learn',
|
|
51
|
+
MATH_OLYMPIAD: '/math-olympiad',
|
|
52
|
+
GEOMETRY: '/geometry',
|
|
53
|
+
DATA: '/data',
|
|
54
|
+
NUMBERS: '/numbers',
|
|
55
|
+
ALGEBRA: '/algebra',
|
|
56
|
+
CALCULUS: '/calculus',
|
|
57
|
+
MEASURMENT: '/measurement',
|
|
58
|
+
TRIGONOMETRY: '/trigonometry',
|
|
59
|
+
COMMERCIAL_MATH: '/commercial-math',
|
|
60
|
+
NCERT: '/ncert',
|
|
61
|
+
NCERT2: '/NCERT',
|
|
62
|
+
NCERT_SOLUTIONS: '/ncert-solutions',
|
|
63
|
+
STORIES_FOR_KIDS: 'stories-for-kids',
|
|
64
|
+
EN_HOMEPAGE: '/en-',
|
|
65
|
+
ABOUT: '/about/',
|
|
66
|
+
LOGIN: '/login',
|
|
67
|
+
MATH_CLASS: '/maths/class-',
|
|
68
|
+
ONLINE_MATH: '/online-math-',
|
|
69
|
+
HYBRID_TEACHER: '/hybrid-teacher',
|
|
70
|
+
TUITION_TEACHER: 'tuition-teacher',
|
|
71
|
+
CLASS: '/class-',
|
|
72
|
+
GRADE: '/grade',
|
|
73
|
+
LEAP_PAYMENT: '/leap-payment/',
|
|
74
|
+
LEARN_MATH_ONLINE: 'learn-math-online-',
|
|
75
|
+
UPGRADE: '/upgrade/',
|
|
76
|
+
HCL: '/hcl/',
|
|
77
|
+
WORK_FROM_HOME: 'work-from-home',
|
|
78
|
+
TEACHER_JOBS: 'teacher-jobs',
|
|
79
|
+
TEACHERS_JOBS: 'teachers-jobs',
|
|
80
|
+
PART_TIME_JOBS: 'part-time-jobs',
|
|
81
|
+
ONLINE_TUTORING_JOBS: '/online-tutoring-jobs/',
|
|
82
|
+
TEACHER_SIGNUP: '/teacher/signup',
|
|
83
|
+
TEACHER: '/teacher/',
|
|
84
|
+
PDF: 'pdf',
|
|
85
|
+
DOWNLOAD: 'download',
|
|
86
|
+
CUEMATH_OLYMPIAD: 'cuemath-olympiad',
|
|
87
|
+
GIFT: 'gift',
|
|
37
88
|
};
|
|
38
89
|
export const BRAND_PAGES = [
|
|
39
90
|
URL_PATH_MAP.HOMEPAGE,
|
|
40
91
|
URL_PATH_MAP.ABOUT_US,
|
|
41
92
|
URL_PATH_MAP.CONTACT,
|
|
42
|
-
URL_PATH_MAP.PARENT_SIGNUP,
|
|
43
93
|
URL_PATH_MAP.HASH_HOMEPAGE,
|
|
44
94
|
URL_PATH_MAP.QUERY_HOMEPAGE,
|
|
45
95
|
URL_PATH_MAP.FREQUENTLY_ASKED_QUESTIONS,
|
|
46
96
|
URL_PATH_MAP.USA_HOMEPAGE,
|
|
97
|
+
URL_PATH_MAP.ABOUT,
|
|
98
|
+
URL_PATH_MAP.LOGIN,
|
|
47
99
|
];
|
|
48
100
|
export const INTENT_PAGES = [
|
|
49
101
|
URL_PATH_MAP.WHY_CHOOSE_US,
|
|
50
102
|
URL_PATH_MAP.TUTORING_SERVICES,
|
|
51
103
|
URL_PATH_MAP.HOME_TUTION,
|
|
52
104
|
URL_PATH_MAP.HOME_TUTOR,
|
|
105
|
+
URL_PATH_MAP.HOME_TUTORS,
|
|
53
106
|
URL_PATH_MAP.HOME_TUTORING,
|
|
54
107
|
URL_PATH_MAP.HYBRID_TEACHER_PROFILE,
|
|
108
|
+
URL_PATH_MAP.HYBRID_TEACHER,
|
|
55
109
|
URL_PATH_MAP.MATH_TUITION,
|
|
56
110
|
URL_PATH_MAP.CENTRES,
|
|
57
111
|
URL_PATH_MAP.MATHS,
|
|
58
112
|
URL_PATH_MAP.ONLINE_TUITIONS,
|
|
59
|
-
URL_PATH_MAP.GRADE_MATH,
|
|
60
113
|
URL_PATH_MAP.ONLINE_MATH_COURSES,
|
|
61
114
|
URL_PATH_MAP.TUITION_TUTORS,
|
|
62
|
-
URL_PATH_MAP.TEACH,
|
|
63
115
|
URL_PATH_MAP.TEACHER_PROFILE,
|
|
64
116
|
URL_PATH_MAP.NEAR_ME,
|
|
65
117
|
URL_PATH_MAP.CURRICULUM,
|
|
@@ -73,5 +125,26 @@ export const INTENT_PAGES = [
|
|
|
73
125
|
URL_PATH_MAP.AFTER_SCHOOL_TUTORING,
|
|
74
126
|
URL_PATH_MAP.MATHS_TEACHER,
|
|
75
127
|
URL_PATH_MAP.LIVE_ONLINE_CLASSES,
|
|
128
|
+
URL_PATH_MAP.PARENT_SIGNUP,
|
|
129
|
+
URL_PATH_MAP.PARENT_STUDENT_SEO,
|
|
130
|
+
URL_PATH_MAP.MATH_CLASS,
|
|
131
|
+
URL_PATH_MAP.GRADE_MATH,
|
|
132
|
+
URL_PATH_MAP.TUITION_TEACHER,
|
|
133
|
+
URL_PATH_MAP.LEAP_PAYMENT,
|
|
134
|
+
URL_PATH_MAP.GRADE,
|
|
135
|
+
URL_PATH_MAP.LEARN_MATH_ONLINE,
|
|
136
|
+
URL_PATH_MAP.UPGRADE,
|
|
137
|
+
URL_PATH_MAP.HCL,
|
|
138
|
+
];
|
|
139
|
+
export const SUPPLY_PAGES = [
|
|
140
|
+
URL_PATH_MAP.WORK_FROM_HOME,
|
|
141
|
+
URL_PATH_MAP.MATHS_TEACHER,
|
|
142
|
+
URL_PATH_MAP.TEACHERS_JOBS,
|
|
143
|
+
URL_PATH_MAP.TEACHER_JOBS,
|
|
144
|
+
URL_PATH_MAP.PART_TIME_JOBS,
|
|
145
|
+
URL_PATH_MAP.ONLINE_TUTORING_JOBS,
|
|
146
|
+
URL_PATH_MAP.TEACHER_SIGNUP,
|
|
147
|
+
URL_PATH_MAP.TEACHER,
|
|
76
148
|
];
|
|
149
|
+
export const REFERRAL_PAGES = [URL_PATH_MAP.GIFT];
|
|
77
150
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/website-category/constants/index.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,gBAAgB;IAC/B,sBAAsB,EAAE,0BAA0B;IAClD,YAAY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RAND_PAGES, INTENT_PAGES, SUPPLY_PAGES, REFERRAL_PAGES } from './constants';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/website-category/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|