@superbright/indexeddb-orm 1.0.41 → 1.0.43
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/base/furniture.d.ts +2 -2
- package/dist/features/analytics/analytics.cjs +1 -1
- package/dist/features/analytics/analytics.cjs.map +1 -1
- package/dist/features/analytics/analytics.d.ts +71 -27
- package/dist/features/analytics/analytics.mjs +204 -196
- package/dist/features/analytics/analytics.mjs.map +1 -1
- package/package.json +18 -20
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { convertKeysToSnakeCase as
|
|
1
|
+
import { convertKeysToSnakeCase as C, convertKeysToCamelCase as l } from "../../utils/casing.mjs";
|
|
2
2
|
import { normalizeToStringArray as x } from "../../utils/collections.mjs";
|
|
3
|
-
import { useAnalytics as
|
|
4
|
-
import { object as c, string as e, number as
|
|
5
|
-
const
|
|
3
|
+
import { useAnalytics as U } from "./AnalyticsProvider.mjs";
|
|
4
|
+
import { object as c, string as e, number as n, enum as p, any as T, unknown as w, boolean as y, array as N, union as O } from "../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.mjs";
|
|
5
|
+
const Se = ["location", "budget", "size", "other"], E = [
|
|
6
6
|
"cost_low_to_high",
|
|
7
7
|
"cost_high_to_low",
|
|
8
8
|
"newest",
|
|
9
9
|
"relevance"
|
|
10
|
-
],
|
|
10
|
+
], M = [
|
|
11
11
|
"Skip",
|
|
12
12
|
"Continue",
|
|
13
13
|
"Back"
|
|
14
|
-
],
|
|
14
|
+
], f = c({
|
|
15
15
|
propertyId: e().min(1, "propertyId is required"),
|
|
16
16
|
propertySlug: e().min(1, "propertySlug is required"),
|
|
17
17
|
propertyName: e().min(1, "propertyName is required")
|
|
18
|
-
}), d =
|
|
18
|
+
}), d = f.extend({
|
|
19
19
|
propertyName: e().min(1, "propertyName is required")
|
|
20
|
-
}), O = d.extend({
|
|
21
|
-
totalUnitsAvailable: t().int().nonnegative(),
|
|
22
|
-
resultsUnitCount: t().int().nonnegative(),
|
|
23
|
-
unitCountDate: e().optional()
|
|
24
20
|
}), V = d.extend({
|
|
25
|
-
totalUnitsAvailable:
|
|
26
|
-
resultsUnitCount:
|
|
21
|
+
totalUnitsAvailable: n().int().nonnegative(),
|
|
22
|
+
resultsUnitCount: n().int().nonnegative(),
|
|
23
|
+
unitCountDate: e().optional()
|
|
24
|
+
}), B = d.extend({
|
|
25
|
+
totalUnitsAvailable: n().int().nonnegative(),
|
|
26
|
+
resultsUnitCount: n().int().nonnegative(),
|
|
27
27
|
unitCountDate: e().optional()
|
|
28
|
-
}),
|
|
29
|
-
totalUnitsAvailable:
|
|
30
|
-
resultsUnitCount:
|
|
28
|
+
}), g = d.extend({
|
|
29
|
+
totalUnitsAvailable: n().int().nonnegative(),
|
|
30
|
+
resultsUnitCount: n().int().nonnegative(),
|
|
31
31
|
unitCountDate: e().optional(),
|
|
32
|
-
lifestylePreferences:
|
|
33
|
-
}),
|
|
34
|
-
funnelStep:
|
|
32
|
+
lifestylePreferences: w().optional()
|
|
33
|
+
}), k = d.extend({
|
|
34
|
+
funnelStep: n().int().nonnegative(),
|
|
35
35
|
profileQuestion: e().min(1, "profileQuestion is required"),
|
|
36
|
-
interactedElement: p(
|
|
36
|
+
interactedElement: p(M),
|
|
37
37
|
questionEnum: e().optional()
|
|
38
|
-
}),
|
|
39
|
-
selectedAnswersEnumArray:
|
|
38
|
+
}), _ = k.extend({
|
|
39
|
+
selectedAnswersEnumArray: T().transform((s) => x(s)).refine((s) => Array.isArray(s), {
|
|
40
40
|
message: "selectedAnswersEnumArray must resolve to an array"
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
f.extend({
|
|
44
44
|
unitId: e().min(1, "unitId is required"),
|
|
45
45
|
unitName: e().min(1, "unitName is required"),
|
|
46
46
|
unitSlug: e().min(1, "unitSlug is required")
|
|
@@ -49,32 +49,32 @@ const a = d.extend({
|
|
|
49
49
|
unitId: e().min(1, "unitId is required"),
|
|
50
50
|
unitName: e().min(1, "unitName is required"),
|
|
51
51
|
unitSlug: e().min(1, "unitSlug is required")
|
|
52
|
-
}),
|
|
52
|
+
}), I = a.extend({
|
|
53
53
|
buttonName: e().min(1, "buttonName is required"),
|
|
54
54
|
formName: e().min(1, "formName is required"),
|
|
55
55
|
styleId: e().min(1, "styleId is required"),
|
|
56
56
|
styleName: e().min(1, "styleName is required"),
|
|
57
|
-
unitBedrooms:
|
|
57
|
+
unitBedrooms: n().int().nonnegative(),
|
|
58
58
|
favoritedUnit: y()
|
|
59
|
-
}),
|
|
59
|
+
}), S = a.extend({
|
|
60
60
|
roomName: e().min(1, "roomName is required"),
|
|
61
|
-
unitBedrooms:
|
|
61
|
+
unitBedrooms: n().int().nonnegative(),
|
|
62
62
|
styleId: e().min(1, "styleId is required"),
|
|
63
63
|
styleName: e().min(1, "styleName is required"),
|
|
64
64
|
favoritedUnit: y()
|
|
65
|
-
}),
|
|
65
|
+
}), Q = a.extend({
|
|
66
66
|
roomName: e().min(1, "roomName is required"),
|
|
67
|
-
unitBedrooms:
|
|
67
|
+
unitBedrooms: n().int().nonnegative(),
|
|
68
68
|
styleId: e().min(1, "styleId is required"),
|
|
69
69
|
styleName: e().min(1, "styleName is required"),
|
|
70
70
|
furnitureId: e().min(1, "furnitureId is required"),
|
|
71
71
|
furnitureName: e().min(1, "furnitureName is required"),
|
|
72
72
|
type: p(["click", "hover_on", "hover_off"]),
|
|
73
|
-
|
|
73
|
+
brandName: e().min(1, "brandName is required"),
|
|
74
74
|
category: e().min(1, "category is required")
|
|
75
|
-
}),
|
|
75
|
+
}), D = a.extend({
|
|
76
76
|
roomName: e().min(1, "roomName is required"),
|
|
77
|
-
unitBedrooms:
|
|
77
|
+
unitBedrooms: n().int().nonnegative(),
|
|
78
78
|
styleId: e().min(1, "styleId is required"),
|
|
79
79
|
styleName: e().min(1, "styleName is required"),
|
|
80
80
|
furnitureId: e().min(1, "furnitureId is required"),
|
|
@@ -82,79 +82,79 @@ const a = d.extend({
|
|
|
82
82
|
link: e().min(1, "link is required"),
|
|
83
83
|
type: e().min(1, "type is required"),
|
|
84
84
|
favoritedUnit: y(),
|
|
85
|
-
|
|
85
|
+
brandName: e().min(1, "brandName is required"),
|
|
86
86
|
category: e().min(1, "category is required")
|
|
87
|
-
}),
|
|
87
|
+
}), R = a.extend({
|
|
88
88
|
roomName: e().min(1, "roomName is required"),
|
|
89
|
-
unitBedrooms:
|
|
89
|
+
unitBedrooms: n().int().nonnegative(),
|
|
90
90
|
styleId: e().min(1, "styleId is required"),
|
|
91
91
|
styleName: e().min(1, "styleName is required"),
|
|
92
92
|
furnitureId: e().min(1, "furnitureId is required"),
|
|
93
93
|
furnitureName: e().min(1, "furnitureName is required"),
|
|
94
|
-
|
|
94
|
+
brandName: e().min(1, "brandName is required"),
|
|
95
95
|
category: e().min(1, "category is required")
|
|
96
|
-
}),
|
|
96
|
+
}), L = a.extend({
|
|
97
97
|
roomName: e().min(1, "roomName is required"),
|
|
98
|
-
unitBedrooms:
|
|
98
|
+
unitBedrooms: n().int().nonnegative(),
|
|
99
99
|
styleId: e().min(1, "styleId is required"),
|
|
100
100
|
styleName: e().min(1, "styleName is required"),
|
|
101
101
|
furnitureId: e().min(1, "furnitureId is required"),
|
|
102
102
|
furnitureName: e().min(1, "furnitureName is required"),
|
|
103
|
-
|
|
103
|
+
brandName: e().min(1, "brandName is required"),
|
|
104
104
|
category: e().min(1, "category is required")
|
|
105
|
-
}),
|
|
105
|
+
}), z = a.extend({
|
|
106
106
|
method: p(["Prev", "Next"]),
|
|
107
107
|
roomName: e().min(1, "roomName is required"),
|
|
108
|
-
unitBedrooms:
|
|
108
|
+
unitBedrooms: n().int().nonnegative(),
|
|
109
109
|
styleId: e().min(1, "styleId is required"),
|
|
110
110
|
styleName: e().min(1, "styleName is required"),
|
|
111
111
|
furnitureId: e().min(1, "furnitureId is required"),
|
|
112
112
|
furnitureName: e().min(1, "furnitureName is required"),
|
|
113
|
-
|
|
113
|
+
brandName: e().min(1, "brandName is required"),
|
|
114
114
|
category: e().min(1, "category is required")
|
|
115
115
|
}), F = a.extend({
|
|
116
116
|
roomName: e().min(1, "roomName is required"),
|
|
117
|
-
unitBedrooms:
|
|
117
|
+
unitBedrooms: n().int().nonnegative(),
|
|
118
118
|
styleId: e().min(1, "styleId is required"),
|
|
119
119
|
styleName: e().min(1, "styleName is required"),
|
|
120
120
|
method: p(["Navigation", "Map"])
|
|
121
|
-
}),
|
|
122
|
-
timeInRoom:
|
|
123
|
-
}),
|
|
121
|
+
}), W = F.extend({
|
|
122
|
+
timeInRoom: n().int().nonnegative()
|
|
123
|
+
}), G = a.extend({
|
|
124
124
|
roomName: e().min(1, "roomName is required"),
|
|
125
|
-
unitBedrooms:
|
|
125
|
+
unitBedrooms: n().int().nonnegative(),
|
|
126
126
|
styleId: e().min(1, "styleId is required"),
|
|
127
127
|
styleName: e().min(1, "styleName is required"),
|
|
128
128
|
method: p(["On Click Play"]),
|
|
129
|
-
videoCurrentTime:
|
|
130
|
-
videoDuration:
|
|
131
|
-
videoPercent:
|
|
129
|
+
videoCurrentTime: n().int().nonnegative(),
|
|
130
|
+
videoDuration: n().int().nonnegative(),
|
|
131
|
+
videoPercent: n().int().nonnegative(),
|
|
132
132
|
videoFilename: e().min(1, "videoFilename is required")
|
|
133
133
|
}), j = a.extend({
|
|
134
134
|
utmSource: e().min(1, "utm_source is required"),
|
|
135
135
|
utmMedium: e().min(1, "utm_medium is required"),
|
|
136
136
|
utmName: e().min(1, "utm_name is required"),
|
|
137
|
-
unitBedrooms:
|
|
137
|
+
unitBedrooms: n().int().nonnegative(),
|
|
138
138
|
styleId: e().min(1, "styleId is required"),
|
|
139
139
|
styleName: e().min(1, "styleName is required"),
|
|
140
140
|
favoritedUnit: y()
|
|
141
|
-
}),
|
|
141
|
+
}), P = a.extend({
|
|
142
142
|
fullUrl: e().min(1, "fullUrl is required"),
|
|
143
143
|
datestamp: e().min(1, "datestamp is required")
|
|
144
|
-
}),
|
|
144
|
+
}), H = P.extend({
|
|
145
145
|
pageName: e().min(1, "pageName is required")
|
|
146
|
-
}),
|
|
146
|
+
}), J = P.extend({
|
|
147
147
|
roomName: e().min(1, "roomName is required")
|
|
148
|
-
}), J = a.extend({
|
|
149
|
-
unitBedrooms: t().int().nonnegative()
|
|
150
148
|
}), K = a.extend({
|
|
149
|
+
unitBedrooms: n().int().nonnegative()
|
|
150
|
+
}), q = a.extend({
|
|
151
151
|
utmSource: e().min(1, "utm_source is required"),
|
|
152
152
|
utmMedium: e().min(1, "utm_medium is required"),
|
|
153
153
|
utmName: e().min(1, "utm_name is required")
|
|
154
|
-
}),
|
|
154
|
+
}), v = a.extend({
|
|
155
155
|
toastCopy: e().min(1, "toastCopy is required")
|
|
156
156
|
}), $ = a.extend({
|
|
157
|
-
unitBedrooms:
|
|
157
|
+
unitBedrooms: n().int().nonnegative(),
|
|
158
158
|
styleId: e().min(1, "styleId is required"),
|
|
159
159
|
styleName: e().min(1, "styleName is required")
|
|
160
160
|
}), X = d, Y = d.extend({
|
|
@@ -162,7 +162,7 @@ const a = d.extend({
|
|
|
162
162
|
}), Z = c({
|
|
163
163
|
name: e().min(1, "name is required"),
|
|
164
164
|
properties: c({
|
|
165
|
-
propertyContextSchema:
|
|
165
|
+
propertyContextSchema: f,
|
|
166
166
|
buttonName: e().min(1, "buttonName is required"),
|
|
167
167
|
formName: e().min(1, "formName is required"),
|
|
168
168
|
pageName: e().min(1, "pageName is required"),
|
|
@@ -171,47 +171,47 @@ const a = d.extend({
|
|
|
171
171
|
}), ee = c({
|
|
172
172
|
name: e().min(1, "name is required"),
|
|
173
173
|
properties: c({
|
|
174
|
-
propertyContextSchema:
|
|
174
|
+
propertyContextSchema: f,
|
|
175
175
|
buttonName: e().min(1, "buttonName is required"),
|
|
176
176
|
formName: e().min(1, "formName is required"),
|
|
177
177
|
pageName: e().min(1, "pageName is required"),
|
|
178
|
-
bedrooms:
|
|
179
|
-
price:
|
|
178
|
+
bedrooms: N(O([e(), n()])).optional(),
|
|
179
|
+
price: n().nullable().optional()
|
|
180
180
|
})
|
|
181
|
-
}),
|
|
182
|
-
bedrooms:
|
|
183
|
-
price_min:
|
|
184
|
-
price_max:
|
|
185
|
-
highlights:
|
|
181
|
+
}), te = d.extend({
|
|
182
|
+
bedrooms: N(n()).optional(),
|
|
183
|
+
price_min: n().optional(),
|
|
184
|
+
price_max: n().optional(),
|
|
185
|
+
highlights: N(e()).optional(),
|
|
186
186
|
page_name: e().optional()
|
|
187
|
-
}),
|
|
187
|
+
}), ne = a.extend({
|
|
188
188
|
favoritedUnit: y(),
|
|
189
|
-
unitIndex:
|
|
190
|
-
}),
|
|
189
|
+
unitIndex: n().int().nonnegative()
|
|
190
|
+
}), A = T().transform((s) => x(s)).refine((s) => Array.isArray(s), {
|
|
191
191
|
message: "Selection must resolve to an array"
|
|
192
192
|
}), ie = d.extend({
|
|
193
|
-
filterIndex:
|
|
193
|
+
filterIndex: n().int().nonnegative(),
|
|
194
194
|
filterLabel: e().min(1, "filterLabel is required"),
|
|
195
|
-
selectedFiltersEnum:
|
|
195
|
+
selectedFiltersEnum: A,
|
|
196
196
|
filterName: e().optional()
|
|
197
|
-
}),
|
|
198
|
-
filterIndex:
|
|
197
|
+
}), h = d.extend({
|
|
198
|
+
filterIndex: n().int().nonnegative(),
|
|
199
199
|
filterLabel: e().min(1, "filterLabel is required"),
|
|
200
|
-
selectedFiltersEnum:
|
|
201
|
-
}),
|
|
202
|
-
sortIndex:
|
|
203
|
-
sortEnum: p(
|
|
200
|
+
selectedFiltersEnum: A
|
|
201
|
+
}), b = f.extend({
|
|
202
|
+
sortIndex: n().int().nonnegative(),
|
|
203
|
+
sortEnum: p(E)
|
|
204
204
|
}), re = d.extend({
|
|
205
|
-
sortIndex:
|
|
206
|
-
sortEnum: p(
|
|
207
|
-
resultsUnitCount:
|
|
205
|
+
sortIndex: n().int().nonnegative(),
|
|
206
|
+
sortEnum: p(E),
|
|
207
|
+
resultsUnitCount: n().int().nonnegative(),
|
|
208
208
|
unitCountDate: e().optional()
|
|
209
|
-
}), ae =
|
|
210
|
-
fullQuestionnaireSchemaJson:
|
|
209
|
+
}), ae = f.extend({
|
|
210
|
+
fullQuestionnaireSchemaJson: w().optional(),
|
|
211
211
|
resultsJson: c({
|
|
212
212
|
type: e().optional(),
|
|
213
|
-
total:
|
|
214
|
-
units:
|
|
213
|
+
total: n().int().nonnegative().optional(),
|
|
214
|
+
units: N(
|
|
215
215
|
c({
|
|
216
216
|
unitId: e().min(1, "unitId is required"),
|
|
217
217
|
unitName: e().optional()
|
|
@@ -220,114 +220,114 @@ const a = d.extend({
|
|
|
220
220
|
}).optional()
|
|
221
221
|
}), oe = a.extend({
|
|
222
222
|
favoritedUnit: y(),
|
|
223
|
-
unitIndex:
|
|
223
|
+
unitIndex: n().int().nonnegative()
|
|
224
224
|
}), se = a.extend({
|
|
225
225
|
favoritedUnit: y(),
|
|
226
|
-
unitIndex:
|
|
227
|
-
}),
|
|
226
|
+
unitIndex: n().int().nonnegative()
|
|
227
|
+
}), me = d.extend({
|
|
228
228
|
unitId: e().min(1, "unitId is required"),
|
|
229
229
|
unitName: e().min(1, "unitName is required"),
|
|
230
230
|
unitSlug: e().min(1, "unitSlug is required"),
|
|
231
|
-
resultsUnitCount:
|
|
231
|
+
resultsUnitCount: n().int().nonnegative(),
|
|
232
232
|
unitCountDate: e().optional(),
|
|
233
|
-
unitIndex:
|
|
233
|
+
unitIndex: n().int().nonnegative()
|
|
234
234
|
});
|
|
235
|
-
function
|
|
236
|
-
const s =
|
|
237
|
-
return (
|
|
238
|
-
const
|
|
239
|
-
s.track(
|
|
235
|
+
function ue() {
|
|
236
|
+
const s = U();
|
|
237
|
+
return (m, u) => {
|
|
238
|
+
const t = u == null ? u : C(u);
|
|
239
|
+
s.track(m, t);
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
const de = (s,
|
|
243
|
-
const o = l(r), i =
|
|
242
|
+
const de = (s, m, u, t) => (r) => {
|
|
243
|
+
const o = l(r), i = m.safeParse(o);
|
|
244
244
|
if (!i.success) {
|
|
245
|
-
|
|
245
|
+
t != null && t.isDev && console.warn(`[Analytics] Invalid payload for "${s}":`, i.error.issues);
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
u(s, r);
|
|
249
249
|
};
|
|
250
|
-
function le(s,
|
|
251
|
-
const
|
|
252
|
-
const i =
|
|
250
|
+
function le(s, m = !1) {
|
|
251
|
+
const u = (r, o) => {
|
|
252
|
+
const i = C(o);
|
|
253
253
|
s(r, i);
|
|
254
|
-
},
|
|
254
|
+
}, t = (r, o) => de(r, o, u, { isDev: m });
|
|
255
255
|
return {
|
|
256
256
|
trackViewAllUnits: (r) => {
|
|
257
257
|
const o = l(
|
|
258
258
|
r
|
|
259
|
-
), i =
|
|
259
|
+
), i = V.safeParse({
|
|
260
260
|
unitCountDate: (/* @__PURE__ */ new Date()).toISOString(),
|
|
261
261
|
...o
|
|
262
262
|
});
|
|
263
263
|
if (!i.success) {
|
|
264
|
-
|
|
264
|
+
m && console.warn('[Analytics] Invalid payload for "View All Units":', i.error.flatten());
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
u("View All Units", i.data);
|
|
268
268
|
},
|
|
269
269
|
trackQuestionnaireSkip: (r) => {
|
|
270
270
|
const o = l(
|
|
271
271
|
r
|
|
272
|
-
), i =
|
|
272
|
+
), i = k.safeParse({
|
|
273
273
|
...o,
|
|
274
274
|
interactedElement: "Skip"
|
|
275
275
|
});
|
|
276
276
|
if (!i.success) {
|
|
277
|
-
|
|
277
|
+
m && console.warn('[Analytics] Invalid payload for "Questionnaire Navigated" (Skip):', i.error.flatten());
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
u("Questionnaire Navigated", i.data);
|
|
281
281
|
},
|
|
282
282
|
trackQuestionnaireContinue: (r) => {
|
|
283
283
|
const o = l(
|
|
284
284
|
r
|
|
285
|
-
), i =
|
|
285
|
+
), i = _.safeParse({
|
|
286
286
|
...o,
|
|
287
287
|
interactedElement: "Continue"
|
|
288
288
|
});
|
|
289
289
|
if (!i.success) {
|
|
290
|
-
|
|
290
|
+
m && console.warn('[Analytics] Invalid payload for "Questionnaire Navigated" (Continue):', i.error.flatten());
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
u("Questionnaire Navigated", i.data);
|
|
294
294
|
},
|
|
295
295
|
trackQuestionnaireBack: (r) => {
|
|
296
296
|
const o = l(
|
|
297
297
|
r
|
|
298
|
-
), i =
|
|
298
|
+
), i = k.safeParse({
|
|
299
299
|
...o,
|
|
300
300
|
interactedElement: "Back"
|
|
301
301
|
});
|
|
302
302
|
if (!i.success) {
|
|
303
|
-
|
|
303
|
+
m && console.warn('[Analytics] Invalid payload for "Questionnaire Navigated" (Back):', i.error.flatten());
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
u("Questionnaire Navigated", i.data);
|
|
307
307
|
},
|
|
308
|
-
trackClickUnit:
|
|
309
|
-
trackHoverUnit:
|
|
308
|
+
trackClickUnit: t("Unit Card Clicked", oe),
|
|
309
|
+
trackHoverUnit: t("Unit Hovered", ne),
|
|
310
310
|
trackLoadMore: (r) => {
|
|
311
311
|
const o = l(
|
|
312
312
|
r
|
|
313
|
-
), i =
|
|
313
|
+
), i = B.safeParse({
|
|
314
314
|
unitCountDate: (/* @__PURE__ */ new Date()).toISOString(),
|
|
315
315
|
...o
|
|
316
316
|
});
|
|
317
317
|
if (!i.success) {
|
|
318
|
-
|
|
318
|
+
m && console.warn('[Analytics] Invalid payload for "More Units Loaded":', i.error.flatten());
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
u("More Units Loaded", i.data);
|
|
322
322
|
},
|
|
323
|
-
trackFilterOpened:
|
|
324
|
-
trackFilterCanceled:
|
|
323
|
+
trackFilterOpened: t("Filter Opened", ie),
|
|
324
|
+
trackFilterCanceled: t(
|
|
325
325
|
"Filter Cleared",
|
|
326
|
-
|
|
326
|
+
h
|
|
327
327
|
),
|
|
328
|
-
trackFilterApplied:
|
|
328
|
+
trackFilterApplied: t(
|
|
329
329
|
"Filter Applied",
|
|
330
|
-
|
|
330
|
+
h
|
|
331
331
|
),
|
|
332
332
|
trackOpenSort: (r) => {
|
|
333
333
|
const o = l(
|
|
@@ -337,161 +337,169 @@ function le(s, u = !1) {
|
|
|
337
337
|
...o
|
|
338
338
|
});
|
|
339
339
|
if (!i.success) {
|
|
340
|
-
|
|
340
|
+
m && console.warn('[Analytics] Invalid payload for "Sort Opened":', i.error.flatten());
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
u("Sort Opened", i.data);
|
|
344
344
|
},
|
|
345
|
-
trackSelectSort:
|
|
346
|
-
trackCancelSort:
|
|
347
|
-
trackClickUnitFavorites:
|
|
345
|
+
trackSelectSort: t("Sort Applied", b),
|
|
346
|
+
trackCancelSort: t("Sort Canceled", b),
|
|
347
|
+
trackClickUnitFavorites: t(
|
|
348
348
|
"Unit Favorited",
|
|
349
349
|
se
|
|
350
350
|
),
|
|
351
|
-
trackUnitUnfavorited:
|
|
351
|
+
trackUnitUnfavorited: t(
|
|
352
352
|
"Unit Unfavorited",
|
|
353
|
-
|
|
353
|
+
me
|
|
354
354
|
),
|
|
355
|
-
trackQuestionnaireResult:
|
|
355
|
+
trackQuestionnaireResult: t(
|
|
356
356
|
"Questionnaire Submitted",
|
|
357
357
|
ae
|
|
358
358
|
),
|
|
359
|
-
trackScheduleTourFormInteracted:
|
|
359
|
+
trackScheduleTourFormInteracted: t(
|
|
360
360
|
"Schedule Tour Form Interacted",
|
|
361
|
-
|
|
361
|
+
g
|
|
362
362
|
),
|
|
363
|
-
trackScheduleTourFormSubmitted:
|
|
363
|
+
trackScheduleTourFormSubmitted: t(
|
|
364
364
|
"Schedule Tour Form Submitted",
|
|
365
|
-
|
|
365
|
+
g
|
|
366
366
|
),
|
|
367
|
-
trackScheduleTourUrlClicked:
|
|
367
|
+
trackScheduleTourUrlClicked: t(
|
|
368
368
|
"Schedule Tour URL Clicked",
|
|
369
|
-
|
|
369
|
+
g
|
|
370
370
|
),
|
|
371
|
-
trackGetInTouchFormOpened:
|
|
371
|
+
trackGetInTouchFormOpened: t(
|
|
372
372
|
"Form Opened",
|
|
373
|
-
|
|
373
|
+
I
|
|
374
374
|
),
|
|
375
|
-
trackGetInTouchFormSubmitted:
|
|
375
|
+
trackGetInTouchFormSubmitted: t(
|
|
376
376
|
"Form Submitted",
|
|
377
|
-
|
|
377
|
+
I
|
|
378
378
|
),
|
|
379
|
-
trackStyleDrawerOpened:
|
|
379
|
+
trackStyleDrawerOpened: t(
|
|
380
380
|
"Style Menu Opened",
|
|
381
|
-
|
|
381
|
+
S
|
|
382
382
|
),
|
|
383
|
-
trackStyleDrawerChanged:
|
|
383
|
+
trackStyleDrawerChanged: t(
|
|
384
384
|
"Style Changed",
|
|
385
|
-
|
|
385
|
+
S
|
|
386
386
|
),
|
|
387
|
-
trackOpeningStyleImpression:
|
|
387
|
+
trackOpeningStyleImpression: t(
|
|
388
388
|
"Opening Style Modal Impression",
|
|
389
|
-
|
|
389
|
+
S
|
|
390
390
|
),
|
|
391
|
-
trackOpeningStyleSlected:
|
|
391
|
+
trackOpeningStyleSlected: t(
|
|
392
392
|
"Opening Style Selected",
|
|
393
|
-
|
|
393
|
+
S
|
|
394
394
|
),
|
|
395
|
-
trackFurnitureViewed:
|
|
395
|
+
trackFurnitureViewed: t(
|
|
396
396
|
"Furniture Viewed",
|
|
397
|
-
|
|
397
|
+
Q
|
|
398
398
|
),
|
|
399
|
-
trackFurnitureExternalUrlClicked:
|
|
399
|
+
trackFurnitureExternalUrlClicked: t(
|
|
400
400
|
"Purchase Link Clicked",
|
|
401
|
-
|
|
401
|
+
D
|
|
402
402
|
),
|
|
403
|
-
trackFurnitureSaved:
|
|
403
|
+
trackFurnitureSaved: t(
|
|
404
404
|
"Furniture Saved",
|
|
405
|
-
|
|
405
|
+
R
|
|
406
406
|
),
|
|
407
|
-
trackFurnitureModalOpened:
|
|
407
|
+
trackFurnitureModalOpened: t(
|
|
408
408
|
"Furniture Modal Opened",
|
|
409
|
-
|
|
409
|
+
L
|
|
410
410
|
),
|
|
411
|
-
trackFurnitureCarouselToggled:
|
|
411
|
+
trackFurnitureCarouselToggled: t(
|
|
412
412
|
"Furniture Carousel Toggled",
|
|
413
|
-
|
|
413
|
+
z
|
|
414
414
|
),
|
|
415
|
-
trackRoomEntered:
|
|
415
|
+
trackRoomEntered: t(
|
|
416
416
|
"Room Entered",
|
|
417
417
|
F
|
|
418
418
|
),
|
|
419
|
-
trackRoomLeft:
|
|
419
|
+
trackRoomLeft: t(
|
|
420
420
|
"Room Left",
|
|
421
|
-
|
|
421
|
+
W
|
|
422
422
|
),
|
|
423
|
-
trackVideoStarted:
|
|
423
|
+
trackVideoStarted: t(
|
|
424
424
|
"Video Started",
|
|
425
|
-
|
|
425
|
+
G
|
|
426
426
|
),
|
|
427
|
-
trackEmailRedirect:
|
|
427
|
+
trackEmailRedirect: t(
|
|
428
428
|
"Email Tracked",
|
|
429
429
|
j
|
|
430
430
|
),
|
|
431
|
-
trackToastImpression:
|
|
431
|
+
trackToastImpression: t(
|
|
432
432
|
"Toast Impression",
|
|
433
|
-
|
|
433
|
+
v
|
|
434
434
|
),
|
|
435
|
-
trackToastClicked:
|
|
435
|
+
trackToastClicked: t(
|
|
436
436
|
"Toast Clicked",
|
|
437
|
-
|
|
437
|
+
v
|
|
438
438
|
),
|
|
439
|
-
trackToastClosed:
|
|
439
|
+
trackToastClosed: t(
|
|
440
440
|
"Toast Closed",
|
|
441
|
-
|
|
441
|
+
v
|
|
442
442
|
),
|
|
443
|
-
trackContentModalOpened:
|
|
443
|
+
trackContentModalOpened: t(
|
|
444
444
|
"Content Modal Opened",
|
|
445
445
|
$
|
|
446
446
|
),
|
|
447
|
-
trackBuildingDetailsModalOpened:
|
|
447
|
+
trackBuildingDetailsModalOpened: t(
|
|
448
448
|
"Building Details Modal",
|
|
449
449
|
X
|
|
450
450
|
),
|
|
451
|
-
trackSubscriptionImpression:
|
|
451
|
+
trackSubscriptionImpression: t(
|
|
452
452
|
"Subscription Impression",
|
|
453
453
|
Y
|
|
454
454
|
),
|
|
455
|
-
trackSubscriptionInteracted:
|
|
455
|
+
trackSubscriptionInteracted: t(
|
|
456
456
|
"Subscription Interacted",
|
|
457
457
|
Z
|
|
458
458
|
),
|
|
459
|
-
trackSubscriptionSubmitted:
|
|
459
|
+
trackSubscriptionSubmitted: t(
|
|
460
460
|
"Subscription Submitted",
|
|
461
461
|
ee
|
|
462
462
|
),
|
|
463
|
-
trackSubscriptionRemoved:
|
|
463
|
+
trackSubscriptionRemoved: t(
|
|
464
464
|
"Subscription Removed",
|
|
465
|
-
|
|
465
|
+
te
|
|
466
466
|
),
|
|
467
|
-
trackWebPageViewed:
|
|
467
|
+
trackWebPageViewed: t(
|
|
468
468
|
"Page Viewed",
|
|
469
|
-
|
|
469
|
+
H
|
|
470
470
|
),
|
|
471
|
-
trackWebPageRoomViewed:
|
|
471
|
+
trackWebPageRoomViewed: t(
|
|
472
472
|
"Page Viewed",
|
|
473
|
-
|
|
473
|
+
J
|
|
474
474
|
),
|
|
475
|
-
trackEmbedPageViewed:
|
|
475
|
+
trackEmbedPageViewed: t(
|
|
476
476
|
"Embed Impression",
|
|
477
|
-
|
|
477
|
+
K
|
|
478
478
|
),
|
|
479
|
-
|
|
479
|
+
trackEmailClickGeneric: (r) => t(
|
|
480
480
|
`Email Interaction - ${r.event_name}`,
|
|
481
|
-
|
|
481
|
+
q
|
|
482
|
+
),
|
|
483
|
+
trackEmailClickConfirmation: () => t(
|
|
484
|
+
"Notify Me Email Confirmation",
|
|
485
|
+
q
|
|
486
|
+
),
|
|
487
|
+
trackEmailClickNotification: () => t(
|
|
488
|
+
"Notify Me Email Notification",
|
|
489
|
+
q
|
|
482
490
|
)
|
|
483
491
|
};
|
|
484
492
|
}
|
|
485
|
-
function
|
|
486
|
-
const { isDev: s } =
|
|
487
|
-
return le(
|
|
493
|
+
function Ne() {
|
|
494
|
+
const { isDev: s } = U(), m = ue();
|
|
495
|
+
return le(m, s);
|
|
488
496
|
}
|
|
489
497
|
export {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
498
|
+
Se as QuestionEnumValues,
|
|
499
|
+
M as QuestionnaireInteractionValues,
|
|
500
|
+
E as SortEnumValues,
|
|
493
501
|
le as buildTrackingEvents,
|
|
494
|
-
|
|
495
|
-
|
|
502
|
+
ue as useTrackEvent,
|
|
503
|
+
Ne as useTrackingEvents
|
|
496
504
|
};
|
|
497
505
|
//# sourceMappingURL=analytics.mjs.map
|