@pelcro/react-pelcro-js 3.23.0-beta.7 → 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 +55 -53
- package/dist/index.esm.js +55 -53
- 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
|
|
@@ -9693,6 +9693,17 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
9693
9693
|
}
|
|
9694
9694
|
callback();
|
|
9695
9695
|
}
|
|
9696
|
+
|
|
9697
|
+
//create a safe and strong password string with special characters
|
|
9698
|
+
function generatePassword() {
|
|
9699
|
+
const length = 16;
|
|
9700
|
+
const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+{}|:<>?`~";
|
|
9701
|
+
let retVal = "";
|
|
9702
|
+
for (let i = 0, n = charset.length; i < length; ++i) {
|
|
9703
|
+
retVal += charset.charAt(Math.floor(Math.random() * n));
|
|
9704
|
+
}
|
|
9705
|
+
return retVal;
|
|
9706
|
+
}
|
|
9696
9707
|
function isStringValid(str) {
|
|
9697
9708
|
// Define the regular expression to match only letters, numbers and spaces
|
|
9698
9709
|
var regex = /^[a-zA-Z0-9\s]+$/;
|
|
@@ -10037,7 +10048,7 @@ function _classPrivateFieldGet(receiver, privateMap) {
|
|
|
10037
10048
|
var _window$b, _window$Pelcro$b, _window$Pelcro$uiSett$b;
|
|
10038
10049
|
function _classPrivateFieldInitSpec$2(obj, privateMap, value) { _checkPrivateRedeclaration$2(obj, privateMap); privateMap.set(obj, value); }
|
|
10039
10050
|
function _checkPrivateRedeclaration$2(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
10040
|
-
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;
|
|
10041
10052
|
var _isAlreadySaved = /*#__PURE__*/new WeakMap();
|
|
10042
10053
|
var _markButtonAsLoading = /*#__PURE__*/new WeakMap();
|
|
10043
10054
|
var _removeLoadingState = /*#__PURE__*/new WeakMap();
|
|
@@ -10160,7 +10171,7 @@ class SaveToMetadataButtonClass {
|
|
|
10160
10171
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10161
10172
|
}
|
|
10162
10173
|
_classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
|
|
10163
|
-
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, {
|
|
10164
10175
|
category: "ACTIONS",
|
|
10165
10176
|
action: "Save/Follow",
|
|
10166
10177
|
label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
|
|
@@ -10192,7 +10203,7 @@ class SaveToMetadataButtonClass {
|
|
|
10192
10203
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10193
10204
|
}
|
|
10194
10205
|
_classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
|
|
10195
|
-
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, {
|
|
10196
10207
|
category: "ACTIONS",
|
|
10197
10208
|
action: "Unsave/Unfollow",
|
|
10198
10209
|
label: title
|
|
@@ -11720,7 +11731,7 @@ function getSiteCardProcessor() {
|
|
|
11720
11731
|
}
|
|
11721
11732
|
|
|
11722
11733
|
var _window$a, _window$Pelcro$a, _window$Pelcro$uiSett$a;
|
|
11723
|
-
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;
|
|
11724
11735
|
|
|
11725
11736
|
/**
|
|
11726
11737
|
* @typedef {Object} OptionsType
|
|
@@ -11845,12 +11856,12 @@ const initSecuritySdk = () => {
|
|
|
11845
11856
|
};
|
|
11846
11857
|
const initGATracking = () => {
|
|
11847
11858
|
var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
|
|
11848
|
-
ReactGA$
|
|
11849
|
-
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");
|
|
11850
11861
|
};
|
|
11851
11862
|
const dispatchModalDisplayEvents = modalName => {
|
|
11852
11863
|
var _ReactGA$event, _modalName$replace, _modalName$replace2;
|
|
11853
|
-
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, {
|
|
11854
11865
|
category: "VIEWS",
|
|
11855
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`,
|
|
11856
11867
|
nonInteraction: true
|
|
@@ -12782,9 +12793,9 @@ const LoginContainer = _ref => {
|
|
|
12782
12793
|
});
|
|
12783
12794
|
onFailure(err);
|
|
12784
12795
|
} else {
|
|
12785
|
-
var _ReactGA
|
|
12796
|
+
var _ReactGA$event;
|
|
12786
12797
|
onSuccess(res);
|
|
12787
|
-
|
|
12798
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
12788
12799
|
category: "ACTIONS",
|
|
12789
12800
|
action: "Logged in",
|
|
12790
12801
|
nonInteraction: true
|
|
@@ -13175,12 +13186,12 @@ function ConfirmPassword(_ref) {
|
|
|
13175
13186
|
}
|
|
13176
13187
|
|
|
13177
13188
|
var _window$9, _window$Pelcro$9, _window$Pelcro$uiSett$9;
|
|
13178
|
-
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;
|
|
13179
13190
|
const Logout = props => {
|
|
13180
13191
|
const handleLogout = () => {
|
|
13181
13192
|
var _ReactGA$event;
|
|
13182
13193
|
window.Pelcro.user.logout();
|
|
13183
|
-
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, {
|
|
13184
13195
|
category: "ACTIONS",
|
|
13185
13196
|
action: "Logged out",
|
|
13186
13197
|
nonInteraction: true
|
|
@@ -14743,7 +14754,7 @@ const RegisterCompany = props => {
|
|
|
14743
14754
|
};
|
|
14744
14755
|
|
|
14745
14756
|
var _window$8, _window$Pelcro$8, _window$Pelcro$uiSett$8;
|
|
14746
|
-
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;
|
|
14747
14758
|
|
|
14748
14759
|
/**
|
|
14749
14760
|
*
|
|
@@ -14770,7 +14781,7 @@ function RegisterModal(props) {
|
|
|
14770
14781
|
};
|
|
14771
14782
|
const handleAfterRegistrationLogic = () => {
|
|
14772
14783
|
var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
14773
|
-
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, {
|
|
14774
14785
|
category: "ACTIONS",
|
|
14775
14786
|
action: "Registered",
|
|
14776
14787
|
nonInteraction: true
|
|
@@ -14862,7 +14873,7 @@ function Radio(_ref) {
|
|
|
14862
14873
|
}
|
|
14863
14874
|
|
|
14864
14875
|
var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
|
|
14865
|
-
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;
|
|
14866
14877
|
|
|
14867
14878
|
/**
|
|
14868
14879
|
*
|
|
@@ -15211,14 +15222,14 @@ class SelectModal extends React.Component {
|
|
|
15211
15222
|
} = this.props;
|
|
15212
15223
|
if (this.state.mode === "product") {
|
|
15213
15224
|
var _ReactGA$event;
|
|
15214
|
-
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, {
|
|
15215
15226
|
category: "VIEWS",
|
|
15216
15227
|
action: "Product Modal Viewed",
|
|
15217
15228
|
nonInteraction: true
|
|
15218
15229
|
});
|
|
15219
15230
|
} else if (this.state.mode === "plan") {
|
|
15220
15231
|
var _ReactGA$event2;
|
|
15221
|
-
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, {
|
|
15222
15233
|
category: "VIEWS",
|
|
15223
15234
|
action: "Plan Modal Viewed",
|
|
15224
15235
|
nonInteraction: true
|
|
@@ -19446,7 +19457,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19446
19457
|
const sendRegisterRequest = (state, callback) => {
|
|
19447
19458
|
window.Pelcro.user.register({
|
|
19448
19459
|
email: state.email,
|
|
19449
|
-
password:
|
|
19460
|
+
password: generatePassword()
|
|
19450
19461
|
}, (err, res) => {
|
|
19451
19462
|
if (err) {
|
|
19452
19463
|
var _err$response, _err$response$data;
|
|
@@ -20934,10 +20945,6 @@ const DonationEmail = props => /*#__PURE__*/React__default['default'].createElem
|
|
|
20934
20945
|
store: store$k
|
|
20935
20946
|
}, props));
|
|
20936
20947
|
|
|
20937
|
-
const DonationPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
20938
|
-
store: store$k
|
|
20939
|
-
}, props));
|
|
20940
|
-
|
|
20941
20948
|
/**
|
|
20942
20949
|
*
|
|
20943
20950
|
*/
|
|
@@ -21024,11 +21031,6 @@ function PaymentMethodView(_ref) {
|
|
|
21024
21031
|
label: t("labels.email"),
|
|
21025
21032
|
required: true,
|
|
21026
21033
|
autoFocus: true
|
|
21027
|
-
}), /*#__PURE__*/React__default['default'].createElement(DonationPassword, {
|
|
21028
|
-
id: "pelcro-input-password",
|
|
21029
|
-
errorId: "pelcro-input-password-error",
|
|
21030
|
-
label: t("labels.password"),
|
|
21031
|
-
required: true
|
|
21032
21034
|
})), /*#__PURE__*/React__default['default'].createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21033
21035
|
className: "plc-mb-2"
|
|
21034
21036
|
}, /*#__PURE__*/React__default['default'].createElement(CouponCode, null), /*#__PURE__*/React__default['default'].createElement(DiscountedPrice, null)), /*#__PURE__*/React__default['default'].createElement(TaxAmount, null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -21092,7 +21094,7 @@ const SubscriptionRenewView = _ref => {
|
|
|
21092
21094
|
};
|
|
21093
21095
|
|
|
21094
21096
|
var _window$6, _window$Pelcro$6, _window$Pelcro$uiSett$6;
|
|
21095
|
-
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;
|
|
21096
21098
|
|
|
21097
21099
|
/**
|
|
21098
21100
|
*
|
|
@@ -21109,7 +21111,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21109
21111
|
const onSuccess = res => {
|
|
21110
21112
|
var _otherProps$onSuccess, _ReactGA$event;
|
|
21111
21113
|
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
|
|
21112
|
-
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, {
|
|
21113
21115
|
category: "ACTIONS",
|
|
21114
21116
|
action: "Renewed",
|
|
21115
21117
|
nonInteraction: true
|
|
@@ -21119,7 +21121,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21119
21121
|
const onGiftRenewalSuccess = () => {
|
|
21120
21122
|
var _otherProps$onGiftRen, _ReactGA$event2;
|
|
21121
21123
|
(_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
|
|
21122
|
-
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, {
|
|
21123
21125
|
category: "ACTIONS",
|
|
21124
21126
|
action: "Renewed Gift",
|
|
21125
21127
|
nonInteraction: true
|
|
@@ -21294,7 +21296,7 @@ function SvgSubscription(props) {
|
|
|
21294
21296
|
}
|
|
21295
21297
|
|
|
21296
21298
|
var _window$5, _window$Pelcro$5, _window$Pelcro$uiSett$5;
|
|
21297
|
-
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;
|
|
21298
21300
|
const SubscriptionCancelNowButton = _ref => {
|
|
21299
21301
|
let {
|
|
21300
21302
|
subscription,
|
|
@@ -21326,7 +21328,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21326
21328
|
if (err) {
|
|
21327
21329
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21328
21330
|
}
|
|
21329
|
-
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, {
|
|
21330
21332
|
category: "ACTIONS",
|
|
21331
21333
|
action: "Canceled",
|
|
21332
21334
|
nonInteraction: true
|
|
@@ -21366,7 +21368,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21366
21368
|
};
|
|
21367
21369
|
|
|
21368
21370
|
var _window$4, _window$Pelcro$4, _window$Pelcro$uiSett$4;
|
|
21369
|
-
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;
|
|
21370
21372
|
const SubscriptionCancelLaterButton = _ref => {
|
|
21371
21373
|
let {
|
|
21372
21374
|
subscription,
|
|
@@ -21398,7 +21400,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
21398
21400
|
if (err) {
|
|
21399
21401
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21400
21402
|
}
|
|
21401
|
-
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, {
|
|
21402
21404
|
category: "ACTIONS",
|
|
21403
21405
|
action: "Canceled",
|
|
21404
21406
|
nonInteraction: true
|
|
@@ -21608,7 +21610,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
21608
21610
|
};
|
|
21609
21611
|
|
|
21610
21612
|
var _window$3, _window$Pelcro$3, _window$Pelcro$uiSett$3;
|
|
21611
|
-
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;
|
|
21612
21614
|
const SubscriptionSuspendButton = _ref => {
|
|
21613
21615
|
let {
|
|
21614
21616
|
subscription,
|
|
@@ -21639,7 +21641,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21639
21641
|
if (err) {
|
|
21640
21642
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21641
21643
|
}
|
|
21642
|
-
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, {
|
|
21643
21645
|
category: "ACTIONS",
|
|
21644
21646
|
action: "Suspended",
|
|
21645
21647
|
nonInteraction: true
|
|
@@ -24489,7 +24491,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24489
24491
|
});
|
|
24490
24492
|
onFailure(err);
|
|
24491
24493
|
} else {
|
|
24492
|
-
var _ReactGA
|
|
24494
|
+
var _ReactGA$event;
|
|
24493
24495
|
dispatch({
|
|
24494
24496
|
type: SHOW_ALERT,
|
|
24495
24497
|
payload: {
|
|
@@ -24498,7 +24500,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24498
24500
|
}
|
|
24499
24501
|
});
|
|
24500
24502
|
onSuccess(res);
|
|
24501
|
-
|
|
24503
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
24502
24504
|
category: "ACTIONS",
|
|
24503
24505
|
action: "Updated address",
|
|
24504
24506
|
nonInteraction: true
|
|
@@ -25027,12 +25029,12 @@ function PaymentMethodUpdateView(props) {
|
|
|
25027
25029
|
}
|
|
25028
25030
|
|
|
25029
25031
|
var _window$2, _window$Pelcro$2, _window$Pelcro$uiSett$2;
|
|
25030
|
-
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;
|
|
25031
25033
|
const PaymentMethodUpdateModal = props => {
|
|
25032
25034
|
const onSuccess = res => {
|
|
25033
25035
|
var _props$onSuccess, _ReactGA$event;
|
|
25034
25036
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
25035
|
-
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, {
|
|
25036
25038
|
category: "ACTIONS",
|
|
25037
25039
|
action: "Updated payment card",
|
|
25038
25040
|
nonInteraction: true
|
|
@@ -28923,7 +28925,7 @@ const OrderItems = _ref => {
|
|
|
28923
28925
|
};
|
|
28924
28926
|
|
|
28925
28927
|
var _window$1, _window$Pelcro$1, _window$Pelcro$uiSett$1;
|
|
28926
|
-
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;
|
|
28927
28929
|
const SavedItemsMenu = () => {
|
|
28928
28930
|
const {
|
|
28929
28931
|
t
|
|
@@ -28988,7 +28990,7 @@ const SavedItems = _ref3 => {
|
|
|
28988
28990
|
return;
|
|
28989
28991
|
}
|
|
28990
28992
|
setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
|
|
28991
|
-
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, {
|
|
28992
28994
|
category: "ACTIONS",
|
|
28993
28995
|
action: "Unsave/Unfollow",
|
|
28994
28996
|
label: title
|
|
@@ -29946,7 +29948,7 @@ function getMemberShipStatus(status) {
|
|
|
29946
29948
|
}
|
|
29947
29949
|
|
|
29948
29950
|
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29949
|
-
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;
|
|
29950
29952
|
const SUB_MENUS = {
|
|
29951
29953
|
PROFILE: "profile",
|
|
29952
29954
|
SUBSCRIPTIONS: "subscriptions",
|
|
@@ -30011,7 +30013,7 @@ class Dashboard extends React.Component {
|
|
|
30011
30013
|
window.Pelcro.insight.track("Modal Displayed", {
|
|
30012
30014
|
name: "dashboard"
|
|
30013
30015
|
});
|
|
30014
|
-
ReactGA
|
|
30016
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
30015
30017
|
category: "VIEWS",
|
|
30016
30018
|
action: "Dashboard Modal Viewed",
|
|
30017
30019
|
nonInteraction: true
|
|
@@ -30047,7 +30049,7 @@ class Dashboard extends React.Component {
|
|
|
30047
30049
|
if (err) {
|
|
30048
30050
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30049
30051
|
}
|
|
30050
|
-
ReactGA
|
|
30052
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
30051
30053
|
category: "ACTIONS",
|
|
30052
30054
|
action: "Canceled",
|
|
30053
30055
|
nonInteraction: true
|
|
@@ -30065,7 +30067,7 @@ class Dashboard extends React.Component {
|
|
|
30065
30067
|
if (err) {
|
|
30066
30068
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30067
30069
|
}
|
|
30068
|
-
ReactGA
|
|
30070
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
|
|
30069
30071
|
category: "ACTIONS",
|
|
30070
30072
|
action: "UnSuspended",
|
|
30071
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
|
|
@@ -9663,6 +9663,17 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
9663
9663
|
}
|
|
9664
9664
|
callback();
|
|
9665
9665
|
}
|
|
9666
|
+
|
|
9667
|
+
//create a safe and strong password string with special characters
|
|
9668
|
+
function generatePassword() {
|
|
9669
|
+
const length = 16;
|
|
9670
|
+
const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+{}|:<>?`~";
|
|
9671
|
+
let retVal = "";
|
|
9672
|
+
for (let i = 0, n = charset.length; i < length; ++i) {
|
|
9673
|
+
retVal += charset.charAt(Math.floor(Math.random() * n));
|
|
9674
|
+
}
|
|
9675
|
+
return retVal;
|
|
9676
|
+
}
|
|
9666
9677
|
function isStringValid(str) {
|
|
9667
9678
|
// Define the regular expression to match only letters, numbers and spaces
|
|
9668
9679
|
var regex = /^[a-zA-Z0-9\s]+$/;
|
|
@@ -10007,7 +10018,7 @@ function _classPrivateFieldGet(receiver, privateMap) {
|
|
|
10007
10018
|
var _window$b, _window$Pelcro$b, _window$Pelcro$uiSett$b;
|
|
10008
10019
|
function _classPrivateFieldInitSpec$2(obj, privateMap, value) { _checkPrivateRedeclaration$2(obj, privateMap); privateMap.set(obj, value); }
|
|
10009
10020
|
function _checkPrivateRedeclaration$2(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
10010
|
-
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;
|
|
10011
10022
|
var _isAlreadySaved = /*#__PURE__*/new WeakMap();
|
|
10012
10023
|
var _markButtonAsLoading = /*#__PURE__*/new WeakMap();
|
|
10013
10024
|
var _removeLoadingState = /*#__PURE__*/new WeakMap();
|
|
@@ -10130,7 +10141,7 @@ class SaveToMetadataButtonClass {
|
|
|
10130
10141
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10131
10142
|
}
|
|
10132
10143
|
_classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
|
|
10133
|
-
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, {
|
|
10134
10145
|
category: "ACTIONS",
|
|
10135
10146
|
action: "Save/Follow",
|
|
10136
10147
|
label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
|
|
@@ -10162,7 +10173,7 @@ class SaveToMetadataButtonClass {
|
|
|
10162
10173
|
return _classPrivateFieldGet(this, _removeLoadingState).call(this, button);
|
|
10163
10174
|
}
|
|
10164
10175
|
_classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
|
|
10165
|
-
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, {
|
|
10166
10177
|
category: "ACTIONS",
|
|
10167
10178
|
action: "Unsave/Unfollow",
|
|
10168
10179
|
label: title
|
|
@@ -11690,7 +11701,7 @@ function getSiteCardProcessor() {
|
|
|
11690
11701
|
}
|
|
11691
11702
|
|
|
11692
11703
|
var _window$a, _window$Pelcro$a, _window$Pelcro$uiSett$a;
|
|
11693
|
-
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;
|
|
11694
11705
|
|
|
11695
11706
|
/**
|
|
11696
11707
|
* @typedef {Object} OptionsType
|
|
@@ -11815,12 +11826,12 @@ const initSecuritySdk = () => {
|
|
|
11815
11826
|
};
|
|
11816
11827
|
const initGATracking = () => {
|
|
11817
11828
|
var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
|
|
11818
|
-
ReactGA$
|
|
11819
|
-
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");
|
|
11820
11831
|
};
|
|
11821
11832
|
const dispatchModalDisplayEvents = modalName => {
|
|
11822
11833
|
var _ReactGA$event, _modalName$replace, _modalName$replace2;
|
|
11823
|
-
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, {
|
|
11824
11835
|
category: "VIEWS",
|
|
11825
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`,
|
|
11826
11837
|
nonInteraction: true
|
|
@@ -12752,9 +12763,9 @@ const LoginContainer = _ref => {
|
|
|
12752
12763
|
});
|
|
12753
12764
|
onFailure(err);
|
|
12754
12765
|
} else {
|
|
12755
|
-
var _ReactGA
|
|
12766
|
+
var _ReactGA$event;
|
|
12756
12767
|
onSuccess(res);
|
|
12757
|
-
|
|
12768
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
12758
12769
|
category: "ACTIONS",
|
|
12759
12770
|
action: "Logged in",
|
|
12760
12771
|
nonInteraction: true
|
|
@@ -13145,12 +13156,12 @@ function ConfirmPassword(_ref) {
|
|
|
13145
13156
|
}
|
|
13146
13157
|
|
|
13147
13158
|
var _window$9, _window$Pelcro$9, _window$Pelcro$uiSett$9;
|
|
13148
|
-
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;
|
|
13149
13160
|
const Logout = props => {
|
|
13150
13161
|
const handleLogout = () => {
|
|
13151
13162
|
var _ReactGA$event;
|
|
13152
13163
|
window.Pelcro.user.logout();
|
|
13153
|
-
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, {
|
|
13154
13165
|
category: "ACTIONS",
|
|
13155
13166
|
action: "Logged out",
|
|
13156
13167
|
nonInteraction: true
|
|
@@ -14713,7 +14724,7 @@ const RegisterCompany = props => {
|
|
|
14713
14724
|
};
|
|
14714
14725
|
|
|
14715
14726
|
var _window$8, _window$Pelcro$8, _window$Pelcro$uiSett$8;
|
|
14716
|
-
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;
|
|
14717
14728
|
|
|
14718
14729
|
/**
|
|
14719
14730
|
*
|
|
@@ -14740,7 +14751,7 @@ function RegisterModal(props) {
|
|
|
14740
14751
|
};
|
|
14741
14752
|
const handleAfterRegistrationLogic = () => {
|
|
14742
14753
|
var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
14743
|
-
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, {
|
|
14744
14755
|
category: "ACTIONS",
|
|
14745
14756
|
action: "Registered",
|
|
14746
14757
|
nonInteraction: true
|
|
@@ -14832,7 +14843,7 @@ function Radio(_ref) {
|
|
|
14832
14843
|
}
|
|
14833
14844
|
|
|
14834
14845
|
var _window$7, _window$Pelcro$7, _window$Pelcro$uiSett$7;
|
|
14835
|
-
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;
|
|
14836
14847
|
|
|
14837
14848
|
/**
|
|
14838
14849
|
*
|
|
@@ -15181,14 +15192,14 @@ class SelectModal extends Component {
|
|
|
15181
15192
|
} = this.props;
|
|
15182
15193
|
if (this.state.mode === "product") {
|
|
15183
15194
|
var _ReactGA$event;
|
|
15184
|
-
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, {
|
|
15185
15196
|
category: "VIEWS",
|
|
15186
15197
|
action: "Product Modal Viewed",
|
|
15187
15198
|
nonInteraction: true
|
|
15188
15199
|
});
|
|
15189
15200
|
} else if (this.state.mode === "plan") {
|
|
15190
15201
|
var _ReactGA$event2;
|
|
15191
|
-
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, {
|
|
15192
15203
|
category: "VIEWS",
|
|
15193
15204
|
action: "Plan Modal Viewed",
|
|
15194
15205
|
nonInteraction: true
|
|
@@ -19416,7 +19427,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19416
19427
|
const sendRegisterRequest = (state, callback) => {
|
|
19417
19428
|
window.Pelcro.user.register({
|
|
19418
19429
|
email: state.email,
|
|
19419
|
-
password:
|
|
19430
|
+
password: generatePassword()
|
|
19420
19431
|
}, (err, res) => {
|
|
19421
19432
|
if (err) {
|
|
19422
19433
|
var _err$response, _err$response$data;
|
|
@@ -20904,10 +20915,6 @@ const DonationEmail = props => /*#__PURE__*/React__default.createElement(Email,
|
|
|
20904
20915
|
store: store$k
|
|
20905
20916
|
}, props));
|
|
20906
20917
|
|
|
20907
|
-
const DonationPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
20908
|
-
store: store$k
|
|
20909
|
-
}, props));
|
|
20910
|
-
|
|
20911
20918
|
/**
|
|
20912
20919
|
*
|
|
20913
20920
|
*/
|
|
@@ -20994,11 +21001,6 @@ function PaymentMethodView(_ref) {
|
|
|
20994
21001
|
label: t("labels.email"),
|
|
20995
21002
|
required: true,
|
|
20996
21003
|
autoFocus: true
|
|
20997
|
-
}), /*#__PURE__*/React__default.createElement(DonationPassword, {
|
|
20998
|
-
id: "pelcro-input-password",
|
|
20999
|
-
errorId: "pelcro-input-password-error",
|
|
21000
|
-
label: t("labels.password"),
|
|
21001
|
-
required: true
|
|
21002
21004
|
})), /*#__PURE__*/React__default.createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default.createElement("div", {
|
|
21003
21005
|
className: "plc-mb-2"
|
|
21004
21006
|
}, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -21062,7 +21064,7 @@ const SubscriptionRenewView = _ref => {
|
|
|
21062
21064
|
};
|
|
21063
21065
|
|
|
21064
21066
|
var _window$6, _window$Pelcro$6, _window$Pelcro$uiSett$6;
|
|
21065
|
-
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;
|
|
21066
21068
|
|
|
21067
21069
|
/**
|
|
21068
21070
|
*
|
|
@@ -21079,7 +21081,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21079
21081
|
const onSuccess = res => {
|
|
21080
21082
|
var _otherProps$onSuccess, _ReactGA$event;
|
|
21081
21083
|
(_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
|
|
21082
|
-
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, {
|
|
21083
21085
|
category: "ACTIONS",
|
|
21084
21086
|
action: "Renewed",
|
|
21085
21087
|
nonInteraction: true
|
|
@@ -21089,7 +21091,7 @@ function SubscriptionRenewModal(_ref) {
|
|
|
21089
21091
|
const onGiftRenewalSuccess = () => {
|
|
21090
21092
|
var _otherProps$onGiftRen, _ReactGA$event2;
|
|
21091
21093
|
(_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
|
|
21092
|
-
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, {
|
|
21093
21095
|
category: "ACTIONS",
|
|
21094
21096
|
action: "Renewed Gift",
|
|
21095
21097
|
nonInteraction: true
|
|
@@ -21264,7 +21266,7 @@ function SvgSubscription(props) {
|
|
|
21264
21266
|
}
|
|
21265
21267
|
|
|
21266
21268
|
var _window$5, _window$Pelcro$5, _window$Pelcro$uiSett$5;
|
|
21267
|
-
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;
|
|
21268
21270
|
const SubscriptionCancelNowButton = _ref => {
|
|
21269
21271
|
let {
|
|
21270
21272
|
subscription,
|
|
@@ -21296,7 +21298,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21296
21298
|
if (err) {
|
|
21297
21299
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21298
21300
|
}
|
|
21299
|
-
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, {
|
|
21300
21302
|
category: "ACTIONS",
|
|
21301
21303
|
action: "Canceled",
|
|
21302
21304
|
nonInteraction: true
|
|
@@ -21336,7 +21338,7 @@ const SubscriptionCancelNowButton = _ref => {
|
|
|
21336
21338
|
};
|
|
21337
21339
|
|
|
21338
21340
|
var _window$4, _window$Pelcro$4, _window$Pelcro$uiSett$4;
|
|
21339
|
-
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;
|
|
21340
21342
|
const SubscriptionCancelLaterButton = _ref => {
|
|
21341
21343
|
let {
|
|
21342
21344
|
subscription,
|
|
@@ -21368,7 +21370,7 @@ const SubscriptionCancelLaterButton = _ref => {
|
|
|
21368
21370
|
if (err) {
|
|
21369
21371
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21370
21372
|
}
|
|
21371
|
-
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, {
|
|
21372
21374
|
category: "ACTIONS",
|
|
21373
21375
|
action: "Canceled",
|
|
21374
21376
|
nonInteraction: true
|
|
@@ -21578,7 +21580,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
21578
21580
|
};
|
|
21579
21581
|
|
|
21580
21582
|
var _window$3, _window$Pelcro$3, _window$Pelcro$uiSett$3;
|
|
21581
|
-
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;
|
|
21582
21584
|
const SubscriptionSuspendButton = _ref => {
|
|
21583
21585
|
let {
|
|
21584
21586
|
subscription,
|
|
@@ -21609,7 +21611,7 @@ const SubscriptionSuspendButton = _ref => {
|
|
|
21609
21611
|
if (err) {
|
|
21610
21612
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
21611
21613
|
}
|
|
21612
|
-
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, {
|
|
21613
21615
|
category: "ACTIONS",
|
|
21614
21616
|
action: "Suspended",
|
|
21615
21617
|
nonInteraction: true
|
|
@@ -24459,7 +24461,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24459
24461
|
});
|
|
24460
24462
|
onFailure(err);
|
|
24461
24463
|
} else {
|
|
24462
|
-
var _ReactGA
|
|
24464
|
+
var _ReactGA$event;
|
|
24463
24465
|
dispatch({
|
|
24464
24466
|
type: SHOW_ALERT,
|
|
24465
24467
|
payload: {
|
|
@@ -24468,7 +24470,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
24468
24470
|
}
|
|
24469
24471
|
});
|
|
24470
24472
|
onSuccess(res);
|
|
24471
|
-
|
|
24473
|
+
ReactGA1 === null || ReactGA1 === void 0 ? void 0 : (_ReactGA$event = ReactGA1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA1, {
|
|
24472
24474
|
category: "ACTIONS",
|
|
24473
24475
|
action: "Updated address",
|
|
24474
24476
|
nonInteraction: true
|
|
@@ -24997,12 +24999,12 @@ function PaymentMethodUpdateView(props) {
|
|
|
24997
24999
|
}
|
|
24998
25000
|
|
|
24999
25001
|
var _window$2, _window$Pelcro$2, _window$Pelcro$uiSett$2;
|
|
25000
|
-
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;
|
|
25001
25003
|
const PaymentMethodUpdateModal = props => {
|
|
25002
25004
|
const onSuccess = res => {
|
|
25003
25005
|
var _props$onSuccess, _ReactGA$event;
|
|
25004
25006
|
(_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
|
|
25005
|
-
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, {
|
|
25006
25008
|
category: "ACTIONS",
|
|
25007
25009
|
action: "Updated payment card",
|
|
25008
25010
|
nonInteraction: true
|
|
@@ -28893,7 +28895,7 @@ const OrderItems = _ref => {
|
|
|
28893
28895
|
};
|
|
28894
28896
|
|
|
28895
28897
|
var _window$1, _window$Pelcro$1, _window$Pelcro$uiSett$1;
|
|
28896
|
-
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;
|
|
28897
28899
|
const SavedItemsMenu = () => {
|
|
28898
28900
|
const {
|
|
28899
28901
|
t
|
|
@@ -28958,7 +28960,7 @@ const SavedItems = _ref3 => {
|
|
|
28958
28960
|
return;
|
|
28959
28961
|
}
|
|
28960
28962
|
setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
|
|
28961
|
-
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, {
|
|
28962
28964
|
category: "ACTIONS",
|
|
28963
28965
|
action: "Unsave/Unfollow",
|
|
28964
28966
|
label: title
|
|
@@ -29916,7 +29918,7 @@ function getMemberShipStatus(status) {
|
|
|
29916
29918
|
}
|
|
29917
29919
|
|
|
29918
29920
|
var _window, _window$Pelcro, _window$Pelcro$uiSett;
|
|
29919
|
-
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;
|
|
29920
29922
|
const SUB_MENUS = {
|
|
29921
29923
|
PROFILE: "profile",
|
|
29922
29924
|
SUBSCRIPTIONS: "subscriptions",
|
|
@@ -29981,7 +29983,7 @@ class Dashboard extends Component {
|
|
|
29981
29983
|
window.Pelcro.insight.track("Modal Displayed", {
|
|
29982
29984
|
name: "dashboard"
|
|
29983
29985
|
});
|
|
29984
|
-
ReactGA
|
|
29986
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
29985
29987
|
category: "VIEWS",
|
|
29986
29988
|
action: "Dashboard Modal Viewed",
|
|
29987
29989
|
nonInteraction: true
|
|
@@ -30017,7 +30019,7 @@ class Dashboard extends Component {
|
|
|
30017
30019
|
if (err) {
|
|
30018
30020
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30019
30021
|
}
|
|
30020
|
-
ReactGA
|
|
30022
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
|
|
30021
30023
|
category: "ACTIONS",
|
|
30022
30024
|
action: "Canceled",
|
|
30023
30025
|
nonInteraction: true
|
|
@@ -30035,7 +30037,7 @@ class Dashboard extends Component {
|
|
|
30035
30037
|
if (err) {
|
|
30036
30038
|
return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
30037
30039
|
}
|
|
30038
|
-
ReactGA
|
|
30040
|
+
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
|
|
30039
30041
|
category: "ACTIONS",
|
|
30040
30042
|
action: "UnSuspended",
|
|
30041
30043
|
nonInteraction: true
|