@useinsider/guido 3.2.0-beta.e69fb3b → 3.2.0-beta.ecc7c6c
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 +34 -27
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +81 -76
- package/dist/components/organisms/base/Toaster.vue2.js +11 -10
- 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 +15 -9
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +40 -31
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +20 -19
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +14 -11
- package/dist/components/organisms/header/EditorActions.vue.js +12 -11
- package/dist/components/organisms/header/EditorActions.vue2.js +22 -18
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -12
- package/dist/components/organisms/header/LeftSlot.vue2.js +19 -16
- package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -14
- package/dist/components/organisms/header/RightSlot.vue2.js +17 -14
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +26 -24
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +44 -41
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +38 -36
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +21 -18
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +31 -27
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +32 -30
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -21
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +9 -8
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -9
- package/dist/composables/useActionsApi.js +38 -37
- package/dist/composables/useBlocksConfig.js +26 -26
- package/dist/composables/useFullStoryBridge.js +9 -8
- package/dist/composables/useHtmlCompiler.js +26 -34
- package/dist/composables/useHtmlValidator.js +114 -101
- package/dist/composables/useHttp.js +30 -30
- package/dist/composables/usePartner.js +1 -1
- package/dist/composables/useRecommendation.js +15 -14
- package/dist/composables/useRibbonOffset.js +15 -15
- package/dist/composables/useSave.js +23 -19
- package/dist/composables/useStripo.js +48 -53
- package/dist/composables/useSyncModuleExtractor.js +29 -31
- package/dist/composables/useTimerClone.js +25 -24
- package/dist/composables/useTranslations.js +3 -2
- package/dist/composables/useValidation.js +8 -7
- package/dist/composables/validators/useCouponBlockValidator.js +24 -0
- package/dist/composables/validators/useLiquidValidator.js +13 -13
- package/dist/config/compiler/recommendationCompilerRules.js +27 -27
- package/dist/config/compiler/unsubscribeCompilerRules.js +19 -17
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +11 -10
- package/dist/config/migrator/checkboxMigrator.js +21 -20
- package/dist/config/migrator/couponBlockMigrator.js +19 -18
- package/dist/config/migrator/itemsBlockMigrator.js +89 -87
- package/dist/config/migrator/radioButtonMigrator.js +63 -42
- package/dist/config/migrator/recommendationMigrator.js +109 -106
- package/dist/config/migrator/unsubscribeMigrator.js +11 -10
- package/dist/enums/unsubscribe.js +19 -18
- 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 +97 -89
- package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +24 -23
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +14 -13
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +47 -44
- 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 +40 -38
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +162 -155
- package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
- package/dist/extensions/Blocks/Items/template.js +210 -210
- package/dist/extensions/Blocks/RadioButton/template.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +133 -128
- 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 +18 -17
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +6 -4
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +90 -82
- 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 +36 -35
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +135 -134
- 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 +20 -18
- package/dist/extensions/Blocks/Recommendation/extension.js +32 -31
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +16 -8
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +64 -54
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +23 -22
- 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 +25 -24
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +1 -1
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +47 -45
- package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +16 -13
- package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +33 -0
- package/dist/extensions/Blocks/Unsubscribe/control.js +13 -11
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +18 -16
- package/dist/extensions/Blocks/common-control.js +26 -25
- package/dist/extensions/DynamicContent/dynamic-content.js +58 -53
- package/dist/guido.css +1 -1
- package/dist/library.js +12 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +234 -233
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_SetCache.js +13 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
- package/dist/node_modules/lodash-es/_arraySome.js +9 -0
- package/dist/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/lodash-es/_baseGet.js +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/lodash-es/_baseRange.js +9 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
- package/dist/node_modules/lodash-es/_baseToString.js +18 -0
- package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/dist/node_modules/lodash-es/_createRange.js +11 -0
- package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
- package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
- package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/lodash-es/_getTag.js +28 -0
- package/dist/node_modules/lodash-es/_getValue.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +19 -0
- package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/dist/node_modules/lodash-es/_isKey.js +12 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +17 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/node_modules/lodash-es/flatMap.js +8 -0
- package/dist/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/map.js +11 -0
- package/dist/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/lodash-es/range.js +5 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toFinite.js +14 -0
- package/dist/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/valibot/dist/index.js +126 -122
- package/dist/services/recommendationApi.js +17 -14
- package/dist/services/templateLibraryApi.js +40 -38
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useHtmlCompiler.d.ts +2 -1
- package/dist/src/composables/validators/useCouponBlockValidator.d.ts +3 -0
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +7 -1
- package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +21 -0
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/stores/config.js +81 -25
- package/dist/stores/dynamic-content.js +11 -6
- package/dist/stores/onboarding.js +1 -1
- package/dist/stores/preview.js +9 -6
- package/dist/stores/unsubscribe.js +4 -1
- package/dist/utils/dateUtil.js +10 -7
- package/dist/utils/genericUtil.js +13 -10
- package/dist/utils/pairProductVariables.js +89 -87
- package/package.json +1 -6
- package/dist/enums/displayConditions.js +0 -80
- package/dist/src/enums/displayConditions.d.ts +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleFolderDefaults as b } from "../../enums/defaults.js";
|
|
2
|
-
import { object as o,
|
|
2
|
+
import { object as o, number as p, optional as e, string as t, pipe as u, picklist as n, minLength as d, custom as S, boolean as a, array as c, literal as l, variant as k } from "../../node_modules/valibot/dist/index.js";
|
|
3
3
|
const m = {
|
|
4
4
|
/** Promotional/marketing emails */
|
|
5
5
|
PROMOTIONAL: 1,
|
|
@@ -1,49 +1,56 @@
|
|
|
1
|
-
import { safeParse as
|
|
2
|
-
import { GuidoConfigSchema as
|
|
3
|
-
function a(s) {
|
|
4
|
-
return s.map((r) => `[${r.path?.map((u) => u.key).join(".") || "root"}] ${r.message}`);
|
|
5
|
-
}
|
|
1
|
+
import { safeParse as n } from "../../node_modules/valibot/dist/index.js";
|
|
2
|
+
import { GuidoConfigSchema as o } from "./schemas.js";
|
|
6
3
|
function i(s) {
|
|
7
|
-
return s.map((r) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})
|
|
4
|
+
return s.map((r) => {
|
|
5
|
+
var e;
|
|
6
|
+
return `[${((e = r.path) == null ? void 0 : e.map((a) => a.key).join(".")) || "root"}] ${r.message}`;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function c(s) {
|
|
10
|
+
return s.map((r) => {
|
|
11
|
+
var t;
|
|
12
|
+
return {
|
|
13
|
+
path: ((t = r.path) == null ? void 0 : t.map((e) => e.key).join(".")) || "root",
|
|
14
|
+
message: r.message
|
|
15
|
+
};
|
|
16
|
+
});
|
|
11
17
|
}
|
|
12
|
-
function
|
|
13
|
-
const r =
|
|
18
|
+
function u(s) {
|
|
19
|
+
const r = n(o, s);
|
|
14
20
|
return r.success ? {
|
|
15
21
|
success: !0,
|
|
16
22
|
data: r.output
|
|
17
23
|
} : {
|
|
18
24
|
success: !1,
|
|
19
|
-
errors:
|
|
25
|
+
errors: i(r.issues)
|
|
20
26
|
};
|
|
21
27
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
28
|
+
function p(s) {
|
|
29
|
+
var t;
|
|
30
|
+
const r = u(s);
|
|
24
31
|
if (!r.success)
|
|
25
32
|
throw new Error(
|
|
26
33
|
`Invalid GuidoConfig:
|
|
27
|
-
${r.errors
|
|
34
|
+
${(t = r.errors) == null ? void 0 : t.join(`
|
|
28
35
|
`)}`
|
|
29
36
|
);
|
|
30
37
|
return r.data;
|
|
31
38
|
}
|
|
32
|
-
function p(s) {
|
|
33
|
-
const r = o(s);
|
|
34
|
-
return r.success ? r.data : (console.error("[Guido] Invalid configuration:", r.errors), null);
|
|
35
|
-
}
|
|
36
39
|
function m(s) {
|
|
37
|
-
const r =
|
|
38
|
-
return r.success ? [] :
|
|
40
|
+
const r = u(s);
|
|
41
|
+
return r.success ? r.data : (console.error("[Guido] Invalid configuration:", r.errors), null);
|
|
39
42
|
}
|
|
40
43
|
function d(s) {
|
|
41
|
-
|
|
44
|
+
const r = n(o, s);
|
|
45
|
+
return r.success ? [] : c(r.issues);
|
|
46
|
+
}
|
|
47
|
+
function g(s) {
|
|
48
|
+
return n(o, s).success;
|
|
42
49
|
}
|
|
43
50
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
d as getValidationErrors,
|
|
52
|
+
g as isValidConfig,
|
|
53
|
+
p as parseConfig,
|
|
54
|
+
m as parseConfigSafe,
|
|
55
|
+
u as validateConfig
|
|
49
56
|
};
|
|
@@ -1,126 +1,131 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideGuidoActions as
|
|
3
|
-
import { usePartner as
|
|
4
|
-
import { useStripo as
|
|
5
|
-
import { useTimerClone as
|
|
6
|
-
import { migrate as
|
|
7
|
-
import { ModuleFolderDefaults as
|
|
8
|
-
import { RIBBON_SELECTOR as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as j, defineAsyncComponent as R, ref as A, computed as I, watch as J, onMounted as Q, onUnmounted as X } from "vue";
|
|
2
|
+
import { provideGuidoActions as Y } from "../composables/useGuidoActions.js";
|
|
3
|
+
import { usePartner as Z } from "../composables/usePartner.js";
|
|
4
|
+
import { useStripo as ee } from "../composables/useStripo.js";
|
|
5
|
+
import { useTimerClone as te } from "../composables/useTimerClone.js";
|
|
6
|
+
import { migrate as W } from "../config/migrator/index.js";
|
|
7
|
+
import { ModuleFolderDefaults as B } from "../enums/defaults.js";
|
|
8
|
+
import { RIBBON_SELECTOR as oe } from "../enums/onboarding.js";
|
|
9
|
+
import ne from "./organisms/base/Toaster.vue.js";
|
|
10
|
+
import se from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
|
|
11
|
+
import re from "./organisms/header/HeaderWrapper.vue.js";
|
|
11
12
|
import ce from "./organisms/LoadingWrapper.vue.js";
|
|
13
|
+
import ae from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
|
|
14
|
+
import ie from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
|
|
12
15
|
import { useStripoApi as me } from "../services/stripoApi.js";
|
|
13
16
|
import { useConfigStore as de } from "../stores/config.js";
|
|
14
17
|
import { useDynamicContentStore as le } from "../stores/dynamic-content.js";
|
|
15
|
-
import { useEditorStore as
|
|
16
|
-
import { usePreviewStore as
|
|
18
|
+
import { useEditorStore as ue } from "../stores/editor.js";
|
|
19
|
+
import { usePreviewStore as pe } from "../stores/preview.js";
|
|
17
20
|
import { useUnsubscribeStore as fe } from "../stores/unsubscribe.js";
|
|
18
|
-
const
|
|
21
|
+
const Re = /* @__PURE__ */ j({
|
|
19
22
|
__name: "Guido",
|
|
20
23
|
props: {
|
|
21
24
|
config: null
|
|
22
25
|
},
|
|
23
26
|
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
() => import("./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js")
|
|
27
|
-
), G = s(
|
|
28
|
-
() => import("./organisms/save-as-template/SaveAsTemplateDrawer.vue.js")
|
|
29
|
-
), z = s(
|
|
30
|
-
() => import("./organisms/unsubscribe/UnsubscribeWrapper.vue.js")
|
|
31
|
-
), q = s(
|
|
27
|
+
setup(H, { expose: x, emit: s }) {
|
|
28
|
+
const b = H, G = R(
|
|
32
29
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
33
|
-
),
|
|
30
|
+
), z = R(
|
|
34
31
|
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
const
|
|
32
|
+
), S = A(), d = A(), l = le(), g = fe(), a = de();
|
|
33
|
+
a.init(b.config);
|
|
34
|
+
const u = ue(), q = pe(), i = I(() => u.hasChanges), { isTestPartner: K } = Z(), w = () => {
|
|
35
|
+
var e;
|
|
36
|
+
return (e = S.value) == null ? void 0 : e.handleSave(!0);
|
|
37
|
+
}, {
|
|
38
38
|
templateId: p,
|
|
39
|
-
userId:
|
|
40
|
-
partnerName:
|
|
41
|
-
username:
|
|
42
|
-
template:
|
|
43
|
-
editor:
|
|
44
|
-
} =
|
|
45
|
-
|
|
46
|
-
const
|
|
39
|
+
userId: E,
|
|
40
|
+
partnerName: D,
|
|
41
|
+
username: C,
|
|
42
|
+
template: t,
|
|
43
|
+
editor: r
|
|
44
|
+
} = a, m = (t == null ? void 0 : t.html) || "", T = (t == null ? void 0 : t.css) || "", f = (t == null ? void 0 : t.preselectedDynamicContent) || [], k = (r == null ? void 0 : r.savedModulesFolderName) || B.SAVED_MODULES, F = (r == null ? void 0 : r.defaultModulesFolderName) || B.DEFAULT_MODULES;
|
|
45
|
+
u.templateId = p;
|
|
46
|
+
const v = {
|
|
47
47
|
emailId: p,
|
|
48
|
-
userId:
|
|
49
|
-
username:
|
|
50
|
-
partnerName:
|
|
51
|
-
savedModulesFolderName:
|
|
52
|
-
defaultModulesFolderName:
|
|
53
|
-
},
|
|
48
|
+
userId: E,
|
|
49
|
+
username: C,
|
|
50
|
+
partnerName: D,
|
|
51
|
+
savedModulesFolderName: k,
|
|
52
|
+
defaultModulesFolderName: F
|
|
53
|
+
}, L = {
|
|
54
54
|
preselectedDynamicContentList: f,
|
|
55
55
|
onReady: () => {
|
|
56
|
-
console.debug("guido:ready"),
|
|
56
|
+
console.debug("guido:ready"), s("ready");
|
|
57
57
|
}
|
|
58
|
-
}, { initPlugin:
|
|
59
|
-
|
|
58
|
+
}, { initPlugin: U } = ee(v, L), { getDefaultTemplate: _ } = me(), { cloneTimersOnSave: M, hasTimerBlocks: O } = te(), V = I(() => {
|
|
59
|
+
var e;
|
|
60
|
+
return !((e = a.ui) != null && e.showHeader);
|
|
61
|
+
});
|
|
62
|
+
Y({
|
|
60
63
|
onBack: () => {
|
|
61
|
-
console.debug("guido:back"),
|
|
64
|
+
console.debug("guido:back"), s("back");
|
|
62
65
|
},
|
|
63
66
|
onSaveStart: () => {
|
|
64
|
-
console.debug("guido:save:start"),
|
|
67
|
+
console.debug("guido:save:start"), s("save:start");
|
|
65
68
|
},
|
|
66
|
-
onSaveComplete: (
|
|
67
|
-
const
|
|
68
|
-
console.debug("guido:save:complete",
|
|
69
|
+
onSaveComplete: (e) => {
|
|
70
|
+
const n = { ...e, metadata: v };
|
|
71
|
+
console.debug("guido:save:complete", n), s("save:complete", n);
|
|
69
72
|
},
|
|
70
73
|
onTestEmailClick: () => {
|
|
71
|
-
console.debug("guido:test-email:click"),
|
|
74
|
+
console.debug("guido:test-email:click"), s("test-email:click");
|
|
72
75
|
}
|
|
73
76
|
});
|
|
74
|
-
const P = (
|
|
75
|
-
console.debug("dynamic-content:close",
|
|
77
|
+
const P = (e) => {
|
|
78
|
+
console.debug("dynamic-content:close", e), l.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
76
79
|
}, N = () => {
|
|
77
80
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
78
81
|
};
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
J(() => i.value, () => {
|
|
83
|
+
s("on-change", i.value);
|
|
81
84
|
});
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
console.debug("dynamic-content:open",
|
|
85
|
+
const y = (e) => {
|
|
86
|
+
const n = e, { attribute: o, position: $ } = n.detail;
|
|
87
|
+
console.debug("dynamic-content:open", n.detail), s("dynamic-content:open", o, $);
|
|
85
88
|
};
|
|
86
89
|
let c = null;
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
const h = () => {
|
|
91
|
+
var n;
|
|
92
|
+
const e = document.querySelector(oe);
|
|
93
|
+
(n = d.value) == null || n.style.setProperty("--ribbon-offset", `${(e == null ? void 0 : e.offsetHeight) ?? 0}px`);
|
|
90
94
|
};
|
|
91
|
-
return
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
return Q(async () => {
|
|
96
|
+
var n;
|
|
97
|
+
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), h();
|
|
98
|
+
const e = (n = d.value) == null ? void 0 : n.parentElement;
|
|
99
|
+
e && (c = new ResizeObserver(h), c.observe(e));
|
|
95
100
|
try {
|
|
96
|
-
|
|
97
|
-
let
|
|
98
|
-
html:
|
|
101
|
+
g.selectedUnsubscribePages = (t == null ? void 0 : t.selectedUnsubscribePages) || [];
|
|
102
|
+
let o = {
|
|
103
|
+
html: m && await W(m),
|
|
99
104
|
css: T
|
|
100
105
|
};
|
|
101
|
-
|
|
102
|
-
} catch (
|
|
103
|
-
console.error("Failed to initialize Stripo editor:",
|
|
106
|
+
o.html || (o = await _(), o.html = await W(o.html)), O(o.html) && (o.html = await M(o.html)), await U(o), l.selectedDynamicContentList = f;
|
|
107
|
+
} catch (o) {
|
|
108
|
+
console.error("Failed to initialize Stripo editor:", o);
|
|
104
109
|
}
|
|
105
|
-
document.addEventListener("dynamic-content:open",
|
|
106
|
-
}),
|
|
107
|
-
c
|
|
110
|
+
document.addEventListener("dynamic-content:open", y);
|
|
111
|
+
}), X(() => {
|
|
112
|
+
c == null || c.disconnect(), document.removeEventListener("dynamic-content:open", y);
|
|
108
113
|
try {
|
|
109
114
|
window.UIEditor.removeEditor();
|
|
110
115
|
} catch {
|
|
111
116
|
console.debug("Failed to remove Stripo editor: No editor found");
|
|
112
117
|
}
|
|
113
|
-
|
|
114
|
-
}),
|
|
118
|
+
a.reset();
|
|
119
|
+
}), x({
|
|
115
120
|
dynamicContent: {
|
|
116
121
|
insert: P,
|
|
117
122
|
close: N
|
|
118
123
|
},
|
|
119
124
|
hasChanges: i,
|
|
120
|
-
saveSilent:
|
|
121
|
-
}), { __sfc: !0,
|
|
125
|
+
saveSilent: w
|
|
126
|
+
}), { __sfc: !0, PreviewContainer: G, OnboardingWrapper: z, headerWrapperRef: S, wrapperRef: d, dynamicContentStore: l, unsubscribeStore: g, props: b, configStore: a, editorStore: u, previewStore: q, hasChanges: i, isTestPartner: K, saveSilent: w, templateId: p, userId: E, partnerName: D, username: C, templateConfig: t, editorConfig: r, html: m, css: T, preselectedDynamicContentList: f, savedModulesFolderName: k, defaultModulesFolderName: F, emit: s, metadata: v, options: L, initPlugin: U, getDefaultTemplate: _, cloneTimersOnSave: M, hasTimerBlocks: O, noHeader: V, insertDynamicContent: P, closeDynamicContent: N, handleDynamicContentOpen: y, ribbonObserver: c, updateRibbonOffset: h, Toaster: ne, FilterSelectionDrawer: se, HeaderWrapper: re, LoadingWrapper: ce, SaveAsTemplateDrawer: ae, UnsubscribeWrapper: ie };
|
|
122
127
|
}
|
|
123
128
|
});
|
|
124
129
|
export {
|
|
125
|
-
|
|
130
|
+
Re as default
|
|
126
131
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useToasterStore as
|
|
3
|
-
import { InToasts as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as a, ref as c, computed as i, onBeforeUnmount as u } from "vue";
|
|
2
|
+
import { useToasterStore as f } from "../../../stores/toaster.js";
|
|
3
|
+
import { InToasts as m } from "@useinsider/design-system-vue";
|
|
4
|
+
const d = /* @__PURE__ */ a({
|
|
5
5
|
__name: "Toaster",
|
|
6
|
-
setup(
|
|
7
|
-
const t =
|
|
6
|
+
setup(p) {
|
|
7
|
+
const t = f(), o = c(null), r = i(() => t.actionButton ? [{ text: t.actionButton.text }] : []), s = () => {
|
|
8
8
|
t.actionButton && t.actionButton.onClick(), t.hideToaster();
|
|
9
9
|
};
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
return u(() => {
|
|
11
|
+
var e, n;
|
|
12
|
+
t.$reset(), (n = (e = o.value) == null ? void 0 : e.$el) == null || n.remove();
|
|
13
|
+
}), { __sfc: !0, store: t, toastRef: o, actionButtonsConfig: r, handleActionClick: s, InToasts: m };
|
|
13
14
|
}
|
|
14
15
|
});
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
d as default
|
|
17
18
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent as f, ref as s, onMounted as c, onBeforeUnmount as m, nextTick as u } from "vue";
|
|
2
2
|
import { useTranslations as p } from "../../../../composables/useTranslations.js";
|
|
3
3
|
import { usePreviewStore as l } from "../../../../stores/preview.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import _ from "./DesktopBrowserHeader.vue.js";
|
|
5
|
+
const x = /* @__PURE__ */ f({
|
|
6
6
|
__name: "DesktopPreview",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
7
|
+
setup(v) {
|
|
8
|
+
const a = p(), o = s(), n = s(!1), i = l();
|
|
9
9
|
let e = null;
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
}), e.observe(
|
|
13
|
-
|
|
10
|
+
const t = () => {
|
|
11
|
+
o.value && (e = new ResizeObserver(() => {
|
|
12
|
+
}), e.observe(o.value), u(() => {
|
|
13
|
+
n.value = !0;
|
|
14
14
|
}));
|
|
15
|
-
},
|
|
16
|
-
e
|
|
15
|
+
}, r = () => {
|
|
16
|
+
e == null || e.disconnect();
|
|
17
17
|
};
|
|
18
|
-
return c(
|
|
18
|
+
return c(t), m(r), { __sfc: !0, trans: a, containerRef: o, isContainerReady: n, previewStore: i, resizeObserver: e, initIframe: t, cleanIframe: r, DesktopBrowserHeader: _ };
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
x as default
|
|
23
23
|
};
|
|
@@ -7,14 +7,14 @@ const h = /* @__PURE__ */ m({
|
|
|
7
7
|
__name: "ContentView",
|
|
8
8
|
emits: ["back-to-inbox"],
|
|
9
9
|
setup(v) {
|
|
10
|
-
const i = a(),
|
|
11
|
-
["transform", "transform-origin", "height"].forEach((
|
|
12
|
-
|
|
10
|
+
const i = a(), t = p(), n = c(), { setupResponsivePreview: r } = f(), s = (o) => {
|
|
11
|
+
["transform", "transform-origin", "height"].forEach((e) => {
|
|
12
|
+
o.documentElement.style.removeProperty(e);
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
return { __sfc: !0, trans: i, previewStore:
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
return { __sfc: !0, trans: i, previewStore: t, iframeRef: n, setupResponsivePreview: r, clearAMPTransforms: s, onLoad: () => {
|
|
16
|
+
const o = n.value, e = o == null ? void 0 : o.contentDocument;
|
|
17
|
+
e && (r(o), t.isAMPResponsive && s(e));
|
|
18
18
|
}, InIcons: u };
|
|
19
19
|
}
|
|
20
20
|
});
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { InIcons as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as c, computed as r } from "vue";
|
|
2
|
+
import { useConfig as u } from "../../../../composables/useConfig.js";
|
|
3
|
+
import { useTranslations as d } from "../../../../composables/useTranslations.js";
|
|
4
|
+
import { InIcons as f } from "@useinsider/design-system-vue";
|
|
5
|
+
const j = /* @__PURE__ */ c({
|
|
6
6
|
__name: "InboxView",
|
|
7
7
|
emits: ["open-email"],
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
|
|
8
|
+
setup(p, { emit: m }) {
|
|
9
|
+
const n = d(), { config: s } = u(), a = r(() => {
|
|
10
|
+
var e, t, o;
|
|
11
|
+
return ((o = (t = (e = s.value) == null ? void 0 : e.editor) == null ? void 0 : t.emailHeader) == null ? void 0 : o.senderName) || n("settings.sender-name");
|
|
12
|
+
}), i = r(() => {
|
|
13
|
+
var e, t, o;
|
|
14
|
+
return ((o = (t = (e = s.value) == null ? void 0 : e.editor) == null ? void 0 : t.emailHeader) == null ? void 0 : o.subject) || n("email-editor.default-subject");
|
|
15
|
+
});
|
|
16
|
+
return { __sfc: !0, emit: m, trans: n, config: s, senderName: a, subject: i, InIcons: f };
|
|
11
17
|
}
|
|
12
18
|
});
|
|
13
19
|
export {
|
|
14
|
-
|
|
20
|
+
j as default
|
|
15
21
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { getOperatorOptions as
|
|
4
|
-
import { useRecommendationExtensionStore as
|
|
5
|
-
import { getInvalidFilterFields as
|
|
6
|
-
import { InButtonV2 as
|
|
7
|
-
import
|
|
8
|
-
import { useDebounceFn as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as _, computed as l } from "vue";
|
|
2
|
+
import { useTranslations as C } from "../../../../composables/useTranslations.js";
|
|
3
|
+
import { getOperatorOptions as p } from "../../../../enums/extensions/recommendationBlock.js";
|
|
4
|
+
import { useRecommendationExtensionStore as V } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
5
|
+
import { getInvalidFilterFields as A } from "../../../../extensions/Blocks/Recommendation/validation/filterSchema.js";
|
|
6
|
+
import { InButtonV2 as L, InSelect as O, InBasicTextInput as S } from "@useinsider/design-system-vue";
|
|
7
|
+
import E from "./LogicAdapter.vue.js";
|
|
8
|
+
import { useDebounceFn as N } from "../../../../node_modules/@vueuse/shared/index.js";
|
|
9
|
+
const K = /* @__PURE__ */ _({
|
|
10
10
|
__name: "FilterItem",
|
|
11
11
|
props: {
|
|
12
12
|
filter: null,
|
|
@@ -15,46 +15,55 @@ const J = /* @__PURE__ */ I({
|
|
|
15
15
|
submitted: { type: Boolean }
|
|
16
16
|
},
|
|
17
17
|
emits: ["delete-filter"],
|
|
18
|
-
setup(f, { emit:
|
|
19
|
-
const t = f,
|
|
18
|
+
setup(f, { emit: v }) {
|
|
19
|
+
const t = f, n = C(), a = V(), y = [
|
|
20
20
|
{
|
|
21
|
-
text:
|
|
21
|
+
text: n("email-editor.standard-filter"),
|
|
22
22
|
value: "standardFilter"
|
|
23
23
|
}
|
|
24
|
-
],
|
|
24
|
+
], i = [
|
|
25
25
|
{ text: "True", value: "true" },
|
|
26
26
|
{ text: "False", value: "false" }
|
|
27
|
-
],
|
|
28
|
-
() =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
() =>
|
|
35
|
-
),
|
|
36
|
-
|
|
27
|
+
], d = l(() => t.filter.attribute || ""), r = l(() => a.getFilterList.find((e) => e.value === d.value) || { text: "", value: "", type: "" }), F = l(
|
|
28
|
+
() => {
|
|
29
|
+
var e;
|
|
30
|
+
return ((e = r.value) == null ? void 0 : e.type) === "Boolean";
|
|
31
|
+
}
|
|
32
|
+
), b = l(() => {
|
|
33
|
+
var e;
|
|
34
|
+
return p((e = r.value) == null ? void 0 : e.type).find((o) => o.value === t.filter.operator);
|
|
35
|
+
}), g = l(
|
|
36
|
+
() => i.find((e) => e.value === t.filter.value) || i[0]
|
|
37
|
+
), u = l(() => t.submitted ? A(t.filter) : /* @__PURE__ */ new Set()), h = (e) => u.value.has(e) ? "error" : "default", B = l(
|
|
38
|
+
() => u.value.has("value") ? n("action-builder.filter-empty-value-error") : ""
|
|
39
|
+
), c = l(
|
|
40
|
+
() => {
|
|
41
|
+
var e;
|
|
42
|
+
return ((e = r.value) == null ? void 0 : e.type) === "Number";
|
|
43
|
+
}
|
|
44
|
+
), x = l(() => c.value ? "number" : "text"), T = N((e) => {
|
|
45
|
+
a.updateFilter({
|
|
37
46
|
...t.filter,
|
|
38
47
|
[e.text]: e.value
|
|
39
48
|
});
|
|
40
49
|
}, 500);
|
|
41
|
-
return { __sfc: !0, trans:
|
|
42
|
-
const
|
|
43
|
-
|
|
50
|
+
return { __sfc: !0, trans: n, store: a, props: t, filterTypeOptions: y, booleanValueOptions: i, attributeType: d, selectedAttributeType: r, isBooleanAttribute: F, selectedOperatorType: b, selectedBooleanValue: g, emit: v, invalidFields: u, getFieldState: h, valueErrorMessage: B, isNumericAttribute: c, valueInputType: x, updateFilter: T, handleAttributeChange: (e) => {
|
|
51
|
+
const o = a.getFilterList.find((I) => I.value === e.value), m = (o == null ? void 0 : o.type) === "Boolean", [s] = p(o == null ? void 0 : o.type);
|
|
52
|
+
a.updateFilter({
|
|
44
53
|
...t.filter,
|
|
45
54
|
attribute: e.value,
|
|
46
|
-
operator:
|
|
47
|
-
value:
|
|
55
|
+
operator: m ? "=" : (s == null ? void 0 : s.value) ?? "",
|
|
56
|
+
value: m ? "true" : ""
|
|
48
57
|
});
|
|
49
58
|
}, handleBooleanValueChange: (e) => {
|
|
50
|
-
|
|
59
|
+
a.updateFilter({
|
|
51
60
|
...t.filter,
|
|
52
61
|
operator: "=",
|
|
53
62
|
value: e.value
|
|
54
63
|
});
|
|
55
|
-
}, getOperatorOptions:
|
|
64
|
+
}, getOperatorOptions: p, InBasicTextInput: S, InSelect: O, InButtonV2: L, LogicAdapter: E };
|
|
56
65
|
}
|
|
57
66
|
});
|
|
58
67
|
export {
|
|
59
|
-
|
|
68
|
+
K as default
|
|
60
69
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useRecommendationExtensionStore as
|
|
5
|
-
import { isFilterValid as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as d, ref as a, watch as y, computed as g, nextTick as v } from "vue";
|
|
2
|
+
import b from "../../../wrappers/WpDrawer.vue.js";
|
|
3
|
+
import { useTranslations as w } from "../../../../composables/useTranslations.js";
|
|
4
|
+
import { useRecommendationExtensionStore as F } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
5
|
+
import { isFilterValid as _ } from "../../../../extensions/Blocks/Recommendation/validation/filterSchema.js";
|
|
6
|
+
import h from "./Filters.vue.js";
|
|
7
|
+
const I = /* @__PURE__ */ d({
|
|
8
8
|
__name: "FilterSelectionDrawer",
|
|
9
|
-
setup(
|
|
10
|
-
const r =
|
|
11
|
-
|
|
9
|
+
setup(S) {
|
|
10
|
+
const r = w(), e = F(), t = a(!1), o = a(!1), c = a();
|
|
11
|
+
y(() => e.filterSelectionDrawerStatus, (n) => {
|
|
12
12
|
n && (o.value = !1);
|
|
13
13
|
});
|
|
14
|
-
const
|
|
14
|
+
const f = g(() => ({
|
|
15
15
|
primaryButton: {
|
|
16
16
|
styling: "solid",
|
|
17
17
|
type: "primary",
|
|
@@ -27,24 +27,25 @@ const R = /* @__PURE__ */ p({
|
|
|
27
27
|
disabledStatus: t.value
|
|
28
28
|
}
|
|
29
29
|
}));
|
|
30
|
-
return { __sfc: !0, trans: r, store: e, isApplying: t, submitted: o, filtersRef:
|
|
30
|
+
return { __sfc: !0, trans: r, store: e, isApplying: t, submitted: o, filtersRef: c, footerButtonGroupOptions: f, cancelModal: () => {
|
|
31
31
|
e.cancelFilterDrawer();
|
|
32
32
|
}, applyFilter: async () => {
|
|
33
|
+
var u;
|
|
33
34
|
o.value = !0;
|
|
34
|
-
const { filters: n } = e.recommendationConfigs,
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
const { filterGroup:
|
|
38
|
-
|
|
35
|
+
const { filters: n } = e.recommendationConfigs, i = n.find((l) => !_(l));
|
|
36
|
+
if (i) {
|
|
37
|
+
(u = c.value) == null || u.switchToGroup(i.filterGroup), await v();
|
|
38
|
+
const { filterGroup: l, filterNumber: p } = i, m = `[data-filter-group="${l}"][data-filter-number="${p}"]`, s = document.querySelector(m);
|
|
39
|
+
s == null || s.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
41
42
|
t.value = !0, e.patchCurrentBlockConfig(
|
|
42
43
|
{ filters: e.recommendationConfigs.filters },
|
|
43
44
|
{ triggerRefetch: !0 }
|
|
44
45
|
), e.closeFilterDrawer(), t.value = !1;
|
|
45
|
-
}, WpDrawer:
|
|
46
|
+
}, WpDrawer: b, Filters: h };
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
I as default
|
|
50
51
|
};
|