@useinsider/guido 3.23.0-beta.1f8800c → 3.23.0-beta.534d03d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +1 -1
  2. package/dist/@types/config/schemas.js +38 -37
  3. package/dist/@types/display-condition.js +25 -0
  4. package/dist/components/Guido.vue.js +8 -8
  5. package/dist/components/Guido.vue2.js +90 -95
  6. package/dist/components/organisms/AutoSaveController.vue2.js +10 -20
  7. package/dist/components/organisms/display-conditions/CodeEditorField.vue.js +18 -0
  8. package/dist/components/organisms/display-conditions/CodeEditorField.vue2.js +41 -0
  9. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.js +30 -0
  10. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue2.js +81 -0
  11. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.js +34 -0
  12. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue2.js +63 -0
  13. package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue.js +17 -0
  14. package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue2.js +22 -0
  15. package/dist/components/organisms/header/AutoSaveToggle.vue.js +22 -0
  16. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +19 -0
  17. package/dist/components/organisms/header/EditorActions.vue.js +13 -13
  18. package/dist/components/organisms/header/EditorActions.vue2.js +73 -58
  19. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  20. package/dist/components/organisms/header/HeaderWrapper.vue2.js +17 -9
  21. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  22. package/dist/components/organisms/header/LeftSlot.vue2.js +23 -28
  23. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
  24. package/dist/components/organisms/header/MiddleSlot.vue2.js +7 -8
  25. package/dist/components/organisms/header/RightSlot.vue.js +10 -11
  26. package/dist/components/organisms/header/RightSlot.vue2.js +18 -13
  27. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
  28. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +35 -60
  29. package/dist/composables/useBlocksConfig.js +31 -20
  30. package/dist/composables/useCustomInterfaceAppearance.js +41 -42
  31. package/dist/composables/useDisplayConditions.js +116 -0
  32. package/dist/config/compiler/utils/itemsCompilerUtils.js +43 -42
  33. package/dist/config/compiler/utils/recommendationCompilerUtils.js +67 -64
  34. package/dist/config/i18n/en/labels.json.js +4 -36
  35. package/dist/config/i18n/en/tooltips.json.js +1 -2
  36. package/dist/enums/academy.js +1 -0
  37. package/dist/enums/display-condition.js +12 -0
  38. package/dist/extensions/DisplayConditions/bridge.js +25 -0
  39. package/dist/extensions/DisplayConditions/constants.js +17 -0
  40. package/dist/extensions/DisplayConditions/control.js +189 -0
  41. package/dist/extensions/DisplayConditions/display-conditions.css.js +201 -0
  42. package/dist/extensions/DisplayConditions/extension.js +28 -0
  43. package/dist/extensions/DisplayConditions/iconsRegistry.js +20 -0
  44. package/dist/extensions/DisplayConditions/library.js +28 -0
  45. package/dist/extensions/DisplayConditions/settingsPanel.js +17 -0
  46. package/dist/extensions/LinkTracking/extension.js +17 -0
  47. package/dist/extensions/LinkTracking/writer.js +35 -0
  48. package/dist/guido.css +1 -1
  49. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +93 -92
  50. package/dist/node_modules/valibot/dist/index.js +297 -261
  51. package/dist/package.json.js +1 -1
  52. package/dist/services/displayConditionApi.js +39 -0
  53. package/dist/sprite.svg +0 -10
  54. package/dist/src/@types/config/schemas.d.ts +4 -2
  55. package/dist/src/@types/display-condition.d.ts +59 -0
  56. package/dist/src/components/organisms/AutoSaveController.vue.d.ts +1 -19
  57. package/dist/src/components/organisms/display-conditions/CodeEditorField.vue.d.ts +43 -0
  58. package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +19 -1
  59. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +19 -1
  60. package/dist/src/composables/useActionsApi.d.ts +2 -2
  61. package/dist/src/composables/useConfig.d.ts +2 -2
  62. package/dist/src/composables/useDisplayConditions.d.ts +17 -0
  63. package/dist/src/enums/academy.d.ts +1 -0
  64. package/dist/src/enums/display-condition.d.ts +15 -0
  65. package/dist/src/extensions/DisplayConditions/bridge.d.ts +7 -0
  66. package/dist/src/extensions/DisplayConditions/constants.d.ts +14 -0
  67. package/dist/src/extensions/DisplayConditions/control.d.ts +24 -0
  68. package/dist/src/extensions/DisplayConditions/extension.d.ts +2 -0
  69. package/dist/src/extensions/DisplayConditions/iconsRegistry.d.ts +4 -0
  70. package/dist/src/extensions/DisplayConditions/library.d.ts +8 -0
  71. package/dist/src/extensions/DisplayConditions/settingsPanel.d.ts +5 -0
  72. package/dist/src/extensions/LinkTracking/extension.d.ts +2 -0
  73. package/dist/src/extensions/LinkTracking/writer.d.ts +13 -0
  74. package/dist/src/mock/api/display-conditions.d.ts +2 -0
  75. package/dist/src/services/displayConditionApi.d.ts +8 -0
  76. package/dist/src/stores/autosave.d.ts +1 -73
  77. package/dist/src/stores/config.d.ts +166 -20
  78. package/dist/src/stores/display-condition.d.ts +84 -0
  79. package/dist/src/stores/editor.d.ts +0 -109
  80. package/dist/src/stores/onboarding.d.ts +33 -964
  81. package/dist/src/stores/version-history.d.ts +1 -1
  82. package/dist/src/utils/displayCondition.d.ts +11 -0
  83. package/dist/src/utils/linkTrackingIds.d.ts +20 -5
  84. package/dist/src/utils/protectTableText.d.ts +2 -0
  85. package/dist/src/utils/templatePreparation.d.ts +1 -1
  86. package/dist/src/utils/timeUtil.d.ts +8 -5
  87. package/dist/static/styles/variables.css.js +0 -2
  88. package/dist/stores/autosave.js +7 -12
  89. package/dist/stores/config.js +13 -6
  90. package/dist/stores/display-condition.js +29 -0
  91. package/dist/stores/editor.js +3 -8
  92. package/dist/stores/onboarding.js +22 -48
  93. package/dist/utils/displayCondition.js +26 -0
  94. package/dist/utils/linkTrackingIds.js +80 -47
  95. package/dist/utils/pairProductVariables.js +30 -29
  96. package/dist/utils/protectTableText.js +22 -0
  97. package/dist/utils/templatePreparation.js +57 -56
  98. package/dist/utils/timeUtil.js +17 -6
  99. package/package.json +1 -1
  100. package/dist/components/organisms/header/AutoSaveStatus.vue.js +0 -17
  101. package/dist/components/organisms/header/AutoSaveStatus.vue2.js +0 -25
  102. package/dist/components/organisms/header/EditorActionsMenu.vue.js +0 -20
  103. package/dist/components/organisms/header/EditorActionsMenu.vue2.js +0 -99
  104. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +0 -18
  105. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +0 -37
  106. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +0 -22
  107. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +0 -48
  108. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +0 -19
  109. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +0 -90
  110. package/dist/composables/useAccessibilityApi.js +0 -51
  111. package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +0 -2
  112. package/dist/src/composables/useAccessibilityApi.d.ts +0 -13
  113. package/dist/static/styles/components/accessibility.css.js +0 -234
  114. /package/dist/src/components/organisms/{header/AutoSaveStatus.vue.d.ts → display-conditions/DisplayConditionCreateDrawer.vue.d.ts} +0 -0
  115. /package/dist/src/components/organisms/{header/EditorActionsMenu.vue.d.ts → display-conditions/DisplayConditionSelectDrawer.vue.d.ts} +0 -0
  116. /package/dist/src/components/organisms/{header/accessibility/AccessibilityToolbar.vue.d.ts → display-conditions/DisplayConditionsHost.vue.d.ts} +0 -0
  117. /package/dist/src/components/organisms/header/{accessibility/ColorVisionSelect.vue.d.ts → AutoSaveToggle.vue.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ import t from "./CodeEditorField.vue2.js";
2
+ /* empty css */
3
+ import i from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var s = function() {
5
+ var e = this, r = e._self._c, o = e._self._setupProxy;
6
+ return r("div", { staticClass: "guido-code-editor-field", attrs: { id: e.id } }, [r("p", { staticClass: "guido-code-editor-field__label" }, [e._v(" " + e._s(e.label) + " ")]), r(o.InCodeSnippet, { attrs: { code: e.value, disable: e.disabled, "focus-editor": !1, invalid: !!e.error, "invalid-message": e.error, options: o.options, size: { height: e.error ? 196 : 216 }, "syntax-check": !1 }, on: { input: o.onInput, ready: o.onReady } })], 1);
7
+ }, a = [], d = /* @__PURE__ */ i(
8
+ t,
9
+ s,
10
+ a,
11
+ !1,
12
+ null,
13
+ "c262cac4"
14
+ );
15
+ const p = d.exports;
16
+ export {
17
+ p as default
18
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as f, computed as m, nextTick as _ } from "vue";
2
+ import { InCodeSnippet as I } from "@useinsider/design-system-vue";
3
+ const S = /* @__PURE__ */ f({
4
+ __name: "CodeEditorField",
5
+ props: {
6
+ id: null,
7
+ label: null,
8
+ value: null,
9
+ placeholder: { default: "" },
10
+ error: { default: "" },
11
+ disabled: { type: Boolean, default: !1 }
12
+ },
13
+ emits: ["input"],
14
+ setup(r, { expose: a, emit: n }) {
15
+ const l = r, u = 700;
16
+ let t = null, e = null;
17
+ const d = m(() => ({
18
+ mode: "liquid",
19
+ lint: !1,
20
+ foldGutter: !1,
21
+ placeholder: l.placeholder
22
+ })), p = (o) => {
23
+ t = o;
24
+ }, s = (o) => {
25
+ n("input", o), e == null || e();
26
+ }, i = () => new Promise((o) => {
27
+ if (!t || t.state.doc.toString() === l.value) {
28
+ o(l.value);
29
+ return;
30
+ }
31
+ const c = setTimeout(() => e == null ? void 0 : e(), u);
32
+ e = () => {
33
+ clearTimeout(c), e = null, _(() => o(l.value));
34
+ };
35
+ });
36
+ return a({ read: i }), { __sfc: !0, props: l, emit: n, SANITIZED_INPUT_WAIT_MS: u, view: t, settleRead: e, options: d, onReady: p, onInput: s, read: i, InCodeSnippet: I };
37
+ }
38
+ });
39
+ export {
40
+ S as default
41
+ };
@@ -0,0 +1,30 @@
1
+ import a from "./DisplayConditionCreateDrawer.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var n = function() {
5
+ var i = this, t = i._self._c, e = i._self._setupProxy;
6
+ return t(e.WpDrawer, { attrs: { id: "guido__display-condition-create-drawer", "description-status": "", "class-name": "guido-display-condition-create-drawer", size: "large", "close-on-outside-click": !1, "description-text": e.descriptionText, "footer-button-group-options": e.footerButtonGroupOptions, status: e.store.isCreateOpen, "title-text": e.trans(`${e.KEY}.create-title`) }, on: { cancelOrBackButtonEvent: e.close, onCloseEvent: e.close, primaryButtonEvent: function(o) {
7
+ return e.submit("inline");
8
+ }, secondaryButtonEvent: function(o) {
9
+ return e.submit("save");
10
+ } } }, [t("div", { staticClass: "guido-display-condition-create" }, [t(e.InBasicTextInput, { staticClass: "mb-4 w-1", attrs: { id: "guido__display-condition-name-input", name: "displayConditionName", "character-counter-status": !1, "disabled-status": e.isSaving, "label-text": e.trans(`${e.KEY}.condition-name`), "max-character-length": e.DISPLAY_CONDITION_LIMITS.NAME_MAX, "placeholder-text": e.trans(`${e.KEY}.condition-name-placeholder`), "state-message": e.errors.name || "", states: e.errors.name ? "error" : "default", "tooltip-status": !1, value: e.draft.name }, on: { input: function(o) {
11
+ return e.updateField("name", o);
12
+ } } }), t(e.InBasicTextInput, { staticClass: "mb-4 w-1", attrs: { id: "guido__display-condition-description-input", name: "displayConditionDescription", "character-counter-status": !1, "disabled-status": e.isSaving, "label-text": e.descriptionLabel, "max-character-length": e.DISPLAY_CONDITION_LIMITS.DESCRIPTION_MAX, "placeholder-text": e.trans(`${e.KEY}.condition-description-placeholder`), "state-message": e.errors.description || "", states: e.errors.description ? "error" : "default", "tooltip-status": !1, value: e.draft.description }, on: { input: function(o) {
13
+ return e.updateField("description", o);
14
+ } } }), t("div", { staticClass: "guido-display-condition-create__separator" }), t("p", { staticClass: "guido-display-condition-create__method-title" }, [i._v(" " + i._s(e.trans(`${e.KEY}.select-method`)) + " ")]), t("div", { staticClass: "guido-display-condition-create__methods" }, [t(e.InRadioButton, { attrs: { id: "guido__display-condition-method-logic-builder", disable: "", disabled: "", name: "displayConditionMethod", selected: "codeOnly", value: "logicBuilder", label: e.trans(`${e.KEY}.logic-builder`) } }), t(e.InRadioButton, { attrs: { id: "guido__display-condition-method-code-only", name: "displayConditionMethod", selected: "codeOnly", value: "codeOnly", label: e.trans(`${e.KEY}.code-only`) } })], 1), t(e.CodeEditorField, { ref: "codeBeforeRef", staticClass: "mb-3", attrs: { id: "guido__display-condition-code-before", disabled: e.isSaving, error: e.errors.codeBefore, label: e.trans(`${e.KEY}.code-before`), placeholder: e.trans(`${e.KEY}.code-placeholder`), value: e.draft.codeBefore }, on: { input: function(o) {
15
+ return e.updateField("codeBefore", o);
16
+ } } }), t(e.CodeEditorField, { ref: "codeAfterRef", attrs: { id: "guido__display-condition-code-after", disabled: e.isSaving, error: e.errors.codeAfter, label: e.trans(`${e.KEY}.code-after`), placeholder: e.trans(`${e.KEY}.code-placeholder`), value: e.draft.codeAfter }, on: { input: function(o) {
17
+ return e.updateField("codeAfter", o);
18
+ } } })], 1)]);
19
+ }, s = [], d = /* @__PURE__ */ r(
20
+ a,
21
+ n,
22
+ s,
23
+ !1,
24
+ null,
25
+ "bd3200fd"
26
+ );
27
+ const f = d.exports;
28
+ export {
29
+ f as default
30
+ };
@@ -0,0 +1,81 @@
1
+ import { defineComponent as w, reactive as k, ref as c, computed as u, watch as L } from "vue";
2
+ import R from "../../wrappers/WpDrawer.vue.js";
3
+ import { useDisplayConditions as j } from "../../../composables/useDisplayConditions.js";
4
+ import { useTranslations as E } from "../../../composables/useTranslations.js";
5
+ import { DISPLAY_CONDITION_LIMITS as F } from "../../../enums/display-condition.js";
6
+ import { useDisplayConditionStore as G } from "../../../stores/display-condition.js";
7
+ import { InRadioButton as N, InBasicTextInput as P } from "@useinsider/design-system-vue";
8
+ import W from "./CodeEditorField.vue.js";
9
+ const Z = /* @__PURE__ */ w({
10
+ __name: "DisplayConditionCreateDrawer",
11
+ setup(Y) {
12
+ const n = "email-editor.display-conditions", r = E(), p = G(), {
13
+ validate: v,
14
+ notifyInvalid: f,
15
+ createInline: y,
16
+ createAndSave: b,
17
+ cancel: B,
18
+ describeWithAcademyLink: g
19
+ } = j(), m = () => ({ name: "", description: "", codeBefore: "", codeAfter: "" }), e = k(m()), o = c({}), i = c(!1), l = c(!1), s = u(() => i.value || l.value), _ = c(), I = c();
20
+ let d = 0;
21
+ L(() => p.isCreateOpen, (a) => {
22
+ if (d += 1, !a)
23
+ return;
24
+ const { editing: t } = p;
25
+ Object.assign(e, t ? {
26
+ name: t.name,
27
+ description: t.description,
28
+ codeBefore: t.beforeScript,
29
+ codeAfter: t.afterScript
30
+ } : m()), o.value = {}, i.value = !1;
31
+ }, { immediate: !0 });
32
+ const C = u(() => g("create-description")), D = u(() => ({
33
+ cancelOrBackButton: {
34
+ styling: "ghost",
35
+ type: "secondary",
36
+ labelText: r(`${n}.cancel`),
37
+ disabledStatus: s.value
38
+ },
39
+ secondaryButton: {
40
+ styling: "solid",
41
+ type: "subtle-primary",
42
+ labelText: r(`${n}.create-and-save`),
43
+ loadingStatus: i.value
44
+ },
45
+ primaryButton: {
46
+ styling: "solid",
47
+ type: "primary",
48
+ labelText: r(`${n}.create`),
49
+ disabledStatus: s.value
50
+ }
51
+ })), O = (a, t) => {
52
+ t !== e[a] && (e[a] = t, o.value[a] && (o.value = { ...o.value, [a]: void 0 }));
53
+ }, T = u(() => `${r(`${n}.condition-description`)} <span class="guido-display-condition-create__optional">(${r(`${n}.optional`)})</span>`);
54
+ return { __sfc: !0, KEY: n, trans: r, store: p, validate: v, notifyInvalid: f, createInline: y, createAndSave: b, cancel: B, describeWithAcademyLink: g, emptyDraft: m, draft: e, errors: o, isSaving: i, isReadingCode: l, isBusy: s, codeBeforeRef: _, codeAfterRef: I, openGeneration: d, descriptionText: C, footerButtonGroupOptions: D, updateField: O, descriptionLabel: T, submit: async (a) => {
55
+ var S, A;
56
+ if (s.value)
57
+ return;
58
+ const t = d;
59
+ l.value = !0;
60
+ const [$, x] = await Promise.all([(S = _.value) == null ? void 0 : S.read(), (A = I.value) == null ? void 0 : A.read()]);
61
+ if (l.value = !1, t !== d)
62
+ return;
63
+ if (e.codeBefore = $ ?? e.codeBefore, e.codeAfter = x ?? e.codeAfter, o.value = v(e), Object.keys(o.value).length) {
64
+ f();
65
+ return;
66
+ }
67
+ if (a === "inline") {
68
+ y({ ...e });
69
+ return;
70
+ }
71
+ i.value = !0;
72
+ const h = await b({ ...e });
73
+ i.value = !1, o.value = h ?? {}, Object.keys(o.value).length && f();
74
+ }, close: () => {
75
+ s.value || B();
76
+ }, WpDrawer: R, DISPLAY_CONDITION_LIMITS: F, InBasicTextInput: P, InRadioButton: N, CodeEditorField: W };
77
+ }
78
+ });
79
+ export {
80
+ Z as default
81
+ };
@@ -0,0 +1,34 @@
1
+ import a from "./DisplayConditionSelectDrawer.vue2.js";
2
+ /* empty css */
3
+ import d from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var o = function() {
5
+ var s = this, i = s._self._c, t = s._self._setupProxy;
6
+ return i("div", { staticClass: "guido-display-condition-select-root" }, [i(t.WpDrawer, { attrs: { id: "guido__display-condition-select-drawer", "description-status": "", "class-name": "guido-display-condition-select-drawer", size: "large", "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, status: t.store.isSelectOpen, "title-text": t.trans(`${t.KEY}.select-title`) }, on: { cancelOrBackButtonEvent: t.cancel, onCloseEvent: t.cancel } }, [i("div", { staticClass: "guido-display-condition-select d-f f-d-c f-g-1" }, [t.store.listStatus === "loaded" && t.store.list.length ? i(t.InBasicTextInput, { staticClass: "mb-4 w-1", attrs: { id: "guido__display-condition-search-input", name: "displayConditionSearch", "character-counter-status": !1, "label-status": !1, "placeholder-text": t.trans(`${t.KEY}.search`), "tooltip-status": !1, value: t.search }, on: { input: function(e) {
7
+ t.search = e;
8
+ } } }) : s._e(), t.store.listStatus === "loading" || t.store.listStatus === "idle" ? i("div", { staticClass: "guido-display-condition-select__list", attrs: { "data-testid": "display-condition-loading" } }, s._l(t.SKELETON_HEIGHTS, function(e, n) {
9
+ return i(t.InSkeleton, { key: n, attrs: { sizing: { width: 856, height: e } } });
10
+ }), 1) : t.store.listStatus === "error" ? i(t.InNoData, { staticClass: "d-f f-d-c j-c-c f-g-1", attrs: { id: "guido__display-condition-error", "button-status": "", icon: "no-data", "button-text": t.trans(`${t.KEY}.retry`), description: t.trans(`${t.KEY}.error-load`), title: t.trans(`${t.KEY}.error-load-title`) }, on: { click: t.loadList } }) : t.store.list.length ? t.filteredList.length ? i("ul", { staticClass: "guido-display-condition-select__list" }, s._l(t.filteredList, function(e) {
11
+ return i("li", { key: e.id, staticClass: "guido-display-condition-card", attrs: { "data-condition-id": e.id } }, [i("div", { staticClass: "guido-display-condition-card__header" }, [i("div", { staticClass: "guido-display-condition-card__text" }, [i("p", { staticClass: "guido-display-condition-card__name" }, [s._v(" " + s._s(e.name) + " ")]), e.description ? i("p", { staticClass: "guido-display-condition-card__description" }, [s._v(" " + s._s(e.description) + " ")]) : s._e()]), i("div", { staticClass: "guido-display-condition-card__actions" }, [i("div", { staticClass: "guido-display-condition-card__split" }, [i(t.InButtonV2, { attrs: { id: `guido__display-condition-select-${e.id}`, type: "subtle-primary", "label-text": t.trans(`${t.KEY}.select`) }, on: { click: function(n) {
12
+ return t.select(e);
13
+ } } }), i(t.InButtonV2, { attrs: { id: `guido__display-condition-menu-${e.id}`, "left-icon": "filled-dropdown-down", type: "subtle-primary", "label-text-status": !1 }, on: { click: function(n) {
14
+ return t.toggleMenu(e);
15
+ } } }), t.menuId === e.id ? i("div", { staticClass: "guido-display-condition-card__menu" }, [i("button", { staticClass: "guido-display-condition-card__menu-item", attrs: { id: `guido__display-condition-delete-${e.id}`, type: "button" }, on: { click: function(n) {
16
+ return t.requestDelete(e);
17
+ } } }, [s._v(" " + s._s(t.trans(`${t.KEY}.delete`)) + " ")])]) : s._e()], 1), i("span", { staticClass: "guido-display-condition-card__divider" }), i("button", { staticClass: "guido-display-condition-card__expand", attrs: { id: `guido__display-condition-expand-${e.id}`, type: "button", "aria-expanded": t.expandedId === e.id ? "true" : "false", "aria-label": t.trans(`${t.KEY}.preview`) }, on: { click: function(n) {
18
+ return t.toggleExpanded(e);
19
+ } } }, [i(t.InIcons, { attrs: { name: t.expandedId === e.id ? "filled-dropdown-up" : "filled-dropdown-down" } })], 1)])]), t.expandedId === e.id ? i("pre", { staticClass: "guido-display-condition-card__code" }, [s._v(s._s(t.codeOf(e)))]) : s._e()]);
20
+ }), 0) : i(t.InNoData, { staticClass: "d-f f-d-c j-c-c f-g-1", attrs: { id: "guido__display-condition-no-result", icon: "no-data", title: t.trans(`${t.KEY}.no-result`) } }) : i(t.InNoData, { staticClass: "d-f f-d-c j-c-c f-g-1", attrs: { id: "guido__display-condition-empty", "button-status": "", icon: "no-personalization", "button-text": t.trans(`${t.KEY}.create-new`), description: t.trans(`${t.KEY}.empty-description`), title: t.trans(`${t.KEY}.empty-title`) }, on: { click: function(e) {
21
+ return t.store.openCreate();
22
+ } } })], 1)]), t.store.pendingDelete ? i("div", { staticClass: "guido-display-condition-select__delete-modal" }, [i(t.WpModal, { attrs: { id: "guido__display-condition-delete-modal", size: "X-small", state: "danger", "close-on-outside-click": !1, "footer-button-options": t.deleteModalButtons, title: t.trans(`${t.KEY}.delete-confirm-title`) }, on: { close: t.closeDeleteModal, "primary-action": t.confirmDelete } }, [i("p", { staticClass: "guido-display-condition-select__delete-text" }, [s._v(" " + s._s(t.trans(`${t.KEY}.delete-confirm-description`, { name: t.store.pendingDelete.name })) + " ")])])], 1) : s._e()], 1);
23
+ }, l = [], c = /* @__PURE__ */ d(
24
+ a,
25
+ o,
26
+ l,
27
+ !1,
28
+ null,
29
+ "fe2f4a6c"
30
+ );
31
+ const f = c.exports;
32
+ export {
33
+ f as default
34
+ };
@@ -0,0 +1,63 @@
1
+ import { defineComponent as M, ref as r, watch as D, computed as c, onBeforeUnmount as T } from "vue";
2
+ import b from "../../wrappers/WpDrawer.vue.js";
3
+ import h from "../../wrappers/WpModal.vue.js";
4
+ import { useDisplayConditions as w } from "../../../composables/useDisplayConditions.js";
5
+ import { useTranslations as C } from "../../../composables/useTranslations.js";
6
+ import { useDisplayConditionStore as k } from "../../../stores/display-condition.js";
7
+ import { InSkeleton as $, InNoData as A, InIcons as W, InButtonV2 as q, InBasicTextInput as G } from "@useinsider/design-system-vue";
8
+ const R = /* @__PURE__ */ M({
9
+ __name: "DisplayConditionSelectDrawer",
10
+ setup(H) {
11
+ const l = "email-editor.display-conditions", y = [40, 76, 76, 76], i = C(), t = k(), { loadList: m, select: I, deleteSaved: f, cancel: B, describeWithAcademyLink: v } = w(), d = r(""), s = r(null), n = r(null), o = r(!1);
12
+ D(() => t.isSelectOpen, (e) => {
13
+ e && (d.value = "", s.value = null, n.value = null, m());
14
+ }, { immediate: !0 });
15
+ const L = c(() => {
16
+ const e = d.value.trim().toLocaleLowerCase();
17
+ return e ? t.list.filter((u) => `${u.name} ${u.description}`.toLocaleLowerCase().includes(e)) : t.list;
18
+ }), O = c(() => v("select-description")), _ = c(() => ({
19
+ cancelOrBackButton: {
20
+ styling: "ghost",
21
+ type: "secondary",
22
+ labelText: i(`${l}.back`),
23
+ leftIcon: "line-arrow-left"
24
+ }
25
+ })), S = c(() => ({
26
+ cancelOrBackButton: {
27
+ type: "secondary",
28
+ styling: "ghost",
29
+ labelText: i(`${l}.cancel`),
30
+ disabledStatus: o.value
31
+ },
32
+ primaryButton: {
33
+ type: "danger",
34
+ labelText: i(`${l}.delete`),
35
+ loadingStatus: o.value
36
+ }
37
+ })), E = (e) => {
38
+ s.value = s.value === e.id ? null : e.id;
39
+ }, x = (e) => {
40
+ n.value = n.value === e.id ? null : e.id;
41
+ }, a = (e) => {
42
+ e.composedPath().some((p) => {
43
+ var g;
44
+ return p instanceof Element && p.matches(".guido-display-condition-card__split") && ((g = p.closest(".guido-display-condition-card")) == null ? void 0 : g.getAttribute("data-condition-id")) === String(n.value);
45
+ }) || (n.value = null);
46
+ };
47
+ return D(n, (e) => {
48
+ e === null ? document.removeEventListener("pointerdown", a, !0) : document.addEventListener("pointerdown", a, !0);
49
+ }), T(() => {
50
+ document.removeEventListener("pointerdown", a, !0);
51
+ }), { __sfc: !0, KEY: l, SKELETON_HEIGHTS: y, trans: i, store: t, loadList: m, select: I, deleteSaved: f, cancel: B, describeWithAcademyLink: v, search: d, expandedId: s, menuId: n, isDeleting: o, filteredList: L, descriptionText: O, footerButtonGroupOptions: _, deleteModalButtons: S, toggleExpanded: E, toggleMenu: x, closeMenuOnOutsidePointer: a, requestDelete: (e) => {
52
+ n.value = null, t.pendingDelete = e;
53
+ }, confirmDelete: async () => {
54
+ !t.pendingDelete || o.value || (o.value = !0, await f(t.pendingDelete), o.value = !1);
55
+ }, closeDeleteModal: () => {
56
+ o.value || (t.pendingDelete = null);
57
+ }, codeOf: (e) => [e.codeBefore, e.codeAfter].filter(Boolean).join(`
58
+ `), WpDrawer: b, WpModal: h, InBasicTextInput: G, InButtonV2: q, InIcons: W, InNoData: A, InSkeleton: $ };
59
+ }
60
+ });
61
+ export {
62
+ R as default
63
+ };
@@ -0,0 +1,17 @@
1
+ import e from "./DisplayConditionsHost.vue2.js";
2
+ import n from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var r = function() {
4
+ var s = this, o = s._self._c, t = s._self._setupProxy;
5
+ return o("div", { staticClass: "guido-display-conditions-host" }, [o(t.DisplayConditionCreateDrawer), o(t.DisplayConditionSelectDrawer)], 1);
6
+ }, i = [], a = /* @__PURE__ */ n(
7
+ e,
8
+ r,
9
+ i,
10
+ !1,
11
+ null,
12
+ null
13
+ );
14
+ const p = a.exports;
15
+ export {
16
+ p as default
17
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent as i, onMounted as s, onBeforeUnmount as m } from "vue";
2
+ import { useDisplayConditions as p } from "../../../composables/useDisplayConditions.js";
3
+ import { DisplayConditionEvent as n } from "../../../enums/display-condition.js";
4
+ import { useDisplayConditionStore as a } from "../../../stores/display-condition.js";
5
+ import d from "./DisplayConditionCreateDrawer.vue.js";
6
+ import f from "./DisplayConditionSelectDrawer.vue.js";
7
+ const E = /* @__PURE__ */ i({
8
+ __name: "DisplayConditionsHost",
9
+ setup(l) {
10
+ const o = a(), { handleOpen: t } = p(), e = (r) => {
11
+ t(r.detail);
12
+ };
13
+ return s(() => {
14
+ o.$reset(), document.addEventListener(n.OPEN, e);
15
+ }), m(() => {
16
+ document.removeEventListener(n.OPEN, e), o.$reset();
17
+ }), { __sfc: !0, store: o, handleOpen: t, onOpen: e, DisplayConditionCreateDrawer: d, DisplayConditionSelectDrawer: f };
18
+ }
19
+ });
20
+ export {
21
+ E as default
22
+ };
@@ -0,0 +1,22 @@
1
+ import o from "./AutoSaveToggle.vue2.js";
2
+ /* empty css */
3
+ import i from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var n = function() {
5
+ var e = this, a = e._self._c, t = e._self._setupProxy;
6
+ return t.isFeatureEnabled("autosave") ? a("div", { staticClass: "d-f a-i-c mr-3 auto-save-toggle", on: { mouseenter: function(s) {
7
+ t.isHovered = !0;
8
+ }, mouseleave: function(s) {
9
+ t.isHovered = !1;
10
+ } } }, [a(t.InToggle, { attrs: { id: "guido__autosave-toggle", name: "guido-autosave-toggle", checked: t.autosaveStore.isOn, disable: t.editorStore.loadingStatus }, on: { click: t.toggle } }), a("span", { staticClass: "ml-2 auto-save-toggle__label t-c-55" }, [e._v(" " + e._s(t.trans("email-editor.auto-save")) + " ")]), t.autosaveStore.status === t.AUTOSAVE_STATUS.SAVING ? a("span", { staticClass: "ml-2 d-f a-i-c f-s-1" }, [a(t.InLoading, { attrs: { "color-class": "i-c-53", size: "16" } }), a("span", { staticClass: "ml-1 t-c-53" }, [e._v(" " + e._s(t.trans("newsletter.saving")) + " ")])], 1) : t.lastSavedLabel ? a("span", { staticClass: "ml-2 f-s-1 t-c-53" }, [e._v(" " + e._s(t.lastSavedLabel) + " ")]) : e._e(), t.isHovered ? a(t.InInfoBox, { staticClass: "auto-save-toggle__info-box", attrs: { id: "guido__autosave-info-box", size: "small", variant: "information", "description-text": t.trans("email-editor.auto-save-description"), "title-text": t.trans("email-editor.auto-save-title") } }) : e._e()], 1) : e._e();
11
+ }, l = [], r = /* @__PURE__ */ i(
12
+ o,
13
+ n,
14
+ l,
15
+ !1,
16
+ null,
17
+ "2c964af4"
18
+ );
19
+ const d = r.exports;
20
+ export {
21
+ d as default
22
+ };
@@ -0,0 +1,19 @@
1
+ import { defineComponent as i, ref as f, computed as u } from "vue";
2
+ import { useConfig as l } from "../../../composables/useConfig.js";
3
+ import { useTranslations as p } from "../../../composables/useTranslations.js";
4
+ import { useAutosaveStore as c, AUTOSAVE_STATUS as t } from "../../../stores/autosave.js";
5
+ import { useEditorStore as S } from "../../../stores/editor.js";
6
+ import { formatLocalTime as d } from "../../../utils/timeUtil.js";
7
+ import { InToggle as g, InLoading as _, InInfoBox as A } from "@useinsider/design-system-vue";
8
+ const U = /* @__PURE__ */ i({
9
+ __name: "AutoSaveToggle",
10
+ setup(v) {
11
+ const { isFeatureEnabled: e } = l(), r = S(), o = c(), s = p(), n = f(!1), a = u(() => o.status !== t.SAVED || !o.lastSavedAt ? "" : d(o.lastSavedAt));
12
+ return { __sfc: !0, isFeatureEnabled: e, editorStore: r, autosaveStore: o, trans: s, isHovered: n, lastSavedLabel: a, toggle: (m) => {
13
+ o.isOn = m;
14
+ }, AUTOSAVE_STATUS: t, InInfoBox: A, InLoading: _, InToggle: g };
15
+ }
16
+ });
17
+ export {
18
+ U as default
19
+ };
@@ -1,23 +1,23 @@
1
- import a from "./EditorActions.vue2.js";
1
+ import l from "./EditorActions.vue2.js";
2
2
  /* empty css */
