@pelcro/react-pelcro-js 3.23.0-beta.8 → 3.23.0-beta.9
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/index.cjs.js +43 -43
- package/dist/index.esm.js +43 -43
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8936,7 +8936,7 @@ var ReactGA4 = unwrapExports(dist);
|
|
|
8936
8936
|
dist.ReactGAImplementation;
|
|
8937
8937
|
|
|
8938
8938
|
var _window$d, _window$Pelcro$d, _window$Pelcro$uiSett$d;
|
|
8939
|
-
const ReactGA$
|
|
8939
|
+
const ReactGA$d = (_window$d = window) !== null && _window$d !== void 0 && (_window$Pelcro$d = _window$d.Pelcro) !== null && _window$Pelcro$d !== void 0 && (_window$Pelcro$uiSett$d = _window$Pelcro$d.uiSettings) !== null && _window$Pelcro$uiSett$d !== void 0 && _window$Pelcro$uiSett$d.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
8940
8940
|
class PelcroActions {
|
|
8941
8941
|
constructor(storeSetter, storeGetter) {
|
|
8942
8942
|
var _this = this;
|
|
@@ -9128,7 +9128,7 @@ class PelcroActions {
|
|
|
9128
9128
|
return console.warn("You are already logged out.");
|
|
9129
9129
|
}
|
|
9130
9130
|
window.Pelcro.user.logout();
|
|
9131
|
-
ReactGA$
|
|
9131
|
+
ReactGA$d === null || ReactGA$d === void 0 ? void 0 : (_ReactGA$event = ReactGA$d.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$d, {
|
|
9132
9132
|
category: "ACTIONS",
|
|
9133
9133
|
action: "Logged out",
|
|
9134
9134
|
nonInteraction: true
|
|
@@ -9358,7 +9358,7 @@ if (process.env.NODE_ENV === "development") {
|
|
|
9358
9358
|
}
|
|
9359
9359
|
|
|
9360
9360
|
var _window$c, _window$Pelcro$c, _window$Pelcro$uiSett$c;
|
|
9361
|
-
const ReactGA$
|
|
9361
|
+
const ReactGA$c = (_window$c = window) !== null && _window$c !== void 0 && (_window$Pelcro$c = _window$c.Pelcro) !== null && _window$Pelcro$c !== void 0 && (_window$Pelcro$uiSett$c = _window$Pelcro$c.uiSettings) !== null && _window$Pelcro$uiSett$c !== void 0 && _window$Pelcro$uiSett$c.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
9362
9362
|
|
|
9363
9363
|
/**
|
|
9364
9364
|
* List of zero-decimal currencies.
|
|
@@ -9563,16 +9563,16 @@ const trackSubscriptionOnGA = () => {
|
|
|
9563
9563
|
return;
|
|
9564
9564
|
}
|
|
9565
9565
|
const currencyCode = (_window$Pelcro$user$r5 = (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.currency) !== null && _window$Pelcro$user$r5 !== void 0 ? _window$Pelcro$user$r5 : plan.currency;
|
|
9566
|
-
ReactGA$
|
|
9566
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$set = ReactGA$c.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA$c, {
|
|
9567
9567
|
currencyCode: currencyCode
|
|
9568
9568
|
});
|
|
9569
|
-
ReactGA$
|
|
9569
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$c.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
|
|
9570
9570
|
id: lastSubscriptionId,
|
|
9571
9571
|
affiliation: "Pelcro",
|
|
9572
9572
|
revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9573
9573
|
coupon: couponCode
|
|
9574
9574
|
});
|
|
9575
|
-
ReactGA$
|
|
9575
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA$c.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
|
|
9576
9576
|
id: lastSubscriptionId,
|
|
9577
9577
|
name: product.name,
|
|
9578
9578
|
category: product.description,
|
|
@@ -9580,8 +9580,8 @@ const trackSubscriptionOnGA = () => {
|
|
|
9580
9580
|
price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9581
9581
|
quantity: 1
|
|
9582
9582
|
});
|
|
9583
|
-
ReactGA$
|
|
9584
|
-
ReactGA$
|
|
9583
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA$c.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
|
|
9584
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$event = ReactGA$c.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$c, {
|
|
9585
9585
|
category: "ACTIONS",
|
|
9586
9586
|
action: "Subscribed",
|
|
9587
9587
|
nonInteraction: true
|
|
@@ -10048,7 +10048,7 @@ function _classPrivateFieldGet(receiver, privateMap) {
|
|
|
10048
10048
|
var _window$b, _window$Pelcro$b, _window$Pelcro$uiSett$b;
|
|
10049
10049
|
function _classPrivateFieldInitSpec$2(obj, privateMap, value) { _checkPrivateRedeclaration$2(obj, privateMap); privateMap.set(obj, value); }
|
|
10050
10050
|
function _checkPrivateRedeclaration$2(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
10051
|
-
const ReactGA$
|
|
10051
|
+
const ReactGA$b = (_window$b = window) !== null && _window$b !== void 0 && (_window$Pelcro$b = _window$b.Pelcro) !== null && _window$Pelcro$b !== void 0 && (_window$Pelcro$uiSett$b = _window$Pelcro$b.uiSettings) !== null && _window$Pelcro$uiSett$b !== void 0 && _window$Pelcro$uiSett$b.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
10052
10052
|
var _isAlreadySaved = /*#__PURE__*/new WeakMap();
|
|
10053
10053
|
var _markButtonAsLoading = /*#__PURE__*/new WeakMap();
|
|
10054
10054
|
var _removeLoadingState = /*#__PURE__*/new WeakMap();
|
|
@@ -10171,7 +10171,7 @@ class SaveToMetadataButtonClass {
|
|
|
10171
10171
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10172
10172
|
}
|
|
10173
10173
|
_classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
|
|
10174
|
-
ReactGA$
|
|
10174
|
+
ReactGA$b === null || ReactGA$b === void 0 ? void 0 : (_ReactGA$event = ReactGA$b.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$b, {
|
|
10175
10175
|
category: "ACTIONS",
|
|
10176
10176
|
action: "Save/Follow",
|
|
10177
10177
|
label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
|
|
@@ -10203,7 +10203,7 @@ class SaveToMetadataButtonClass {
|
|
|
10203
10203
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10204
10204
|
}
|
|
10205
10205
|
_classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
|
|
10206
|
-
ReactGA$
|
|
10206
|
+
ReactGA$b === null || ReactGA$b === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$b.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$b, {
|
|
10207
10207
|
category: "ACTIONS",
|
|
10208
10208
|
action: "Unsave/Unfollow",
|
|
10209
10209
|
label: title
|
|
@@ -11731,7 +11731,7 @@ function getSiteCardProcessor() {
|
|
|
11731
11731
|
}
|
|
11732
11732
|
|
|
11733
11733
|
var _window$a, _window$Pelcro$a, _window$Pelcro$uiSett$a;
|
|
11734
|
-
const ReactGA$
|
|
11734
|
+
const ReactGA$a = (_window$a = window) !== null && _window$a !== void 0 && (_window$Pelcro$a = _window$a.Pelcro) !== null && _window$Pelcro$a !== void 0 && (_window$Pelcro$uiSett$a = _window$Pelcro$a.uiSettings) !== null && _window$Pelcro$uiSett$a !== void 0 && _window$Pelcro$uiSett$a.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
11735
11735
|
|
|
11736
11736
|
/**
|
|
11737
11737
|
* @typedef {Object} OptionsType
|
|
@@ -11856,12 +11856,12 @@ const initSecuritySdk = () => {
|
|
|
11856
11856
|
};
|
|
11857
11857
|
const initGATracking = () => {
|
|
11858
11858
|
var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
|
|
11859
|
-
ReactGA$
|
|
11860
|
-
ReactGA$
|
|
11859
|
+
ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$initialize = ReactGA$a.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA$a, window.Pelcro.site.read().google_analytics_id);
|
|
11860
|
+
ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$a.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
|
|
11861
11861
|
};
|
|
11862
11862
|
const dispatchModalDisplayEvents = modalName => {
|
|
11863
11863
|
var _ReactGA$event, _modalName$replace, _modalName$replace2;
|
|
11864
|
-
ReactGA$
|
|
11864
|
+
ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$event = ReactGA$a.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$a, {
|
|
11865
11865
|
category: "VIEWS",
|
|
11866
11866
|
action: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ")} viewed`,
|
|
11867
11867
|
nonInteraction: true
|
|
@@ -12793,9 +12793,9 @@ const LoginContainer = _ref => {
|
|
|
12793
12793
|
});
|
|
12794
12794
|
onFailure(err);
|
|
12795
12795
|
} else {
|
|
12796
|
-
var _ReactGA
|
|
12796
|
+
var _ReactGA$event;
|
|
12797
12797
|
onSuccess(res);
|
|
12798
|
-
|
|
12798
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
12799
12799
|
category: "ACTIONS",
|
|
12800
12800
|
action: "Logged in",
|
|
12801
12801
|
nonInteraction: true
|
|
@@ -13186,12 +13186,12 @@ function ConfirmPassword(_ref) {
|
|
|
13186
13186
|
}
|
|
13187
13187
|
|
|
13188
13188
|
var _window$9, _window$Pelcro$9, _window$Pelcro$uiSett$9;
|
|
13189
|
-
const ReactGA$
|
|
13189
|
+
const ReactGA$9 = (_window$9 = window) !== null && _window$9 !== void 0 && (_window$Pelcro$9 = _window$9.Pelcro) !== null && _window$Pelcro$9 !== void 0 && (_window$Pelcro$uiSett$9 = _window$Pelcro$9.uiSettings) !== null && _window$Pelcro$uiSett$9 !== void 0 && _window$Pelcro$uiSett$9.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
13190
13190
|
const Logout = props => {
|
|
13191
13191
|
const handleLogout = () => {
|
|
13192
13192
|
var _ReactGA$event;
|
|
13193
13193
|
window.Pelcro.user.logout();
|
|
13194
|
-
ReactGA$
|
|
13194
|
+
ReactGA$9 === null || ReactGA$9 === void 0 ? void 0 : (_ReactGA$event = ReactGA$9.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$9, {
|
|
13195
13195
|
category: "ACTIONS",
|
|
13196
13196
|
action: "Logged out",
|
|
13197
13197
|
nonInteraction: true
|
|
@@ -14754,7 +14754,7 @@ const RegisterCompany = props => {
|
|
|
14754
14754
|
};
|
|
14755
14755
|
|
|
14756
14756
|
var _window$8, _window$Pelcro$8, _window$Pelcro$uiSett$8;
|
|
14757
|
-
const ReactGA$
|
|
14757
|
+
const ReactGA$8 = (_window$8 = window) !== null && _window$8 !== void 0 && (_window$Pelcro$8 = _window$8.Pelcro) !== null && _window$Pelcro$8 !== void 0 && (_window$Pelcro$uiSett$8 = _window$Pelcro$8.uiSettings) !== null && _window$Pelcro$uiSett$8 !== void 0 && _window$Pelcro$uiSett$8.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
14758
14758
|
|
|
14759
14759
|
/**
|
|
14760
14760
|
*
|
|
@@ -14781,7 +14781,7 @@ function RegisterModal(props) {
|
|
|
14781
14781
|
};
|
|
14782
14782
|
const handleAfterRegistrationLogic = () => {
|
|
14783
14783
|
var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
14784
|
-
ReactGA$
|
|
14784
|
+
ReactGA$8 === null || ReactGA$8 === void 0 ? void 0 : (_ReactGA$event = ReactGA$8.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$8, {
|
|
14785
14785
|
category: "ACTIONS",
|
|
14786
14786
|
action: "Registered",
|
|
14787
14787
|
nonInteraction: true
|
|
@@ -14873,7 +14873,7 @@ function Radio(_ref) {
|
|
|
14873
14873
|
}
|
|
14874
14874
|
|
|
14875
14875
|
var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
|
|
14876
|
-
const ReactGA$
|
|
14876
|
+
const ReactGA$7 = (_window$7 = window) !== null && _window$7 !== void 0 && (_window$Pelcro$7 = _window$7.Pelcro) !== null && _window$Pelcro$7 !== void 0 && (_window$Pelcro$uiSett$7 = _window$Pelcro$7.uiSettings) !== null && _window$Pelcro$uiSett$7 !== void 0 && _window$Pelcro$uiSett$7.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
14877
14877
|
|
|
14878
14878
|
/**
|
|
14879
14879
|
*
|
|
@@ -15222,14 +15222,14 @@ class SelectModal extends React.Component {
|
|
|
15222
15222
|
} = this.props;
|
|
15223
15223
|
if (this.state.mode === "product") {
|
|
15224
15224
|
var _ReactGA$event;
|
|
15225
|
-
ReactGA$
|
|
15225
|
+
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event = ReactGA$7.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$7, {
|
|
15226
15226
|
category: "VIEWS",
|
|
15227
15227
|
action: "Product Modal Viewed",
|
|
15228
15228
|
nonInteraction: true
|
|
15229
15229
|
});
|
|
15230
15230
|
} else if (this.state.mode === "plan") {
|
|
15231
15231
|
var _ReactGA$event2;
|
|
15232
|
-
ReactGA$
|
|
15232
|
+
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$7.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$7, {
|
|
15233
15233
|
category: "VIEWS",
|
|
15234
15234
|
action: "Plan Modal Viewed",
|
|
15235
15235
|
nonInteraction: true
|
|
@@ -21094,7 +21094,7 @@ const SubscriptionRenewView = _ref => {
|
|
|
21094
21094
|
};
|
|
21095
21095
|
|
|
21096
21096
|
var _window$6, _window$Pelcro$6, _window$Pelcro$uiSett$6;
|
|
21097
|
-
const ReactGA$
|
|
21097
|
+
const ReactGA$6 = (_window$6 = window) !== null && _window$6 !== void 0 && (_window$Pelcro$6 = _window$6.Pelcro) !== null && _window$Pelcro$6 !== void 0 && (_window$Pelcro$uiSett$6 = _window$Pelcro$6.uiSettings) !== null && _window$Pelcro$uiSett$6 !== void 0 && _window$Pelcro$uiSett$6.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21098
21098
|
|
|
21099
21099
|
/**
|
|
21100
21100
|
*
|
|
@@ -21111,7 +21111,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21111
21111
|
const onSuccess = res => {
|
|
21112
21112
|
var _otherProps$onSuccess, _ReactGA$event;
|
|
21113
21113
|
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
|
|
21114
|
-
ReactGA$
|
|
21114
|
+
ReactGA$6 === null || ReactGA$6 === void 0 ? void 0 : (_ReactGA$event = ReactGA$6.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$6, {
|
|
21115
21115
|
category: "ACTIONS",
|
|
21116
21116
|
action: "Renewed",
|
|
21117
21117
|
nonInteraction: true
|
|
@@ -21121,7 +21121,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21121
21121
|
const onGiftRenewalSuccess = () => {
|
|
21122
21122
|
var _otherProps$onGiftRen, _ReactGA$event2;
|
|
21123
21123
|
(_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
|
|
21124
|
-
ReactGA$
|
|
21124
|
+
ReactGA$6 === null || ReactGA$6 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$6.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$6, {
|
|
21125
21125
|
category: "ACTIONS",
|
|
21126
21126
|
action: "Renewed Gift",
|
|
21127
21127
|
nonInteraction: true
|
|
@@ -21296,7 +21296,7 @@ function SvgSubscription(props) {
|
|
|
21296
21296
|
}
|
|
21297
21297
|
|
|
21298
21298
|
var _window$5, _window$Pelcro$5, _window$Pelcro$uiSett$5;
|
|
21299
|
-
const ReactGA$
|
|
21299
|
+
const ReactGA$5 = (_window$5 = window) !== null && _window$5 !== void 0 && (_window$Pelcro$5 = _window$5.Pelcro) !== null && _window$Pelcro$5 !== void 0 && (_window$Pelcro$uiSett$5 = _window$Pelcro$5.uiSettings) !== null && _window$Pelcro$uiSett$5 !== void 0 && _window$Pelcro$uiSett$5.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21300
21300
|
const SubscriptionCancelNowButton = _ref => {
|
|
21301
21301
|
let {
|
|
21302
21302
|
subscription,
|
|
@@ -21328,7 +21328,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21328
21328
|
if (err) {
|
|
21329
21329
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21330
21330
|
}
|
|
21331
|
-
ReactGA$
|
|
21331
|
+
ReactGA$5 === null || ReactGA$5 === void 0 ? void 0 : (_ReactGA$event = ReactGA$5.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$5, {
|
|
21332
21332
|
category: "ACTIONS",
|
|
21333
21333
|
action: "Canceled",
|
|
21334
21334
|
nonInteraction: true
|
|
@@ -21368,7 +21368,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21368
21368
|
};
|
|
21369
21369
|
|
|
21370
21370
|
var _window$4, _window$Pelcro$4, _window$Pelcro$uiSett$4;
|
|
21371
|
-
const ReactGA$
|
|
21371
|
+
const ReactGA$4 = (_window$4 = window) !== null && _window$4 !== void 0 && (_window$Pelcro$4 = _window$4.Pelcro) !== null && _window$Pelcro$4 !== void 0 && (_window$Pelcro$uiSett$4 = _window$Pelcro$4.uiSettings) !== null && _window$Pelcro$uiSett$4 !== void 0 && _window$Pelcro$uiSett$4.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21372
21372
|
const SubscriptionCancelLaterButton = _ref => {
|
|
21373
21373
|
let {
|
|
21374
21374
|
subscription,
|
|
@@ -21400,7 +21400,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
21400
21400
|
if (err) {
|
|
21401
21401
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21402
21402
|
}
|
|
21403
|
-
ReactGA$
|
|
21403
|
+
ReactGA$4 === null || ReactGA$4 === void 0 ? void 0 : (_ReactGA$event = ReactGA$4.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$4, {
|
|
21404
21404
|
category: "ACTIONS",
|
|
21405
21405
|
action: "Canceled",
|
|
21406
21406
|
nonInteraction: true
|
|
@@ -21610,7 +21610,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
21610
21610
|
};
|
|
21611
21611
|
|
|
21612
21612
|
var _window$3, _window$Pelcro$3, _window$Pelcro$uiSett$3;
|
|
21613
|
-
const ReactGA$
|
|
21613
|
+
const ReactGA$3 = (_window$3 = window) !== null && _window$3 !== void 0 && (_window$Pelcro$3 = _window$3.Pelcro) !== null && _window$Pelcro$3 !== void 0 && (_window$Pelcro$uiSett$3 = _window$Pelcro$3.uiSettings) !== null && _window$Pelcro$uiSett$3 !== void 0 && _window$Pelcro$uiSett$3.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21614
21614
|
const SubscriptionSuspendButton = _ref => {
|
|
21615
21615
|
let {
|
|
21616
21616
|
subscription,
|
|
@@ -21641,7 +21641,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21641
21641
|
if (err) {
|
|
21642
21642
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21643
21643
|
}
|
|
21644
|
-
ReactGA$
|
|
21644
|
+
ReactGA$3 === null || ReactGA$3 === void 0 ? void 0 : (_ReactGA$event = ReactGA$3.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$3, {
|
|
21645
21645
|
category: "ACTIONS",
|
|
21646
21646
|
action: "Suspended",
|
|
21647
21647
|
nonInteraction: true
|
|
@@ -24491,7 +24491,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24491
24491
|
});
|
|
24492
24492
|
onFailure(err);
|
|
24493
24493
|
} else {
|
|
24494
|
-
var _ReactGA
|
|
24494
|
+
var _ReactGA$event;
|
|
24495
24495
|
dispatch({
|
|
24496
24496
|
type: SHOW_ALERT,
|
|
24497
24497
|
payload: {
|
|
@@ -24500,7 +24500,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24500
24500
|
}
|
|
24501
24501
|
});
|
|
24502
24502
|
onSuccess(res);
|
|
24503
|
-
|
|
24503
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
24504
24504
|
category: "ACTIONS",
|
|
24505
24505
|
action: "Updated address",
|
|
24506
24506
|
nonInteraction: true
|
|
@@ -25029,12 +25029,12 @@ function PaymentMethodUpdateView(props) {
|
|
|
25029
25029
|
}
|
|
25030
25030
|
|
|
25031
25031
|
var _window$2, _window$Pelcro$2, _window$Pelcro$uiSett$2;
|
|
25032
|
-
const ReactGA$
|
|
25032
|
+
const ReactGA$2 = (_window$2 = window) !== null && _window$2 !== void 0 && (_window$Pelcro$2 = _window$2.Pelcro) !== null && _window$Pelcro$2 !== void 0 && (_window$Pelcro$uiSett$2 = _window$Pelcro$2.uiSettings) !== null && _window$Pelcro$uiSett$2 !== void 0 && _window$Pelcro$uiSett$2.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
25033
25033
|
const PaymentMethodUpdateModal = props => {
|
|
25034
25034
|
const onSuccess = res => {
|
|
25035
25035
|
var _props$onSuccess, _ReactGA$event;
|
|
25036
25036
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
25037
|
-
ReactGA$
|
|
25037
|
+
ReactGA$2 === null || ReactGA$2 === void 0 ? void 0 : (_ReactGA$event = ReactGA$2.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$2, {
|
|
25038
25038
|
category: "ACTIONS",
|
|
25039
25039
|
action: "Updated payment card",
|
|
25040
25040
|
nonInteraction: true
|
|
@@ -28925,7 +28925,7 @@ const OrderItems = _ref => {
|
|
|
28925
28925
|
};
|
|
28926
28926
|
|
|
28927
28927
|
var _window$1, _window$Pelcro$1, _window$Pelcro$uiSett$1;
|
|
28928
|
-
const ReactGA$
|
|
28928
|
+
const ReactGA$1 = (_window$1 = window) !== null && _window$1 !== void 0 && (_window$Pelcro$1 = _window$1.Pelcro) !== null && _window$Pelcro$1 !== void 0 && (_window$Pelcro$uiSett$1 = _window$Pelcro$1.uiSettings) !== null && _window$Pelcro$uiSett$1 !== void 0 && _window$Pelcro$uiSett$1.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
28929
28929
|
const SavedItemsMenu = () => {
|
|
28930
28930
|
const {
|
|
28931
28931
|
t
|
|
@@ -28990,7 +28990,7 @@ const SavedItems = _ref3 => {
|
|
|
28990
28990
|
return;
|
|
28991
28991
|
}
|
|
28992
28992
|
setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
|
|
28993
|
-
ReactGA$
|
|
28993
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
28994
28994
|
category: "ACTIONS",
|
|
28995
28995
|
action: "Unsave/Unfollow",
|
|
28996
28996
|
label: title
|
|
@@ -29948,7 +29948,7 @@ function getMemberShipStatus(status) {
|
|
|
29948
29948
|
}
|
|
29949
29949
|
|
|
29950
29950
|
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29951
|
-
const ReactGA
|
|
29951
|
+
const ReactGA = (_window = window) !== null && _window !== void 0 && (_window$Pelcro = _window.Pelcro) !== null && _window$Pelcro !== void 0 && (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) !== null && _window$Pelcro$uiSett !== void 0 && _window$Pelcro$uiSett.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
29952
29952
|
const SUB_MENUS = {
|
|
29953
29953
|
PROFILE: "profile",
|
|
29954
29954
|
SUBSCRIPTIONS: "subscriptions",
|
|
@@ -30013,7 +30013,7 @@ class Dashboard extends React.Component {
|
|
|
30013
30013
|
window.Pelcro.insight.track("Modal Displayed", {
|
|
30014
30014
|
name: "dashboard"
|
|
30015
30015
|
});
|
|
30016
|
-
ReactGA
|
|
30016
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
30017
30017
|
category: "VIEWS",
|
|
30018
30018
|
action: "Dashboard Modal Viewed",
|
|
30019
30019
|
nonInteraction: true
|
|
@@ -30049,7 +30049,7 @@ class Dashboard extends React.Component {
|
|
|
30049
30049
|
if (err) {
|
|
30050
30050
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30051
30051
|
}
|
|
30052
|
-
ReactGA
|
|
30052
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
30053
30053
|
category: "ACTIONS",
|
|
30054
30054
|
action: "Canceled",
|
|
30055
30055
|
nonInteraction: true
|
|
@@ -30067,7 +30067,7 @@ class Dashboard extends React.Component {
|
|
|
30067
30067
|
if (err) {
|
|
30068
30068
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30069
30069
|
}
|
|
30070
|
-
ReactGA
|
|
30070
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
|
|
30071
30071
|
category: "ACTIONS",
|
|
30072
30072
|
action: "UnSuspended",
|
|
30073
30073
|
nonInteraction: true
|
package/dist/index.esm.js
CHANGED
|
@@ -8906,7 +8906,7 @@ var ReactGA4 = unwrapExports(dist);
|
|
|
8906
8906
|
dist.ReactGAImplementation;
|
|
8907
8907
|
|
|
8908
8908
|
var _window$d, _window$Pelcro$d, _window$Pelcro$uiSett$d;
|
|
8909
|
-
const ReactGA$
|
|
8909
|
+
const ReactGA$d = (_window$d = window) !== null && _window$d !== void 0 && (_window$Pelcro$d = _window$d.Pelcro) !== null && _window$Pelcro$d !== void 0 && (_window$Pelcro$uiSett$d = _window$Pelcro$d.uiSettings) !== null && _window$Pelcro$uiSett$d !== void 0 && _window$Pelcro$uiSett$d.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
8910
8910
|
class PelcroActions {
|
|
8911
8911
|
constructor(storeSetter, storeGetter) {
|
|
8912
8912
|
var _this = this;
|
|
@@ -9098,7 +9098,7 @@ class PelcroActions {
|
|
|
9098
9098
|
return console.warn("You are already logged out.");
|
|
9099
9099
|
}
|
|
9100
9100
|
window.Pelcro.user.logout();
|
|
9101
|
-
ReactGA$
|
|
9101
|
+
ReactGA$d === null || ReactGA$d === void 0 ? void 0 : (_ReactGA$event = ReactGA$d.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$d, {
|
|
9102
9102
|
category: "ACTIONS",
|
|
9103
9103
|
action: "Logged out",
|
|
9104
9104
|
nonInteraction: true
|
|
@@ -9328,7 +9328,7 @@ if (process.env.NODE_ENV === "development") {
|
|
|
9328
9328
|
}
|
|
9329
9329
|
|
|
9330
9330
|
var _window$c, _window$Pelcro$c, _window$Pelcro$uiSett$c;
|
|
9331
|
-
const ReactGA$
|
|
9331
|
+
const ReactGA$c = (_window$c = window) !== null && _window$c !== void 0 && (_window$Pelcro$c = _window$c.Pelcro) !== null && _window$Pelcro$c !== void 0 && (_window$Pelcro$uiSett$c = _window$Pelcro$c.uiSettings) !== null && _window$Pelcro$uiSett$c !== void 0 && _window$Pelcro$uiSett$c.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
9332
9332
|
|
|
9333
9333
|
/**
|
|
9334
9334
|
* List of zero-decimal currencies.
|
|
@@ -9533,16 +9533,16 @@ const trackSubscriptionOnGA = () => {
|
|
|
9533
9533
|
return;
|
|
9534
9534
|
}
|
|
9535
9535
|
const currencyCode = (_window$Pelcro$user$r5 = (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.currency) !== null && _window$Pelcro$user$r5 !== void 0 ? _window$Pelcro$user$r5 : plan.currency;
|
|
9536
|
-
ReactGA$
|
|
9536
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$set = ReactGA$c.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA$c, {
|
|
9537
9537
|
currencyCode: currencyCode
|
|
9538
9538
|
});
|
|
9539
|
-
ReactGA$
|
|
9539
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$c.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
|
|
9540
9540
|
id: lastSubscriptionId,
|
|
9541
9541
|
affiliation: "Pelcro",
|
|
9542
9542
|
revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9543
9543
|
coupon: couponCode
|
|
9544
9544
|
});
|
|
9545
|
-
ReactGA$
|
|
9545
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA$c.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
|
|
9546
9546
|
id: lastSubscriptionId,
|
|
9547
9547
|
name: product.name,
|
|
9548
9548
|
category: product.description,
|
|
@@ -9550,8 +9550,8 @@ const trackSubscriptionOnGA = () => {
|
|
|
9550
9550
|
price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
|
|
9551
9551
|
quantity: 1
|
|
9552
9552
|
});
|
|
9553
|
-
ReactGA$
|
|
9554
|
-
ReactGA$
|
|
9553
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA$c.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
|
|
9554
|
+
ReactGA$c === null || ReactGA$c === void 0 ? void 0 : (_ReactGA$event = ReactGA$c.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$c, {
|
|
9555
9555
|
category: "ACTIONS",
|
|
9556
9556
|
action: "Subscribed",
|
|
9557
9557
|
nonInteraction: true
|
|
@@ -10018,7 +10018,7 @@ function _classPrivateFieldGet(receiver, privateMap) {
|
|
|
10018
10018
|
var _window$b, _window$Pelcro$b, _window$Pelcro$uiSett$b;
|
|
10019
10019
|
function _classPrivateFieldInitSpec$2(obj, privateMap, value) { _checkPrivateRedeclaration$2(obj, privateMap); privateMap.set(obj, value); }
|
|
10020
10020
|
function _checkPrivateRedeclaration$2(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
10021
|
-
const ReactGA$
|
|
10021
|
+
const ReactGA$b = (_window$b = window) !== null && _window$b !== void 0 && (_window$Pelcro$b = _window$b.Pelcro) !== null && _window$Pelcro$b !== void 0 && (_window$Pelcro$uiSett$b = _window$Pelcro$b.uiSettings) !== null && _window$Pelcro$uiSett$b !== void 0 && _window$Pelcro$uiSett$b.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
10022
10022
|
var _isAlreadySaved = /*#__PURE__*/new WeakMap();
|
|
10023
10023
|
var _markButtonAsLoading = /*#__PURE__*/new WeakMap();
|
|
10024
10024
|
var _removeLoadingState = /*#__PURE__*/new WeakMap();
|
|
@@ -10141,7 +10141,7 @@ class SaveToMetadataButtonClass {
|
|
|
10141
10141
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10142
10142
|
}
|
|
10143
10143
|
_classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
|
|
10144
|
-
ReactGA$
|
|
10144
|
+
ReactGA$b === null || ReactGA$b === void 0 ? void 0 : (_ReactGA$event = ReactGA$b.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$b, {
|
|
10145
10145
|
category: "ACTIONS",
|
|
10146
10146
|
action: "Save/Follow",
|
|
10147
10147
|
label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
|
|
@@ -10173,7 +10173,7 @@ class SaveToMetadataButtonClass {
|
|
|
10173
10173
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10174
10174
|
}
|
|
10175
10175
|
_classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
|
|
10176
|
-
ReactGA$
|
|
10176
|
+
ReactGA$b === null || ReactGA$b === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$b.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$b, {
|
|
10177
10177
|
category: "ACTIONS",
|
|
10178
10178
|
action: "Unsave/Unfollow",
|
|
10179
10179
|
label: title
|
|
@@ -11701,7 +11701,7 @@ function getSiteCardProcessor() {
|
|
|
11701
11701
|
}
|
|
11702
11702
|
|
|
11703
11703
|
var _window$a, _window$Pelcro$a, _window$Pelcro$uiSett$a;
|
|
11704
|
-
const ReactGA$
|
|
11704
|
+
const ReactGA$a = (_window$a = window) !== null && _window$a !== void 0 && (_window$Pelcro$a = _window$a.Pelcro) !== null && _window$Pelcro$a !== void 0 && (_window$Pelcro$uiSett$a = _window$Pelcro$a.uiSettings) !== null && _window$Pelcro$uiSett$a !== void 0 && _window$Pelcro$uiSett$a.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
11705
11705
|
|
|
11706
11706
|
/**
|
|
11707
11707
|
* @typedef {Object} OptionsType
|
|
@@ -11826,12 +11826,12 @@ const initSecuritySdk = () => {
|
|
|
11826
11826
|
};
|
|
11827
11827
|
const initGATracking = () => {
|
|
11828
11828
|
var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
|
|
11829
|
-
ReactGA$
|
|
11830
|
-
ReactGA$
|
|
11829
|
+
ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$initialize = ReactGA$a.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA$a, window.Pelcro.site.read().google_analytics_id);
|
|
11830
|
+
ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$a.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
|
|
11831
11831
|
};
|
|
11832
11832
|
const dispatchModalDisplayEvents = modalName => {
|
|
11833
11833
|
var _ReactGA$event, _modalName$replace, _modalName$replace2;
|
|
11834
|
-
ReactGA$
|
|
11834
|
+
ReactGA$a === null || ReactGA$a === void 0 ? void 0 : (_ReactGA$event = ReactGA$a.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$a, {
|
|
11835
11835
|
category: "VIEWS",
|
|
11836
11836
|
action: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ")} viewed`,
|
|
11837
11837
|
nonInteraction: true
|
|
@@ -12763,9 +12763,9 @@ const LoginContainer = _ref => {
|
|
|
12763
12763
|
});
|
|
12764
12764
|
onFailure(err);
|
|
12765
12765
|
} else {
|
|
12766
|
-
var _ReactGA
|
|
12766
|
+
var _ReactGA$event;
|
|
12767
12767
|
onSuccess(res);
|
|
12768
|
-
|
|
12768
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
12769
12769
|
category: "ACTIONS",
|
|
12770
12770
|
action: "Logged in",
|
|
12771
12771
|
nonInteraction: true
|
|
@@ -13156,12 +13156,12 @@ function ConfirmPassword(_ref) {
|
|
|
13156
13156
|
}
|
|
13157
13157
|
|
|
13158
13158
|
var _window$9, _window$Pelcro$9, _window$Pelcro$uiSett$9;
|
|
13159
|
-
const ReactGA$
|
|
13159
|
+
const ReactGA$9 = (_window$9 = window) !== null && _window$9 !== void 0 && (_window$Pelcro$9 = _window$9.Pelcro) !== null && _window$Pelcro$9 !== void 0 && (_window$Pelcro$uiSett$9 = _window$Pelcro$9.uiSettings) !== null && _window$Pelcro$uiSett$9 !== void 0 && _window$Pelcro$uiSett$9.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
13160
13160
|
const Logout = props => {
|
|
13161
13161
|
const handleLogout = () => {
|
|
13162
13162
|
var _ReactGA$event;
|
|
13163
13163
|
window.Pelcro.user.logout();
|
|
13164
|
-
ReactGA$
|
|
13164
|
+
ReactGA$9 === null || ReactGA$9 === void 0 ? void 0 : (_ReactGA$event = ReactGA$9.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$9, {
|
|
13165
13165
|
category: "ACTIONS",
|
|
13166
13166
|
action: "Logged out",
|
|
13167
13167
|
nonInteraction: true
|
|
@@ -14724,7 +14724,7 @@ const RegisterCompany = props => {
|
|
|
14724
14724
|
};
|
|
14725
14725
|
|
|
14726
14726
|
var _window$8, _window$Pelcro$8, _window$Pelcro$uiSett$8;
|
|
14727
|
-
const ReactGA$
|
|
14727
|
+
const ReactGA$8 = (_window$8 = window) !== null && _window$8 !== void 0 && (_window$Pelcro$8 = _window$8.Pelcro) !== null && _window$Pelcro$8 !== void 0 && (_window$Pelcro$uiSett$8 = _window$Pelcro$8.uiSettings) !== null && _window$Pelcro$uiSett$8 !== void 0 && _window$Pelcro$uiSett$8.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
14728
14728
|
|
|
14729
14729
|
/**
|
|
14730
14730
|
*
|
|
@@ -14751,7 +14751,7 @@ function RegisterModal(props) {
|
|
|
14751
14751
|
};
|
|
14752
14752
|
const handleAfterRegistrationLogic = () => {
|
|
14753
14753
|
var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
14754
|
-
ReactGA$
|
|
14754
|
+
ReactGA$8 === null || ReactGA$8 === void 0 ? void 0 : (_ReactGA$event = ReactGA$8.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$8, {
|
|
14755
14755
|
category: "ACTIONS",
|
|
14756
14756
|
action: "Registered",
|
|
14757
14757
|
nonInteraction: true
|
|
@@ -14843,7 +14843,7 @@ function Radio(_ref) {
|
|
|
14843
14843
|
}
|
|
14844
14844
|
|
|
14845
14845
|
var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
|
|
14846
|
-
const ReactGA$
|
|
14846
|
+
const ReactGA$7 = (_window$7 = window) !== null && _window$7 !== void 0 && (_window$Pelcro$7 = _window$7.Pelcro) !== null && _window$Pelcro$7 !== void 0 && (_window$Pelcro$uiSett$7 = _window$Pelcro$7.uiSettings) !== null && _window$Pelcro$uiSett$7 !== void 0 && _window$Pelcro$uiSett$7.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
14847
14847
|
|
|
14848
14848
|
/**
|
|
14849
14849
|
*
|
|
@@ -15192,14 +15192,14 @@ class SelectModal extends Component {
|
|
|
15192
15192
|
} = this.props;
|
|
15193
15193
|
if (this.state.mode === "product") {
|
|
15194
15194
|
var _ReactGA$event;
|
|
15195
|
-
ReactGA$
|
|
15195
|
+
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event = ReactGA$7.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$7, {
|
|
15196
15196
|
category: "VIEWS",
|
|
15197
15197
|
action: "Product Modal Viewed",
|
|
15198
15198
|
nonInteraction: true
|
|
15199
15199
|
});
|
|
15200
15200
|
} else if (this.state.mode === "plan") {
|
|
15201
15201
|
var _ReactGA$event2;
|
|
15202
|
-
ReactGA$
|
|
15202
|
+
ReactGA$7 === null || ReactGA$7 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$7.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$7, {
|
|
15203
15203
|
category: "VIEWS",
|
|
15204
15204
|
action: "Plan Modal Viewed",
|
|
15205
15205
|
nonInteraction: true
|
|
@@ -21064,7 +21064,7 @@ const SubscriptionRenewView = _ref => {
|
|
|
21064
21064
|
};
|
|
21065
21065
|
|
|
21066
21066
|
var _window$6, _window$Pelcro$6, _window$Pelcro$uiSett$6;
|
|
21067
|
-
const ReactGA$
|
|
21067
|
+
const ReactGA$6 = (_window$6 = window) !== null && _window$6 !== void 0 && (_window$Pelcro$6 = _window$6.Pelcro) !== null && _window$Pelcro$6 !== void 0 && (_window$Pelcro$uiSett$6 = _window$Pelcro$6.uiSettings) !== null && _window$Pelcro$uiSett$6 !== void 0 && _window$Pelcro$uiSett$6.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21068
21068
|
|
|
21069
21069
|
/**
|
|
21070
21070
|
*
|
|
@@ -21081,7 +21081,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21081
21081
|
const onSuccess = res => {
|
|
21082
21082
|
var _otherProps$onSuccess, _ReactGA$event;
|
|
21083
21083
|
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
|
|
21084
|
-
ReactGA$
|
|
21084
|
+
ReactGA$6 === null || ReactGA$6 === void 0 ? void 0 : (_ReactGA$event = ReactGA$6.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$6, {
|
|
21085
21085
|
category: "ACTIONS",
|
|
21086
21086
|
action: "Renewed",
|
|
21087
21087
|
nonInteraction: true
|
|
@@ -21091,7 +21091,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21091
21091
|
const onGiftRenewalSuccess = () => {
|
|
21092
21092
|
var _otherProps$onGiftRen, _ReactGA$event2;
|
|
21093
21093
|
(_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
|
|
21094
|
-
ReactGA$
|
|
21094
|
+
ReactGA$6 === null || ReactGA$6 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$6.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$6, {
|
|
21095
21095
|
category: "ACTIONS",
|
|
21096
21096
|
action: "Renewed Gift",
|
|
21097
21097
|
nonInteraction: true
|
|
@@ -21266,7 +21266,7 @@ function SvgSubscription(props) {
|
|
|
21266
21266
|
}
|
|
21267
21267
|
|
|
21268
21268
|
var _window$5, _window$Pelcro$5, _window$Pelcro$uiSett$5;
|
|
21269
|
-
const ReactGA$
|
|
21269
|
+
const ReactGA$5 = (_window$5 = window) !== null && _window$5 !== void 0 && (_window$Pelcro$5 = _window$5.Pelcro) !== null && _window$Pelcro$5 !== void 0 && (_window$Pelcro$uiSett$5 = _window$Pelcro$5.uiSettings) !== null && _window$Pelcro$uiSett$5 !== void 0 && _window$Pelcro$uiSett$5.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21270
21270
|
const SubscriptionCancelNowButton = _ref => {
|
|
21271
21271
|
let {
|
|
21272
21272
|
subscription,
|
|
@@ -21298,7 +21298,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21298
21298
|
if (err) {
|
|
21299
21299
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21300
21300
|
}
|
|
21301
|
-
ReactGA$
|
|
21301
|
+
ReactGA$5 === null || ReactGA$5 === void 0 ? void 0 : (_ReactGA$event = ReactGA$5.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$5, {
|
|
21302
21302
|
category: "ACTIONS",
|
|
21303
21303
|
action: "Canceled",
|
|
21304
21304
|
nonInteraction: true
|
|
@@ -21338,7 +21338,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21338
21338
|
};
|
|
21339
21339
|
|
|
21340
21340
|
var _window$4, _window$Pelcro$4, _window$Pelcro$uiSett$4;
|
|
21341
|
-
const ReactGA$
|
|
21341
|
+
const ReactGA$4 = (_window$4 = window) !== null && _window$4 !== void 0 && (_window$Pelcro$4 = _window$4.Pelcro) !== null && _window$Pelcro$4 !== void 0 && (_window$Pelcro$uiSett$4 = _window$Pelcro$4.uiSettings) !== null && _window$Pelcro$uiSett$4 !== void 0 && _window$Pelcro$uiSett$4.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21342
21342
|
const SubscriptionCancelLaterButton = _ref => {
|
|
21343
21343
|
let {
|
|
21344
21344
|
subscription,
|
|
@@ -21370,7 +21370,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
21370
21370
|
if (err) {
|
|
21371
21371
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21372
21372
|
}
|
|
21373
|
-
ReactGA$
|
|
21373
|
+
ReactGA$4 === null || ReactGA$4 === void 0 ? void 0 : (_ReactGA$event = ReactGA$4.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$4, {
|
|
21374
21374
|
category: "ACTIONS",
|
|
21375
21375
|
action: "Canceled",
|
|
21376
21376
|
nonInteraction: true
|
|
@@ -21580,7 +21580,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
21580
21580
|
};
|
|
21581
21581
|
|
|
21582
21582
|
var _window$3, _window$Pelcro$3, _window$Pelcro$uiSett$3;
|
|
21583
|
-
const ReactGA$
|
|
21583
|
+
const ReactGA$3 = (_window$3 = window) !== null && _window$3 !== void 0 && (_window$Pelcro$3 = _window$3.Pelcro) !== null && _window$Pelcro$3 !== void 0 && (_window$Pelcro$uiSett$3 = _window$Pelcro$3.uiSettings) !== null && _window$Pelcro$uiSett$3 !== void 0 && _window$Pelcro$uiSett$3.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
21584
21584
|
const SubscriptionSuspendButton = _ref => {
|
|
21585
21585
|
let {
|
|
21586
21586
|
subscription,
|
|
@@ -21611,7 +21611,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21611
21611
|
if (err) {
|
|
21612
21612
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21613
21613
|
}
|
|
21614
|
-
ReactGA$
|
|
21614
|
+
ReactGA$3 === null || ReactGA$3 === void 0 ? void 0 : (_ReactGA$event = ReactGA$3.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$3, {
|
|
21615
21615
|
category: "ACTIONS",
|
|
21616
21616
|
action: "Suspended",
|
|
21617
21617
|
nonInteraction: true
|
|
@@ -24461,7 +24461,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24461
24461
|
});
|
|
24462
24462
|
onFailure(err);
|
|
24463
24463
|
} else {
|
|
24464
|
-
var _ReactGA
|
|
24464
|
+
var _ReactGA$event;
|
|
24465
24465
|
dispatch({
|
|
24466
24466
|
type: SHOW_ALERT,
|
|
24467
24467
|
payload: {
|
|
@@ -24470,7 +24470,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24470
24470
|
}
|
|
24471
24471
|
});
|
|
24472
24472
|
onSuccess(res);
|
|
24473
|
-
|
|
24473
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
24474
24474
|
category: "ACTIONS",
|
|
24475
24475
|
action: "Updated address",
|
|
24476
24476
|
nonInteraction: true
|
|
@@ -24999,12 +24999,12 @@ function PaymentMethodUpdateView(props) {
|
|
|
24999
24999
|
}
|
|
25000
25000
|
|
|
25001
25001
|
var _window$2, _window$Pelcro$2, _window$Pelcro$uiSett$2;
|
|
25002
|
-
const ReactGA$
|
|
25002
|
+
const ReactGA$2 = (_window$2 = window) !== null && _window$2 !== void 0 && (_window$Pelcro$2 = _window$2.Pelcro) !== null && _window$Pelcro$2 !== void 0 && (_window$Pelcro$uiSett$2 = _window$Pelcro$2.uiSettings) !== null && _window$Pelcro$uiSett$2 !== void 0 && _window$Pelcro$uiSett$2.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
25003
25003
|
const PaymentMethodUpdateModal = props => {
|
|
25004
25004
|
const onSuccess = res => {
|
|
25005
25005
|
var _props$onSuccess, _ReactGA$event;
|
|
25006
25006
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
25007
|
-
ReactGA$
|
|
25007
|
+
ReactGA$2 === null || ReactGA$2 === void 0 ? void 0 : (_ReactGA$event = ReactGA$2.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$2, {
|
|
25008
25008
|
category: "ACTIONS",
|
|
25009
25009
|
action: "Updated payment card",
|
|
25010
25010
|
nonInteraction: true
|
|
@@ -28895,7 +28895,7 @@ const OrderItems = _ref => {
|
|
|
28895
28895
|
};
|
|
28896
28896
|
|
|
28897
28897
|
var _window$1, _window$Pelcro$1, _window$Pelcro$uiSett$1;
|
|
28898
|
-
const ReactGA$
|
|
28898
|
+
const ReactGA$1 = (_window$1 = window) !== null && _window$1 !== void 0 && (_window$Pelcro$1 = _window$1.Pelcro) !== null && _window$Pelcro$1 !== void 0 && (_window$Pelcro$uiSett$1 = _window$Pelcro$1.uiSettings) !== null && _window$Pelcro$uiSett$1 !== void 0 && _window$Pelcro$uiSett$1.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
28899
28899
|
const SavedItemsMenu = () => {
|
|
28900
28900
|
const {
|
|
28901
28901
|
t
|
|
@@ -28960,7 +28960,7 @@ const SavedItems = _ref3 => {
|
|
|
28960
28960
|
return;
|
|
28961
28961
|
}
|
|
28962
28962
|
setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
|
|
28963
|
-
ReactGA$
|
|
28963
|
+
ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
|
|
28964
28964
|
category: "ACTIONS",
|
|
28965
28965
|
action: "Unsave/Unfollow",
|
|
28966
28966
|
label: title
|
|
@@ -29918,7 +29918,7 @@ function getMemberShipStatus(status) {
|
|
|
29918
29918
|
}
|
|
29919
29919
|
|
|
29920
29920
|
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29921
|
-
const ReactGA
|
|
29921
|
+
const ReactGA = (_window = window) !== null && _window !== void 0 && (_window$Pelcro = _window.Pelcro) !== null && _window$Pelcro !== void 0 && (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) !== null && _window$Pelcro$uiSett !== void 0 && _window$Pelcro$uiSett.enableReactGA4 ? ReactGA4 : ReactGA1;
|
|
29922
29922
|
const SUB_MENUS = {
|
|
29923
29923
|
PROFILE: "profile",
|
|
29924
29924
|
SUBSCRIPTIONS: "subscriptions",
|
|
@@ -29983,7 +29983,7 @@ class Dashboard extends Component {
|
|
|
29983
29983
|
window.Pelcro.insight.track("Modal Displayed", {
|
|
29984
29984
|
name: "dashboard"
|
|
29985
29985
|
});
|
|
29986
|
-
ReactGA
|
|
29986
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
29987
29987
|
category: "VIEWS",
|
|
29988
29988
|
action: "Dashboard Modal Viewed",
|
|
29989
29989
|
nonInteraction: true
|
|
@@ -30019,7 +30019,7 @@ class Dashboard extends Component {
|
|
|
30019
30019
|
if (err) {
|
|
30020
30020
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30021
30021
|
}
|
|
30022
|
-
ReactGA
|
|
30022
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
30023
30023
|
category: "ACTIONS",
|
|
30024
30024
|
action: "Canceled",
|
|
30025
30025
|
nonInteraction: true
|
|
@@ -30037,7 +30037,7 @@ class Dashboard extends Component {
|
|
|
30037
30037
|
if (err) {
|
|
30038
30038
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30039
30039
|
}
|
|
30040
|
-
ReactGA
|
|
30040
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
|
|
30041
30041
|
category: "ACTIONS",
|
|
30042
30042
|
action: "UnSuspended",
|
|
30043
30043
|
nonInteraction: true
|