@useinsider/guido 1.0.0-beta.c907a9d → 1.0.0-beta.cd820fb
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 +2 -26
- package/dist/@types/generic.d.ts +0 -24
- package/dist/components/Guido.vue.d.ts +6 -5
- package/dist/components/Guido.vue.js +9 -9
- package/dist/components/Guido.vue2.js +54 -58
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +12 -12
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +8 -7
- package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
- package/dist/components/organisms/header/MiddleSlot.vue2.js +20 -15
- package/dist/components/organisms/header/RightSlot.vue.js +9 -10
- package/dist/components/organisms/header/RightSlot.vue2.js +26 -26
- package/dist/components/organisms/header/ViewOptions.vue.js +10 -10
- package/dist/components/organisms/header/ViewOptions.vue2.js +11 -28
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
- package/dist/components/wrappers/WpModal.vue.d.ts +2 -2
- package/dist/composables/useActionsApi.d.ts +1 -2
- package/dist/composables/useActionsApi.js +36 -51
- package/dist/composables/useCustomInterfaceAppearance.js +13 -15
- package/dist/composables/useGuidoActions.d.ts +2 -2
- package/dist/composables/useHtmlCompiler.js +8 -9
- package/dist/composables/useHttp.js +21 -23
- package/dist/composables/usePartner.d.ts +1 -1
- package/dist/composables/usePartner.js +14 -9
- package/dist/composables/usePreviewMode.js +13 -13
- package/dist/composables/useStripo.js +24 -28
- package/dist/composables/useToaster.d.ts +1 -1
- package/dist/composables/useToaster.js +11 -11
- package/dist/composables/useTranslations.js +2 -3
- package/dist/enums/defaults.d.ts +1 -4
- package/dist/enums/defaults.js +2 -13
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +2 -2
- package/dist/node_modules/lodash-es/_isMasked.js +2 -2
- package/dist/static/styles/components/wide-panel.css.js +2 -2
- package/dist/stores/editor.d.ts +1 -176
- package/dist/stores/editor.js +4 -22
- package/dist/stores/preview.d.ts +28 -2
- package/dist/stores/preview.js +24 -20
- package/dist/utils/genericUtil.d.ts +0 -1
- package/dist/utils/genericUtil.js +3 -7
- package/package.json +3 -3
- package/dist/@types/save-as-template.d.ts +0 -29
- package/dist/components/organisms/LoadingWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/LoadingWrapper.vue.js +0 -18
- package/dist/components/organisms/LoadingWrapper.vue2.js +0 -12
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -2
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +0 -20
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +0 -63
- package/dist/components/wrappers/WpDrawer.vue.d.ts +0 -63
- package/dist/components/wrappers/WpDrawer.vue.js +0 -25
- package/dist/components/wrappers/WpDrawer.vue2.js +0 -23
- package/dist/composables/useValidation.d.ts +0 -56
- package/dist/composables/useValidation.js +0 -19
- package/dist/composables/validators/saveAsTemplate.d.ts +0 -31
- package/dist/composables/validators/saveAsTemplate.js +0 -24
- package/dist/mock/api/template-library.d.ts +0 -2
- package/dist/node_modules/@vueuse/shared/index.js +0 -45
- package/dist/node_modules/lodash-es/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_apply.js +0 -16
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
- package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
- package/dist/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
- package/dist/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
- package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/dist/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/_copyArray.js +0 -9
- package/dist/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
- package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
- package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
- package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
- package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_overRest.js +0 -15
- package/dist/node_modules/lodash-es/_safeGet.js +0 -7
- package/dist/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/lodash-es/_shortOut.js +0 -16
- package/dist/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/lodash-es/_stackSet.js +0 -17
- package/dist/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/lodash-es/merge.js +0 -8
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
- package/dist/node_modules/valibot/dist/index.js +0 -190
- package/dist/node_modules/vue-demi/lib/index.js +0 -7
- package/dist/services/templateLibraryApi.d.ts +0 -7
- package/dist/services/templateLibraryApi.js +0 -87
- package/dist/static/styles/components/loader.css.js +0 -10
- package/dist/stores/save-as-template.d.ts +0 -73
- package/dist/stores/save-as-template.js +0 -48
- package/dist/utils/base64.d.ts +0 -1
- package/dist/utils/base64.js +0 -7
- package/dist/utils/templatePreparation.d.ts +0 -4
- package/dist/utils/templatePreparation.js +0 -33
- package/dist/utils/tooltipUtils.d.ts +0 -2
- package/dist/utils/tooltipUtils.js +0 -11
package/README.md
CHANGED
|
@@ -57,11 +57,6 @@ export default {
|
|
|
57
57
|
translationsPath: 'window.trans.en',
|
|
58
58
|
htmlCompilerRules: [],
|
|
59
59
|
ignoreDefaultHtmlCompilerRules: false,
|
|
60
|
-
features: {
|
|
61
|
-
dynamicContent: true,
|
|
62
|
-
saveAsTemplate: true,
|
|
63
|
-
versionHistory: true
|
|
64
|
-
}
|
|
65
60
|
},
|
|
66
61
|
dynamicContentModalVisible: false
|
|
67
62
|
};
|
|
@@ -143,13 +138,8 @@ dynamicContent.close();
|
|
|
143
138
|
```typescript
|
|
144
139
|
interface GuidoConfig {
|
|
145
140
|
translationsPath: string;
|
|
146
|
-
htmlCompilerRules
|
|
147
|
-
ignoreDefaultHtmlCompilerRules
|
|
148
|
-
features: {
|
|
149
|
-
dynamicContent: boolean;
|
|
150
|
-
saveAsTemplate: boolean;
|
|
151
|
-
versionHistory: boolean;
|
|
152
|
-
};
|
|
141
|
+
htmlCompilerRules: CompilerRule[];
|
|
142
|
+
ignoreDefaultHtmlCompilerRules: boolean;
|
|
153
143
|
}
|
|
154
144
|
```
|
|
155
145
|
|
|
@@ -158,10 +148,6 @@ interface GuidoConfig {
|
|
|
158
148
|
| `translationsPath` | `string` | `'window.trans.en'` | JavaScript path to the translations object |
|
|
159
149
|
| `htmlCompilerRules` | `CompilerRule[]` | `[]` | Additional compiler rules to apply to HTML content. See [HTML Compiler Rules](#-html-compiler-rules) section below |
|
|
160
150
|
| `ignoreDefaultHtmlCompilerRules` | `boolean` | `false` | Skip default compiler rules and only use custom rules. Default rules: `src/config/compiler/htmlCompilerRules.ts` |
|
|
161
|
-
| `features` | `Features` | `{ dynamicContent: true, saveAsTemplate: true, versionHistory: true }` | Feature flags to enable/disable editor functionality |
|
|
162
|
-
| `features.dynamicContent` | `boolean` | `true` | Enable dynamic content insertion feature |
|
|
163
|
-
| `features.saveAsTemplate` | `boolean` | `true` | Enable save as template feature |
|
|
164
|
-
| `features.versionHistory` | `boolean` | `true` | Enable version history feature |
|
|
165
151
|
|
|
166
152
|
```typescript
|
|
167
153
|
interface DynamicContent {
|
|
@@ -269,11 +255,6 @@ Define complex transformation logic with a custom processor function.
|
|
|
269
255
|
```typescript
|
|
270
256
|
const guidoConfig = {
|
|
271
257
|
translationsPath: 'window.trans.en',
|
|
272
|
-
features: {
|
|
273
|
-
dynamicContent: true,
|
|
274
|
-
saveAsTemplate: true,
|
|
275
|
-
versionHistory: false // Disable version history
|
|
276
|
-
},
|
|
277
258
|
htmlCompilerRules: [
|
|
278
259
|
{
|
|
279
260
|
id: 'replace-domain',
|
|
@@ -302,11 +283,6 @@ const guidoConfig = {
|
|
|
302
283
|
```typescript
|
|
303
284
|
const guidoConfig = {
|
|
304
285
|
translationsPath: 'window.trans.en',
|
|
305
|
-
features: {
|
|
306
|
-
dynamicContent: true,
|
|
307
|
-
saveAsTemplate: true,
|
|
308
|
-
versionHistory: true
|
|
309
|
-
},
|
|
310
286
|
ignoreDefaultHtmlCompilerRules: true, // Skip all default rules
|
|
311
287
|
htmlCompilerRules: [
|
|
312
288
|
// Only your custom rules will be applied
|
package/dist/@types/generic.d.ts
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import type { CompilerRule } from './html-compiler';
|
|
2
|
-
type Features = {
|
|
3
|
-
dynamicContent?: boolean;
|
|
4
|
-
saveAsTemplate?: boolean;
|
|
5
|
-
versionHistory?: boolean;
|
|
6
|
-
};
|
|
7
|
-
type Partner = {
|
|
8
|
-
partnerName: string;
|
|
9
|
-
productType: number;
|
|
10
|
-
messageType: number;
|
|
11
|
-
};
|
|
12
2
|
export type GuidoConfig = {
|
|
13
3
|
translationsPath: string;
|
|
14
4
|
htmlCompilerRules?: CompilerRule[];
|
|
15
5
|
ignoreDefaultHtmlCompilerRules?: boolean;
|
|
16
6
|
emailHeader: EmailHeader;
|
|
17
|
-
partner?: Partner;
|
|
18
|
-
features?: Features;
|
|
19
7
|
};
|
|
20
8
|
export type DynamicContent = {
|
|
21
9
|
value: string;
|
|
@@ -26,19 +14,7 @@ export interface EmailHeader {
|
|
|
26
14
|
senderName: string;
|
|
27
15
|
subject: string;
|
|
28
16
|
}
|
|
29
|
-
export interface TooltipOptions {
|
|
30
|
-
id: string;
|
|
31
|
-
dynamicPosition: boolean;
|
|
32
|
-
staticPosition: 'top center' | 'top left' | 'top right' | 'bottom center' | 'bottom left' | 'bottom right' | 'right center' | 'right top' | 'right bottom' | 'left center' | 'left top' | 'left bottom';
|
|
33
|
-
iconStatus: boolean;
|
|
34
|
-
offset?: {
|
|
35
|
-
x: number;
|
|
36
|
-
y: number;
|
|
37
|
-
};
|
|
38
|
-
preventXss?: boolean;
|
|
39
|
-
}
|
|
40
17
|
export type MergeTag = {
|
|
41
18
|
label: string;
|
|
42
19
|
value: string;
|
|
43
20
|
};
|
|
44
|
-
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { DynamicContent, GuidoConfig } from '@@/Types/generic';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Template } from '@@/Types/stripo';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
templateId: string;
|
|
5
5
|
userId: string;
|
|
6
|
-
messageType?: number;
|
|
7
6
|
partnerName?: string;
|
|
8
|
-
productType?:
|
|
7
|
+
productType?: string;
|
|
9
8
|
username?: string;
|
|
10
9
|
html?: string;
|
|
11
10
|
css?: string;
|
|
@@ -17,12 +16,14 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__
|
|
|
17
16
|
insert: (data: DynamicContent) => void;
|
|
18
17
|
close: () => void;
|
|
19
18
|
};
|
|
20
|
-
hasChanges: import("vue").ComputedRef<boolean>;
|
|
21
19
|
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
22
20
|
"dynamic-content:open": (detail: DynamicContent | null) => void;
|
|
23
21
|
back: () => void;
|
|
24
22
|
"save:start": () => void;
|
|
25
|
-
"save:complete": (data:
|
|
23
|
+
"save:complete": (data: {
|
|
24
|
+
template: Omit<Template, "forceRecreate">;
|
|
25
|
+
dynamicContentList: DynamicContent[];
|
|
26
|
+
}) => void;
|
|
26
27
|
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
27
28
|
export default _default;
|
|
28
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./Guido.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return e("div", { staticClass: "guido-editor__wrapper" }, [e(r.HeaderWrapper), r.
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
a,
|
|
4
|
+
var s = function() {
|
|
5
|
+
var i = this, e = i._self._c, r = i._self._setupProxy;
|
|
6
|
+
return e("div", { staticClass: "guido-editor__wrapper" }, [e(r.HeaderWrapper), r.previewStore.isPreviewModeOpen ? e(r.PreviewContainer) : i._e(), e("div", { directives: [{ name: "show", rawName: "v-show", value: !r.previewStore.isPreviewModeOpen, expression: "!previewStore.isPreviewModeOpen" }], staticClass: "guido-editor__container", attrs: { id: "guido-editor" } })], 1);
|
|
7
|
+
}, a = [], n = /* @__PURE__ */ t(
|
|
8
|
+
o,
|
|
10
9
|
s,
|
|
10
|
+
a,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"4083db95"
|
|
14
14
|
);
|
|
15
|
-
const c =
|
|
15
|
+
const c = n.exports;
|
|
16
16
|
export {
|
|
17
17
|
c as default
|
|
18
18
|
};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideGuidoActions as
|
|
3
|
-
import { usePartner as
|
|
4
|
-
import { useStripo as
|
|
5
|
-
import { DefaultUsername as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { useEditorStore as R } from "../stores/editor.js";
|
|
12
|
-
import { usePreviewStore as j } from "../stores/preview.js";
|
|
13
|
-
import q from "../node_modules/lodash-es/merge.js";
|
|
14
|
-
const ie = /* @__PURE__ */ I({
|
|
1
|
+
import { defineComponent as L, defineAsyncComponent as E, onMounted as P } from "vue";
|
|
2
|
+
import { provideGuidoActions as _ } from "../composables/useGuidoActions.js";
|
|
3
|
+
import { usePartner as G } from "../composables/usePartner.js";
|
|
4
|
+
import { useStripo as I } from "../composables/useStripo.js";
|
|
5
|
+
import { DefaultUsername as k, DefaultGuidoConfig as T } from "../enums/defaults.js";
|
|
6
|
+
import A from "./organisms/header/HeaderWrapper.vue.js";
|
|
7
|
+
import { useStripoApi as N } from "../services/stripoApi.js";
|
|
8
|
+
import { useDynamicContentStore as x } from "../stores/dynamic-content.js";
|
|
9
|
+
import { usePreviewStore as W } from "../stores/preview.js";
|
|
10
|
+
const q = /* @__PURE__ */ L({
|
|
15
11
|
__name: "Guido",
|
|
16
12
|
props: {
|
|
17
13
|
templateId: null,
|
|
18
14
|
userId: null,
|
|
19
|
-
messageType: null,
|
|
20
15
|
partnerName: null,
|
|
21
16
|
productType: null,
|
|
22
17
|
username: null,
|
|
@@ -26,34 +21,32 @@ const ie = /* @__PURE__ */ I({
|
|
|
26
21
|
guidoConfig: null
|
|
27
22
|
},
|
|
28
23
|
emits: ["dynamic-content:open", "back", "save:start", "save:complete"],
|
|
29
|
-
setup(
|
|
30
|
-
const o =
|
|
24
|
+
setup(S, { expose: b, emit: t }) {
|
|
25
|
+
const o = S, w = E(
|
|
31
26
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
32
|
-
), n =
|
|
33
|
-
templateId:
|
|
34
|
-
userId:
|
|
35
|
-
guidoConfig:
|
|
36
|
-
html:
|
|
37
|
-
css:
|
|
38
|
-
partnerName:
|
|
39
|
-
productType:
|
|
40
|
-
|
|
41
|
-
username: C = W
|
|
27
|
+
), n = x(), c = o.preselectedDynamicContentList || [], { getPartnerName: i, getProductType: s } = G(), h = W(), {
|
|
28
|
+
templateId: a,
|
|
29
|
+
userId: r,
|
|
30
|
+
guidoConfig: m,
|
|
31
|
+
html: d = "",
|
|
32
|
+
css: l = "",
|
|
33
|
+
partnerName: u = i(),
|
|
34
|
+
productType: p = s(),
|
|
35
|
+
username: y = k
|
|
42
36
|
} = o;
|
|
43
|
-
window.GuidoConfig =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
messageType: y
|
|
37
|
+
window.GuidoConfig = {
|
|
38
|
+
...T,
|
|
39
|
+
...m
|
|
47
40
|
};
|
|
48
|
-
const { initPlugin:
|
|
49
|
-
emailId:
|
|
50
|
-
userId:
|
|
51
|
-
username:
|
|
52
|
-
partnerName:
|
|
53
|
-
productType:
|
|
54
|
-
preselectedDynamicContentList:
|
|
55
|
-
}), { getDefaultTemplate:
|
|
56
|
-
|
|
41
|
+
const { initPlugin: C } = I({
|
|
42
|
+
emailId: a,
|
|
43
|
+
userId: r,
|
|
44
|
+
username: y,
|
|
45
|
+
partnerName: u,
|
|
46
|
+
productType: p,
|
|
47
|
+
preselectedDynamicContentList: c
|
|
48
|
+
}), { getDefaultTemplate: g } = N();
|
|
49
|
+
_({
|
|
57
50
|
onBack: () => {
|
|
58
51
|
console.debug("guido:back"), t("back");
|
|
59
52
|
},
|
|
@@ -61,42 +54,45 @@ const ie = /* @__PURE__ */ I({
|
|
|
61
54
|
console.debug("guido:save:start"), t("save:start");
|
|
62
55
|
},
|
|
63
56
|
onSaveComplete: (e) => {
|
|
64
|
-
console.debug("guido:save:complete",
|
|
57
|
+
console.debug("guido:save:complete", {
|
|
58
|
+
template: e,
|
|
59
|
+
dynamicContentList: n.getSelectedDynamicContentList
|
|
60
|
+
}), t("save:complete", {
|
|
61
|
+
template: e,
|
|
62
|
+
dynamicContentList: n.getSelectedDynamicContentList
|
|
63
|
+
});
|
|
65
64
|
}
|
|
66
65
|
});
|
|
67
|
-
const
|
|
66
|
+
const f = (e) => {
|
|
68
67
|
console.debug("dynamic-content:close", e), n.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
69
|
-
},
|
|
68
|
+
}, v = () => {
|
|
70
69
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
71
70
|
};
|
|
72
|
-
return
|
|
71
|
+
return P(async () => {
|
|
73
72
|
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
|
|
74
73
|
try {
|
|
75
74
|
let e = {
|
|
76
|
-
html:
|
|
77
|
-
css:
|
|
75
|
+
html: d,
|
|
76
|
+
css: l,
|
|
78
77
|
forceRecreate: !0
|
|
79
78
|
// TODO: It should be false for old templates. We will communicate with Stripo
|
|
80
79
|
};
|
|
81
|
-
e.html || (e = await
|
|
80
|
+
e.html || (e = await g()), await C(e), n.selectedDynamicContentList = c;
|
|
82
81
|
} catch (e) {
|
|
83
82
|
console.error("Failed to initialize Stripo editor:", e);
|
|
84
83
|
}
|
|
85
84
|
document.addEventListener("dynamic-content:open", (e) => {
|
|
86
|
-
const
|
|
87
|
-
console.debug("dynamic-content:open",
|
|
85
|
+
const D = e;
|
|
86
|
+
console.debug("dynamic-content:open", D.detail), t("dynamic-content:open", D.detail);
|
|
88
87
|
});
|
|
89
|
-
}),
|
|
90
|
-
window.UIEditor.removeEditor();
|
|
91
|
-
}), E({
|
|
88
|
+
}), b({
|
|
92
89
|
dynamicContent: {
|
|
93
|
-
insert:
|
|
94
|
-
close:
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
}), { __sfc: !0, PreviewContainer: T, dynamicContentStore: n, props: o, editorStore: a, previewStore: G, hasChanges: c, preselectedDynamicContentList: r, getPartnerName: m, getProductType: d, templateId: l, userId: p, guidoConfig: u, html: g, css: f, partnerName: i, productType: s, messageType: y, username: C, emit: t, initPlugin: v, getDefaultTemplate: w, insertDynamicContent: D, closeDynamicContent: S, HeaderWrapper: z, LoadingWrapper: B, SaveAsTemplateDrawer: F };
|
|
90
|
+
insert: f,
|
|
91
|
+
close: v
|
|
92
|
+
}
|
|
93
|
+
}), { __sfc: !0, PreviewContainer: w, dynamicContentStore: n, props: o, preselectedDynamicContentList: c, getPartnerName: i, getProductType: s, previewStore: h, templateId: a, userId: r, guidoConfig: m, html: d, css: l, partnerName: u, productType: p, username: y, emit: t, initPlugin: C, getDefaultTemplate: g, insertDynamicContent: f, closeDynamicContent: v, HeaderWrapper: A };
|
|
98
94
|
}
|
|
99
95
|
});
|
|
100
96
|
export {
|
|
101
|
-
|
|
97
|
+
q as default
|
|
102
98
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
return e
|
|
6
|
-
return
|
|
7
|
-
} } }) :
|
|
8
|
-
},
|
|
9
|
-
s,
|
|
1
|
+
import i from "./PreviewContainer.vue2.js";
|
|
2
|
+
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var t = function() {
|
|
4
|
+
var s = this, e = s._self._c, r = s._self._setupProxy;
|
|
5
|
+
return e("div", { staticClass: "d-f f-d-c h-1 b-c-5 bor-r-2 pb-5" }, [e("div", { staticClass: "f-g-1 d-f p-5 o-a g-4 min-h-600" }, [r.previewStore.isLoading ? [e("div", { staticClass: "d-f a-i-c j-c-c w-1 h-1 f-g-1" }, [e(r.InLoading, { attrs: { "color-class": "i-c-1", size: "32" } })], 1)] : [e(r.DesktopPreview, { staticClass: "f-g-1 min-w-0" }), e(r.MobilePreview, { staticClass: "f-0 min-w-a" })]], 2), r.previewStore.isAMPErrorModalVisible ? e(r.AmpErrorModal, { on: { close: function(l) {
|
|
6
|
+
return r.previewStore.closeErrorModal();
|
|
7
|
+
} } }) : s._e()], 1);
|
|
8
|
+
}, a = [], n = /* @__PURE__ */ o(
|
|
10
9
|
i,
|
|
11
|
-
|
|
10
|
+
t,
|
|
11
|
+
a,
|
|
12
12
|
!1,
|
|
13
13
|
null,
|
|
14
14
|
null
|
|
15
15
|
);
|
|
16
|
-
const
|
|
16
|
+
const d = n.exports;
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
d as default
|
|
19
19
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { defineComponent as r, onMounted as t } from "vue";
|
|
2
2
|
import { usePreviewMode as i } from "../../../composables/usePreviewMode.js";
|
|
3
3
|
import { usePreviewStore as m } from "../../../stores/preview.js";
|
|
4
|
+
import { InLoading as n } from "@useinsider/design-system-vue";
|
|
4
5
|
import p from "./amp/AmpErrorModal.vue.js";
|
|
5
|
-
import
|
|
6
|
+
import f from "./desktop-preview/DesktopPreview.vue.js";
|
|
6
7
|
import s from "./mobile-preview/MobilePreview.vue.js";
|
|
7
|
-
const
|
|
8
|
+
const l = /* @__PURE__ */ r({
|
|
8
9
|
__name: "PreviewContainer",
|
|
9
|
-
setup(
|
|
10
|
-
const { loadPreviewData:
|
|
10
|
+
setup(a) {
|
|
11
|
+
const { loadPreviewData: o } = i(), e = m();
|
|
11
12
|
return t(() => {
|
|
12
|
-
|
|
13
|
-
}), { __sfc: !0, loadPreviewData:
|
|
13
|
+
o();
|
|
14
|
+
}), { __sfc: !0, loadPreviewData: o, previewStore: e, InLoading: n, AmpErrorModal: p, DesktopPreview: f, MobilePreview: s };
|
|
14
15
|
}
|
|
15
16
|
});
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
l as default
|
|
18
19
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import i from "./MiddleSlot.vue2.js";
|
|
2
2
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var n = function() {
|
|
4
|
-
var
|
|
5
|
-
return t.editorStore.isVersionHistoryOpen ?
|
|
6
|
-
},
|
|
4
|
+
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
5
|
+
return t.editorStore.isVersionHistoryOpen ? e("div", { staticClass: "d-f" }, [e(t.VersionHistory), e(t.VersionHistoryViewOptions)], 1) : e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1 } }), e(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1 } }), e(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", "tooltip-text": "Code Editor", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button") } }), e(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "label-text-status": !1, "selected-status": t.previewStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), e(t.ViewOptions, { staticClass: "ml-3" }), t.previewStore.isPreviewModeOpen ? e(t.AmpToggle) : o._e()], 1);
|
|
6
|
+
}, r = [], d = /* @__PURE__ */ s(
|
|
7
7
|
i,
|
|
8
8
|
n,
|
|
9
|
-
|
|
9
|
+
r,
|
|
10
10
|
!1,
|
|
11
11
|
null,
|
|
12
12
|
null
|
|
13
13
|
);
|
|
14
|
-
const
|
|
14
|
+
const u = d.exports;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
u as default
|
|
17
17
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { defineComponent as p, computed as
|
|
2
|
-
import { usePreviewMode as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import
|
|
5
|
-
import { useEditorStore as
|
|
6
|
-
import {
|
|
7
|
-
import { InButtonV2 as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as p, computed as m } from "vue";
|
|
2
|
+
import { usePreviewMode as l } from "../../../composables/usePreviewMode.js";
|
|
3
|
+
import { useTranslations as c } from "../../../composables/useTranslations.js";
|
|
4
|
+
import a from "../email-preview/amp/AmpToggle.vue.js";
|
|
5
|
+
import { useEditorStore as d } from "../../../stores/editor.js";
|
|
6
|
+
import { usePreviewStore as f } from "../../../stores/preview.js";
|
|
7
|
+
import { InButtonV2 as w } from "@useinsider/design-system-vue";
|
|
8
|
+
import v from "./version-history/VersionHistory.vue.js";
|
|
9
|
+
import u from "./version-history/ViewOptions.vue.js";
|
|
10
|
+
import P from "./ViewOptions.vue.js";
|
|
11
|
+
const B = /* @__PURE__ */ p({
|
|
12
12
|
__name: "MiddleSlot",
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
return { __sfc: !0, editorStore:
|
|
13
|
+
setup(g) {
|
|
14
|
+
const r = d(), e = c(), o = f(), { openPreviewMode: t, closePreviewMode: i } = l(), s = m(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview"));
|
|
15
|
+
return { __sfc: !0, editorStore: r, trans: e, previewStore: o, openPreviewMode: t, closePreviewMode: i, previewTooltipText: s, getTooltipOptions: (n) => ({
|
|
16
|
+
id: `${n}-tooltip`,
|
|
17
|
+
dynamicPosition: !1,
|
|
18
|
+
staticPosition: "bottom center",
|
|
19
|
+
iconStatus: !1
|
|
20
|
+
}), handlePreviewToggle: () => o.isPreviewModeOpen ? i() : t(), AmpToggle: a, InButtonV2: w, VersionHistory: v, VersionHistoryViewOptions: u, ViewOptions: P };
|
|
16
21
|
}
|
|
17
22
|
});
|
|
18
23
|
export {
|
|
19
|
-
|
|
24
|
+
B as default
|
|
20
25
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var s,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import o from "./RightSlot.vue2.js";
|
|
2
|
+
import i from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var n = function() {
|
|
4
|
+
var s = this, e = s._self._c, t = s._self._setupProxy;
|
|
5
|
+
return e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleVersionHistory } }), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.exportHtml } }), e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": t.isSaveButtonDisabled }, on: { click: t.handleSave } })], 1);
|
|
6
|
+
}, a = [], r = /* @__PURE__ */ i(
|
|
7
|
+
o,
|
|
8
8
|
n,
|
|
9
|
-
|
|
10
|
-
r,
|
|
9
|
+
a,
|
|
11
10
|
!1,
|
|
12
11
|
null,
|
|
13
12
|
null
|
|
14
13
|
);
|
|
15
|
-
const c =
|
|
14
|
+
const c = r.exports;
|
|
16
15
|
export {
|
|
17
16
|
c as default
|
|
18
17
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { useExport as
|
|
4
|
-
import { useSaveStart as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { InButtonV2 as C } from "@useinsider/design-system-vue";
|
|
11
|
-
const q = /* @__PURE__ */ v({
|
|
1
|
+
import { defineComponent as u, computed as f } from "vue";
|
|
2
|
+
import { useActionsApi as d } from "../../../composables/useActionsApi.js";
|
|
3
|
+
import { useExport as S } from "../../../composables/useExport.js";
|
|
4
|
+
import { useSaveStart as v, useSaveComplete as y } from "../../../composables/useGuidoActions.js";
|
|
5
|
+
import { useVersionHistoryApi as _ } from "../../../composables/useVersionHistoryApi.js";
|
|
6
|
+
import { useEditorStore as H } from "../../../stores/editor.js";
|
|
7
|
+
import { usePreviewStore as V } from "../../../stores/preview.js";
|
|
8
|
+
import { InButtonV2 as h } from "@useinsider/design-system-vue";
|
|
9
|
+
const b = /* @__PURE__ */ u({
|
|
12
10
|
__name: "RightSlot",
|
|
13
|
-
setup(
|
|
14
|
-
const {
|
|
15
|
-
if (
|
|
16
|
-
|
|
11
|
+
setup(w) {
|
|
12
|
+
const { exportHtml: p } = S(), { getCompiledEmail: e } = d(), r = v(), s = y(), { openVersionHistory: i, closeVersionHistory: n } = _(), o = H(), m = V(), a = () => {
|
|
13
|
+
if (o.isVersionHistoryOpen) {
|
|
14
|
+
n();
|
|
17
15
|
return;
|
|
18
16
|
}
|
|
19
17
|
i();
|
|
20
|
-
}, c = () => {
|
|
21
|
-
|
|
22
|
-
}, f = d(() => t.isVersionHistoryOpen ? e("newsletter.close-version-history") : e("newsletter.version-history"));
|
|
23
|
-
return { __sfc: !0, config: p, exportHtml: m, saveStart: s, saveComplete: n, openVersionHistory: i, closeVersionHistory: a, editorStore: t, trans: e, isSaving: o, handleVersionHistory: l, handleSaveAs: c, versionHistoryTooltipText: f, handleSave: async () => {
|
|
24
|
-
o.value = !0, t.loadingStatus = !0, s();
|
|
18
|
+
}, c = async () => {
|
|
19
|
+
r();
|
|
25
20
|
try {
|
|
26
|
-
const {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
const { html: t } = await e();
|
|
22
|
+
s({
|
|
23
|
+
html: t || "",
|
|
24
|
+
css: ""
|
|
25
|
+
// CSS is embedded in HTML from Stripo
|
|
26
|
+
});
|
|
27
|
+
} catch (t) {
|
|
28
|
+
console.error("Failed to get template data for save:", t);
|
|
30
29
|
}
|
|
31
|
-
},
|
|
30
|
+
}, l = f(() => o.isVersionHistoryOpen || m.isPreviewModeOpen);
|
|
31
|
+
return { __sfc: !0, exportHtml: p, getCompiledEmail: e, saveStart: r, saveComplete: s, openVersionHistory: i, closeVersionHistory: n, editorStore: o, previewStore: m, handleVersionHistory: a, handleSave: c, isSaveButtonDisabled: l, InButtonV2: h };
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
b as default
|
|
36
36
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./ViewOptions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var t = this,
|
|
6
|
-
return
|
|
7
|
-
}, n = [], _ = /* @__PURE__ */
|
|
8
|
-
o,
|
|
3
|
+
import i from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var s = function() {
|
|
5
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return o(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.previewStore.isPreviewModeOpen, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } });
|
|
7
|
+
}, n = [], _ = /* @__PURE__ */ i(
|
|
9
8
|
r,
|
|
9
|
+
s,
|
|
10
10
|
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"c4fe2637"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const d = _.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
d as default
|
|
18
18
|
};
|
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const d = /* @__PURE__ */ n({
|
|
1
|
+
import { defineComponent as r } from "vue";
|
|
2
|
+
import { useEditorStore as i } from "../../../stores/editor.js";
|
|
3
|
+
import { usePreviewStore as n } from "../../../stores/preview.js";
|
|
4
|
+
import { InSegments as s } from "@useinsider/design-system-vue";
|
|
5
|
+
const _ = /* @__PURE__ */ r({
|
|
7
6
|
__name: "ViewOptions",
|
|
8
7
|
setup(m) {
|
|
9
|
-
const e =
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
position: "bottom",
|
|
15
|
-
align: "center",
|
|
16
|
-
tooltipText: t("newsletter.desktop"),
|
|
17
|
-
tooltipOptions: o("guido__view-option-desktop")
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
text: "",
|
|
21
|
-
icon: "line-menu-mobileapp",
|
|
22
|
-
value: "mobile",
|
|
23
|
-
position: "bottom",
|
|
24
|
-
align: "center",
|
|
25
|
-
tooltipText: t("newsletter.mobile"),
|
|
26
|
-
tooltipOptions: o("guido__view-option-mobile")
|
|
27
|
-
}
|
|
28
|
-
];
|
|
29
|
-
return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: r };
|
|
8
|
+
const e = i(), t = [
|
|
9
|
+
{ text: "", icon: "line-desktop", value: "desktop" },
|
|
10
|
+
{ text: "", icon: "line-menu-mobileapp", value: "mobile" }
|
|
11
|
+
], o = n();
|
|
12
|
+
return { __sfc: !0, editorStore: e, segmentList: t, previewStore: o, InSegments: s };
|
|
30
13
|
}
|
|
31
14
|
});
|
|
32
15
|
export {
|
|
33
|
-
|
|
16
|
+
_ as default
|
|
34
17
|
};
|