@useinsider/guido 3.18.2-beta.9be830c → 3.18.2-beta.a39b494
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 +13 -15
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +2 -2
- package/dist/components/organisms/AutoSaveController.vue2.js +8 -10
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +22 -0
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +19 -0
- package/dist/components/organisms/header/EditorActions.vue.js +13 -13
- package/dist/components/organisms/header/EditorActions.vue2.js +52 -36
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +17 -9
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +23 -28
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +7 -8
- package/dist/components/organisms/header/RightSlot.vue.js +8 -9
- package/dist/components/organisms/header/RightSlot.vue2.js +18 -13
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +36 -54
- package/dist/composables/useCustomInterfaceAppearance.js +28 -31
- package/dist/config/i18n/en/labels.json.js +4 -36
- package/dist/config/i18n/en/tooltips.json.js +1 -2
- package/dist/guido.css +1 -1
- package/dist/node_modules/@vueuse/shared/index.js +28 -40
- package/dist/package.json.js +1 -1
- package/dist/sprite.svg +0 -6
- package/dist/src/@types/config/schemas.d.ts +0 -4
- package/dist/src/components/organisms/AutoSaveController.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +3 -1
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +3 -1
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +0 -2
- package/dist/src/stores/config.d.ts +0 -18
- package/dist/src/stores/editor.d.ts +0 -107
- package/dist/src/stores/onboarding.d.ts +1 -552
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +0 -10
- package/dist/static/styles/variables.css.js +0 -2
- package/dist/stores/editor.js +4 -13
- package/dist/stores/onboarding.js +18 -39
- package/dist/utils/timeUtil.js +17 -7
- package/package.json +6 -6
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +0 -17
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +0 -27
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +0 -20
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +0 -48
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +0 -18
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +0 -37
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +0 -24
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +0 -48
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +0 -19
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +0 -82
- package/dist/composables/useAccessibilityApi.js +0 -35
- package/dist/node_modules/@vueuse/core/index.js +0 -102
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +0 -2
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +0 -2
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +0 -2
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +0 -2
- package/dist/src/composables/useAccessibilityApi.d.ts +0 -15
- package/dist/static/styles/components/accessibility.css.js +0 -282
- /package/dist/src/components/organisms/header/{AutoSaveStatus.vue.d.ts → AutoSaveToggle.vue.d.ts} +0 -0
|
@@ -6,13 +6,3 @@
|
|
|
6
6
|
* @example formatLocalTime(date, true) -> 12:20:02 (UTC+3 Istanbul)
|
|
7
7
|
*/
|
|
8
8
|
export declare const formatLocalTime: (date: Date, useTimezone?: boolean) => string;
|
|
9
|
-
/**
|
|
10
|
-
* Auto-save timestamp parts for the header status label. The component picks the
|
|
11
|
-
* copy: same day -> "Autosaved at {time}, Today"; earlier -> "Autosaved at {date}".
|
|
12
|
-
* @example autoSaveTimestamp(date) -> { isToday: true, time: '20:01', date: '16.07.2026' }
|
|
13
|
-
*/
|
|
14
|
-
export declare const autoSaveTimestamp: (date: Date, now?: Date) => {
|
|
15
|
-
isToday: boolean;
|
|
16
|
-
time: string;
|
|
17
|
-
date: string;
|
|
18
|
-
};
|
|
@@ -14,10 +14,8 @@ const o = `:host {
|
|
|
14
14
|
--guido-color-gray-0: #F9F9F9;
|
|
15
15
|
--guido-color-neutral-800: #222938;
|
|
16
16
|
--guido-color-neutral-700: #2C3546;
|
|
17
|
-
--guido-color-neutral-500: #5D6980;
|
|
18
17
|
--guido-color-neutral-200: #DCDFE6;
|
|
19
18
|
--guido-color-neutral-100: #EFF2F4;
|
|
20
|
-
--guido-color-warning-500: #FFBF00;
|
|
21
19
|
--guido-color-danger-300: #e84342;
|
|
22
20
|
--guido-color-danger-500: #DC2A2A;
|
|
23
21
|
--guido-box-shadow: 0 4px 12px 0 rgba(44,53,70,0.15);
|
package/dist/stores/editor.js
CHANGED
|
@@ -6,9 +6,6 @@ const o = e("guidoEditor", {
|
|
|
6
6
|
isSaveAsTemplateDrawerOpen: !1,
|
|
7
7
|
isVersionHistoryOpen: !1,
|
|
8
8
|
isPreviewModeOpen: !1,
|
|
9
|
-
isAccessibilityTestingOpen: !1,
|
|
10
|
-
imagesHidden: !1,
|
|
11
|
-
colorVisionDeficiency: "",
|
|
12
9
|
editorVisualMode: "desktop",
|
|
13
10
|
hasChanges: !1,
|
|
14
11
|
isStripoInitialized: !1,
|
|
@@ -20,26 +17,20 @@ const o = e("guidoEditor", {
|
|
|
20
17
|
}),
|
|
21
18
|
getters: {
|
|
22
19
|
// Middle Slot
|
|
23
|
-
isEditorToolbarVisible: (i) => !i.isVersionHistoryOpen && !i.isPreviewModeOpen
|
|
20
|
+
isEditorToolbarVisible: (i) => !i.isVersionHistoryOpen && !i.isPreviewModeOpen,
|
|
24
21
|
isUndoButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
25
22
|
isRedoButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
26
23
|
isCodeEditorButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
27
24
|
isPreviewButtonDisabled: (i) => i.loadingStatus,
|
|
28
25
|
isViewOptionsDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
29
26
|
// Right Slot
|
|
30
|
-
// Normal editing: neither the version-history nor the accessibility-testing
|
|
31
|
-
// takeover, both of which swap the right slot — kebab included — for their own
|
|
32
|
-
// controls, so anything anchored to it has nothing to point at.
|
|
33
|
-
isNormalMode: (i) => !i.isVersionHistoryOpen && !i.isAccessibilityTestingOpen,
|
|
34
27
|
isVersionHistoryButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
35
28
|
isExportButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen,
|
|
36
29
|
isSaveAsButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen,
|
|
37
30
|
isTestButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen,
|
|
38
|
-
isSaveButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen || i.isPreviewModeOpen
|
|
39
|
-
// Autosave
|
|
40
|
-
|
|
41
|
-
// landing mid-simulation would capture.
|
|
42
|
-
isInSaveableState: (i) => !i.loadingStatus && !i.isVersionHistoryOpen && !i.isPreviewModeOpen && !i.isCodeEditorOpen && !i.isAccessibilityTestingOpen
|
|
31
|
+
isSaveButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen || i.isPreviewModeOpen,
|
|
32
|
+
// Autosave
|
|
33
|
+
isInSaveableState: (i) => !i.loadingStatus && !i.isVersionHistoryOpen && !i.isPreviewModeOpen && !i.isCodeEditorOpen
|
|
43
34
|
}
|
|
44
35
|
});
|
|
45
36
|
export {
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import { useOnboardingApi as
|
|
1
|
+
import { useOnboardingApi as s } from "../services/onboardingApi.js";
|
|
2
2
|
import { defineStore as e } from "pinia";
|
|
3
|
-
const
|
|
3
|
+
const t = () => ({
|
|
4
4
|
cardIndex: 0,
|
|
5
5
|
isActive: !1,
|
|
6
6
|
config: []
|
|
7
7
|
}), a = () => ({
|
|
8
8
|
onboardings: {
|
|
9
|
-
newVersionPopup:
|
|
10
|
-
genericOnboarding:
|
|
11
|
-
textBlockOnboarding:
|
|
12
|
-
versionHistoryOnboarding:
|
|
13
|
-
ampOnboarding:
|
|
14
|
-
itemsOnboarding:
|
|
15
|
-
editorTabBarOnboarding: r()
|
|
9
|
+
newVersionPopup: t(),
|
|
10
|
+
genericOnboarding: t(),
|
|
11
|
+
textBlockOnboarding: t(),
|
|
12
|
+
versionHistoryOnboarding: t(),
|
|
13
|
+
ampOnboarding: t(),
|
|
14
|
+
itemsOnboarding: t()
|
|
16
15
|
},
|
|
17
16
|
userModalState: {},
|
|
18
|
-
isFetched: !1
|
|
19
|
-
|
|
20
|
-
// for it: close() fills it even when the save fails, and a test stub can keep
|
|
21
|
-
// reporting "unseen". Being wiped by another onboarding is deliberately not in here,
|
|
22
|
-
// so an interrupted tour can come back once that other one is done.
|
|
23
|
-
closedThisSession: []
|
|
24
|
-
}), g = e("guidoOnboarding", {
|
|
17
|
+
isFetched: !1
|
|
18
|
+
}), c = e("guidoOnboarding", {
|
|
25
19
|
state: () => a(),
|
|
26
20
|
getters: {
|
|
27
21
|
getOnboarding: (n) => (i) => n.onboardings[i],
|
|
@@ -50,16 +44,6 @@ const r = () => ({
|
|
|
50
44
|
const { itemsOnboarding: i } = n.onboardings;
|
|
51
45
|
return i.config[i.cardIndex];
|
|
52
46
|
},
|
|
53
|
-
getEditorTabBarCurrentCard: (n) => {
|
|
54
|
-
const { editorTabBarOnboarding: i } = n.onboardings;
|
|
55
|
-
return i.config[i.cardIndex];
|
|
56
|
-
},
|
|
57
|
-
// Every tab-bar tour card after the first points at a row inside the kebab menu,
|
|
58
|
-
// so the menu has to stay open under them.
|
|
59
|
-
isEditorActionsMenuPinned: (n) => {
|
|
60
|
-
const { editorTabBarOnboarding: i } = n.onboardings;
|
|
61
|
-
return i.isActive && i.cardIndex > 0;
|
|
62
|
-
},
|
|
63
47
|
shouldShowOnboarding: (n) => (i) => {
|
|
64
48
|
const o = n.userModalState.Guido;
|
|
65
49
|
return i === "newVersionPopup" && (o != null && o.genericOnboarding) ? !1 : o ? !o[i] : !0;
|
|
@@ -79,12 +63,7 @@ const r = () => ({
|
|
|
79
63
|
this.shouldShowOnboarding(n) && !this.isActive(n) && this.start(n);
|
|
80
64
|
},
|
|
81
65
|
async close(n) {
|
|
82
|
-
this.
|
|
83
|
-
try {
|
|
84
|
-
await this.setUserModalState(n, "true", "Guido");
|
|
85
|
-
} catch (i) {
|
|
86
|
-
console.warn("guido:onboarding:close-not-persisted", n, i);
|
|
87
|
-
}
|
|
66
|
+
await this.setUserModalState(n, "true", "Guido"), this.onboardings[n].isActive = !1, this.onboardings[n].cardIndex = 0, this.onboardings[n].config = [];
|
|
88
67
|
},
|
|
89
68
|
next(n) {
|
|
90
69
|
this.onboardings[n].cardIndex < this.onboardings[n].config.length - 1 && this.onboardings[n].cardIndex++;
|
|
@@ -93,14 +72,14 @@ const r = () => ({
|
|
|
93
72
|
this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
|
|
94
73
|
},
|
|
95
74
|
updateCardPosition(n, i, o) {
|
|
96
|
-
const
|
|
97
|
-
|
|
75
|
+
const r = this.onboardings[n].config[i];
|
|
76
|
+
r && (r.top = o.top, r.position = o.position);
|
|
98
77
|
},
|
|
99
78
|
setConfig(n, i) {
|
|
100
79
|
this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
|
|
101
80
|
},
|
|
102
81
|
async onDiscoverNowClicked() {
|
|
103
|
-
|
|
82
|
+
await this.setUserModalState("newVersionPopup", "true", "Guido"), await this.setUserModalState("genericOnboarding", "true", "Guido"), this.start("genericOnboarding");
|
|
104
83
|
},
|
|
105
84
|
onRemindMeLater() {
|
|
106
85
|
sessionStorage.setItem("newVersionPopupDismissed", "true");
|
|
@@ -114,7 +93,7 @@ const r = () => ({
|
|
|
114
93
|
async fetchUserModalState() {
|
|
115
94
|
if (this.isFetched)
|
|
116
95
|
return;
|
|
117
|
-
const { fetchUserModalState: n } =
|
|
96
|
+
const { fetchUserModalState: n } = s();
|
|
118
97
|
try {
|
|
119
98
|
const i = await n();
|
|
120
99
|
this.userModalState = i, this.isFetched = !0;
|
|
@@ -122,11 +101,11 @@ const r = () => ({
|
|
|
122
101
|
}
|
|
123
102
|
},
|
|
124
103
|
async setUserModalState(n, i, o) {
|
|
125
|
-
const { setUserModalState:
|
|
126
|
-
await
|
|
104
|
+
const { setUserModalState: r } = s();
|
|
105
|
+
await r(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
|
|
127
106
|
}
|
|
128
107
|
}
|
|
129
108
|
});
|
|
130
109
|
export {
|
|
131
|
-
|
|
110
|
+
c as useOnboardingStore
|
|
132
111
|
};
|
package/dist/utils/timeUtil.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
1
|
+
const r = (t) => {
|
|
2
|
+
const e = -t.getTimezoneOffset(), o = e >= 0 ? "+" : "-", n = Math.abs(e), s = Math.floor(n / 60), i = n % 60;
|
|
3
|
+
return i === 0 ? `UTC${o}${s}` : `UTC${o}${s}:${String(i).padStart(2, "0")}`;
|
|
4
|
+
}, a = () => {
|
|
5
|
+
var e;
|
|
6
|
+
const { timeZone: t } = new Intl.DateTimeFormat().resolvedOptions();
|
|
7
|
+
return ((e = t.split("/").pop()) == null ? void 0 : e.replace(/_/g, " ")) ?? t;
|
|
8
|
+
}, c = (t, e = !1) => {
|
|
9
|
+
const o = t.toLocaleTimeString([], {
|
|
10
|
+
hour: "2-digit",
|
|
11
|
+
hour12: !1,
|
|
12
|
+
minute: "2-digit",
|
|
13
|
+
second: "2-digit"
|
|
14
|
+
});
|
|
15
|
+
return e ? `${o} (${r(t)} ${a()})` : o;
|
|
16
|
+
};
|
|
7
17
|
export {
|
|
8
|
-
|
|
18
|
+
c as formatLocalTime
|
|
9
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.18.2-beta.
|
|
3
|
+
"version": "3.18.2-beta.a39b494",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@typescript-eslint/parser": "7.18.0",
|
|
78
78
|
"@useinsider/eslint-config": "1.5.3",
|
|
79
79
|
"@vitejs/plugin-vue2": "2.3.1",
|
|
80
|
-
"@vitest/coverage-v8": "
|
|
80
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
81
81
|
"eslint": "8.57.1",
|
|
82
82
|
"eslint-config-airbnb-base": "15.0.0",
|
|
83
83
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
@@ -90,17 +90,17 @@
|
|
|
90
90
|
"happy-dom": "15.11.7",
|
|
91
91
|
"husky": "9.1.7",
|
|
92
92
|
"msw": "2.10.3",
|
|
93
|
-
"nyc": "
|
|
93
|
+
"nyc": "18.0.0",
|
|
94
94
|
"sass": "1.69.7",
|
|
95
95
|
"typescript": "5.5.4",
|
|
96
96
|
"typescript-eslint": "8.26.0",
|
|
97
97
|
"vite-plugin-dts": "4.5.4",
|
|
98
98
|
"vite-plugin-istanbul": "7.0.0",
|
|
99
|
-
"vitest": "
|
|
99
|
+
"vitest": "4.1.11",
|
|
100
100
|
"vue-tsc": "2.2.10"
|
|
101
101
|
},
|
|
102
102
|
"overrides": {
|
|
103
|
-
"axios": "1.
|
|
103
|
+
"axios": "1.20.0",
|
|
104
104
|
"flatted": "3.4.2",
|
|
105
105
|
"micromatch": "4.0.8",
|
|
106
106
|
"path-to-regexp": "6.3.0"
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
},
|
|
119
119
|
"guido": {
|
|
120
120
|
"stripo": {
|
|
121
|
-
"version": "2.
|
|
121
|
+
"version": "2.77.0"
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import t from "./AutoSaveStatus.vue2.js";
|
|
2
|
-
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var _ = function() {
|
|
4
|
-
var s = this, e = s._self._c, a = s._self._setupProxy;
|
|
5
|
-
return a.isFeatureEnabled("autosave") ? e("div", { staticClass: "d-f a-i-c auto-save-status" }, [a.autosaveStore.status === a.AUTOSAVE_STATUS.SAVING ? e("span", { staticClass: "d-f a-i-c f-s-1" }, [e(a.InLoading, { attrs: { "color-class": "i-c-53", size: "16" } }), e("span", { staticClass: "ml-1 t-c-53" }, [s._v(s._s(a.trans("newsletter.saving")))])], 1) : a.savedLabel ? e("span", { staticClass: "f-s-1 t-c-53" }, [s._v(s._s(a.savedLabel.before)), a.savedLabel.word ? e("span", { staticClass: "f-w-600" }, [s._v(s._s(a.savedLabel.word))]) : s._e(), s._v(s._s(a.savedLabel.after))]) : s._e()]) : s._e();
|
|
6
|
-
}, n = [], o = /* @__PURE__ */ r(
|
|
7
|
-
t,
|
|
8
|
-
_,
|
|
9
|
-
n,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const v = o.exports;
|
|
15
|
-
export {
|
|
16
|
-
v as default
|
|
17
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, computed as S } from "vue";
|
|
2
|
-
import { useConfig as A } from "../../../composables/useConfig.js";
|
|
3
|
-
import { useTranslations as T } from "../../../composables/useTranslations.js";
|
|
4
|
-
import { useAutosaveStore as v, AUTOSAVE_STATUS as m } from "../../../stores/autosave.js";
|
|
5
|
-
import { autoSaveTimestamp as b } from "../../../utils/timeUtil.js";
|
|
6
|
-
import { InLoading as D } from "@useinsider/design-system-vue";
|
|
7
|
-
const j = /* @__PURE__ */ p({
|
|
8
|
-
__name: "AutoSaveStatus",
|
|
9
|
-
setup(O) {
|
|
10
|
-
const { isFeatureEnabled: u } = A(), a = v(), n = T(), t = "__BOLD_START__", o = "__BOLD_END__", s = (i) => i.split(t).join("").split(o).join(""), _ = S(() => {
|
|
11
|
-
if (a.status !== m.SAVED || !a.lastSavedAt)
|
|
12
|
-
return null;
|
|
13
|
-
const { isToday: i, time: c, date: f } = b(a.lastSavedAt), l = { boldStart: t, boldEnd: o }, e = i ? n("email-editor.autosaved-at-today", { ...l, time: c }) : n("email-editor.autosaved-at-date", { ...l, date: f }), r = e.indexOf(t), d = e.indexOf(o, r + t.length);
|
|
14
|
-
return r === -1 || d === -1 ? { before: s(e), word: "", after: "" } : {
|
|
15
|
-
// Stripped like the other two: copy that emits {boldEnd} before {boldStart} leaves a
|
|
16
|
-
// stray marker in this slice, which is exactly the leak the guard above prevents.
|
|
17
|
-
before: s(e.slice(0, r)),
|
|
18
|
-
word: s(e.slice(r + t.length, d)),
|
|
19
|
-
after: s(e.slice(d + o.length))
|
|
20
|
-
};
|
|
21
|
-
});
|
|
22
|
-
return { __sfc: !0, isFeatureEnabled: u, autosaveStore: a, trans: n, BOLD_START: t, BOLD_END: o, stripMarkers: s, savedLabel: _, AUTOSAVE_STATUS: m, InLoading: D };
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
j as default
|
|
27
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import i from "./EditorActionsMenu.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var o = function() {
|
|
5
|
-
var s = this, e = s._self._c, t = s._self._setupProxy;
|
|
6
|
-
return e("div", { ref: "root", staticClass: "editor-actions-menu p-r" }, [e(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(l) {
|
|
7
|
-
t.isOpen = !t.isOpen;
|
|
8
|
-
} } }), t.isPanelOpen ? e("div", { staticClass: "editor-actions-menu__panel p-a" }, [t.isAutosaveVisible ? [e("p", { staticClass: "editor-actions-menu__section f-s-1 t-c-53" }, [s._v(" " + s._s(t.trans("email-editor.preferences")) + " ")]), e("div", { staticClass: "editor-actions-menu__row editor-actions-menu__row_static d-f a-i-c j-c-s-b", attrs: { id: "guido__kebab-autosave" } }, [e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("email-editor.auto-save")))]), e(t.InToggle, { attrs: { id: "guido__kebab-autosave-toggle", name: "guido-kebab-autosave-toggle", checked: t.autosaveStore.isOn, disable: t.editorStore.loadingStatus }, on: { click: t.toggleAutosave } })], 1), e("div", { staticClass: "editor-actions-menu__divider" })] : s._e(), e("p", { staticClass: "editor-actions-menu__section f-s-1 t-c-53" }, [s._v(" " + s._s(t.trans("email-editor.actions")) + " ")]), t.isVersionHistoryVisible ? e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-version-history", type: "button", disabled: t.editorStore.isVersionHistoryButtonDisabled }, on: { click: t.handleVersionHistory } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-architect-version-history", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("newsletter.version-history")))])], 1) : s._e(), t.isAccessibilityVisible ? e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-accessibility", type: "button", disabled: t.editorStore.loadingStatus }, on: { click: t.handleAccessibility } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-accessibility", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("email-editor.accessibility-test")))])], 1) : s._e(), t.isSaveAsVisible ? e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-save-as", type: "button", disabled: t.editorStore.isSaveAsButtonDisabled }, on: { click: t.handleSaveAs } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-newsletter-save-as-template", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("newsletter.save-templates")))])], 1) : s._e(), e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-export", type: "button", disabled: t.isExporting || t.editorStore.isExportButtonDisabled }, on: { click: t.handleExport } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-export", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("email-editor.export-html")))])], 1)], 2) : s._e()], 1);
|
|
9
|
-
}, n = [], r = /* @__PURE__ */ a(
|
|
10
|
-
i,
|
|
11
|
-
o,
|
|
12
|
-
n,
|
|
13
|
-
!1,
|
|
14
|
-
null,
|
|
15
|
-
"abe82925"
|
|
16
|
-
);
|
|
17
|
-
const b = r.exports;
|
|
18
|
-
export {
|
|
19
|
-
b as default
|
|
20
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as p, computed as i, watch as w } from "vue";
|
|
2
|
-
import { useAccessibilityApi as x } from "../../../composables/useAccessibilityApi.js";
|
|
3
|
-
import { useConfig as P } from "../../../composables/useConfig.js";
|
|
4
|
-
import { useExport as I } from "../../../composables/useExport.js";
|
|
5
|
-
import { useTranslations as B } from "../../../composables/useTranslations.js";
|
|
6
|
-
import { useVersionHistoryApi as C } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
-
import { useAutosaveStore as k } from "../../../stores/autosave.js";
|
|
8
|
-
import { useEditorStore as D } from "../../../stores/editor.js";
|
|
9
|
-
import { useOnboardingStore as F } from "../../../stores/onboarding.js";
|
|
10
|
-
import { getTooltipOptions as j } from "../../../utils/tooltipUtils.js";
|
|
11
|
-
import { InToggle as q, InIcons as z, InButtonV2 as G } from "@useinsider/design-system-vue";
|
|
12
|
-
import { onClickOutside as J } from "../../../node_modules/@vueuse/core/index.js";
|
|
13
|
-
const so = /* @__PURE__ */ h({
|
|
14
|
-
__name: "EditorActionsMenu",
|
|
15
|
-
setup(K) {
|
|
16
|
-
const { config: n, isFeatureEnabled: r } = P(), { exportHtml: u } = I(), { openVersionHistory: m, closeVersionHistory: f } = C(), { toggleAccessibilityTestingMode: d } = x(), s = D(), v = k(), a = F(), g = B(), c = p(!1), y = i(() => c.value || a.isEditorActionsMenuPinned), l = p(!1), A = p(null), b = i(() => r("autosave")), V = i(
|
|
17
|
-
() => {
|
|
18
|
-
var o, t;
|
|
19
|
-
return !!((t = (o = n.value) == null ? void 0 : o.features) != null && t.versionHistory) && !s.isPreviewModeOpen;
|
|
20
|
-
}
|
|
21
|
-
), O = i(
|
|
22
|
-
() => r("accessibilityTesting") && !s.isPreviewModeOpen
|
|
23
|
-
), S = i(() => {
|
|
24
|
-
var o, t;
|
|
25
|
-
return !!((t = (o = n.value) == null ? void 0 : o.features) != null && t.saveAsTemplate);
|
|
26
|
-
}), e = () => {
|
|
27
|
-
c.value = !1;
|
|
28
|
-
};
|
|
29
|
-
w(() => a.isEditorActionsMenuPinned, (o) => {
|
|
30
|
-
o || e();
|
|
31
|
-
});
|
|
32
|
-
const E = () => {
|
|
33
|
-
s.isVersionHistoryOpen ? f() : m(), e();
|
|
34
|
-
}, H = () => {
|
|
35
|
-
d(), e();
|
|
36
|
-
}, _ = () => {
|
|
37
|
-
s.isSaveAsTemplateDrawerOpen = !0, e();
|
|
38
|
-
}, T = async () => {
|
|
39
|
-
l.value = !0, await u(), l.value = !1, e();
|
|
40
|
-
}, M = (o) => {
|
|
41
|
-
v.isOn = o;
|
|
42
|
-
};
|
|
43
|
-
return J(A, e), { __sfc: !0, config: n, isFeatureEnabled: r, exportHtml: u, openVersionHistory: m, closeVersionHistory: f, toggleAccessibilityTestingMode: d, editorStore: s, autosaveStore: v, onboardingStore: a, trans: g, isOpen: c, isPanelOpen: y, isExporting: l, root: A, isAutosaveVisible: b, isVersionHistoryVisible: V, isAccessibilityVisible: O, isSaveAsVisible: S, close: e, handleVersionHistory: E, handleAccessibility: H, handleSaveAs: _, handleExport: T, toggleAutosave: M, getTooltipOptions: j, InButtonV2: G, InIcons: z, InToggle: q };
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
so as default
|
|
48
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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-image", 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": "", "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
|
-
"a5b9b5d5"
|
|
14
|
-
);
|
|
15
|
-
const _ = d.exports;
|
|
16
|
-
export {
|
|
17
|
-
_ as default
|
|
18
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import n from "./ColorVisionSelect.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var l = function() {
|
|
5
|
-
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
6
|
-
return o("div", { ref: "root", staticClass: "color-vision-select p-r" }, [o(e.InButtonV2, { attrs: { id: "guido__a11y-color-vision-trigger", "left-icon": "line-show-on", "right-icon": "line-chevron-small-down", type: "secondary", "disabled-status": e.editorStore.loadingStatus, "label-text": e.selectedLabel }, on: { click: function(s) {
|
|
7
|
-
e.isOpen = !e.isOpen;
|
|
8
|
-
} } }), e.isOpen ? o("div", { staticClass: "color-vision-select__menu p-a" }, t._l(e.OPTIONS, function(s) {
|
|
9
|
-
return o("button", { key: s.value || "none", staticClass: "color-vision-select__option d-f f-d-c", class: { "color-vision-select__option_selected": s.value === e.editorStore.colorVisionDeficiency }, attrs: { type: "button" }, on: { click: function(_) {
|
|
10
|
-
return e.select(s.value);
|
|
11
|
-
} } }, [o("span", { staticClass: "color-vision-select__option-label f-s-2" }, [t._v(t._s(e.trans(s.labelKey)))]), s.descriptionKey ? o("span", { staticClass: "color-vision-select__option-description f-s-1 t-c-53" }, [t._v(" " + t._s(e.trans(s.descriptionKey)) + " ")]) : t._e()]);
|
|
12
|
-
}), 0) : t._e()], 1);
|
|
13
|
-
}, r = [], c = /* @__PURE__ */ i(
|
|
14
|
-
n,
|
|
15
|
-
l,
|
|
16
|
-
r,
|
|
17
|
-
!1,
|
|
18
|
-
null,
|
|
19
|
-
"869e2871"
|
|
20
|
-
);
|
|
21
|
-
const f = c.exports;
|
|
22
|
-
export {
|
|
23
|
-
f as default
|
|
24
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, ref as c, computed as m } from "vue";
|
|
2
|
-
import { useAccessibilityApi as u } from "../../../../composables/useAccessibilityApi.js";
|
|
3
|
-
import { useTranslations as v } from "../../../../composables/useTranslations.js";
|
|
4
|
-
import { useEditorStore as f } from "../../../../stores/editor.js";
|
|
5
|
-
import { InButtonV2 as y } from "@useinsider/design-system-vue";
|
|
6
|
-
import { onClickOutside as K } from "../../../../node_modules/@vueuse/core/index.js";
|
|
7
|
-
const A = /* @__PURE__ */ p({
|
|
8
|
-
__name: "ColorVisionSelect",
|
|
9
|
-
setup(b) {
|
|
10
|
-
const e = [
|
|
11
|
-
{
|
|
12
|
-
value: "",
|
|
13
|
-
labelKey: "email-editor.cvd-none"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
value: "protanopia",
|
|
17
|
-
labelKey: "email-editor.cvd-protanopia",
|
|
18
|
-
descriptionKey: "email-editor.cvd-protanopia-description"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
value: "deuteranopia",
|
|
22
|
-
labelKey: "email-editor.cvd-deuteranopia",
|
|
23
|
-
descriptionKey: "email-editor.cvd-deuteranopia-description"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
value: "tritanopia",
|
|
27
|
-
labelKey: "email-editor.cvd-tritanopia",
|
|
28
|
-
descriptionKey: "email-editor.cvd-tritanopia-description"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
value: "achromatopsia",
|
|
32
|
-
labelKey: "email-editor.cvd-achromatopsia",
|
|
33
|
-
descriptionKey: "email-editor.cvd-achromatopsia-description"
|
|
34
|
-
}
|
|
35
|
-
], t = f(), a = v(), { setColorVisionDeficiency: r } = u(), o = c(!1), n = c(null), l = m(() => {
|
|
36
|
-
const i = e.find((d) => d.value === t.colorVisionDeficiency) ?? e[0];
|
|
37
|
-
return a(i.labelKey);
|
|
38
|
-
}), s = (i) => {
|
|
39
|
-
r(i), o.value = !1;
|
|
40
|
-
};
|
|
41
|
-
return K(n, () => {
|
|
42
|
-
o.value = !1;
|
|
43
|
-
}), { __sfc: !0, OPTIONS: e, editorStore: t, trans: a, setColorVisionDeficiency: r, isOpen: o, root: n, selectedLabel: l, select: s, InButtonV2: y };
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
A as default
|
|
48
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import e from "./EditorTabBarOnboarding.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import i from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var s = function() {
|
|
5
|
-
var r, n;
|
|
6
|
-
var t = this, a = t._self._c, o = t._self._setupProxy;
|
|
7
|
-
return o.isVisible ? a(o.InOnboard, { key: "guido__tab-bar-onboard", staticClass: "w-21-s p-a z-11", class: (r = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : r.classes, attrs: { id: o.CARD_ID, "is-multiple-page": "", visible: "", "image-source": "", title: "", "pages-config": o.onboardingStore.onboardings.editorTabBarOnboarding.config, "pointer-position": (n = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : n.position, "right-position": o.placement.right, "top-position": o.placement.top }, on: { backButtonClick: o.handleBack, close: o.finish, nextButtonClick: o.handleNext } }) : t._e();
|
|
8
|
-
}, c = [], d = /* @__PURE__ */ i(
|
|
9
|
-
e,
|
|
10
|
-
s,
|
|
11
|
-
c,
|
|
12
|
-
!1,
|
|
13
|
-
null,
|
|
14
|
-
"af34c57a"
|
|
15
|
-
);
|
|
16
|
-
const g = d.exports;
|
|
17
|
-
export {
|
|
18
|
-
g as default
|
|
19
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, ref as q, computed as w, watch as E, nextTick as R } from "vue";
|
|
2
|
-
import { useConfig as P } from "../../../composables/useConfig.js";
|
|
3
|
-
import { useRibbonOffset as D } from "../../../composables/useRibbonOffset.js";
|
|
4
|
-
import { useTranslations as M } from "../../../composables/useTranslations.js";
|
|
5
|
-
import { useOnboardingStore as F } from "../../../stores/onboarding.js";
|
|
6
|
-
import { InOnboard as G } from "@useinsider/design-system-vue";
|
|
7
|
-
const J = /* @__PURE__ */ I({
|
|
8
|
-
__name: "EditorTabBarOnboarding",
|
|
9
|
-
setup($) {
|
|
10
|
-
const i = "editorTabBarOnboarding", l = "guido__tab-bar-onboard", n = M(), o = F(), { isFeatureEnabled: p } = P(), { getTopPosition: m } = D(), B = () => o.next(i), x = () => o.previous(i), k = () => void o.close(i), f = 4, T = 17, a = "#guido__kebab-button", s = ".editor-actions-menu__panel", r = (t, e, d) => ({
|
|
11
|
-
classes: "guido-tab-bar-onboarding",
|
|
12
|
-
position: "Right Top",
|
|
13
|
-
title: n(t),
|
|
14
|
-
description: n(e),
|
|
15
|
-
imageSource: "",
|
|
16
|
-
backButtonType: "text",
|
|
17
|
-
backButtonText: n("action-builder.back"),
|
|
18
|
-
backButtonClick: x,
|
|
19
|
-
nextButtonType: "text",
|
|
20
|
-
nextButtonText: n("action-builder.next"),
|
|
21
|
-
nextButtonClick: B,
|
|
22
|
-
...d
|
|
23
|
-
}), _ = () => p("autosave") ? [{
|
|
24
|
-
card: r("email-editor.onboarding-autosave-title", "email-editor.onboarding-autosave-description", {}),
|
|
25
|
-
edge: s,
|
|
26
|
-
target: "#guido__kebab-autosave"
|
|
27
|
-
}] : [], C = () => [
|
|
28
|
-
{
|
|
29
|
-
card: r("email-editor.onboarding-kebab-title", "email-editor.onboarding-kebab-description", {
|
|
30
|
-
backButtonType: void 0,
|
|
31
|
-
backButtonText: void 0,
|
|
32
|
-
backButtonClick: () => {
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
edge: a,
|
|
36
|
-
target: a
|
|
37
|
-
},
|
|
38
|
-
..._(),
|
|
39
|
-
{
|
|
40
|
-
card: r("email-editor.onboarding-accessibility-title", "email-editor.onboarding-accessibility-description", {
|
|
41
|
-
nextButtonText: n("action-builder.ok"),
|
|
42
|
-
nextButtonClick: k
|
|
43
|
-
}),
|
|
44
|
-
edge: s,
|
|
45
|
-
target: "#guido__kebab-accessibility"
|
|
46
|
-
}
|
|
47
|
-
], b = () => ({ top: m(56), right: "150px" });
|
|
48
|
-
let c = [];
|
|
49
|
-
const u = q(b()), g = async () => {
|
|
50
|
-
var y;
|
|
51
|
-
await R();
|
|
52
|
-
const t = c[o.onboardings.editorTabBarOnboarding.cardIndex], e = (y = document.getElementById(l)) == null ? void 0 : y.offsetParent, d = (t && document.querySelector(t.edge)) ?? document.querySelector(a), O = (t && document.querySelector(t.target)) ?? document.querySelector(a);
|
|
53
|
-
if (!e || !d || !O) {
|
|
54
|
-
u.value = b();
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const h = e.getBoundingClientRect(), v = O.getBoundingClientRect();
|
|
58
|
-
u.value = {
|
|
59
|
-
top: `${Math.round(v.top + v.height / 2 - h.top - T)}px`,
|
|
60
|
-
right: `${Math.round(h.right - d.getBoundingClientRect().left - f)}px`
|
|
61
|
-
};
|
|
62
|
-
}, S = w(
|
|
63
|
-
() => o.onboardings.editorTabBarOnboarding.config.length > 0 && o.onboardings.editorTabBarOnboarding.isActive
|
|
64
|
-
), N = () => {
|
|
65
|
-
var t, e;
|
|
66
|
-
(e = (t = o.getEditorTabBarCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
|
|
67
|
-
}, A = () => {
|
|
68
|
-
var t, e;
|
|
69
|
-
(e = (t = o.getEditorTabBarCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
|
|
70
|
-
};
|
|
71
|
-
return E(
|
|
72
|
-
() => o.onboardings.editorTabBarOnboarding.isActive,
|
|
73
|
-
async (t) => {
|
|
74
|
-
t && (await R(), c = C(), o.setConfig(i, c.map((e) => e.card)), await g());
|
|
75
|
-
},
|
|
76
|
-
{ immediate: !0 }
|
|
77
|
-
), E(() => o.onboardings.editorTabBarOnboarding.cardIndex, g), { __sfc: !0, ONBOARDING: i, CARD_ID: l, trans: n, onboardingStore: o, isFeatureEnabled: p, getTopPosition: m, goNext: B, goBack: x, finish: k, ANCHOR_GAP: f, POINTER_CENTER: T, KEBAB: a, MENU: s, card: r, autoSaveStep: _, buildSteps: C, designFallback: b, steps: c, placement: u, place: g, isVisible: S, handleNext: N, handleBack: A, InOnboard: G };
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
export {
|
|
81
|
-
J as default
|
|
82
|
-
};
|