@social-mail/social-mail-client 1.2.635 → 1.2.637

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.
Files changed (47) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +405 -187
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +12 -7
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/pages/stores/products/html/ProductHtmlEditorPage.js +4 -4
  6. package/dist/common/pages/stores/products/html/ProductHtmlEditorPage.js.map +1 -1
  7. package/dist/common/pages/websites/studio/WebSiteStudioPage.d.ts +2 -3
  8. package/dist/common/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
  9. package/dist/common/pages/websites/studio/WebSiteStudioPage.js +11 -22
  10. package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
  11. package/dist/public/store/StoreApp.pack.js +19 -5
  12. package/dist/public/store/StoreApp.pack.js.map +1 -1
  13. package/dist/public/store/StoreApp.pack.min.js +6 -1
  14. package/dist/public/store/StoreApp.pack.min.js.map +1 -1
  15. package/dist/site-editor/editor/DomHelper.d.ts +4 -0
  16. package/dist/site-editor/editor/DomHelper.d.ts.map +1 -0
  17. package/dist/site-editor/editor/DomHelper.js +64 -0
  18. package/dist/site-editor/editor/DomHelper.js.map +1 -0
  19. package/dist/site-editor/editor/HtmlPageEditor.d.ts +7 -5
  20. package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
  21. package/dist/site-editor/editor/HtmlPageEditor.js +146 -153
  22. package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
  23. package/dist/site-editor/editor/UndoRedo.d.ts +22 -0
  24. package/dist/site-editor/editor/UndoRedo.d.ts.map +1 -0
  25. package/dist/site-editor/editor/UndoRedo.js +152 -0
  26. package/dist/site-editor/editor/UndoRedo.js.map +1 -0
  27. package/dist/site-editor/toolbars/UndoRedoToolbar.js +2 -2
  28. package/dist/site-editor/toolbars/UndoRedoToolbar.js.map +1 -1
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/dist/web/AppIndex.pack.js +405 -187
  31. package/dist/web/AppIndex.pack.js.map +1 -1
  32. package/dist/web/AppIndex.pack.min.js +12 -7
  33. package/dist/web/AppIndex.pack.min.js.map +1 -1
  34. package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.d.ts +2 -1
  35. package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.d.ts.map +1 -1
  36. package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.js +19 -5
  37. package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.js.map +1 -1
  38. package/node_modules/@web-atoms/web-controls/dist/tsconfig.tsbuildinfo +1 -1
  39. package/node_modules/@web-atoms/web-controls/package.json +1 -1
  40. package/node_modules/@web-atoms/web-controls/src/mobile-app/MobileApp.tsx +22 -6
  41. package/package.json +4 -4
  42. package/src/common/pages/stores/products/html/ProductHtmlEditorPage.tsx +4 -4
  43. package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +22 -21
  44. package/src/site-editor/editor/DomHelper.ts +130 -0
  45. package/src/site-editor/editor/HtmlPageEditor.tsx +230 -177
  46. package/src/site-editor/editor/UndoRedo.tsx +173 -0
  47. package/src/site-editor/toolbars/UndoRedoToolbar.tsx +2 -2
@@ -1976,7 +1976,7 @@ const UMD = new UMDClass();
1976
1976
 
