@useinsider/guido 1.0.3-beta.b438648 → 1.0.3-beta.b702168

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.
Files changed (106) hide show
  1. package/README.md +0 -1
  2. package/dist/components/Guido.vue.js +9 -11
  3. package/dist/components/Guido.vue2.js +13 -13
  4. package/dist/components/organisms/header/HeaderWrapper.vue.js +8 -10
  5. package/dist/components/organisms/header/HeaderWrapper.vue2.js +13 -14
  6. package/dist/components/organisms/header/RightSlot.vue.js +7 -9
  7. package/dist/components/organisms/header/RightSlot.vue2.js +23 -24
  8. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +1 -1
  9. package/dist/config/migrator/index.js +6 -7
  10. package/dist/extensions/Blocks/Recommendation/block.js +3 -6
  11. package/dist/extensions/Blocks/Recommendation/control.js +40 -69
  12. package/dist/extensions/Blocks/Recommendation/extension.js +7 -42
  13. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +22 -107
  14. package/dist/extensions/Blocks/Recommendation/template.js +200 -0
  15. package/dist/extensions/Blocks/common-control.js +43 -125
  16. package/dist/guido.css +1 -1
  17. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +100 -307
  18. package/dist/src/components/Guido.vue.d.ts +0 -1
  19. package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
  20. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -3
  21. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -1
  22. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -6
  23. package/dist/src/extensions/Blocks/Recommendation/template.d.ts +6 -0
  24. package/dist/src/extensions/Blocks/common-control.d.ts +0 -21
  25. package/dist/static/styles/customEditorStyle.css.js +0 -5
  26. package/package.json +2 -2
  27. package/dist/config/migrator/recommendationMigrator.js +0 -293
  28. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
  29. package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
  30. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
  31. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
  32. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
  33. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
  34. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
  35. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
  36. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
  37. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
  38. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
  39. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
  40. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
  41. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
  42. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
  43. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
  44. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
  45. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
  46. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
  47. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
  48. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
  49. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
  50. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
  51. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
  52. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
  53. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
  54. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
  55. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
  56. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
  57. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
  58. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
  59. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
  60. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
  61. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
  62. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
  63. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
  64. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
  65. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
  66. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
  67. package/dist/src/config/migrator/recommendationMigrator.d.ts +0 -1
  68. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
  69. package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -51
  70. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
  71. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
  72. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
  73. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
  74. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
  75. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
  76. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
  77. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
  78. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
  79. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
  80. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
  81. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
  82. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
  83. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
  84. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
  85. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
  86. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
  87. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
  88. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
  89. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
  90. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
  91. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
  92. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
  93. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
  94. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
  95. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
  96. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
  97. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
  98. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
  99. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
  100. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
  101. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
  102. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
  103. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
  104. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
  105. package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +0 -16
  106. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
