@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,20 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from "./ItemsOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
3
|
+
import m from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var l = function() {
|
|
5
|
+
var e, n, r, i, s, a;
|
|
6
|
+
var o = this, d = o._self._c, t = o._self._setupProxy;
|
|
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) {
|
|
7
8
|
return t.onboardingStore.close("itemsOnboarding");
|
|
8
9
|
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
}, c = [], p = /* @__PURE__ */ m(
|
|
11
|
+
g,
|
|
12
|
+
l,
|
|
13
|
+
c,
|
|
13
14
|
!1,
|
|
14
15
|
null,
|
|
15
16
|
"796d193b"
|
|
16
17
|
);
|
|
17
|
-
const
|
|
18
|
+
const I = p.exports;
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
I as default
|
|
20
21
|
};
|
|
@@ -7,87 +7,89 @@ import { InOnboard as B } from "@useinsider/design-system-vue";
|
|
|
7
7
|
const E = /* @__PURE__ */ b({
|
|
8
8
|
__name: "ItemsOnboarding",
|
|
9
9
|
setup(C) {
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
if (!
|
|
10
|
+
const i = x(), o = k(), { getTopPosition: n } = l(), r = (t) => {
|
|
11
|
+
const e = document.querySelector(T);
|
|
12
|
+
if (!(e != null && e.shadowRoot))
|
|
13
13
|
return;
|
|
14
|
-
const { shadowRoot:
|
|
14
|
+
const { shadowRoot: s } = e, c = s.querySelector(t);
|
|
15
15
|
c && c.click();
|
|
16
16
|
}, a = d(() => [
|
|
17
17
|
{
|
|
18
18
|
classes: "guido-items-onboarding-card-1",
|
|
19
19
|
right: "426px",
|
|
20
|
-
top:
|
|
20
|
+
top: n(90),
|
|
21
21
|
position: "Right Top",
|
|
22
|
-
title:
|
|
23
|
-
description:
|
|
22
|
+
title: i("email-editor.onboarding-items-title"),
|
|
23
|
+
description: i("email-editor.onboarding-items-description"),
|
|
24
24
|
imageSource: "",
|
|
25
25
|
backButtonClick: () => {
|
|
26
26
|
},
|
|
27
27
|
nextButtonType: "text",
|
|
28
|
-
nextButtonText:
|
|
28
|
+
nextButtonText: i("products.next"),
|
|
29
29
|
nextButtonClick: () => {
|
|
30
|
-
|
|
30
|
+
o.next("itemsOnboarding");
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
classes: "guido-items-onboarding-card-2",
|
|
35
35
|
right: "426px",
|
|
36
|
-
top:
|
|
36
|
+
top: n(218),
|
|
37
37
|
position: "Right Top",
|
|
38
|
-
title:
|
|
39
|
-
description:
|
|
38
|
+
title: i("email-editor.onboarding-items-item-type-title"),
|
|
39
|
+
description: i("email-editor.onboarding-items-item-type-description"),
|
|
40
40
|
imageSource: "",
|
|
41
41
|
backButtonType: "text",
|
|
42
|
-
backButtonText:
|
|
42
|
+
backButtonText: i("ds-steps.back"),
|
|
43
43
|
backButtonClick: () => {
|
|
44
|
-
|
|
44
|
+
o.previous("itemsOnboarding");
|
|
45
45
|
},
|
|
46
46
|
nextButtonType: "text",
|
|
47
|
-
nextButtonText:
|
|
47
|
+
nextButtonText: i("products.next"),
|
|
48
48
|
nextButtonClick: () => {
|
|
49
|
-
|
|
49
|
+
o.next("itemsOnboarding");
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
classes: "guido-items-onboarding-card-3",
|
|
54
54
|
right: "426px",
|
|
55
|
-
top:
|
|
55
|
+
top: n(140),
|
|
56
56
|
position: "Right Top",
|
|
57
|
-
title:
|
|
58
|
-
description:
|
|
57
|
+
title: i("email-editor.onboarding-items-composition-title"),
|
|
58
|
+
description: i("email-editor.onboarding-items-composition-description"),
|
|
59
59
|
imageSource: "",
|
|
60
60
|
backButtonType: "text",
|
|
61
|
-
backButtonText:
|
|
61
|
+
backButtonText: i("ds-steps.back"),
|
|
62
62
|
backButtonClick: () => {
|
|
63
|
-
|
|
63
|
+
o.previous("itemsOnboarding");
|
|
64
64
|
},
|
|
65
65
|
nextButtonType: "text",
|
|
66
|
-
nextButtonText:
|
|
66
|
+
nextButtonText: i("action-builder.ok"),
|
|
67
67
|
nextButtonClick: () => {
|
|
68
|
-
|
|
68
|
+
o.close("itemsOnboarding");
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
]),
|
|
72
|
-
t
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
]), g = d(() => o.onboardings.itemsOnboarding.config.length > 0 && o.onboardings.itemsOnboarding.isActive), p = () => {
|
|
72
|
+
var t, e;
|
|
73
|
+
(e = (t = o.getItemsCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
|
|
74
|
+
}, u = () => {
|
|
75
|
+
var t, e;
|
|
76
|
+
(e = (t = o.getItemsCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
|
|
75
77
|
};
|
|
76
78
|
return m(
|
|
77
|
-
() =>
|
|
78
|
-
(
|
|
79
|
-
|
|
79
|
+
() => o.isActive("itemsOnboarding"),
|
|
80
|
+
(t) => {
|
|
81
|
+
t && o.setConfig("itemsOnboarding", a.value);
|
|
80
82
|
},
|
|
81
83
|
{ immediate: !0 }
|
|
82
84
|
), m(
|
|
83
|
-
() =>
|
|
84
|
-
(
|
|
85
|
-
if (!
|
|
85
|
+
() => o.onboardings.itemsOnboarding.cardIndex,
|
|
86
|
+
(t, e) => {
|
|
87
|
+
if (!o.isActive("itemsOnboarding"))
|
|
86
88
|
return;
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
+
const s = `${e}-${t}`;
|
|
90
|
+
s === "1-2" && r(O), s === "2-1" && r(f);
|
|
89
91
|
}
|
|
90
|
-
), { __sfc: !0, trans:
|
|
92
|
+
), { __sfc: !0, trans: i, onboardingStore: o, getTopPosition: n, switchTab: r, onboardingCardsConfig: a, isVisible: g, handleNext: p, handleBack: u, InOnboard: B };
|
|
91
93
|
}
|
|
92
94
|
});
|
|
93
95
|
export {
|
|
@@ -1,23 +1,26 @@
|
|
|
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 v, ref as D, computed as o } from "vue";
|
|
2
|
+
import _ from "../../wrappers/WpModal.vue.js";
|
|
3
|
+
import { useConfig as h } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useTranslations as y } from "../../../composables/useTranslations.js";
|
|
5
|
+
import { ACADEMY_LINKS as c } from "../../../enums/academy.js";
|
|
6
|
+
import L from "../../../static/assets/onboarding-img.svg.js";
|
|
7
|
+
import { useOnboardingStore as C } from "../../../stores/onboarding.js";
|
|
8
|
+
import { isAfterDate as w, formatShortDate as A } from "../../../utils/dateUtil.js";
|
|
9
|
+
const V = /* @__PURE__ */ v({
|
|
10
10
|
__name: "NewVersionPopup",
|
|
11
11
|
emits: ["onboarding-finished"],
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
12
|
+
setup(I, { emit: a }) {
|
|
13
|
+
const e = y(), t = C(), s = D(!0), { config: p } = h(), i = o(() => {
|
|
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(
|
|
14
17
|
i.value || 0
|
|
15
|
-
)),
|
|
18
|
+
)), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), g = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
|
|
16
19
|
sunsetDate: d.value,
|
|
17
|
-
academyLink:
|
|
20
|
+
academyLink: c.EMAIL_EDITOR
|
|
18
21
|
}) : e("email-editor.onboarding-description", {
|
|
19
|
-
academyLink:
|
|
20
|
-
})), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")),
|
|
22
|
+
academyLink: c.EMAIL_EDITOR
|
|
23
|
+
})), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), b = o(() => ({
|
|
21
24
|
primaryButton: {
|
|
22
25
|
type: "primary",
|
|
23
26
|
labelText: e("left-menu.discover-now")
|
|
@@ -29,15 +32,15 @@ const x = /* @__PURE__ */ g({
|
|
|
29
32
|
})), r = () => {
|
|
30
33
|
s.value = !1, a("onboarding-finished");
|
|
31
34
|
};
|
|
32
|
-
return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle:
|
|
35
|
+
return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle: f, popupDescription: g, secondaryButtonLabel: u, footerButtonOptions: b, closePopup: r, handleDiscoverNow: () => {
|
|
33
36
|
t.onDiscoverNowClicked(), r();
|
|
34
37
|
}, handleRemindLater: () => {
|
|
35
38
|
t.onRemindMeLater(), r();
|
|
36
39
|
}, handleClose: () => {
|
|
37
40
|
t.onNewVersionPopupClose(), r();
|
|
38
|
-
}, WpModal:
|
|
41
|
+
}, WpModal: _, onboardingImageSvg: L };
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
44
|
export {
|
|
42
|
-
|
|
45
|
+
V as default
|
|
43
46
|
};
|
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as b, computed as e, onMounted as O, watch as t } from "vue";
|
|
2
|
+
import u from "./AMPOnboarding.vue.js";
|
|
3
|
+
import v from "./GenericOnboarding.vue.js";
|
|
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";
|
|
4
10
|
import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
|
|
5
|
-
import { usePreviewStore as
|
|
6
|
-
const
|
|
11
|
+
import { usePreviewStore as A } from "../../../stores/preview.js";
|
|
12
|
+
const G = /* @__PURE__ */ b({
|
|
7
13
|
__name: "OnboardingWrapper",
|
|
8
14
|
emits: ["onboarding-finished"],
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{ type: "
|
|
14
|
-
{ type: "
|
|
15
|
-
{ type: "
|
|
16
|
-
{ type: "
|
|
17
|
-
|
|
18
|
-
|
|
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 () => {
|
|
15
|
+
setup(H, { emit: f }) {
|
|
16
|
+
const o = _(), r = P(), s = A(), { isTestPartner: a } = w(), p = e(() => r.isStripoInitialized), d = e(() => a()), m = [
|
|
17
|
+
{ type: "newVersionPopup", component: y },
|
|
18
|
+
{ type: "genericOnboarding", component: v },
|
|
19
|
+
{ type: "textBlockOnboarding", component: S },
|
|
20
|
+
{ type: "versionHistoryOnboarding", component: h },
|
|
21
|
+
{ type: "ampOnboarding", component: u },
|
|
22
|
+
{ type: "itemsOnboarding", component: l }
|
|
23
|
+
], c = (n) => d.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), g = e(() => m.filter((n) => c(n.type)));
|
|
24
|
+
return O(async () => {
|
|
21
25
|
await o.fetchUserModalState();
|
|
22
|
-
}),
|
|
26
|
+
}), t(
|
|
23
27
|
() => r.isVersionHistoryOpen,
|
|
24
|
-
(n,
|
|
25
|
-
n && !
|
|
28
|
+
(n, i) => {
|
|
29
|
+
n && !i && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && i && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
|
|
26
30
|
}
|
|
27
|
-
),
|
|
28
|
-
() =>
|
|
29
|
-
(n,
|
|
30
|
-
|
|
31
|
+
), t(
|
|
32
|
+
() => s.emailFormat,
|
|
33
|
+
(n, i) => {
|
|
34
|
+
i !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
|
|
31
35
|
}
|
|
32
|
-
),
|
|
36
|
+
), t(
|
|
33
37
|
() => r.isPreviewModeOpen,
|
|
34
38
|
(n) => {
|
|
35
39
|
!n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
|
|
36
40
|
}
|
|
37
|
-
), { __sfc: !0,
|
|
41
|
+
), { __sfc: !0, emit: f, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: g };
|
|
38
42
|
}
|
|
39
43
|
});
|
|
40
44
|
export {
|
|
41
|
-
|
|
45
|
+
G as default
|
|
42
46
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "./TextBlockOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
3
|
+
import d from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var g = function() {
|
|
5
|
+
var e, n, r, i, a, s;
|
|
6
|
+
var t = this, c = t._self._c, o = t._self._setupProxy;
|
|
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) {
|
|
7
8
|
return o.onboardingStore.close("textBlockOnboarding");
|
|
8
9
|
}, nextButtonClick: o.handleNext } }) : t._e();
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
}, b = [], p = /* @__PURE__ */ d(
|
|
11
|
+
l,
|
|
12
|
+
g,
|
|
13
|
+
b,
|
|
13
14
|
!1,
|
|
14
15
|
null,
|
|
15
16
|
"cadfc82d"
|
|
16
17
|
);
|
|
17
|
-
const
|
|
18
|
+
const C = p.exports;
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
C as default
|
|
20
21
|
};
|
|
@@ -1,61 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRibbonOffset as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import { InOnboard as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as l, computed as c, watch as g } from "vue";
|
|
2
|
+
import { useRibbonOffset as b } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as x } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useOnboardingStore as u } from "../../../stores/onboarding.js";
|
|
5
|
+
import { InOnboard as p } from "@useinsider/design-system-vue";
|
|
6
|
+
const O = /* @__PURE__ */ l({
|
|
7
7
|
__name: "TextBlockOnboarding",
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
8
|
+
setup(k) {
|
|
9
|
+
const n = x(), o = u(), { getTopPosition: i } = b(), r = c(() => [
|
|
10
10
|
{
|
|
11
11
|
classes: "guido-text-block-onboarding-settings",
|
|
12
12
|
right: "426px",
|
|
13
|
-
top:
|
|
13
|
+
top: i(90),
|
|
14
14
|
position: "Right Top",
|
|
15
|
-
title:
|
|
16
|
-
description:
|
|
15
|
+
title: n("email-editor.onboarding-text-block-title"),
|
|
16
|
+
description: n("email-editor.onboarding-text-block-description"),
|
|
17
17
|
imageSource: "",
|
|
18
18
|
backButtonClick: () => {
|
|
19
19
|
},
|
|
20
20
|
nextButtonType: "text",
|
|
21
|
-
nextButtonText:
|
|
21
|
+
nextButtonText: n("products.next"),
|
|
22
22
|
nextButtonClick: () => {
|
|
23
|
-
|
|
23
|
+
o.next("textBlockOnboarding");
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
classes: "guido-text-block-onboarding-dynamic",
|
|
28
28
|
right: "409px",
|
|
29
|
-
top:
|
|
29
|
+
top: i(607),
|
|
30
30
|
position: "Right Top",
|
|
31
|
-
title:
|
|
32
|
-
description:
|
|
31
|
+
title: n("email-editor.onboarding-dynamic-content-title"),
|
|
32
|
+
description: n("email-editor.onboarding-dynamic-content-description"),
|
|
33
33
|
imageSource: "",
|
|
34
34
|
backButtonType: "text",
|
|
35
|
-
backButtonText:
|
|
35
|
+
backButtonText: n("ds-steps.back"),
|
|
36
36
|
backButtonClick: () => {
|
|
37
|
-
|
|
37
|
+
o.previous("textBlockOnboarding");
|
|
38
38
|
},
|
|
39
39
|
nextButtonType: "text",
|
|
40
|
-
nextButtonText:
|
|
40
|
+
nextButtonText: n("action-builder.ok"),
|
|
41
41
|
nextButtonClick: () => {
|
|
42
|
-
|
|
42
|
+
o.close("textBlockOnboarding");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
]),
|
|
46
|
-
t
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
]), a = c(() => o.onboardings.textBlockOnboarding.config.length > 0 && o.onboardings.textBlockOnboarding.isActive), s = () => {
|
|
46
|
+
var t, e;
|
|
47
|
+
(e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
|
|
48
|
+
}, d = () => {
|
|
49
|
+
var t, e;
|
|
50
|
+
(e = (t = o.getTextBlockCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
|
|
49
51
|
};
|
|
50
|
-
return
|
|
51
|
-
() =>
|
|
52
|
-
(
|
|
53
|
-
|
|
52
|
+
return g(
|
|
53
|
+
() => o.isActive("textBlockOnboarding"),
|
|
54
|
+
(t) => {
|
|
55
|
+
t && o.setConfig("textBlockOnboarding", r.value);
|
|
54
56
|
},
|
|
55
57
|
{ immediate: !0 }
|
|
56
|
-
), { __sfc: !0, trans:
|
|
58
|
+
), { __sfc: !0, trans: n, onboardingStore: o, getTopPosition: i, onboardingCardsConfig: r, isVisible: a, handleNext: s, handleBack: d, InOnboard: p };
|
|
57
59
|
}
|
|
58
60
|
});
|
|
59
61
|
export {
|
|
60
|
-
|
|
62
|
+
O as default
|
|
61
63
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
1
|
+
import g from "./VersionHistoryOnboarding.vue2.js";
|
|
2
|
+
import l from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var c = function() {
|
|
4
|
+
var n, t, i, e, s, a;
|
|
5
|
+
var r = this, d = r._self._c, o = r._self._setupProxy;
|
|
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) {
|
|
6
7
|
return o.onboardingStore.close("versionHistoryOnboarding");
|
|
7
8
|
}, nextButtonClick: o.handleNext } }) : r._e();
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
}, _ = [], p = /* @__PURE__ */ l(
|
|
10
|
+
g,
|
|
11
|
+
c,
|
|
12
|
+
_,
|
|
12
13
|
!1,
|
|
13
14
|
null,
|
|
14
15
|
null
|
|
15
16
|
);
|
|
16
|
-
const
|
|
17
|
+
const m = p.exports;
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
m as default
|
|
19
20
|
};
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRibbonOffset as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import { InOnboard as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as g, computed as s, watch as b } from "vue";
|
|
2
|
+
import { useRibbonOffset as u } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as l } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useOnboardingStore as m } from "../../../stores/onboarding.js";
|
|
5
|
+
import { InOnboard as p } from "@useinsider/design-system-vue";
|
|
6
|
+
const k = /* @__PURE__ */ g({
|
|
7
7
|
__name: "VersionHistoryOnboarding",
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
8
|
+
setup(f) {
|
|
9
|
+
const t = l(), n = m(), { getTopPosition: r } = u(), e = s(() => [
|
|
10
10
|
{
|
|
11
11
|
classes: "guido-version-history-onboarding",
|
|
12
12
|
left: "409px",
|
|
13
|
-
top:
|
|
13
|
+
top: r(192),
|
|
14
14
|
position: "Left Top",
|
|
15
|
-
title:
|
|
16
|
-
description:
|
|
15
|
+
title: t("email-editor.onboarding-version-history-title"),
|
|
16
|
+
description: t("email-editor.onboarding-version-history-description"),
|
|
17
17
|
imageSource: "",
|
|
18
18
|
backButtonClick: () => {
|
|
19
19
|
},
|
|
20
20
|
nextButtonType: "text",
|
|
21
|
-
nextButtonText:
|
|
22
|
-
nextButtonClick: () => void
|
|
21
|
+
nextButtonText: t("action-builder.ok"),
|
|
22
|
+
nextButtonClick: () => void n.close("versionHistoryOnboarding")
|
|
23
23
|
}
|
|
24
|
-
]),
|
|
25
|
-
o
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
]), a = s(() => n.onboardings.versionHistoryOnboarding.config.length > 0 && n.onboardings.versionHistoryOnboarding.isActive), d = () => {
|
|
25
|
+
var o, i;
|
|
26
|
+
(i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.nextButtonClick) == null || i.call(o);
|
|
27
|
+
}, c = () => {
|
|
28
|
+
var o, i;
|
|
29
|
+
(i = (o = n.getVersionHistoryCurrentCard) == null ? void 0 : o.backButtonClick) == null || i.call(o);
|
|
28
30
|
};
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
}, { immediate: !0 }), { __sfc: !0, trans:
|
|
31
|
+
return b(() => n.onboardings.versionHistoryOnboarding.isActive, (o) => {
|
|
32
|
+
o && n.setConfig("versionHistoryOnboarding", e.value);
|
|
33
|
+
}, { immediate: !0 }), { __sfc: !0, trans: t, onboardingStore: n, getTopPosition: r, onboardingCardsConfig: e, isVisible: a, handleNext: d, handleBack: c, InOnboard: p };
|
|
32
34
|
}
|
|
33
35
|
});
|
|
34
36
|
export {
|
|
35
|
-
|
|
37
|
+
k as default
|
|
36
38
|
};
|
|
@@ -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: m } = 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
|
+
})), u = () => {
|
|
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,18 +44,19 @@ 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 m();
|
|
48
|
+
a.value = !1, s && u();
|
|
49
|
+
}, p = () => {
|
|
50
50
|
C(() => {
|
|
51
|
-
document.querySelector("input#guido__template-name-input")
|
|
51
|
+
const e = document.querySelector("input#guido__template-name-input");
|
|
52
|
+
e == null || e.focus();
|
|
52
53
|
});
|
|
53
54
|
}, d = async () => {
|
|
54
|
-
t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1,
|
|
55
|
+
t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1, p();
|
|
55
56
|
};
|
|
56
57
|
return n.$subscribe((e, { isSaveAsTemplateDrawerOpen: s }) => {
|
|
57
58
|
s && d();
|
|
58
|
-
}), { __sfc: !0, trans: o, editorStore: n, saveAsTemplateStore: t, createTemplate:
|
|
59
|
+
}), { __sfc: !0, trans: o, editorStore: n, saveAsTemplateStore: t, createTemplate: m, isSaving: a, isAddingOption: r, templateNameError: l, footerButtonGroupOptions: f, closeModal: u, validateTemplateName: i, handleTemplateName: v, handleAddOption: g, handleCategoryChange: y, handleSelectAllOptions: S, handleResetAllOptions: T, saveTemplate: w, focusToInput: p, initializeDrawer: d, WpDrawer: N, InBasicTextInput: M, InMultiSelect: I };
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
62
|
export {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import _ from "./UnsubscribeWrapper.vue2.js";
|
|
2
|
+
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var c = function() {
|
|
4
|
+
var s, t;
|
|
4
5
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
5
|
-
return n.config
|
|
6
|
-
},
|
|
7
|
-
s,
|
|
6
|
+
return (t = (s = n.config) == null ? void 0 : s.features) != null && t.unsubscribe ? r("div", [r(n.UnsubscribeTypeSelection), r(n.UnsubscribePageSelection)], 1) : e._e();
|
|
7
|
+
}, i = [], a = /* @__PURE__ */ o(
|
|
8
8
|
_,
|
|
9
|
-
|
|
9
|
+
c,
|
|
10
|
+
i,
|
|
10
11
|
!1,
|
|
11
12
|
null,
|
|
12
13
|
null
|
|
13
14
|
);
|
|
14
|
-
const
|
|
15
|
+
const p = a.exports;
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
p as default
|
|
17
18
|
};
|