@useinsider/guido 3.11.0-beta.6a6fc58 → 3.11.0-beta.735d590

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.
@@ -1,5 +1,5 @@
1
- import { ModuleFolderDefaults as S } from "../../enums/defaults.js";
2
- import { object as a, number as s, optional as e, string as t, picklist as l, pipe as p, minLength as b, custom as h, boolean as o, array as c, record as k, literal as i, looseObject as y, variant as g, union as f, unknown as n } from "../../node_modules/valibot/dist/index.js";
1
+ import { ModuleFolderDefaults as y } from "../../enums/defaults.js";
2
+ import { object as a, number as n, optional as e, string as t, picklist as l, pipe as p, minLength as b, custom as f, boolean as o, array as c, record as k, fallback as C, literal as i, looseObject as g, variant as R, union as h, unknown as s, lazy as T } from "../../node_modules/valibot/dist/index.js";
3
3
  const d = {
4
4
  /** Promotional/marketing emails */
5
5
  PROMOTIONAL: 1,
@@ -12,7 +12,7 @@ const d = {
12
12
  ARCHITECT: 49,
13
13
  /** Unsubscribe page builder */
14
14
  UNSUBSCRIBE_PAGES: 97
15
- }, R = a({
15
+ }, A = a({
16
16
  /** Unique identifier for the template being edited */
17
17
  templateId: p(
18
18
  t(),
@@ -25,12 +25,12 @@ const d = {
25
25
  ),
26
26
  /** Optional variation ID for A/B testing */
27
27
  variationId: e(t())
28
- }), T = a({
28
+ }), I = a({
29
29
  /** Fallback font name (e.g., "Georgia") */
30
30
  name: t(),
31
31
  /** Fallback font family (e.g., "serif" or "sans-serif") */
32
32
  family: t()
33
- }), C = a({
33
+ }), L = a({
34
34
  /** Partner/organization name (required) */
35
35
  name: p(
36
36
  t(),
@@ -53,8 +53,8 @@ const d = {
53
53
  /** Display name for the current user */
54
54
  username: e(t(), "Guido User"),
55
55
  /** Fallback font settings from partner settings — used to match backend size calculation */
56
- fallbackFont: e(T)
57
- }), A = a({
56
+ fallbackFont: e(I)
57
+ }), v = a({
58
58
  /** Display text for the dynamic content */
59
59
  text: t(),
60
60
  /** Template variable value (e.g., {{username}}) */
@@ -68,35 +68,46 @@ const d = {
68
68
  value: t()
69
69
  })
70
70
  )
71
- }), I = y({
71
+ }), S = T(() => g({
72
+ text: e(t()),
73
+ // eslint-disable-next-line camelcase -- backend field name
74
+ tag_text: e(t()),
75
+ value: e(t()),
76
+ children: e(c(S)),
77
+ // eslint-disable-next-line camelcase -- backend field name
78
+ select_items: e(c(S))
79
+ })), P = k(
80
+ t(),
81
+ C(c(S), [])
82
+ ), D = g({
72
83
  /** Block ID (matches the dictionary key and the legacy HTML element id) */
73
- id: e(s()),
84
+ id: e(n()),
74
85
  /** Decimal places for price display (legacy data may use string or number) */
75
- decimalCount: e(f([t(), s()])),
86
+ decimalCount: e(h([t(), n()])),
76
87
  /** Pinned product IDs (empty array when filter-driven) */
77
- productIds: e(c(n())),
88
+ productIds: e(c(s())),
78
89
  /** Whether the block requested live products at send time */
79
90
  sendProductRequestFlag: e(o()),
80
91
  /** Whether to randomize product order */
81
92
  shuffleProducts: e(o()),
82
93
  /** Filter rules driving product selection */
83
- filters: e(c(n())),
94
+ filters: e(c(s())),
84
95
  /** Currency code (e.g. 'EUR') — sometimes absent in legacy data */
85
96
  currency: e(t()),
86
97
  /** Currency display settings (separators, alignment, decimals) */
87
- currencySettings: e(n()),
98
+ currencySettings: e(s()),
88
99
  /** Locale (e.g. 'nl_NL') */
89
100
  language: e(t()),
90
101
  /** Recommendation strategy key (e.g. 'newArrivals') */
91
102
  strategy: e(t()),
92
103
  /** Snapshot of products as rendered by the legacy block */
93
- recommendedProducts: e(c(n())),
104
+ recommendedProducts: e(c(s())),
94
105
  /** Number of product cards per row */
95
- cardsInRow: e(s()),
106
+ cardsInRow: e(n()),
96
107
  /** Mobile-only padding (right) */
97
- mobileRightPadding: e(s()),
108
+ mobileRightPadding: e(n()),
98
109
  /** Mobile-only padding (left) */
99
- mobileLeftPadding: e(s()),
110
+ mobileLeftPadding: e(n()),
100
111
  /** Disable responsive scaling */
101
112
  unresponsive: e(o()),
102
113
  /** Layout orientation ('vertical' | 'horizontal') */
@@ -106,14 +117,14 @@ const d = {
106
117
  /** Block type marker used by some legacy variants */
107
118
  blockType: e(t()),
108
119
  /** Size variant marker (legacy data may use string or number) */
109
- size: e(f([t(), s()])),
120
+ size: e(h([t(), n()])),
110
121
  /** Vertical responsiveness flag (legacy size=1 variants) */
111
122
  verticalResponsiveness: e(o()),
112
123
  /** Legacy "Move to next line" price placement toggle (cardPricePlacement.js) */
113
124
  isPriceMovedToNextLine: e(o()),
114
125
  /** Legacy "Hide if same as discounted" / delete-price-for-zero-sale toggle */
115
126
  isPriceDeletedForZeroSale: e(o())
116
- }), L = a({
127
+ }), E = a({
117
128
  /**
118
129
  * Legacy recommendation block configs keyed by block ID.
119
130
  * Pass this when loading a template authored with the v1
@@ -121,51 +132,59 @@ const d = {
121
132
  * strategy, currency, locale, and layout data.
122
133
  */
123
134
  recommendationConfigs: e(
124
- k(t(), I),
135
+ k(t(), D),
125
136
  {}
126
137
  )
127
- }), P = a({
138
+ }), M = a({
128
139
  /** Initial HTML content */
129
140
  html: e(t(), ""),
130
141
  /** Initial CSS content */
131
142
  css: e(t(), ""),
132
143
  /** Preselected dynamic content items */
133
144
  preselectedDynamicContent: e(
134
- c(A),
145
+ c(v),
135
146
  []
136
147
  ),
148
+ /**
149
+ * Partner-keyed set of dynamic-content items the account offers, e.g.
150
+ * `{ [partnerName]: [{ text, value, children }] }`. Guido flattens it
151
+ * (union across partners, leaf attributes only) into the label→token map
152
+ * that repairs label-form placeholders (`{{ Phone Number }}`) in dropped
153
+ * saved modules.
154
+ */
155
+ dynamicContentList: e(P, {}),
137
156
  /** Valid custom field attribute names from the partner's categorized fields */
138
157
  customFieldAttributes: e(c(t()), []),
139
158
  /** Selected unsubscribe page IDs */
140
- selectedUnsubscribePages: e(c(s()), []),
159
+ selectedUnsubscribePages: e(c(n()), []),
141
160
  /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
142
161
  forceRecreate: e(o(), !1),
143
162
  /** Migration-only inputs (legacy block configs) */
144
- migration: e(L, {})
145
- }), v = a({
163
+ migration: e(E, {})
164
+ }), N = a({
146
165
  /** Sender display name */
147
166
  senderName: e(t(), ""),
148
167
  /** Email subject line */
149
168
  subject: e(t(), "")
150
- }), E = a({
169
+ }), O = a({
151
170
  /** Locale for the editor UI */
152
171
  locale: e(t(), "en"),
153
172
  /** Path to translations object */
154
173
  translationsPath: e(t(), "window.trans[Object.keys(window.trans)[0]]"),
155
174
  /** Migration date for template compatibility */
156
- migrationDate: e(s(), 1759696858),
175
+ migrationDate: e(n(), 1759696858),
157
176
  /** Email header settings */
158
- emailHeader: e(v, { senderName: "", subject: "" }),
177
+ emailHeader: e(N, { senderName: "", subject: "" }),
159
178
  /** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
160
- savedModulesFolderName: e(t(), S.SAVED_MODULES),
179
+ savedModulesFolderName: e(t(), y.SAVED_MODULES),
161
180
  /** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
162
- defaultModulesFolderName: e(t(), S.DEFAULT_MODULES)
163
- }), M = a({
181
+ defaultModulesFolderName: e(t(), y.DEFAULT_MODULES)
182
+ }), x = a({
164
183
  /** Whether to show the header bar */
165
184
  showHeader: e(o(), !0),
166
185
  /** Custom label for back button (if shown) */
167
186
  backButtonLabel: e(t())
168
- }), O = a({
187
+ }), F = a({
169
188
  /** Enable dynamic content insertion */
170
189
  dynamicContent: e(o(), !0),
171
190
  /** Enable save as template functionality */
@@ -184,7 +203,7 @@ const d = {
184
203
  liquidSyntax: e(o(), !1),
185
204
  /** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
186
205
  autosave: e(o(), !1)
187
- }), N = l([
206
+ }), U = l([
188
207
  "amp-accordion",
189
208
  "amp-carousel",
190
209
  "amp-form-controls",
@@ -198,7 +217,7 @@ const d = {
198
217
  "text-block",
199
218
  "timer-block",
200
219
  "video-block"
201
- ]), D = l([
220
+ ]), B = l([
202
221
  "dynamic-content",
203
222
  "checkbox-block",
204
223
  "radio-button-block",
@@ -206,15 +225,15 @@ const d = {
206
225
  "unsubscribe-block",
207
226
  "coupon-block",
208
227
  "items-block"
209
- ]), x = a({
228
+ ]), w = a({
210
229
  /** Default blocks to exclude from the editor */
211
230
  excludeDefaults: e(
212
- c(N),
231
+ c(U),
213
232
  []
214
233
  ),
215
234
  /** Custom blocks to include in the editor */
216
235
  includeCustoms: e(
217
- c(D),
236
+ c(B),
218
237
  []
219
238
  )
220
239
  }), m = a({
@@ -223,8 +242,8 @@ const d = {
223
242
  /** Human-readable description */
224
243
  description: e(t()),
225
244
  /** Priority for rule ordering (lower = earlier) */
226
- priority: s()
227
- }), F = a({
245
+ priority: n()
246
+ }), H = a({
228
247
  ...m.entries,
229
248
  type: i("replace"),
230
249
  /** String to search for */
@@ -233,7 +252,7 @@ const d = {
233
252
  replacement: t(),
234
253
  /** Replace all occurrences (default: false) */
235
254
  replaceAll: e(o())
236
- }), U = a({
255
+ }), _ = a({
237
256
  ...m.entries,
238
257
  type: i("regex"),
239
258
  /** Regex pattern string */
@@ -242,85 +261,87 @@ const d = {
242
261
  replacement: t(),
243
262
  /** Regex flags (e.g., 'gi') */
244
263
  flags: e(t())
245
- }), B = a({
264
+ }), j = a({
246
265
  ...m.entries,
247
266
  type: i("remove"),
248
267
  /** Strings or patterns to remove */
249
268
  targets: c(t())
250
- }), w = a({
269
+ }), q = a({
251
270
  ...m.entries,
252
271
  type: i("custom"),
253
272
  /** Custom processor function */
254
- processor: h(
273
+ processor: f(
255
274
  (u) => typeof u == "function",
256
275
  "processor must be a function"
257
276
  )
258
- }), H = g("type", [
259
- F,
260
- U,
261
- B,
262
- w
263
- ]), j = a({
277
+ }), G = R("type", [
278
+ H,
279
+ _,
280
+ j,
281
+ q
282
+ ]), V = a({
264
283
  /** Custom compiler rules to apply */
265
- customRules: e(c(H), []),
284
+ customRules: e(c(G), []),
266
285
  /** Skip default compiler rules */
267
286
  ignoreDefaultRules: e(o(), !1)
268
- }), q = a({
287
+ }), z = a({
269
288
  /**
270
289
  * External validation handler called before save completes.
271
290
  * Return false to cancel the save operation.
272
291
  */
273
292
  externalValidation: e(
274
- h(
293
+ f(
275
294
  (u) => typeof u == "function",
276
295
  "externalValidation must be a function"
277
296
  )
278
297
  )
279
- }), V = a({
298
+ }), K = a({
280
299
  // Required sections
281
300
  /** Identity configuration (required) */
282
- identity: R,
301
+ identity: A,
283
302
  /** Partner configuration (required) */
284
- partner: C,
303
+ partner: L,
285
304
  // Optional sections (with defaults)
286
305
  /** Template content and presets */
287
- template: e(P, {}),
306
+ template: e(M, {}),
288
307
  /** Editor settings */
289
- editor: e(E, {}),
308
+ editor: e(O, {}),
290
309
  /** UI configuration */
291
- ui: e(M, {}),
310
+ ui: e(x, {}),
292
311
  /** Feature toggles */
293
- features: e(O, {}),
312
+ features: e(F, {}),
294
313
  /** Block configuration */
295
- blocks: e(x, {}),
314
+ blocks: e(w, {}),
296
315
  /** Compiler configuration */
297
- compiler: e(j, {}),
316
+ compiler: e(V, {}),
298
317
  /** Callbacks and event handlers */
299
- callbacks: e(q, {})
318
+ callbacks: e(z, {})
300
319
  });
301
320
  export {
302
- x as BlocksSchema,
303
- q as CallbacksSchema,
304
- H as CompilerRuleSchema,
305
- j as CompilerSchema,
306
- D as CustomBlockTypeSchema,
307
- w as CustomRuleSchema,
308
- N as DefaultBlockTypeSchema,
309
- A as DynamicContentSchema,
310
- E as EditorSchema,
311
- v as EmailHeaderSchema,
312
- T as FallbackFontSchema,
313
- O as FeaturesSchema,
314
- V as GuidoConfigSchema,
315
- R as IdentitySchema,
316
- I as LegacyRecommendationConfigSchema,
321
+ w as BlocksSchema,
322
+ z as CallbacksSchema,
323
+ G as CompilerRuleSchema,
324
+ V as CompilerSchema,
325
+ B as CustomBlockTypeSchema,
326
+ q as CustomRuleSchema,
327
+ U as DefaultBlockTypeSchema,
328
+ P as DynamicContentListSchema,
329
+ S as DynamicContentNodeSchema,
330
+ v as DynamicContentSchema,
331
+ O as EditorSchema,
332
+ N as EmailHeaderSchema,
333
+ I as FallbackFontSchema,
334
+ F as FeaturesSchema,
335
+ K as GuidoConfigSchema,
336
+ A as IdentitySchema,
337
+ D as LegacyRecommendationConfigSchema,
317
338
  d as MessageType,
318
- C as PartnerSchema,
339
+ L as PartnerSchema,
319
340
  r as ProductType,
320
- U as RegexRuleSchema,
321
- B as RemoveRuleSchema,
322
- F as ReplaceRuleSchema,
323
- L as TemplateMigrationSchema,
324
- P as TemplateSchema,
325
- M as UISchema
341
+ _ as RegexRuleSchema,
342
+ j as RemoveRuleSchema,
343
+ H as ReplaceRuleSchema,
344
+ E as TemplateMigrationSchema,
345
+ M as TemplateSchema,
346
+ x as UISchema
326
347
  };
@@ -1,21 +1,20 @@
1
1
  import d from "./AMPOnboarding.vue2.js";
2
- /* empty css */
3
2
  import g from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var c = function() {
5
- var n, r, e, i, a, s;
6
- var t = this, p = t._self._c, o = t._self._setupProxy;
7
- return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (n = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : n.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : r.bottom, "left-position": (e = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : e.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": (i = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(b) {
3
+ var l = function() {
4
+ var t, r, e, i, a, s;
5
+ var n = this, p = n._self._c, o = n._self._setupProxy;
6
+ return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (t = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : t.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : r.bottom, "left-position": (e = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : e.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": (i = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(u) {
8
7
  return o.onboardingStore.close("ampOnboarding");
9
- }, nextButtonClick: o.handleNext } }) : t._e();
10
- }, m = [], l = /* @__PURE__ */ g(
8
+ }, nextButtonClick: o.handleNext } }) : n._e();
9
+ }, m = [], c = /* @__PURE__ */ g(
11
10
  d,
12
- c,
11
+ l,
13
12
  m,
14
13
  !1,
15
14
  null,
16
- "6bcaca8a"
15
+ null
17
16
  );
18
- const S = l.exports;
17
+ const f = c.exports;
19
18
  export {
20
- S as default
19
+ f as default
21
20
  };
@@ -13,7 +13,7 @@ var l = function() {
13
13
  p,
14
14
  !1,
15
15
  null,
16
- "f16f20f8"
16
+ "7419ae06"
17
17
  );
18
18
  const S = _.exports;
19
19
  export {
@@ -1,21 +1,21 @@
1
1
  import g from "./ItemsOnboarding.vue2.js";
2
2
  /* empty css */
3
3
  import m from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var c = function() {
4
+ var l = function() {
5
5
  var e, n, r, i, s, a;
6
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(_) {
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) {
8
8
  return t.onboardingStore.close("itemsOnboarding");
9
9
  }, nextButtonClick: t.handleNext } }) : o._e();
10
- }, l = [], b = /* @__PURE__ */ m(
10
+ }, c = [], p = /* @__PURE__ */ m(
11
11
  g,
12
- c,
13
12
  l,
13
+ c,
14
14
  !1,
15
15
  null,
16
- "bb3cca55"
16
+ "796d193b"
17
17
  );
18
- const I = b.exports;
18
+ const I = p.exports;
19
19
  export {
20
20
  I as default
21
21
  };
@@ -1,43 +1,46 @@
1
- import { defineComponent as b, ref as v, computed as o } from "vue";
2
- import D from "../../wrappers/WpModal.vue.js";
3
- import { useConfig as _ } from "../../../composables/useConfig.js";
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
4
  import { useTranslations as y } from "../../../composables/useTranslations.js";
5
- import { ACADEMY_LINKS as m } from "../../../enums/academy.js";
5
+ import { ACADEMY_LINKS as c } from "../../../enums/academy.js";
6
6
  import L from "../../../static/assets/onboarding-img.svg.js";
7
- import { useOnboardingStore as h } from "../../../stores/onboarding.js";
8
- import { isAfterDate as C } from "../../../utils/dateUtil.js";
9
- const x = /* @__PURE__ */ b({
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(w, { emit: i }) {
13
- const e = y(), t = h(), a = v(!0), { config: s } = _(), p = o(() => {
14
- var l, u;
15
- return (u = (l = s.value) == null ? void 0 : l.editor) == null ? void 0 : u.migrationDate;
16
- }), n = o(() => C(p.value || 0)), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
17
- academyLink: m.EMAIL_EDITOR
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(
17
+ i.value || 0
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", {
19
+ sunsetDate: d.value,
20
+ academyLink: c.EMAIL_EDITOR
18
21
  }) : e("email-editor.onboarding-description", {
19
- academyLink: m.EMAIL_EDITOR
20
- })), d = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), g = o(() => ({
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")
24
27
  },
25
28
  secondaryButton: {
26
29
  type: "subtle-primary",
27
- labelText: d.value
30
+ labelText: u.value
28
31
  }
29
32
  })), r = () => {
30
- a.value = !1, i("onboarding-finished");
33
+ s.value = !1, a("onboarding-finished");
31
34
  };
32
- return { __sfc: !0, emit: i, trans: e, onboardingStore: t, isVisible: a, config: s, migrationDate: p, isAfterMigrationDate: n, popupTitle: c, popupDescription: f, secondaryButtonLabel: d, footerButtonOptions: g, closePopup: r, handleDiscoverNow: () => {
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: D, onboardingImageSvg: L };
41
+ }, WpModal: _, onboardingImageSvg: L };
39
42
  }
40
43
  });
41
44
  export {
42
- x as default
45
+ V as default
43
46
  };
@@ -13,9 +13,9 @@ var g = function() {
13
13
  b,
14
14
  !1,
15
15
  null,
16
- "b09e80c4"
16
+ "cadfc82d"
17
17
  );
18
- const f = p.exports;
18
+ const C = p.exports;
19
19
  export {
20
- f as default
20
+ C as default
21
21
  };
@@ -1,21 +1,20 @@
1
1
  import g from "./VersionHistoryOnboarding.vue2.js";
2
- /* empty css */
3
2
  import l from "../../../_virtual/_plugin-vue2_normalizer.js";
4
3
  var c = function() {
5
- var t, n, i, e, s, a;
4
+ var n, t, i, e, s, a;
6
5
  var r = this, d = r._self._c, o = r._self._setupProxy;
7
- return o.isVisible ? d(o.InOnboard, { key: "guido__version-history-onboard", staticClass: "w-21-s p-a z-11", class: (t = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : t.classes, attrs: { id: "guido__version-history-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = o.onboardingStore.getVersionHistoryCurrentCard) == null ? void 0 : n.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(u) {
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) {
8
7
  return o.onboardingStore.close("versionHistoryOnboarding");
9
8
  }, nextButtonClick: o.handleNext } }) : r._e();
10
- }, p = [], _ = /* @__PURE__ */ l(
9
+ }, _ = [], p = /* @__PURE__ */ l(
11
10
  g,
12
11
  c,
13
- p,
12
+ _,
14
13
  !1,
15
14
  null,
16
- "9bdef600"
15
+ null
17
16
  );
18
- const y = _.exports;
17
+ const m = p.exports;
19
18
  export {
20
- y as default
19
+ m as default
21
20
  };
@@ -0,0 +1,37 @@
1
+ import { useConfig as C } from "./useConfig.js";
2
+ import { useToaster as D } from "./useToaster.js";
3
+ import { useTranslations as T } from "./useTranslations.js";
4
+ import { ToasterTypeOptions as g } from "../enums/toaster.js";
5
+ import { buildDynamicContentLookup as h, convertModuleDynamicContent as O } from "../utils/dynamicContentConverter.js";
6
+ import { flattenDynamicContentList as f } from "../utils/genericUtil.js";
7
+ const M = "dynamic-content.unresolved-attributes-on-drop", b = () => {
8
+ const { template: i, isFeatureEnabled: p } = C(), { showToaster: m } = D(), a = T();
9
+ return { handleModuleAdd: (n, o) => {
10
+ var s, c, l;
11
+ try {
12
+ if ((n == null ? void 0 : n.action) !== "ADD" && (n == null ? void 0 : n.action) !== "COPY")
13
+ return;
14
+ const e = h(f((s = i.value) == null ? void 0 : s.dynamicContentList));
15
+ if (e.size === 0)
16
+ return;
17
+ const t = (c = o == null ? void 0 : o.getTargetNode) == null ? void 0 : c.call(o), r = (l = t == null ? void 0 : t.getOuterHTML) == null ? void 0 : l.call(t);
18
+ if (!t || typeof r != "string")
19
+ return;
20
+ const { html: u, unresolved: y } = O(
21
+ r,
22
+ e,
23
+ p("liquidSyntax")
24
+ );
25
+ u !== r && o.modifyHtml(t).replaceWith(u), y.length > 0 && m({
26
+ type: g.Warning,
27
+ message: a(M)
28
+ });
29
+ } catch (e) {
30
+ console.error("Failed to repair dynamic content on module add:", e);
31
+ }
32
+ } };
33
+ };
34
+ export {
35
+ M as UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY,
36
+ b as useModuleDynamicContentRepair
37
+ };