@useinsider/guido 3.2.0-beta.565bfaf → 3.2.0-beta.570fb6d
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 +1 -1
- package/dist/@types/config/validator.js +27 -34
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +76 -81
- package/dist/components/organisms/base/Toaster.vue2.js +10 -11
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +9 -15
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +31 -40
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +19 -20
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +11 -14
- package/dist/components/organisms/header/EditorActions.vue.js +11 -12
- package/dist/components/organisms/header/EditorActions.vue2.js +18 -22
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +12 -15
- package/dist/components/organisms/header/LeftSlot.vue2.js +16 -19
- package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -11
- package/dist/components/organisms/header/RightSlot.vue2.js +14 -17
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +20 -22
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +38 -41
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +38 -43
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +18 -21
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +27 -31
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +27 -29
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +19 -21
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +8 -9
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +9 -10
- package/dist/composables/useActionsApi.js +37 -38
- package/dist/composables/useBlocksConfig.js +26 -26
- package/dist/composables/useFullStoryBridge.js +13 -0
- package/dist/composables/useHtmlCompiler.js +34 -26
- package/dist/composables/useHtmlValidator.js +101 -109
- package/dist/composables/useHttp.js +30 -30
- package/dist/composables/usePartner.js +1 -1
- package/dist/composables/useRecommendation.js +14 -15
- package/dist/composables/useSave.js +21 -22
- package/dist/composables/useStripo.js +47 -42
- package/dist/composables/useSyncModuleExtractor.js +31 -29
- package/dist/composables/useTimerClone.js +24 -25
- package/dist/composables/useTranslations.js +23 -16
- package/dist/composables/useValidation.js +7 -8
- package/dist/composables/validators/useLiquidValidator.js +13 -13
- package/dist/config/compiler/recommendationCompilerRules.js +72 -67
- package/dist/config/compiler/unsubscribeCompilerRules.js +38 -37
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +36 -34
- package/dist/config/migrator/checkboxMigrator.js +20 -21
- package/dist/config/migrator/couponBlockMigrator.js +18 -19
- package/dist/config/migrator/itemsBlockMigrator.js +87 -89
- package/dist/config/migrator/radioButtonMigrator.js +12 -13
- package/dist/config/migrator/recommendationMigrator.js +107 -110
- package/dist/config/migrator/unsubscribeMigrator.js +10 -11
- package/dist/enums/displayConditions.js +78 -82
- package/dist/enums/extensions/recommendationBlock.js +41 -95
- package/dist/enums/unsubscribe.js +35 -30
- package/dist/extensions/Blocks/Checkbox/control.js +23 -23
- package/dist/extensions/Blocks/Items/block.js +9 -9
- package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +89 -97
- package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +23 -24
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +13 -14
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +44 -47
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +38 -40
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +155 -162
- package/dist/extensions/Blocks/Items/enums/productEnums.js +21 -14
- package/dist/extensions/Blocks/Items/template.js +210 -210
- package/dist/extensions/Blocks/RadioButton/control.js +15 -15
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +128 -133
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +23 -20
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +99 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +19 -20
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +4 -6
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +84 -90
- package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
- package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +35 -36
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +134 -135
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +27 -57
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +14 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
- package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +18 -20
- package/dist/extensions/Blocks/Recommendation/extension.js +31 -32
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +25 -32
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +72 -69
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +22 -23
- package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +24 -25
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +11 -11
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +45 -47
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +17 -14
- package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +13 -16
- package/dist/extensions/Blocks/Unsubscribe/block.js +11 -11
- package/dist/extensions/Blocks/Unsubscribe/control.js +11 -13
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +16 -18
- package/dist/extensions/Blocks/common-control.js +25 -26
- package/dist/extensions/DynamicContent/dynamic-content.js +53 -58
- package/dist/guido.css +1 -1
- package/dist/library.js +11 -12
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +272 -167
- package/dist/node_modules/valibot/dist/index.js +122 -126
- package/dist/package.json.js +1 -1
- package/dist/services/recommendationApi.js +14 -17
- package/dist/services/templateLibraryApi.js +37 -38
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useActionsApi.d.ts +1 -1
- package/dist/src/composables/useFullStoryBridge.d.ts +11 -0
- package/dist/src/composables/useHtmlCompiler.d.ts +1 -2
- package/dist/src/composables/useTranslations.d.ts +1 -1
- package/dist/src/enums/displayConditions.d.ts +1 -5
- package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -5
- package/dist/src/enums/unsubscribe.d.ts +8 -8
- package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +3 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +3 -20
- package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +29 -0
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/static/styles/components/button.css.js +16 -9
- package/dist/static/styles/components/loader.css.js +4 -0
- package/dist/static/styles/components/narrow-panel.css.js +52 -0
- package/dist/stores/config.js +25 -81
- package/dist/stores/dynamic-content.js +6 -11
- package/dist/stores/onboarding.js +5 -5
- package/dist/stores/preview.js +6 -9
- package/dist/stores/unsubscribe.js +1 -4
- package/dist/utils/dateUtil.js +7 -10
- package/dist/utils/genericUtil.js +10 -13
- package/dist/utils/pairProductVariables.js +13 -14
- package/package.json +8 -5
- package/dist/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/lodash-es/_Hash.js +0 -20
- package/dist/node_modules/lodash-es/_ListCache.js +0 -20
- package/dist/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/lodash-es/_MapCache.js +0 -20
- package/dist/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/lodash-es/_SetCache.js +0 -13
- package/dist/node_modules/lodash-es/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -20
- package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
- package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
- package/dist/node_modules/lodash-es/_arraySome.js +0 -9
- package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
- package/dist/node_modules/lodash-es/_baseEach.js +0 -6
- package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/dist/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
- package/dist/node_modules/lodash-es/_baseGet.js +0 -11
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
- package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
- package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
- package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
- package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
- package/dist/node_modules/lodash-es/_baseMap.js +0 -11
- package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/dist/node_modules/lodash-es/_baseRange.js +0 -9
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
- package/dist/node_modules/lodash-es/_baseToString.js +0 -18
- package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
- package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
- package/dist/node_modules/lodash-es/_createRange.js +0 -11
- package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
- package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
- package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
- package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
- package/dist/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
- package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/lodash-es/_getTag.js +0 -28
- package/dist/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/lodash-es/_hasPath.js +0 -19
- package/dist/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/dist/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
- package/dist/node_modules/lodash-es/_isKey.js +0 -12
- package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
- package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
- package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
- package/dist/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/lodash-es/_stackSet.js +0 -17
- package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/lodash-es/_toSource.js +0 -17
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/dist/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/lodash-es/flatMap.js +0 -8
- package/dist/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/lodash-es/hasIn.js +0 -8
- package/dist/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/lodash-es/isFunction.js +0 -12
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/lodash-es/map.js +0 -11
- package/dist/node_modules/lodash-es/memoize.js +0 -18
- package/dist/node_modules/lodash-es/property.js +0 -10
- package/dist/node_modules/lodash-es/range.js +0 -5
- package/dist/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toFinite.js +0 -14
- package/dist/node_modules/lodash-es/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/toString.js +0 -7
|
@@ -3,97 +3,92 @@ import { useTranslations as x } from "../../../composables/useTranslations.js";
|
|
|
3
3
|
import { RIBBON_SELECTOR as T, UI_EDITOR_SELECTOR as O, CARD_COMPOSITION_TAB_SELECTOR as B, SETTINGS_TAB_SELECTOR as f } from "../../../enums/onboarding.js";
|
|
4
4
|
import { useOnboardingStore as C } from "../../../stores/onboarding.js";
|
|
5
5
|
import { InOnboard as k } from "@useinsider/design-system-vue";
|
|
6
|
-
const
|
|
6
|
+
const y = /* @__PURE__ */ l({
|
|
7
7
|
__name: "ItemsOnboarding",
|
|
8
8
|
setup(_) {
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
}), n = (t) => `${t + c.value}px`, r = (t) => {
|
|
13
|
-
const i = document.querySelector(O);
|
|
14
|
-
if (!(i != null && i.shadowRoot))
|
|
9
|
+
const o = x(), t = C(), c = a(() => document.querySelector(T)?.offsetHeight ?? 0), e = (i) => `${i + c.value}px`, s = (i) => {
|
|
10
|
+
const n = document.querySelector(O);
|
|
11
|
+
if (!n?.shadowRoot)
|
|
15
12
|
return;
|
|
16
|
-
const { shadowRoot:
|
|
13
|
+
const { shadowRoot: r } = n, m = r.querySelector(i);
|
|
17
14
|
m && m.click();
|
|
18
15
|
}, d = a(() => [
|
|
19
16
|
{
|
|
20
17
|
classes: "guido-items-onboarding-card-1",
|
|
21
18
|
right: "426px",
|
|
22
|
-
top:
|
|
19
|
+
top: e(90),
|
|
23
20
|
position: "Right Top",
|
|
24
|
-
title:
|
|
25
|
-
description:
|
|
21
|
+
title: o("email-editor.onboarding-items-title"),
|
|
22
|
+
description: o("email-editor.onboarding-items-description"),
|
|
26
23
|
imageSource: "",
|
|
27
24
|
backButtonClick: () => {
|
|
28
25
|
},
|
|
29
26
|
nextButtonType: "text",
|
|
30
|
-
nextButtonText:
|
|
27
|
+
nextButtonText: o("products.next"),
|
|
31
28
|
nextButtonClick: () => {
|
|
32
|
-
|
|
29
|
+
t.next("itemsOnboarding");
|
|
33
30
|
}
|
|
34
31
|
},
|
|
35
32
|
{
|
|
36
33
|
classes: "guido-items-onboarding-card-2",
|
|
37
34
|
right: "426px",
|
|
38
|
-
top:
|
|
35
|
+
top: e(218),
|
|
39
36
|
position: "Right Top",
|
|
40
|
-
title:
|
|
41
|
-
description:
|
|
37
|
+
title: o("email-editor.onboarding-items-item-type-title"),
|
|
38
|
+
description: o("email-editor.onboarding-items-item-type-description"),
|
|
42
39
|
imageSource: "",
|
|
43
40
|
backButtonType: "text",
|
|
44
|
-
backButtonText:
|
|
41
|
+
backButtonText: o("ds-steps.back"),
|
|
45
42
|
backButtonClick: () => {
|
|
46
|
-
|
|
43
|
+
t.previous("itemsOnboarding");
|
|
47
44
|
},
|
|
48
45
|
nextButtonType: "text",
|
|
49
|
-
nextButtonText:
|
|
46
|
+
nextButtonText: o("products.next"),
|
|
50
47
|
nextButtonClick: () => {
|
|
51
|
-
|
|
48
|
+
t.next("itemsOnboarding");
|
|
52
49
|
}
|
|
53
50
|
},
|
|
54
51
|
{
|
|
55
52
|
classes: "guido-items-onboarding-card-3",
|
|
56
53
|
right: "426px",
|
|
57
|
-
top:
|
|
54
|
+
top: e(140),
|
|
58
55
|
position: "Right Top",
|
|
59
|
-
title:
|
|
60
|
-
description:
|
|
56
|
+
title: o("email-editor.onboarding-items-composition-title"),
|
|
57
|
+
description: o("email-editor.onboarding-items-composition-description"),
|
|
61
58
|
imageSource: "",
|
|
62
59
|
backButtonType: "text",
|
|
63
|
-
backButtonText:
|
|
60
|
+
backButtonText: o("ds-steps.back"),
|
|
64
61
|
backButtonClick: () => {
|
|
65
|
-
|
|
62
|
+
t.previous("itemsOnboarding");
|
|
66
63
|
},
|
|
67
64
|
nextButtonType: "text",
|
|
68
|
-
nextButtonText:
|
|
65
|
+
nextButtonText: o("action-builder.ok"),
|
|
69
66
|
nextButtonClick: () => {
|
|
70
|
-
|
|
67
|
+
t.close("itemsOnboarding");
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
|
-
]),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
var t, i;
|
|
78
|
-
(i = (t = o.getItemsCurrentCard) == null ? void 0 : t.backButtonClick) == null || i.call(t);
|
|
70
|
+
]), b = a(() => t.onboardings.itemsOnboarding.config.length > 0 && t.onboardings.itemsOnboarding.isActive), g = () => {
|
|
71
|
+
t.getItemsCurrentCard?.nextButtonClick?.();
|
|
72
|
+
}, p = () => {
|
|
73
|
+
t.getItemsCurrentCard?.backButtonClick?.();
|
|
79
74
|
};
|
|
80
75
|
return u(
|
|
81
|
-
() =>
|
|
82
|
-
(
|
|
83
|
-
|
|
76
|
+
() => t.isActive("itemsOnboarding"),
|
|
77
|
+
(i) => {
|
|
78
|
+
i && t.setConfig("itemsOnboarding", d.value);
|
|
84
79
|
},
|
|
85
80
|
{ immediate: !0 }
|
|
86
81
|
), u(
|
|
87
|
-
() =>
|
|
88
|
-
(
|
|
89
|
-
if (!
|
|
82
|
+
() => t.onboardings.itemsOnboarding.cardIndex,
|
|
83
|
+
(i, n) => {
|
|
84
|
+
if (!t.isActive("itemsOnboarding"))
|
|
90
85
|
return;
|
|
91
|
-
const
|
|
92
|
-
|
|
86
|
+
const r = `${n}-${i}`;
|
|
87
|
+
r === "1-2" && s(B), r === "2-1" && s(f);
|
|
93
88
|
}
|
|
94
|
-
), { __sfc: !0, trans:
|
|
89
|
+
), { __sfc: !0, trans: o, onboardingStore: t, ribbonOffset: c, getTopPosition: e, switchTab: s, onboardingCardsConfig: d, isVisible: b, handleNext: g, handleBack: p, InOnboard: k };
|
|
95
90
|
}
|
|
96
91
|
});
|
|
97
92
|
export {
|
|
98
|
-
|
|
93
|
+
y as default
|
|
99
94
|
};
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { useTranslations as
|
|
5
|
-
import { ACADEMY_LINKS as
|
|
6
|
-
import
|
|
7
|
-
import { useOnboardingStore as
|
|
8
|
-
import { isAfterDate as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as b, computed as o } from "vue";
|
|
2
|
+
import v from "../../wrappers/WpModal.vue.js";
|
|
3
|
+
import { useConfig as D } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useTranslations as _ } from "../../../composables/useTranslations.js";
|
|
5
|
+
import { ACADEMY_LINKS as l } from "../../../enums/academy.js";
|
|
6
|
+
import h from "../../../static/assets/onboarding-img.svg.js";
|
|
7
|
+
import { useOnboardingStore as y } from "../../../stores/onboarding.js";
|
|
8
|
+
import { isAfterDate as L, formatShortDate as C } from "../../../utils/dateUtil.js";
|
|
9
|
+
const x = /* @__PURE__ */ g({
|
|
10
10
|
__name: "NewVersionPopup",
|
|
11
11
|
emits: ["onboarding-finished"],
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
14
|
-
var l, m;
|
|
15
|
-
return (m = (l = p.value) == null ? void 0 : l.editor) == null ? void 0 : m.migrationDate;
|
|
16
|
-
}), n = o(() => w(i.value || 0)), d = o(() => A(
|
|
12
|
+
setup(w, { emit: a }) {
|
|
13
|
+
const e = _(), t = y(), s = b(!0), { config: p } = D(), i = o(() => p.value?.editor?.migrationDate), n = o(() => L(i.value || 0)), d = o(() => C(
|
|
17
14
|
i.value || 0
|
|
18
|
-
)),
|
|
15
|
+
)), m = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
|
|
19
16
|
sunsetDate: d.value,
|
|
20
|
-
academyLink:
|
|
17
|
+
academyLink: l.EMAIL_EDITOR
|
|
21
18
|
}) : e("email-editor.onboarding-description", {
|
|
22
|
-
academyLink:
|
|
23
|
-
})), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")),
|
|
19
|
+
academyLink: l.EMAIL_EDITOR
|
|
20
|
+
})), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), f = o(() => ({
|
|
24
21
|
primaryButton: {
|
|
25
22
|
type: "primary",
|
|
26
23
|
labelText: e("left-menu.discover-now")
|
|
@@ -32,15 +29,15 @@ const V = /* @__PURE__ */ v({
|
|
|
32
29
|
})), r = () => {
|
|
33
30
|
s.value = !1, a("onboarding-finished");
|
|
34
31
|
};
|
|
35
|
-
return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle:
|
|
32
|
+
return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle: m, popupDescription: c, secondaryButtonLabel: u, footerButtonOptions: f, closePopup: r, handleDiscoverNow: () => {
|
|
36
33
|
t.onDiscoverNowClicked(), r();
|
|
37
34
|
}, handleRemindLater: () => {
|
|
38
35
|
t.onRemindMeLater(), r();
|
|
39
36
|
}, handleClose: () => {
|
|
40
37
|
t.onNewVersionPopupClose(), r();
|
|
41
|
-
}, WpModal:
|
|
38
|
+
}, WpModal: v, onboardingImageSvg: h };
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
41
|
export {
|
|
45
|
-
|
|
42
|
+
x as default
|
|
46
43
|
};
|
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import l from "./ItemsOnboarding.vue.js";
|
|
5
|
-
import y from "./NewVersionPopup.vue.js";
|
|
6
|
-
import S from "./TextBlockOnboarding.vue.js";
|
|
7
|
-
import h from "./VersionHistoryOnboarding.vue.js";
|
|
8
|
-
import { usePartner as w } from "../../../composables/usePartner.js";
|
|
9
|
-
import { useEditorStore as P } from "../../../stores/editor.js";
|
|
1
|
+
import { defineComponent as h, defineAsyncComponent as i, computed as e, onMounted as w, watch as s } from "vue";
|
|
2
|
+
import { usePartner as P } from "../../../composables/usePartner.js";
|
|
3
|
+
import { useEditorStore as A } from "../../../stores/editor.js";
|
|
10
4
|
import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
|
|
11
|
-
import { usePreviewStore as
|
|
12
|
-
const
|
|
5
|
+
import { usePreviewStore as H } from "../../../stores/preview.js";
|
|
6
|
+
const B = /* @__PURE__ */ h({
|
|
13
7
|
__name: "OnboardingWrapper",
|
|
14
8
|
emits: ["onboarding-finished"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{ type: "
|
|
20
|
-
{ type: "
|
|
21
|
-
{ type: "
|
|
22
|
-
{ type: "
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
setup(M, { emit: y }) {
|
|
10
|
+
const a = i(() => import("./AMPOnboarding.vue.js")), p = i(() => import("./GenericOnboarding.vue.js")), d = i(() => import("./ItemsOnboarding.vue.js")), c = i(() => import("./NewVersionPopup.vue.js")), m = i(() => import("./TextBlockOnboarding.vue.js")), g = i(
|
|
11
|
+
() => import("./VersionHistoryOnboarding.vue.js")
|
|
12
|
+
), o = _(), r = A(), b = H(), { isTestPartner: O } = P(), f = e(() => r.isStripoInitialized), u = e(() => O()), v = [
|
|
13
|
+
{ type: "newVersionPopup", component: c },
|
|
14
|
+
{ type: "genericOnboarding", component: p },
|
|
15
|
+
{ type: "textBlockOnboarding", component: m },
|
|
16
|
+
{ type: "versionHistoryOnboarding", component: g },
|
|
17
|
+
{ type: "ampOnboarding", component: a },
|
|
18
|
+
{ type: "itemsOnboarding", component: d }
|
|
19
|
+
], l = (n) => u.value || !f.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), S = e(() => v.filter((n) => l(n.type)));
|
|
20
|
+
return w(async () => {
|
|
25
21
|
await o.fetchUserModalState();
|
|
26
|
-
}),
|
|
22
|
+
}), s(
|
|
27
23
|
() => r.isVersionHistoryOpen,
|
|
28
|
-
(n,
|
|
29
|
-
n && !
|
|
24
|
+
(n, t) => {
|
|
25
|
+
n && !t && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && t && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
|
|
30
26
|
}
|
|
31
|
-
),
|
|
32
|
-
() =>
|
|
33
|
-
(n,
|
|
34
|
-
|
|
27
|
+
), s(
|
|
28
|
+
() => b.emailFormat,
|
|
29
|
+
(n, t) => {
|
|
30
|
+
t !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
|
|
35
31
|
}
|
|
36
|
-
),
|
|
32
|
+
), s(
|
|
37
33
|
() => r.isPreviewModeOpen,
|
|
38
34
|
(n) => {
|
|
39
35
|
!n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
|
|
40
36
|
}
|
|
41
|
-
), { __sfc: !0, emit:
|
|
37
|
+
), { __sfc: !0, AMPOnboarding: a, GenericOnboarding: p, ItemsOnboarding: d, NewVersionPopup: c, TextBlockOnboarding: m, VersionHistoryOnboarding: g, emit: y, onboardingStore: o, editorStore: r, previewStore: b, isTestPartner: O, isStripoReady: f, isTestPartnerActive: u, onboardingConfigs: v, shouldShow: l, visibleOnboardings: S };
|
|
42
38
|
}
|
|
43
39
|
});
|
|
44
40
|
export {
|
|
45
|
-
|
|
41
|
+
B as default
|
|
46
42
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./TextBlockOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
return o.isVisible ? c(o.InOnboard, { key: "guido__text-block-onboard", staticClass: "w-21-s p-a z-11", class: (e = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__text-block-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : r.left, "pages-config": o.onboardingStore.onboardings.textBlockOnboarding.config, "pointer-position": (i = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getTextBlockCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(u) {
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var i = function() {
|
|
5
|
+
var t = this, e = t._self._c, o = t._self._setupProxy;
|
|
6
|
+
return o.isVisible ? e(o.InOnboard, { key: "guido__text-block-onboard", staticClass: "w-21-s p-a z-11", class: o.onboardingStore.getTextBlockCurrentCard?.classes, attrs: { id: "guido__text-block-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": o.onboardingStore.getTextBlockCurrentCard?.bottom, "left-position": o.onboardingStore.getTextBlockCurrentCard?.left, "pages-config": o.onboardingStore.onboardings.textBlockOnboarding.config, "pointer-position": o.onboardingStore.getTextBlockCurrentCard?.position, "right-position": o.onboardingStore.getTextBlockCurrentCard?.right, "top-position": o.onboardingStore.getTextBlockCurrentCard?.top }, on: { backButtonClick: o.handleBack, close: function(l) {
|
|
8
7
|
return o.onboardingStore.close("textBlockOnboarding");
|
|
9
8
|
}, nextButtonClick: o.handleNext } }) : t._e();
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
}, a = [], s = /* @__PURE__ */ r(
|
|
10
|
+
n,
|
|
11
|
+
i,
|
|
12
|
+
a,
|
|
14
13
|
!1,
|
|
15
14
|
null,
|
|
16
15
|
"d073b1dc"
|
|
17
16
|
);
|
|
18
|
-
const
|
|
17
|
+
const p = s.exports;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
p as default
|
|
21
20
|
};
|
|
@@ -1,72 +1,70 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
1
|
+
import { defineComponent as u, computed as e, watch as b } from "vue";
|
|
2
2
|
import { useTranslations as m } from "../../../composables/useTranslations.js";
|
|
3
3
|
import { useOnboardingStore as k } from "../../../stores/onboarding.js";
|
|
4
4
|
import { InOnboard as B } from "@useinsider/design-system-vue";
|
|
5
5
|
const y = /* @__PURE__ */ u({
|
|
6
6
|
__name: "TextBlockOnboarding",
|
|
7
7
|
setup(h) {
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const o = m(), t = k(), n = e(() => {
|
|
9
|
+
const i = window.innerHeight - 128, r = Math.max(90, i * 0.15), s = Math.max(490, i * 0.71), d = 200, g = 40;
|
|
10
10
|
return {
|
|
11
11
|
settings: {
|
|
12
12
|
top: `${r}px`,
|
|
13
|
-
position: r + d + g >
|
|
13
|
+
position: r + d + g > i ? "Right Bottom" : "Right Top"
|
|
14
14
|
},
|
|
15
15
|
dynamic: {
|
|
16
16
|
top: `${s}px`,
|
|
17
|
-
position: s + d + g >
|
|
17
|
+
position: s + d + g > i ? "Right Bottom" : "Right Top"
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
}),
|
|
20
|
+
}), a = e(() => [
|
|
21
21
|
{
|
|
22
22
|
classes: "guido-text-block-onboarding-settings",
|
|
23
23
|
right: "426px",
|
|
24
|
-
top:
|
|
25
|
-
position:
|
|
26
|
-
title:
|
|
27
|
-
description:
|
|
24
|
+
top: n.value.settings.top,
|
|
25
|
+
position: n.value.settings.position,
|
|
26
|
+
title: o("email-editor.onboarding-text-block-title"),
|
|
27
|
+
description: o("email-editor.onboarding-text-block-description"),
|
|
28
28
|
imageSource: "",
|
|
29
29
|
backButtonClick: () => {
|
|
30
30
|
},
|
|
31
31
|
nextButtonType: "text",
|
|
32
|
-
nextButtonText:
|
|
32
|
+
nextButtonText: o("products.next"),
|
|
33
33
|
nextButtonClick: () => {
|
|
34
|
-
|
|
34
|
+
t.next("textBlockOnboarding");
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
classes: "guido-text-block-onboarding-dynamic",
|
|
39
39
|
right: "426px",
|
|
40
|
-
top:
|
|
41
|
-
position:
|
|
42
|
-
title:
|
|
43
|
-
description:
|
|
40
|
+
top: n.value.dynamic.top,
|
|
41
|
+
position: n.value.dynamic.position,
|
|
42
|
+
title: o("email-editor.onboarding-dynamic-content-title"),
|
|
43
|
+
description: o("email-editor.onboarding-dynamic-content-description"),
|
|
44
44
|
imageSource: "",
|
|
45
45
|
backButtonType: "text",
|
|
46
|
-
backButtonText:
|
|
46
|
+
backButtonText: o("ds-steps.back"),
|
|
47
47
|
backButtonClick: () => {
|
|
48
|
-
|
|
48
|
+
t.previous("textBlockOnboarding");
|
|
49
49
|
},
|
|
50
50
|
nextButtonType: "text",
|
|
51
|
-
nextButtonText:
|
|
51
|
+
nextButtonText: o("action-builder.ok"),
|
|
52
52
|
nextButtonClick: () => {
|
|
53
|
-
|
|
53
|
+
t.close("textBlockOnboarding");
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
]), l =
|
|
57
|
-
|
|
58
|
-
(n = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
|
|
56
|
+
]), l = e(() => t.onboardings.textBlockOnboarding.config.length > 0 && t.onboardings.textBlockOnboarding.isActive), p = () => {
|
|
57
|
+
t.getTextBlockCurrentCard?.nextButtonClick?.();
|
|
59
58
|
}, x = () => {
|
|
60
|
-
|
|
61
|
-
(n = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
59
|
+
t.getTextBlockCurrentCard?.backButtonClick?.();
|
|
62
60
|
};
|
|
63
61
|
return b(
|
|
64
|
-
() =>
|
|
65
|
-
(
|
|
66
|
-
|
|
62
|
+
() => t.isActive("textBlockOnboarding"),
|
|
63
|
+
(c) => {
|
|
64
|
+
c && t.setConfig("textBlockOnboarding", a.value);
|
|
67
65
|
},
|
|
68
66
|
{ immediate: !0 }
|
|
69
|
-
), { __sfc: !0, trans:
|
|
67
|
+
), { __sfc: !0, trans: o, onboardingStore: t, dynamicPosition: n, onboardingCardsConfig: a, isVisible: l, handleNext: p, handleBack: x, InOnboard: B };
|
|
70
68
|
}
|
|
71
69
|
});
|
|
72
70
|
export {
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
return o.isVisible ? d(o.InOnboard, { key: "guido__version-history-onboard", staticClass: "w-21-s p-a z-11", class: (n = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : n.classes, attrs: { id: "guido__version-history-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (t = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : t.bottom, "left-position": (i = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : i.left, "pages-config": o.onboardingStore.onboardings.versionHistoryOnboarding.config, "pointer-position": (e = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : e.position, "right-position": (s = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : s.right, "top-position": (a = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: o.handleBack, close: function(b) {
|
|
1
|
+
import t from "./VersionHistoryOnboarding.vue2.js";
|
|
2
|
+
import i from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var e = function() {
|
|
4
|
+
var r = this, n = r._self._c, o = r._self._setupProxy;
|
|
5
|
+
return o.isVisible ? n(o.InOnboard, { key: "guido__version-history-onboard", staticClass: "w-21-s p-a z-11", class: o.onboardingStore.getVersionHistoryCurrentCard?.classes, attrs: { id: "guido__version-history-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": o.onboardingStore.getVersionHistoryCurrentCard?.bottom, "left-position": o.onboardingStore.getVersionHistoryCurrentCard?.left, "pages-config": o.onboardingStore.onboardings.versionHistoryOnboarding.config, "pointer-position": o.onboardingStore.getVersionHistoryCurrentCard?.position, "right-position": o.onboardingStore.getVersionHistoryCurrentCard?.right, "top-position": o.onboardingStore.getVersionHistoryCurrentCard?.top }, on: { backButtonClick: o.handleBack, close: function(g) {
|
|
7
6
|
return o.onboardingStore.close("versionHistoryOnboarding");
|
|
8
7
|
}, nextButtonClick: o.handleNext } }) : r._e();
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
}, s = [], a = /* @__PURE__ */ i(
|
|
9
|
+
t,
|
|
10
|
+
e,
|
|
11
|
+
s,
|
|
13
12
|
!1,
|
|
14
13
|
null,
|
|
15
14
|
null
|
|
16
15
|
);
|
|
17
|
-
const
|
|
16
|
+
const _ = a.exports;
|
|
18
17
|
export {
|
|
19
|
-
|
|
18
|
+
_ as default
|
|
20
19
|
};
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { useOnboardingStore as
|
|
4
|
-
import { InOnboard as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as t, watch as c } from "vue";
|
|
2
|
+
import { useTranslations as g } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { useOnboardingStore as b } from "../../../stores/onboarding.js";
|
|
4
|
+
import { InOnboard as u } from "@useinsider/design-system-vue";
|
|
5
|
+
const y = /* @__PURE__ */ d({
|
|
6
6
|
__name: "VersionHistoryOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
7
|
+
setup(l) {
|
|
8
|
+
const n = g(), o = b(), i = t(() => [
|
|
9
9
|
{
|
|
10
10
|
classes: "guido-version-history-onboarding",
|
|
11
11
|
left: "409px",
|
|
12
12
|
top: "192px",
|
|
13
13
|
position: "Left Top",
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
14
|
+
title: n("email-editor.onboarding-version-history-title"),
|
|
15
|
+
description: n("email-editor.onboarding-version-history-description"),
|
|
16
16
|
imageSource: "",
|
|
17
17
|
backButtonClick: () => {
|
|
18
18
|
},
|
|
19
19
|
nextButtonType: "text",
|
|
20
|
-
nextButtonText:
|
|
21
|
-
nextButtonClick: () => void
|
|
20
|
+
nextButtonText: n("action-builder.ok"),
|
|
21
|
+
nextButtonClick: () => void o.close("versionHistoryOnboarding")
|
|
22
22
|
}
|
|
23
|
-
]),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var o, i;
|
|
28
|
-
(i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.backButtonClick) == null || i.call(o);
|
|
23
|
+
]), r = t(() => o.onboardings.versionHistoryOnboarding.config.length > 0 && o.onboardings.versionHistoryOnboarding.isActive), e = () => {
|
|
24
|
+
o.getVersionHistoryCurrentCard?.nextButtonClick?.();
|
|
25
|
+
}, s = () => {
|
|
26
|
+
o.getVersionHistoryCurrentCard?.backButtonClick?.();
|
|
29
27
|
};
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
}, { immediate: !0 }), { __sfc: !0, trans:
|
|
28
|
+
return c(() => o.onboardings.versionHistoryOnboarding.isActive, (a) => {
|
|
29
|
+
a && o.setConfig("versionHistoryOnboarding", i.value);
|
|
30
|
+
}, { immediate: !0 }), { __sfc: !0, trans: n, onboardingStore: o, onboardingCardsConfig: i, isVisible: r, handleNext: e, handleBack: s, InOnboard: u };
|
|
33
31
|
}
|
|
34
32
|
});
|
|
35
33
|
export {
|
|
36
|
-
|
|
34
|
+
y as default
|
|
37
35
|
};
|
|
@@ -10,7 +10,7 @@ import { useDebounceFn as V } from "../../../node_modules/@vueuse/shared/index.j
|
|
|
10
10
|
const H = /* @__PURE__ */ A({
|
|
11
11
|
__name: "SaveAsTemplateDrawer",
|
|
12
12
|
setup(E) {
|
|
13
|
-
const o = O(), n = D(), t = k(), { createTemplate:
|
|
13
|
+
const o = O(), n = D(), t = k(), { createTemplate: u } = B(), a = c(!1), r = c(!1), l = c(""), f = b(() => ({
|
|
14
14
|
primaryButton: {
|
|
15
15
|
styling: "solid",
|
|
16
16
|
type: "primary",
|
|
@@ -24,7 +24,7 @@ const H = /* @__PURE__ */ A({
|
|
|
24
24
|
labelText: o("products.cancel"),
|
|
25
25
|
disabledStatus: a.value
|
|
26
26
|
}
|
|
27
|
-
})),
|
|
27
|
+
})), p = () => {
|
|
28
28
|
l.value = "", n.isSaveAsTemplateDrawerOpen = !1;
|
|
29
29
|
}, i = async () => {
|
|
30
30
|
const e = h(t, "templateName"), { success: s, errorMessage: _ } = await x(e).validate();
|
|
@@ -44,19 +44,18 @@ const H = /* @__PURE__ */ A({
|
|
|
44
44
|
a.value = !1;
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
const s = await
|
|
48
|
-
a.value = !1, s &&
|
|
49
|
-
},
|
|
47
|
+
const s = await u();
|
|
48
|
+
a.value = !1, s && p();
|
|
49
|
+
}, m = () => {
|
|
50
50
|
C(() => {
|
|
51
|
-
|
|
52
|
-
e == null || e.focus();
|
|
51
|
+
document.querySelector("input#guido__template-name-input")?.focus();
|
|
53
52
|
});
|
|
54
53
|
}, d = async () => {
|
|
55
|
-
t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1,
|
|
54
|
+
t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1, m();
|
|
56
55
|
};
|
|
57
56
|
return n.$subscribe((e, { isSaveAsTemplateDrawerOpen: s }) => {
|
|
58
57
|
s && d();
|
|
59
|
-
}), { __sfc: !0, trans: o, editorStore: n, saveAsTemplateStore: t, createTemplate:
|
|
58
|
+
}), { __sfc: !0, trans: o, editorStore: n, saveAsTemplateStore: t, createTemplate: u, isSaving: a, isAddingOption: r, templateNameError: l, footerButtonGroupOptions: f, closeModal: p, validateTemplateName: i, handleTemplateName: v, handleAddOption: g, handleCategoryChange: y, handleSelectAllOptions: S, handleResetAllOptions: T, saveTemplate: w, focusToInput: m, initializeDrawer: d, WpDrawer: N, InBasicTextInput: M, InMultiSelect: I };
|
|
60
59
|
}
|
|
61
60
|
});
|
|
62
61
|
export {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var s, t;
|
|
1
|
+
import s from "./UnsubscribeWrapper.vue2.js";
|
|
2
|
+
import t from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var _ = function() {
|
|
5
4
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
6
|
-
return
|
|
7
|
-
},
|
|
5
|
+
return n.config?.features?.unsubscribe ? r("div", [r(n.UnsubscribeTypeSelection), r(n.UnsubscribePageSelection)], 1) : e._e();
|
|
6
|
+
}, o = [], c = /* @__PURE__ */ t(
|
|
7
|
+
s,
|
|
8
8
|
_,
|
|
9
|
-
|
|
10
|
-
i,
|
|
9
|
+
o,
|
|
11
10
|
!1,
|
|
12
11
|
null,
|
|
13
12
|
null
|
|
14
13
|
);
|
|
15
|
-
const
|
|
14
|
+
const f = c.exports;
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
f as default
|
|
18
17
|
};
|