package/README.md CHANGED
@@ -165,7 +165,6 @@ export default {
165
165
  | `on-change` | void | It Fires once for managing leave modal etc. |
166
166
  | `ready` | void | Fired when the editor is ready and template is loaded |
167
167
  | `onboarding-finished` | void | Fired when the onboarding popup is dismissed or completed, allowing parent applications to track onboarding state |
168
- | `test-email:click` | - | Fired when user clicks the test email button in the header |
169
168
 
170
169
  ### Guido Exposed Methods
171
170
  ```typescript
@@ -1,22 +1,20 @@
1
- import t from "./Guido.vue2.js";
1
+ import i from "./Guido.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var i = this, r = i._self._c, e = i._self._setupProxy;
6
- return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef", on: { "test-email:click": function(o) {
7
- return e.emit("test-email:click");
8
- } } }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : i._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? i._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(o) {
4
+ var t = function() {
5
+ var o = this, r = o._self._c, e = o._self._setupProxy;
6
+ return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(_) {
9
7
  return e.emit("onboarding:finished");
10
8
  } } }), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
11
- }, s = [], d = /* @__PURE__ */ a(
9
+ }, n = [], s = /* @__PURE__ */ a(
10
+ i,
12
11
  t,
13
12
  n,
14
- s,
15
13
  !1,
16
14
  null,
17
- "486a715d"
15
+ "3c910a93"
18
16
  );
19
- const u = d.exports;
17
+ const v = s.exports;
20
18
  export {
21
- u as default
19
+ v as default
22
20
  };
@@ -14,8 +14,8 @@ import { useStripoApi as oe } from "../services/stripoApi.js";
14
14
  import { useConfigStore as te } from "../stores/config.js";
15
15
  import { useDynamicContentStore as ne } from "../stores/dynamic-content.js";
16
16
  import { useEditorStore as re } from "../stores/editor.js";
17
- import { usePreviewStore as ie } from "../stores/preview.js";
18
- import { useUnsubscribeStore as ae } from "../stores/unsubscribe.js";
17
+ import { usePreviewStore as ae } from "../stores/preview.js";
18
+ import { useUnsubscribeStore as ie } from "../stores/unsubscribe.js";
19
19
  import se from "../node_modules/lodash-es/merge.js";
20
20
  const Ge = /* @__PURE__ */ R({
21
21
  __name: "Guido",
@@ -31,15 +31,15 @@ const Ge = /* @__PURE__ */ R({
31
31
  guidoConfig: null,
32
32
  templateConfig: null
33
33
  },
34
- emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
35
- setup(_, { expose: k, emit: t }) {
36
- const l = _, L = I(
34
+ emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished"],
35
+ setup(_, { expose: L, emit: t }) {
36
+ const u = _, k = I(
37
37
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
38
38
  ), A = I(
39
39
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
40
- ), u = x(), i = ne(), p = ae(), g = te(), a = re(), N = ie(), n = U(() => a.hasChanges), { getPartnerName: f, getProductType: y, isTestPartner: F } = O(), v = () => {
40
+ ), l = x(), a = ne(), p = ie(), g = te(), i = re(), N = ae(), n = U(() => i.hasChanges), { getPartnerName: f, getProductType: y, isTestPartner: F } = O(), v = () => {
41
41
  var e;
42
- return (e = u.value) == null ? void 0 : e.handleSave(!0);
42
+ return (e = l.value) == null ? void 0 : e.handleSave(!0);
43
43
  }, {
44
44
  templateId: s,
45
45
  userId: b,
@@ -51,8 +51,8 @@ const Ge = /* @__PURE__ */ R({
51
51
  productType: d = y(),
52
52
  messageType: S = J,
53
53
  username: w = q
54
- } = l, m = (o == null ? void 0 : o.preselectedDynamicContentList) || [];
55
- a.templateId = s, window.GuidoConfig = se(Q, C), window.GuidoConfig.partner = {
54
+ } = u, m = (o == null ? void 0 : o.preselectedDynamicContentList) || [];
55
+ i.templateId = s, window.GuidoConfig = se(Q, C), window.GuidoConfig.partner = {
56
56
  partnerName: c,
57
57
  productType: d,
58
58
  messageType: S
@@ -83,7 +83,7 @@ const Ge = /* @__PURE__ */ R({
83
83
  }
84
84
  });
85
85
  const E = (e) => {
86
- console.debug("dynamic-content:close", e), i.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
86
+ console.debug("dynamic-content:close", e), a.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
87
87
  }, P = () => {
88
88
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
89
89
  };
@@ -99,7 +99,7 @@ const Ge = /* @__PURE__ */ R({
99
99
  forceRecreate: !0
100
100
  // TODO: It should be false for old templates. We will communicate with Stripo
101
101
  };
102
- e.html || (e = await T(), e.html = await W(e.html)), await D(e), i.selectedDynamicContentList = m;
102
+ e.html || (e = await T(), e.html = await W(e.html)), await D(e), a.selectedDynamicContentList = m;
103
103
  } catch (e) {
104
104
  console.error("Failed to initialize Stripo editor:", e);
105
105
  }
@@ -113,14 +113,14 @@ const Ge = /* @__PURE__ */ R({
113
113
  } catch {
114
114
  console.debug("Failed to remove Stripo editor: No editor found");
115
115
  }
116
- }), k({
116
+ }), L({
117
117
  dynamicContent: {
118
118
  insert: E,
119
119
  close: P
120
120
  },
121
121
  hasChanges: n,
122
122
  saveSilent: v
123
- }), { __sfc: !0, PreviewContainer: L, OnboardingWrapper: A, headerWrapperRef: u, dynamicContentStore: i, unsubscribeStore: p, props: l, configStore: g, editorStore: a, previewStore: N, hasChanges: n, getPartnerName: f, getProductType: y, isTestPartner: F, saveSilent: v, templateId: s, userId: b, guidoConfig: C, templateConfig: o, html: r, css: h, partnerName: c, productType: d, messageType: S, username: w, preselectedDynamicContentList: m, emit: t, initPlugin: D, getDefaultTemplate: T, noHeader: H, insertDynamicContent: E, closeDynamicContent: P, Toaster: V, FilterSelectionDrawer: X, HeaderWrapper: Y, LoadingWrapper: Z, SaveAsTemplateDrawer: $, UnsubscribeWrapper: ee };
123
+ }), { __sfc: !0, PreviewContainer: k, OnboardingWrapper: A, headerWrapperRef: l, dynamicContentStore: a, unsubscribeStore: p, props: u, configStore: g, editorStore: i, previewStore: N, hasChanges: n, getPartnerName: f, getProductType: y, isTestPartner: F, saveSilent: v, templateId: s, userId: b, guidoConfig: C, templateConfig: o, html: r, css: h, partnerName: c, productType: d, messageType: S, username: w, preselectedDynamicContentList: m, emit: t, initPlugin: D, getDefaultTemplate: T, noHeader: H, insertDynamicContent: E, closeDynamicContent: P, Toaster: V, FilterSelectionDrawer: X, HeaderWrapper: Y, LoadingWrapper: Z, SaveAsTemplateDrawer: $, UnsubscribeWrapper: ee };
124
124
  }
125
125
  });
126
126
  export {
@@ -1,19 +1,17 @@
1
1
  import o from "./HeaderWrapper.vue2.js";
2
- import n from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var s = function() {
2
+ import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var n = function() {
4
4
  var t = this, r = t._self._c, e = t._self._setupProxy;
5
- return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot, { ref: "rightSlotRef", on: { "test-email:click": function(c) {
6
- return e.emit("test-email:click");
7
- } } })], 1)]);
8
- }, i = [], a = /* @__PURE__ */ n(
5
+ return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot, { ref: "rightSlotRef" })], 1)]);
6
+ }, a = [], _ = /* @__PURE__ */ s(
9
7
  o,
10
- s,
11
- i,
8
+ n,
9
+ a,
12
10
  !1,
13
11
  null,
14
12
  null
15
13
  );
16
- const d = a.exports;
14
+ const c = _.exports;
17
15
  export {
18
- d as default
16
+ c as default
19
17
  };
@@ -1,21 +1,20 @@
1
- import { defineComponent as i, ref as n } from "vue";
1
+ import { defineComponent as n, ref as m } from "vue";
2
2
  import { InContainer as a } from "@useinsider/design-system-vue";
3
- import l from "./LeftSlot.vue.js";
4
- import f from "./MiddleSlot.vue.js";
5
- import p from "./RightSlot.vue.js";
6
- const h = /* @__PURE__ */ i({
3
+ import f from "./LeftSlot.vue.js";
4
+ import p from "./MiddleSlot.vue.js";
5
+ import i from "./RightSlot.vue.js";
6
+ const c = /* @__PURE__ */ n({
7
7
  __name: "HeaderWrapper",
8
- emits: ["test-email:click"],
9
- setup(s, { expose: o, emit: r }) {
10
- const e = n(null);
11
- return o({
12
- handleSave: (m) => {
13
- var t;
14
- return (t = e.value) == null ? void 0 : t.handleSave(m);
8
+ setup(l, { expose: r }) {
9
+ const e = m(null);
10
+ return r({
11
+ handleSave: (t) => {
12
+ var o;
13
+ return (o = e.value) == null ? void 0 : o.handleSave(t);
15
14
  }
16
- }), { __sfc: !0, rightSlotRef: e, emit: r, InContainer: a, LeftSlot: l, MiddleSlot: f, RightSlot: p };
15
+ }), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
17
16
  }
18
17
  });
19
18
  export {
20
- h as default
19
+ c as default
21
20
  };
@@ -1,17 +1,15 @@
1
- import a from "./RightSlot.vue2.js";
2
- import l from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var r = function() {
1
+ import n from "./RightSlot.vue2.js";
2
+ import a from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var l = function() {
4
4
  var s, i;
5
5
  var o = this, e = o._self._c, t = o._self._setupProxy;
6
- return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.versionHistory ? 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 } }), (i = t.config.features) != null && i.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(), 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"), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: function(n) {
7
- return t.emit("test-email:click");
8
- } } }), 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(n) {
6
+ return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.versionHistory ? 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 } }), (i = t.config.features) != null && i.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(), 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"), "tooltip-text": t.trans("newsletter.test-email") } }), 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(p) {
9
7
  return t.handleSave(!1);
10
8
  } } })], 1);
11
- }, u = [], d = /* @__PURE__ */ l(
12
- a,
9
+ }, r = [], d = /* @__PURE__ */ a(
10
+ n,
11
+ l,
13
12
  r,
14
- u,
15
13
  !1,
16
14
  null,
17
15
  null
@@ -1,36 +1,35 @@
1
- import { defineComponent as H, ref as p, computed as _ } from "vue";
2
- import { useConfig as h } from "../../../composables/useConfig.js";
3
- import { useExport as V } from "../../../composables/useExport.js";
4
- import { useSave as x } from "../../../composables/useSave.js";
5
- import { useTranslations as w } from "../../../composables/useTranslations.js";
6
- import { useVersionHistoryApi as T } from "../../../composables/useVersionHistoryApi.js";
7
- import { useEditorStore as E } from "../../../stores/editor.js";
8
- import { getTooltipOptions as O } from "../../../utils/tooltipUtils.js";
9
- import { InButtonV2 as A } from "@useinsider/design-system-vue";
10
- const F = /* @__PURE__ */ H({
1
+ import { defineComponent as g, ref as l, computed as H } from "vue";
2
+ import { useConfig as _ } from "../../../composables/useConfig.js";
3
+ import { useExport as h } from "../../../composables/useExport.js";
4
+ import { useSave as V } from "../../../composables/useSave.js";
5
+ import { useTranslations as x } from "../../../composables/useTranslations.js";
6
+ import { useVersionHistoryApi as w } from "../../../composables/useVersionHistoryApi.js";
7
+ import { useEditorStore as T } from "../../../stores/editor.js";
8
+ import { getTooltipOptions as E } from "../../../utils/tooltipUtils.js";
9
+ import { InButtonV2 as O } from "@useinsider/design-system-vue";
10
+ const z = /* @__PURE__ */ g({
11
11
  __name: "RightSlot",
12
- emits: ["test-email:click"],
13
- setup(C, { expose: m, emit: c }) {
14
- const { config: u } = h(), { exportHtml: r } = V(), { save: n } = x(), { openVersionHistory: i, closeVersionHistory: a } = T(), t = E(), o = w(), e = p(!1), s = p(!1), f = () => {
15
- if (t.isVersionHistoryOpen) {
12
+ setup(A, { expose: m }) {
13
+ const { config: u } = _(), { exportHtml: r } = h(), { save: n } = V(), { openVersionHistory: i, closeVersionHistory: a } = w(), o = T(), t = x(), e = l(!1), s = l(!1), c = () => {
14
+ if (o.isVersionHistoryOpen) {
16
15
  a();
17
16
  return;
18
17
  }
19
18
  i();
20
- }, v = async () => {
19
+ }, f = async () => {
21
20
  e.value = !0, await r(), e.value = !1;
22
- }, d = () => {
23
- t.isSaveAsTemplateDrawerOpen = !0;
24
- }, y = _(() => t.isVersionHistoryOpen ? o("newsletter.close-version-history") : o("newsletter.version-history")), l = async (S) => {
25
- s.value = !0, t.loadingStatus = !0;
26
- const g = await n(S);
27
- return s.value = !1, t.loadingStatus = !1, g;
21
+ }, v = () => {
22
+ o.isSaveAsTemplateDrawerOpen = !0;
23
+ }, d = H(() => o.isVersionHistoryOpen ? t("newsletter.close-version-history") : t("newsletter.version-history")), p = async (y) => {
24
+ s.value = !0, o.loadingStatus = !0;
25
+ const S = await n(y);
26
+ return s.value = !1, o.loadingStatus = !1, S;
28
27
  };
29
28
  return m({
30
- handleSave: l
31
- }), { __sfc: !0, config: u, exportHtml: r, save: n, openVersionHistory: i, closeVersionHistory: a, editorStore: t, trans: o, isExporting: e, isSaving: s, emit: c, handleVersionHistory: f, handleExport: v, handleSaveAs: d, versionHistoryTooltipText: y, handleSave: l, getTooltipOptions: O, InButtonV2: A };
29
+ handleSave: p
30
+ }), { __sfc: !0, config: u, exportHtml: r, save: n, openVersionHistory: i, closeVersionHistory: a, editorStore: o, trans: t, isExporting: e, isSaving: s, handleVersionHistory: c, handleExport: f, handleSaveAs: v, versionHistoryTooltipText: d, handleSave: p, getTooltipOptions: E, InButtonV2: O };
32
31
  }
33
32
  });
34
33
  export {
35
- F as default
34
+ z as default
36
35
  };
@@ -11,7 +11,7 @@ const I = /* @__PURE__ */ g({
11
11
  emits: ["onboarding-finished"],
12
12
  setup(w, { emit: a }) {
13
13
  const e = h(), t = _(), s = b(!0), { config: p } = D(), i = o(() => p.migrationDate), n = o(() => C(i.value || 0)), d = o(() => L(
14
- i.value
14
+ i.value * 1e3
15
15
  )), m = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
16
16
  sunsetDate: d.value,
17
17
  academyLink: l
@@ -1,12 +1,11 @@
1
- import { migrateCheckbox as m } from "./checkboxMigrator.js";
2
- import { migrateCouponBlock as o } from "./couponBlockMigrator.js";
1
+ import { migrateCheckbox as o } from "./checkboxMigrator.js";
2
+ import { migrateCouponBlock as m } from "./couponBlockMigrator.js";
3
3
  import { migrateRadioButton as i } from "./radioButtonMigrator.js";
4
- import { migrateRecommendation as e } from "./recommendationMigrator.js";
5
- import { migrateUnsubscribe as a } from "./unsubscribeMigrator.js";
6
- const s = async (t) => {
4
+ import { migrateUnsubscribe as e } from "./unsubscribeMigrator.js";
5
+ const c = async (t) => {
7
6
  let r = t;
8
- return r = m(r), r = i(r), r = await a(r), r = o(r), r = e(r), r;
7
+ return r = o(r), r = i(r), r = await e(r), r = m(r), r;
9
8
  };
10
9
  export {
11
- s as migrate
10
+ c as migrate
12
11
  };
@@ -1,10 +1,7 @@
1
1
  import { Block as e, BlockCompositionType as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { getDefaultTemplate as o } from "./templates/blockTemplate.js";
2
+ import { getDefaultTemplate as o } from "./template.js";
3
3
  const n = "recommendation-block";
4
- class m extends e {
5
- constructor() {
6
- super();
7
- }
4
+ class c extends e {
8
5
  getId() {
9
6
  return n;
10
7
  }
@@ -26,5 +23,5 @@ class m extends e {
26
23
  }
27
24
  export {
28
25
  n as BLOCK_ID,
29
- m as RecommendationBlock
26
+ c as RecommendationBlock
30
27
  };
@@ -1,14 +1,11 @@
1
1
  var _ = Object.defineProperty;
2
- var R = (s, n, e) => n in s ? _(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e;
3
- var r = (s, n, e) => R(s, typeof n != "symbol" ? n + "" : n, e);
4
- import { currencyDecimalCounts as l, currencyOperators as c, currencyLocationMaps as h } from "../../../enums/extensions/recommendationBlock.js";
5
- import { UEAttr as m, ModificationDescription as S } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
6
- import { CommonControl as g } from "../common-control.js";
7
- import { useRecommendationExtensionStore as O } from "./store/recommendation.js";
8
- import { prepareProductRows as p } from "./templates/blockTemplate.js";
9
- import { DEFAULT_CARD_COMPOSITION as C, getDefaultProducts as E } from "./templates/templateUtils.js";
10
- import { useDebounceFn as U } from "../../../node_modules/@vueuse/shared/index.js";
11
- const L = "ui-elements-recommendation-block", t = {
2
+ var R = (o, n, e) => n in o ? _(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
3
+ var r = (o, n, e) => R(o, typeof n != "symbol" ? n + "" : n, e);
4
+ import { currencyDecimalCounts as c, currencyOperators as a, currencyLocationMaps as l } from "../../../enums/extensions/recommendationBlock.js";
5
+ import { UEAttr as d } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
6
+ import { CommonControl as m } from "../common-control.js";
7
+ import { useRecommendationExtensionStore as S } from "./store/recommendation.js";
8
+ const g = "ui-elements-recommendation-block", t = {
12
9
  ALGORITHM: "strategy",
13
10
  PRODUCT_IDS: "productIds",
14
11
  LOCALE: "language",
@@ -24,21 +21,18 @@ const L = "ui-elements-recommendation-block", t = {
24
21
  SHUFFLE_PRODUCTS: "shuffleProducts",
25
22
  RESPONSIVE: "unresponsive"
26
23
  };
27
- class b extends g {
24
+ class p extends m {
28
25
  constructor() {
29
26
  super(...arguments);
30
- r(this, "store", O());
27
+ r(this, "store", S());
31
28
  r(this, "storeUnsubscription", () => {
32
29
  });
33
30
  r(this, "addFilterListener", () => {
34
31
  });
35
32
  r(this, "addFilterButton", null);
36
- r(this, "_debouncedRegenerateProductRows", U(() => {
37
- this._regenerateProductRows();
38
- }, 500));
39
33
  }
40
34
  getId() {
41
- return L;
35
+ return g;
42
36
  }
43
37
  getTemplate() {
44
38
  return `
@@ -84,22 +78,22 @@ class b extends g {
84
78
  });