3
- import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var d = function() {
5
- var o, s;
6
- var i = this, e = i._self._c, t = i._self._setupProxy;
7
- return e("div", { staticClass: "d-f a-i-c editor-actions" }, [!t.editorStore.isPreviewModeOpen && t.hasContentOnTheLeft ? e("div", { staticClass: "editor-actions__divider" }) : i._e(), (s = (o = t.config) == null ? void 0 : o.features) != null && s.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button", { staticPosition: "bottom right" }), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.handleTestEmail } }) : i._e(), e(t.EditorActionsMenu), t.editorStore.isPreviewModeOpen ? i._e() : e("div", { staticClass: "editor-actions__divider" }), t.editorStore.isPreviewModeOpen ? i._e() : e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "label-text": t.saveLabel, "loading-status": t.isSaving }, on: { click: function(n) {
3
+ import d from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var u = function() {
5
+ var s, i, n, a;
6
+ var o = this, e = o._self._c, t = o._self._setupProxy;
7
+ return e("div", { staticClass: "d-f editor-actions" }, [t.isVersionHistoryButtonVisible ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (i = (s = t.config) == null ? void 0 : s.features) != null && i.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), (a = (n = t.config) == null ? void 0 : n.features) != null && a.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button", { staticPosition: "bottom right" }), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.handleTestEmail } }) : o._e(), t.editorStore.isPreviewModeOpen ? o._e() : e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "label-text": t.saveLabel, "loading-status": t.isSaving }, on: { click: function(r) {
8
8
  return t.handleSave(!1);
9
- } } }), e(t.MigrationConfirmModal, { ref: "migrationModalRef", on: { confirm: function(n) {
9
+ } } }), e(t.MigrationConfirmModal, { ref: "migrationModalRef", on: { confirm: function(r) {
10
10
  return t.executeSave(!1);
11
11
  } } })], 1);