1977
1977
  AmdLoader.instance.register(
1978
1978
  ["@social-mail/social-mail-client","@web-atoms/core","@web-atoms/web-controls","reflect-metadata","@web-atoms/date-time","@web-atoms/data-styles","@web-atoms/entity","@web-atoms/email-dom"],
1979
- ["@social-mail/social-mail-client/dist/admin/AdminAppIndex","@web-atoms/core/dist/Pack","@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp","@web-atoms/web-controls/dist/mobile-app/MobileApp","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/di/DISingleton","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/style/styled","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/web-controls/dist/PageNavigator","@web-atoms/web-controls/dist/desktop-app/DesktopApp","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/services/LoginService","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/SocialMailApp","@web-atoms/core/dist/core/InjectProperty","@social-mail/social-mail-client/dist/admin/commands/AdminCommands","@social-mail/social-mail-client/dist/admin/pages/home/AdminHome","@social-mail/social-mail-client/dist/admin/pages/domains/DomainListPage","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@social-mail/social-mail-client/dist/admin/pages/domains/services/AdminDomainService","@web-atoms/core/dist/di/DITransient","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/admin/pages/domains/edit/EditDomainPage","@web-atoms/web-controls/dist/basic/Form","@social-mail/social-mail-client/dist/common/controls/form/RequiredFormField","@web-atoms/web-controls/dist/basic/FormField","@web-atoms/web-controls/dist/basic/styles/form-field-style","@web-atoms/web-controls/dist/basic/PasswordBox","@web-atoms/web-controls/dist/basic/styles/password-box-style","@web-atoms/web-controls/dist/basic/Checkbox","@web-atoms/web-controls/dist/basic/styles/checkbox-style","@web-atoms/web-controls/dist/basic/Expander","@web-atoms/web-controls/dist/basic/styles/expander-style","@social-mail/social-mail-client/dist/common/controls/buttons/IconButton","@social-mail/social-mail-client/dist/admin/pages/domains/edit/DomainKeySetupPage","@social-mail/social-mail-client/dist/common/controls/buttons/CopyIcon","@social-mail/social-mail-client/dist/admin/pages/domains/domain-user/DomainUserEditor","@social-mail/social-mail-client/dist/common/controls/drop-downs/user/UserDropDown","@web-atoms/web-controls/dist/basic/DropDown","@web-atoms/web-controls/dist/basic/styles/drop-down-style","@social-mail/social-mail-client/dist/admin/pages/users/services/AdminUserService","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/common/pages/folders/ChooserFolderPage","@social-mail/social-mail-client/dist/web/page/files/service/CloudFileService","@social-mail/social-mail-client/dist/services/files/LocalFileService","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/common/FileUploader","@social-mail/social-mail-client/dist/services/ffmpeg/FFService","@social-mail/social-mail-client/dist/common/Modules","@social-mail/social-mail-client/dist/common/controls/tree/TreeView","@social-mail/social-mail-client/dist/admin/pages/users/UserListPage","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/admin/pages/users/EditUserPage","@social-mail/social-mail-client/dist/common/validators/Validators","@social-mail/social-mail-client/dist/common/controls/password/PasswordStrength","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/admin/pages/users/UserDetailsPage","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditor","@social-mail/social-mail-client/dist/admin/pages/users/domains/EditDomainUserPage","@social-mail/social-mail-client/dist/admin/pages/users/mailboxes/EditUserMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@social-mail/social-mail-client/dist/admin/pages/users/files/EditFileAccessPage","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/admin/pages/users/phone-numbers/UpdatePhoneNumberPage","@social-mail/social-mail-client/dist/common/controls/countries/CountrySelect","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditorEx","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@social-mail/social-mail-client/dist/admin/pages/users/ChooseUserPage","@social-mail/social-mail-client/dist/common/commands/CommonCommands","@social-mail/social-mail-client/dist/web/page/mails/MailboxContacts","@social-mail/social-mail-client/dist/web/page/mails/service/MailService","@social-mail/social-mail-client/dist/common/events/CommonEvents","@social-mail/social-mail-client/dist/web/page/mails/ConversationPage","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@web-atoms/email-dom/dist/DomToString","@web-atoms/email-dom/dist/dom/StyleHelper","@web-atoms/email-dom/dist/style/mergeStyle","@social-mail/social-mail-client/dist/services/email/EmailContentDownloader","@social-mail/social-mail-client/dist/web/page/mails/service/EngagementService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@social-mail/social-mail-client/dist/web/commands/MailAppEvents","@social-mail/social-mail-client/dist/common/fileUrl","@web-atoms/web-controls/dist/basic/InlinePopupControl","@social-mail/social-mail-client/dist/web/page/mails/ComposeMailPage","@social-mail/social-mail-client/dist/common/controls/html/InlineHtmlEditorWithToolbar","@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor","@web-atoms/web-controls/dist/html-editor/commands/AddImage","@web-atoms/web-controls/dist/html-editor/commands/CommandButton","@web-atoms/web-controls/dist/html-editor/commands/HtmlCommands","@web-atoms/web-controls/dist/html-editor/commands/Toolbar","@web-atoms/web-controls/dist/html-editor/commands/Bold","@web-atoms/web-controls/dist/html-editor/commands/Command","@web-atoms/web-controls/dist/html-editor/commands/Italic","@web-atoms/web-controls/dist/html-editor/commands/Underline","@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough","@web-atoms/web-controls/dist/html-editor/commands/Align","@web-atoms/web-controls/dist/basic/PopupButton","@web-atoms/web-controls/dist/basic/styles/popup-button-style","@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule","@web-atoms/web-controls/dist/html-editor/commands/Separator","@web-atoms/web-controls/dist/html-editor/commands/Headings","@web-atoms/web-controls/dist/html-editor/commands/ChangeColor","@web-atoms/web-controls/dist/html-editor/commands/ChangeFont","@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize","@web-atoms/web-controls/dist/html-editor/commands/NumberedList","@web-atoms/web-controls/dist/html-editor/commands/UnorderedList","@web-atoms/web-controls/dist/html-editor/commands/IndentLess","@web-atoms/web-controls/dist/html-editor/commands/IndentMore","@web-atoms/web-controls/dist/html-editor/commands/AddLink","@web-atoms/core/dist/web/controls/AtomToggleButtonBar","@web-atoms/core/dist/web/styles/AtomToggleButtonBarStyle","@web-atoms/core/dist/web/styles/AtomListBoxStyle","@web-atoms/core/dist/web/controls/AtomListBox","@web-atoms/core/dist/web/controls/AtomItemsControl","@web-atoms/core/dist/core/AtomEnumerator","@web-atoms/web-controls/dist/html-editor/commands/Unlink","@web-atoms/web-controls/dist/html-editor/commands/RemoveFormat","@web-atoms/web-controls/dist/html-editor/commands/Source","@web-atoms/web-controls/dist/basic/UploadEvent","@web-atoms/web-controls/dist/basic/TitleEditor","@web-atoms/web-controls/dist/basic/styles/title-editor-style","@social-mail/social-mail-client/dist/common/controls/email-recipients/EmailRecipientChips","@web-atoms/web-controls/dist/basic/AtomChips","@web-atoms/web-controls/dist/basic/Chip","@web-atoms/web-controls/dist/basic/styles/chip-style","@web-atoms/web-controls/dist/basic/styles/chips-style","@web-atoms/web-controls/dist/basic/styles/item-suggestion-style","@social-mail/social-mail-client/dist/services/email-addresses/EmailAddressService","@social-mail/social-mail-client/dist/web/page/templates/social/SocialTemplate","@social-mail/social-mail-client/dist/services/Emoji","@social-mail/social-mail-client/dist/services/socket/sockets","@web-atoms/web-controls/dist/basic/LimitedText","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/common/pages/logs/LogsPage","@social-mail/social-mail-client/dist/common/pages/logs/services/AppLogService","@social-mail/social-mail-client/dist/web/page/mails/detail/MailDetailPage","@social-mail/social-mail-client/dist/common/controls/file-preview/FilePreview","@social-mail/social-mail-client/dist/web/commands/AppCommands","@social-mail/social-mail-client/dist/web/page/home/HomePage","@social-mail/social-mail-client/dist/web/page/files/FolderPage","@social-mail/social-mail-client/dist/common/controls/drag-drop/FilesDragDrop","@social-mail/social-mail-client/dist/web/page/files/shares/EditSharesPage","@social-mail/social-mail-client/dist/services/files/FileShareService","@social-mail/social-mail-client/dist/web/page/files/shares/AddSharePage","@web-atoms/web-controls/dist/basic/Switch","@web-atoms/web-controls/dist/basic/styles/switch-style","@web-atoms/web-controls/dist/basic/DateField","@web-atoms/web-controls/dist/basic/Calendar","@web-atoms/web-controls/dist/basic/Select","@web-atoms/web-controls/dist/basic/styles/calendar-style","@web-atoms/web-controls/dist/basic/TimeEditor","@web-atoms/web-controls/dist/basic/styles/time-editor-style","@web-atoms/web-controls/dist/basic/styles/date-field-style","@social-mail/social-mail-client/dist/web/page/templates/EditTemplatePage","@social-mail/social-mail-client/dist/services/mime-service/MimeNode","@social-mail/social-mail-client/dist/common/QueryIterator","@social-mail/social-mail-client/dist/services/mime-service/AttachmentFile","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentType","@social-mail/social-mail-client/dist/services/mime-service/parsePairs","@social-mail/social-mail-client/dist/services/mime-service/tokenizer","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentDisposition","@social-mail/social-mail-client/dist/services/mime-service/encoder/word-encoding","@social-mail/social-mail-client/dist/services/mime-service/encoder/RawBuffer","@social-mail/social-mail-client/dist/services/mime-service/encoder/base64-to-blob","@social-mail/social-mail-client/dist/services/mime-service/encoder/quoted-printable","@social-mail/social-mail-client/dist/services/mime-service/MimeMessage","@social-mail/social-mail-client/dist/services/mime-service/stream/LineStream","@social-mail/social-mail-client/dist/services/mime-service/stream/TextWriter","@social-mail/social-mail-client/dist/common/pages/files/FileHistoryPage","@social-mail/social-mail-client/dist/services/files/FileHistoryService","@social-mail/social-mail-client/dist/web/page/files/preview/image/PreviewImage","@web-atoms/web-controls/dist/basic/PinchZoomView","@web-atoms/web-controls/dist/basic/styles/pinch-zoom-view-style","@social-mail/social-mail-client/dist/web/page/files/preview/document/PreviewDocument","@social-mail/social-mail-client/dist/web/page/files/preview/document/PreviewPDF","@social-mail/social-mail-client/dist/web/page/files/preview/media/PreviewMedia","@web-atoms/web-controls/dist/player/AtomVideoPlayer","@social-mail/social-mail-client/dist/web/page/users/SignupPage","@web-atoms/web-controls/dist/basic/MaskedInput","@web-atoms/web-controls/dist/basic/styles/masked-input-style","@social-mail/social-mail-client/dist/common/controls/qrcode/QRCode","@social-mail/social-mail-client/dist/common/form/AppForm","@social-mail/social-mail-client/dist/services/FileTypes","@social-mail/social-mail-client/content/images/icons/audio.svg","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposeBox","@social-mail/social-mail-client/dist/common/controls/audio/AudioRecorder","@web-atoms/web-controls/dist/mobile-app/BottomPopup","@web-atoms/web-controls/dist/animations/Animations","@social-mail/social-mail-client/dist/common/controls/audio/WebRTCService","@social-mail/social-mail-client/dist/common/controls/buttons/RoundButton","@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor","@web-atoms/web-controls/dist/html-editor/commands/AttachFile","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/Insert","@social-mail/social-mail-client/dist/code-editor/CodeSnippetPage","@social-mail/social-mail-client/dist/code-editor/MonacoService","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/Attach","@social-mail/social-mail-client/dist/common/controls/Loader","@social-mail/social-mail-client/content/images/gif/loader.gif","@social-mail/social-mail-client/dist/common/controls/mailboxes/MailboxDropDown","@social-mail/social-mail-client/dist/common/controls/emoji-picker/EmojiPicker","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@social-mail/social-mail-client/dist/web/page/mails/engagements/EngagementDetails","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/web/page/mails/unsubscribe/UnsubscribeWindow","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposePage","@social-mail/social-mail-client/dist/common/controls/email-recipients/EmailLabel","@social-mail/social-mail-client/dist/web/page/mails/ConversationTags","@social-mail/social-mail-client/dist/web/page/mails/ConversationTagChips","@social-mail/social-mail-client/dist/web/page/mails/ChooseMailboxPage","@social-mail/social-mail-client/dist/common/pages/folders/ChooseTemplatePage","@web-atoms/web-controls/dist/basic/Resizable","@social-mail/social-mail-client/dist/web/page/mails/contact/AddMiniContactPage","@social-mail/social-mail-client/dist/common/StringFormat","@social-mail/social-mail-client/dist/web/page/channels/detail/ChannelDetailPage","@social-mail/social-mail-client/dist/web/page/channels/services/ChannelService","@social-mail/social-mail-client/dist/web/page/channels/subscribers/ChannelSubscribersPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/add/AddSubscriberPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/rights/UpdateRightsPage","@social-mail/social-mail-client/dist/common/pages/drives/DriveListPage","@social-mail/social-mail-client/dist/common/pages/websites/manage/ManageWebSitePage","@social-mail/social-mail-client/dist/services/websites/WebSiteService","@social-mail/social-mail-client/dist/common/pages/websites/studio/WebSiteStudioPage","@social-mail/social-mail-client/dist/common/pages/websites/templates/ChooseWebSiteTemplatePage","@social-mail/social-mail-client/dist/services/files/MimeTypeService","@social-mail/social-mail-client/dist/common/pages/websites/templates/TemplateService","@social-mail/social-mail-client/dist/common/controls/tree/FileTreeView","@social-mail/social-mail-client/dist/site-editor/editor/WebSitePageEditor","@social-mail/social-mail-client/dist/site-editor/editor/HtmlPageEditor","@social-mail/social-mail-client/dist/site-editor/drag-drop/DragDropHelper","@social-mail/social-mail-client/dist/site-editor/toolbars/UndoRedoToolbar","@social-mail/social-mail-client/dist/site-editor/toolbars/EditorToolbar","@social-mail/social-mail-client/dist/site-editor/blocks/WrapGrid","@social-mail/social-mail-client/dist/site-editor/blocks/Block","@social-mail/social-mail-client/dist/site-editor/blocks/BodyStyles","@social-mail/social-mail-client/dist/site-editor/styler/StylerSets","@social-mail/social-mail-client/dist/site-editor/styler/Styler","@social-mail/social-mail-client/dist/site-editor/properties/Properties","@social-mail/social-mail-client/dist/site-editor/properties/groups/LayoutEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/PropertyEditor","@social-mail/social-mail-client/dist/site-editor/styler/StylerSet","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBorder","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/display","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/flex/flex","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/items-position/itemsPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/layout","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSizes","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSpace","@social-mail/social-mail-client/dist/site-editor/styler/properties/text/stylerText","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBackground","@social-mail/social-mail-client/dist/site-editor/styler/properties/color-sets/stylerColorSets","@social-mail/social-mail-client/dist/site-editor/styler/properties/img/stylerImage","@social-mail/social-mail-client/dist/site-editor/styler/properties/scroll/stylerOverflow","@social-mail/social-mail-client/dist/site-editor/styler/properties/effects","@social-mail/social-mail-client/dist/site-editor/styler/properties/transform/stylerTransform","@social-mail/social-mail-client/dist/site-editor/styler/properties/child-size/stylerChildSize","@social-mail/social-mail-client/dist/site-editor/properties/groups/TextPropertyEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/SizeEditorControl","@social-mail/social-mail-client/dist/site-editor/properties/groups/BorderGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SizeGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SpaceGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/PositionGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/BackgroundGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/AttributeEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/ImageEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/ScrollGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/EffectGroup","@social-mail/social-mail-client/dist/site-editor/properties/groups/TransformGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/ChildSizeGroupEditor","@social-mail/social-mail-client/dist/site-editor/editor/SelectedElement","@social-mail/social-mail-client/dist/site-editor/blocks/ImageBox","@social-mail/social-mail-client/dist/site-editor/blocks/defaultImage","@social-mail/social-mail-client/dist/site-editor/blocks/RowBox","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/row.png","@social-mail/social-mail-client/dist/site-editor/blocks/ColumnBox","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/column.png","@social-mail/social-mail-client/dist/site-editor/blocks/VerticalImageBox","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/vertical-image-box.png","@social-mail/social-mail-client/dist/site-editor/blocks/Image","@social-mail/social-mail-client/dist/site-editor/blocks/ImageCard","@social-mail/social-mail-client/dist/site-editor/blocks/TextBox","@social-mail/social-mail-client/dist/site-editor/blocks/Card","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/card.png","@social-mail/social-mail-client/dist/site-editor/blocks/List","@social-mail/social-mail-client/dist/site-editor/blocks/Components","@social-mail/social-mail-client/dist/site-editor/blocks/Buttons","@social-mail/social-mail-client/dist/site-editor/blocks/Columns2","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/column-2.png","@social-mail/social-mail-client/dist/site-editor/blocks/Columns3","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/column-3.png","@social-mail/social-mail-client/dist/site-editor/blocks/RightImageBox","@social-mail/social-mail-client/dist/site-editor/blocks/PriceBox","@social-mail/social-mail-client/dist/site-editor/blocks/Billboard","@social-mail/social-mail-client/dist/site-editor/blocks/OutlineText","@social-mail/social-mail-client/dist/site-editor/blocks/Carousel","@social-mail/social-mail-client/dist/site-editor/blocks/ImageGallery","@social-mail/social-mail-client/dist/site-editor/blocks/VideoPlayer","@social-mail/social-mail-client/dist/site-editor/blocks/BackgroundVideo","@social-mail/social-mail-client/dist/site-editor/blocks/TextMask","@social-mail/social-mail-client/dist/site-editor/blocks/MarqueeText","@social-mail/social-mail-client/dist/site-editor/blocks/ImageGrid","@social-mail/social-mail-client/dist/site-editor/blocks/BoxFrame","@social-mail/social-mail-client/dist/site-editor/blocks/InjectBox","@social-mail/social-mail-client/dist/site-editor/blocks/PDFFlipBook","@social-mail/social-mail-client/dist/site-editor/blocks/PDFViewer","@social-mail/social-mail-client/dist/site-editor/blocks/Banner","@social-mail/social-mail-client/dist/site-editor/editor/BreadCrum","@social-mail/social-mail-client/dist/site-editor/editor/LanguageDropDown","@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath","@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage","@social-mail/social-mail-client/dist/code-editor/CodeEditorPage","@social-mail/social-mail-client/dist/common/pages/websites/history/WebSiteHistory","@social-mail/social-mail-client/dist/common/pages/websites/view/ViewWebSitePage","@social-mail/social-mail-client/dist/common/pages/websites/blogs/WebSiteBlogsPage","@social-mail/social-mail-client/dist/common/pages/websites/blogs/LookupChannelPage","@social-mail/social-mail-client/dist/web/page/files/preview/document/DownloadZip","@social-mail/social-mail-client/dist/common/pages/user/change-password/ChangePasswordPage","@social-mail/social-mail-client/dist/common/pages/user/services/UserService","@social-mail/social-mail-client/dist/common/pages/user/multi-factor/MultiFactorSetupPage","@social-mail/social-mail-client/dist/common/pages/websites/list/WebSiteListPage","@social-mail/social-mail-client/dist/common/pages/websites/edit/WebSiteFolderEditor","@social-mail/social-mail-client/dist/common/pages/websites/edit/WebSiteFolderSettings","@social-mail/social-mail-client/dist/common/pages/stores/StoreDetailPage","@social-mail/social-mail-client/dist/services/store/StoreService","@social-mail/social-mail-client/dist/services/store/StoreOrderService","@social-mail/social-mail-client/dist/common/pages/stores/orders/EditOrderPage","@social-mail/social-mail-client/dist/common/controls/reference-editor/ReferenceEditor","@social-mail/social-mail-client/dist/common/pages/contacts/ContactEditorPage","@social-mail/social-mail-client/dist/services/contacts/ContactService","@social-mail/social-mail-client/dist/common/pages/stores/products/EditProductListPage","@social-mail/social-mail-client/dist/services/store/StoreItemService","@social-mail/social-mail-client/dist/common/pages/stores/products/EditProductDetailPage","@social-mail/social-mail-client/dist/common/pages/stores/products/ProductEditor","@social-mail/social-mail-client/dist/common/controls/tags/TagChips","@social-mail/social-mail-client/dist/common/folder-view/FolderViewControl","@social-mail/social-mail-client/dist/common/pages/stores/folders/EditItemFolderPage","@social-mail/social-mail-client/dist/common/pages/stores/products/html/Offsers","@social-mail/social-mail-client/dist/common/pages/stores/products/html/Specifications","@social-mail/social-mail-client/dist/common/pages/stores/products/html/ProductHtmlEditorPage","@social-mail/social-mail-client/dist/common/pages/stores/products/html/ProductHtmlEditor","@social-mail/social-mail-client/dist/common/controls/NavCrumbs","@social-mail/social-mail-client/dist/common/pages/stores/settings/EditSettingsPage","@social-mail/social-mail-client/dist/common/pages/stores/templates/EditStoreTemplatesPage","@social-mail/social-mail-client/dist/common/pages/user/access-tokens/AccessTokenListPage","@social-mail/social-mail-client/dist/common/controls/EntityListControl","@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage","@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneService","@social-mail/social-mail-client/dist/common/pages/dns/edit/DnsZoneEditorPage","@social-mail/social-mail-client/dist/common/pages/dns/edit/DnsRecordEditorPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxDetailPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/settings/EditSyncTargetPage","@social-mail/social-mail-client/dist/common/icons/Icons","@social-mail/social-mail-client/dist/common/pages/mailboxes/external-mailboxes/AddExternalMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/ExternalMailboxService","@social-mail/social-mail-client/dist/admin/pages/config/ConfigPage","@social-mail/social-mail-client/dist/admin/pages/relays/edit/EditRelayPage","@social-mail/social-mail-client/dist/admin/pages/repair/RepairPage","@social-mail/social-mail-client/dist/admin/pages/stores/AdminStoreList","@social-mail/social-mail-client/dist/admin/pages/stores/AdminStoreDetailPage","@social-mail/social-mail-client/dist/admin/pages/incoming-sms-sources/EditIncomingSmsSourcePage","@social-mail/social-mail-client/dist/common/pages/user/login/LoginPage","@social-mail/social-mail-client/dist/common/pages/user/forgot/ForgotPassword","@social-mail/social-mail-client/dist/admin/drawer/AdminDrawer","@social-mail/social-mail-client/dist/common/controls/menu/MenuItem","@social-mail/social-mail-client/dist/common/controls/ModuleInfo"]);
1979
+ ["@social-mail/social-mail-client/dist/admin/AdminAppIndex","@web-atoms/core/dist/Pack","@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp","@web-atoms/web-controls/dist/mobile-app/MobileApp","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/di/DISingleton","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/style/styled","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/web-controls/dist/PageNavigator","@web-atoms/web-controls/dist/desktop-app/DesktopApp","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/services/LoginService","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/SocialMailApp","@web-atoms/core/dist/core/InjectProperty","@social-mail/social-mail-client/dist/admin/commands/AdminCommands","@social-mail/social-mail-client/dist/admin/pages/home/AdminHome","@social-mail/social-mail-client/dist/admin/pages/domains/DomainListPage","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@social-mail/social-mail-client/dist/admin/pages/domains/services/AdminDomainService","@web-atoms/core/dist/di/DITransient","@web-atoms/core/dist/view-model/Action","@social-mail/social-mail-client/dist/admin/pages/domains/edit/EditDomainPage","@web-atoms/web-controls/dist/basic/Form","@social-mail/social-mail-client/dist/common/controls/form/RequiredFormField","@web-atoms/web-controls/dist/basic/FormField","@web-atoms/web-controls/dist/basic/styles/form-field-style","@web-atoms/web-controls/dist/basic/PasswordBox","@web-atoms/web-controls/dist/basic/styles/password-box-style","@web-atoms/web-controls/dist/basic/Checkbox","@web-atoms/web-controls/dist/basic/styles/checkbox-style","@web-atoms/web-controls/dist/basic/Expander","@web-atoms/web-controls/dist/basic/styles/expander-style","@social-mail/social-mail-client/dist/common/controls/buttons/IconButton","@social-mail/social-mail-client/dist/admin/pages/domains/edit/DomainKeySetupPage","@social-mail/social-mail-client/dist/common/controls/buttons/CopyIcon","@social-mail/social-mail-client/dist/admin/pages/domains/domain-user/DomainUserEditor","@social-mail/social-mail-client/dist/common/controls/drop-downs/user/UserDropDown","@web-atoms/web-controls/dist/basic/DropDown","@web-atoms/web-controls/dist/basic/styles/drop-down-style","@social-mail/social-mail-client/dist/admin/pages/users/services/AdminUserService","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/common/pages/folders/ChooserFolderPage","@social-mail/social-mail-client/dist/web/page/files/service/CloudFileService","@social-mail/social-mail-client/dist/services/files/LocalFileService","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/common/FileUploader","@social-mail/social-mail-client/dist/services/ffmpeg/FFService","@social-mail/social-mail-client/dist/common/Modules","@social-mail/social-mail-client/dist/common/controls/tree/TreeView","@social-mail/social-mail-client/dist/admin/pages/users/UserListPage","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/admin/pages/users/EditUserPage","@social-mail/social-mail-client/dist/common/validators/Validators","@social-mail/social-mail-client/dist/common/controls/password/PasswordStrength","@web-atoms/web-controls/dist/mobile-app/MasterDetailPage","@social-mail/social-mail-client/dist/admin/pages/users/UserDetailsPage","@social-mail/social-mail-client/dist/common/NumberFormats","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditor","@social-mail/social-mail-client/dist/admin/pages/users/domains/EditDomainUserPage","@social-mail/social-mail-client/dist/admin/pages/users/mailboxes/EditUserMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/MailboxService","@social-mail/social-mail-client/dist/admin/pages/users/files/EditFileAccessPage","@web-atoms/web-controls/dist/basic/ComboBox","@social-mail/social-mail-client/dist/admin/pages/users/phone-numbers/UpdatePhoneNumberPage","@social-mail/social-mail-client/dist/common/controls/countries/CountrySelect","@social-mail/social-mail-client/dist/common/controls/collection-editor/CollectionEditorEx","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxListPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxEditorPage","@social-mail/social-mail-client/dist/admin/pages/users/ChooseUserPage","@social-mail/social-mail-client/dist/common/commands/CommonCommands","@social-mail/social-mail-client/dist/web/page/mails/MailboxContacts","@social-mail/social-mail-client/dist/web/page/mails/service/MailService","@social-mail/social-mail-client/dist/common/events/CommonEvents","@social-mail/social-mail-client/dist/web/page/mails/ConversationPage","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@web-atoms/email-dom/dist/DomToString","@web-atoms/email-dom/dist/dom/StyleHelper","@web-atoms/email-dom/dist/style/mergeStyle","@social-mail/social-mail-client/dist/services/email/EmailContentDownloader","@social-mail/social-mail-client/dist/web/page/mails/service/EngagementService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@social-mail/social-mail-client/dist/web/commands/MailAppEvents","@social-mail/social-mail-client/dist/common/fileUrl","@web-atoms/web-controls/dist/basic/InlinePopupControl","@social-mail/social-mail-client/dist/web/page/mails/ComposeMailPage","@social-mail/social-mail-client/dist/common/controls/html/InlineHtmlEditorWithToolbar","@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor","@web-atoms/web-controls/dist/html-editor/commands/AddImage","@web-atoms/web-controls/dist/html-editor/commands/CommandButton","@web-atoms/web-controls/dist/html-editor/commands/HtmlCommands","@web-atoms/web-controls/dist/html-editor/commands/Toolbar","@web-atoms/web-controls/dist/html-editor/commands/Bold","@web-atoms/web-controls/dist/html-editor/commands/Command","@web-atoms/web-controls/dist/html-editor/commands/Italic","@web-atoms/web-controls/dist/html-editor/commands/Underline","@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough","@web-atoms/web-controls/dist/html-editor/commands/Align","@web-atoms/web-controls/dist/basic/PopupButton","@web-atoms/web-controls/dist/basic/styles/popup-button-style","@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule","@web-atoms/web-controls/dist/html-editor/commands/Separator","@web-atoms/web-controls/dist/html-editor/commands/Headings","@web-atoms/web-controls/dist/html-editor/commands/ChangeColor","@web-atoms/web-controls/dist/html-editor/commands/ChangeFont","@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize","@web-atoms/web-controls/dist/html-editor/commands/NumberedList","@web-atoms/web-controls/dist/html-editor/commands/UnorderedList","@web-atoms/web-controls/dist/html-editor/commands/IndentLess","@web-atoms/web-controls/dist/html-editor/commands/IndentMore","@web-atoms/web-controls/dist/html-editor/commands/AddLink","@web-atoms/core/dist/web/controls/AtomToggleButtonBar","@web-atoms/core/dist/web/styles/AtomToggleButtonBarStyle","@web-atoms/core/dist/web/styles/AtomListBoxStyle","@web-atoms/core/dist/web/controls/AtomListBox","@web-atoms/core/dist/web/controls/AtomItemsControl","@web-atoms/core/dist/core/AtomEnumerator","@web-atoms/web-controls/dist/html-editor/commands/Unlink","@web-atoms/web-controls/dist/html-editor/commands/RemoveFormat","@web-atoms/web-controls/dist/html-editor/commands/Source","@web-atoms/web-controls/dist/basic/UploadEvent","@web-atoms/web-controls/dist/basic/TitleEditor","@web-atoms/web-controls/dist/basic/styles/title-editor-style","@social-mail/social-mail-client/dist/common/controls/email-recipients/EmailRecipientChips","@web-atoms/web-controls/dist/basic/AtomChips","@web-atoms/web-controls/dist/basic/Chip","@web-atoms/web-controls/dist/basic/styles/chip-style","@web-atoms/web-controls/dist/basic/styles/chips-style","@web-atoms/web-controls/dist/basic/styles/item-suggestion-style","@social-mail/social-mail-client/dist/services/email-addresses/EmailAddressService","@social-mail/social-mail-client/dist/web/page/templates/social/SocialTemplate","@social-mail/social-mail-client/dist/services/Emoji","@social-mail/social-mail-client/dist/services/socket/sockets","@web-atoms/web-controls/dist/basic/LimitedText","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/common/pages/logs/LogsPage","@social-mail/social-mail-client/dist/common/pages/logs/services/AppLogService","@social-mail/social-mail-client/dist/web/page/mails/detail/MailDetailPage","@social-mail/social-mail-client/dist/common/controls/file-preview/FilePreview","@social-mail/social-mail-client/dist/web/commands/AppCommands","@social-mail/social-mail-client/dist/web/page/home/HomePage","@social-mail/social-mail-client/dist/web/page/files/FolderPage","@social-mail/social-mail-client/dist/common/controls/drag-drop/FilesDragDrop","@social-mail/social-mail-client/dist/web/page/files/shares/EditSharesPage","@social-mail/social-mail-client/dist/services/files/FileShareService","@social-mail/social-mail-client/dist/web/page/files/shares/AddSharePage","@web-atoms/web-controls/dist/basic/Switch","@web-atoms/web-controls/dist/basic/styles/switch-style","@web-atoms/web-controls/dist/basic/DateField","@web-atoms/web-controls/dist/basic/Calendar","@web-atoms/web-controls/dist/basic/Select","@web-atoms/web-controls/dist/basic/styles/calendar-style","@web-atoms/web-controls/dist/basic/TimeEditor","@web-atoms/web-controls/dist/basic/styles/time-editor-style","@web-atoms/web-controls/dist/basic/styles/date-field-style","@social-mail/social-mail-client/dist/web/page/templates/EditTemplatePage","@social-mail/social-mail-client/dist/services/mime-service/MimeNode","@social-mail/social-mail-client/dist/common/QueryIterator","@social-mail/social-mail-client/dist/services/mime-service/AttachmentFile","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentType","@social-mail/social-mail-client/dist/services/mime-service/parsePairs","@social-mail/social-mail-client/dist/services/mime-service/tokenizer","@social-mail/social-mail-client/dist/services/mime-service/HeaderContentDisposition","@social-mail/social-mail-client/dist/services/mime-service/encoder/word-encoding","@social-mail/social-mail-client/dist/services/mime-service/encoder/RawBuffer","@social-mail/social-mail-client/dist/services/mime-service/encoder/base64-to-blob","@social-mail/social-mail-client/dist/services/mime-service/encoder/quoted-printable","@social-mail/social-mail-client/dist/services/mime-service/MimeMessage","@social-mail/social-mail-client/dist/services/mime-service/stream/LineStream","@social-mail/social-mail-client/dist/services/mime-service/stream/TextWriter","@social-mail/social-mail-client/dist/common/pages/files/FileHistoryPage","@social-mail/social-mail-client/dist/services/files/FileHistoryService","@social-mail/social-mail-client/dist/web/page/files/preview/image/PreviewImage","@web-atoms/web-controls/dist/basic/PinchZoomView","@web-atoms/web-controls/dist/basic/styles/pinch-zoom-view-style","@social-mail/social-mail-client/dist/web/page/files/preview/document/PreviewDocument","@social-mail/social-mail-client/dist/web/page/files/preview/document/PreviewPDF","@social-mail/social-mail-client/dist/web/page/files/preview/media/PreviewMedia","@web-atoms/web-controls/dist/player/AtomVideoPlayer","@social-mail/social-mail-client/dist/web/page/users/SignupPage","@web-atoms/web-controls/dist/basic/MaskedInput","@web-atoms/web-controls/dist/basic/styles/masked-input-style","@social-mail/social-mail-client/dist/common/controls/qrcode/QRCode","@social-mail/social-mail-client/dist/common/form/AppForm","@social-mail/social-mail-client/dist/services/FileTypes","@social-mail/social-mail-client/content/images/icons/audio.svg","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposeBox","@social-mail/social-mail-client/dist/common/controls/audio/AudioRecorder","@web-atoms/web-controls/dist/mobile-app/BottomPopup","@web-atoms/web-controls/dist/animations/Animations","@social-mail/social-mail-client/dist/common/controls/audio/WebRTCService","@social-mail/social-mail-client/dist/common/controls/buttons/RoundButton","@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor","@web-atoms/web-controls/dist/html-editor/commands/AttachFile","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/Insert","@social-mail/social-mail-client/dist/code-editor/CodeSnippetPage","@social-mail/social-mail-client/dist/code-editor/MonacoService","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/Attach","@social-mail/social-mail-client/dist/common/controls/Loader","@social-mail/social-mail-client/content/images/gif/loader.gif","@social-mail/social-mail-client/dist/common/controls/mailboxes/MailboxDropDown","@social-mail/social-mail-client/dist/common/controls/emoji-picker/EmojiPicker","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@social-mail/social-mail-client/dist/web/page/mails/engagements/EngagementDetails","@web-atoms/web-controls/dist/basic/ToggleButtonBar","@web-atoms/web-controls/dist/basic/styles/toggle-button-bar-style","@social-mail/social-mail-client/dist/web/page/mails/unsubscribe/UnsubscribeWindow","@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposePage","@social-mail/social-mail-client/dist/common/controls/email-recipients/EmailLabel","@social-mail/social-mail-client/dist/web/page/mails/ConversationTags","@social-mail/social-mail-client/dist/web/page/mails/ConversationTagChips","@social-mail/social-mail-client/dist/web/page/mails/ChooseMailboxPage","@social-mail/social-mail-client/dist/common/pages/folders/ChooseTemplatePage","@web-atoms/web-controls/dist/basic/Resizable","@social-mail/social-mail-client/dist/web/page/mails/contact/AddMiniContactPage","@social-mail/social-mail-client/dist/common/StringFormat","@social-mail/social-mail-client/dist/web/page/channels/detail/ChannelDetailPage","@social-mail/social-mail-client/dist/web/page/channels/services/ChannelService","@social-mail/social-mail-client/dist/web/page/channels/subscribers/ChannelSubscribersPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/add/AddSubscriberPage","@social-mail/social-mail-client/dist/web/page/channels/subscribers/rights/UpdateRightsPage","@social-mail/social-mail-client/dist/common/pages/drives/DriveListPage","@social-mail/social-mail-client/dist/common/pages/websites/manage/ManageWebSitePage","@social-mail/social-mail-client/dist/services/websites/WebSiteService","@social-mail/social-mail-client/dist/common/pages/websites/studio/WebSiteStudioPage","@social-mail/social-mail-client/dist/common/pages/websites/templates/ChooseWebSiteTemplatePage","@social-mail/social-mail-client/dist/services/files/MimeTypeService","@social-mail/social-mail-client/dist/common/pages/websites/templates/TemplateService","@social-mail/social-mail-client/dist/common/controls/tree/FileTreeView","@social-mail/social-mail-client/dist/site-editor/editor/WebSitePageEditor","@social-mail/social-mail-client/dist/site-editor/editor/HtmlPageEditor","@social-mail/social-mail-client/dist/site-editor/drag-drop/DragDropHelper","@social-mail/social-mail-client/dist/site-editor/toolbars/UndoRedoToolbar","@social-mail/social-mail-client/dist/site-editor/toolbars/EditorToolbar","@social-mail/social-mail-client/dist/site-editor/blocks/WrapGrid","@social-mail/social-mail-client/dist/site-editor/blocks/Block","@social-mail/social-mail-client/dist/site-editor/blocks/BodyStyles","@social-mail/social-mail-client/dist/site-editor/styler/StylerSets","@social-mail/social-mail-client/dist/site-editor/styler/Styler","@social-mail/social-mail-client/dist/site-editor/properties/Properties","@social-mail/social-mail-client/dist/site-editor/properties/groups/LayoutEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/PropertyEditor","@social-mail/social-mail-client/dist/site-editor/styler/StylerSet","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBorder","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/display","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/flex/flex","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/items-position/itemsPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/layout","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerPosition","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSizes","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSpace","@social-mail/social-mail-client/dist/site-editor/styler/properties/text/stylerText","@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBackground","@social-mail/social-mail-client/dist/site-editor/styler/properties/color-sets/stylerColorSets","@social-mail/social-mail-client/dist/site-editor/styler/properties/img/stylerImage","@social-mail/social-mail-client/dist/site-editor/styler/properties/scroll/stylerOverflow","@social-mail/social-mail-client/dist/site-editor/styler/properties/effects","@social-mail/social-mail-client/dist/site-editor/styler/properties/transform/stylerTransform","@social-mail/social-mail-client/dist/site-editor/styler/properties/child-size/stylerChildSize","@social-mail/social-mail-client/dist/site-editor/properties/groups/TextPropertyEditor","@social-mail/social-mail-client/dist/site-editor/properties/controls/SizeEditorControl","@social-mail/social-mail-client/dist/site-editor/properties/groups/BorderGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SizeGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/SpaceGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/PositionGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/BackgroundGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/AttributeEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/ImageEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/ScrollGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/EffectGroup","@social-mail/social-mail-client/dist/site-editor/properties/groups/TransformGroupEditor","@social-mail/social-mail-client/dist/site-editor/properties/groups/ChildSizeGroupEditor","@social-mail/social-mail-client/dist/site-editor/editor/SelectedElement","@social-mail/social-mail-client/dist/site-editor/blocks/ImageBox","@social-mail/social-mail-client/dist/site-editor/blocks/defaultImage","@social-mail/social-mail-client/dist/site-editor/blocks/RowBox","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/row.png","@social-mail/social-mail-client/dist/site-editor/blocks/ColumnBox","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/column.png","@social-mail/social-mail-client/dist/site-editor/blocks/VerticalImageBox","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/vertical-image-box.png","@social-mail/social-mail-client/dist/site-editor/blocks/Image","@social-mail/social-mail-client/dist/site-editor/blocks/ImageCard","@social-mail/social-mail-client/dist/site-editor/blocks/TextBox","@social-mail/social-mail-client/dist/site-editor/blocks/Card","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/card.png","@social-mail/social-mail-client/dist/site-editor/blocks/List","@social-mail/social-mail-client/dist/site-editor/blocks/Components","@social-mail/social-mail-client/dist/site-editor/blocks/Buttons","@social-mail/social-mail-client/dist/site-editor/blocks/Columns2","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/column-2.png","@social-mail/social-mail-client/dist/site-editor/blocks/Columns3","@social-mail/social-mail-client/content/images/svg/html-editor/layouts/column-3.png","@social-mail/social-mail-client/dist/site-editor/blocks/RightImageBox","@social-mail/social-mail-client/dist/site-editor/blocks/PriceBox","@social-mail/social-mail-client/dist/site-editor/blocks/Billboard","@social-mail/social-mail-client/dist/site-editor/blocks/OutlineText","@social-mail/social-mail-client/dist/site-editor/blocks/Carousel","@social-mail/social-mail-client/dist/site-editor/blocks/ImageGallery","@social-mail/social-mail-client/dist/site-editor/blocks/VideoPlayer","@social-mail/social-mail-client/dist/site-editor/blocks/BackgroundVideo","@social-mail/social-mail-client/dist/site-editor/blocks/TextMask","@social-mail/social-mail-client/dist/site-editor/blocks/MarqueeText","@social-mail/social-mail-client/dist/site-editor/blocks/ImageGrid","@social-mail/social-mail-client/dist/site-editor/blocks/BoxFrame","@social-mail/social-mail-client/dist/site-editor/blocks/InjectBox","@social-mail/social-mail-client/dist/site-editor/blocks/PDFFlipBook","@social-mail/social-mail-client/dist/site-editor/blocks/PDFViewer","@social-mail/social-mail-client/dist/site-editor/blocks/Banner","@social-mail/social-mail-client/dist/site-editor/editor/BreadCrum","@social-mail/social-mail-client/dist/site-editor/editor/LanguageDropDown","@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath","@social-mail/social-mail-client/dist/site-editor/editor/UndoRedo","@social-mail/social-mail-client/dist/site-editor/editor/DomHelper","@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage","@social-mail/social-mail-client/dist/code-editor/CodeEditorPage","@social-mail/social-mail-client/dist/common/pages/websites/history/WebSiteHistory","@social-mail/social-mail-client/dist/common/pages/websites/view/ViewWebSitePage","@social-mail/social-mail-client/dist/common/pages/websites/blogs/WebSiteBlogsPage","@social-mail/social-mail-client/dist/common/pages/websites/blogs/LookupChannelPage","@social-mail/social-mail-client/dist/web/page/files/preview/document/DownloadZip","@social-mail/social-mail-client/dist/common/pages/user/change-password/ChangePasswordPage","@social-mail/social-mail-client/dist/common/pages/user/services/UserService","@social-mail/social-mail-client/dist/common/pages/user/multi-factor/MultiFactorSetupPage","@social-mail/social-mail-client/dist/common/pages/websites/list/WebSiteListPage","@social-mail/social-mail-client/dist/common/pages/websites/edit/WebSiteFolderEditor","@social-mail/social-mail-client/dist/common/pages/websites/edit/WebSiteFolderSettings","@social-mail/social-mail-client/dist/common/pages/stores/StoreDetailPage","@social-mail/social-mail-client/dist/services/store/StoreService","@social-mail/social-mail-client/dist/services/store/StoreOrderService","@social-mail/social-mail-client/dist/common/pages/stores/orders/EditOrderPage","@social-mail/social-mail-client/dist/common/controls/reference-editor/ReferenceEditor","@social-mail/social-mail-client/dist/common/pages/contacts/ContactEditorPage","@social-mail/social-mail-client/dist/services/contacts/ContactService","@social-mail/social-mail-client/dist/common/pages/stores/products/EditProductListPage","@social-mail/social-mail-client/dist/services/store/StoreItemService","@social-mail/social-mail-client/dist/common/pages/stores/products/EditProductDetailPage","@social-mail/social-mail-client/dist/common/pages/stores/products/ProductEditor","@social-mail/social-mail-client/dist/common/controls/tags/TagChips","@social-mail/social-mail-client/dist/common/folder-view/FolderViewControl","@social-mail/social-mail-client/dist/common/pages/stores/folders/EditItemFolderPage","@social-mail/social-mail-client/dist/common/pages/stores/products/html/Offsers","@social-mail/social-mail-client/dist/common/pages/stores/products/html/Specifications","@social-mail/social-mail-client/dist/common/pages/stores/products/html/ProductHtmlEditorPage","@social-mail/social-mail-client/dist/common/pages/stores/products/html/ProductHtmlEditor","@social-mail/social-mail-client/dist/common/controls/NavCrumbs","@social-mail/social-mail-client/dist/common/pages/stores/settings/EditSettingsPage","@social-mail/social-mail-client/dist/common/pages/stores/templates/EditStoreTemplatesPage","@social-mail/social-mail-client/dist/common/pages/user/access-tokens/AccessTokenListPage","@social-mail/social-mail-client/dist/common/controls/EntityListControl","@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage","@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneService","@social-mail/social-mail-client/dist/common/pages/dns/edit/DnsZoneEditorPage","@social-mail/social-mail-client/dist/common/pages/dns/edit/DnsRecordEditorPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/MailboxDetailPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/settings/EditSyncTargetPage","@social-mail/social-mail-client/dist/common/icons/Icons","@social-mail/social-mail-client/dist/common/pages/mailboxes/external-mailboxes/AddExternalMailboxPage","@social-mail/social-mail-client/dist/common/pages/mailboxes/services/ExternalMailboxService","@social-mail/social-mail-client/dist/admin/pages/config/ConfigPage","@social-mail/social-mail-client/dist/admin/pages/relays/edit/EditRelayPage","@social-mail/social-mail-client/dist/admin/pages/repair/RepairPage","@social-mail/social-mail-client/dist/admin/pages/stores/AdminStoreList","@social-mail/social-mail-client/dist/admin/pages/stores/AdminStoreDetailPage","@social-mail/social-mail-client/dist/admin/pages/incoming-sms-sources/EditIncomingSmsSourcePage","@social-mail/social-mail-client/dist/common/pages/user/login/LoginPage","@social-mail/social-mail-client/dist/common/pages/user/forgot/ForgotPassword","@social-mail/social-mail-client/dist/admin/drawer/AdminDrawer","@social-mail/social-mail-client/dist/common/controls/menu/MenuItem","@social-mail/social-mail-client/dist/common/controls/ModuleInfo"]);
1980
1980
 