85
79
  }
86
80
  _initializeSelectItems() {
87
- const { store: e } = this, o = e.getActivePredictiveAlgorithms, i = e.getLanguages, a = {
88
- [t.ALGORITHM]: o,
81
+ const { store: e } = this, s = e.getActivePredictiveAlgorithms, i = e.getLanguages, C = {
82
+ [t.ALGORITHM]: s,
89
83
  [t.LOCALE]: i,
90
84
  [t.CURRENCY]: e.currencyList,
91
- [t.CURRENCY_LOCATION]: h,
85
+ [t.CURRENCY_LOCATION]: l,
92
86
  [t.CURRENCY_SYMBOL]: e.getCurrencySymbolList,
93
- [t.CURRENCY_THOUSAND_SEPARATOR]: c,
94
- [t.CURRENCY_DECIMAL_SEPARATOR]: c,
95
- [t.CURRENCY_DECIMAL_COUNT]: l,
87
+ [t.CURRENCY_THOUSAND_SEPARATOR]: a,
88
+ [t.CURRENCY_DECIMAL_SEPARATOR]: a,
89
+ [t.CURRENCY_DECIMAL_COUNT]: c,
96
90
  [t.PRODUCT_COUNT]: Number(e.recommendationConfigs.size),
97
91
  [t.PRODUCT_IN_ROW]: e.recommendationConfigs.cardsInRow,
98
92
  [t.SHUFFLE_PRODUCTS]: e.recommendationConfigs.shuffleProducts,
99
93
  [t.RESPONSIVE]: !e.recommendationConfigs.unresponsive
100
94
  };
101
- Object.entries(a).forEach(([u, d]) => {
102
- this.api.setUIEAttribute(u, m.SELECTPICKER.items, d);
95
+ Object.entries(C).forEach(([u, h]) => {
96
+ this.api.setUIEAttribute(u, d.SELECTPICKER.items, h);
103
97
  });
104
98
  }
105
99
  _getAlgorithms() {
@@ -145,7 +139,7 @@ class b extends g {
145
139
  this._GuSelect({
146
140
  name: t.CURRENCY_LOCATION,
147
141
  placeholder: "Select Currency Location",
148
- options: h
142
+ options: l
149
143
  }),
150
144
  this._GuLabel({ text: "Currency Symbol" }),
151
145
  this._GuSelect({
@@ -157,19 +151,19 @@ class b extends g {
157
151
  this._GuSelect({
158
152
  name: t.CURRENCY_THOUSAND_SEPARATOR,
159
153
  placeholder: "Select Thousand Separator",
160
- options: c
154
+ options: a
161
155
  }),
162
156
  this._GuLabel({ text: "Decimal Separator" }),
163
157
  this._GuSelect({
164
158
  name: t.CURRENCY_DECIMAL_SEPARATOR,
165
159
  placeholder: "Select Decimal Separator",
166
- options: c
160
+ options: a
167
161
  }),
168
162
  this._GuLabel({ text: "Decimal Count" }),
169
163
  this._GuSelect({
170
164
  name: t.CURRENCY_DECIMAL_COUNT,
171
165
  placeholder: "Select Decimal Count",
172
- options: l
166
+ options: c
173
167
  })
174
168
  ])}
175
169
  `;
@@ -223,62 +217,39 @@ class b extends g {
223
217
  filterSelectionDrawerStatus: !0
224
218
  });
225
219
  }
226
- _onDataChange(e, o) {
227
- this.currentNode && (this.store.$patch({
220
+ _onDataChange(e, s) {
221
+ this.currentNode && this.store.$patch({
228
222
  recommendationConfigs: {
229
- [e]: o
223
+ [e]: s
230
224
  }
231
- }), this._debouncedRegenerateProductRows());
232
- }
233
- /**
234
- * Get the current card composition from block data attribute or use default
235
- */
236
- _getCardComposition() {
237
- if (!this.currentNode)
238
- return C;
239
- const e = this.currentNode.querySelector(".ins-recommendation-v3-block-v2");
240
- if (!e || !("getAttribute" in e))
241
- return C;
242
- const o = e.getAttribute("data-card-composition");
243
- return o ? o.split(",").filter(Boolean) : C;
244
- }
245
- _regenerateProductRows() {
246
- if (!this.currentNode || !("querySelector" in this.currentNode))
247
- return;
248
- const e = this.currentNode.querySelector(".ins-recommendation-product-container");
249
- if (!e) {
250
- console.error("Could not find container table for product rows");
251
- return;
252
- }
253
- const o = this.store.recommendationProducts.length > 0 ? this.store.recommendationProducts : E(), { cardsInRow: i } = this.store.recommendationConfigs, a = this._getCardComposition(), u = p(o, i, a);
254
- this.api.getDocumentModifier().modifyHtml(e).setInnerHtml(u).apply(new S("Updated product"));
225
+ });
255
226
  }
256
- _onCurrencyConfigChange(e, o) {
227
+ _onCurrencyConfigChange(e, s) {
257
228
  this.currentNode && this.store.$patch({
258
229
  recommendationConfigs: {
259
230
  currencySettings: {
260
- [e]: o
231
+ [e]: s
261
232
  }
262
233
  }
263
234
  });
264
235
  }
265
236
  _onCurrencyChange(e) {
266
- const [, o] = e.split(".");
237
+ const [, s] = e.split(".");
267
238
  this.store.$patch({
268
239
  recommendationConfigs: {
269
240
  currencySettings: {
270
- name: o,
271
- value: o
241
+ name: s,
242
+ value: s
272
243
  }
273
244
  }
274
245
  });
275
246
  }
276
247
  _setProductIdsVisibility() {
277
- const { recommendationConfigs: e } = this.store, o = e.strategy === "manualMerchandising";
278
- this.api.setVisibility(t.PRODUCT_IDS, o), this.api.setVisibility(`${t.PRODUCT_IDS}_label`, o);
248
+ const { recommendationConfigs: e } = this.store, s = e.strategy === "manualMerchandising";
249
+ this.api.setVisibility(t.PRODUCT_IDS, s), this.api.setVisibility(`${t.PRODUCT_IDS}_label`, s);
279
250
  }
280
251
  _listenToFormUpdates() {
281
- var o;
252
+ var s;
282
253
  this.api.onValueChanged(t.ALGORITHM, (i) => {
283
254
  this._onDataChange(t.ALGORITHM, i), this._setProductIdsVisibility();
284
255
  }), this.api.onValueChanged(t.PRODUCT_IDS, (i) => this._onDataChange(t.PRODUCT_IDS, i.split(",") || [])), this.api.onValueChanged(t.LOCALE, (i) => this._onDataChange(t.LOCALE, i)), this.api.onValueChanged(t.CURRENCY, (i) => this._onCurrencyChange(i)), [
@@ -288,19 +259,19 @@ class b extends g {
288
259
  t.CURRENCY_DECIMAL_SEPARATOR,
289
260
  t.CURRENCY_DECIMAL_COUNT
290
261
  ].forEach((i) => {
291
- this.api.onValueChanged(i, (a) => this._onCurrencyConfigChange(i, a));
292
- }), this.api.onValueChanged(t.PRODUCT_COUNT, (i) => this._onDataChange(t.PRODUCT_COUNT, i.toString())), this.api.onValueChanged(t.PRODUCT_IN_ROW, (i) => this._onDataChange(t.PRODUCT_IN_ROW, i)), this.api.onValueChanged(t.SHUFFLE_PRODUCTS, (i) => this._onDataChange(t.SHUFFLE_PRODUCTS, i)), this.api.onValueChanged(t.RESPONSIVE, (i) => this._onDataChange(t.RESPONSIVE, i)), this.addFilterListener = this._onFilterSelectClick.bind(this), this.addFilterButton = this.getContainer().querySelector("#guido__btn-add-filter"), (o = this.addFilterButton) == null || o.addEventListener("click", this.addFilterListener);
262
+ this.api.onValueChanged(i, (C) => this._onCurrencyConfigChange(i, C));
263
+ }), this.api.onValueChanged(t.PRODUCT_COUNT, (i) => this._onDataChange(t.PRODUCT_COUNT, i.toString())), this.api.onValueChanged(t.PRODUCT_IN_ROW, (i) => this._onDataChange(t.PRODUCT_IN_ROW, i)), this.api.onValueChanged(t.SHUFFLE_PRODUCTS, (i) => this._onDataChange(t.SHUFFLE_PRODUCTS, i)), this.api.onValueChanged(t.RESPONSIVE, (i) => this._onDataChange(t.RESPONSIVE, i)), this.addFilterListener = this._onFilterSelectClick.bind(this), this.addFilterButton = this.getContainer().querySelector("#guido__btn-add-filter"), (s = this.addFilterButton) == null || s.addEventListener("click", this.addFilterListener);
293
264
  }
294
265
  _listenStateUpdates() {
295
266
  this.storeUnsubscription = this.store.$subscribe((e) => {
296
267
  if ("payload" in e) {
297
- const o = e.payload.recommendationConfigs;
298
- o && (this.api.updateValues(o), this.store.fetchRecommendationProducts());
268
+ const s = e.payload.recommendationConfigs;
269
+ s && (this.api.updateValues(s), this.store.fetchRecommendationProducts());
299
270
  }
300
271
  });
301
272
  }
302
273
  }
303
274
  export {
304
- L as CONTROL_BLOCK_ID,
305
- b as RecommendationBlockControl
275
+ g as CONTROL_BLOCK_ID,
276
+ p as RecommendationBlockControl
306
277
  };
@@ -1,45 +1,10 @@
1
1
  import { ExtensionBuilder as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationBlock as r } from "./block.js";
3
- import { RecommendationCardCompositionControl as t } from "./cardCompositionControl.js";
4
- import { RecommendationBlockControl as n } from "./control.js";
5
- import { ButtonAlignControl as d } from "./controls/button/align.js";
6
- import { ButtonBorderControl as l } from "./controls/button/border.js";
7
- import { ButtonBorderRadiusControl as m } from "./controls/button/borderRadius.js";
8
- import { ButtonColorControl as i } from "./controls/button/color.js";
9
- import { ButtonFitToContentControl as C } from "./controls/button/fitToContent.js";
10
- import { ButtonFontFamilyControl as a } from "./controls/button/fontFamily.js";
11
- import { ButtonMarginsControl as e } from "./controls/button/margins.js";
12
- import { ButtonPaddingsControl as p } from "./controls/button/paddings.js";
13
- import { ButtonTextControl as f } from "./controls/button/text.js";
14
- import { ButtonTextSizeControl as c } from "./controls/button/textSize.js";
15
- import { ButtonTextStyleAndFontColorControl as s } from "./controls/button/textStyleAndFontColor.js";
16
- import { ImageMarginsControl as g } from "./controls/image/margins.js";
17
- import { ImageSizeControl as B } from "./controls/image/size.js";
18
- import { NameAlignControl as P } from "./controls/name/align.js";
19
- import { NameBackgroundControl as u } from "./controls/name/background.js";
20
- import { NameColorControl as y } from "./controls/name/color.js";
21
- import { NameFontFamilyControl as S } from "./controls/name/fontFamily.js";
22
- import { NamePaddingsControl as F } from "./controls/name/paddings.js";
23
- import { NameSizeControl as R } from "./controls/name/size.js";
24
- import { NameStyleControl as N } from "./controls/name/style.js";
25
- import { OldPriceAlignControl as O } from "./controls/oldPrice/align.js";
26
- import { OldPriceBackgroundControl as k } from "./controls/oldPrice/background.js";
27
- import { OldPriceColorControl as x } from "./controls/oldPrice/color.js";
28
- import { OldPriceFontFamilyControl as z } from "./controls/oldPrice/fontFamily.js";
29
- import { OldPricePaddingsControl as A } from "./controls/oldPrice/paddings.js";
30
- import { OldPriceSizeControl as I } from "./controls/oldPrice/size.js";
31
- import { OldPriceStyleControl as T } from "./controls/oldPrice/style.js";
32
- import { PriceAlignControl as w } from "./controls/price/align.js";
33
- import { PriceBackgroundControl as h } from "./controls/price/background.js";
34
- import { PriceColorControl as E } from "./controls/price/color.js";
35
- import { PriceFontFamilyControl as M } from "./controls/price/fontFamily.js";
36
- import { PricePaddingsControl as b } from "./controls/price/paddings.js";
37
- import { PriceSizeControl as j } from "./controls/price/size.js";
38
- import { PriceStyleControl as q } from "./controls/price/style.js";
39
- import { RecommendationIconsRegistry as v } from "./iconsRegistry.js";
40
- import D from "./recommendation.css.js";
41
- import { SettingsPanel as G } from "./settingsPanel.js";
42
- const Io = new o().addBlock(r).withSettingsPanelRegistry(G).addControl(n).addControl(d).addControl(l).addControl(m).addControl(i).addControl(C).addControl(a).addControl(e).addControl(p).addControl(f).addControl(c).addControl(s).addControl(g).addControl(B).addControl(P).addControl(u).addControl(y).addControl(S).addControl(F).addControl(R).addControl(N).addControl(O).addControl(k).addControl(x).addControl(z).addControl(A).addControl(I).addControl(T).addControl(w).addControl(h).addControl(E).addControl(M).addControl(b).addControl(j).addControl(q).addControl(t).addStyles(D).withIconsRegistry(v).build();
2
+ import { RecommendationBlock as t } from "./block.js";
3
+ import { RecommendationBlockControl as e } from "./control.js";
4
+ import { RecommendationIconsRegistry as n } from "./iconsRegistry.js";
5
+ import i from "./recommendation.css.js";
6
+ import { SettingsPanel as m } from "./settingsPanel.js";
7
+ const f = new o().addBlock(t).withSettingsPanelRegistry(m).addControl(e).addStyles(i).withIconsRegistry(n).build();
43
8
  export {
44
- Io as default
9
+ f as default
45
10
  };