@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as
|
|
1
|
+
import { defineComponent as v, computed as o, ref as O, watch as f } from "vue";
|
|
2
2
|
import { useTranslations as g } from "../../../../composables/useTranslations.js";
|
|
3
3
|
import { useRecommendationExtensionStore as R } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
4
4
|
import { getTooltipOptions as T } from "../../../../utils/tooltipUtils.js";
|
|
@@ -12,11 +12,11 @@ const V = /* @__PURE__ */ v({
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["reset-validation"],
|
|
14
14
|
setup(x, { expose: u, emit: s }) {
|
|
15
|
-
const p = g(), t = R(),
|
|
15
|
+
const p = g(), t = R(), n = o(() => t.getUniqueFilterGroups.map((e) => ({
|
|
16
16
|
text: e.toString(),
|
|
17
17
|
value: e
|
|
18
18
|
}))), r = O(1);
|
|
19
|
-
f(
|
|
19
|
+
f(n, (e) => {
|
|
20
20
|
if (!e.length)
|
|
21
21
|
return;
|
|
22
22
|
e.some((h) => h.value === r.value) || (r.value = e[0].value);
|
|
@@ -27,27 +27,24 @@ const V = /* @__PURE__ */ v({
|
|
|
27
27
|
u({ switchToGroup: i });
|
|
28
28
|
const c = () => {
|
|
29
29
|
s("reset-validation");
|
|
30
|
-
const e = t.getUniqueFilterGroups,
|
|
31
|
-
t.addFilterGroup(
|
|
32
|
-
}, d =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return { __sfc: !0, MAX_FILTER_GROUP_COUNT: 3, MAX_FILTER_PER_GROUP_COUNT: 10, trans: p, store: t, emit: s, filterGroupList: a, selectedFilterGroup: r, switchToGroup: i, handleAddFilterGroup: c, isMaxFilterGroupCount: d, selectedFilterGroupFilters: n, isMaxFilterPerGroupCount: F, hasLogicAdapter: _, hasRemoveFilterButton: G, outerGroupOperator: m, handleOuterGroupOperatorChange: (e) => {
|
|
37
|
-
n.value.forEach((o) => {
|
|
38
|
-
t.updateFilter({ ...o, outerGroupOperator: e });
|
|
30
|
+
const e = t.getUniqueFilterGroups, a = e.length > 0 ? Math.max(...e) + 1 : 1;
|
|
31
|
+
t.addFilterGroup(a), r.value = a;
|
|
32
|
+
}, d = o(() => n.value.length >= 3), l = o(() => t.getSelectedFilterGroup(r.value)), F = o(() => l.value.length >= 10), _ = o(() => l.value.length > 1), G = o(() => n.value.length > 1), m = o(() => l.value[0]?.outerGroupOperator || "*");
|
|
33
|
+
return { __sfc: !0, MAX_FILTER_GROUP_COUNT: 3, MAX_FILTER_PER_GROUP_COUNT: 10, trans: p, store: t, emit: s, filterGroupList: n, selectedFilterGroup: r, switchToGroup: i, handleAddFilterGroup: c, isMaxFilterGroupCount: d, selectedFilterGroupFilters: l, isMaxFilterPerGroupCount: F, hasLogicAdapter: _, hasRemoveFilterButton: G, outerGroupOperator: m, handleOuterGroupOperatorChange: (e) => {
|
|
34
|
+
l.value.forEach((a) => {
|
|
35
|
+
t.updateFilter({ ...a, outerGroupOperator: e });
|
|
39
36
|
});
|
|
40
37
|
}, handleAddFilter: () => {
|
|
41
38
|
s("reset-validation"), t.addFilter(
|
|
42
39
|
t.createDefaultFilter(
|
|
43
40
|
r.value,
|
|
44
|
-
|
|
41
|
+
l.value.length + 1
|
|
45
42
|
)
|
|
46
43
|
);
|
|
47
44
|
}, handleDeleteFilter: (e) => {
|
|
48
45
|
t.deleteFilter(e);
|
|
49
46
|
}, handleDeleteFilterGroup: () => {
|
|
50
|
-
|
|
47
|
+
n.value.length <= 1 || t.deleteFilterGroup(r.value);
|
|
51
48
|
}, getTooltipOptions: T, InSegments: E, InButtonV2: U, FilterItem: A, LogicAdapter: C };
|
|
52
49
|
}
|
|
53
50
|
});
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "./EditorActions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var s, i, n, a;
|
|
3
|
+
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = function() {
|
|
6
5
|
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
7
|
-
return e("div", { staticClass: "d-f editor-actions" }, [t.isVersionHistoryButtonVisible ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }),
|
|
6
|
+
return e("div", { staticClass: "d-f editor-actions" }, [t.isVersionHistoryButtonVisible ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), t.config?.features?.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), t.config?.features?.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button", { staticPosition: "bottom right" }), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.handleTestEmail } }) : o._e(), t.editorStore.isPreviewModeOpen ? o._e() : e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(s) {
|
|
8
7
|
return t.handleSave(!1);
|
|
9
|
-
} } }), e(t.MigrationConfirmModal, { ref: "migrationModalRef", on: { confirm: function(
|
|
8
|
+
} } }), e(t.MigrationConfirmModal, { ref: "migrationModalRef", on: { confirm: function(s) {
|
|
10
9
|
return t.executeSave(!1);
|
|
11
10
|
} } })], 1);
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
}, r = [], l = /* @__PURE__ */ n(
|
|
12
|
+
i,
|
|
13
|
+
a,
|
|
14
|
+
r,
|
|
16
15
|
!1,
|
|
17
16
|
null,
|
|
18
17
|
"4e2a4adb"
|
|
19
18
|
);
|
|
20
|
-
const
|
|
19
|
+
const _ = l.exports;
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
_ as default
|
|
23
22
|
};
|
|
@@ -17,8 +17,8 @@ import K from "./MigrationConfirmModal.vue.js";
|
|
|
17
17
|
const ut = /* @__PURE__ */ O({
|
|
18
18
|
__name: "EditorActions",
|
|
19
19
|
setup(N, { expose: x }) {
|
|
20
|
-
const { config: a, isFeatureEnabled: l } = b(), { exportHtml: m } = k(), { save: u } = F(), { openVersionHistory: c, closeVersionHistory: p } = R(), { getCompiledEmail: f } = q(), { compileHtml: d } = D(), { validateLiquidSyntax: v } = z(),
|
|
21
|
-
if (
|
|
20
|
+
const { config: a, isFeatureEnabled: l } = b(), { exportHtml: m } = k(), { save: u } = F(), { openVersionHistory: c, closeVersionHistory: p } = R(), { getCompiledEmail: f } = q(), { compileHtml: d } = D(), { validateLiquidSyntax: v } = z(), t = I(), y = P(), { hasMigrations: S } = J(y), s = L(), i = n(!1), r = n(!1), g = n(), H = B(), T = () => {
|
|
21
|
+
if (t.isVersionHistoryOpen) {
|
|
22
22
|
p();
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
@@ -26,39 +26,35 @@ const ut = /* @__PURE__ */ O({
|
|
|
26
26
|
}, w = async () => {
|
|
27
27
|
i.value = !0, await m(), i.value = !1;
|
|
28
28
|
}, _ = () => {
|
|
29
|
-
|
|
30
|
-
}, C = h(() =>
|
|
31
|
-
() =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, E = (t) => {
|
|
40
|
-
var o;
|
|
41
|
-
if (!t && S.value) {
|
|
42
|
-
(o = g.value) == null || o.open();
|
|
29
|
+
t.isSaveAsTemplateDrawerOpen = !0;
|
|
30
|
+
}, C = h(() => t.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), A = h(
|
|
31
|
+
() => a.value?.features?.versionHistory && !t.isPreviewModeOpen
|
|
32
|
+
), V = async (o) => {
|
|
33
|
+
r.value = !0, t.loadingStatus = !0;
|
|
34
|
+
const e = await u(o);
|
|
35
|
+
return r.value = !1, (o || !e) && (t.loadingStatus = !1), e;
|
|
36
|
+
}, E = (o) => {
|
|
37
|
+
if (!o && S.value) {
|
|
38
|
+
g.value?.open();
|
|
43
39
|
return;
|
|
44
40
|
}
|
|
45
|
-
return V(
|
|
41
|
+
return V(o);
|
|
46
42
|
}, M = async () => {
|
|
47
43
|
if (l("liquidSyntax")) {
|
|
48
|
-
|
|
44
|
+
t.loadingStatus = !0;
|
|
49
45
|
try {
|
|
50
|
-
const { html:
|
|
51
|
-
if (!await v(
|
|
46
|
+
const { html: o } = await f({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: e } = d(o);
|
|
47
|
+
if (!await v(e))
|
|
52
48
|
return;
|
|
53
49
|
} finally {
|
|
54
|
-
|
|
50
|
+
t.loadingStatus = !1;
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
53
|
H();
|
|
58
54
|
};
|
|
59
55
|
return x({
|
|
60
56
|
handleSave: E
|
|
61
|
-
}), { __sfc: !0, config: a, isFeatureEnabled: l, exportHtml: m, save: u, openVersionHistory: c, closeVersionHistory: p, getCompiledEmail: f, compileHtml: d, validateLiquidSyntax: v, editorStore:
|
|
57
|
+
}), { __sfc: !0, config: a, isFeatureEnabled: l, exportHtml: m, save: u, openVersionHistory: c, closeVersionHistory: p, getCompiledEmail: f, compileHtml: d, validateLiquidSyntax: v, editorStore: t, templateStore: y, hasMigrations: S, trans: s, isExporting: i, isSaving: r, migrationModalRef: g, testEmailClick: H, handleVersionHistory: T, handleExport: w, handleSaveAs: _, versionHistoryTooltipText: C, isVersionHistoryButtonVisible: A, executeSave: V, handleSave: E, handleTestEmail: M, getTooltipOptions: j, InButtonV2: G, MigrationConfirmModal: K };
|
|
62
58
|
}
|
|
63
59
|
});
|
|
64
60
|
export {
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InContainer as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as t, ref as n } from "vue";
|
|
2
|
+
import { InContainer as m } from "@useinsider/design-system-vue";
|
|
3
|
+
import a from "./LeftSlot.vue.js";
|
|
4
|
+
import f from "./MiddleSlot.vue.js";
|
|
5
|
+
import p from "./RightSlot.vue.js";
|
|
6
|
+
const S = /* @__PURE__ */ t({
|
|
7
7
|
__name: "HeaderWrapper",
|
|
8
|
-
setup(
|
|
9
|
-
const e =
|
|
10
|
-
return
|
|
11
|
-
handleSave: (
|
|
12
|
-
|
|
13
|
-
return (o = e.value) == null ? void 0 : o.handleSave(t);
|
|
14
|
-
}
|
|
15
|
-
}), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
|
|
8
|
+
setup(i, { expose: o }) {
|
|
9
|
+
const e = n(null);
|
|
10
|
+
return o({
|
|
11
|
+
handleSave: (r) => e.value?.handleSave(r)
|
|
12
|
+
}), { __sfc: !0, rightSlotRef: e, InContainer: m, LeftSlot: a, MiddleSlot: f, RightSlot: p };
|
|
16
13
|
}
|
|
17
14
|
});
|
|
18
15
|
export {
|
|
19
|
-
|
|
16
|
+
S as default
|
|
20
17
|
};
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useBack as
|
|
4
|
-
import { usePreviewMode as
|
|
5
|
-
import { useTranslations as
|
|
6
|
-
import { useVersionHistoryApi as
|
|
7
|
-
import { useEditorStore as
|
|
8
|
-
import { InButtonV2 as
|
|
9
|
-
import { useDebounceFn as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as f, ref as l } from "vue";
|
|
2
|
+
import { useConfig as d } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useBack as p } from "../../../composables/useGuidoActions.js";
|
|
4
|
+
import { usePreviewMode as k } from "../../../composables/usePreviewMode.js";
|
|
5
|
+
import { useTranslations as B } from "../../../composables/useTranslations.js";
|
|
6
|
+
import { useVersionHistoryApi as b } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
+
import { useEditorStore as v } from "../../../stores/editor.js";
|
|
8
|
+
import { InButtonV2 as _ } from "@useinsider/design-system-vue";
|
|
9
|
+
import { useDebounceFn as V } from "../../../node_modules/@vueuse/shared/index.js";
|
|
10
|
+
const A = /* @__PURE__ */ m({
|
|
11
11
|
__name: "LeftSlot",
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
14
|
-
var u, m;
|
|
15
|
-
return e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : (m = (u = t.value) == null ? void 0 : u.ui) != null && m.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
|
|
16
|
-
}), r = p(!1), c = () => {
|
|
12
|
+
setup(g) {
|
|
13
|
+
const e = v(), i = p(), { closeVersionHistory: n } = b(), { closePreviewMode: s } = k(), o = B(), { config: t } = d(), u = f(() => e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : t.value?.ui?.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design")), r = l(!1), c = () => {
|
|
17
14
|
if (e.isVersionHistoryOpen) {
|
|
18
15
|
n();
|
|
19
16
|
return;
|
|
@@ -23,14 +20,14 @@ const D = /* @__PURE__ */ l({
|
|
|
23
20
|
return;
|
|
24
21
|
}
|
|
25
22
|
e.loadingStatus = !0, i();
|
|
26
|
-
}, a =
|
|
23
|
+
}, a = V(() => {
|
|
27
24
|
c(), r.value = !1;
|
|
28
25
|
}, 500);
|
|
29
|
-
return { __sfc: !0, editorStore: e, handleBack: i, closeVersionHistory: n, closePreviewMode: s, trans: o, config: t, backButtonLabel:
|
|
26
|
+
return { __sfc: !0, editorStore: e, handleBack: i, closeVersionHistory: n, closePreviewMode: s, trans: o, config: t, backButtonLabel: u, isBackButtonDisabled: r, executeBackAction: c, debouncedBackAction: a, handleBackClick: () => {
|
|
30
27
|
r.value = !0, a();
|
|
31
|
-
}, InButtonV2:
|
|
28
|
+
}, InButtonV2: _ };
|
|
32
29
|
}
|
|
33
30
|
});
|
|
34
31
|
export {
|
|
35
|
-
|
|
32
|
+
A as default
|
|
36
33
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { defineComponent as o } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useEditorStore as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import p from "./version-history/ViewOptions.vue.js";
|
|
8
|
-
const S = /* @__PURE__ */ o({
|
|
1
|
+
import { defineComponent as e, defineAsyncComponent as o } from "vue";
|
|
2
|
+
import m from "../email-preview/amp/AmpToggle.vue.js";
|
|
3
|
+
import n from "../email-preview/desktop-preview/EmailSizeIndicator.vue.js";
|
|
4
|
+
import { useEditorStore as s } from "../../../stores/editor.js";
|
|
5
|
+
import p from "./EditorToolbar.vue.js";
|
|
6
|
+
const u = /* @__PURE__ */ e({
|
|
9
7
|
__name: "MiddleSlot",
|
|
10
|
-
setup(
|
|
11
|
-
|
|
8
|
+
setup(f) {
|
|
9
|
+
const r = o(
|
|
10
|
+
() => import("./version-history/VersionHistory.vue.js")
|
|
11
|
+
), t = o(
|
|
12
|
+
() => import("./version-history/ViewOptions.vue.js")
|
|
13
|
+
), i = s();
|
|
14
|
+
return { __sfc: !0, VersionHistory: r, VersionHistoryViewOptions: t, editorStore: i, AmpToggle: m, EmailSizeIndicator: n, EditorToolbar: p };
|
|
12
15
|
}
|
|
13
16
|
});
|
|
14
17
|
export {
|
|
15
|
-
|
|
18
|
+
u as default
|
|
16
19
|
};
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useEditorStore as
|
|
5
|
-
import { InChips as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as m, ref as a, computed as f } from "vue";
|
|
2
|
+
import { useConfig as p } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useTranslations as u } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as d } from "../../../stores/editor.js";
|
|
5
|
+
import { InChips as c } from "@useinsider/design-system-vue";
|
|
6
|
+
import l from "./EditorActions.vue.js";
|
|
7
|
+
import _ from "./version-history/RestoreButton.vue.js";
|
|
8
|
+
const q = /* @__PURE__ */ m({
|
|
9
9
|
__name: "RightSlot",
|
|
10
|
-
setup(
|
|
11
|
-
const { isFeatureEnabled: o } =
|
|
12
|
-
return
|
|
13
|
-
handleSave: (
|
|
14
|
-
|
|
15
|
-
return (e = t.value) == null ? void 0 : e.handleSave(m);
|
|
16
|
-
}
|
|
17
|
-
}), { __sfc: !0, isFeatureEnabled: o, trans: n, editorStore: i, editorActionsRef: t, isLiquidEnabled: s, InChips: l, EditorActions: _, RestoreButton: S };
|
|
10
|
+
setup(S, { expose: e }) {
|
|
11
|
+
const { isFeatureEnabled: o } = p(), r = u(), n = d(), t = a(null), i = f(() => o("liquidSyntax"));
|
|
12
|
+
return e({
|
|
13
|
+
handleSave: (s) => t.value?.handleSave(s)
|
|
14
|
+
}), { __sfc: !0, isFeatureEnabled: o, trans: r, editorStore: n, editorActionsRef: t, isLiquidEnabled: i, InChips: c, EditorActions: l, RestoreButton: _ };
|
|
18
15
|
}
|
|
19
16
|
});
|
|
20
17
|
export {
|
|
21
|
-
|
|
18
|
+
q as default
|
|
22
19
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (t = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : t.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : r.bottom, "left-position": (e = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : e.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": (i = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(u) {
|
|
1
|
+
import r from "./AMPOnboarding.vue2.js";
|
|
2
|
+
import e from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var n = this, t = n._self._c, o = n._self._setupProxy;
|
|
5
|
+
return o.isVisible ? t(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: o.onboardingStore.getAmpCurrentCard?.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": o.onboardingStore.getAmpCurrentCard?.bottom, "left-position": o.onboardingStore.getAmpCurrentCard?.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": o.onboardingStore.getAmpCurrentCard?.position, "right-position": o.onboardingStore.getAmpCurrentCard?.right, "top-position": o.onboardingStore.getAmpCurrentCard?.top }, on: { backButtonClick: o.handleBack, close: function(d) {
|
|
7
6
|
return o.onboardingStore.close("ampOnboarding");
|
|
8
7
|
}, nextButtonClick: o.handleNext } }) : n._e();
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
}, a = [], s = /* @__PURE__ */ e(
|
|
9
|
+
r,
|
|
10
|
+
i,
|
|
11
|
+
a,
|
|
13
12
|
!1,
|
|
14
13
|
null,
|
|
15
14
|
null
|
|
16
15
|
);
|
|
17
|
-
const
|
|
16
|
+
const m = s.exports;
|
|
18
17
|
export {
|
|
19
|
-
|
|
18
|
+
m 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 c, computed as t, watch as p } from "vue";
|
|
2
|
+
import { useTranslations as m } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { useOnboardingStore as g } from "../../../stores/onboarding.js";
|
|
4
|
+
import { InOnboard as u } from "@useinsider/design-system-vue";
|
|
5
|
+
const k = /* @__PURE__ */ c({
|
|
6
6
|
__name: "AMPOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
7
|
+
setup(b) {
|
|
8
|
+
const o = m(), n = g(), i = t(() => `${window.innerWidth / 2 - 110}px`), e = t(() => [
|
|
9
9
|
{
|
|
10
10
|
classes: "guido-amp-onboarding",
|
|
11
|
-
left:
|
|
11
|
+
left: i.value,
|
|
12
12
|
top: "70px",
|
|
13
13
|
position: "Top Center",
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
14
|
+
title: o("email-editor.onboarding-amp-title"),
|
|
15
|
+
description: o("email-editor.onboarding-amp-description"),
|
|
16
16
|
imageSource: "",
|
|
17
17
|
backButtonClick: () => {
|
|
18
18
|
},
|
|
19
19
|
nextButtonType: "text",
|
|
20
|
-
nextButtonText:
|
|
21
|
-
nextButtonClick: () => void
|
|
20
|
+
nextButtonText: o("action-builder.ok"),
|
|
21
|
+
nextButtonClick: () => void n.close("ampOnboarding")
|
|
22
22
|
}
|
|
23
|
-
]),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var n, t;
|
|
28
|
-
(t = (n = o.getAmpCurrentCard) == null ? void 0 : n.backButtonClick) == null || t.call(n);
|
|
23
|
+
]), r = t(() => n.onboardings.ampOnboarding.config.length > 0 && n.onboardings.ampOnboarding.isActive), a = () => {
|
|
24
|
+
n.getAmpCurrentCard?.nextButtonClick?.();
|
|
25
|
+
}, d = () => {
|
|
26
|
+
n.getAmpCurrentCard?.backButtonClick?.();
|
|
29
27
|
};
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
}, { immediate: !0 }), { __sfc: !0, trans:
|
|
28
|
+
return p(() => n.onboardings.ampOnboarding.isActive, (s) => {
|
|
29
|
+
s && n.setConfig("ampOnboarding", e.value);
|
|
30
|
+
}, { immediate: !0 }), { __sfc: !0, trans: o, onboardingStore: n, centerLeft: i, onboardingCardsConfig: e, isVisible: r, handleNext: a, handleBack: d, InOnboard: u };
|
|
33
31
|
}
|
|
34
32
|
});
|
|
35
33
|
export {
|
|
36
|
-
|
|
34
|
+
k as default
|
|
37
35
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./GenericOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
return e.isVisible ? d(e.InOnboard, { key: "guido__editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : r.classes, attrs: { id: "guido__editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : n.bottom, "left-position": (t = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : t.left, "pages-config": e.onboardingStore.onboardings.genericOnboarding.config, "pointer-position": (i = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : i.position, "right-position": (a = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : a.right, "top-position": (s = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: e.handleBack, close: function(u) {
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var i = function() {
|
|
5
|
+
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
6
|
+
return e.isVisible ? r(e.InOnboard, { key: "guido__editor-onboard", staticClass: "w-21-s p-a z-11", class: e.onboardingStore.getGenericCurrentCard?.classes, attrs: { id: "guido__editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": e.onboardingStore.getGenericCurrentCard?.bottom, "left-position": e.onboardingStore.getGenericCurrentCard?.left, "pages-config": e.onboardingStore.onboardings.genericOnboarding.config, "pointer-position": e.onboardingStore.getGenericCurrentCard?.position, "right-position": e.onboardingStore.getGenericCurrentCard?.right, "top-position": e.onboardingStore.getGenericCurrentCard?.top }, on: { backButtonClick: e.handleBack, close: function(c) {
|
|
8
7
|
return e.onboardingStore.close("genericOnboarding");
|
|
9
8
|
}, nextButtonClick: e.handleNext } }) : o._e();
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
}, a = [], s = /* @__PURE__ */ t(
|
|
10
|
+
n,
|
|
11
|
+
i,
|
|
12
|
+
a,
|
|
14
13
|
!1,
|
|
15
14
|
null,
|
|
16
15
|
"29b9af29"
|
|
17
16
|
);
|
|
18
|
-
const
|
|
17
|
+
const _ = s.exports;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
_ as default
|
|
21
20
|
};
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { SERVICE_HOVER_SELECTORS as
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import { InOnboard as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as n, watch as l } from "vue";
|
|
2
|
+
import { useTranslations as b } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { SERVICE_HOVER_SELECTORS as x } from "../../../enums/onboarding.js";
|
|
4
|
+
import { useOnboardingStore as m } from "../../../stores/onboarding.js";
|
|
5
|
+
import { InOnboard as k } from "@useinsider/design-system-vue";
|
|
6
|
+
const h = /* @__PURE__ */ u({
|
|
7
7
|
__name: "GenericOnboarding",
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
a && a.classList.add("hover");
|
|
8
|
+
setup(f) {
|
|
9
|
+
const t = b(), e = m(), i = n(() => `${window.innerWidth / 2 - 160}px`), r = () => {
|
|
10
|
+
const o = document.querySelector("ui-editor");
|
|
11
|
+
o?.shadowRoot && x.forEach((p) => {
|
|
12
|
+
const s = o.shadowRoot?.querySelector(p);
|
|
13
|
+
s && s.classList.add("hover");
|
|
15
14
|
});
|
|
16
|
-
},
|
|
15
|
+
}, c = n(() => [
|
|
17
16
|
{
|
|
18
17
|
classes: "guido-onboarding-blocks",
|
|
19
18
|
left: "90px",
|
|
20
19
|
top: "90px",
|
|
21
20
|
position: "Left Top",
|
|
22
|
-
title:
|
|
23
|
-
description:
|
|
21
|
+
title: t("email-editor.onboarding-blocks-title"),
|
|
22
|
+
description: t("email-editor.onboarding-blocks-description"),
|
|
24
23
|
imageSource: "",
|
|
25
24
|
backButtonClick: () => {
|
|
26
25
|
},
|
|
27
26
|
nextButtonType: "text",
|
|
28
|
-
nextButtonText:
|
|
27
|
+
nextButtonText: t("products.next"),
|
|
29
28
|
nextButtonClick: () => {
|
|
30
|
-
|
|
29
|
+
r(), e.next("genericOnboarding");
|
|
31
30
|
}
|
|
32
31
|
},
|
|
33
32
|
{
|
|
@@ -35,49 +34,47 @@ const S = /* @__PURE__ */ l({
|
|
|
35
34
|
right: "426px",
|
|
36
35
|
bottom: "38px",
|
|
37
36
|
position: "Right Bottom",
|
|
38
|
-
title:
|
|
39
|
-
description:
|
|
37
|
+
title: t("email-editor.onboarding-stripes-title"),
|
|
38
|
+
description: t("email-editor.onboarding-stripes-description"),
|
|
40
39
|
imageSource: "",
|
|
41
40
|
backButtonType: "text",
|
|
42
|
-
backButtonText:
|
|
41
|
+
backButtonText: t("ds-steps.back"),
|
|
43
42
|
backButtonClick: () => {
|
|
44
|
-
|
|
43
|
+
e.previous("genericOnboarding");
|
|
45
44
|
},
|
|
46
45
|
nextButtonType: "text",
|
|
47
|
-
nextButtonText:
|
|
46
|
+
nextButtonText: t("products.next"),
|
|
48
47
|
nextButtonClick: () => {
|
|
49
|
-
|
|
48
|
+
e.next("genericOnboarding");
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
52
|
classes: "guido-onboarding-preview",
|
|
54
|
-
left:
|
|
53
|
+
left: i.value,
|
|
55
54
|
top: "90px",
|
|
56
55
|
position: "Top Center",
|
|
57
|
-
title:
|
|
58
|
-
description:
|
|
56
|
+
title: t("email-editor.onboarding-preview-title"),
|
|
57
|
+
description: t("email-editor.onboarding-preview-description"),
|
|
59
58
|
imageSource: "",
|
|
60
59
|
backButtonType: "text",
|
|
61
|
-
backButtonText:
|
|
62
|
-
backButtonClick: () =>
|
|
60
|
+
backButtonText: t("ds-steps.back"),
|
|
61
|
+
backButtonClick: () => e.previous("genericOnboarding"),
|
|
63
62
|
nextButtonType: "text",
|
|
64
|
-
nextButtonText:
|
|
63
|
+
nextButtonText: t("action-builder.ok"),
|
|
65
64
|
nextButtonClick: () => {
|
|
66
|
-
|
|
65
|
+
e.close("genericOnboarding");
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
|
-
]),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
var t, n;
|
|
74
|
-
(n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
68
|
+
]), a = n(() => e.onboardings.genericOnboarding.config.length > 0 && e.onboardings.genericOnboarding.isActive), d = () => {
|
|
69
|
+
e.getGenericCurrentCard?.nextButtonClick?.();
|
|
70
|
+
}, g = () => {
|
|
71
|
+
e.getGenericCurrentCard?.backButtonClick?.();
|
|
75
72
|
};
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
}, { immediate: !0 }), { __sfc: !0, trans:
|
|
73
|
+
return l(() => e.onboardings.genericOnboarding.isActive, (o) => {
|
|
74
|
+
o && e.setConfig("genericOnboarding", c.value);
|
|
75
|
+
}, { immediate: !0 }), { __sfc: !0, trans: t, onboardingStore: e, centerLeft: i, addHoverToServiceElements: r, onboardingCardsConfig: c, isVisible: a, handleNext: d, handleBack: g, InOnboard: k };
|
|
79
76
|
}
|
|
80
77
|
});
|
|
81
78
|
export {
|
|
82
|
-
|
|
79
|
+
h as default
|
|
83
80
|
};
|
|
@@ -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
|
"dd1a237a"
|
|
17
16
|
);
|
|
18
|
-
const
|
|
17
|
+
const p = a.exports;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
p as default
|
|
21
20
|
};
|