12
- }, l = [], c = /* @__PURE__ */ r(
13
- a,
14
- d,
12
+ }, p = [], c = /* @__PURE__ */ d(
15
13
  l,
14
+ u,
15
+ p,
16
16
  !1,
17
17
  null,
18
- "9a028d08"
18
+ "baf7a5dd"
19
19
  );
20
- const p = c.exports;
20
+ const v = c.exports;
21
21
  export {
22
- p as default
22
+ v as default
23
23
  };
@@ -1,70 +1,85 @@
1
- import { defineComponent as q, computed as x, ref as A } from "vue";
2
- import { useActionsApi as H } from "../../../composables/useActionsApi.js";
3
- import { useConfig as O } from "../../../composables/useConfig.js";
4
- import { useTestEmailClick as R } from "../../../composables/useGuidoActions.js";
5
- import { useHtmlCompiler as B } from "../../../composables/useHtmlCompiler.js";
6
- import { useSave as z } from "../../../composables/useSave.js";
7
- import { useSaveValidation as D } from "../../../composables/useSaveValidation.js";
8
- import { useSaveValidationRollout as I } from "../../../composables/useSaveValidationRollout.js";
9
- import { useToaster as j } from "../../../composables/useToaster.js";
10
- import { useTranslations as G } from "../../../composables/useTranslations.js";
11
- import { useLiquidValidator as J } from "../../../composables/validators/useLiquidValidator.js";
12
- import { ToasterTypeOptions as K } from "../../../enums/toaster.js";
13
- import { useAutosaveStore as N } from "../../../stores/autosave.js";
14
- import { useEditorStore as P } from "../../../stores/editor.js";
15
- import { useSaveValidationStore as Q } from "../../../stores/save-validation.js";
16
- import { useTemplateStore as U } from "../../../stores/template.js";
17
- import { getTooltipOptions as W } from "../../../utils/tooltipUtils.js";
18
- import { InButtonV2 as X } from "@useinsider/design-system-vue";
19
- import { storeToRefs as Y } from "pinia";
20
- import Z from "./EditorActionsMenu.vue.js";
21
- import $ from "./MigrationConfirmModal.vue.js";
22
- const Ct = /* @__PURE__ */ q({
1
+ import { defineComponent as I, computed as u, ref as c } from "vue";
2
+ import { useActionsApi as P } from "../../../composables/useActionsApi.js";
3
+ import { useConfig as j } from "../../../composables/useConfig.js";
4
+ import { useExport as G } from "../../../composables/useExport.js";
5
+ import { useTestEmailClick as J } from "../../../composables/useGuidoActions.js";
6
+ import { useHtmlCompiler as K } from "../../../composables/useHtmlCompiler.js";
7
+ import { useSave as N } from "../../../composables/useSave.js";
8
+ import { useSaveValidation as Q } from "../../../composables/useSaveValidation.js";
9
+ import { useSaveValidationRollout as U } from "../../../composables/useSaveValidationRollout.js";
10
+ import { useToaster as W } from "../../../composables/useToaster.js";
11
+ import { useTranslations as X } from "../../../composables/useTranslations.js";
12
+ import { useVersionHistoryApi as Y } from "../../../composables/useVersionHistoryApi.js";
13
+ import { useLiquidValidator as Z } from "../../../composables/validators/useLiquidValidator.js";
14
+ import { ToasterTypeOptions as $ } from "../../../enums/toaster.js";
15
+ import { useEditorStore as tt } from "../../../stores/editor.js";
16
+ import { useSaveValidationStore as et } from "../../../stores/save-validation.js";
17
+ import { useTemplateStore as ot } from "../../../stores/template.js";
18
+ import { getTooltipOptions as rt } from "../../../utils/tooltipUtils.js";
19
+ import { InButtonV2 as it } from "@useinsider/design-system-vue";
20
+ import { storeToRefs as st } from "pinia";
21
+ import at from "./MigrationConfirmModal.vue.js";
22
+ const Ot = /* @__PURE__ */ I({
23
23
  __name: "EditorActions",
24
- setup(tt, { expose: F }) {
25
- const { config: L, isFeatureEnabled: a } = O(), { save: u } = z(), { validateCurrentTemplate: c } = D(), { isEnabled: s } = I(), { showToaster: f, hideToaster: d, handleError: r } = j(), { getCompiledEmail: p } = H(), { compileHtml: v } = B(), { validateLiquidSyntax: S } = J(), o = P(), g = Q(), h = U(), y = N(), { hasMigrations: T } = Y(h), M = x(() => a("liquidSyntax") || a("autosave") && y.hasStatusLabel), i = G(), b = x(() => s.value ? i("email-editor.save-and-continue") : "Save"), n = A(!1), E = A(), l = R(), C = async (t) => {
26
- n.value = !0, t || (o.loadingStatus = !0);
27
- let e;
24
+ setup(nt, { expose: b }) {
25
+ const { config: p, isFeatureEnabled: f } = j(), { exportHtml: d } = G(), { save: v } = N(), { validateCurrentTemplate: y } = Q(), { isEnabled: s } = U(), { showToaster: S, hideToaster: g, handleError: i } = W(), { openVersionHistory: h, closeVersionHistory: T } = Y(), { getCompiledEmail: V } = P(), { compileHtml: E } = K(), { validateLiquidSyntax: H } = Z(), e = tt(), w = et(), x = ot(), { hasMigrations: C } = st(x), r = X(), k = u(() => s.value ? r("email-editor.save-and-continue") : "Save"), a = c(!1), n = c(!1), _ = c(), l = J(), q = () => {
26
+ if (e.isVersionHistoryOpen) {
27
+ T();
28
+ return;
29
+ }
30
+ h();
31
+ }, B = async () => {
32
+ a.value = !0, await d(), a.value = !1;
33
+ }, L = () => {
34
+ e.isSaveAsTemplateDrawerOpen = !0;
35
+ }, R = u(() => e.isVersionHistoryOpen ? r("newsletter.close-version-history") : r("newsletter.version-history")), D = u(
36
+ () => {
37
+ var t, o;
38
+ return ((o = (t = p.value) == null ? void 0 : t.features) == null ? void 0 : o.versionHistory) && !e.isPreviewModeOpen;
39
+ }
40
+ ), A = async (t) => {
41
+ n.value = !0, t || (e.loadingStatus = !0);
42
+ let o;
28
43
  try {
29
- e = await u(t);
30
- } catch (w) {
31
- r(w, "Failed to save template");
44
+ o = await v(t);
45
+ } catch (M) {
46
+ i(M, "Failed to save template");
32
47
  } finally {
33
- n.value = !1, !t && !e && (o.loadingStatus = !1);
48
+ n.value = !1, !t && !o && (e.loadingStatus = !1);
34
49
  }
35
- return e;
36
- }, V = (t) => {
37
- var e;
38
- if (!t && T.value) {
39
- (e = E.value) == null || e.open();
50
+ return o;
51
+ }, O = (t) => {
52
+ var o;
53
+ if (!t && C.value) {
54
+ (o = _.value) == null || o.open();
40
55
  return;
41
56
  }
42
- return C(t);
57
+ return A(t);
43
58
  }, m = async () => {
44
- o.loadingStatus = !0;
59
+ e.loadingStatus = !0;
45
60
  try {
46
- return await c();
61
+ return await y();
47
62
  } catch (t) {
48
- return r(t, "Failed to prepare test email"), null;
63
+ return i(t, "Failed to prepare test email"), null;
49
64
  } finally {
50
- o.loadingStatus = !1;
65
+ e.loadingStatus = !1;
51
66
  }
52
- }, _ = async () => {
67
+ }, F = async () => {
53
68
  const t = await m();
54
- t != null && t.length ? g.open(t, "test") : t && d();
55
- }, k = async () => {
69
+ t != null && t.length ? w.open(t, "test") : t && g();
70
+ }, z = async () => {
56
71
  if (s.value) {
57
72
  const t = await m();
58
73
  if (!t)
59
74
  return;
60
75
  if (t.length) {
61
- f({
62
- type: K.Error,
63
- message: i("email-editor.validation-errors-found"),
76
+ S({
77
+ type: $.Error,
78
+ message: r("email-editor.validation-errors-found"),
64
79
  actionButton: {
65
- text: i("email-editor.check-errors"),
80
+ text: r("email-editor.check-errors"),
66
81
  onClick: () => {
67
- _();
82
+ F();
68
83
  }
69
84
  },
70
85
  autoHide: !1
@@ -74,26 +89,26 @@ const Ct = /* @__PURE__ */ q({
74
89
  l();
75
90
  return;
76
91
  }
77
- if (a("liquidSyntax")) {
78
- o.loadingStatus = !0;
92
+ if (f("liquidSyntax")) {
93
+ e.loadingStatus = !0;
79
94
  try {
80
- const { html: t } = await p({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: e } = v(t);
81
- if (!await S(e))
95
+ const { html: t } = await V({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: o } = E(t);
96
+ if (!await H(o))
82
97
  return;
83
98
  } catch (t) {
84
- r(t, "Failed to prepare test email");
99
+ i(t, "Failed to prepare test email");
85
100
  return;
86
101
  } finally {
87
- o.loadingStatus = !1;
102
+ e.loadingStatus = !1;
88
103
  }
89
104
  }
90
105
  l();
91
106
  };
92
- return F({
93
- handleSave: V
94
- }), { __sfc: !0, config: L, isFeatureEnabled: a, save: u, validateCurrentTemplate: c, isEnabled: s, showToaster: f, hideToaster: d, handleError: r, getCompiledEmail: p, compileHtml: v, validateLiquidSyntax: S, editorStore: o, saveValidationStore: g, templateStore: h, autosaveStore: y, hasMigrations: T, hasContentOnTheLeft: M, trans: i, saveLabel: b, isSaving: n, migrationModalRef: E, testEmailClick: l, executeSave: C, handleSave: V, collectTestErrors: m, openTestErrors: _, handleTestEmail: k, getTooltipOptions: W, InButtonV2: X, EditorActionsMenu: Z, MigrationConfirmModal: $ };
107
+ return b({
108
+ handleSave: O
109
+ }), { __sfc: !0, config: p, isFeatureEnabled: f, exportHtml: d, save: v, validateCurrentTemplate: y, isEnabled: s, showToaster: S, hideToaster: g, handleError: i, openVersionHistory: h, closeVersionHistory: T, getCompiledEmail: V, compileHtml: E, validateLiquidSyntax: H, editorStore: e, saveValidationStore: w, templateStore: x, hasMigrations: C, trans: r, saveLabel: k, isExporting: a, isSaving: n, migrationModalRef: _, testEmailClick: l, handleVersionHistory: q, handleExport: B, handleSaveAs: L, versionHistoryTooltipText: R, isVersionHistoryButtonVisible: D, executeSave: A, handleSave: O, collectTestErrors: m, openTestErrors: F, handleTestEmail: z, getTooltipOptions: rt, InButtonV2: it, MigrationConfirmModal: at };
95
110
  }
96
111
  });
97
112
  export {
98
- Ct as default
113
+ Ot as default
99
114
  };
@@ -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)], 1)]);
7
- }, n = [], d = /* @__PURE__ */ a(
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, { ref: "rightSlotRef" })], 1)]);
7
+ }, d = [], i = /* @__PURE__ */ a(
8
8
  o,
9
9
  s,
10
- n,
10
+ d,
11
11
  !1,
12
12
  null,
13
- "3c713746"
13
+ "d11dd577"
14
14
  );
15
- const f = d.exports;
15
+ const c = i.exports;
16
16
  export {
17
- f as default
17
+ c as default
18
18
  };