1981
1981
  System.register([], function (_export, _context) {
1982
1982
  "use strict";
@@ -10628,6 +10628,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomLoader", "@web-atoms/co
10628
10628
  transform: translate(-100%,0);
10629
10629
  }
10630
10630
 
10631
+ &[data-page-removed] {
10632
+ display: none;
10633
+ z-index: -1000;
10634
+ }
10635
+
10631
10636
  &[data-hide-toolbar=true] {
10632
10637
 
10633
10638
  & > [data-page-element=icon] {
@@ -10677,6 +10682,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomLoader", "@web-atoms/co
10677
10682
  _export("BasePage", BasePage = class BasePage extends AtomControl {
10678
10683
  constructor() {
10679
10684
  super(...arguments);
10685
+ this.keep = false;
10680
10686
  this.disableAutoFocus = false;
10681
10687
  }
10682
10688
  get route() {
@@ -10695,7 +10701,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomLoader", "@web-atoms/co
10695
10701
  return;
10696
10702
  }
10697
10703
  this.routeUrl = url;
10698
- (_c = this.reouteDisposable) === null || _c === void 0 ? void 0 : _c.dispose();
10704
+ (_c = this.routeDisposable) === null || _c === void 0 ? void 0 : _c.dispose();
10699
10705
  let last = void 0;
10700
10706
  setTimeout(() => last = url, 100);
10701
10707
  const state = {
@@ -10723,7 +10729,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomLoader", "@web-atoms/co
10723
10729
  }
10724
10730
  }
10725
10731
  };
10726
- this.reouteDisposable = this.registerDisposable(d);
10732
+ this.routeDisposable = this.registerDisposable(d);
10727
10733
  }
10728
10734
  get hideToolbar() {
10729
10735
  var _b, _c;
@@ -11010,7 +11016,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomLoader", "@web-atoms/co
11010
11016
  if (!element) {
11011
11017
  return;
11012
11018
  }
11013
- element.dataset.pageState = "hidden";
11019
+ element.setAttribute("data-page-state", "hidden");
11020
+ if (this.keep) {
11021
+ setTimeout(() => element.setAttribute("data-page-removed", "true"), 400);
11022
+ return;
11023
+ }
11014
11024
  element._logicalParent = element.parentElement;
11015
11025
  this.scrollTop = (_b = this.contentElement) === null || _b === void 0 ? void 0 : _b.scrollTop;
11016
11026
  setTimeout(() => {
@@ -11018,12 +11028,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomLoader", "@web-atoms/co
11018
11028
  }, 400);
11019
11029
  }
11020
11030
  show() {
11021
- this.element._logicalParent.appendChild(this.element);
11031
+ if (this.keep) {
11032
+ this.element.removeAttribute("data-page-removed");
11033
+ } else {
11034
+ this.element._logicalParent.appendChild(this.element);
11035
+ }
11022
11036
  setTimeout(() => {
11023
11037
  if (this.scrollTop) {
11024
11038
  this.contentElement.scrollTop = this.scrollTop;
11025
11039
  }
11026
- this.element.dataset.pageState = "ready";
11040
+ this.element.setAttribute("data-page-state", "ready");
11027
11041
  }, 1);
11028
11042
  }
11029
11043
  });
