@social-mail/social-mail-client 1.2.312 → 1.2.313
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/admin/AdminAppIndex.pack.js +3 -22
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +2366 -2385
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/unsubscribe/UnsubscribeWindow.d.ts.map +1 -1
- package/dist/web/page/mails/unsubscribe/UnsubscribeWindow.js +3 -22
- package/dist/web/page/mails/unsubscribe/UnsubscribeWindow.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/unsubscribe/UnsubscribeWindow.tsx +2 -19
|
@@ -41704,10 +41704,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41704
41704
|
|
|
41705
41705
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/engagements/EngagementDetails");
|
|
41706
41706
|
|
|
41707
|
-
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/core/InjectProperty", "../../../../services/EntityService", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/services/FetchBuilder", "
|
|
41707
|
+
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/core/InjectProperty", "../../../../services/EntityService", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/services/FetchBuilder", "@web-atoms/core/dist/core/sleep", "../../../commands/MailAppEvents"], function (_export, _context) {
|
|
41708
41708
|
"use strict";
|
|
41709
41709
|
|
|
41710
|
-
var __awaiter, __decorate, __metadata, PopupWindowPage, MailboxContact, XNode, InjectProperty, EntityService, Action, FetchBuilder,
|
|
41710
|
+
var __awaiter, __decorate, __metadata, PopupWindowPage, MailboxContact, XNode, InjectProperty, EntityService, Action, FetchBuilder, sleep, MailAppEvents, UnsubscribeWindow;
|
|
41711
41711
|
_export("default", void 0);
|
|
41712
41712
|
return {
|
|
41713
41713
|
setters: [function (_tslib) {
|
|
@@ -41728,10 +41728,6 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41728
41728
|
Action = _webAtomsCoreDistViewModelAction.default;
|
|
41729
41729
|
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
41730
41730
|
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
41731
|
-
}, function (_servicesMimeServiceMimeNode) {
|
|
41732
|
-
MimeNode = _servicesMimeServiceMimeNode.MimeNode;
|
|
41733
|
-
}, function (_servicesMimeServiceStreamLineStream) {
|
|
41734
|
-
StringLineStream = _servicesMimeServiceStreamLineStream.StringLineStream;
|
|
41735
41731
|
}, function (_webAtomsCoreDistCoreSleep) {
|
|
41736
41732
|
sleep = _webAtomsCoreDistCoreSleep.default;
|
|
41737
41733
|
}, function (_commandsMailAppEvents) {
|
|
@@ -41795,22 +41791,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41795
41791
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41796
41792
|
this.renderer = XNode.create("div", null, XNode.create("div", null, "Unsubscribing...."));
|
|
41797
41793
|
const mce = this.parameters;
|
|
41798
|
-
|
|
41799
|
-
const root = new MimeNode();
|
|
41800
|
-
yield root.parse(new StringLineStream(headers));
|
|
41801
|
-
let unsubscribe = root.header("List-Unsubscribe").split(",").find(x => /\<http/i.test(x));
|
|
41802
|
-
if (unsubscribe.startsWith("<")) {
|
|
41803
|
-
unsubscribe = unsubscribe.substring(1);
|
|
41804
|
-
}
|
|
41805
|
-
if (unsubscribe.endsWith(">")) {
|
|
41806
|
-
unsubscribe = unsubscribe.substring(0, unsubscribe.length - 1);
|
|
41807
|
-
}
|
|
41808
|
-
const unsubscribePost = root.header("List-Unsubscribe-Post");
|
|
41809
|
-
if (unsubscribePost) {
|
|
41810
|
-
yield FetchBuilder.post(unsubscribe).responseAsText();
|
|
41811
|
-
} else {
|
|
41812
|
-
yield FetchBuilder.get(unsubscribe).responseAsText();
|
|
41813
|
-
}
|
|
41794
|
+
yield FetchBuilder.post(`/api/emails/unsubscribe/${mce.emailID}/1`).responseAsText();
|
|
41814
41795
|
this.renderer = XNode.create("div", null, XNode.create("div", null, "Unsubscribed Successfully."));
|
|
41815
41796
|
});
|
|
41816
41797
|
}
|