@useinsider/guido 1.0.0-beta.6ecc044 → 1.0.0-beta.71a8dc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +410 -21
- package/dist/@types/generic.d.ts +35 -0
- package/dist/App.vue.d.ts +1 -1
- package/dist/_virtual/AddCustomFont.js +4 -0
- package/dist/_virtual/AiAssistantValueType.js +4 -0
- package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
- package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
- package/dist/_virtual/Block.js +4 -0
- package/dist/_virtual/BlockAttributes.js +4 -0
- package/dist/_virtual/BlockCompositionType.js +4 -0
- package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
- package/dist/_virtual/BlockRenderer.js +4 -0
- package/dist/_virtual/BlockType.js +4 -0
- package/dist/_virtual/BlocksPanel.js +4 -0
- package/dist/_virtual/BuiltInControl.js +4 -0
- package/dist/_virtual/BuiltInControlTypes.js +4 -0
- package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
- package/dist/_virtual/ContextAction.js +4 -0
- package/dist/_virtual/ContextActionType.js +4 -0
- package/dist/_virtual/Control.js +4 -0
- package/dist/_virtual/EditorStatePropertyType.js +4 -0
- package/dist/_virtual/Extension.js +4 -0
- package/dist/_virtual/ExtensionBuilder.js +4 -0
- package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
- package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
- package/dist/_virtual/ModificationDescription.js +4 -0
- package/dist/_virtual/PanelPosition.js +4 -0
- package/dist/_virtual/PreviewDeviceMode.js +4 -0
- package/dist/_virtual/SettingsPanelRegistry.js +4 -0
- package/dist/_virtual/SettingsPanelTab.js +4 -0
- package/dist/_virtual/SettingsTab.js +4 -0
- package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
- package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
- package/dist/_virtual/TextColorBuiltInControl.js +4 -0
- package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
- package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
- package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
- package/dist/_virtual/UIElement.js +4 -0
- package/dist/_virtual/UIElementTagRegistry.js +4 -0
- package/dist/_virtual/UIElementType.js +4 -0
- package/dist/_virtual/UIElementsAttributes.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/components/Guido.vue.d.ts +20 -3
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +78 -29
- package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +19 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +19 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +22 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +30 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +19 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +29 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +22 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +31 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +17 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +20 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +18 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +25 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +19 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +23 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +20 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +21 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +17 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +22 -0
- package/dist/components/organisms/header/LeftSlot.vue.d.ts +1 -1
- package/dist/components/organisms/header/LeftSlot.vue.js +9 -9
- package/dist/components/organisms/header/LeftSlot.vue2.js +10 -6
- package/dist/components/organisms/header/MiddleSlot.vue.js +10 -10
- package/dist/components/organisms/header/MiddleSlot.vue2.js +16 -15
- package/dist/components/organisms/header/RightSlot.vue.js +12 -14
- package/dist/components/organisms/header/RightSlot.vue2.js +31 -18
- package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
- package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
- package/dist/components/organisms/header/ViewOptions.vue2.js +30 -10
- package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +2 -0
- package/dist/components/organisms/header/version-history/RestoreButton.vue.js +19 -0
- package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +14 -0
- package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +13 -1
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +7 -7
- package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +13 -10
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +1 -1
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +1 -1
- package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +1 -1
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +34 -16
- package/dist/components/wrappers/WpModal.vue.d.ts +65 -0
- package/dist/components/wrappers/WpModal.vue.js +27 -0
- package/dist/components/wrappers/WpModal.vue2.js +22 -0
- package/dist/composables/useActionsApi.d.ts +3 -0
- package/dist/composables/useActionsApi.js +62 -34
- package/dist/composables/useCodeEditorApi.d.ts +4 -0
- package/dist/composables/useCodeEditorApi.js +11 -0
- package/dist/composables/useConfig.d.ts +4 -0
- package/dist/composables/useConfig.js +7 -0
- package/dist/composables/useCustomInterfaceAppearance.js +45 -9
- package/dist/composables/useDebounce.d.ts +4 -0
- package/dist/composables/useDebounce.js +12 -0
- package/dist/composables/useExport.d.ts +1 -1
- package/dist/composables/useExport.js +35 -20
- package/dist/composables/useGuidoActions.d.ts +46 -0
- package/dist/composables/useGuidoActions.js +37 -0
- package/dist/composables/useHtmlCompiler.d.ts +4 -0
- package/dist/composables/useHtmlCompiler.js +17 -0
- package/dist/composables/usePreviewMode.d.ts +5 -0
- package/dist/composables/usePreviewMode.js +31 -0
- package/dist/composables/useProvideInject.d.ts +14 -0
- package/dist/composables/useProvideInject.js +17 -0
- package/dist/composables/useResponsivePreview.d.ts +5 -0
- package/dist/composables/useResponsivePreview.js +86 -0
- package/dist/composables/useStripo.js +53 -30
- package/dist/composables/useTranslations.js +3 -2
- package/dist/config/compiler/htmlCompilerRules.d.ts +2 -0
- package/dist/config/compiler/htmlCompilerRules.js +145 -0
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
- package/dist/enums/defaults.js +14 -5
- package/dist/enums/displayConditions.d.ts +2 -0
- package/dist/enums/displayConditions.js +80 -0
- package/dist/enums/preview.d.ts +13 -0
- package/dist/enums/preview.js +23 -0
- package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +6 -0
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +27 -0
- package/dist/extensions/DynamicContent/dynamic-content.css.js +24 -0
- package/dist/extensions/DynamicContent/dynamic-content.d.ts +16 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +61 -0
- package/dist/extensions/DynamicContent/extension.d.ts +2 -0
- package/dist/extensions/DynamicContent/extension.js +11 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +51 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +52 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +41 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +104 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +20 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +32 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +26 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +22 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +18 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_apply.js +16 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +19 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/dist/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +17 -0
- package/dist/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.js +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/dist/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +9 -0
- package/dist/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/lodash-es/_createAssigner.js +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +11 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_overRest.js +15 -0
- package/dist/node_modules/lodash-es/_safeGet.js +7 -0
- package/dist/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/lodash-es/_shortOut.js +16 -0
- package/dist/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +17 -0
- package/dist/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +16 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/merge.js +8 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.js +8 -0
- package/dist/services/stripoApi.d.ts +2 -1
- package/dist/services/stripoApi.js +27 -7
- package/dist/static/assets/inbox-mockup.svg.js +4 -0
- package/dist/static/assets/phone-mockup.svg.js +4 -0
- package/dist/static/styles/base.css.js +11 -0
- package/dist/static/styles/components/alert-message.css.js +39 -0
- package/dist/static/styles/components/amp-block.css.js +18 -0
- package/dist/static/styles/components/base-input.css.js +47 -0
- package/dist/static/styles/components/button-group.css.js +54 -0
- package/dist/static/styles/components/button.css.js +106 -0
- package/dist/static/styles/components/combobox.css.js +49 -0
- package/dist/static/styles/components/counter.css.js +42 -0
- package/dist/static/styles/components/dropdown-menu.css.js +52 -0
- package/dist/static/styles/components/narrow-panel.css.js +38 -0
- package/dist/static/styles/components/switcher.css.js +11 -0
- package/dist/static/styles/components/tabs.css.js +97 -0
- package/dist/static/styles/components/tools.css.js +23 -0
- package/dist/static/styles/components/version-history.css.js +30 -0
- package/dist/static/styles/components/wide-panel.css.js +135 -0
- package/dist/static/styles/variables.css.js +23 -0
- package/dist/stores/dynamic-content.d.ts +27 -0
- package/dist/stores/dynamic-content.js +23 -0
- package/dist/stores/editor.d.ts +1 -1
- package/dist/stores/editor.js +4 -4
- package/dist/stores/preview.d.ts +46 -0
- package/dist/stores/preview.js +53 -0
- package/dist/utils/arrayUtil.d.ts +1 -0
- package/dist/utils/arrayUtil.js +10 -0
- package/dist/utils/genericUtil.d.ts +2 -0
- package/dist/utils/genericUtil.js +7 -0
- package/dist/utils/htmlCompiler.d.ts +12 -0
- package/dist/utils/htmlCompiler.js +70 -0
- package/dist/utils/tooltipUtils.d.ts +2 -0
- package/dist/utils/tooltipUtils.js +11 -0
- package/package.json +6 -5
- package/dist/components/organisms/base/ModalWrapper.vue.d.ts +0 -72
- package/dist/components/organisms/base/ModalWrapper.vue.js +0 -19
- package/dist/components/organisms/base/ModalWrapper.vue2.js +0 -43
- package/dist/components/organisms/save-template/SaveTemplateModal.vue.d.ts +0 -20
- package/dist/components/organisms/save-template/SaveTemplateModal.vue.js +0 -19
- package/dist/components/organisms/save-template/SaveTemplateModal.vue2.js +0 -66
- package/dist/composables/useTemplateValidation.d.ts +0 -13
- package/dist/composables/useTemplateValidation.js +0 -57
- package/dist/composables/useTemplates.d.ts +0 -5
- package/dist/composables/useTemplates.js +0 -27
- package/dist/static/editor.css.js +0 -232
- package/dist/static/templates/default/index.html.js +0 -5
- package/dist/static/templates/default/style.css.js +0 -119
- /package/dist/mock/api/{template-library.d.ts → default-template.d.ts} +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import s from "./SaveTemplateModal.vue2.js";
|
|
2
|
-
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var l = function() {
|
|
4
|
-
var a = this, n = a._self._c, e = a._self._setupProxy;
|
|
5
|
-
return n(e.ModalWrapper, { attrs: { "cancel-button-text": e.trans("products.cancel"), description: e.trans("newsletter.save-template-description"), "is-open": e.props.isOpen, "primary-button-disabled": e.isSaveButtonDisabled, "primary-button-loading": e.isSaving || e.isLoadingHtml, "primary-button-text": e.trans("products.save"), title: e.trans("products.save-template") }, on: { cancel: e.closeModal, close: e.closeModal, save: e.saveTemplate } }, [n(e.InTextInput, { staticClass: "mb-5 w-1", attrs: { id: "template-name-input", "with-label": "", name: "templateName", disabled: e.isSaving, invalid: !!e.validationError, "invalid-message": e.validationError, label: e.trans("products.template-name"), placeholder: e.trans("newsletter.enter-template-name") }, model: { value: e.templateNameInput, callback: function(t) {
|
|
6
|
-
e.templateNameInput = typeof t == "string" ? t.trim() : t;
|
|
7
|
-
}, expression: "templateNameInput" } })], 1);
|
|
8
|
-
}, o = [], i = /* @__PURE__ */ r(
|
|
9
|
-
s,
|
|
10
|
-
l,
|
|
11
|
-
o,
|
|
12
|
-
!1,
|
|
13
|
-
null,
|
|
14
|
-
null
|
|
15
|
-
);
|
|
16
|
-
const d = i.exports;
|
|
17
|
-
export {
|
|
18
|
-
d as default
|
|
19
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, ref as s, computed as w, watch as h } from "vue";
|
|
2
|
-
import { useActionsApi as H } from "../../../composables/useActionsApi.js";
|
|
3
|
-
import { useTemplateValidation as N } from "../../../composables/useTemplateValidation.js";
|
|
4
|
-
import { useToaster as D } from "../../../composables/useToaster.js";
|
|
5
|
-
import { useTranslations as L } from "../../../composables/useTranslations.js";
|
|
6
|
-
import S from "../base/ModalWrapper.vue.js";
|
|
7
|
-
import { InTextInput as b } from "@useinsider/design-system-vue";
|
|
8
|
-
const R = /* @__PURE__ */ _({
|
|
9
|
-
__name: "SaveTemplateModal",
|
|
10
|
-
props: {
|
|
11
|
-
isOpen: { type: Boolean }
|
|
12
|
-
},
|
|
13
|
-
emits: ["close", "save"],
|
|
14
|
-
setup(g, { emit: n }) {
|
|
15
|
-
const u = g, y = L(), { handleError: o } = D(), { getCompiledEmail: p } = H(), e = s(""), l = s(!1), r = s(!1), t = s(""), {
|
|
16
|
-
validationError: v,
|
|
17
|
-
isValidating: f,
|
|
18
|
-
validateTemplateName: i,
|
|
19
|
-
clearValidation: m
|
|
20
|
-
} = N(), E = w(() => l.value || f.value || r.value || !e.value.trim() || !!v.value), c = () => {
|
|
21
|
-
e.value = "", m(), t.value = "";
|
|
22
|
-
}, d = () => {
|
|
23
|
-
c(), n("close");
|
|
24
|
-
}, M = async () => {
|
|
25
|
-
if (e.value.trim()) {
|
|
26
|
-
l.value = !0;
|
|
27
|
-
try {
|
|
28
|
-
if (!(await i(e.value)).isValid)
|
|
29
|
-
return;
|
|
30
|
-
if (!t.value) {
|
|
31
|
-
o(new Error("No HTML data available"), "Error saving template:");
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
n("save", {
|
|
35
|
-
templateName: e.value,
|
|
36
|
-
htmlData: t.value
|
|
37
|
-
}), d();
|
|
38
|
-
} catch (a) {
|
|
39
|
-
o(a, "Error saving template:");
|
|
40
|
-
} finally {
|
|
41
|
-
l.value = !1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
h(e, (a) => {
|
|
46
|
-
a.trim() ? i(a) : m();
|
|
47
|
-
});
|
|
48
|
-
const T = async () => {
|
|
49
|
-
r.value = !0;
|
|
50
|
-
try {
|
|
51
|
-
const { html: a } = await p();
|
|
52
|
-
t.value = a || "", a || o(new Error("No HTML content available"), "Warning:");
|
|
53
|
-
} catch (a) {
|
|
54
|
-
o(a, "Error fetching HTML data:"), t.value = "";
|
|
55
|
-
} finally {
|
|
56
|
-
r.value = !1;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
return h(() => u.isOpen, async (a) => {
|
|
60
|
-
a ? await T() : c();
|
|
61
|
-
}), { __sfc: !0, props: u, emit: n, trans: y, handleError: o, getCompiledEmail: p, templateNameInput: e, isSaving: l, isLoadingHtml: r, htmlData: t, validationError: v, isValidating: f, validateTemplateName: i, clearValidation: m, isSaveButtonDisabled: E, resetModalState: c, closeModal: d, saveTemplate: M, fetchHtmlData: T, ModalWrapper: S, InTextInput: b };
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
R as default
|
|
66
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ValidationResult {
|
|
2
|
-
isValid: boolean;
|
|
3
|
-
message: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const useTemplateValidation: () => {
|
|
6
|
-
validationError: import("vue").ComputedRef<string>;
|
|
7
|
-
isValidating: import("vue").ComputedRef<boolean>;
|
|
8
|
-
validateTemplateName: (name: string) => Promise<ValidationResult>;
|
|
9
|
-
clearValidation: () => void;
|
|
10
|
-
VALIDATION_RULES: {
|
|
11
|
-
readonly DEBOUNCE_TIME: 500;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { useHttp as T } from "./useHttp.js";
|
|
2
|
-
import { useToaster as V } from "./useToaster.js";
|
|
3
|
-
import { useTranslations as N } from "./useTranslations.js";
|
|
4
|
-
import { ref as m, computed as u } from "vue";
|
|
5
|
-
const c = {
|
|
6
|
-
DEBOUNCE_TIME: 500
|
|
7
|
-
}, I = () => {
|
|
8
|
-
const { get: d } = T(), { handleError: p } = V(), l = N(), s = m(""), o = m(!1), r = m(null), v = (a) => a.trim() ? {
|
|
9
|
-
isValid: !0,
|
|
10
|
-
message: ""
|
|
11
|
-
} : {
|
|
12
|
-
isValid: !1,
|
|
13
|
-
message: l("validation.required-product-name-to-continue", { product: "template" })
|
|
14
|
-
}, f = async (a) => {
|
|
15
|
-
try {
|
|
16
|
-
const i = `/template-library/template-name-exists?name=${encodeURIComponent(a)}`;
|
|
17
|
-
return (await d(i)).data.status;
|
|
18
|
-
} catch (e) {
|
|
19
|
-
return p(e, "Error checking template name:"), !1;
|
|
20
|
-
}
|
|
21
|
-
}, E = (a) => (r.value && clearTimeout(r.value), new Promise((e) => {
|
|
22
|
-
const i = v(a);
|
|
23
|
-
if (!i.isValid) {
|
|
24
|
-
s.value = i.message, e(i);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
o.value = !0, r.value = setTimeout(async () => {
|
|
28
|
-
try {
|
|
29
|
-
const t = await f(a.trim()), n = {
|
|
30
|
-
isValid: !t,
|
|
31
|
-
message: t ? l("whatsapp-business.template-name-exists") : ""
|
|
32
|
-
};
|
|
33
|
-
s.value = n.message, e(n);
|
|
34
|
-
} catch (t) {
|
|
35
|
-
const n = {
|
|
36
|
-
isValid: !1,
|
|
37
|
-
message: t instanceof Error ? t.message : l("validation.unknown-error")
|
|
38
|
-
};
|
|
39
|
-
s.value = n.message, e(n);
|
|
40
|
-
} finally {
|
|
41
|
-
o.value = !1;
|
|
42
|
-
}
|
|
43
|
-
}, c.DEBOUNCE_TIME);
|
|
44
|
-
})), g = () => {
|
|
45
|
-
s.value = "", o.value = !1, r.value && clearTimeout(r.value);
|
|
46
|
-
};
|
|
47
|
-
return {
|
|
48
|
-
validationError: u(() => s.value),
|
|
49
|
-
isValidating: u(() => o.value),
|
|
50
|
-
validateTemplateName: E,
|
|
51
|
-
clearValidation: g,
|
|
52
|
-
VALIDATION_RULES: c
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
I as useTemplateValidation
|
|
57
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const s = () => {
|
|
2
|
-
const t = async () => {
|
|
3
|
-
const [e, a] = await Promise.all([
|
|
4
|
-
// eslint-disable-next-line import/extensions
|
|
5
|
-
import("../static/templates/default/index.html.js"),
|
|
6
|
-
import("../static/templates/default/style.css.js")
|
|
7
|
-
]);
|
|
8
|
-
return {
|
|
9
|
-
html: e.default,
|
|
10
|
-
css: a.default
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
return {
|
|
14
|
-
getDefaultTemplate: t,
|
|
15
|
-
getTemplate: async (e) => {
|
|
16
|
-
switch (e) {
|
|
17
|
-
case "default":
|
|
18
|
-
return t();
|
|
19
|
-
default:
|
|
20
|
-
return t();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
s as useTemplates
|
|
27
|
-
};
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
const n = `:host {
|
|
2
|
-
--guido-color-white: #FFFFFF;
|
|
3
|
-
--guido-color-primary-500: #0A2ECC;
|
|
4
|
-
--guido-color-primary-100: #DAE1FB;
|
|
5
|
-
--guido-color-gray-800: #292929;
|
|
6
|
-
--guido-color-gray-300: #E1E1E1;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.label {
|
|
10
|
-
font-size: 13px;
|
|
11
|
-
color: var(--guido-color-gray-800);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.stacked-panel-title {
|
|
15
|
-
padding: 16px;
|
|
16
|
-
font-size: 16px;
|
|
17
|
-
font-weight: 600;
|
|
18
|
-
color: var(--guido-color-gray-800);
|
|
19
|
-
text-align: left;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.stacked-panel-item {
|
|
23
|
-
border-radius: 4px;
|
|
24
|
-
border: 1px solid #dcdfe6;
|
|
25
|
-
box-shadow: 0 0 0 0 var(--guido-color-gray-300),0 15px 35px -5px rgba(0, 0, 0, .1),0 8px 10px -6px rgba(0, 0, 0, .1);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.container {
|
|
29
|
-
padding: 16px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.container.parent-container>.container {
|
|
33
|
-
padding: 0 16px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** SEGMENT BUTTON */
|
|
37
|
-
ue-switcher input {
|
|
38
|
-
border-radius: 26px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
ue-switcher input:before {
|
|
42
|
-
border-radius: 22px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.tabs-header {
|
|
46
|
-
padding: 0;
|
|
47
|
-
column-gap: 0;
|
|
48
|
-
background-color: transparent;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.tabs-header button {
|
|
52
|
-
background-color: #f7f9fa;
|
|
53
|
-
outline: none;
|
|
54
|
-
padding: 8px 16px;
|
|
55
|
-
border: 1px solid #dcdee6;
|
|
56
|
-
height: 42px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.tabs-header button ue-icon-component.icon-button {
|
|
60
|
-
color: var(--guido-color-gray-800);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.tabs-header button:not(:last-child),
|
|
64
|
-
.tabs-header button:not(:first-child) {
|
|
65
|
-
border-radius: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.tabs-header button:first-child {
|
|
69
|
-
border-radius: 4px 0 0 4px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.tabs-header button:last-child {
|
|
73
|
-
border-radius: 0 4px 4px 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.tabs-header button.checked {
|
|
77
|
-
background-color: var(--guido-color-primary-100);
|
|
78
|
-
color: var(--guido-color-primary-500);
|
|
79
|
-
border-color: var(--guido-color-primary-500);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.tabs-header button.checked ue-icon-component.icon-button {
|
|
83
|
-
color: var(--guido-color-primary-500);
|
|
84
|
-
}
|
|
85
|
-
/** SEGMENT BUTTON */
|
|
86
|
-
|
|
87
|
-
/** BUTTON */
|
|
88
|
-
.button:not(:disabled,.disabled):active {
|
|
89
|
-
transform: none !important;
|
|
90
|
-
}
|
|
91
|
-
/** BUTTON */
|
|
92
|
-
|
|
93
|
-
/** BUTTON GROUP */
|
|
94
|
-
.button-group {
|
|
95
|
-
padding: 0;
|
|
96
|
-
column-gap: 0;
|
|
97
|
-
border-radius: 0;
|
|
98
|
-
background-color: transparent;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.button-group .button {
|
|
102
|
-
background-color: #f7f9fa;
|
|
103
|
-
outline: none;
|
|
104
|
-
padding: 8px 12px;
|
|
105
|
-
border: 1px solid #dcdee6;
|
|
106
|
-
box-shadow: none;
|
|
107
|
-
height: 42px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.button-group .button ue-icon-component.icon-button {
|
|
111
|
-
color: var(--guido-color-gray-800);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.button-group > div:first-of-type .button {
|
|
115
|
-
border-radius: 4px 0 0 4px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.button-group > *:last-child .button {
|
|
119
|
-
border-radius: 0 4px 4px 0;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
ue-check-buttons input:checked + .button,
|
|
123
|
-
ue-radio-buttons input:checked + .button {
|
|
124
|
-
background-color: var(--guido-color-primary-100);
|
|
125
|
-
color: var(--guido-color-primary-500);
|
|
126
|
-
border-color: var(--guido-color-primary-500);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
ue-check-buttons input:checked + .button ue-icon-component.icon-button,
|
|
130
|
-
ue-radio-buttons input:checked + .button ue-icon-component.icon-button {
|
|
131
|
-
color: var(--guido-color-primary-500);
|
|
132
|
-
}
|
|
133
|
-
/** BUTTON GROUP */
|
|
134
|
-
|
|
135
|
-
/** COMBOBOX */
|
|
136
|
-
.control-shadow-wrapper:has(.button[role="combobox"]) {
|
|
137
|
-
border-radius: 0;
|
|
138
|
-
padding: 0;
|
|
139
|
-
background: transparent;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.button[role="combobox"] {
|
|
143
|
-
background-color: #f9f9f9;
|
|
144
|
-
border: 1px solid var(--guido-color-gray-300);
|
|
145
|
-
border-radius: 4px;
|
|
146
|
-
box-shadow: none;
|
|
147
|
-
min-height: 42px;
|
|
148
|
-
padding: 8px;
|
|
149
|
-
color: var(--guido-color-gray-800);
|
|
150
|
-
text-align: left;
|
|
151
|
-
outline: none;
|
|
152
|
-
white-space: nowrap;
|
|
153
|
-
text-overflow: ellipsis;
|
|
154
|
-
overflow: hidden;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.button[role="combobox"].on {
|
|
158
|
-
background-color: #f9f9f9;
|
|
159
|
-
border-color: var(--guido-color-primary-500);
|
|
160
|
-
box-shadow: 0 0 0 3px #b5c1f1 !important;
|
|
161
|
-
}
|
|
162
|
-
/** COMBOBOX */
|
|
163
|
-
|
|
164
|
-
/** BASE INPUT */
|
|
165
|
-
.base-input {
|
|
166
|
-
border: 1px solid var(--guido-color-gray-300);
|
|
167
|
-
border-radius: 4px;
|
|
168
|
-
background-color: #f9f9f9;
|
|
169
|
-
align-items: center;
|
|
170
|
-
height: 40px;
|
|
171
|
-
max-height: 40px;
|
|
172
|
-
box-sizing: content-box;
|
|
173
|
-
outline: none;
|
|
174
|
-
resize: vertical;
|
|
175
|
-
padding: 8px;
|
|
176
|
-
transition: none !important;
|
|
177
|
-
color: var(--guido-color-gray-800);
|
|
178
|
-
box-shadow: none !important;
|
|
179
|
-
box-sizing: border-box !important;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.base-input:hover:not(:disabled) {
|
|
183
|
-
background-color: #f9f9f9;
|
|
184
|
-
border-color: #7a92f2;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.base-input:focus:not(:disabled) {
|
|
188
|
-
background-color: #f9f9f9;
|
|
189
|
-
border-color: #0a2ecc;
|
|
190
|
-
box-shadow: 0 0 0 3px #b5c1f1 !important;
|
|
191
|
-
}
|
|
192
|
-
/** BASE INPUT */
|
|
193
|
-
|
|
194
|
-
/** COUNTER */
|
|
195
|
-
ue-counter {
|
|
196
|
-
padding: 0 !important;
|
|
197
|
-
background-color: var(--guido-color-white) !important;
|
|
198
|
-
border: 1px solid var(--guido-color-gray-300);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
ue-counter .button {
|
|
202
|
-
width: 40px;
|
|
203
|
-
height: 40px;
|
|
204
|
-
box-shadow: none;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
ue-counter .button .icon-button {
|
|
208
|
-
color: var(--guido-color-primary-500);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
ue-counter ue-button:first-child .button {
|
|
212
|
-
border-right: 1px solid var(--guido-color-gray-300);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
ue-counter ue-button:last-child .button {
|
|
216
|
-
border-left: 1px solid var(--guido-color-gray-300);
|
|
217
|
-
}
|
|
218
|
-
/** COUNTER */
|
|
219
|
-
|
|
220
|
-
/** COLOR */
|
|
221
|
-
ue-color {
|
|
222
|
-
width: 80px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
ue-color .base-input {
|
|
226
|
-
width: 100%;
|
|
227
|
-
}
|
|
228
|
-
/** COLOR */
|
|
229
|
-
`;
|
|
230
|
-
export {
|
|
231
|
-
n as default
|
|
232
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const t = `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1" name="viewport"><meta name="x-apple-disable-message-reformatting"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="telephone=no" name="format-detection"><title></title><!--[if (mso 16)]><style type="text/css">a{text-decoration:none;}</style><![endif]--><!--[if gte mso 9]><style>sup{font-size:100% !important;}</style><![endif]--><!--[if gte mso 9]><noscript><xml><o:OfficeDocumentSettings><o:AllowPNG></o:AllowPNG><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml></noscript><![endif]--><!--[if mso]><xml><w:WordDocument xmlns:w="urn:schemas-microsoft-com:office:word"><w:DontUseAdvancedTypographyReadingMail></w:DontUseAdvancedTypographyReadingMail></w:WordDocument></xml><![endif]--></head><body><div class="es-wrapper-color"> <!--[if gte mso 9]> <v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t"> <v:fill type="tile" color="#f6f6f6"></v:fill> </v:background> <![endif]--><table class="es-wrapper" width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td class="esd-email-paddings" valign="top"><table class="es-content esd-header-popover" cellspacing="0" cellpadding="0" align="center"><tbody><tr><td class="esd-stripe" align="center"><table class="es-content-body" width="600" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center"><tbody><tr><td class="esd-structure es-p20" align="left" bgcolor="#91949F" style="background-color: #91949f;"><table width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td class="esd-container-frame" width="560" valign="top" align="center"><table width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td align="center" class="esd-block-image es-p15" style="font-size: 0px;"><a target="_blank"><img class="adapt-img" src="https://web-image.useinsider.com/email-template/logo.png" alt style="display: block;" height="30"></a></td></tr><tr><td class="esd-block-text" align="center"><h2 style="color: #ffffff; font-size: 30px;"><strong>Time for great email design</strong></h2></td></tr><tr><td class="esd-block-text es-m-txt-c es-p10t" align="center"><p style="color: #ffffff;">I'm a new text block ready for your message content.</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><table class="es-content" cellspacing="0" cellpadding="0" align="center"><tbody><tr><td class="esd-stripe" align="center"><table class="es-content-body" width="600" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center"><tbody><tr><td class="esd-structure es-p30t es-p20b es-p20r es-p20l" align="left" bgcolor="#F9F9F9" style="background-color: #f9f9f9;"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td width="560" class="esd-container-frame" align="center" valign="top"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="center" class="esd-block-image es-p30t es-p20r" style="font-size: 0px;"><a target="_blank"><img class="adapt-img" src="https://web-image.useinsider.com/email-template/image-placeholder.png" alt style="display: block;" width="138"></a></td></tr><tr><td align="center" class="esd-block-text es-p10t es-p40b"><p style="color: #c5c6cc;">Image Placeholder</p></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td class="esd-structure es-p20t es-p20r es-p20l" align="left"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td width="560" class="esd-container-frame" align="center" valign="top"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="center" class="esd-block-text"><p style="font-size: 24px; color: #2c3546;"><strong>This is a sample heading</strong><br></p></td></tr><tr><td align="center" class="esd-block-text"><p style="color: #2c3546;">I'm a new text block ready for your message content.</p></td></tr><tr><td align="center" class="esd-block-text"><p style="color: #959aa3; font-size: 10px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor<br> incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud<br> exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><table class="es-content esd-footer-popover" cellspacing="0" cellpadding="0" align="center"><tbody><tr></tr><tr><td class="esd-stripe" esd-custom-block-id="8631" align="center"><table class="es-footer-body" style="background-color: #ffffff;" width="600" cellspacing="0" cellpadding="0" align="center" bgcolor="#fff"><tbody><tr><td class="esd-structure es-p20t es-p15b es-p20r es-p20l" align="left"> <!--[if mso]><table width="560" cellpadding="0" cellspacing="0"><tr><td width="270" valign="top"><![endif]--><table cellpadding="0" cellspacing="0" class="es-left" align="left"><tbody><tr><td width="270" class="es-m-p20b esd-container-frame" align="left"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="right" class="esd-block-button"><span class="es-button-border" style="border-radius: 4px; border-color: #5d6980; background: #5d6980; border-width: 1px;"><a href class="es-button" target="_blank" style="color: #ffffff; background: #5d6980; border-color: #5d6980; border-radius: 4px; border-width: 10px 15px;"> Button </a></span></td></tr></tbody></table></td></tr></tbody></table> <!--[if mso]></td><td width="20"></td><td width="270" valign="top"><![endif]--><table cellpadding="0" cellspacing="0" class="es-right" align="right"><tbody><tr><td width="270" align="left" class="esd-container-frame"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="left" class="esd-block-button"><span class="es-button-border" style="border-radius: 4px; border-color: #5d6980; background: #ffffff; border-width: 1px;"><a href class="es-button" target="_blank" style="background: #ffffff; border-color: #ffffff; color: #5d6980; border-radius: 4px; border-width: 10px 15px;"> Button </a></span></td></tr></tbody></table></td></tr></tbody></table> <!--[if mso]></td></tr></table><![endif]--></td></tr><tr><td class="esd-structure es-p30t es-p35b es-p40r es-p40l" align="left" bgcolor="#F9F9F9" style="background-color: #f9f9f9;"> <!--[if mso]><table width="520" cellpadding="0" cellspacing="0"><tr><td width="257" valign="top"><![endif]--><table cellpadding="0" cellspacing="0" class="es-left" align="left"><tbody><tr><td width="257" class="es-m-p20b esd-container-frame" align="left"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="center" class="esd-block-image" style="font-size: 0px;"><a target="_blank"><img class="adapt-img" src="https://web-image.useinsider.com/email-template/image-placeholder.png" alt style="display: block;" width="96"></a></td></tr><tr><td align="center" class="esd-block-text"><p style="color: #c5c6cc;">Image Placeholder</p></td></tr></tbody></table></td></tr></tbody></table> <!--[if mso]></td><td width="0"></td><td width="263" valign="top"><![endif]--><table cellpadding="0" cellspacing="0" class="es-right" align="right"><tbody><tr><td width="263" align="left" class="esd-container-frame"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="center" class="esd-block-image" style="font-size: 0px;"><a target="_blank"><img class="adapt-img" src="https://web-image.useinsider.com/email-template/image-placeholder.png" alt style="display: block;" width="96"></a></td></tr><tr><td align="center" class="esd-block-text"><p style="color: #c5c6cc;">Image Placeholder</p></td></tr></tbody></table></td></tr></tbody></table> <!--[if mso]></td></tr></table><![endif]--></td></tr><tr><td class="esd-structure es-p20t es-p15b es-p20r es-p20l" align="left"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td width="560" class="esd-container-frame" align="center" valign="top"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="left" class="esd-block-text"><p>Text</p></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td class="esd-structure es-p20t es-p20b es-p20r es-p20l" align="left" bgcolor="#2C3546" style="background-color: #2c3546;"><table width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td class="esd-container-frame" width="560" valign="top" align="center"><table width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td align="center" class="esd-block-social" style="font-size:0"><table cellpadding="0" cellspacing="0" class="es-table-not-adapt es-social"><tbody><tr><td align="center" valign="top" class="es-p20r" esd-tmp-icon-type="facebook"><a target="_blank" href="https://facebook.com"><img title="Facebook" src="https://web-image.useinsider.com/email-template/facebook.png" alt="Facebook" width="24" height="24"></a></td><td align="center" valign="top" class="es-p20r" esd-tmp-icon-type="twitter"><a target="_blank" href="https://instagram.com"><img title="Instagram" src="https://web-image.useinsider.com/email-template/instagram.png" alt="Instagram" width="24" height="24"></a></td><td align="center" valign="top" esd-tmp-icon-type="instagram"><a target="_blank" href="https://twitter.com"><img title="Twitter" src="https://web-image.useinsider.com/email-template/twitter.png" alt="Twitter" width="24" height="24"></a></td></tr></tbody></table></td></tr><tr><td align="center" class="esd-block-text es-p20"><p style="font-size: 10px;">ADDRESS LINE, PROVINCE, CITY, COUNTRY - 999999</p></td></tr><tr><td align="center" class="esd-block-text"><p style="color: #959aa2; font-size: 10px;">You can <u>unsubscribe</u> from our emails, if you need to.</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></body></html>
|
|
2
|
-
`;
|
|
3
|
-
export {
|
|
4
|
-
t as default
|
|
5
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
const t = `/* CONFIG STYLES Please do not delete and edit CSS styles below */ /* IMPORTANT THIS STYLES MUST BE ON FINAL EMAIL */ #outlook a { padding: 0; }.ExternalClass { width: 100%; }.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; }.es-button { mso-style-priority: 100 !important; text-decoration: none !important; }a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; }.es-desk-hidden { display: none; float: left; overflow: hidden; width: 0; max-height: 0; line-height: 0; mso-hide: all; }/* END OF IMPORTANT */ html, body { width: 100%; font-family: arial, 'helvetica neue', helvetica, sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }table { mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-collapse: collapse; border-spacing: 0px; }table td, html, body, .es-wrapper { padding: 0; Margin: 0; }.es-content, .es-header, .es-footer { table-layout: fixed !important; width: 100%; }img { display: block; border: 0; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; }table tr { border-collapse: collapse; }p, hr { Margin: 0; }h1, h2, h3, h4, h5 { Margin: 0; line-height: 120%; mso-line-height-rule: exactly; font-family: arial, 'helvetica neue', helvetica, sans-serif; }p, ul li, ol li, a { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; mso-line-height-rule: exactly; }.es-left { float: left; }.es-right { float: right; }.es-p5 { padding: 5px; }.es-p5t { padding-top: 5px; }.es-p5b { padding-bottom: 5px; }.es-p5l { padding-left: 5px; }.es-p5r { padding-right: 5px; }.es-p10 { padding: 10px; }.es-p10t { padding-top: 10px; }.es-p10b { padding-bottom: 10px; }.es-p10l { padding-left: 10px; }.es-p10r { padding-right: 10px; }.es-p15 { padding: 15px; }.es-p15t { padding-top: 15px; }.es-p15b { padding-bottom: 15px; }.es-p15l { padding-left: 15px; }.es-p15r { padding-right: 15px; }.es-p20 { padding: 20px; }.es-p20t { padding-top: 20px; }.es-p20b { padding-bottom: 20px; }.es-p20l { padding-left: 20px; }.es-p20r { padding-right: 20px; }.es-p25 { padding: 25px; }.es-p25t { padding-top: 25px; }.es-p25b { padding-bottom: 25px; }.es-p25l { padding-left: 25px; }.es-p25r { padding-right: 25px; }.es-p30 { padding: 30px; }.es-p30t { padding-top: 30px; }.es-p30b { padding-bottom: 30px; }.es-p30l { padding-left: 30px; }.es-p30r { padding-right: 30px; }.es-p35 { padding: 35px; }.es-p35t { padding-top: 35px; }.es-p35b { padding-bottom: 35px; }.es-p35l { padding-left: 35px; }.es-p35r { padding-right: 35px; }.es-p40 { padding: 40px; }.es-p40t { padding-top: 40px; }.es-p40b { padding-bottom: 40px; }.es-p40l { padding-left: 40px; }.es-p40r { padding-right: 40px; }.es-menu td { border: 0; }.es-menu td a img { display: inline !important; }/* END CONFIG STYLES */ a { text-decoration: underline; }p, ul li, ol li { font-family: arial, 'helvetica neue', helvetica, sans-serif; line-height: 150%; }ul li, ol li { Margin-bottom: 15px; }.es-menu td a { text-decoration: none; display: block; }.es-wrapper { width: 100%; height: 100%; background-image: ; background-repeat: repeat; background-position: center top; }.es-wrapper-color { background-color: #f6f6f6; }.es-header { background-color: transparent; background-image: ; background-repeat: repeat; background-position: center top; }.es-header-body { background-color: transparent; }.es-header-body p, .es-header-body ul li, .es-header-body ol li { color: #333333; font-size: 14px; }.es-header-body a { color: #333333; font-size: 14px; }.es-content-body { background-color: #ffffff; }.es-content-body p, .es-content-body ul li, .es-content-body ol li { color: #333333; font-size: 14px; }.es-content-body a { color: #333333; font-size: 14px; }.es-footer { background-color: transparent; background-image: ; background-repeat: repeat; background-position: center top; }.es-footer-body { background-color: #333333; }.es-footer-body p, .es-footer-body ul li, .es-footer-body ol li { color: #ffffff; font-size: 14px; }.es-footer-body a { color: #ffffff; font-size: 14px; }.es-infoblock, .es-infoblock p, .es-infoblock ul li, .es-infoblock ol li { line-height: 120%; font-size: 12px; color: #cccccc; }.es-infoblock a { font-size: 12px; color: #cccccc; }h1 { font-size: 30px; font-style: normal; font-weight: normal; color: #333333; }h2 { font-size: 24px; font-style: normal; font-weight: normal; color: #333333; }h3 { font-size: 20px; font-style: normal; font-weight: normal; color: #333333; }.es-header-body h1 a, .es-content-body h1 a, .es-footer-body h1 a { font-size: 30px; }.es-header-body h2 a, .es-content-body h2 a, .es-footer-body h2 a { font-size: 24px; }.es-header-body h3 a, .es-content-body h3 a, .es-footer-body h3 a { font-size: 20px; }a.es-button, button.es-button { border-style: solid; border-color: #f0f0f0; border-width: 5px 30px 5px 30px; display: inline-block; background: #f0f0f0; border-radius: 0px; font-size: 16px; font-family: arial, 'helvetica neue', helvetica, sans-serif; font-weight: normal; font-style: normal; line-height: 120%; color: #333333; text-decoration: none; width: auto; text-align: center; }.es-button-border { border-style: solid solid solid solid; border-color: #808080 #808080 #808080 #808080; background: #f0f0f0; border-width: 2px 2px 2px 2px; display: inline-block; border-radius: 0px; width: auto; }.ins-trim-text {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
text-overflow: ellipsis;
|
|
4
|
-
white-space: nowrap;
|
|
5
|
-
padding-top: 10px;
|
|
6
|
-
padding-bottom: 10px;
|
|
7
|
-
}/* RESPONSIVE STYLES Please do not delete and edit CSS styles below. If you don't need responsive layout, please delete this section. */ @media only screen and (max-width: 600px) {p, ul li, ol li, a { line-height: 150% !important; }h1 { font-size: 30px !important; text-align: center; line-height: 120% !important; }h2 { font-size: 26px !important; text-align: center; line-height: 120% !important; }h3 { font-size: 20px !important; text-align: center; line-height: 120% !important; }.es-header-body h1 a, .es-content-body h1 a, .es-footer-body h1 a { font-size: 30px !important; }.es-header-body h2 a, .es-content-body h2 a, .es-footer-body h2 a { font-size: 26px !important; }.es-header-body h3 a, .es-content-body h3 a, .es-footer-body h3 a { font-size: 20px !important; }.es-menu td a { font-size: 13px !important; }.es-header-body p, .es-header-body ul li, .es-header-body ol li, .es-header-body a { font-size: 16px !important; }.es-content-body p, .es-content-body ul li, .es-content-body ol li, .es-content-body a { font-size: 16px !important; }.es-footer-body p, .es-footer-body ul li, .es-footer-body ol li, .es-footer-body a { font-size: 16px !important; }.es-infoblock p, .es-infoblock ul li, .es-infoblock ol li, .es-infoblock a { font-size: 12px !important; }*[class="gmail-fix"] { display: none !important; }.es-m-txt-c, .es-m-txt-c h1, .es-m-txt-c h2, .es-m-txt-c h3 { text-align: center !important; }.es-m-txt-r, .es-m-txt-r h1, .es-m-txt-r h2, .es-m-txt-r h3 { text-align: right !important; }.es-m-txt-l, .es-m-txt-l h1, .es-m-txt-l h2, .es-m-txt-l h3 { text-align: left !important; }.es-m-txt-r img, .es-m-txt-c img, .es-m-txt-l img { display: inline !important; }.es-button-border { display: block !important; }a.es-button, button.es-button { font-size: 16px !important; display: block !important; border-width: 10px 0px 10px 0px !important; }.es-btn-fw { border-width: 10px 0px !important; text-align: center !important; }.es-adaptive table, .es-btn-fw, .es-btn-fw-brdr, .es-left, .es-right { width: 100% !important; }.ext-product-button,
|
|
8
|
-
.ext-product-price p,
|
|
9
|
-
.ext-product-original-price p,
|
|
10
|
-
.ext-product-omnibus-price p,
|
|
11
|
-
.ext-product-omnibus-discount p {
|
|
12
|
-
width: 100% !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.ext-product-button a {
|
|
16
|
-
max-width: 100% !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.ext-product-name.ins-vertical p {
|
|
20
|
-
height: 90px !important;
|
|
21
|
-
overflow: hidden !important;
|
|
22
|
-
word-break: break-all !important;
|
|
23
|
-
font-size: 12px !important;
|
|
24
|
-
line-height: 150% !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ext-product-name.ins-vertical {
|
|
28
|
-
height: 100px !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ext-product-omnibus-price.ins-vertical p {
|
|
32
|
-
height: 30px !important;
|
|
33
|
-
overflow: hidden !important;
|
|
34
|
-
word-break: break-all !important;
|
|
35
|
-
font-size: 10px !important;
|
|
36
|
-
line-height: 150% !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ext-product-omnibus-price.ins-vertical {
|
|
40
|
-
height: 50px !important;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.ext-product-omnibus-discount.ins-vertical p {
|
|
44
|
-
height: 30px !important;
|
|
45
|
-
overflow: hidden !important;
|
|
46
|
-
word-break: break-all !important;
|
|
47
|
-
font-size: 10px !important;
|
|
48
|
-
line-height: 150% !important;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.ext-product-omnibus-discount.ins-vertical {
|
|
52
|
-
height: 50px !important;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ext-product-name p {
|
|
56
|
-
height: unset !important;
|
|
57
|
-
width: 100% !important;
|
|
58
|
-
overflow: hidden !important;
|
|
59
|
-
font-size: 16px !important;
|
|
60
|
-
line-height: 150% !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ext-product-name {
|
|
64
|
-
height: unset !important;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.ext-product-price.ins-vertical p {
|
|
68
|
-
overflow: hidden !important;
|
|
69
|
-
word-break: break-all !important;
|
|
70
|
-
height: 36px !important;
|
|
71
|
-
font-size: 12px !important;
|
|
72
|
-
line-height: 150% !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.ext-product-price.ins-vertical {
|
|
76
|
-
height: 56px !important;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ext-product-original-price.ins-vertical p {
|
|
80
|
-
overflow: hidden !important;
|
|
81
|
-
word-break: break-all !important;
|
|
82
|
-
height: 36px !important;
|
|
83
|
-
font-size: 12px !important;
|
|
84
|
-
line-height: 150% !important;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.ext-product-original-price.ins-vertical {
|
|
88
|
-
height: 56px !important;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.ext-ins-attr.ins-vertical p {
|
|
92
|
-
overflow: hidden !important;
|
|
93
|
-
word-break: break-all !important;
|
|
94
|
-
height: 54px !important;
|
|
95
|
-
font-size: 12px !important;
|
|
96
|
-
line-height: 150% !important;
|
|
97
|
-
width: 100% !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ext-ins-attr.ins-vertical {
|
|
101
|
-
height: 74px !important;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.ext-product-button a.ins-vertical {
|
|
105
|
-
word-break: break-all !important;
|
|
106
|
-
font-size: 12px !important;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ext-product-image.ins-vertical {
|
|
110
|
-
height: unset !important;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
td.esdev-mso-td.ins-vertical {
|
|
114
|
-
vertical-align: bottom !important;
|
|
115
|
-
}.es-content table, .es-header table, .es-footer table, .es-content, .es-footer, .es-header { width: 100% !important; max-width: 600px !important; }.es-adapt-td { display: block !important; width: 100% !important; }.adapt-img { width: 100% !important; height: auto !important; }.es-m-p0 { padding: 0px !important; }.es-m-p0r { padding-right: 0px !important; }.es-m-p0l { padding-left: 0px !important; }.es-m-p0t { padding-top: 0px !important; }.es-m-p0b { padding-bottom: 0 !important; }.es-m-p20b { padding-bottom: 20px !important; }.es-mobile-hidden, .es-hidden { display: none !important; }.es-desk-hidden { display: table-row !important; width: auto !important; overflow: visible !important; float: none !important; max-height: inherit !important; line-height: inherit !important; }.es-desk-menu-hidden { display: table-cell !important; }table.es-table-not-adapt, .esd-block-html table { width: auto !important; }table.es-social { display: inline-block !important; }table.es-social td { display: inline-block !important; } }/* END RESPONSIVE STYLES */.ext-product-name p { -webkit-line-clamp:3 !important;-webkit-box-orient:vertical !important;overflow:hidden !important; }.ext-product-price p { height:26px !important; }
|
|
116
|
-
`;
|
|
117
|
-
export {
|
|
118
|
-
t as default
|
|
119
|
-
};
|
|
File without changes
|