@@ -48021,12 +48035,12 @@ System.register(["@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XN
48021
48035
  }, XNode.create("i", {
48022
48036
  "data-click-event": "undo",
48023
48037
  title: "Undo",
48024
- "data-disabled": Bind.oneWay(editor => editor.undoList.length === 0),
48038
+ "data-disabled": Bind.oneWay(editor => !editor.undoRedo.canUndo),
48025
48039
  class: "fas fa-undo"
48026
48040
  }), XNode.create("i", {
48027
48041
  "data-click-event": "redo",
48028
48042
  title: "Redo",
48029
- "data-disabled": Bind.oneWay(editor => editor.redoList.length === 0),
48043
+ "data-disabled": Bind.oneWay(editor => !editor.undoRedo.canRedo),
48030
48044
  class: "fas fa-redo"
48031
48045
  }));
48032
48046
  }
@@ -53012,10 +53026,232 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
53012
53026
 
53013
53027
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath");
53014
53028
 
53015
- System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/controls/AtomControl", "../drag-drop/DragDropHelper", "../toolbars/UndoRedoToolbar", "../blocks/WrapGrid", "../toolbars/EditorToolbar", "../properties/Properties", "../styler/StylerSet", "./SelectedElement", "@web-atoms/core/dist/core/AtomBinder", "../blocks/ImageBox", "../blocks/RowBox", "../blocks/ColumnBox", "../blocks/VerticalImageBox", "../blocks/Image", "../blocks/ImageCard", "../blocks/TextBox", "../blocks/Card", "../blocks/List", "../blocks/Components", "@web-atoms/core/dist/core/types", "../blocks/Buttons", "../blocks/Columns2", "../blocks/Columns3", "../blocks/RightImageBox", "@web-atoms/core/dist/web/core/AtomUI", "../blocks/PriceBox", "@web-atoms/core/dist/core/BindableProperty", "../blocks/Billboard", "../blocks/OutlineText", "../blocks/Carousel", "../blocks/ImageGallery", "@web-atoms/web-controls/dist/basic/InlinePopup", "../blocks/VideoPlayer", "../blocks/BackgroundVideo", "../blocks/TextMask", "../blocks/MarqueeText", "../blocks/ImageGrid", "../blocks/BoxFrame", "../blocks/InjectBox", "../blocks/PDFFlipBook", "../blocks/PDFViewer", "../blocks/Banner", "./BreadCrum", "./LanguageDropDown", "./webComponentsPath"], function (_export, _context) {
53029
+ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _context) {
53030
+ "use strict";
53031
+
53032
+ var AtomBinder, UndoRedo;
53033
+ _export("default", void 0);
53034
+ return {
53035
+ setters: [function (_webAtomsCoreDistCoreAtomBinder) {
53036
+ AtomBinder = _webAtomsCoreDistCoreAtomBinder.AtomBinder;
53037
+ }],
53038
+ execute: function () {
53039
+ _export("default", UndoRedo = class UndoRedo {
53040
+ constructor(doc, page) {
53041
+ this.page = page;
53042
+ this.undoStack = [];
53043
+ this.redoStack = [];
53044
+ this.changed = false;
53045
+ this.canUndo = false;
53046
+ this.canRedo = false;
53047
+ this.silent = false;
53048
+ this.observer = new MutationObserver(x => this.observe(x));
53049
+ this.observer.observe(doc, {
53050
+ childList: true,
53051
+ subtree: true,
53052
+ attributes: true,
53053
+ attributeOldValue: true,
53054
+ characterData: true,
53055
+ characterDataOldValue: true
53056
+ });
53057
+ }
53058
+ observe(records) {
53059
+ if (this.silent) {
53060
+ return;
53061
+ }
53062
+ if (!this.changed) {
53063
+ AtomBinder.refreshValue(this.page, "modifiedDocument");
53064
+ this.page.element.dispatchEvent(new CustomEvent("htmlPageChanged", {
53065
+ detail: null,
53066
+ bubbles: true
53067
+ }));
53068
+ this.changed = true;
53069
+ }
53070
+ this.canUndo = true;
53071
+ this.canRedo = false;
53072
+ this.redoStack.length = 0;
53073
+ const undo = [];
53074
+ const redo = [];
53075
+ for (const x of records) {
53076
+ const target = x.target;
53077
+ const node = x.target;
53078
+ switch (x.type) {
53079
+ case "attributes":
53080
+ const value = target.getAttributeNS(x.attributeNamespace, x.attributeName);
53081
+ if (value === x.oldValue) {
53082
+ break;
53083
+ }
53084
+ undo.splice(0, 0, () => target.setAttributeNS(x.attributeNamespace, x.attributeName, x.oldValue));
53085
+ redo.push(() => target.setAttributeNS(x.attributeNamespace, x.attributeName, value));
53086
+ break;
53087
+ case "characterData":
53088
+ const data = node.data;
53089
+ if (data === x.oldValue) {
53090
+ break;
53091
+ }
53092
+ undo.splice(0, 0, () => node.data = x.oldValue);
53093
+ redo.push(() => node.data = data);
53094
+ break;
53095
+ case "childList":
53096
+ const {
53097
+ addedNodes,
53098
+ removedNodes,
53099
+ previousSibling,
53100
+ nextSibling
53101
+ } = x;
53102
+ for (let index = 0; index < addedNodes.length; index++) {
53103
+ const added = addedNodes[index];
53104
+ let {
53105
+ parentNode
53106
+ } = added;
53107
+ undo.splice(0, 0, () => added.parentNode.removeChild(added));
53108
+ if (previousSibling) {
53109
+ redo.push(() => previousSibling.parentNode ? parentNode.insertBefore(added, previousSibling.nextSibling) : parentNode.append(added));
53110
+ continue;
53111
+ }
53112
+ if (nextSibling) {
53113
+ parentNode !== null && parentNode !== void 0 ? parentNode : parentNode = nextSibling.parentNode;
53114
+ redo.push(() => parentNode.insertBefore(added, nextSibling));
53115
+ continue;
53116
+ }
53117
+ redo.push(() => target.append(added));
53118
+ }
53119
+ for (let index = 0; index < removedNodes.length; index++) {
53120
+ const removed = removedNodes[index];
53121
+ redo.splice(0, 0, () => removed.parentNode.removeChild(removed));
53122
+ if (previousSibling) {
53123
+ undo.push(() => previousSibling.nextSibling ? previousSibling.parentNode.insertBefore(removed, previousSibling.nextSibling) : previousSibling.parentElement.append(removed));
53124
+ continue;
53125
+ }
53126
+ if (nextSibling) {
53127
+ undo.push(() => nextSibling.parentNode.insertBefore(removed, nextSibling));
53128
+ continue;
53129
+ }
53130
+ undo.push(() => target.append(removed));
53131
+ }
53132
+ break;
53133
+ }
53134
+ }
53135
+ if (undo.length && redo.length) {
53136
+ this.undoStack.push({
53137
+ undo,
53138
+ redo
53139
+ });
53140
+ }
53141
+ }
53142
+ dispose() {
53143
+ this.observer.disconnect();
53144
+ this.observer = null;
53145
+ }
53146
+ undo() {
53147
+ if (!this.undoStack.length) {
53148
+ this.canUndo = false;
53149
+ return;
53150
+ }
53151
+ this.silent = true;
53152
+ const change = this.undoStack.pop();
53153
+ this.redoStack.push(change);
53154
+ this.canRedo = true;
53155
+ for (const element of change.undo) {
53156
+ element();
53157
+ }
53158
+ this.canUndo = this.undoStack.length > 0;
53159
+ setTimeout(() => this.silent = false, 10);
53160
+ }
53161
+ redo() {
53162
+ if (!this.redoStack.length) {
53163
+ this.canRedo = false;
53164
+ return;
53165
+ }
53166
+ this.silent = true;
53167
+ const change = this.redoStack.pop();
53168
+ this.undoStack.push(change);
53169
+ this.canUndo = true;
53170
+ for (const element of change.redo) {
53171
+ element();
53172
+ }
53173
+ this.canRedo = this.redoStack.length > 0;
53174
+ setTimeout(() => this.silent = false, 10);
53175
+ }
53176
+ });
53177
+ }
53178
+ };
53179
+ });
53180
+ //# sourceMappingURL=UndoRedo.js.map
53181
+
53182
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/UndoRedo");
53183
+
53184
+ System.register(["tslib"], function (_export, _context) {
53016
53185
  "use strict";
53017
53186
 
53018
- var __awaiter, __decorate, __metadata, __rest, Bind, XNode, sleep, styled, Action, AtomControl, InstallDragDropHelper, UndoRedoToolbar, WrapGrid, EditorToolbar, Properties, StylerSet, SelectedElement, AtomBinder, ImageBox, RowBox, ColumnBox, VerticalImageBox, Image, ImageCard, TextBox, Card, List, BlogComponent, TypeWriterComponent, CancelToken, UMD, ImageLink, LinkButton, Columns2, Columns3, RightImageBox, descendentElementIterator, PriceTable, BindableProperty, Billboard, OutlineText, Carousel, ImageGallery, InlinePopupButton, VideoPlayer, BackgroundVideo, TextMask, MarqueeText, ImageGrid, BoxFrame, InjectBox, PDFFlipBook, PDFViewer, Banner, BreadCrum, LanguageDropDown, WebComponents, HtmlPageEditor, desktopWidth, tabletWidth, mobileWidth, languageSymbol;
53187
+ var __awaiter, DuplexStream, DomHelper;
53188
+ _export("default", void 0);
53189
+ return {
53190
+ setters: [function (_tslib) {
53191
+ __awaiter = _tslib.__awaiter;
53192
+ }],
53193
+ execute: function () {
53194
+ DuplexStream = class DuplexStream {
53195
+ constructor(element) {
53196
+ this.index = -1;
53197
+ this.array = [];
53198
+ const all = element.querySelectorAll("*");
53199
+ for (let index = 0; index < all.length; index++) {
53200
+ const e = all[index];
53201
+ this.array.push({
53202
+ e,
53203
+ text: e.innerHTML
53204
+ });
53205
+ }
53206
+ }
53207
+ next() {
53208
+ const index = this.index++;
53209
+ if (index >= this.array.length) {
53210
+ return {
53211
+ done: true
53212
+ };
53213
+ }
53214
+ return {
53215
+ index,
53216
+ value: this.array[index]
53217
+ };
53218
+ }
53219
+ reset(index) {
53220
+ this.index = index;
53221
+ }
53222
+ };
53223
+ _export("default", DomHelper = class DomHelper {
53224
+ static applyChanges(target, src) {
53225
+ return __awaiter(this, void 0, void 0, function* () {
53226
+ const persist = [];
53227
+ for (const element of Array.from(target.head.children)) {
53228
+ if (element.hasAttribute("remove-when-save")) {
53229
+ persist.push(element);
53230
+ continue;
53231
+ }
53232
+ if (element.tagName === "BASE") {
53233
+ persist.push(element);
53234
+ }
53235
+ }
53236
+ target.head.innerHTML = src.head.innerHTML;
53237
+ for (const element of persist) {
53238
+ target.head.insertAdjacentElement("afterbegin", element);
53239
+ }
53240
+ target.body.innerHTML = src.body.innerHTML;
53241
+ });
53242
+ }
53243
+ });
53244
+ }
53245
+ };
53246
+ });
53247
+ //# sourceMappingURL=DomHelper.js.map
53248
+
53249
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/DomHelper");
53250
+
53251
+ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/controls/AtomControl", "../drag-drop/DragDropHelper", "../toolbars/UndoRedoToolbar", "../blocks/WrapGrid", "../toolbars/EditorToolbar", "../properties/Properties", "../styler/StylerSet", "./SelectedElement", "@web-atoms/core/dist/core/AtomBinder", "../blocks/ImageBox", "../blocks/RowBox", "../blocks/ColumnBox", "../blocks/VerticalImageBox", "../blocks/Image", "../blocks/ImageCard", "../blocks/TextBox", "../blocks/Card", "../blocks/List", "../blocks/Components", "@web-atoms/core/dist/core/types", "../blocks/Buttons", "../blocks/Columns2", "../blocks/Columns3", "../blocks/RightImageBox", "@web-atoms/core/dist/web/core/AtomUI", "../blocks/PriceBox", "@web-atoms/core/dist/core/BindableProperty", "../blocks/Billboard", "../blocks/OutlineText", "../blocks/Carousel", "../blocks/ImageGallery", "@web-atoms/web-controls/dist/basic/InlinePopup", "../blocks/VideoPlayer", "../blocks/BackgroundVideo", "../blocks/TextMask", "../blocks/MarqueeText", "../blocks/ImageGrid", "../blocks/BoxFrame", "../blocks/InjectBox", "../blocks/PDFFlipBook", "../blocks/PDFViewer", "../blocks/Banner", "./BreadCrum", "./LanguageDropDown", "./webComponentsPath", "./UndoRedo", "./DomHelper"], function (_export, _context) {
53252
+ "use strict";
53253
+
53254
+ var __awaiter, __decorate, __metadata, __rest, Bind, XNode, sleep, styled, Action, AtomControl, InstallDragDropHelper, UndoRedoToolbar, WrapGrid, EditorToolbar, Properties, StylerSet, SelectedElement, AtomBinder, ImageBox, RowBox, ColumnBox, VerticalImageBox, Image, ImageCard, TextBox, Card, List, BlogComponent, TypeWriterComponent, CancelToken, UMD, ImageLink, LinkButton, Columns2, Columns3, RightImageBox, descendentElementIterator, PriceTable, BindableProperty, Billboard, OutlineText, Carousel, ImageGallery, InlinePopupButton, VideoPlayer, BackgroundVideo, TextMask, MarqueeText, ImageGrid, BoxFrame, InjectBox, PDFFlipBook, PDFViewer, Banner, BreadCrum, LanguageDropDown, WebComponents, UndoRedo, DomHelper, HtmlPageEditor, desktopWidth, tabletWidth, mobileWidth, languageSymbol;
53019
53255
  _export("default", void 0);
