@social-mail/social-mail-client 1.8.189 → 1.8.190
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/site-editor-app/SiteEditorApp.pack.js +45 -3
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/DesignSupportPage.d.ts +2 -0
- package/dist/site-editor-app/pages/websites/studio/DesignSupportPage.d.ts.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/DesignSupportPage.js +45 -3
- package/dist/site-editor-app/pages/websites/studio/DesignSupportPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor-app/pages/websites/studio/DesignSupportPage.tsx +43 -1
|
@@ -54858,29 +54858,71 @@ System.register(["@web-atoms/core/dist/core/XNode", "./Tools.local.css", "./basi
|
|
|
54858
54858
|
|
|
54859
54859
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor-app/pages/websites/studio/DesignSupportPage");
|
|
54860
54860
|
|
|
54861
|
-
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../web/page/mails/ConversationPage"], function (_export, _context) {
|
|
54861
|
+
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../web/page/mails/ConversationPage", "@web-atoms/core/dist/core/InjectProperty", "../../../../services/EntityService", "../../../../model/model"], function (_export, _context) {
|
|
54862
54862
|
"use strict";
|
|
54863
54863
|
|
|
54864
|
-
var __awaiter, XNode, PopupWindowPage, ConversationPage, DesignSupportPage;
|
|
54864
|
+
var __awaiter, __decorate, __metadata, XNode, PopupWindowPage, ConversationPage, InjectProperty, EntityService, Mailbox, MailboxContact, DesignSupportPage;
|
|
54865
54865
|
_export("default", void 0);
|
|
54866
54866
|
return {
|
|
54867
54867
|
setters: [function (_tslib) {
|
|
54868
54868
|
__awaiter = _tslib.__awaiter;
|
|
54869
|
+
__decorate = _tslib.__decorate;
|
|
54870
|
+
__metadata = _tslib.__metadata;
|
|
54869
54871
|
}, function (_webAtomsCoreDistCoreXNode) {
|
|
54870
54872
|
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
54871
54873
|
}, function (_webAtomsWebControlsDistMobileAppMobileApp) {
|
|
54872
54874
|
PopupWindowPage = _webAtomsWebControlsDistMobileAppMobileApp.PopupWindowPage;
|
|
54873
54875
|
}, function (_webPageMailsConversationPage) {
|
|
54874
54876
|
ConversationPage = _webPageMailsConversationPage.default;
|
|
54877
|
+
}, function (_webAtomsCoreDistCoreInjectProperty) {
|
|
54878
|
+
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
54879
|
+
}, function (_servicesEntityService) {
|
|
54880
|
+
EntityService = _servicesEntityService.default;
|
|
54881
|
+
}, function (_modelModel) {
|
|
54882
|
+
Mailbox = _modelModel.Mailbox;
|
|
54883
|
+
MailboxContact = _modelModel.MailboxContact;
|
|
54875
54884
|
}],
|
|
54876
54885
|
execute: function () {
|
|
54877
54886
|
_export("default", DesignSupportPage = class DesignSupportPage extends PopupWindowPage {
|
|
54878
54887
|
init() {
|
|
54879
54888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54880
|
-
|
|
54889
|
+
const {
|
|
54890
|
+
infoEmail,
|
|
54891
|
+
supportEmail
|
|
54892
|
+
} = this.parameters;
|
|
54893
|
+
const {
|
|
54894
|
+
mailboxID
|
|
54895
|
+
} = yield this.entityService.query(Mailbox).where({
|
|
54896
|
+
infoEmail
|
|
54897
|
+
}, p => x => x.emailAddress.emailAddress === p.infoEmail).include(x => x.emailAddress).firstOrDefault();
|
|
54898
|
+
let mailboxContact = yield this.entityService.query(MailboxContact).where({
|
|
54899
|
+
mailboxID,
|
|
54900
|
+
supportEmail
|
|
54901
|
+
}, p => x => x.mailboxID === p.mailboxID && x.emailAddress.emailAddress === p.supportEmail).include(x => [x.mailbox, x.emailAddress]).firstOrDefault();
|
|
54902
|
+
if (!mailboxContact) {
|
|
54903
|
+
yield this.entityService.save(MailboxContact.create({
|
|
54904
|
+
mailboxID,
|
|
54905
|
+
emailAddressText: supportEmail
|
|
54906
|
+
}));
|
|
54907
|
+
mailboxContact = yield this.entityService.query(MailboxContact).where({
|
|
54908
|
+
mailboxID,
|
|
54909
|
+
supportEmail
|
|
54910
|
+
}, p => x => x.mailboxID === p.mailboxID && x.emailAddress.emailAddress === p.supportEmail).include(x => [x.mailbox, x.emailAddress]).firstOrDefault();
|
|
54911
|
+
}
|
|
54912
|
+
this.renderer = XNode.create("div", null, XNode.create("div", {
|
|
54913
|
+
"data-window-container": "c1"
|
|
54914
|
+
}));
|
|
54915
|
+
const container = this.element.querySelector(`[data-window-container="c1"]`);
|
|
54916
|
+
const cp = new ConversationPage(this.app, document.createElement("div"));
|
|
54917
|
+
cp.parameters = mailboxContact;
|
|
54918
|
+
void cp.init().catch(console.error);
|
|
54919
|
+
container.style.width = "70vw";
|
|
54920
|
+
container.style.height = "50vh";
|
|
54921
|
+
container.appendChild(cp.element);
|
|
54881
54922
|
});
|
|
54882
54923
|
}
|
|
54883
54924
|
});
|
|
54925
|
+
__decorate([InjectProperty, __metadata("design:type", EntityService)], DesignSupportPage.prototype, "entityService", void 0);
|
|
54884
54926
|
}
|
|
54885
54927
|
};
|
|
54886
54928
|
});
|