@scrippsproduct/networks-ui-library 1.0.23 → 1.1.0-alpha.0
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/{Form.module-DbpB9u1l.mjs → Form.module-Cd8qH2rj.mjs} +1 -1
- package/dist/{ResultsTable.module-nTlGw9Lh.mjs → ResultsTable.module-B7M9y7hd.mjs} +1 -5
- package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/{add-FrnMPwwO.mjs → add-UWUc_nrO.mjs} +2 -2
- package/dist/{addMonths-BDf46gmB.mjs → addMonths-FatsTLmU.mjs} +1 -1
- package/dist/assets/AdBlock.css +1 -1
- package/dist/assets/ChannelSearch.css +1 -1
- package/dist/assets/DateNavigation.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/DeviceAndPlatformLists.css +1 -1
- package/dist/assets/EqualSizeFlexRow.css +1 -1
- package/dist/assets/EqualSizeGrid.css +1 -1
- package/dist/assets/FeaturedList.css +1 -1
- package/dist/assets/FindUs.css +1 -1
- package/dist/assets/Form.css +1 -1
- package/dist/assets/GridList.css +1 -1
- package/dist/assets/IONShowHero.css +1 -1
- package/dist/assets/ImageCard.css +1 -1
- package/dist/assets/LogoListItem.css +1 -1
- package/dist/assets/ModalContainer.css +1 -1
- package/dist/assets/PageHero.css +1 -1
- package/dist/assets/ProgramAirdate.css +1 -1
- package/dist/assets/PromotionBlock.css +1 -1
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/{chevron-left-DmvQntvu.mjs → chevron-left-DRvpaLmK.mjs} +1 -1
- package/dist/{chevron-right-CaAz6ISN.mjs → chevron-right-C8yCnmfx.mjs} +1 -1
- package/dist/components/AirDateFormatter/AirDateFormatter.js +3 -3
- package/dist/components/BasicGridModule/BasicGridModule.js +25 -25
- package/dist/components/Carousel/Carousel.js +8 -8
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.js +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.js +12 -12
- package/dist/components/Concat/Concat.js +1 -1
- package/dist/components/CtaBlock/CtaBlock.js +2 -2
- package/dist/components/CustomDataList/CustomDataList.js +44 -47
- package/dist/components/CustomSelect/CustomSelect.js +5 -5
- package/dist/components/DateNavigation/DateNavigation.js +7 -8
- package/dist/components/DatePicker/DatePicker.js +2527 -2452
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +1 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.js +27 -29
- package/dist/components/ErrorHandler/ErrorHandler.js +1 -1
- package/dist/components/FeaturedList/FeaturedList.js +7 -7
- package/dist/components/Figure/Figure.js +1 -1
- package/dist/components/FindUs/FindUs.js +6 -6
- package/dist/components/GenericList/GenericList.js +1 -1
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +6 -6
- package/dist/components/ImageCard/ImageCard.js +6 -6
- package/dist/components/ImageCard/ImageCardCore.js +1 -1
- package/dist/components/InfoPanel/InfoPanel.js +15 -16
- package/dist/components/InlineNavigation/InlineNavigation.js +6 -7
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/InstructionsList/InstructionsList.js +1 -1
- package/dist/components/Loading/Loading.js +5 -8
- package/dist/components/ModalContainer/ModalContainer.js +41 -44
- package/dist/components/Overlay/Overlay.js +17 -20
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.js +9 -9
- package/dist/components/PromotionBlock/PromotionBlock.js +15 -17
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +8 -8
- package/dist/components/ResultsTable/ResultsTable.js +7 -7
- package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +1 -1
- package/dist/components/ScheduleLayout/ScheduleLayout.js +2 -2
- package/dist/components/ScheduleList/ScheduleList.js +8 -8
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +10 -10
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +8 -8
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +8 -8
- package/dist/components/SectionedContent/SectionedContent.js +13 -16
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +24 -25
- package/dist/components/SocialLinks/SocialLinks.js +3 -3
- package/dist/components/SocialShareBlock/SocialShareBlock.js +8 -8
- package/dist/components/StringList/StringList.js +1 -1
- package/dist/components/TabContent/TabContent.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/UpcomingList/UpcomingList.js +8 -8
- package/dist/containers/NowPlayingContainer.js +10 -10
- package/dist/{facebook-osmzgL7R.mjs → facebook-HCcA1M1m.mjs} +1 -1
- package/dist/{format-plq8pBNY.mjs → format-YhWt2D8M.mjs} +78 -12
- package/dist/hooks/useGetSchedule.js +3 -3
- package/dist/hooks/useGetUpcoming.js +2 -2
- package/dist/{index-C8O1hjfH.mjs → index-0wieGV50.mjs} +0 -1
- package/dist/{index-DC7FmJPK.mjs → index-C-kn9Zhn.mjs} +7134 -7069
- package/dist/{index-CZzwT3Oj.mjs → index-DC2JJV3a.mjs} +246 -241
- package/dist/index-VjANCDXC.mjs +1873 -0
- package/dist/{sub-CkNH5u-l.mjs → sub-CoUmnfhv.mjs} +2 -2
- package/dist/{subMonths-nbU1oDhB.mjs → subMonths-BtMU5A9u.mjs} +1 -1
- package/dist/{triangle-D0AHL9lB.mjs → triangle-PcCcGXjr.mjs} +1 -1
- package/dist/utils/analytics.js +434 -423
- package/dist/utils/date-helpers.js +4 -4
- package/dist/utils/getFeaturedList.js +3 -3
- package/dist/utils/getOnNowProgram.js +3 -3
- package/dist/utils/getUpcomingPrograms.js +2 -2
- package/dist/{x-D8_C2o-U.mjs → x-C-QzJ-qD.mjs} +1 -1
- package/package.json +22 -24
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
- package/dist/index-B0ARwqly.mjs +0 -1818
- /package/dist/{networks-ui.d.ts → secl-ui.d.ts} +0 -0
package/dist/utils/analytics.js
CHANGED
|
@@ -1,449 +1,460 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
A
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
window.dataLayer.
|
|
14
|
-
|
|
1
|
+
import { g as $ } from "../_commonjsHelpers-C6fGbg64.mjs";
|
|
2
|
+
var E = {}, q = {}, T = {}, Q;
|
|
3
|
+
function ee() {
|
|
4
|
+
return Q || (Q = 1, (function(g) {
|
|
5
|
+
Object.defineProperty(g, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), g.default = void 0;
|
|
8
|
+
var h = function() {
|
|
9
|
+
for (var b = arguments.length, A = new Array(b), w = 0; w < b; w++)
|
|
10
|
+
A[w] = arguments[w];
|
|
11
|
+
if (typeof window < "u") {
|
|
12
|
+
var o;
|
|
13
|
+
typeof window.gtag > "u" && (window.dataLayer = window.dataLayer || [], window.gtag = function() {
|
|
14
|
+
window.dataLayer.push(arguments);
|
|
15
|
+
}), (o = window).gtag.apply(o, A);
|
|
16
|
+
}
|
|
17
|
+
}, y = h;
|
|
18
|
+
g.default = y;
|
|
19
|
+
})(T)), T;
|
|
20
|
+
}
|
|
21
|
+
var M = {}, U;
|
|
22
|
+
function te() {
|
|
23
|
+
return U || (U = 1, (function(g) {
|
|
24
|
+
Object.defineProperty(g, "__esModule", {
|
|
25
|
+
value: !0
|
|
26
|
+
}), g.default = w;
|
|
27
|
+
var h = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;
|
|
28
|
+
function y(o) {
|
|
29
|
+
return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function(u, c, l) {
|
|
30
|
+
return c > 0 && c + u.length !== l.length && u.search(h) > -1 && l.charAt(c - 2) !== ":" && (l.charAt(c + u.length) !== "-" || l.charAt(c - 1) === "-") && l.charAt(c - 1).search(/[^\s-]/) < 0 ? u.toLowerCase() : u.substr(1).search(/[A-Z]|\../) > -1 ? u : u.charAt(0).toUpperCase() + u.substr(1);
|
|
31
|
+
});
|
|
15
32
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})(R);
|
|
19
|
-
var F = {};
|
|
20
|
-
(function(g) {
|
|
21
|
-
Object.defineProperty(g, "__esModule", {
|
|
22
|
-
value: !0
|
|
23
|
-
}), g.default = w;
|
|
24
|
-
var h = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;
|
|
25
|
-
function v(o) {
|
|
26
|
-
return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function(u, c, l) {
|
|
27
|
-
return c > 0 && c + u.length !== l.length && u.search(h) > -1 && l.charAt(c - 2) !== ":" && (l.charAt(c + u.length) !== "-" || l.charAt(c - 1) === "-") && l.charAt(c - 1).search(/[^\s-]/) < 0 ? u.toLowerCase() : u.substr(1).search(/[A-Z]|\../) > -1 ? u : u.charAt(0).toUpperCase() + u.substr(1);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function S(o) {
|
|
31
|
-
return typeof o == "string" && o.indexOf("@") !== -1;
|
|
32
|
-
}
|
|
33
|
-
var b = "REDACTED (Potential Email Address)";
|
|
34
|
-
function A(o) {
|
|
35
|
-
return S(o) ? (console.warn("This arg looks like an email address, redacting."), b) : o;
|
|
36
|
-
}
|
|
37
|
-
function w() {
|
|
38
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, l = o || "";
|
|
39
|
-
return u && (l = v(o)), c && (l = A(l)), l;
|
|
40
|
-
}
|
|
41
|
-
})(F);
|
|
42
|
-
(function(g) {
|
|
43
|
-
Object.defineProperty(g, "__esModule", {
|
|
44
|
-
value: !0
|
|
45
|
-
}), g.default = g.GA4 = void 0;
|
|
46
|
-
var h = w(R), v = w(F), S = ["eventCategory", "eventAction", "eventLabel", "eventValue", "hitType"], b = ["title", "location"], A = ["page", "hitType"];
|
|
47
|
-
function w(a) {
|
|
48
|
-
return a && a.__esModule ? a : { default: a };
|
|
49
|
-
}
|
|
50
|
-
function o(a, e) {
|
|
51
|
-
if (a == null) return {};
|
|
52
|
-
var t = u(a, e), n, r;
|
|
53
|
-
if (Object.getOwnPropertySymbols) {
|
|
54
|
-
var i = Object.getOwnPropertySymbols(a);
|
|
55
|
-
for (r = 0; r < i.length; r++)
|
|
56
|
-
n = i[r], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
|
|
33
|
+
function S(o) {
|
|
34
|
+
return typeof o == "string" && o.indexOf("@") !== -1;
|
|
57
35
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
36
|
+
var b = "REDACTED (Potential Email Address)";
|
|
37
|
+
function A(o) {
|
|
38
|
+
return S(o) ? (console.warn("This arg looks like an email address, redacting."), b) : o;
|
|
39
|
+
}
|
|
40
|
+
function w() {
|
|
41
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, l = o || "";
|
|
42
|
+
return u && (l = y(o)), c && (l = A(l)), l;
|
|
43
|
+
}
|
|
44
|
+
})(M)), M;
|
|
45
|
+
}
|
|
46
|
+
var k;
|
|
47
|
+
function ne() {
|
|
48
|
+
return k || (k = 1, (function(g) {
|
|
49
|
+
Object.defineProperty(g, "__esModule", {
|
|
50
|
+
value: !0
|
|
51
|
+
}), g.default = g.GA4 = void 0;
|
|
52
|
+
var h = w(ee()), y = w(te()), S = ["eventCategory", "eventAction", "eventLabel", "eventValue", "hitType"], b = ["title", "location"], A = ["page", "hitType"];
|
|
53
|
+
function w(r) {
|
|
54
|
+
return r && r.__esModule ? r : { default: r };
|
|
55
|
+
}
|
|
56
|
+
function o(r, e) {
|
|
57
|
+
if (r == null) return {};
|
|
58
|
+
var t = u(r, e), n, a;
|
|
59
|
+
if (Object.getOwnPropertySymbols) {
|
|
60
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
61
|
+
for (a = 0; a < i.length; a++)
|
|
62
|
+
n = i[a], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(r, n) && (t[n] = r[n]);
|
|
63
|
+
}
|
|
64
|
+
return t;
|
|
65
|
+
}
|
|
66
|
+
function u(r, e) {
|
|
67
|
+
if (r == null) return {};
|
|
68
|
+
var t = {}, n = Object.keys(r), a, i;
|
|
69
|
+
for (i = 0; i < n.length; i++)
|
|
70
|
+
a = n[i], !(e.indexOf(a) >= 0) && (t[a] = r[a]);
|
|
71
|
+
return t;
|
|
72
|
+
}
|
|
73
|
+
function c(r) {
|
|
74
|
+
"@babel/helpers - typeof";
|
|
75
|
+
return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
76
|
+
return typeof e;
|
|
77
|
+
} : function(e) {
|
|
78
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
79
|
+
}, c(r);
|
|
80
|
+
}
|
|
81
|
+
function l(r) {
|
|
82
|
+
return P(r) || O(r) || L(r) || C();
|
|
83
|
+
}
|
|
84
|
+
function C() {
|
|
85
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
80
86
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
81
|
-
}
|
|
82
|
-
function O(a) {
|
|
83
|
-
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
84
|
-
}
|
|
85
|
-
function P(a) {
|
|
86
|
-
if (Array.isArray(a)) return G(a);
|
|
87
|
-
}
|
|
88
|
-
function E(a, e) {
|
|
89
|
-
var t = Object.keys(a);
|
|
90
|
-
if (Object.getOwnPropertySymbols) {
|
|
91
|
-
var n = Object.getOwnPropertySymbols(a);
|
|
92
|
-
e && (n = n.filter(function(r) {
|
|
93
|
-
return Object.getOwnPropertyDescriptor(a, r).enumerable;
|
|
94
|
-
})), t.push.apply(t, n);
|
|
95
87
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
function _(a) {
|
|
99
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
100
|
-
var t = arguments[e] != null ? arguments[e] : {};
|
|
101
|
-
e % 2 ? E(Object(t), !0).forEach(function(n) {
|
|
102
|
-
d(a, n, t[n]);
|
|
103
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : E(Object(t)).forEach(function(n) {
|
|
104
|
-
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
|
|
105
|
-
});
|
|
88
|
+
function O(r) {
|
|
89
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
106
90
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
91
|
+
function P(r) {
|
|
92
|
+
if (Array.isArray(r)) return I(r);
|
|
93
|
+
}
|
|
94
|
+
function D(r, e) {
|
|
95
|
+
var t = Object.keys(r);
|
|
96
|
+
if (Object.getOwnPropertySymbols) {
|
|
97
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
98
|
+
e && (n = n.filter(function(a) {
|
|
99
|
+
return Object.getOwnPropertyDescriptor(r, a).enumerable;
|
|
100
|
+
})), t.push.apply(t, n);
|
|
101
|
+
}
|
|
102
|
+
return t;
|
|
103
|
+
}
|
|
104
|
+
function _(r) {
|
|
105
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
106
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
107
|
+
e % 2 ? D(Object(t), !0).forEach(function(n) {
|
|
108
|
+
d(r, n, t[n]);
|
|
109
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : D(Object(t)).forEach(function(n) {
|
|
110
|
+
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return r;
|
|
114
|
+
}
|
|
115
|
+
function x(r, e) {
|
|
116
|
+
return K(r) || H(r, e) || L(r, e) || B();
|
|
117
|
+
}
|
|
118
|
+
function B() {
|
|
119
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
114
120
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
115
|
-
}
|
|
116
|
-
function T(a, e) {
|
|
117
|
-
if (a) {
|
|
118
|
-
if (typeof a == "string") return G(a, e);
|
|
119
|
-
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
120
|
-
if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
|
|
121
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return G(a, e);
|
|
122
121
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
122
|
+
function L(r, e) {
|
|
123
|
+
if (r) {
|
|
124
|
+
if (typeof r == "string") return I(r, e);
|
|
125
|
+
var t = Object.prototype.toString.call(r).slice(8, -1);
|
|
126
|
+
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
|
|
127
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return I(r, e);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function I(r, e) {
|
|
131
|
+
(e == null || e > r.length) && (e = r.length);
|
|
132
|
+
for (var t = 0, n = new Array(e); t < e; t++) n[t] = r[t];
|
|
133
|
+
return n;
|
|
134
|
+
}
|
|
135
|
+
function H(r, e) {
|
|
136
|
+
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
137
|
+
if (t != null) {
|
|
138
|
+
var n, a, i, f, s = [], p = !0, m = !1;
|
|
138
139
|
try {
|
|
139
|
-
if (
|
|
140
|
+
if (i = (t = t.call(r)).next, e !== 0) for (; !(p = (n = i.call(t)).done) && (s.push(n.value), s.length !== e); p = !0) ;
|
|
141
|
+
} catch (v) {
|
|
142
|
+
m = !0, a = v;
|
|
140
143
|
} finally {
|
|
141
|
-
|
|
144
|
+
try {
|
|
145
|
+
if (!p && t.return != null && (f = t.return(), Object(f) !== f)) return;
|
|
146
|
+
} finally {
|
|
147
|
+
if (m) throw a;
|
|
148
|
+
}
|
|
142
149
|
}
|
|
150
|
+
return s;
|
|
143
151
|
}
|
|
144
|
-
return s;
|
|
145
152
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (Array.isArray(a)) return a;
|
|
149
|
-
}
|
|
150
|
-
function B(a, e) {
|
|
151
|
-
if (!(a instanceof e))
|
|
152
|
-
throw new TypeError("Cannot call a class as a function");
|
|
153
|
-
}
|
|
154
|
-
function H(a, e) {
|
|
155
|
-
for (var t = 0; t < e.length; t++) {
|
|
156
|
-
var n = e[t];
|
|
157
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(a, M(n.key), n);
|
|
153
|
+
function K(r) {
|
|
154
|
+
if (Array.isArray(r)) return r;
|
|
158
155
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
function d(a, e, t) {
|
|
164
|
-
return e = M(e), e in a ? Object.defineProperty(a, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = t, a;
|
|
165
|
-
}
|
|
166
|
-
function M(a) {
|
|
167
|
-
var e = Z(a, "string");
|
|
168
|
-
return c(e) === "symbol" ? e : String(e);
|
|
169
|
-
}
|
|
170
|
-
function Z(a, e) {
|
|
171
|
-
if (c(a) !== "object" || a === null) return a;
|
|
172
|
-
var t = a[Symbol.toPrimitive];
|
|
173
|
-
if (t !== void 0) {
|
|
174
|
-
var n = t.call(a, e || "default");
|
|
175
|
-
if (c(n) !== "object") return n;
|
|
176
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
156
|
+
function Z(r, e) {
|
|
157
|
+
if (!(r instanceof e))
|
|
158
|
+
throw new TypeError("Cannot call a class as a function");
|
|
177
159
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
page: "page_path",
|
|
221
|
-
hitCallback: "event_callback"
|
|
222
|
-
}, r = Object.entries(t).reduce(function(i, f) {
|
|
223
|
-
var s = Q(f, 2), p = s[0], m = s[1];
|
|
224
|
-
return n[p] ? i[n[p]] = m : i[p] = m, i;
|
|
225
|
-
}, {});
|
|
226
|
-
return r;
|
|
227
|
-
}
|
|
228
|
-
}), d(this, "initialize", function(t) {
|
|
229
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
230
|
-
if (!t)
|
|
231
|
-
throw new Error("Require GA_MEASUREMENT_ID");
|
|
232
|
-
var r = typeof t == "string" ? [{
|
|
233
|
-
trackingId: t
|
|
234
|
-
}] : t;
|
|
235
|
-
e._currentMeasurementId = r[0].trackingId;
|
|
236
|
-
var i = n.gaOptions, f = n.gtagOptions, s = n.nonce, p = n.testMode, m = p === void 0 ? !1 : p, y = n.gtagUrl;
|
|
237
|
-
if (e._testMode = m, m || e._loadGA(e._currentMeasurementId, s, y), e.isInitialized || (e._gtag("js", /* @__PURE__ */ new Date()), r.forEach(function(I) {
|
|
238
|
-
var j = _(_(_({}, e._toGtagOptions(_(_({}, i), I.gaOptions))), f), I.gtagOptions);
|
|
239
|
-
Object.keys(j).length ? e._gtag("config", I.trackingId, j) : e._gtag("config", I.trackingId);
|
|
240
|
-
})), e.isInitialized = !0, !m) {
|
|
241
|
-
var z = l(e._queueGtag);
|
|
242
|
-
for (e._queueGtag = [], e._isQueuing = !1; z.length; ) {
|
|
243
|
-
var D = z.shift();
|
|
244
|
-
e._gtag.apply(e, l(D)), D[0] === "get" && (e._isQueuing = !0);
|
|
160
|
+
function J(r, e) {
|
|
161
|
+
for (var t = 0; t < e.length; t++) {
|
|
162
|
+
var n = e[t];
|
|
163
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, R(n.key), n);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function X(r, e, t) {
|
|
167
|
+
return e && J(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
168
|
+
}
|
|
169
|
+
function d(r, e, t) {
|
|
170
|
+
return e = R(e), e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
171
|
+
}
|
|
172
|
+
function R(r) {
|
|
173
|
+
var e = Y(r, "string");
|
|
174
|
+
return c(e) === "symbol" ? e : String(e);
|
|
175
|
+
}
|
|
176
|
+
function Y(r, e) {
|
|
177
|
+
if (c(r) !== "object" || r === null) return r;
|
|
178
|
+
var t = r[Symbol.toPrimitive];
|
|
179
|
+
if (t !== void 0) {
|
|
180
|
+
var n = t.call(r, e);
|
|
181
|
+
if (c(n) !== "object") return n;
|
|
182
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
183
|
+
}
|
|
184
|
+
return (e === "string" ? String : Number)(r);
|
|
185
|
+
}
|
|
186
|
+
var z = /* @__PURE__ */ (function() {
|
|
187
|
+
function r() {
|
|
188
|
+
var e = this;
|
|
189
|
+
Z(this, r), d(this, "reset", function() {
|
|
190
|
+
e.isInitialized = !1, e._testMode = !1, e._currentMeasurementId, e._hasLoadedGA = !1, e._isQueuing = !1, e._queueGtag = [];
|
|
191
|
+
}), d(this, "_gtag", function() {
|
|
192
|
+
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
193
|
+
n[a] = arguments[a];
|
|
194
|
+
e._testMode || e._isQueuing ? e._queueGtag.push(n) : h.default.apply(void 0, n);
|
|
195
|
+
}), d(this, "_loadGA", function(t, n) {
|
|
196
|
+
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "https://www.googletagmanager.com/gtag/js";
|
|
197
|
+
if (!(typeof window > "u" || typeof document > "u") && !e._hasLoadedGA) {
|
|
198
|
+
var i = document.createElement("script");
|
|
199
|
+
i.async = !0, i.src = "".concat(a, "?id=").concat(t), n && i.setAttribute("nonce", n), document.body.appendChild(i), window.dataLayer = window.dataLayer || [], window.gtag = function() {
|
|
200
|
+
window.dataLayer.push(arguments);
|
|
201
|
+
}, e._hasLoadedGA = !0;
|
|
245
202
|
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
var
|
|
286
|
-
e._gtag("
|
|
203
|
+
}), d(this, "_toGtagOptions", function(t) {
|
|
204
|
+
if (t) {
|
|
205
|
+
var n = {
|
|
206
|
+
// Old https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#cookieUpdate
|
|
207
|
+
// New https://developers.google.com/analytics/devguides/collection/gtagjs/cookies-user-id#cookie_update
|
|
208
|
+
cookieUpdate: "cookie_update",
|
|
209
|
+
cookieExpires: "cookie_expires",
|
|
210
|
+
cookieDomain: "cookie_domain",
|
|
211
|
+
cookieFlags: "cookie_flags",
|
|
212
|
+
// must be in set method?
|
|
213
|
+
userId: "user_id",
|
|
214
|
+
clientId: "client_id",
|
|
215
|
+
anonymizeIp: "anonymize_ip",
|
|
216
|
+
// https://support.google.com/analytics/answer/2853546?hl=en#zippy=%2Cin-this-article
|
|
217
|
+
contentGroup1: "content_group1",
|
|
218
|
+
contentGroup2: "content_group2",
|
|
219
|
+
contentGroup3: "content_group3",
|
|
220
|
+
contentGroup4: "content_group4",
|
|
221
|
+
contentGroup5: "content_group5",
|
|
222
|
+
// https://support.google.com/analytics/answer/9050852?hl=en
|
|
223
|
+
allowAdFeatures: "allow_google_signals",
|
|
224
|
+
allowAdPersonalizationSignals: "allow_ad_personalization_signals",
|
|
225
|
+
nonInteraction: "non_interaction",
|
|
226
|
+
page: "page_path",
|
|
227
|
+
hitCallback: "event_callback"
|
|
228
|
+
}, a = Object.entries(t).reduce(function(i, f) {
|
|
229
|
+
var s = x(f, 2), p = s[0], m = s[1];
|
|
230
|
+
return n[p] ? i[n[p]] = m : i[p] = m, i;
|
|
231
|
+
}, {});
|
|
232
|
+
return a;
|
|
233
|
+
}
|
|
234
|
+
}), d(this, "initialize", function(t) {
|
|
235
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
236
|
+
if (!t)
|
|
237
|
+
throw new Error("Require GA_MEASUREMENT_ID");
|
|
238
|
+
var a = typeof t == "string" ? [{
|
|
239
|
+
trackingId: t
|
|
240
|
+
}] : t;
|
|
241
|
+
e._currentMeasurementId = a[0].trackingId;
|
|
242
|
+
var i = n.gaOptions, f = n.gtagOptions, s = n.nonce, p = n.testMode, m = p === void 0 ? !1 : p, v = n.gtagUrl;
|
|
243
|
+
if (e._testMode = m, m || e._loadGA(e._currentMeasurementId, s, v), e.isInitialized || (e._gtag("js", /* @__PURE__ */ new Date()), a.forEach(function(G) {
|
|
244
|
+
var F = _(_(_({}, e._toGtagOptions(_(_({}, i), G.gaOptions))), f), G.gtagOptions);
|
|
245
|
+
Object.keys(F).length ? e._gtag("config", G.trackingId, F) : e._gtag("config", G.trackingId);
|
|
246
|
+
})), e.isInitialized = !0, !m) {
|
|
247
|
+
var j = l(e._queueGtag);
|
|
248
|
+
for (e._queueGtag = [], e._isQueuing = !1; j.length; ) {
|
|
249
|
+
var W = j.shift();
|
|
250
|
+
e._gtag.apply(e, l(W)), W[0] === "get" && (e._isQueuing = !0);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}), d(this, "set", function(t) {
|
|
254
|
+
if (!t) {
|
|
255
|
+
console.warn("`fieldsObject` is required in .set()");
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
if (c(t) !== "object") {
|
|
259
|
+
console.warn("Expected `fieldsObject` arg to be an Object");
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
Object.keys(t).length === 0 && console.warn("empty `fieldsObject` given to .set()"), e._gaCommand("set", t);
|
|
263
|
+
}), d(this, "_gaCommandSendEvent", function(t, n, a, i, f) {
|
|
264
|
+
e._gtag("event", n, _(_({
|
|
265
|
+
event_category: t,
|
|
266
|
+
event_label: a,
|
|
267
|
+
value: i
|
|
268
|
+
}, f && {
|
|
269
|
+
non_interaction: f.nonInteraction
|
|
270
|
+
}), e._toGtagOptions(f)));
|
|
271
|
+
}), d(this, "_gaCommandSendEventParameters", function() {
|
|
272
|
+
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
273
|
+
n[a] = arguments[a];
|
|
274
|
+
if (typeof n[0] == "string")
|
|
275
|
+
e._gaCommandSendEvent.apply(e, l(n.slice(1)));
|
|
276
|
+
else {
|
|
277
|
+
var i = n[0], f = i.eventCategory, s = i.eventAction, p = i.eventLabel, m = i.eventValue;
|
|
278
|
+
i.hitType;
|
|
279
|
+
var v = o(i, S);
|
|
280
|
+
e._gaCommandSendEvent(f, s, p, m, v);
|
|
281
|
+
}
|
|
282
|
+
}), d(this, "_gaCommandSendTiming", function(t, n, a, i) {
|
|
283
|
+
e._gtag("event", "timing_complete", {
|
|
284
|
+
name: n,
|
|
285
|
+
value: a,
|
|
286
|
+
event_category: t,
|
|
287
|
+
event_label: i
|
|
288
|
+
});
|
|
289
|
+
}), d(this, "_gaCommandSendPageview", function(t, n) {
|
|
290
|
+
if (n && Object.keys(n).length) {
|
|
291
|
+
var a = e._toGtagOptions(n), i = a.title, f = a.location, s = o(a, b);
|
|
292
|
+
e._gtag("event", "page_view", _(_(_(_({}, t && {
|
|
293
|
+
page_path: t
|
|
294
|
+
}), i && {
|
|
295
|
+
page_title: i
|
|
296
|
+
}), f && {
|
|
297
|
+
page_location: f
|
|
298
|
+
}), s));
|
|
299
|
+
} else t ? e._gtag("event", "page_view", {
|
|
287
300
|
page_path: t
|
|
288
|
-
})
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
i.hitType;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
for (i({
|
|
359
|
-
get: function(y) {
|
|
360
|
-
return y === "clientId" ? f : y === "trackingId" ? e._currentMeasurementId : y === "apiVersion" ? "1" : void 0;
|
|
301
|
+
}) : e._gtag("event", "page_view");
|
|
302
|
+
}), d(this, "_gaCommandSendPageviewParameters", function() {
|
|
303
|
+
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
304
|
+
n[a] = arguments[a];
|
|
305
|
+
if (typeof n[0] == "string")
|
|
306
|
+
e._gaCommandSendPageview.apply(e, l(n.slice(1)));
|
|
307
|
+
else {
|
|
308
|
+
var i = n[0], f = i.page;
|
|
309
|
+
i.hitType;
|
|
310
|
+
var s = o(i, A);
|
|
311
|
+
e._gaCommandSendPageview(f, s);
|
|
312
|
+
}
|
|
313
|
+
}), d(this, "_gaCommandSend", function() {
|
|
314
|
+
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
315
|
+
n[a] = arguments[a];
|
|
316
|
+
var i = typeof n[0] == "string" ? n[0] : n[0].hitType;
|
|
317
|
+
switch (i) {
|
|
318
|
+
case "event":
|
|
319
|
+
e._gaCommandSendEventParameters.apply(e, n);
|
|
320
|
+
break;
|
|
321
|
+
case "pageview":
|
|
322
|
+
e._gaCommandSendPageviewParameters.apply(e, n);
|
|
323
|
+
break;
|
|
324
|
+
case "timing":
|
|
325
|
+
e._gaCommandSendTiming.apply(e, l(n.slice(1)));
|
|
326
|
+
break;
|
|
327
|
+
case "screenview":
|
|
328
|
+
case "transaction":
|
|
329
|
+
case "item":
|
|
330
|
+
case "social":
|
|
331
|
+
case "exception":
|
|
332
|
+
console.warn("Unsupported send command: ".concat(i));
|
|
333
|
+
break;
|
|
334
|
+
default:
|
|
335
|
+
console.warn("Send command doesn't exist: ".concat(i));
|
|
336
|
+
}
|
|
337
|
+
}), d(this, "_gaCommandSet", function() {
|
|
338
|
+
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
339
|
+
n[a] = arguments[a];
|
|
340
|
+
typeof n[0] == "string" && (n[0] = d({}, n[0], n[1])), e._gtag("set", e._toGtagOptions(n[0]));
|
|
341
|
+
}), d(this, "_gaCommand", function(t) {
|
|
342
|
+
for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
343
|
+
a[i - 1] = arguments[i];
|
|
344
|
+
switch (t) {
|
|
345
|
+
case "send":
|
|
346
|
+
e._gaCommandSend.apply(e, a);
|
|
347
|
+
break;
|
|
348
|
+
case "set":
|
|
349
|
+
e._gaCommandSet.apply(e, a);
|
|
350
|
+
break;
|
|
351
|
+
default:
|
|
352
|
+
console.warn("Command doesn't exist: ".concat(t));
|
|
353
|
+
}
|
|
354
|
+
}), d(this, "ga", function() {
|
|
355
|
+
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
356
|
+
n[a] = arguments[a];
|
|
357
|
+
if (typeof n[0] == "string")
|
|
358
|
+
e._gaCommand.apply(e, n);
|
|
359
|
+
else {
|
|
360
|
+
var i = n[0];
|
|
361
|
+
e._gtag("get", e._currentMeasurementId, "client_id", function(f) {
|
|
362
|
+
e._isQueuing = !1;
|
|
363
|
+
var s = e._queueGtag;
|
|
364
|
+
for (i({
|
|
365
|
+
get: function(v) {
|
|
366
|
+
return v === "clientId" ? f : v === "trackingId" ? e._currentMeasurementId : v === "apiVersion" ? "1" : void 0;
|
|
367
|
+
}
|
|
368
|
+
}); s.length; ) {
|
|
369
|
+
var p = s.shift();
|
|
370
|
+
e._gtag.apply(e, l(p));
|
|
361
371
|
}
|
|
362
|
-
})
|
|
363
|
-
|
|
364
|
-
|
|
372
|
+
}), e._isQueuing = !0;
|
|
373
|
+
}
|
|
374
|
+
return e.ga;
|
|
375
|
+
}), d(this, "event", function(t, n) {
|
|
376
|
+
if (typeof t == "string")
|
|
377
|
+
e._gtag("event", t, e._toGtagOptions(n));
|
|
378
|
+
else {
|
|
379
|
+
var a = t.action, i = t.category, f = t.label, s = t.value, p = t.nonInteraction, m = t.transport;
|
|
380
|
+
if (!i || !a) {
|
|
381
|
+
console.warn("args.category AND args.action are required in event()");
|
|
382
|
+
return;
|
|
365
383
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
else {
|
|
373
|
-
var r = t.action, i = t.category, f = t.label, s = t.value, p = t.nonInteraction, m = t.transport;
|
|
374
|
-
if (!i || !r) {
|
|
375
|
-
console.warn("args.category AND args.action are required in event()");
|
|
376
|
-
return;
|
|
384
|
+
var v = {
|
|
385
|
+
hitType: "event",
|
|
386
|
+
eventCategory: (0, y.default)(i),
|
|
387
|
+
eventAction: (0, y.default)(a)
|
|
388
|
+
};
|
|
389
|
+
f && (v.eventLabel = (0, y.default)(f)), typeof s < "u" && (typeof s != "number" ? console.warn("Expected `args.value` arg to be a Number.") : v.eventValue = s), typeof p < "u" && (typeof p != "boolean" ? console.warn("`args.nonInteraction` must be a boolean.") : v.nonInteraction = p), typeof m < "u" && (typeof m != "string" ? console.warn("`args.transport` must be a string.") : (["beacon", "xhr", "image"].indexOf(m) === -1 && console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"), v.transport = m)), e._gaCommand("send", v);
|
|
377
390
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
391
|
+
}), d(this, "send", function(t) {
|
|
392
|
+
e._gaCommand("send", t);
|
|
393
|
+
}), this.reset();
|
|
394
|
+
}
|
|
395
|
+
return X(r, [{
|
|
396
|
+
key: "gtag",
|
|
397
|
+
value: function() {
|
|
398
|
+
this._gtag.apply(this, arguments);
|
|
384
399
|
}
|
|
385
|
-
}),
|
|
386
|
-
|
|
387
|
-
|
|
400
|
+
}]), r;
|
|
401
|
+
})();
|
|
402
|
+
g.GA4 = z;
|
|
403
|
+
var N = new z();
|
|
404
|
+
g.default = N;
|
|
405
|
+
})(q)), q;
|
|
406
|
+
}
|
|
407
|
+
var V;
|
|
408
|
+
function re() {
|
|
409
|
+
return V || (V = 1, (function(g) {
|
|
410
|
+
function h(o) {
|
|
411
|
+
"@babel/helpers - typeof";
|
|
412
|
+
return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
|
|
413
|
+
return typeof u;
|
|
414
|
+
} : function(u) {
|
|
415
|
+
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
|
|
416
|
+
}, h(o);
|
|
388
417
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
var c = S(u);
|
|
426
|
-
if (c && c.has(o))
|
|
427
|
-
return c.get(o);
|
|
428
|
-
var l = {}, C = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
429
|
-
for (var O in o)
|
|
430
|
-
if (O !== "default" && Object.prototype.hasOwnProperty.call(o, O)) {
|
|
431
|
-
var P = C ? Object.getOwnPropertyDescriptor(o, O) : null;
|
|
432
|
-
P && (P.get || P.set) ? Object.defineProperty(l, O, P) : l[O] = o[O];
|
|
433
|
-
}
|
|
434
|
-
return l.default = o, c && c.set(o, l), l;
|
|
435
|
-
}
|
|
436
|
-
var A = v.GA4;
|
|
437
|
-
g.ReactGAImplementation = A;
|
|
438
|
-
var w = v.default;
|
|
439
|
-
g.default = w;
|
|
440
|
-
})(q);
|
|
441
|
-
const X = /* @__PURE__ */ J(q), N = (g, h = "local", v) => {
|
|
442
|
-
if (!v) {
|
|
418
|
+
Object.defineProperty(g, "__esModule", {
|
|
419
|
+
value: !0
|
|
420
|
+
}), g.default = g.ReactGAImplementation = void 0;
|
|
421
|
+
var y = b(ne());
|
|
422
|
+
function S(o) {
|
|
423
|
+
if (typeof WeakMap != "function") return null;
|
|
424
|
+
var u = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap();
|
|
425
|
+
return (S = function(C) {
|
|
426
|
+
return C ? c : u;
|
|
427
|
+
})(o);
|
|
428
|
+
}
|
|
429
|
+
function b(o, u) {
|
|
430
|
+
if (o && o.__esModule)
|
|
431
|
+
return o;
|
|
432
|
+
if (o === null || h(o) !== "object" && typeof o != "function")
|
|
433
|
+
return { default: o };
|
|
434
|
+
var c = S(u);
|
|
435
|
+
if (c && c.has(o))
|
|
436
|
+
return c.get(o);
|
|
437
|
+
var l = {}, C = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
438
|
+
for (var O in o)
|
|
439
|
+
if (O !== "default" && Object.prototype.hasOwnProperty.call(o, O)) {
|
|
440
|
+
var P = C ? Object.getOwnPropertyDescriptor(o, O) : null;
|
|
441
|
+
P && (P.get || P.set) ? Object.defineProperty(l, O, P) : l[O] = o[O];
|
|
442
|
+
}
|
|
443
|
+
return l.default = o, c && c.set(o, l), l;
|
|
444
|
+
}
|
|
445
|
+
var A = y.GA4;
|
|
446
|
+
g.ReactGAImplementation = A;
|
|
447
|
+
var w = y.default;
|
|
448
|
+
g.default = w;
|
|
449
|
+
})(E)), E;
|
|
450
|
+
}
|
|
451
|
+
var ae = re();
|
|
452
|
+
const ie = /* @__PURE__ */ $(ae), ue = (g, h = "local", y) => {
|
|
453
|
+
if (!y) {
|
|
443
454
|
console.warn("GA_MEASUREMENT_ID is not set. Google Analytics will not be initialized.");
|
|
444
455
|
return;
|
|
445
456
|
}
|
|
446
|
-
h === "staging" || h === "production" ?
|
|
457
|
+
h === "staging" || h === "production" ? ie.initialize(y, {
|
|
447
458
|
// Use gaOptions to send custom dimensions with every GA event except initial_page_view.
|
|
448
459
|
// gtagOptions could be used to send custom dimensions to initial_page_view only, if desired.
|
|
449
460
|
gaOptions: {
|
|
@@ -454,5 +465,5 @@ const X = /* @__PURE__ */ J(q), N = (g, h = "local", v) => {
|
|
|
454
465
|
}) : console.info("** Note: Google Analytics is only initialized in staging and production environments. **");
|
|
455
466
|
};
|
|
456
467
|
export {
|
|
457
|
-
|
|
468
|
+
ue as initializeAnalytics
|
|
458
469
|
};
|