53020
53256
  return {
53021
53257
  setters: [function (_tslib) {
@@ -53126,6 +53362,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
53126
53362
  LanguageDropDown = _LanguageDropDown.default;
53127
53363
  }, function (_webComponentsPath) {
53128
53364
  WebComponents = _webComponentsPath.WebComponents;
53365
+ }, function (_UndoRedo) {
53366
+ UndoRedo = _UndoRedo.default;
53367
+ }, function (_DomHelper) {
53368
+ DomHelper = _DomHelper.default;
53129
53369
  }],
53130
53370
  execute: function () {
53131
53371
  styled.css`
@@ -53286,9 +53526,78 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
53286
53526
  mobileWidth = 480;
53287
53527
  languageSymbol = Symbol.for("language");
53288
53528
  _export("default", HtmlPageEditor = class HtmlPageEditor extends AtomControl {
53529
+ get modifiedDocument() {
53530
+ var _a;
53531
+ if (!this.undoRedo.changed) {
53532
+ return null;
53533
+ }
53534
+ const clone = this.htmlDocument.documentElement.cloneNode(true);
53535
+ const body = clone.querySelector("body");
53536
+ body.removeAttribute("contentEditable");
53537
+ body.removeAttribute("editing");
53538
+ body.removeAttribute("editing-lang");
53539
+ const all = clone.querySelectorAll("*");
53540
+ const clearChildren = [];
53541
+ const removeAll = [];
53542
+ for (let index = 0; index < all.length; index++) {
53543
+ const element = all[index];
53544
+ if (element.hasAttribute("remove-when-save")) {
53545
+ removeAll.push(element);
53546
+ continue;
53547
+ }
53548
+ if (element.tagName === "INJECT") {
53549
+ clearChildren.push(element);
53550
+ continue;
53551
+ }
53552
+ if (element.getAttribute("data-cursor-style") === "editing") {
53553
+ removeAll.push(element);
53554
+ continue;
53555
+ }
53556
+ element.removeAttribute("draggable");
53557
+ }
53558
+ for (const iterator of clearChildren) {
53559
+ iterator.innerHTML = "";
53560
+ }
53561
+ for (const iterator of removeAll) {
53562
+ iterator.remove();
53563
+ }
53564
+ if (clone.querySelector(`[styler-layout="component"]`)) {
53565
+ let componentScript = clone.querySelector("[styler-component-script]");
53566
+ if (!componentScript) {
53567
+ componentScript = this.htmlDocument.createElement("script");
53568
+ const head = clone.querySelector("head");
53569
+ head.appendChild(componentScript);
53570
+ }
53571
+ componentScript.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
53572
+ componentScript.setAttribute("styler-component-script", "component-script");
53573
+ }
53574
+ if (this.baseUrl) {
53575
+ if (!this.originalBaseUrl) {
53576
+ (_a = clone.querySelector("base")) === null || _a === void 0 ? void 0 : _a.remove();
53577
+ } else {
53578
+ const baseUrl = clone.querySelector("base");
53579
+ if (baseUrl) {
53580
+ baseUrl.setAttribute("href", this.originalBaseUrl);
53581
+ }
53582
+ }
53583
+ }
53584
+ return clone;
53585
+ }
53586
+ get modifiedPage() {
53587
+ var _a;
53588
+ return (_a = this.modifiedDocument) === null || _a === void 0 ? void 0 : _a.outerHTML;
53589
+ }
53590
+ get modifiedBody() {
53591
+ const doc = this.modifiedDocument;
53592
+ if (!doc) {
53593
+ return;
53594
+ }
53595
+ const body = doc.querySelector("body");
53596
+ return body.innerHTML;
53597
+ }
53289
53598
  get htmlPage() {
53290
- var _a, _b, _c;
53291
- return (_a = this.lastCommittedHtml) !== null && _a !== void 0 ? _a : (_c = (_b = this.htmlDocument) === null || _b === void 0 ? void 0 : _b.documentElement) === null || _c === void 0 ? void 0 : _c.outerHTML;
53599
+ var _a, _b;
53600
+ return (_b = (_a = this.htmlDocument) === null || _a === void 0 ? void 0 : _a.documentElement) === null || _b === void 0 ? void 0 : _b.outerHTML;
53292
53601
  }
53293
53602
  set htmlPage(v) {
53294
53603
  var _a;
@@ -53326,11 +53635,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
53326
53635
  constructor(app, e) {
53327
53636
  super(app, e);
53328
53637
  this.selection = new SelectedElement(this);
53329
- this.undoList = [];
53330
- this.redoList = [];
53638
+ this.undoRedo = {
53639
+ canUndo: false,
53640
+ canRedo: false,
53641
+ dispose() {}
53642
+ };
53331
53643
  this.pageVariables = [];
53332
- this.lastCommittedHtml = null;
53333
- this.lastCommittedBody = null;
53334
53644
  this.languages = null;
53335
53645
  this.hover = new SelectedElement(this);
53336
53646
  this.dropTarget = new SelectedElement(this);
@@ -53639,162 +53949,33 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
53639
53949
  this.commit();
53640
53950
  }
53641
53951
  }
53642
- commit() {
53643
- var _a;
53644
- this.redoList.clear();
53645
- const lastHtml = this.lastHtml;
53646
- const clone = this.htmlDocument.documentElement.cloneNode(true);
53647
- const currentHtml = clone.innerHTML;
53648
- if (lastHtml === currentHtml) {
53649
- return;
53650
- }
53651
- const body = clone.querySelector("body");
53652
- body.removeAttribute("contentEditable");
53653
- body.removeAttribute("editing");
53654
- body.removeAttribute("editing-lang");
53655
- const all = clone.querySelectorAll("*");
53656
- const clearChildren = [];
53657
- const removeAll = [];
53658
- for (let index = 0; index < all.length; index++) {
53659
- const element = all[index];
53660
- if (element.hasAttribute("remove-when-save")) {
53661
- removeAll.push(element);
53662
- continue;
53663
- }
53664
- if (element.tagName === "INJECT") {
53665
- clearChildren.push(element);
53666
- continue;
53667
- }
53668
- if (element.getAttribute("data-cursor-style") === "editing") {
53669
- removeAll.push(element);
53670
- continue;
53671
- }
53672
- element.removeAttribute("draggable");
53673
- }
53674
- for (const iterator of clearChildren) {
53675
- iterator.innerHTML = "";
53676
- }
53677
- for (const iterator of removeAll) {
53678
- iterator.remove();
53679
- }
53680
- if (clone.querySelector(`[styler-layout="component"]`)) {
53681
- let componentScript = clone.querySelector("[styler-component-script]");
53682
- if (!componentScript) {
53683
- componentScript = this.htmlDocument.createElement("script");
53684
- const head = clone.querySelector("head");
53685
- head.appendChild(componentScript);
53686
- }
53687
- componentScript.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
53688
- componentScript.setAttribute("styler-component-script", "component-script");
53689
- }
53690
- if (this.baseUrl) {
53691
- if (!this.originalBaseUrl) {
53692
- (_a = clone.querySelector("base")) === null || _a === void 0 ? void 0 : _a.remove();
53693
- } else {
53694
- const baseUrl = clone.querySelector("base");
53695
- if (baseUrl) {
53696
- baseUrl.setAttribute("href", this.originalBaseUrl);
53697
- }
53698
- }
53699
- }
53700
- if (!lastHtml) {
53701
- this.lastHtml = currentHtml;
53702
- this.lastCommittedHtml = clone.outerHTML;
53703
- this.lastCommittedBody = body.innerHTML;
53704
- return;
53705
- }
53706
- const currentCommitedHtml = clone.outerHTML;
53707
- if (this.lastCommittedHtml === currentCommitedHtml) {
53708
- return;
53709
- }
53710
- this.undoList.add(this.lastHtml);
53711
- this.lastHtml = currentHtml;
53712
- this.lastCommittedHtml = clone.outerHTML;
53713
- this.lastCommittedBody = body.innerHTML;
53714
- this.element.dispatchEvent(new CustomEvent("htmlPageChanged", {
53715
- detail: clone.outerHTML,
53716
- bubbles: true
53717
- }));
53718
- AtomBinder.refreshValue(this, "htmlPage");
53719
- setTimeout(() => {
53720
- this.selection.update();
53721
- this.hover.update();
53722
- }, 100);
53723
- }
53952
+ commit() {}
53724
53953
  undo() {
53725
- if (!this.undoList.length) {
53726
- return;
53727
- }
53728
- this.redoList.insert(this.redoList.length, this.htmlDocument.documentElement.innerHTML);
53729
- const lastHtml = this.undoList.pop();
53730
- this.htmlDocument.documentElement.innerHTML = lastHtml;
53731
- this.lastHtml = lastHtml;
53732
- this.htmlDocument.body.contentEditable = "true";
53733
- this.htmlDocument.body.setAttribute("editing", "true");
53954
+ var _a;
53955
+ (_a = this.undoRedo) === null || _a === void 0 ? void 0 : _a.undo();
53734
53956
  }
53735
53957
  redo() {
53736
- if (!this.redoList.length) {
53737
- return;
53738
- }
53739
- this.undoList.insert(this.undoList.length, this.htmlDocument.documentElement.innerHTML);
53740
- const lastHtml = this.redoList.pop();
53741
- this.htmlDocument.documentElement.innerHTML = lastHtml;
53742
- this.lastHtml = lastHtml;
53743
- this.htmlDocument.body.contentEditable = "true";
53744
- this.htmlDocument.body.setAttribute("editing", "true");
53958
+ var _a;
53959
+ (_a = this.undoRedo) === null || _a === void 0 ? void 0 : _a.redo();
53960
+ }
53961
+ merge(text) {
53962
+ return __awaiter(this, void 0, void 0, function* () {
53963
+ const parser = new this.htmlDocument.defaultView.DOMParser();
53964
+ const dom = parser.parseFromString(text, "text/html");
53965
+ yield DomHelper.applyChanges(this.htmlDocument, dom);
53966
+ yield this.updateEditable(this.htmlDocument);
53967
+ });
53745
53968
  }
53746
53969
  initDocument(prev, v, ct) {
53747
53970
  return __awaiter(this, void 0, void 0, function* () {
53748
53971
  try {
53749
53972
  yield prev;
53750
53973
  } catch (_a) {}
53974
+ this.undoRedo.dispose();
53751
53975
  this.contentEditor.srcdoc = "about:empty";
53752
53976
  const dom = new DOMParser();
53753
53977
  const doc = dom.parseFromString(v, "text/html");
53754
- doc.body.contentEditable = "true";
53755
- doc.body.setAttribute("editing", "true");
53756
- this.updateBaseUrl(doc);
53757
- yield this.setStylerSheet(doc);
53758
- const lc = doc.querySelector("language-chooser");
53759
- const languageStyles = [];
53760
- if (lc) {
53761
- const languages = [{
53762
- label: "Lang",
53763
- value: "all"
53764
- }];
53765
- const list = lc.getAttribute("languages");
53766
- if (list) {
53767
- for (const token of list.split(/[\,\;\s]+/)) {
53768
- const lang = token.trim();
53769
- if (!lang) {
53770
- continue;
53771
- }
53772
- languageStyles.push(`body[editing-lang=${lang}] *[lang]:not([lang=${lang}]) { display: none; }`);
53773
- languages.push({
53774
- label: lang,
53775
- value: lang
53776
- });
53777
- }
53778
- }
53779
- this.languages = languages;
53780
- const current = localStorage.getItem("editing-lang");
53781
- if (current) {
53782
- doc.body.setAttribute("editing-lang", current);
53783
- this[languageSymbol] = current;
53784
- AtomBinder.refreshValue(this, "language");
53785
- } else {
53786
- this[languageSymbol] = "all";
53787
- }
53788
- }
53789
- doc.body.removeAttribute("data-lang");
53790
- const cursorStyle = doc.createElement("style");
53791
- cursorStyle.textContent = `* {
53792
- caret-color: currentColor !important;
53793
- }
53794
- ${languageStyles.join("\n")}
53795
- `;
53796
- cursorStyle.setAttribute("data-cursor-style", "editing");
53797
- doc.head.append(cursorStyle);
53978
+ yield this.updateEditable(doc);
53798
53979
  this.htmlDocument = void 0;
53799
53980
  yield this.loadContentDocument();
53800
53981
  this.htmlDocument.open();
@@ -53880,10 +54061,58 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
53880
54061
  this.htmlDocument.addEventListener("input", () => this.queueCommit());
53881
54062
  InstallDragDropHelper(this);
53882
54063
  setTimeout(() => {
53883
- this.commit();
54064
+ this.undoRedo = new UndoRedo(this.htmlDocument, this);
53884
54065
  }, 10);
53885
54066
  });
53886
54067
  }
54068
+ updateEditable(doc) {
54069
+ return __awaiter(this, void 0, void 0, function* () {
54070
+ doc.body.contentEditable = "true";
54071
+ doc.body.setAttribute("editing", "true");
54072
+ this.updateBaseUrl(doc);
54073
+ yield this.setStylerSheet(doc);
54074
+ const lc = doc.querySelector("language-chooser");
54075
+ const languageStyles = [];
54076
+ if (lc) {
54077
+ const languages = [{
54078
+ label: "Lang",
54079
+ value: "all"
54080
+ }];
54081
+ const list = lc.getAttribute("languages");
54082
+ if (list) {
54083
+ for (const token of list.split(/[\,\;\s]+/)) {
54084
+ const lang = token.trim();
54085
+ if (!lang) {
54086
+ continue;
54087
+ }
54088
+ languageStyles.push(`body[editing-lang=${lang}] *[lang]:not([lang=${lang}]) { display: none; }`);
54089
+ languages.push({
54090
+ label: lang,
54091
+ value: lang
54092
+ });
54093
+ }
54094
+ }
54095
+ this.languages = languages;
54096
+ const current = localStorage.getItem("editing-lang");
54097
+ if (current) {
54098
+ doc.body.setAttribute("editing-lang", current);
54099
+ this[languageSymbol] = current;
54100
+ AtomBinder.refreshValue(this, "language");
54101
+ } else {
54102
+ this[languageSymbol] = "all";
54103
+ }
54104
+ }
54105
+ doc.body.removeAttribute("data-lang");
54106
+ const cursorStyle = doc.createElement("style");
54107
+ cursorStyle.textContent = `* {
54108
+ caret-color: currentColor !important;
54109
+ }
54110
+ ${languageStyles.join("\n")}
54111
+ `;
54112
+ cursorStyle.setAttribute("data-cursor-style", "editing");
54113
+ doc.head.append(cursorStyle);
54114
+ });
54115
+ }
53887
54116
  queueCommit() {
53888
54117
  const id = this.lastCommitTimerID;
53889
54118
  if (id) {
@@ -55135,9 +55364,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55135
55364
  _export("default", WebSiteStudioPage = class WebSiteStudioPage extends ContentPage {
55136
55365
  constructor() {
55137
55366
  super(...arguments);
55367
+ this.keep = true;
55138
55368
  this.version = 1;
55139
55369
  this.pageContent = "";
55140
- this.lastHtml = "";
55370
+ this.modified = false;
55141
55371
  }
55142
55372
  init() {
55143
55373
  var _a, _b;
@@ -55224,7 +55454,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55224
55454
  label: "File History"
55225
55455
  })] : [] : void 0,
55226
55456
  "event-selected-item-changing": ce => {
55227
- if (this.pageContent !== this.lastHtml) {
55457
+ if (this.modified) {
55228
55458
  if (confirm("Page is modified but not saved, your changes will be lost")) {
55229
55459
  return;
55230
55460
  }
@@ -55237,12 +55467,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55237
55467
  baseUrl: Bind.oneWay(() => apiPath(`/api/site/draft/${this.root.appFileID}/${this.cloudFileService.getFilePath(this.root, this.selectedFile)}`)),
55238
55468
  folder: this.root,
55239
55469
  presenter: Bind.presenter(c => this.htmlEditor = c),
55240
- "event-html-page-changed": ce => this.pageContent = ce.detail,
55470
+ "event-html-page-changed": ce => this.modified = true,
55241
55471
  htmlPage: Bind.oneWayAsync((s, e, cancelToken) => this.selectedFile ? this.downloadHtml(this.selectedFile, cancelToken) : void 0)
55242
55472
  }));
55243
55473
  this.footerRenderer = () => XNode.create("div", {
55244
55474
  "data-layout": "command-row",
55245
- "style-display": Bind.oneWay(() => this.lastHtml !== this.pageContent)
55475
+ "style-display": Bind.oneWay(() => this.modified)
55246
55476
  }, XNode.create(SaveIconTextButton, {
55247
55477
  "data-click-event": "save-page",
55248
55478
  text: "Save"
@@ -55252,7 +55482,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55252
55482
  downloadHtml(file, cancelToken) {
55253
55483
  return __awaiter(this, void 0, void 0, function* () {
55254
55484
  const text = yield FetchBuilder.get(file.downloadUrl).cancelToken(cancelToken).responseAsText(true);
55255
- this.lastHtml = text;
55256
55485
  this.pageContent = text;
55257
55486
  return text;
55258
55487
  });
@@ -55271,10 +55500,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55271
55500
  return __awaiter(this, void 0, void 0, function* () {
55272
55501
  const content = yield PageNavigator.pushPageForResult(CodeEditorPage, {
55273
55502
  fileName: this.selectedFile.name,
55274
- content: (_a = this.htmlEditor.lastCommittedHtml) !== null && _a !== void 0 ? _a : this.lastHtml
55503
+ content: (_a = this.htmlEditor.modifiedPage) !== null && _a !== void 0 ? _a : this.pageContent
55275
55504
  });
55276
55505
  this.pageContent = content;
55277
- this.htmlEditor.htmlPage = content;
55506
+ yield this.htmlEditor.merge(content);
55278
55507
  });
55279
55508
  }
55280
55509
  openFolder(file) {
@@ -55305,9 +55534,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55305
55534
  }
55306
55535
  savePage() {
55307
55536
  return __awaiter(this, void 0, void 0, function* () {
55308
- let html = this.pageContent;
55537
+ let html = this.htmlEditor.modifiedPage;
55309
55538
  if (!html.trim().startsWith("<!")) {
55310
- html = `<!DOCTYPE html>${this.pageContent}`;
55539
+ html = `<!DOCTYPE html>${html}`;
55311
55540
  }
55312
55541
  const content = new File([html], this.selectedFile.name, {
55313
55542
  type: this.selectedFile.contentType
@@ -55320,8 +55549,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55320
55549
  this.selectedFile.fileContentID = result.fileContentID;
55321
55550
  this.selectedFile.downloadUrl = result.downloadUrl;
55322
55551
  this.webSite.isModified = true;
55323
- this.lastHtml = html;
55324
- this.pageContent = html;
55552
+ this.modified = false;
55553
+ this.htmlEditor.undoRedo.changed = false;
55325
55554
  });
55326
55555
  }
55327
55556
  duplicateHtml(file) {
@@ -55377,17 +55606,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
55377
55606
  PageNavigator.pushPage(WebSiteBlogsPage, this.webSite);
55378
55607
  });
55379
55608
  }
55380
- hide() {
55381
- var _a, _b, _c;
55382
- this.pageContent = (_b = (_a = this.htmlEditor) === null || _a === void 0 ? void 0 : _a.lastCommittedHtml) !== null && _b !== void 0 ? _b : (_c = this.htmlEditor) === null || _c === void 0 ? void 0 : _c.htmlPage;
55383
- super.hide();
55384
- }
55385
- show() {
55386
- super.show();
55387
- if (this.pageContent) {
55388
- setTimeout(() => this.htmlEditor.htmlPage = this.pageContent, 400);
55389
- }
55390
- }
55391
55609
  });
55392
55610
  __decorate([InjectProperty, __metadata("design:type", CloudFileService)], WebSiteStudioPage.prototype, "cloudFileService", void 0);
55393
55611
  __decorate([InjectProperty, __metadata("design:type", WebSiteService)], WebSiteStudioPage.prototype, "websiteService", void 0);
@@ -58296,7 +58514,7 @@ ${body}
58296
58514
  }
58297
58515
  savePage(close = false) {
58298
58516
  return __awaiter(this, void 0, void 0, function* () {
58299
- if (!this.htmlEditor.lastCommittedBody) {
58517
+ if (!this.htmlEditor.modifiedBody) {
58300
58518
  if (close) {
58301
58519
  this.close(this.mediaFile);
58302
58520
  }
@@ -58306,7 +58524,7 @@ ${body}
58306
58524
  fileContentID
58307
58525
  } = yield this.cloudFileService.saveFile({
58308
58526
  appFileID: this.mediaFile.appFileID,
58309
- content: new File([this.htmlEditor.lastCommittedBody], this.parameters.file.title, {
58527
+ content: new File([this.htmlEditor.modifiedBody], this.parameters.file.title, {
58310
58528
  type: "text/html"
58311
58529
  })
58312
58530
  });
@@ -58323,7 +58541,7 @@ ${body}
58323
58541
  return __awaiter(this, void 0, void 0, function* () {
58324
58542
  const content = yield PageNavigator.pushPageForResult(CodeEditorPage, {
58325
58543
  fileName: this.parameters.file.title,
58326
- content: (_a = this.htmlEditor.lastCommittedHtml) !== null && _a !== void 0 ? _a : this.htmlEditor.htmlPage
58544
+ content: (_a = this.htmlEditor.modifiedPage) !== null && _a !== void 0 ? _a : this.htmlEditor.htmlPage
58327
58545
  });
58328
58546
  this.pageContent = content;
58329
58547
  this.htmlEditor.htmlPage = content;
@@ -58331,7 +58549,7 @@ ${body}
58331
58549
  }
58332
58550
  hide() {
58333
58551
  var _a, _b, _c;
58334
- this.pageContent = (_b = (_a = this.htmlEditor) === null || _a === void 0 ? void 0 : _a.lastCommittedHtml) !== null && _b !== void 0 ? _b : (_c = this.htmlEditor) === null || _c === void 0 ? void 0 : _c.htmlPage;
58552
+ this.pageContent = (_b = (_a = this.htmlEditor) === null || _a === void 0 ? void 0 : _a.modifiedPage) !== null && _b !== void 0 ? _b : (_c = this.htmlEditor) === null || _c === void 0 ? void 0 : _c.htmlPage;
58335
58553
  super.hide();
58336
58554
  }
58337
58555
  show() {