@cakemail-org/ui-components-v2 2.2.46 → 2.2.47
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/cjs/index.js +5 -5
- package/dist/esm/index.js +5 -5
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -19395,17 +19395,17 @@ var SupportFactory = /** @class */ (function () {
|
|
|
19395
19395
|
return [2 /*return*/, connectToZendeskSupportService()
|
|
19396
19396
|
.then(function (data) {
|
|
19397
19397
|
var _a;
|
|
19398
|
+
var url = (_a = data === null || data === void 0 ? void 0 : data.body) === null || _a === void 0 ? void 0 : _a.url;
|
|
19399
|
+
if (returnTo) {
|
|
19400
|
+
url += "&return_to=" + encodeURIComponent(returnTo);
|
|
19401
|
+
}
|
|
19398
19402
|
if (isSupport) {
|
|
19399
19403
|
if (email) {
|
|
19400
19404
|
eventIdentify(email);
|
|
19401
19405
|
}
|
|
19402
19406
|
trackEvent(exports.EEvents.SUPPORT_SIGNED_IN);
|
|
19403
|
-
var url = (_a = data === null || data === void 0 ? void 0 : data.body) === null || _a === void 0 ? void 0 : _a.url;
|
|
19404
|
-
if (returnTo) {
|
|
19405
|
-
url += "&return_to=" + encodeURIComponent(returnTo);
|
|
19406
|
-
}
|
|
19407
|
-
window.open(url, "_blank");
|
|
19408
19407
|
}
|
|
19408
|
+
window.open(url, "_blank");
|
|
19409
19409
|
return;
|
|
19410
19410
|
}).catch(function () {
|
|
19411
19411
|
if (helpUrl) {
|
package/dist/esm/index.js
CHANGED
|
@@ -19375,17 +19375,17 @@ var SupportFactory = /** @class */ (function () {
|
|
|
19375
19375
|
return [2 /*return*/, connectToZendeskSupportService()
|
|
19376
19376
|
.then(function (data) {
|
|
19377
19377
|
var _a;
|
|
19378
|
+
var url = (_a = data === null || data === void 0 ? void 0 : data.body) === null || _a === void 0 ? void 0 : _a.url;
|
|
19379
|
+
if (returnTo) {
|
|
19380
|
+
url += "&return_to=" + encodeURIComponent(returnTo);
|
|
19381
|
+
}
|
|
19378
19382
|
if (isSupport) {
|
|
19379
19383
|
if (email) {
|
|
19380
19384
|
eventIdentify(email);
|
|
19381
19385
|
}
|
|
19382
19386
|
trackEvent(EEvents.SUPPORT_SIGNED_IN);
|
|
19383
|
-
var url = (_a = data === null || data === void 0 ? void 0 : data.body) === null || _a === void 0 ? void 0 : _a.url;
|
|
19384
|
-
if (returnTo) {
|
|
19385
|
-
url += "&return_to=" + encodeURIComponent(returnTo);
|
|
19386
|
-
}
|
|
19387
|
-
window.open(url, "_blank");
|
|
19388
19387
|
}
|
|
19388
|
+
window.open(url, "_blank");
|
|
19389
19389
|
return;
|
|
19390
19390
|
}).catch(function () {
|
|
19391
19391
|
if (helpUrl) {
|