@useinsider/guido 3.19.0-beta.80b64cf → 3.19.0-beta.84c97db
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/config/schemas.js +9 -8
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +104 -86
- package/dist/components/organisms/AutoSaveController.vue2.js +18 -8
- package/dist/components/organisms/base/AuthErrorModal.vue.js +18 -0
- package/dist/components/organisms/base/AuthErrorModal.vue2.js +42 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +25 -0
- package/dist/components/organisms/header/EditorActions.vue.js +13 -13
- package/dist/components/organisms/header/EditorActions.vue2.js +37 -52
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +98 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -17
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +32 -23
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
- package/dist/components/organisms/header/RightSlot.vue.js +9 -8
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -18
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +22 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +19 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +90 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +56 -38
- package/dist/components/wrappers/WpModal.vue.js +1 -1
- package/dist/components/wrappers/WpModal.vue2.js +4 -3
- package/dist/composables/useAccessibilityApi.js +45 -0
- package/dist/composables/useAuthError.js +52 -0
- package/dist/composables/useAutoSave.js +11 -11
- package/dist/composables/useCortexBlueprintBridge.js +122 -54
- package/dist/composables/useCustomInterfaceAppearance.js +42 -41
- package/dist/composables/useEmailTemplateApplier.js +111 -50
- package/dist/composables/useHttp.js +64 -54
- package/dist/composables/useLegacyStrategyConversion.js +23 -19
- package/dist/composables/useStripo.js +24 -20
- package/dist/composables/useToaster.js +17 -15
- package/dist/composables/validators/useLiquidValidator.js +15 -15
- package/dist/config/i18n/en/labels.json.js +36 -4
- package/dist/config/i18n/en/tooltips.json.js +2 -1
- package/dist/config/migrator/index.js +14 -13
- package/dist/config/migrator/itemsBlockMigrator.js +236 -248
- package/dist/config/migrator/recommendationMigrator.js +28 -21
- package/dist/config/migrator/recommendationPartnerMigrator.js +56 -0
- package/dist/enums/extensions/recommendationBlock.js +30 -29
- package/dist/extensions/Blocks/Items/constants/cardLayout.js +20 -0
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +18 -17
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +114 -105
- package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +11 -9
- package/dist/extensions/Blocks/Items/template.js +219 -204
- package/dist/extensions/Blocks/Recommendation/block.js +54 -88
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +32 -51
- package/dist/extensions/Blocks/Recommendation/utils/partnerScope.js +11 -12
- package/dist/guido.css +1 -1
- package/dist/sprite.svg +10 -0
- package/dist/src/@types/config/schemas.d.ts +2 -0
- package/dist/src/components/organisms/AutoSaveController.vue.d.ts +3 -1
- package/dist/src/components/organisms/header/AutoSaveStatus.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
- package/dist/src/components/wrappers/WpModal.vue.d.ts +5 -1
- package/dist/src/composables/useAccessibilityApi.d.ts +13 -0
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useAuthError.d.ts +12 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useCortexBlueprintBridge.d.ts +2 -3
- package/dist/src/composables/useEmailTemplateApplier.d.ts +18 -5
- package/dist/src/composables/useGuidoActions.d.ts +2 -0
- package/dist/src/composables/useHttp.d.ts +2 -0
- package/dist/src/config/migrator/index.d.ts +2 -1
- package/dist/src/config/migrator/recommendationPartnerMigrator.d.ts +19 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/constants/cardLayout.d.ts +44 -0
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +3 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +19 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -6
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/utils/partnerScope.d.ts +13 -7
- package/dist/src/mock/cortexChatStore.d.ts +12 -0
- package/dist/src/stores/autosave.d.ts +73 -1
- package/dist/src/stores/config.d.ts +20 -0
- package/dist/src/stores/editor.d.ts +109 -0
- package/dist/src/stores/guido-email-editor.d.ts +20 -10
- package/dist/src/stores/onboarding.d.ts +956 -21
- package/dist/src/stores/recommendation.d.ts +5 -0
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/dateUtil.d.ts +10 -0
- package/dist/src/utils/genericUtil.d.ts +3 -0
- package/dist/src/utils/timeUtil.d.ts +5 -0
- package/dist/static/styles/components/accessibility.css.js +234 -0
- package/dist/static/styles/components/version-history.css.js +2 -6
- package/dist/static/styles/variables.css.js +2 -0
- package/dist/stores/autosave.js +12 -7
- package/dist/stores/editor.js +7 -4
- package/dist/stores/guido-email-editor.js +3 -1
- package/dist/stores/onboarding.js +47 -21
- package/dist/utils/pairProductVariables.js +71 -71
- package/dist/utils/timeUtil.js +6 -17
- package/package.json +2 -1
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- /package/dist/src/components/organisms/{header/AutoSaveToggle.vue.d.ts → base/AuthErrorModal.vue.d.ts} +0 -0
|
@@ -1,62 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActionsApi as
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import {
|
|
5
|
-
import { useTestEmailClick as D } from "../../../composables/useGuidoActions.js";
|
|
1
|
+
import { defineComponent as x, computed as A, ref as h } from "vue";
|
|
2
|
+
import { useActionsApi as M } from "../../../composables/useActionsApi.js";
|
|
3
|
+
import { useConfig as q } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useTestEmailClick as F } from "../../../composables/useGuidoActions.js";
|
|
6
5
|
import { useHtmlCompiler as L } from "../../../composables/useHtmlCompiler.js";
|
|
7
|
-
import { useSave as
|
|
8
|
-
import { useToaster as
|
|
9
|
-
import { useTranslations as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { useEditorStore as
|
|
13
|
-
import { useTemplateStore as
|
|
14
|
-
import { getTooltipOptions as
|
|
15
|
-
import { InButtonV2 as
|
|
16
|
-
import { storeToRefs as
|
|
17
|
-
import
|
|
18
|
-
|
|
6
|
+
import { useSave as V } from "../../../composables/useSave.js";
|
|
7
|
+
import { useToaster as w } from "../../../composables/useToaster.js";
|
|
8
|
+
import { useTranslations as H } from "../../../composables/useTranslations.js";
|
|
9
|
+
import { useLiquidValidator as b } from "../../../composables/validators/useLiquidValidator.js";
|
|
10
|
+
import { useAutosaveStore as k } from "../../../stores/autosave.js";
|
|
11
|
+
import { useEditorStore as O } from "../../../stores/editor.js";
|
|
12
|
+
import { useTemplateStore as R } from "../../../stores/template.js";
|
|
13
|
+
import { getTooltipOptions as z } from "../../../utils/tooltipUtils.js";
|
|
14
|
+
import { InButtonV2 as B } from "@useinsider/design-system-vue";
|
|
15
|
+
import { storeToRefs as D } from "pinia";
|
|
16
|
+
import I from "./EditorActionsMenu.vue.js";
|
|
17
|
+
import j from "./MigrationConfirmModal.vue.js";
|
|
18
|
+
const st = /* @__PURE__ */ x({
|
|
19
19
|
__name: "EditorActions",
|
|
20
|
-
setup(
|
|
21
|
-
const { config:
|
|
22
|
-
|
|
23
|
-
f();
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
u();
|
|
27
|
-
}, C = async () => {
|
|
28
|
-
i.value = !0, await c(), i.value = !1;
|
|
29
|
-
}, A = () => {
|
|
30
|
-
e.isSaveAsTemplateDrawerOpen = !0;
|
|
31
|
-
}, M = x(() => e.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), O = x(
|
|
32
|
-
() => {
|
|
33
|
-
var t, o;
|
|
34
|
-
return ((o = (t = l.value) == null ? void 0 : t.features) == null ? void 0 : o.versionHistory) && !e.isPreviewModeOpen;
|
|
35
|
-
}
|
|
36
|
-
), V = async (t) => {
|
|
37
|
-
a.value = !0, t || (e.loadingStatus = !0);
|
|
20
|
+
setup(G, { expose: y }) {
|
|
21
|
+
const { config: E, isFeatureEnabled: a } = q(), { save: s } = V(), { getCompiledEmail: n } = M(), { compileHtml: m } = L(), { validateLiquidSyntax: l } = b(), { handleError: r } = w(), e = O(), u = R(), c = k(), { hasMigrations: f } = D(u), C = A(() => a("liquidSyntax") || a("autosave") && c.hasStatusLabel), T = H(), i = h(!1), p = h(), d = F(), v = async (t) => {
|
|
22
|
+
i.value = !0, t || (e.loadingStatus = !0);
|
|
38
23
|
let o;
|
|
39
24
|
try {
|
|
40
|
-
o = await
|
|
41
|
-
} catch (
|
|
42
|
-
r(
|
|
25
|
+
o = await s(t);
|
|
26
|
+
} catch (g) {
|
|
27
|
+
r(g, "Failed to save template");
|
|
43
28
|
} finally {
|
|
44
|
-
|
|
29
|
+
i.value = !1, !t && !o && (e.loadingStatus = !1);
|
|
45
30
|
}
|
|
46
31
|
return o;
|
|
47
|
-
},
|
|
32
|
+
}, S = (t) => {
|
|
48
33
|
var o;
|
|
49
|
-
if (!t &&
|
|
50
|
-
(o =
|
|
34
|
+
if (!t && f.value) {
|
|
35
|
+
(o = p.value) == null || o.open();
|
|
51
36
|
return;
|
|
52
37
|
}
|
|
53
|
-
return
|
|
54
|
-
},
|
|
55
|
-
if (
|
|
38
|
+
return v(t);
|
|
39
|
+
}, _ = async () => {
|
|
40
|
+
if (a("liquidSyntax")) {
|
|
56
41
|
e.loadingStatus = !0;
|
|
57
42
|
try {
|
|
58
|
-
const { html: t } = await
|
|
59
|
-
if (!await
|
|
43
|
+
const { html: t } = await n({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: o } = m(t);
|
|
44
|
+
if (!await l(o))
|
|
60
45
|
return;
|
|
61
46
|
} catch (t) {
|
|
62
47
|
r(t, "Failed to prepare test email");
|
|
@@ -65,13 +50,13 @@ const ft = /* @__PURE__ */ q({
|
|
|
65
50
|
e.loadingStatus = !1;
|
|
66
51
|
}
|
|
67
52
|
}
|
|
68
|
-
|
|
53
|
+
d();
|
|
69
54
|
};
|
|
70
|
-
return
|
|
71
|
-
handleSave:
|
|
72
|
-
}), { __sfc: !0, config:
|
|
55
|
+
return y({
|
|
56
|
+
handleSave: S
|
|
57
|
+
}), { __sfc: !0, config: E, isFeatureEnabled: a, save: s, getCompiledEmail: n, compileHtml: m, validateLiquidSyntax: l, handleError: r, editorStore: e, templateStore: u, autosaveStore: c, hasMigrations: f, hasContentOnTheLeft: C, trans: T, isSaving: i, migrationModalRef: p, testEmailClick: d, executeSave: v, handleSave: S, handleTestEmail: _, getTooltipOptions: z, InButtonV2: B, EditorActionsMenu: I, MigrationConfirmModal: j };
|
|
73
58
|
}
|
|
74
59
|
});
|
|
75
60
|
export {
|
|
76
|
-
|
|
61
|
+
st as default
|
|
77
62
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import i from "./EditorActionsMenu.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var n = function() {
|
|
5
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
6
|
+
return o("div", { staticClass: "editor-actions-menu p-r" }, [o(t.InButtonV2, { attrs: { id: "guido__kebab-button", "data-testid": "Editor Actions Menu", "left-icon": "line-more-vertical", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.isPanelOpen, "tooltip-options": t.getTooltipOptions("guido__kebab-button"), "tooltip-text": t.trans("email-editor.more-actions") }, on: { click: function(d) {
|
|
7
|
+
t.isOpen = !t.isOpen;
|
|
8
|
+
} } }), o(t.InDropdownMenu, { staticClass: "editor-actions-menu__dropdown", attrs: { id: "guido__kebab-menu", "box-width": "basedOnLongestItem", "static-position": "bottom right", "dynamic-position": !1, "max-height": 400, options: t.options, "select-all-option-status": !1, status: t.isPanelOpen }, on: { clickOutside: t.close, optionClick: t.handleOptionClick } })], 1);
|
|
9
|
+
}, a = [], r = /* @__PURE__ */ s(
|
|
10
|
+
i,
|
|
11
|
+
n,
|
|
12
|
+
a,
|
|
13
|
+
!1,
|
|
14
|
+
null,
|
|
15
|
+
"d0e6b57a"
|
|
16
|
+
);
|
|
17
|
+
const _ = r.exports;
|
|
18
|
+
export {
|
|
19
|
+
_ as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent as D, ref as C, computed as i, watch as L } from "vue";
|
|
2
|
+
import { useAccessibilityApi as R } from "../../../composables/useAccessibilityApi.js";
|
|
3
|
+
import { useConfig as Y } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useExport as F } from "../../../composables/useExport.js";
|
|
5
|
+
import { useTranslations as N } from "../../../composables/useTranslations.js";
|
|
6
|
+
import { useVersionHistoryApi as U } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
+
import { useAutosaveStore as X } from "../../../stores/autosave.js";
|
|
8
|
+
import { useEditorStore as j } from "../../../stores/editor.js";
|
|
9
|
+
import { useOnboardingStore as q } from "../../../stores/onboarding.js";
|
|
10
|
+
import { getTooltipOptions as z } from "../../../utils/tooltipUtils.js";
|
|
11
|
+
import { InToggle as G, InDropdownMenu as J, InButtonV2 as K } from "@useinsider/design-system-vue";
|
|
12
|
+
const ce = /* @__PURE__ */ D({
|
|
13
|
+
__name: "EditorActionsMenu",
|
|
14
|
+
setup(Q) {
|
|
15
|
+
const c = "guido__kebab-autosave", u = "guido__kebab-version-history", d = "guido__kebab-accessibility", p = "guido__kebab-save-as", v = "guido__kebab-export", { config: m, isFeatureEnabled: b } = Y(), { exportHtml: y } = F(), { openVersionHistory: A, closeVersionHistory: S } = U(), { toggleAccessibilityTestingMode: _ } = R(), e = j(), a = X(), f = q(), o = N(), g = C(!1), M = i(() => g.value || f.isEditorActionsMenuPinned), r = C(!1), O = i(() => b("autosave")), x = i(
|
|
16
|
+
() => {
|
|
17
|
+
var t, s;
|
|
18
|
+
return !!((s = (t = m.value) == null ? void 0 : t.features) != null && s.versionHistory) && !e.isPreviewModeOpen;
|
|
19
|
+
}
|
|
20
|
+
), h = i(
|
|
21
|
+
() => b("accessibilityTesting") && !e.isPreviewModeOpen
|
|
22
|
+
), V = i(() => {
|
|
23
|
+
var t, s;
|
|
24
|
+
return !!((s = (t = m.value) == null ? void 0 : t.features) != null && s.saveAsTemplate);
|
|
25
|
+
}), E = i(() => O.value ? [
|
|
26
|
+
{ categoryText: o("email-editor.preferences") },
|
|
27
|
+
{
|
|
28
|
+
text: o("email-editor.auto-save"),
|
|
29
|
+
value: c,
|
|
30
|
+
disable: e.loadingStatus,
|
|
31
|
+
rightSlotComponent: G,
|
|
32
|
+
rightSlotProps: {
|
|
33
|
+
id: "guido__kebab-autosave-toggle",
|
|
34
|
+
name: "guido-kebab-autosave-toggle",
|
|
35
|
+
class: "p-e-n",
|
|
36
|
+
checked: a.isOn,
|
|
37
|
+
disable: e.loadingStatus
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{ divider: "solid" }
|
|
41
|
+
] : []), T = i(() => [
|
|
42
|
+
{ categoryText: o("email-editor.actions") },
|
|
43
|
+
...x.value ? [{
|
|
44
|
+
text: o("newsletter.version-history"),
|
|
45
|
+
value: u,
|
|
46
|
+
iconLeft: "line-architect-version-history",
|
|
47
|
+
disable: e.isVersionHistoryButtonDisabled
|
|
48
|
+
}] : [],
|
|
49
|
+
...h.value ? [{
|
|
50
|
+
text: o("email-editor.accessibility-test"),
|
|
51
|
+
value: d,
|
|
52
|
+
iconLeft: "line-accessibility",
|
|
53
|
+
disable: e.loadingStatus
|
|
54
|
+
}] : [],
|
|
55
|
+
...V.value ? [{
|
|
56
|
+
text: o("newsletter.save-templates"),
|
|
57
|
+
value: p,
|
|
58
|
+
iconLeft: "line-newsletter-save-as-template",
|
|
59
|
+
disable: e.isSaveAsButtonDisabled
|
|
60
|
+
}] : [],
|
|
61
|
+
{
|
|
62
|
+
text: o("email-editor.export-html"),
|
|
63
|
+
value: v,
|
|
64
|
+
iconLeft: "line-export",
|
|
65
|
+
disable: r.value || e.isExportButtonDisabled
|
|
66
|
+
}
|
|
67
|
+
]), P = i(() => [...E.value, ...T.value]), n = () => {
|
|
68
|
+
g.value = !1;
|
|
69
|
+
};
|
|
70
|
+
L(() => f.isEditorActionsMenuPinned, (t) => {
|
|
71
|
+
t || n();
|
|
72
|
+
});
|
|
73
|
+
const k = () => {
|
|
74
|
+
a.isOn = !a.isOn;
|
|
75
|
+
}, w = () => {
|
|
76
|
+
e.isVersionHistoryOpen ? S() : A(), n();
|
|
77
|
+
}, H = () => {
|
|
78
|
+
_(), n();
|
|
79
|
+
}, I = () => {
|
|
80
|
+
e.isSaveAsTemplateDrawerOpen = !0, n();
|
|
81
|
+
}, B = async () => {
|
|
82
|
+
r.value = !0, await y(), r.value = !1, n();
|
|
83
|
+
}, l = {
|
|
84
|
+
[c]: k,
|
|
85
|
+
[u]: w,
|
|
86
|
+
[d]: H,
|
|
87
|
+
[p]: I,
|
|
88
|
+
[v]: B
|
|
89
|
+
};
|
|
90
|
+
return { __sfc: !0, AUTOSAVE: c, VERSION_HISTORY: u, ACCESSIBILITY: d, SAVE_AS: p, EXPORT: v, config: m, isFeatureEnabled: b, exportHtml: y, openVersionHistory: A, closeVersionHistory: S, toggleAccessibilityTestingMode: _, editorStore: e, autosaveStore: a, onboardingStore: f, trans: o, isOpen: g, isPanelOpen: M, isExporting: r, isAutosaveVisible: O, isVersionHistoryVisible: x, isAccessibilityVisible: h, isSaveAsVisible: V, preferenceOptions: E, actionOptions: T, options: P, close: n, toggleAutosave: k, handleVersionHistory: w, handleAccessibility: H, handleSaveAs: I, handleExport: B, optionHandlers: l, handleOptionClick: ({ value: t }) => {
|
|
91
|
+
var s;
|
|
92
|
+
return (s = l[t]) == null ? void 0 : s.call(l);
|
|
93
|
+
}, getTooltipOptions: z, InButtonV2: K, InDropdownMenu: J };
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
ce as default
|
|
98
|
+
};
|
|
@@ -3,16 +3,16 @@ import o from "./HeaderWrapper.vue2.js";
|
|
|
3
3
|
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var s = function() {
|
|
5
5
|
var t = this, r = t._self._c, e = t._self._setupProxy;
|
|
6
|
-
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0", "data-testid": "guido-header" } }, [r("div", { staticClass: "header-wrapper w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot
|
|
7
|
-
},
|
|
6
|
+
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0", "data-testid": "guido-header" } }, [r("div", { staticClass: "header-wrapper w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot)], 1)]);
|
|
7
|
+
}, n = [], d = /* @__PURE__ */ a(
|
|
8
8
|
o,
|
|
9
9
|
s,
|
|
10
|
-
|
|
10
|
+
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"3c713746"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const f = d.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
f as default
|
|
18
18
|
};
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InContainer as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as o } from "vue";
|
|
2
|
+
import { InContainer as r } from "@useinsider/design-system-vue";
|
|
3
|
+
import t from "./LeftSlot.vue.js";
|
|
4
|
+
import e from "./MiddleSlot.vue.js";
|
|
5
|
+
import m from "./RightSlot.vue.js";
|
|
6
|
+
const s = /* @__PURE__ */ o({
|
|
7
7
|
__name: "HeaderWrapper",
|
|
8
|
-
setup(
|
|
9
|
-
|
|
10
|
-
return r({
|
|
11
|
-
// Stryker disable next-line OptionalChaining: RightSlot is always rendered (no
|
|
12
|
-
// v-if), so rightSlotRef.value is never null and `?.` cannot short-circuit.
|
|
13
|
-
handleSave: (t) => {
|
|
14
|
-
var o;
|
|
15
|
-
return (o = e.value) == null ? void 0 : o.handleSave(t);
|
|
16
|
-
}
|
|
17
|
-
}), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
|
|
8
|
+
setup(p) {
|
|
9
|
+
return { __sfc: !0, InContainer: r, LeftSlot: t, MiddleSlot: e, RightSlot: m };
|
|
18
10
|
}
|
|
19
11
|
});
|
|
20
12
|
export {
|
|
21
|
-
|
|
13
|
+
s as default
|
|
22
14
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import o from "./LeftSlot.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
3
|
+
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = function() {
|
|
5
5
|
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
6
|
return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "ghost", type: "secondary", "disabled-status": t.isBackButtonDisabled, "label-text": t.backButtonLabel, "skeleton-sizing": { width: 150, height: 26 }, "skeleton-status": t.editorStore.loadingStatus }, on: { click: t.handleBackClick } })], 1);
|
|
7
|
-
}, i = [], r = /* @__PURE__ */
|
|
7
|
+
}, i = [], r = /* @__PURE__ */ n(
|
|
8
8
|
o,
|
|
9
|
-
|
|
9
|
+
a,
|
|
10
10
|
i,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"15610de9"
|
|
14
14
|
);
|
|
15
15
|
const f = r.exports;
|
|
16
16
|
export {
|
|
@@ -1,36 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as p, computed as d, ref as b } from "vue";
|
|
2
|
+
import { useAccessibilityApi as k } from "../../../composables/useAccessibilityApi.js";
|
|
3
|
+
import { useConfig as B } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useBack as y } from "../../../composables/useGuidoActions.js";
|
|
5
|
+
import { usePreviewMode as v } from "../../../composables/usePreviewMode.js";
|
|
6
|
+
import { useTranslations as A } from "../../../composables/useTranslations.js";
|
|
6
7
|
import { useVersionHistoryApi as _ } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
-
import { useEditorStore as
|
|
8
|
-
import { InButtonV2 as
|
|
9
|
-
import { useDebounceFn as
|
|
10
|
-
const
|
|
8
|
+
import { useEditorStore as g } from "../../../stores/editor.js";
|
|
9
|
+
import { InButtonV2 as O } from "@useinsider/design-system-vue";
|
|
10
|
+
import { useDebounceFn as M } from "../../../node_modules/@vueuse/shared/index.js";
|
|
11
|
+
const F = /* @__PURE__ */ p({
|
|
11
12
|
__name: "LeftSlot",
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
14
|
-
var
|
|
15
|
-
return e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : (
|
|
16
|
-
}),
|
|
13
|
+
setup(V) {
|
|
14
|
+
const e = g(), s = y(), { closeVersionHistory: r } = _(), { closePreviewMode: n } = v(), { closeAccessibilityTestingMode: c } = k(), o = A(), { config: t } = B(), m = d(() => {
|
|
15
|
+
var l, f;
|
|
16
|
+
return e.isVersionHistoryOpen || e.isPreviewModeOpen || e.isAccessibilityTestingOpen ? o("email-editor.back-to-editor") : (f = (l = t.value) == null ? void 0 : l.ui) != null && f.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
|
|
17
|
+
}), i = b(!1), a = () => {
|
|
17
18
|
if (e.isVersionHistoryOpen) {
|
|
18
|
-
|
|
19
|
+
r();
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
21
22
|
if (e.isPreviewModeOpen) {
|
|
22
|
-
|
|
23
|
+
n();
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
if (e.isAccessibilityTestingOpen) {
|
|
27
|
+
c();
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
s();
|
|
31
|
+
}, u = M(() => {
|
|
32
|
+
try {
|
|
33
|
+
a();
|
|
34
|
+
} finally {
|
|
35
|
+
i.value = !1;
|
|
36
|
+
}
|
|
28
37
|
}, 500);
|
|
29
|
-
return { __sfc: !0, editorStore: e, handleBack:
|
|
30
|
-
|
|
31
|
-
}, InButtonV2:
|
|
38
|
+
return { __sfc: !0, editorStore: e, handleBack: s, closeVersionHistory: r, closePreviewMode: n, closeAccessibilityTestingMode: c, trans: o, config: t, backButtonLabel: m, isBackButtonDisabled: i, executeBackAction: a, debouncedBackAction: u, handleBackClick: () => {
|
|
39
|
+
i.value = !0, u();
|
|
40
|
+
}, InButtonV2: O };
|
|
32
41
|
}
|
|
33
42
|
});
|
|
34
43
|
export {
|
|
35
|
-
|
|
44
|
+
F as default
|
|
36
45
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "./MiddleSlot.vue2.js";
|
|
2
2
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var t = function() {
|
|
4
|
-
var o = this,
|
|
5
|
-
return
|
|
4
|
+
var o = this, i = o._self._c, e = o._self._setupProxy;
|
|
5
|
+
return i("div", { staticClass: "d-f a-i-c" }, [e.editorStore.isVersionHistoryOpen ? i("div", { staticClass: "d-f" }, [i(e.VersionHistory), i(e.VersionHistoryViewOptions)], 1) : e.editorStore.isPreviewModeOpen ? i("div", { staticClass: "d-f" }, [i(e.EmailSizeIndicator), i(e.AmpToggle)], 1) : e.editorStore.isAccessibilityTestingOpen ? i(e.AccessibilityToolbar) : o._e(), i(e.EditorToolbar, { directives: [{ name: "show", rawName: "v-show", value: e.editorStore.isEditorToolbarVisible, expression: "editorStore.isEditorToolbarVisible" }] })], 1);
|
|
6
6
|
}, a = [], n = /* @__PURE__ */ s(
|
|
7
7
|
r,
|
|
8
8
|
t,
|
|
@@ -11,7 +11,7 @@ var t = function() {
|
|
|
11
11
|
null,
|
|
12
12
|
null
|
|
13
13
|
);
|
|
14
|
-
const
|
|
14
|
+
const _ = n.exports;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
_ as default
|
|
17
17
|
};
|
|
@@ -2,15 +2,16 @@ import { defineComponent as o } from "vue";
|
|
|
2
2
|
import r from "../email-preview/amp/AmpToggle.vue.js";
|
|
3
3
|
import t from "../email-preview/desktop-preview/EmailSizeIndicator.vue.js";
|
|
4
4
|
import { useEditorStore as i } from "../../../stores/editor.js";
|
|
5
|
-
import e from "./
|
|
6
|
-
import m from "./
|
|
7
|
-
import p from "./version-history/
|
|
8
|
-
|
|
5
|
+
import e from "./accessibility/AccessibilityToolbar.vue.js";
|
|
6
|
+
import m from "./EditorToolbar.vue.js";
|
|
7
|
+
import p from "./version-history/VersionHistory.vue.js";
|
|
8
|
+
import s from "./version-history/ViewOptions.vue.js";
|
|
9
|
+
const y = /* @__PURE__ */ o({
|
|
9
10
|
__name: "MiddleSlot",
|
|
10
|
-
setup(
|
|
11
|
-
return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t,
|
|
11
|
+
setup(f) {
|
|
12
|
+
return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t, AccessibilityToolbar: e, EditorToolbar: m, VersionHistory: p, VersionHistoryViewOptions: s };
|
|
12
13
|
}
|
|
13
14
|
});
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
y as default
|
|
16
17
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "./RightSlot.vue2.js";
|
|
2
|
+
/* empty css */
|
|
2
3
|
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
4
|
var r = function() {
|
|
4
|
-
var
|
|
5
|
-
return
|
|
6
|
-
}, a = [],
|
|
7
|
-
|
|
5
|
+
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
|
+
return s("div", { staticClass: "d-f a-i-c right-slot" }, [t.isNormalMode ? s(t.AutoSaveStatus) : e._e(), t.isLiquidEnabled && t.isNormalMode ? s(t.InChips, { attrs: { id: "guido__liquid-tag-chip", styles: "stroke", type: "default", value: "liquid-tags", "close-button": !1, "disabled-status": t.editorStore.loadingStatus, interactive: !1, text: t.trans("email-editor.liquid-tags-enabled") } }) : e._e(), t.isNormalMode ? s(t.EditorActions) : t.editorStore.isVersionHistoryOpen ? s(t.RestoreButton) : e._e()], 1);
|
|
7
|
+
}, a = [], l = /* @__PURE__ */ o(
|
|
8
|
+
i,
|
|
8
9
|
r,
|
|
9
10
|
a,
|
|
10
11
|
!1,
|
|
11
12
|
null,
|
|
12
|
-
|
|
13
|
+
"efc32e0d"
|
|
13
14
|
);
|
|
14
|
-
const
|
|
15
|
+
const c = l.exports;
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
c as default
|
|
17
18
|
};
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useEditorStore as
|
|
5
|
-
import { InChips as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as r } from "vue";
|
|
2
|
+
import { useConfig as n } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useTranslations as a } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as p } from "../../../stores/editor.js";
|
|
5
|
+
import { InChips as u } from "@useinsider/design-system-vue";
|
|
6
|
+
import f from "./AutoSaveStatus.vue.js";
|
|
7
|
+
import d from "./EditorActions.vue.js";
|
|
8
|
+
import c from "./version-history/RestoreButton.vue.js";
|
|
9
|
+
const x = /* @__PURE__ */ m({
|
|
10
10
|
__name: "RightSlot",
|
|
11
|
-
setup(
|
|
12
|
-
const { isFeatureEnabled: o } =
|
|
13
|
-
return
|
|
14
|
-
handleSave: (m) => {
|
|
15
|
-
var e;
|
|
16
|
-
return (e = t.value) == null ? void 0 : e.handleSave(m);
|
|
17
|
-
}
|
|
18
|
-
}), { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: n, editorActionsRef: t, isLiquidEnabled: s, InChips: c, AutoSaveToggle: _, EditorActions: S, RestoreButton: g };
|
|
11
|
+
setup(l) {
|
|
12
|
+
const { isFeatureEnabled: o } = n(), i = a(), t = p(), e = r(() => o("liquidSyntax")), s = r(() => t.isNormalMode);
|
|
13
|
+
return { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: t, isLiquidEnabled: e, isNormalMode: s, InChips: u, AutoSaveStatus: f, EditorActions: d, RestoreButton: c };
|
|
19
14
|
}
|
|
20
15
|
});
|
|
21
16
|
export {
|
|
22
|
-
|
|
17
|
+
x as default
|
|
23
18
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import i from "./AccessibilityToolbar.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import s from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = function() {
|
|
5
|
+
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return e("div", { staticClass: "d-f a-i-c accessibility-toolbar" }, [e(t.InButtonV2, { attrs: { id: "guido__a11y-no-images", "data-testid": "Accessibility No Images", "left-icon": "line-no-image-v2", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.editorStore.imagesHidden, "tooltip-options": t.getTooltipOptions("guido__a11y-no-images"), "tooltip-text": t.imagesTooltip }, on: { click: t.toggleImages } }), e(t.InButtonV2, { attrs: { id: "guido__a11y-code", "data-testid": "Accessibility Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__a11y-code"), "tooltip-text": t.trans("newsletter.html-editor") }, on: { click: t.toggleCodeEditor } }), e(t.ColorVisionSelect), e(t.InSegments, { attrs: { id: "guido__a11y-view-selection", "with-icon": "", disable: t.editorStore.loadingStatus, "segment-list": t.segmentList, selected: t.editorStore.editorVisualMode }, on: { click: t.handleView } })], 1);
|
|
7
|
+
}, l = [], d = /* @__PURE__ */ s(
|
|
8
|
+
i,
|
|
9
|
+
a,
|
|
10
|
+
l,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"391019bc"
|
|
14
|
+
);
|
|
15
|
+
const _ = d.exports;
|
|
16
|
+
export {
|
|
17
|
+
_ as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as d, computed as n } from "vue";
|
|
2
|
+
import { useAccessibilityApi as c } from "../../../../composables/useAccessibilityApi.js";
|
|
3
|
+
import { useTranslations as g } from "../../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as u } from "../../../../stores/editor.js";
|
|
5
|
+
import { getTooltipOptions as e } from "../../../../utils/tooltipUtils.js";
|
|
6
|
+
import { InSegments as _, InButtonV2 as f } from "@useinsider/design-system-vue";
|
|
7
|
+
import w from "./ColorVisionSelect.vue.js";
|
|
8
|
+
const A = /* @__PURE__ */ d({
|
|
9
|
+
__name: "AccessibilityToolbar",
|
|
10
|
+
setup(b) {
|
|
11
|
+
const t = u(), o = g(), {
|
|
12
|
+
toggleImages: r,
|
|
13
|
+
toggleCodeEditor: m,
|
|
14
|
+
switchToDesktopPreview: i,
|
|
15
|
+
switchToMobilePreview: s
|
|
16
|
+
} = c(), l = n(() => [
|
|
17
|
+
{
|
|
18
|
+
text: "",
|
|
19
|
+
icon: "line-desktop",
|
|
20
|
+
value: "desktop",
|
|
21
|
+
tooltipText: o("newsletter.desktop"),
|
|
22
|
+
tooltipOptions: e("guido__a11y-view-desktop")
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
text: "",
|
|
26
|
+
icon: "line-menu-mobileapp",
|
|
27
|
+
value: "mobile",
|
|
28
|
+
tooltipText: o("newsletter.mobile"),
|
|
29
|
+
tooltipOptions: e("guido__a11y-view-mobile")
|
|
30
|
+
}
|
|
31
|
+
]), p = n(() => t.imagesHidden ? o("email-editor.a11y-show-images") : o("email-editor.a11y-hide-images"));
|
|
32
|
+
return { __sfc: !0, editorStore: t, trans: o, toggleImages: r, toggleCodeEditor: m, switchToDesktopPreview: i, switchToMobilePreview: s, segmentList: l, imagesTooltip: p, handleView: (a) => a === "mobile" ? s() : i(), getTooltipOptions: e, InButtonV2: f, InSegments: _, ColorVisionSelect: w };
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
A as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import i from "./ColorVisionSelect.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var l = function() {
|
|
5
|
+
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return e("div", { staticClass: "color-vision-select p-r" }, [e(t.InButtonV2, { attrs: { id: "guido__a11y-color-vision-trigger", "left-icon": "line-show-on", "right-icon": "line-chevron-small-down", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text": t.selectedOption.text }, on: { click: function(s) {
|
|
7
|
+
t.isOpen = !t.isOpen;
|
|
8
|
+
} } }), e(t.InDropdownMenu, { staticClass: "color-vision-select__dropdown", attrs: { id: "guido__a11y-color-vision-menu", "is-wrapped-description": "", "box-width": "basedOnLongestItem", "static-position": "bottom left", "dynamic-position": !1, "max-height": 400, options: t.options, "pre-selected-values": [t.selectedOption], "select-all-option-status": !1, status: t.isOpen }, on: { clickOutside: function(s) {
|
|
9
|
+
t.isOpen = !1;
|
|
10
|
+
}, optionClick: t.select } })], 1);
|
|
11
|
+
}, r = [], a = /* @__PURE__ */ n(
|
|
12
|
+
i,
|
|
13
|
+
l,
|
|
14
|
+
r,
|
|
15
|
+
!1,
|
|
16
|
+
null,
|
|
17
|
+
"64cb50da"
|
|
18
|
+
);
|
|
19
|
+
const u = a.exports;
|
|
20
|
+
export {
|
|
21
|
+
u as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as d, ref as p, computed as c } from "vue";
|
|
2
|
+
import { useAccessibilityApi as m } from "../../../../composables/useAccessibilityApi.js";
|
|
3
|
+
import { useTranslations as u } from "../../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as v } from "../../../../stores/editor.js";
|
|
5
|
+
import { InDropdownMenu as f, InButtonV2 as y } from "@useinsider/design-system-vue";
|
|
6
|
+
const C = /* @__PURE__ */ d({
|
|
7
|
+
__name: "ColorVisionSelect",
|
|
8
|
+
setup(K) {
|
|
9
|
+
const i = "none", a = [
|
|
10
|
+
{
|
|
11
|
+
value: i,
|
|
12
|
+
labelKey: "email-editor.cvd-none"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: "protanopia",
|
|
16
|
+
labelKey: "email-editor.cvd-protanopia",
|
|
17
|
+
descriptionKey: "email-editor.cvd-protanopia-description"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: "deuteranopia",
|
|
21
|
+
labelKey: "email-editor.cvd-deuteranopia",
|
|
22
|
+
descriptionKey: "email-editor.cvd-deuteranopia-description"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: "tritanopia",
|
|
26
|
+
labelKey: "email-editor.cvd-tritanopia",
|
|
27
|
+
descriptionKey: "email-editor.cvd-tritanopia-description"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: "achromatopsia",
|
|
31
|
+
labelKey: "email-editor.cvd-achromatopsia",
|
|
32
|
+
descriptionKey: "email-editor.cvd-achromatopsia-description"
|
|
33
|
+
}
|
|
34
|
+
], r = v(), o = u(), { setColorVisionDeficiency: n } = m(), s = p(!1), t = c(() => a.map((e) => ({
|
|
35
|
+
text: o(e.labelKey),
|
|
36
|
+
value: e.value,
|
|
37
|
+
...e.descriptionKey ? { description: o(e.descriptionKey) } : {}
|
|
38
|
+
}))), l = c(
|
|
39
|
+
() => t.value.find((e) => e.value === (r.colorVisionDeficiency || i)) ?? t.value[0]
|
|
40
|
+
);
|
|
41
|
+
return { __sfc: !0, NONE: i, OPTIONS: a, editorStore: r, trans: o, setColorVisionDeficiency: n, isOpen: s, options: t, selectedOption: l, select: ({ value: e }) => {
|
|
42
|
+
n(e === i ? "" : e), s.value = !1;
|
|
43
|
+
}, InButtonV2: y, InDropdownMenu: f };
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
C as default
|
|
48
|
+
};
|