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