@useinsider/guido 3.2.0-beta.78d83bd → 3.2.0-beta.7e0c6bd
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 +49 -31
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +12 -13
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +36 -38
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +12 -13
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +47 -51
- 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 +12 -13
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +33 -46
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +20 -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 +8 -9
- 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/useRibbonOffset.js +21 -0
- package/dist/composables/useSave.js +21 -22
- package/dist/composables/useStripo.js +53 -50
- 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/unsubscribeCompilerRules.js +17 -19
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +10 -11
- 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 +106 -109
- package/dist/config/migrator/unsubscribeMigrator.js +10 -11
- package/dist/enums/onboarding.js +7 -2
- package/dist/enums/unsubscribe.js +18 -19
- 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 +9 -14
- package/dist/extensions/Blocks/Items/template.js +218 -216
- 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 +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +10 -10
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +17 -18
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +4 -6
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +82 -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 +10 -10
- 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/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 +8 -16
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +55 -56
- 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 +1 -1
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +45 -47
- package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +13 -16
- 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 +233 -210
- 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/useHtmlCompiler.d.ts +1 -2
- package/dist/src/composables/useRibbonOffset.d.ts +4 -0
- package/dist/src/composables/useTranslations.d.ts +1 -1
- package/dist/src/enums/onboarding.d.ts +6 -0
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/src/stores/onboarding.d.ts +4 -0
- package/dist/stores/config.js +25 -81
- package/dist/stores/dynamic-content.js +6 -11
- package/dist/stores/onboarding.js +5 -1
- 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
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./ItemsOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
return t.isVisible ? d(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : r.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": (i = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : i.position, "right-position": (s = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : s.right, "top-position": (a = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(b) {
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var i = function() {
|
|
5
|
+
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return t.isVisible ? e(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: t.onboardingStore.getItemsCurrentCard?.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": t.onboardingStore.getItemsCurrentCard?.bottom, "left-position": t.onboardingStore.getItemsCurrentCard?.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": t.onboardingStore.getItemsCurrentCard?.position, "right-position": t.onboardingStore.getItemsCurrentCard?.right, "top-position": t.onboardingStore.getItemsCurrentCard?.top }, on: { backButtonClick: t.handleBack, close: function(g) {
|
|
8
7
|
return t.onboardingStore.close("itemsOnboarding");
|
|
9
8
|
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
}, s = [], a = /* @__PURE__ */ r(
|
|
10
|
+
n,
|
|
11
|
+
i,
|
|
12
|
+
s,
|
|
14
13
|
!1,
|
|
15
14
|
null,
|
|
16
|
-
"
|
|
15
|
+
"796d193b"
|
|
17
16
|
);
|
|
18
|
-
const
|
|
17
|
+
const p = a.exports;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
p as default
|
|
21
20
|
};
|
|
@@ -1,97 +1,93 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, computed as d, watch as m } from "vue";
|
|
2
|
+
import { useRibbonOffset as l } from "../../../composables/useRibbonOffset.js";
|
|
2
3
|
import { useTranslations as x } from "../../../composables/useTranslations.js";
|
|
3
|
-
import {
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import { InOnboard as
|
|
6
|
-
const E = /* @__PURE__ */
|
|
4
|
+
import { UI_EDITOR_SELECTOR as T, CARD_COMPOSITION_TAB_SELECTOR as O, SETTINGS_TAB_SELECTOR as f } from "../../../enums/onboarding.js";
|
|
5
|
+
import { useOnboardingStore as k } from "../../../stores/onboarding.js";
|
|
6
|
+
import { InOnboard as B } from "@useinsider/design-system-vue";
|
|
7
|
+
const E = /* @__PURE__ */ b({
|
|
7
8
|
__name: "ItemsOnboarding",
|
|
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
|
+
setup(C) {
|
|
10
|
+
const o = x(), t = k(), { getTopPosition: e } = l(), s = (i) => {
|
|
11
|
+
const n = document.querySelector(T);
|
|
12
|
+
if (!n?.shadowRoot)
|
|
15
13
|
return;
|
|
16
|
-
const { shadowRoot:
|
|
17
|
-
|
|
18
|
-
},
|
|
14
|
+
const { shadowRoot: r } = n, c = r.querySelector(i);
|
|
15
|
+
c && c.click();
|
|
16
|
+
}, a = d(() => [
|
|
19
17
|
{
|
|
20
18
|
classes: "guido-items-onboarding-card-1",
|
|
21
19
|
right: "426px",
|
|
22
|
-
top:
|
|
20
|
+
top: e(90),
|
|
23
21
|
position: "Right Top",
|
|
24
|
-
title:
|
|
25
|
-
description:
|
|
22
|
+
title: o("email-editor.onboarding-items-title"),
|
|
23
|
+
description: o("email-editor.onboarding-items-description"),
|
|
26
24
|
imageSource: "",
|
|
27
25
|
backButtonClick: () => {
|
|
28
26
|
},
|
|
29
27
|
nextButtonType: "text",
|
|
30
|
-
nextButtonText:
|
|
28
|
+
nextButtonText: o("products.next"),
|
|
31
29
|
nextButtonClick: () => {
|
|
32
|
-
|
|
30
|
+
t.next("itemsOnboarding");
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
33
|
{
|
|
36
34
|
classes: "guido-items-onboarding-card-2",
|
|
37
35
|
right: "426px",
|
|
38
|
-
top:
|
|
36
|
+
top: e(218),
|
|
39
37
|
position: "Right Top",
|
|
40
|
-
title:
|
|
41
|
-
description:
|
|
38
|
+
title: o("email-editor.onboarding-items-item-type-title"),
|
|
39
|
+
description: o("email-editor.onboarding-items-item-type-description"),
|
|
42
40
|
imageSource: "",
|
|
43
41
|
backButtonType: "text",
|
|
44
|
-
backButtonText:
|
|
42
|
+
backButtonText: o("ds-steps.back"),
|
|
45
43
|
backButtonClick: () => {
|
|
46
|
-
|
|
44
|
+
t.previous("itemsOnboarding");
|
|
47
45
|
},
|
|
48
46
|
nextButtonType: "text",
|
|
49
|
-
nextButtonText:
|
|
47
|
+
nextButtonText: o("products.next"),
|
|
50
48
|
nextButtonClick: () => {
|
|
51
|
-
|
|
49
|
+
t.next("itemsOnboarding");
|
|
52
50
|
}
|
|
53
51
|
},
|
|
54
52
|
{
|
|
55
53
|
classes: "guido-items-onboarding-card-3",
|
|
56
54
|
right: "426px",
|
|
57
|
-
top:
|
|
55
|
+
top: e(140),
|
|
58
56
|
position: "Right Top",
|
|
59
|
-
title:
|
|
60
|
-
description:
|
|
57
|
+
title: o("email-editor.onboarding-items-composition-title"),
|
|
58
|
+
description: o("email-editor.onboarding-items-composition-description"),
|
|
61
59
|
imageSource: "",
|
|
62
60
|
backButtonType: "text",
|
|
63
|
-
backButtonText:
|
|
61
|
+
backButtonText: o("ds-steps.back"),
|
|
64
62
|
backButtonClick: () => {
|
|
65
|
-
|
|
63
|
+
t.previous("itemsOnboarding");
|
|
66
64
|
},
|
|
67
65
|
nextButtonType: "text",
|
|
68
|
-
nextButtonText:
|
|
66
|
+
nextButtonText: o("action-builder.ok"),
|
|
69
67
|
nextButtonClick: () => {
|
|
70
|
-
|
|
68
|
+
t.close("itemsOnboarding");
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
|
-
]),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
var t, i;
|
|
78
|
-
(i = (t = o.getItemsCurrentCard) == null ? void 0 : t.backButtonClick) == null || i.call(t);
|
|
71
|
+
]), u = d(() => t.onboardings.itemsOnboarding.config.length > 0 && t.onboardings.itemsOnboarding.isActive), g = () => {
|
|
72
|
+
t.getItemsCurrentCard?.nextButtonClick?.();
|
|
73
|
+
}, p = () => {
|
|
74
|
+
t.getItemsCurrentCard?.backButtonClick?.();
|
|
79
75
|
};
|
|
80
|
-
return
|
|
81
|
-
() =>
|
|
82
|
-
(
|
|
83
|
-
|
|
76
|
+
return m(
|
|
77
|
+
() => t.isActive("itemsOnboarding"),
|
|
78
|
+
(i) => {
|
|
79
|
+
i && t.setConfig("itemsOnboarding", a.value);
|
|
84
80
|
},
|
|
85
81
|
{ immediate: !0 }
|
|
86
|
-
),
|
|
87
|
-
() =>
|
|
88
|
-
(
|
|
89
|
-
if (!
|
|
82
|
+
), m(
|
|
83
|
+
() => t.onboardings.itemsOnboarding.cardIndex,
|
|
84
|
+
(i, n) => {
|
|
85
|
+
if (!t.isActive("itemsOnboarding"))
|
|
90
86
|
return;
|
|
91
|
-
const
|
|
92
|
-
|
|
87
|
+
const r = `${n}-${i}`;
|
|
88
|
+
r === "1-2" && s(O), r === "2-1" && s(f);
|
|
93
89
|
}
|
|
94
|
-
), { __sfc: !0, trans:
|
|
90
|
+
), { __sfc: !0, trans: o, onboardingStore: t, getTopPosition: e, switchTab: s, onboardingCardsConfig: a, isVisible: u, handleNext: g, handleBack: p, InOnboard: B };
|
|
95
91
|
}
|
|
96
92
|
});
|
|
97
93
|
export {
|
|
@@ -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
|
+
"cadfc82d"
|
|
17
16
|
);
|
|
18
|
-
const
|
|
17
|
+
const p = s.exports;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
p as default
|
|
21
20
|
};
|
|
@@ -1,74 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as d, computed as i, watch as l } from "vue";
|
|
2
|
+
import { useRibbonOffset as g } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as b } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useOnboardingStore as x } from "../../../stores/onboarding.js";
|
|
5
|
+
import { InOnboard as u } from "@useinsider/design-system-vue";
|
|
6
|
+
const T = /* @__PURE__ */ d({
|
|
6
7
|
__name: "TextBlockOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
const n = window.innerHeight - 128, r = Math.max(90, n * 0.15), s = Math.max(490, n * 0.71), d = 200, g = 40;
|
|
10
|
-
return {
|
|
11
|
-
settings: {
|
|
12
|
-
top: `${r}px`,
|
|
13
|
-
position: r + d + g > n ? "Right Bottom" : "Right Top"
|
|
14
|
-
},
|
|
15
|
-
dynamic: {
|
|
16
|
-
top: `${s}px`,
|
|
17
|
-
position: s + d + g > n ? "Right Bottom" : "Right Top"
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}), c = a(() => [
|
|
8
|
+
setup(p) {
|
|
9
|
+
const o = b(), t = x(), { getTopPosition: n } = g(), e = i(() => [
|
|
21
10
|
{
|
|
22
11
|
classes: "guido-text-block-onboarding-settings",
|
|
23
12
|
right: "426px",
|
|
24
|
-
top:
|
|
25
|
-
position:
|
|
26
|
-
title:
|
|
27
|
-
description:
|
|
13
|
+
top: n(90),
|
|
14
|
+
position: "Right Top",
|
|
15
|
+
title: o("email-editor.onboarding-text-block-title"),
|
|
16
|
+
description: o("email-editor.onboarding-text-block-description"),
|
|
28
17
|
imageSource: "",
|
|
29
18
|
backButtonClick: () => {
|
|
30
19
|
},
|
|
31
20
|
nextButtonType: "text",
|
|
32
|
-
nextButtonText:
|
|
21
|
+
nextButtonText: o("products.next"),
|
|
33
22
|
nextButtonClick: () => {
|
|
34
|
-
|
|
23
|
+
t.next("textBlockOnboarding");
|
|
35
24
|
}
|
|
36
25
|
},
|
|
37
26
|
{
|
|
38
27
|
classes: "guido-text-block-onboarding-dynamic",
|
|
39
|
-
right: "
|
|
40
|
-
top:
|
|
41
|
-
position:
|
|
42
|
-
title:
|
|
43
|
-
description:
|
|
28
|
+
right: "409px",
|
|
29
|
+
top: n(607),
|
|
30
|
+
position: "Right Top",
|
|
31
|
+
title: o("email-editor.onboarding-dynamic-content-title"),
|
|
32
|
+
description: o("email-editor.onboarding-dynamic-content-description"),
|
|
44
33
|
imageSource: "",
|
|
45
34
|
backButtonType: "text",
|
|
46
|
-
backButtonText:
|
|
35
|
+
backButtonText: o("ds-steps.back"),
|
|
47
36
|
backButtonClick: () => {
|
|
48
|
-
|
|
37
|
+
t.previous("textBlockOnboarding");
|
|
49
38
|
},
|
|
50
39
|
nextButtonType: "text",
|
|
51
|
-
nextButtonText:
|
|
40
|
+
nextButtonText: o("action-builder.ok"),
|
|
52
41
|
nextButtonClick: () => {
|
|
53
|
-
|
|
42
|
+
t.close("textBlockOnboarding");
|
|
54
43
|
}
|
|
55
44
|
}
|
|
56
|
-
]),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var t, n;
|
|
61
|
-
(n = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
45
|
+
]), r = i(() => t.onboardings.textBlockOnboarding.config.length > 0 && t.onboardings.textBlockOnboarding.isActive), c = () => {
|
|
46
|
+
t.getTextBlockCurrentCard?.nextButtonClick?.();
|
|
47
|
+
}, a = () => {
|
|
48
|
+
t.getTextBlockCurrentCard?.backButtonClick?.();
|
|
62
49
|
};
|
|
63
|
-
return
|
|
64
|
-
() =>
|
|
65
|
-
(
|
|
66
|
-
|
|
50
|
+
return l(
|
|
51
|
+
() => t.isActive("textBlockOnboarding"),
|
|
52
|
+
(s) => {
|
|
53
|
+
s && t.setConfig("textBlockOnboarding", e.value);
|
|
67
54
|
},
|
|
68
55
|
{ immediate: !0 }
|
|
69
|
-
), { __sfc: !0, trans:
|
|
56
|
+
), { __sfc: !0, trans: o, onboardingStore: t, getTopPosition: n, onboardingCardsConfig: e, isVisible: r, handleNext: c, handleBack: a, InOnboard: u };
|
|
70
57
|
}
|
|
71
58
|
});
|
|
72
59
|
export {
|
|
73
|
-
|
|
60
|
+
T as default
|
|
74
61
|
};
|
|
@@ -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,36 @@
|
|
|
1
|
-
import { defineComponent as c, computed as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as c, computed as r, watch as g } from "vue";
|
|
2
|
+
import { useRibbonOffset as b } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as u } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useOnboardingStore as l } from "../../../stores/onboarding.js";
|
|
5
|
+
import { InOnboard as m } from "@useinsider/design-system-vue";
|
|
6
|
+
const O = /* @__PURE__ */ c({
|
|
6
7
|
__name: "VersionHistoryOnboarding",
|
|
7
8
|
setup(p) {
|
|
8
|
-
const
|
|
9
|
+
const n = u(), o = l(), { getTopPosition: i } = b(), t = r(() => [
|
|
9
10
|
{
|
|
10
11
|
classes: "guido-version-history-onboarding",
|
|
11
12
|
left: "409px",
|
|
12
|
-
top:
|
|
13
|
+
top: i(192),
|
|
13
14
|
position: "Left Top",
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
15
|
+
title: n("email-editor.onboarding-version-history-title"),
|
|
16
|
+
description: n("email-editor.onboarding-version-history-description"),
|
|
16
17
|
imageSource: "",
|
|
17
18
|
backButtonClick: () => {
|
|
18
19
|
},
|
|
19
20
|
nextButtonType: "text",
|
|
20
|
-
nextButtonText:
|
|
21
|
-
nextButtonClick: () => void
|
|
21
|
+
nextButtonText: n("action-builder.ok"),
|
|
22
|
+
nextButtonClick: () => void o.close("versionHistoryOnboarding")
|
|
22
23
|
}
|
|
23
|
-
]),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var o, i;
|
|
28
|
-
(i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.backButtonClick) == null || i.call(o);
|
|
24
|
+
]), e = r(() => o.onboardings.versionHistoryOnboarding.config.length > 0 && o.onboardings.versionHistoryOnboarding.isActive), s = () => {
|
|
25
|
+
o.getVersionHistoryCurrentCard?.nextButtonClick?.();
|
|
26
|
+
}, a = () => {
|
|
27
|
+
o.getVersionHistoryCurrentCard?.backButtonClick?.();
|
|
29
28
|
};
|
|
30
|
-
return g(() =>
|
|
31
|
-
|
|
32
|
-
}, { immediate: !0 }), { __sfc: !0, trans:
|
|
29
|
+
return g(() => o.onboardings.versionHistoryOnboarding.isActive, (d) => {
|
|
30
|
+
d && o.setConfig("versionHistoryOnboarding", t.value);
|
|
31
|
+
}, { immediate: !0 }), { __sfc: !0, trans: n, onboardingStore: o, getTopPosition: i, onboardingCardsConfig: t, isVisible: e, handleNext: s, handleBack: a, InOnboard: m };
|
|
33
32
|
}
|
|
34
33
|
});
|
|
35
34
|
export {
|
|
36
|
-
|
|
35
|
+
O as default
|
|
37
36
|
};
|
|
@@ -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 {
|