react-marketing-tools 0.3.4 → 0.3.5
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/.vite/manifest.json +2 -2
- package/dist/analytics/analyticsEventService.d.ts +1 -1
- package/dist/analytics/ga4GoogleAnalyticsEventTracking.d.ts +1 -1
- package/dist/analytics/handleDataLayerPush.d.ts +1 -1
- package/dist/analytics/helpers.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/ipInfo/index.d.ts +1 -1
- package/dist/react-marketing-tools.es.js +88 -88
- package/dist/react-marketing-tools.umd.js +7 -7
- package/dist/{types.d.ts → types/index.d.ts} +21 -0
- package/package.json +6 -3
- package/dist/analytics/types.d.ts +0 -60
- package/dist/ipInfo/types.d.ts +0 -21
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Ga4GoogleAnalyticsEventTracking } from '
|
|
1
|
+
import { Ga4GoogleAnalyticsEventTracking } from '../types';
|
|
2
2
|
declare const ga4GoogleAnalyticsEventTracking: (options: Ga4GoogleAnalyticsEventTracking) => Promise<void>;
|
|
3
3
|
export default ga4GoogleAnalyticsEventTracking;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode, Context } from 'react';
|
|
2
2
|
import type { ProviderStateProps, ProviderApiProps } from './types';
|
|
3
|
-
export * from './types';
|
|
4
3
|
export { config, analyticsPlatform, buildConfig, showMeBuildInAnalyticsPlatform, showMeBuildInGlobalEventActionList, showMeBuildInEventActionPrefixList, } from './buildConfig';
|
|
5
4
|
export { trackAnalyticsEvent } from './analytics/analyticsEventService';
|
|
6
5
|
export declare const ContextState: Context<ProviderStateProps>;
|
package/dist/ipInfo/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IpInfo, ServerLocationData } from '
|
|
1
|
+
import { IpInfo, ServerLocationData } from '../types';
|
|
2
2
|
export declare const buildServerLocationData: (withServerLocationInfo: boolean | undefined) => Promise<ServerLocationData | undefined>;
|
|
3
3
|
export declare const getIpInfo: (IP_INFO_TOKEN: string) => Promise<IpInfo>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Qo, { createContext as Zo, useMemo as vo, useContext as Yo } from "react";
|
|
2
|
-
const y = (e, l = "") => l ? e.hasOwnProperty(l) : Object.keys(e).length > 0, Jo = (e, l) => l ? e.replace(/[\s]/g, l) : e.replace(/[\s]+/g, ""),
|
|
2
|
+
const y = (e, l = "") => l ? e.hasOwnProperty(l) : Object.keys(e).length > 0, Jo = (e, l) => l ? e.replace(/[\s]/g, l) : e.replace(/[\s]+/g, ""), Or = async (e) => {
|
|
3
3
|
const l = new TextEncoder().encode(e), r = await crypto.subtle.digest("SHA-256", l);
|
|
4
4
|
return Array.from(new Uint8Array(r)).map((i) => i.toString(16).padStart(2, "0")).join("");
|
|
5
5
|
};
|
|
6
|
-
let
|
|
6
|
+
let Ir;
|
|
7
7
|
const O = (e, l = "") => {
|
|
8
8
|
if (!e)
|
|
9
9
|
throw new Error(l ?? "Is true assertion failed");
|
|
@@ -39,7 +39,7 @@ const O = (e, l = "") => {
|
|
|
39
39
|
});
|
|
40
40
|
console.group(), console.info("BuildInGlobalEventActionList"), console.table(e), console.groupEnd();
|
|
41
41
|
};
|
|
42
|
-
let
|
|
42
|
+
let E = { ...Ir };
|
|
43
43
|
const BG = (e) => {
|
|
44
44
|
const {
|
|
45
45
|
appName: l,
|
|
@@ -52,7 +52,7 @@ const BG = (e) => {
|
|
|
52
52
|
withDeviceInfo: c = !1,
|
|
53
53
|
withServerLocationInfo: u = !1
|
|
54
54
|
} = { ...e };
|
|
55
|
-
O(!!l, "An appName must be provided in the config."),
|
|
55
|
+
O(!!l, "An appName must be provided in the config."), E = {
|
|
56
56
|
TOKENS: x,
|
|
57
57
|
appName: l,
|
|
58
58
|
appSessionCookieName: r,
|
|
@@ -70,7 +70,7 @@ const BG = (e) => {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}, Dr = async (e) => {
|
|
73
|
-
const { TOKENS: l } = { ...
|
|
73
|
+
const { TOKENS: l } = { ...E };
|
|
74
74
|
if (O(
|
|
75
75
|
e ? !!(l != null && l.IP_INFO_TOKEN) : !0,
|
|
76
76
|
"if you want serverLocationInfo your config must have the TOKEN.IP_INFO_TOKEN AND withServerLocationInfo must be true."
|
|
@@ -43819,11 +43819,11 @@ const _3 = [
|
|
|
43819
43819
|
operatingSystem: L3,
|
|
43820
43820
|
osFamilies: h3
|
|
43821
43821
|
};
|
|
43822
|
-
var
|
|
43822
|
+
var zo = S && S.__importDefault || function(e) {
|
|
43823
43823
|
return e && e.__esModule ? e : { default: e };
|
|
43824
43824
|
};
|
|
43825
43825
|
Object.defineProperty(We, "__esModule", { value: !0 });
|
|
43826
|
-
const E3 =
|
|
43826
|
+
const E3 = zo(_3), B3 = w, Uo = h, Q = L, jo = zo(b3), C3 = ["AmigaOS", "IBM", "GNU/Linux", "Mac", "Unix", "Windows", "BeOS", "Chrome OS"], N3 = jo.default.operatingSystem, O3 = jo.default.osFamilies;
|
|
43827
43827
|
class ee {
|
|
43828
43828
|
constructor(l) {
|
|
43829
43829
|
this.options = {
|
|
@@ -47050,7 +47050,7 @@ class gG {
|
|
|
47050
47050
|
skipBotDetection: !1,
|
|
47051
47051
|
versionTruncation: 1
|
|
47052
47052
|
}, this.parse = (r) => {
|
|
47053
|
-
var d, a, i, g, x, c, u, M, T,
|
|
47053
|
+
var d, a, i, g, x, c, u, M, T, B, C, X, F, V;
|
|
47054
47054
|
const n = {
|
|
47055
47055
|
client: this.clientParser.parse(r),
|
|
47056
47056
|
os: this.operatingSystemParser.parse(r),
|
|
@@ -47061,7 +47061,7 @@ class gG {
|
|
|
47061
47061
|
const le = this.vendorFragmentParser.parse(r);
|
|
47062
47062
|
le && (n.device || (n.device = this.createDeviceObject()), n.device.brand = le);
|
|
47063
47063
|
}
|
|
47064
|
-
return !(!((g = n.device) === null || g === void 0) && g.brand) && ["Apple TV", "watchOS", "iOS", "Mac"].includes(p || "") && (n.device || (n.device = this.createDeviceObject()), n.device.brand = "Apple"), !(!((x = n.device) === null || x === void 0) && x.type) && Y === "Android" && I.userAgentParser("Chrome/[\\.0-9]*", r) && (I.userAgentParser("Chrome/[.0-9]* (?:Mobile|eliboM)", r) ? (n.device || (n.device = this.createDeviceObject()), n.device.type = "smartphone") : I.userAgentParser("Chrome/[.0-9]* (?!Mobile)", r) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "tablet")), (!(!((c = n.device) === null || c === void 0) && c.type) && this.hasAndroidTabletFragment(r) || I.userAgentParser("Opera Tablet", r)) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "tablet"), !(!((u = n.device) === null || u === void 0) && u.type) && this.hasAndroidMobileFragment(r) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "smartphone"), !(!((M = n.device) === null || M === void 0) && M.type) && p === "Android" && H !== "" && (ge.versionCompare(H, "2.0") === -1 ? (n.device || (n.device = this.createDeviceObject()), n.device.type = "smartphone") : ge.versionCompare(H, "3.0") >= 0 && ge.versionCompare(H, "4.0") === -1 && (n.device || (n.device = this.createDeviceObject()), n.device.type = "tablet")), ((T = n.device) === null || T === void 0 ? void 0 : T.type) === "feature phone" && Y === "Android" && (n.device.type = "smartphone"), !(!((
|
|
47064
|
+
return !(!((g = n.device) === null || g === void 0) && g.brand) && ["Apple TV", "watchOS", "iOS", "Mac"].includes(p || "") && (n.device || (n.device = this.createDeviceObject()), n.device.brand = "Apple"), !(!((x = n.device) === null || x === void 0) && x.type) && Y === "Android" && I.userAgentParser("Chrome/[\\.0-9]*", r) && (I.userAgentParser("Chrome/[.0-9]* (?:Mobile|eliboM)", r) ? (n.device || (n.device = this.createDeviceObject()), n.device.type = "smartphone") : I.userAgentParser("Chrome/[.0-9]* (?!Mobile)", r) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "tablet")), (!(!((c = n.device) === null || c === void 0) && c.type) && this.hasAndroidTabletFragment(r) || I.userAgentParser("Opera Tablet", r)) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "tablet"), !(!((u = n.device) === null || u === void 0) && u.type) && this.hasAndroidMobileFragment(r) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "smartphone"), !(!((M = n.device) === null || M === void 0) && M.type) && p === "Android" && H !== "" && (ge.versionCompare(H, "2.0") === -1 ? (n.device || (n.device = this.createDeviceObject()), n.device.type = "smartphone") : ge.versionCompare(H, "3.0") >= 0 && ge.versionCompare(H, "4.0") === -1 && (n.device || (n.device = this.createDeviceObject()), n.device.type = "tablet")), ((T = n.device) === null || T === void 0 ? void 0 : T.type) === "feature phone" && Y === "Android" && (n.device.type = "smartphone"), !(!((B = n.device) === null || B === void 0) && B.type) && this.isToucheEnabled(r) && (p === "Windows RT" || p === "Windows" && ge.versionCompare(H, "8.0") >= 0) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "tablet"), I.userAgentParser("Opera TV Store", r) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "television"), I.userAgentParser("SmartTV|Tizen.+ TV .+$", r) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "television"), !(!((C = n.device) === null || C === void 0) && C.type) && ["Kylo", "Espial TV Browser"].includes(((X = n.client) === null || X === void 0 ? void 0 : X.name) || "") && (n.device || (n.device = this.createDeviceObject()), n.device.type = "television"), ((F = n.device) === null || F === void 0 ? void 0 : F.type) !== "desktop" && I.userAgentParser("Desktop", r) !== null && this.hasDesktopFragment(r) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "desktop"), !(!((V = n.device) === null || V === void 0) && V.type) && this.isDesktop(n, Y) && (n.device || (n.device = this.createDeviceObject()), n.device.type = "desktop"), n;
|
|
47065
47065
|
}, this.hasAndroidMobileFragment = (r) => I.userAgentParser("Android( [.0-9]+)?; Mobile;", r), this.hasAndroidTabletFragment = (r) => I.userAgentParser("Android( [.0-9]+)?; Tablet;", r), this.hasDesktopFragment = (r) => I.userAgentParser("Desktop (x(?:32|64)|WOW64);", r), this.isDesktop = (r, d) => !r.os || this.usesMobileBrowser(r.client) ? !1 : _e.default.getDesktopOsArray().includes(d), this.usesMobileBrowser = (r) => {
|
|
47066
47066
|
var d, a;
|
|
47067
47067
|
return r ? ((d = r) === null || d === void 0 ? void 0 : d.type) === "browser" && mG.default.isMobileOnlyBrowser((a = r) === null || a === void 0 ? void 0 : a.name) : !1;
|
|
@@ -47081,7 +47081,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47081
47081
|
);
|
|
47082
47082
|
for (let a in e)
|
|
47083
47083
|
if (r.includes(a)) {
|
|
47084
|
-
const i = e[a], g = await
|
|
47084
|
+
const i = e[a], g = await Or(i);
|
|
47085
47085
|
d[a] = g;
|
|
47086
47086
|
}
|
|
47087
47087
|
return d;
|
|
@@ -47098,13 +47098,13 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47098
47098
|
throw new Error(
|
|
47099
47099
|
"actionPrefix AND globalAppEvent must be included in the eventNameInfo object passed to buildAnalyticsEventName function"
|
|
47100
47100
|
);
|
|
47101
|
-
const { currentSequence: l, previousSequence: r } =
|
|
47101
|
+
const { currentSequence: l, previousSequence: r } = er(
|
|
47102
47102
|
e.globalAppEvent,
|
|
47103
47103
|
e.previousGlobalAppEvent
|
|
47104
47104
|
);
|
|
47105
47105
|
return `${e.actionPrefix}${e.description ? `_${Jo(e.description, "_").toUpperCase()}` : ""}_${l}${r ? `_${r}` : ""}`;
|
|
47106
|
-
},
|
|
47107
|
-
const r = Date.now(), a = new Date(r).toISOString(), { withServerLocationInfo: i } =
|
|
47106
|
+
}, qo = async (e, l) => {
|
|
47107
|
+
const r = Date.now(), a = new Date(r).toISOString(), { withServerLocationInfo: i } = E, g = await Dr(
|
|
47108
47108
|
i
|
|
47109
47109
|
);
|
|
47110
47110
|
let x = g ? {
|
|
@@ -47118,8 +47118,8 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47118
47118
|
return MG(x, e, l);
|
|
47119
47119
|
}, uG = (e) => !!window.dataLayer.find(
|
|
47120
47120
|
(r) => r.event === e
|
|
47121
|
-
), $G = (e) => new sG().parse(e),
|
|
47122
|
-
const { analyticsGlobalEventActionList: r } =
|
|
47121
|
+
), $G = (e) => new sG().parse(e), er = (e, l = "") => {
|
|
47122
|
+
const { analyticsGlobalEventActionList: r } = E;
|
|
47123
47123
|
let d = "";
|
|
47124
47124
|
O(
|
|
47125
47125
|
Object.values(r).includes(e),
|
|
@@ -47140,9 +47140,9 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47140
47140
|
);
|
|
47141
47141
|
return { currentSequence: a, previousSequence: d };
|
|
47142
47142
|
}, AG = (e, l) => Object.assign(e, l), MG = (e, l, r) => {
|
|
47143
|
-
const { analyticsGlobalEventActionList: d, includeUserKeys: a } =
|
|
47143
|
+
const { analyticsGlobalEventActionList: d, includeUserKeys: a } = E;
|
|
47144
47144
|
let i = {};
|
|
47145
|
-
const { currentSequence: g } =
|
|
47145
|
+
const { currentSequence: g } = er(r);
|
|
47146
47146
|
for (const x in d)
|
|
47147
47147
|
x === g && Object.entries(l).map(([c, u]) => {
|
|
47148
47148
|
const M = c;
|
|
@@ -47158,7 +47158,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47158
47158
|
if ((r == null ? void 0 : r.length) === 2)
|
|
47159
47159
|
return (a = (d = r == null ? void 0 : r.pop()) == null ? void 0 : d.split(";")) == null ? void 0 : a.shift();
|
|
47160
47160
|
}, PG = async (e) => {
|
|
47161
|
-
const { consoleLogData: l, data: r, eventName: d, globalAppEvent: a, userDetails: i } = e, { appSessionCookieName: g, TOKENS: x } = { ...
|
|
47161
|
+
const { consoleLogData: l, data: r, eventName: d, globalAppEvent: a, userDetails: i } = e, { appSessionCookieName: g, TOKENS: x } = { ...E };
|
|
47162
47162
|
O(
|
|
47163
47163
|
!!x,
|
|
47164
47164
|
"TOKENS in config must contain GA4_PUBLIC_API_SECRET and GA4_PUBLIC_MEASUREMENT_ID key: value if you want to use ga4GoogleAnalyticsEventTracking"
|
|
@@ -47169,7 +47169,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47169
47169
|
y(x, "GA4_PUBLIC_MEASUREMENT_ID"),
|
|
47170
47170
|
"GA4_PUBLIC_MEASUREMENT_ID not supplied in config"
|
|
47171
47171
|
);
|
|
47172
|
-
const { GA4_PUBLIC_API_SECRET: c, GA4_PUBLIC_MEASUREMENT_ID: u } = { ...x }, M = await
|
|
47172
|
+
const { GA4_PUBLIC_API_SECRET: c, GA4_PUBLIC_MEASUREMENT_ID: u } = { ...x }, M = await qo(r, a), T = {
|
|
47173
47173
|
non_personalized_ads: !1,
|
|
47174
47174
|
client_id: Ee(g) ?? "",
|
|
47175
47175
|
user_id: `${(i == null ? void 0 : i.id) ?? ""}`,
|
|
@@ -47208,7 +47208,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47208
47208
|
globalAppEvent: a,
|
|
47209
47209
|
dataLayerCheck: i,
|
|
47210
47210
|
userDetails: g
|
|
47211
|
-
} = e, { appName: x, appSessionCookieName: c, withDeviceInfo: u } =
|
|
47211
|
+
} = e, { appName: x, appSessionCookieName: c, withDeviceInfo: u } = E, M = navigator.userAgent, T = u && $G(M), B = await qo(r, a), C = {
|
|
47212
47212
|
event: d,
|
|
47213
47213
|
// equal to event name for google analytics
|
|
47214
47214
|
globalVars: {
|
|
@@ -47227,7 +47227,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47227
47227
|
client_id: Ee(c)
|
|
47228
47228
|
},
|
|
47229
47229
|
journeyProps: {
|
|
47230
|
-
...
|
|
47230
|
+
...B
|
|
47231
47231
|
}
|
|
47232
47232
|
};
|
|
47233
47233
|
pG({ dataLayerData: C, ...l }), i && uG(d) || window.dataLayer.push(C);
|
|
@@ -47247,7 +47247,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47247
47247
|
userDataToHashKeyArray: a = null,
|
|
47248
47248
|
dataLayerCheck: i = !1,
|
|
47249
47249
|
consoleLogData: g = null
|
|
47250
|
-
} = e, { includeUserKeys: x, showMissingUserAttributesInConsole: c } =
|
|
47250
|
+
} = e, { includeUserKeys: x, showMissingUserAttributesInConsole: c } = E;
|
|
47251
47251
|
O(
|
|
47252
47252
|
y(f, d),
|
|
47253
47253
|
`"analyticsType" of ${d} cannot be found in the analyticsPlatform object to view available platforms use showMeBuildInAnalyticsPlatform()`
|
|
@@ -47268,7 +47268,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
|
|
|
47268
47268
|
},
|
|
47269
47269
|
userDetails: Le(
|
|
47270
47270
|
l,
|
|
47271
|
-
|
|
47271
|
+
E.includeUserKeys,
|
|
47272
47272
|
c
|
|
47273
47273
|
),
|
|
47274
47274
|
consoleLogData: g
|
|
@@ -47316,7 +47316,7 @@ var Be = { exports: {} }, j = {};
|
|
|
47316
47316
|
var ko;
|
|
47317
47317
|
function GG() {
|
|
47318
47318
|
return ko || (ko = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47319
|
-
var e = Qo, l = Symbol.for("react.element"), r = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), x = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"),
|
|
47319
|
+
var e = Qo, l = Symbol.for("react.element"), r = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), x = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), X = Symbol.iterator, F = "@@iterator";
|
|
47320
47320
|
function V(o) {
|
|
47321
47321
|
if (o === null || typeof o != "object")
|
|
47322
47322
|
return null;
|
|
@@ -47341,16 +47341,16 @@ function GG() {
|
|
|
47341
47341
|
v.unshift("Warning: " + t), Function.prototype.apply.call(console[o], console, v);
|
|
47342
47342
|
}
|
|
47343
47343
|
}
|
|
47344
|
-
var Y = !1, Ye = !1, le = !1,
|
|
47344
|
+
var Y = !1, Ye = !1, le = !1, lr = !1, dr = !1, Je;
|
|
47345
47345
|
Je = Symbol.for("react.module.reference");
|
|
47346
|
-
function
|
|
47347
|
-
return !!(typeof o == "string" || typeof o == "function" || o === d || o === i ||
|
|
47346
|
+
function ar(o) {
|
|
47347
|
+
return !!(typeof o == "string" || typeof o == "function" || o === d || o === i || dr || o === a || o === u || o === M || lr || o === C || Y || Ye || le || typeof o == "object" && o !== null && (o.$$typeof === B || o.$$typeof === T || o.$$typeof === g || o.$$typeof === x || o.$$typeof === c || // This needs to include all possible module reference object
|
|
47348
47348
|
// types supported by any Flight configuration anywhere since
|
|
47349
47349
|
// we don't know which Flight build this will end up being used
|
|
47350
47350
|
// with.
|
|
47351
47351
|
o.$$typeof === Je || o.getModuleId !== void 0));
|
|
47352
47352
|
}
|
|
47353
|
-
function
|
|
47353
|
+
function ir(o, t, m) {
|
|
47354
47354
|
var s = o.displayName;
|
|
47355
47355
|
if (s)
|
|
47356
47356
|
return s;
|
|
@@ -47390,11 +47390,11 @@ function GG() {
|
|
|
47390
47390
|
var m = o;
|
|
47391
47391
|
return ze(m._context) + ".Provider";
|
|
47392
47392
|
case c:
|
|
47393
|
-
return
|
|
47393
|
+
return ir(o, o.render, "ForwardRef");
|
|
47394
47394
|
case T:
|
|
47395
47395
|
var s = o.displayName || null;
|
|
47396
47396
|
return s !== null ? s : D(o.type) || "Memo";
|
|
47397
|
-
case
|
|
47397
|
+
case B: {
|
|
47398
47398
|
var P = o, v = P._payload, A = P._init;
|
|
47399
47399
|
try {
|
|
47400
47400
|
return D(A(v));
|
|
@@ -47409,7 +47409,7 @@ function GG() {
|
|
|
47409
47409
|
function io() {
|
|
47410
47410
|
}
|
|
47411
47411
|
io.__reactDisabledLog = !0;
|
|
47412
|
-
function
|
|
47412
|
+
function tr() {
|
|
47413
47413
|
{
|
|
47414
47414
|
if (J === 0) {
|
|
47415
47415
|
je = console.log, qe = console.info, eo = console.warn, oo = console.error, ro = console.group, lo = console.groupCollapsed, ao = console.groupEnd;
|
|
@@ -47432,7 +47432,7 @@ function GG() {
|
|
|
47432
47432
|
J++;
|
|
47433
47433
|
}
|
|
47434
47434
|
}
|
|
47435
|
-
function
|
|
47435
|
+
function mr() {
|
|
47436
47436
|
{
|
|
47437
47437
|
if (J--, J === 0) {
|
|
47438
47438
|
var o = {
|
|
@@ -47483,8 +47483,8 @@ function GG() {
|
|
|
47483
47483
|
}
|
|
47484
47484
|
var $e = !1, ae;
|
|
47485
47485
|
{
|
|
47486
|
-
var
|
|
47487
|
-
ae = new
|
|
47486
|
+
var nr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
47487
|
+
ae = new nr();
|
|
47488
47488
|
}
|
|
47489
47489
|
function to(o, t) {
|
|
47490
47490
|
if (!o || $e)
|
|
@@ -47499,7 +47499,7 @@ function GG() {
|
|
|
47499
47499
|
var P = Error.prepareStackTrace;
|
|
47500
47500
|
Error.prepareStackTrace = void 0;
|
|
47501
47501
|
var v;
|
|
47502
|
-
v = Se.current, Se.current = null,
|
|
47502
|
+
v = Se.current, Se.current = null, tr();
|
|
47503
47503
|
try {
|
|
47504
47504
|
if (t) {
|
|
47505
47505
|
var A = function() {
|
|
@@ -47552,15 +47552,15 @@ function GG() {
|
|
|
47552
47552
|
}
|
|
47553
47553
|
}
|
|
47554
47554
|
} finally {
|
|
47555
|
-
$e = !1, Se.current = v,
|
|
47555
|
+
$e = !1, Se.current = v, mr(), Error.prepareStackTrace = P;
|
|
47556
47556
|
}
|
|
47557
47557
|
var W = o ? o.displayName || o.name : "", To = W ? de(W) : "";
|
|
47558
47558
|
return typeof o == "function" && ae.set(o, To), To;
|
|
47559
47559
|
}
|
|
47560
|
-
function
|
|
47560
|
+
function gr(o, t, m) {
|
|
47561
47561
|
return to(o, !1);
|
|
47562
47562
|
}
|
|
47563
|
-
function
|
|
47563
|
+
function xr(o) {
|
|
47564
47564
|
var t = o.prototype;
|
|
47565
47565
|
return !!(t && t.isReactComponent);
|
|
47566
47566
|
}
|
|
@@ -47568,7 +47568,7 @@ function GG() {
|
|
|
47568
47568
|
if (o == null)
|
|
47569
47569
|
return "";
|
|
47570
47570
|
if (typeof o == "function")
|
|
47571
|
-
return to(o,
|
|
47571
|
+
return to(o, xr(o));
|
|
47572
47572
|
if (typeof o == "string")
|
|
47573
47573
|
return de(o);
|
|
47574
47574
|
switch (o) {
|
|
@@ -47580,10 +47580,10 @@ function GG() {
|
|
|
47580
47580
|
if (typeof o == "object")
|
|
47581
47581
|
switch (o.$$typeof) {
|
|
47582
47582
|
case c:
|
|
47583
|
-
return
|
|
47583
|
+
return gr(o.render);
|
|
47584
47584
|
case T:
|
|
47585
47585
|
return ie(o.type, t, m);
|
|
47586
|
-
case
|
|
47586
|
+
case B: {
|
|
47587
47587
|
var s = o, P = s._payload, v = s._init;
|
|
47588
47588
|
try {
|
|
47589
47589
|
return ie(v(P), t, m);
|
|
@@ -47601,7 +47601,7 @@ function GG() {
|
|
|
47601
47601
|
} else
|
|
47602
47602
|
no.setExtraStackFrame(null);
|
|
47603
47603
|
}
|
|
47604
|
-
function
|
|
47604
|
+
function sr(o, t, m, s, P) {
|
|
47605
47605
|
{
|
|
47606
47606
|
var v = Function.call.bind(te);
|
|
47607
47607
|
for (var A in o)
|
|
@@ -47620,17 +47620,17 @@ function GG() {
|
|
|
47620
47620
|
}
|
|
47621
47621
|
}
|
|
47622
47622
|
}
|
|
47623
|
-
var
|
|
47623
|
+
var cr = Array.isArray;
|
|
47624
47624
|
function Ae(o) {
|
|
47625
|
-
return
|
|
47625
|
+
return cr(o);
|
|
47626
47626
|
}
|
|
47627
|
-
function
|
|
47627
|
+
function Sr(o) {
|
|
47628
47628
|
{
|
|
47629
47629
|
var t = typeof Symbol == "function" && Symbol.toStringTag, m = t && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
47630
47630
|
return m;
|
|
47631
47631
|
}
|
|
47632
47632
|
}
|
|
47633
|
-
function
|
|
47633
|
+
function ur(o) {
|
|
47634
47634
|
try {
|
|
47635
47635
|
return go(o), !1;
|
|
47636
47636
|
} catch {
|
|
@@ -47641,17 +47641,17 @@ function GG() {
|
|
|
47641
47641
|
return "" + o;
|
|
47642
47642
|
}
|
|
47643
47643
|
function xo(o) {
|
|
47644
|
-
if (
|
|
47645
|
-
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
47644
|
+
if (ur(o))
|
|
47645
|
+
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sr(o)), go(o);
|
|
47646
47646
|
}
|
|
47647
|
-
var z = n.ReactCurrentOwner,
|
|
47647
|
+
var z = n.ReactCurrentOwner, $r = {
|
|
47648
47648
|
key: !0,
|
|
47649
47649
|
ref: !0,
|
|
47650
47650
|
__self: !0,
|
|
47651
47651
|
__source: !0
|
|
47652
47652
|
}, so, co, Me;
|
|
47653
47653
|
Me = {};
|
|
47654
|
-
function
|
|
47654
|
+
function Ar(o) {
|
|
47655
47655
|
if (te.call(o, "ref")) {
|
|
47656
47656
|
var t = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
47657
47657
|
if (t && t.isReactWarning)
|
|
@@ -47659,7 +47659,7 @@ function GG() {
|
|
|
47659
47659
|
}
|
|
47660
47660
|
return o.ref !== void 0;
|
|
47661
47661
|
}
|
|
47662
|
-
function
|
|
47662
|
+
function Mr(o) {
|
|
47663
47663
|
if (te.call(o, "key")) {
|
|
47664
47664
|
var t = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
47665
47665
|
if (t && t.isReactWarning)
|
|
@@ -47667,13 +47667,13 @@ function GG() {
|
|
|
47667
47667
|
}
|
|
47668
47668
|
return o.key !== void 0;
|
|
47669
47669
|
}
|
|
47670
|
-
function
|
|
47670
|
+
function Pr(o, t) {
|
|
47671
47671
|
if (typeof o.ref == "string" && z.current && t && z.current.stateNode !== t) {
|
|
47672
47672
|
var m = D(z.current.type);
|
|
47673
47673
|
Me[m] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(z.current.type), o.ref), Me[m] = !0);
|
|
47674
47674
|
}
|
|
47675
47675
|
}
|
|
47676
|
-
function
|
|
47676
|
+
function Tr(o, t) {
|
|
47677
47677
|
{
|
|
47678
47678
|
var m = function() {
|
|
47679
47679
|
so || (so = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
@@ -47684,7 +47684,7 @@ function GG() {
|
|
|
47684
47684
|
});
|
|
47685
47685
|
}
|
|
47686
47686
|
}
|
|
47687
|
-
function
|
|
47687
|
+
function vr(o, t) {
|
|
47688
47688
|
{
|
|
47689
47689
|
var m = function() {
|
|
47690
47690
|
co || (co = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
@@ -47695,7 +47695,7 @@ function GG() {
|
|
|
47695
47695
|
});
|
|
47696
47696
|
}
|
|
47697
47697
|
}
|
|
47698
|
-
var
|
|
47698
|
+
var pr = function(o, t, m, s, P, v, A) {
|
|
47699
47699
|
var $ = {
|
|
47700
47700
|
// This tag allows us to uniquely identify this as a React Element
|
|
47701
47701
|
$$typeof: l,
|
|
@@ -47724,12 +47724,12 @@ function GG() {
|
|
|
47724
47724
|
value: P
|
|
47725
47725
|
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
47726
47726
|
};
|
|
47727
|
-
function
|
|
47727
|
+
function Gr(o, t, m, s, P) {
|
|
47728
47728
|
{
|
|
47729
47729
|
var v, A = {}, $ = null, b = null;
|
|
47730
|
-
m !== void 0 && (xo(m), $ = "" + m),
|
|
47730
|
+
m !== void 0 && (xo(m), $ = "" + m), Mr(t) && (xo(t.key), $ = "" + t.key), Ar(t) && (b = t.ref, Pr(t, P));
|
|
47731
47731
|
for (v in t)
|
|
47732
|
-
te.call(t, v) &&
|
|
47732
|
+
te.call(t, v) && !$r.hasOwnProperty(v) && (A[v] = t[v]);
|
|
47733
47733
|
if (o && o.defaultProps) {
|
|
47734
47734
|
var G = o.defaultProps;
|
|
47735
47735
|
for (v in G)
|
|
@@ -47737,9 +47737,9 @@ function GG() {
|
|
|
47737
47737
|
}
|
|
47738
47738
|
if ($ || b) {
|
|
47739
47739
|
var _ = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
47740
|
-
$ &&
|
|
47740
|
+
$ && Tr(A, _), b && vr(A, _);
|
|
47741
47741
|
}
|
|
47742
|
-
return
|
|
47742
|
+
return pr(o, $, b, P, s, z.current, A);
|
|
47743
47743
|
}
|
|
47744
47744
|
}
|
|
47745
47745
|
var Pe = n.ReactCurrentOwner, So = n.ReactDebugCurrentFrame;
|
|
@@ -47767,7 +47767,7 @@ Check the render method of \`` + o + "`.";
|
|
|
47767
47767
|
return "";
|
|
47768
47768
|
}
|
|
47769
47769
|
}
|
|
47770
|
-
function
|
|
47770
|
+
function _r(o) {
|
|
47771
47771
|
{
|
|
47772
47772
|
if (o !== void 0) {
|
|
47773
47773
|
var t = o.fileName.replace(/^.*[\\\/]/, ""), m = o.lineNumber;
|
|
@@ -47779,7 +47779,7 @@ Check your code at ` + t + ":" + m + ".";
|
|
|
47779
47779
|
}
|
|
47780
47780
|
}
|
|
47781
47781
|
var $o = {};
|
|
47782
|
-
function
|
|
47782
|
+
function Lr(o) {
|
|
47783
47783
|
{
|
|
47784
47784
|
var t = uo();
|
|
47785
47785
|
if (!t) {
|
|
@@ -47796,7 +47796,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
47796
47796
|
if (!o._store || o._store.validated || o.key != null)
|
|
47797
47797
|
return;
|
|
47798
47798
|
o._store.validated = !0;
|
|
47799
|
-
var m =
|
|
47799
|
+
var m = Lr(t);
|
|
47800
47800
|
if ($o[m])
|
|
47801
47801
|
return;
|
|
47802
47802
|
$o[m] = !0;
|
|
@@ -47823,7 +47823,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
47823
47823
|
}
|
|
47824
47824
|
}
|
|
47825
47825
|
}
|
|
47826
|
-
function
|
|
47826
|
+
function hr(o) {
|
|
47827
47827
|
{
|
|
47828
47828
|
var t = o.type;
|
|
47829
47829
|
if (t == null || typeof t == "string")
|
|
@@ -47839,7 +47839,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
47839
47839
|
return;
|
|
47840
47840
|
if (m) {
|
|
47841
47841
|
var s = D(t);
|
|
47842
|
-
|
|
47842
|
+
sr(m, o.props, "prop", s, o);
|
|
47843
47843
|
} else if (t.PropTypes !== void 0 && !Te) {
|
|
47844
47844
|
Te = !0;
|
|
47845
47845
|
var P = D(t);
|
|
@@ -47848,7 +47848,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
47848
47848
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
47849
47849
|
}
|
|
47850
47850
|
}
|
|
47851
|
-
function
|
|
47851
|
+
function br(o) {
|
|
47852
47852
|
{
|
|
47853
47853
|
for (var t = Object.keys(o.props), m = 0; m < t.length; m++) {
|
|
47854
47854
|
var s = t[m];
|
|
@@ -47862,16 +47862,16 @@ Check the top-level render call using <` + m + ">.");
|
|
|
47862
47862
|
}
|
|
47863
47863
|
function Po(o, t, m, s, P, v) {
|
|
47864
47864
|
{
|
|
47865
|
-
var A =
|
|
47865
|
+
var A = ar(o);
|
|
47866
47866
|
if (!A) {
|
|
47867
47867
|
var $ = "";
|
|
47868
47868
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
47869
|
-
var b =
|
|
47869
|
+
var b = _r(P);
|
|
47870
47870
|
b ? $ += b : $ += uo();
|
|
47871
47871
|
var G;
|
|
47872
47872
|
o === null ? G = "null" : Ae(o) ? G = "array" : o !== void 0 && o.$$typeof === l ? (G = "<" + (D(o.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : G = typeof o, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, $);
|
|
47873
47873
|
}
|
|
47874
|
-
var _ =
|
|
47874
|
+
var _ = Gr(o, t, m, P, v);
|
|
47875
47875
|
if (_ == null)
|
|
47876
47876
|
return _;
|
|
47877
47877
|
if (A) {
|
|
@@ -47887,17 +47887,17 @@ Check the top-level render call using <` + m + ">.");
|
|
|
47887
47887
|
else
|
|
47888
47888
|
Mo(N, o);
|
|
47889
47889
|
}
|
|
47890
|
-
return o === d ?
|
|
47890
|
+
return o === d ? br(_) : hr(_), _;
|
|
47891
47891
|
}
|
|
47892
47892
|
}
|
|
47893
|
-
function
|
|
47893
|
+
function Er(o, t, m) {
|
|
47894
47894
|
return Po(o, t, m, !0);
|
|
47895
47895
|
}
|
|
47896
|
-
function
|
|
47896
|
+
function Br(o, t, m) {
|
|
47897
47897
|
return Po(o, t, m, !1);
|
|
47898
47898
|
}
|
|
47899
|
-
var
|
|
47900
|
-
j.Fragment = d, j.jsx =
|
|
47899
|
+
var Cr = Br, Nr = Er;
|
|
47900
|
+
j.Fragment = d, j.jsx = Cr, j.jsxs = Nr;
|
|
47901
47901
|
}()), j;
|
|
47902
47902
|
}
|
|
47903
47903
|
var q = {};
|
|
@@ -47917,20 +47917,20 @@ function _G() {
|
|
|
47917
47917
|
Ko = 1;
|
|
47918
47918
|
var e = Qo, l = Symbol.for("react.element"), r = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
47919
47919
|
function g(x, c, u) {
|
|
47920
|
-
var M, T = {},
|
|
47921
|
-
u !== void 0 && (
|
|
47920
|
+
var M, T = {}, B = null, C = null;
|
|
47921
|
+
u !== void 0 && (B = "" + u), c.key !== void 0 && (B = "" + c.key), c.ref !== void 0 && (C = c.ref);
|
|
47922
47922
|
for (M in c)
|
|
47923
47923
|
d.call(c, M) && !i.hasOwnProperty(M) && (T[M] = c[M]);
|
|
47924
47924
|
if (x && x.defaultProps)
|
|
47925
47925
|
for (M in c = x.defaultProps, c)
|
|
47926
47926
|
T[M] === void 0 && (T[M] = c[M]);
|
|
47927
|
-
return { $$typeof: l, type: x, key:
|
|
47927
|
+
return { $$typeof: l, type: x, key: B, ref: C, props: T, _owner: a.current };
|
|
47928
47928
|
}
|
|
47929
47929
|
return q.Fragment = r, q.jsx = g, q.jsxs = g, q;
|
|
47930
47930
|
}
|
|
47931
47931
|
process.env.NODE_ENV === "production" ? Be.exports = _G() : Be.exports = GG();
|
|
47932
47932
|
var LG = Be.exports;
|
|
47933
|
-
const Wo = LG.jsx,
|
|
47933
|
+
const Wo = LG.jsx, or = Zo({}), rr = Zo({}), hG = or.Provider, bG = rr.Provider, OG = ({
|
|
47934
47934
|
children: e
|
|
47935
47935
|
}) => {
|
|
47936
47936
|
const l = vo(() => ({
|
|
@@ -47940,11 +47940,11 @@ const Wo = LG.jsx, rr = Zo({}), lr = Zo({}), hG = rr.Provider, bG = lr.Provider,
|
|
|
47940
47940
|
showMeBuildInGlobalEventActionList: Xr
|
|
47941
47941
|
}), [fo]), r = vo(() => ({
|
|
47942
47942
|
analyticsPlatform: f,
|
|
47943
|
-
appName:
|
|
47944
|
-
appSessionCookieName:
|
|
47945
|
-
eventActionPrefixList:
|
|
47946
|
-
analyticsGlobalEventActionList:
|
|
47947
|
-
}), [
|
|
47943
|
+
appName: E.appName,
|
|
47944
|
+
appSessionCookieName: E.appSessionCookieName,
|
|
47945
|
+
eventActionPrefixList: E.eventActionPrefixList,
|
|
47946
|
+
analyticsGlobalEventActionList: E.analyticsGlobalEventActionList
|
|
47947
|
+
}), [E, f]);
|
|
47948
47948
|
return /* @__PURE__ */ Wo(hG, {
|
|
47949
47949
|
value: r,
|
|
47950
47950
|
children: /* @__PURE__ */ Wo(bG, {
|
|
@@ -47953,19 +47953,19 @@ const Wo = LG.jsx, rr = Zo({}), lr = Zo({}), hG = rr.Provider, bG = lr.Provider,
|
|
|
47953
47953
|
})
|
|
47954
47954
|
});
|
|
47955
47955
|
}, IG = () => {
|
|
47956
|
-
const e = Yo(
|
|
47956
|
+
const e = Yo(or);
|
|
47957
47957
|
return O(!!e, "useAppState must be used within the AppProvider"), e;
|
|
47958
47958
|
}, yG = () => {
|
|
47959
|
-
const e = Yo(
|
|
47959
|
+
const e = Yo(rr);
|
|
47960
47960
|
return O(!!e, "useAppApi must be used within the AppProvider"), e;
|
|
47961
47961
|
};
|
|
47962
47962
|
export {
|
|
47963
|
-
|
|
47964
|
-
|
|
47963
|
+
rr as ContextApi,
|
|
47964
|
+
or as ContextState,
|
|
47965
47965
|
OG as ReactMarketingProvider,
|
|
47966
47966
|
f as analyticsPlatform,
|
|
47967
47967
|
BG as buildConfig,
|
|
47968
|
-
|
|
47968
|
+
E as config,
|
|
47969
47969
|
yr as showMeBuildInAnalyticsPlatform,
|
|
47970
47970
|
wr as showMeBuildInEventActionPrefixList,
|
|
47971
47971
|
Xr as showMeBuildInGlobalEventActionList,
|