@useinsider/guido 3.18.2-beta.ec25841 → 3.18.2-beta.f42547e
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/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +1 -1
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +49 -48
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue2.js +9 -9
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +34 -34
- package/dist/composables/useHttp.js +24 -22
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +3 -3
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +74 -74
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +53 -51
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +26 -16
- package/dist/extensions/Blocks/Recommendation/utils/strategyCommit.js +24 -0
- package/dist/guido.css +1 -1
- package/dist/services/templateLibraryApi.js +17 -14
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +7 -2
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyCommit.d.ts +14 -0
- package/dist/src/utils/genericUtil.d.ts +6 -0
- package/dist/utils/genericUtil.js +45 -39
- package/dist/utils/templatePreparation.js +41 -40
- package/package.json +1 -1
- package/dist/extensions/Blocks/Recommendation/utils/strategyDetach.js +0 -19
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyDetach.d.ts +0 -12
|
@@ -87,21 +87,21 @@ function j(e, t = {}) {
|
|
|
87
87
|
documentModifier: o,
|
|
88
88
|
products: r,
|
|
89
89
|
layout: s,
|
|
90
|
-
composition:
|
|
90
|
+
composition: l
|
|
91
91
|
} = e;
|
|
92
92
|
if (!n || !("querySelector" in n))
|
|
93
93
|
return !1;
|
|
94
|
-
const u = s ?? P(n),
|
|
95
|
-
if (u === "list" || !
|
|
94
|
+
const u = s ?? P(n), i = y.getConfig(n);
|
|
95
|
+
if (u === "list" || !i.mobileLayoutEnabled)
|
|
96
96
|
return te({ currentNode: n, documentModifier: o });
|
|
97
|
-
const c = A(), a = $(r, c.recommendationProducts), f =
|
|
98
|
-
productsPerRow:
|
|
97
|
+
const c = A(), a = $(r, c.recommendationProducts), f = l ?? U(n, c.filterList), p = `<td><table class="ins-recommendation-product-container ins-recommendation-mobile-container" width="100%" cellpadding="0" cellspacing="0" border="0">${k(a, u, {
|
|
98
|
+
productsPerRow: i.mobileCardsInRow,
|
|
99
99
|
composition: f,
|
|
100
100
|
filterList: c.filterList,
|
|
101
|
-
priceInline: !
|
|
101
|
+
priceInline: !i.priceMovedToNextLine,
|
|
102
102
|
// Match the initial render's gutter so a regeneration never changes block height (SD-143023, #386).
|
|
103
|
-
cellPadding: v(
|
|
104
|
-
rowSpacingPx:
|
|
103
|
+
cellPadding: v(i.mobileColumnSpacing),
|
|
104
|
+
rowSpacingPx: i.mobileRowSpacing,
|
|
105
105
|
...t
|
|
106
106
|
})}</table></td>`, E = n.querySelector(w);
|
|
107
107
|
return E ? (o.modifyHtml(E).setInnerHtml(p), !0) : (re(n, o, p), !1);
|
|
@@ -115,17 +115,17 @@ function ie(e, t = {}) {
|
|
|
115
115
|
documentModifier: o,
|
|
116
116
|
products: r,
|
|
117
117
|
layout: s,
|
|
118
|
-
composition:
|
|
118
|
+
composition: l
|
|
119
119
|
} = e;
|
|
120
120
|
if (!n || !("querySelector" in n))
|
|
121
121
|
return !1;
|
|
122
122
|
const u = n.querySelector(L) ?? n.querySelector(W);
|
|
123
123
|
if (!u)
|
|
124
124
|
return !1;
|
|
125
|
-
const
|
|
125
|
+
const i = A(), c = $(r, i.recommendationProducts), { cardsInRow: a } = y.getConfig(n), f = l ?? U(n, i.filterList), d = s ?? P(n), p = y.getConfig(n), E = k(c, d, {
|
|
126
126
|
productsPerRow: a,
|
|
127
127
|
composition: f,
|
|
128
|
-
filterList:
|
|
128
|
+
filterList: i.filterList,
|
|
129
129
|
priceInline: !p.priceMovedToNextLine,
|
|
130
130
|
// Match the initial render's gutter so a regeneration never changes block height (SD-143023, #386).
|
|
131
131
|
cellPadding: v(p.columnSpacing),
|
|
@@ -151,14 +151,14 @@ function ce(e, t, n) {
|
|
|
151
151
|
const r = o.getAttribute(R);
|
|
152
152
|
if (!r)
|
|
153
153
|
return !1;
|
|
154
|
-
const s = A(),
|
|
155
|
-
c &&
|
|
154
|
+
const s = A(), l = r.split(",").filter(Boolean), u = D(l, o, s.filterList), i = [], c = u.join(",") !== l.join(",");
|
|
155
|
+
c && i.push([R, u.join(",")]);
|
|
156
156
|
const a = le(
|
|
157
157
|
o.getAttribute(q)
|
|
158
158
|
), f = a && z(a, o, s.filterList);
|
|
159
|
-
if (a && f && f.join(",") !== a.join(",") &&
|
|
159
|
+
if (a && f && f.join(",") !== a.join(",") && i.push([q, JSON.stringify(f)]), i.length === 0)
|
|
160
160
|
return !1;
|
|
161
|
-
if (
|
|
161
|
+
if (i.forEach(([d, p]) => {
|
|
162
162
|
t.modifyHtml(o).setAttribute(d, p);
|
|
163
163
|
}), c && y.hasConfig(e)) {
|
|
164
164
|
const d = {
|
|
@@ -176,20 +176,20 @@ function Te(e) {
|
|
|
176
176
|
afterRegenerate: o,
|
|
177
177
|
products: r,
|
|
178
178
|
layout: s,
|
|
179
|
-
composition:
|
|
179
|
+
composition: l,
|
|
180
180
|
skipStylePreservation: u
|
|
181
181
|
} = e;
|
|
182
182
|
if (!t)
|
|
183
|
-
return;
|
|
184
|
-
const
|
|
183
|
+
return !1;
|
|
184
|
+
const i = u ? {} : x(t), c = {
|
|
185
185
|
currentNode: t,
|
|
186
186
|
documentModifier: n,
|
|
187
187
|
products: r,
|
|
188
188
|
layout: s,
|
|
189
|
-
composition:
|
|
189
|
+
composition: l
|
|
190
190
|
};
|
|
191
|
-
let a = ie(c,
|
|
192
|
-
a = j(c,
|
|
191
|
+
let a = ie(c, i);
|
|
192
|
+
return a = j(c, i) || a, a && (ce(t, n, l), n.apply(new S("Regenerate products with styles"))), o == null || o(), a;
|
|
193
193
|
}
|
|
194
194
|
function Re(e, t) {
|
|
195
195
|
return e.length === t ? e : e.length > t ? e.slice(0, t) : [...e, ...H(t - e.length)];
|
|
@@ -213,28 +213,28 @@ function T(e, t = "price") {
|
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
function ue(e) {
|
|
216
|
-
var s,
|
|
217
|
-
const t = F(), n = ((s = e.original_price) == null ? void 0 : s[t.code]) ?? Object.values(e.original_price ?? {})[0] ?? 0, o = ((
|
|
216
|
+
var s, l;
|
|
217
|
+
const t = F(), n = ((s = e.original_price) == null ? void 0 : s[t.code]) ?? Object.values(e.original_price ?? {})[0] ?? 0, o = ((l = e.price) == null ? void 0 : l[t.code]) ?? Object.values(e.price ?? {})[0] ?? 0, r = n > 0 ? Math.round((n - o) / n * 100) : 0;
|
|
218
218
|
return r > 0 ? `-${r}%` : "0%";
|
|
219
219
|
}
|
|
220
220
|
function K(e) {
|
|
221
|
-
const { documentModifier: t, product: n, priceEl: o, oldPriceEl: r, omnibusPriceEl: s, omnibusDiscountEl:
|
|
221
|
+
const { documentModifier: t, product: n, priceEl: o, oldPriceEl: r, omnibusPriceEl: s, omnibusDiscountEl: l } = e;
|
|
222
222
|
let u = !1;
|
|
223
223
|
if (o && "querySelector" in o) {
|
|
224
|
-
const
|
|
225
|
-
b(t,
|
|
224
|
+
const i = o.querySelector("strong") ?? o.querySelector("p"), c = T(n, "price");
|
|
225
|
+
b(t, i ?? null, c) && (u = !0);
|
|
226
226
|
}
|
|
227
227
|
if (r && "querySelector" in r) {
|
|
228
|
-
const
|
|
229
|
-
b(t,
|
|
228
|
+
const i = r.querySelector("strong") ?? r.querySelector("p"), c = T(n, "original_price");
|
|
229
|
+
b(t, i ?? null, c) && (u = !0), t.modifyHtml(r).setAttribute("data-same-price", String(Q(n))), u = !0;
|
|
230
230
|
}
|
|
231
231
|
if (s && "querySelector" in s) {
|
|
232
|
-
const
|
|
233
|
-
b(t,
|
|
232
|
+
const i = s.querySelector(".omnibus-price-value") ?? null, c = T(n, "original_price");
|
|
233
|
+
b(t, i, c) && (u = !0);
|
|
234
234
|
}
|
|
235
|
-
if (
|
|
236
|
-
const
|
|
237
|
-
b(t,
|
|
235
|
+
if (l && "querySelector" in l) {
|
|
236
|
+
const i = l.querySelector(".omnibus-discount-value") ?? null, c = ue(n);
|
|
237
|
+
b(t, i, c) && (u = !0);
|
|
238
238
|
}
|
|
239
239
|
return u;
|
|
240
240
|
}
|
|
@@ -245,9 +245,9 @@ function se(e) {
|
|
|
245
245
|
imageEl: o,
|
|
246
246
|
nameEl: r,
|
|
247
247
|
priceEl: s,
|
|
248
|
-
oldPriceEl:
|
|
248
|
+
oldPriceEl: l,
|
|
249
249
|
omnibusPriceEl: u,
|
|
250
|
-
omnibusDiscountEl:
|
|
250
|
+
omnibusDiscountEl: i,
|
|
251
251
|
buttonEl: c
|
|
252
252
|
} = e;
|
|
253
253
|
let a = !1;
|
|
@@ -265,9 +265,9 @@ function se(e) {
|
|
|
265
265
|
documentModifier: t,
|
|
266
266
|
product: n,
|
|
267
267
|
priceEl: s,
|
|
268
|
-
oldPriceEl:
|
|
268
|
+
oldPriceEl: l,
|
|
269
269
|
omnibusPriceEl: u,
|
|
270
|
-
omnibusDiscountEl:
|
|
270
|
+
omnibusDiscountEl: i
|
|
271
271
|
}) && (a = !0), c && "querySelector" in c) {
|
|
272
272
|
const f = c.querySelector("a.es-button") || c.querySelector("a");
|
|
273
273
|
f && (t.modifyHtml(f).setAttribute("href", n.url), a = !0);
|
|
@@ -296,19 +296,19 @@ function fe(e, t, n) {
|
|
|
296
296
|
if (o.length === 0)
|
|
297
297
|
return !1;
|
|
298
298
|
const r = /* @__PURE__ */ new Map();
|
|
299
|
-
o.forEach((
|
|
300
|
-
if (!("getAttribute" in
|
|
299
|
+
o.forEach((l) => {
|
|
300
|
+
if (!("getAttribute" in l))
|
|
301
301
|
return;
|
|
302
|
-
const u =
|
|
302
|
+
const u = l.getAttribute(Y);
|
|
303
303
|
if (!u)
|
|
304
304
|
return;
|
|
305
|
-
const
|
|
306
|
-
|
|
305
|
+
const i = r.get(u) ?? [];
|
|
306
|
+
i.push(l), r.set(u, i);
|
|
307
307
|
});
|
|
308
308
|
let s = !1;
|
|
309
|
-
return r.forEach((
|
|
310
|
-
const
|
|
311
|
-
|
|
309
|
+
return r.forEach((l, u) => {
|
|
310
|
+
const i = Math.min(l.length, n.length);
|
|
311
|
+
l.slice(0, i).forEach((c, a) => {
|
|
312
312
|
if (!("querySelector" in c))
|
|
313
313
|
return;
|
|
314
314
|
const f = ae(u, n[a]);
|
|
@@ -328,11 +328,11 @@ function O(e, t, n) {
|
|
|
328
328
|
`[esd-extension-block-id="${m.NAME}"]`
|
|
329
329
|
), s = e.querySelectorAll(
|
|
330
330
|
`[esd-extension-block-id="${m.PRICE}"]`
|
|
331
|
-
),
|
|
331
|
+
), l = e.querySelectorAll(
|
|
332
332
|
`[esd-extension-block-id="${m.OLD_PRICE}"]`
|
|
333
333
|
), u = e.querySelectorAll(
|
|
334
334
|
`[esd-extension-block-id="${m.OMNIBUS_PRICE}"]`
|
|
335
|
-
),
|
|
335
|
+
), i = e.querySelectorAll(
|
|
336
336
|
`[esd-extension-block-id="${m.OMNIBUS_DISCOUNT}"]`
|
|
337
337
|
), c = e.querySelectorAll(
|
|
338
338
|
`[esd-extension-block-id="${m.BUTTON}"]`
|
|
@@ -345,9 +345,9 @@ function O(e, t, n) {
|
|
|
345
345
|
imageEl: o[d] ?? null,
|
|
346
346
|
nameEl: r[d] ?? null,
|
|
347
347
|
priceEl: s[d] ?? null,
|
|
348
|
-
oldPriceEl:
|
|
348
|
+
oldPriceEl: l[d] ?? null,
|
|
349
349
|
omnibusPriceEl: u[d] ?? null,
|
|
350
|
-
omnibusDiscountEl:
|
|
350
|
+
omnibusDiscountEl: i[d] ?? null,
|
|
351
351
|
buttonEl: c[d] ?? null
|
|
352
352
|
});
|
|
353
353
|
f = f || p;
|
|
@@ -355,28 +355,28 @@ function O(e, t, n) {
|
|
|
355
355
|
return fe(e, t, n) && (f = !0), f;
|
|
356
356
|
}
|
|
357
357
|
function qe(e) {
|
|
358
|
-
const { currentNode: t, documentModifier: n, products: o } = e;
|
|
358
|
+
const { currentNode: t, documentModifier: n, products: o, onApplied: r } = e;
|
|
359
359
|
if (!t || !("querySelectorAll" in t))
|
|
360
360
|
return !1;
|
|
361
|
-
const
|
|
362
|
-
if (!("querySelectorAll" in
|
|
361
|
+
const s = V(t);
|
|
362
|
+
if (!("querySelectorAll" in s) || s.querySelectorAll(
|
|
363
363
|
`[esd-extension-block-id="${m.IMAGE}"]`
|
|
364
364
|
).length !== o.length)
|
|
365
365
|
return !1;
|
|
366
|
-
let
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
369
|
-
const
|
|
370
|
-
if (
|
|
371
|
-
const
|
|
372
|
-
|
|
366
|
+
let u = O(s, n, o);
|
|
367
|
+
const i = P(t), c = y.getConfig(t);
|
|
368
|
+
if (i !== "list" && c.mobileLayoutEnabled && "querySelector" in t) {
|
|
369
|
+
const a = t.querySelector(N);
|
|
370
|
+
if (a) {
|
|
371
|
+
const f = O(
|
|
372
|
+
a,
|
|
373
373
|
n,
|
|
374
374
|
o
|
|
375
375
|
);
|
|
376
|
-
|
|
376
|
+
u = u || f;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
return
|
|
379
|
+
return u && (n.apply(new S("Updated product content in-place")), r == null || r()), !0;
|
|
380
380
|
}
|
|
381
381
|
function _(e, t, n) {
|
|
382
382
|
if (!("querySelectorAll" in e))
|
|
@@ -387,10 +387,10 @@ function _(e, t, n) {
|
|
|
387
387
|
`[esd-extension-block-id="${m.OLD_PRICE}"]`
|
|
388
388
|
), s = e.querySelectorAll(
|
|
389
389
|
`[esd-extension-block-id="${m.OMNIBUS_PRICE}"]`
|
|
390
|
-
),
|
|
390
|
+
), l = e.querySelectorAll(
|
|
391
391
|
`[esd-extension-block-id="${m.OMNIBUS_DISCOUNT}"]`
|
|
392
392
|
), u = Math.min(o.length, n.length);
|
|
393
|
-
let
|
|
393
|
+
let i = !1;
|
|
394
394
|
for (let c = 0; c < u; c++)
|
|
395
395
|
K({
|
|
396
396
|
documentModifier: t,
|
|
@@ -398,9 +398,9 @@ function _(e, t, n) {
|
|
|
398
398
|
priceEl: o[c] ?? null,
|
|
399
399
|
oldPriceEl: r[c] ?? null,
|
|
400
400
|
omnibusPriceEl: s[c] ?? null,
|
|
401
|
-
omnibusDiscountEl:
|
|
402
|
-
}) && (
|
|
403
|
-
return
|
|
401
|
+
omnibusDiscountEl: l[c] ?? null
|
|
402
|
+
}) && (i = !0);
|
|
403
|
+
return i;
|
|
404
404
|
}
|
|
405
405
|
function Me(e) {
|
|
406
406
|
const { currentNode: t, documentModifier: n } = e;
|
|
@@ -412,25 +412,25 @@ function Me(e) {
|
|
|
412
412
|
if (r.length === 0)
|
|
413
413
|
return !1;
|
|
414
414
|
const s = V(t);
|
|
415
|
-
let
|
|
416
|
-
const u = P(t),
|
|
417
|
-
if (u !== "list" &&
|
|
415
|
+
let l = _(s, n, r);
|
|
416
|
+
const u = P(t), i = y.getConfig(t);
|
|
417
|
+
if (u !== "list" && i.mobileLayoutEnabled && "querySelector" in t) {
|
|
418
418
|
const c = t.querySelector(N);
|
|
419
419
|
if (c) {
|
|
420
420
|
const a = _(c, n, r);
|
|
421
|
-
|
|
421
|
+
l = l || a;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
return
|
|
424
|
+
return l && n.apply(new S("Updated price formatting in-place")), l;
|
|
425
425
|
}
|
|
426
426
|
function he(e) {
|
|
427
427
|
const { currentNode: t, documentModifier: n, currency: o } = e, r = C(t);
|
|
428
428
|
if (!r)
|
|
429
429
|
return;
|
|
430
|
-
const s = o.alignment === "before" ? "0" : "1",
|
|
431
|
-
n.modifyHtml(r).setAttribute(u,
|
|
430
|
+
const s = o.alignment === "before" ? "0" : "1", l = (u, i) => {
|
|
431
|
+
n.modifyHtml(r).setAttribute(u, i);
|
|
432
432
|
};
|
|
433
|
-
|
|
433
|
+
l(g.CURRENCY, o.code), l(g.SYMBOL, o.symbol), l(g.ALIGNMENT, s), l(g.THOUSAND_SEPARATOR, o.thousandSeparator), l(g.DECIMAL_SEPARATOR, o.decimalSeparator), l(g.DECIMAL_COUNT, o.decimalCount.toString()), n.apply(new S("Update currency attributes"));
|
|
434
434
|
}
|
|
435
435
|
export {
|
|
436
436
|
Re as adjustProductsToSize,
|
|
@@ -11,9 +11,9 @@ import { getPartnerRecommendationParams as O } from "../utils/partnerCustomizati
|
|
|
11
11
|
import { sanitizeProductIds as T } from "../utils/productIds.js";
|
|
12
12
|
import { isFilterValid as z } from "../validation/filterSchema.js";
|
|
13
13
|
import { getInvalidFields as V, isConfigValid as j } from "../validation/requiredFields.js";
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
const
|
|
14
|
+
const f = A();
|
|
15
|
+
let S = null, p = null, y = null, I = "", R = null, b = 0;
|
|
16
|
+
const h = /* @__PURE__ */ new Map();
|
|
17
17
|
let l = null;
|
|
18
18
|
function G() {
|
|
19
19
|
return {
|
|
@@ -247,7 +247,7 @@ const $ = () => ({
|
|
|
247
247
|
* `isInitialized`) alone.
|
|
248
248
|
*/
|
|
249
249
|
seedBlockUrlConfig(t, e) {
|
|
250
|
-
const r = (o,
|
|
250
|
+
const r = (o, a) => o === "." || o === "," || o === " " ? o : a, n = {
|
|
251
251
|
name: e.currencyCode,
|
|
252
252
|
value: e.currencyCode,
|
|
253
253
|
symbol: e.currencySymbol,
|
|
@@ -354,33 +354,33 @@ const $ = () => ({
|
|
|
354
354
|
this.currentRecommendationId === null || !this.blockStates[this.currentRecommendationId] || (this.blockStates[this.currentRecommendationId].removeStrategyModalStatus = !1);
|
|
355
355
|
},
|
|
356
356
|
async fetchStrategies() {
|
|
357
|
-
for (;
|
|
357
|
+
for (; R; )
|
|
358
358
|
try {
|
|
359
|
-
await
|
|
359
|
+
await R;
|
|
360
360
|
} catch {
|
|
361
361
|
}
|
|
362
362
|
if (this.strategiesFetched)
|
|
363
363
|
return;
|
|
364
|
-
const t =
|
|
364
|
+
const t = b, e = (async () => {
|
|
365
365
|
this.strategiesLoading = !0;
|
|
366
366
|
try {
|
|
367
|
-
const r = await
|
|
368
|
-
if (t !==
|
|
367
|
+
const r = await f.fetchRecommendationStrategies();
|
|
368
|
+
if (t !== b)
|
|
369
369
|
return;
|
|
370
370
|
this.strategies = r, this.strategiesFetched = !0;
|
|
371
371
|
} finally {
|
|
372
|
-
this.strategiesLoading = !1, t ===
|
|
372
|
+
this.strategiesLoading = !1, t === b && (this.strategiesSettled = !0);
|
|
373
373
|
}
|
|
374
374
|
})();
|
|
375
|
-
|
|
375
|
+
R = e;
|
|
376
376
|
try {
|
|
377
377
|
await e;
|
|
378
378
|
} finally {
|
|
379
|
-
|
|
379
|
+
R = null;
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
382
|
invalidateStrategies() {
|
|
383
|
-
this.strategiesFetched = !1, this.strategiesSettled = !1,
|
|
383
|
+
this.strategiesFetched = !1, this.strategiesSettled = !1, b += 1;
|
|
384
384
|
},
|
|
385
385
|
/**
|
|
386
386
|
* Opens a Smart Recommender strategy page in a new tab and refreshes the list every time
|
|
@@ -444,7 +444,7 @@ const $ = () => ({
|
|
|
444
444
|
const r = typeof t.updated_at == "string" ? t.updated_at : "", n = r ? `${t.strategy_id}:${r}:${e}` : "", s = n ? this.strategyUrlTemplates[n] : void 0;
|
|
445
445
|
if (s)
|
|
446
446
|
return s;
|
|
447
|
-
const { full_path: i = "" } = await
|
|
447
|
+
const { full_path: i = "" } = await f.generateStrategyEndpoint(t, e) ?? {};
|
|
448
448
|
return n && i && (this.strategyUrlTemplates = {
|
|
449
449
|
...this.strategyUrlTemplates,
|
|
450
450
|
[n]: i
|
|
@@ -468,16 +468,16 @@ const $ = () => ({
|
|
|
468
468
|
// ====================================================================
|
|
469
469
|
async fetchRecommendationCreateData() {
|
|
470
470
|
if (!this.activePredictiveAlgorithms.length) {
|
|
471
|
-
if (
|
|
472
|
-
await
|
|
471
|
+
if (S) {
|
|
472
|
+
await S;
|
|
473
473
|
return;
|
|
474
474
|
}
|
|
475
|
-
|
|
475
|
+
S = (async () => {
|
|
476
476
|
const {
|
|
477
477
|
activePredictiveAlgorithms: t,
|
|
478
478
|
languages: e,
|
|
479
479
|
currencies: r
|
|
480
|
-
} = await
|
|
480
|
+
} = await f.fetchRecommendationCreateData();
|
|
481
481
|
if (this.activePredictiveAlgorithms = t, this.languages = e, this.currentRecommendationId !== null && this.blockStates[this.currentRecommendationId]) {
|
|
482
482
|
const n = this.blockStates[this.currentRecommendationId];
|
|
483
483
|
n.filterStatus = !!n.recommendationConfigs.filters.length;
|
|
@@ -485,26 +485,26 @@ const $ = () => ({
|
|
|
485
485
|
this.currencyList = r;
|
|
486
486
|
})();
|
|
487
487
|
try {
|
|
488
|
-
await
|
|
488
|
+
await S;
|
|
489
489
|
} finally {
|
|
490
|
-
|
|
490
|
+
S = null;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
},
|
|
494
494
|
async fetchRecommendationFilters() {
|
|
495
495
|
if (!Object.keys(this.filterList).length) {
|
|
496
|
-
if (
|
|
497
|
-
await
|
|
496
|
+
if (p) {
|
|
497
|
+
await p;
|
|
498
498
|
return;
|
|
499
499
|
}
|
|
500
|
-
|
|
501
|
-
const t = await
|
|
500
|
+
p = (async () => {
|
|
501
|
+
const t = await f.fetchRecommendationFilters();
|
|
502
502
|
this.filterList = t;
|
|
503
503
|
})();
|
|
504
504
|
try {
|
|
505
|
-
await
|
|
505
|
+
await p;
|
|
506
506
|
} finally {
|
|
507
|
-
|
|
507
|
+
p = null;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
},
|
|
@@ -547,10 +547,10 @@ const $ = () => ({
|
|
|
547
547
|
let i = 1;
|
|
548
548
|
n = n.map((o) => o.filterGroup === t.filterGroup ? { ...o, filterNumber: i++ } : o);
|
|
549
549
|
} else {
|
|
550
|
-
const i = [...new Set(n.map((
|
|
551
|
-
n = n.map((
|
|
552
|
-
...
|
|
553
|
-
filterGroup: o.get(
|
|
550
|
+
const i = [...new Set(n.map((a) => a.filterGroup))].sort((a, u) => a - u), o = new Map(i.map((a, u) => [a, u + 1]));
|
|
551
|
+
n = n.map((a) => ({
|
|
552
|
+
...a,
|
|
553
|
+
filterGroup: o.get(a.filterGroup) ?? a.filterGroup
|
|
554
554
|
}));
|
|
555
555
|
}
|
|
556
556
|
e.recommendationConfigs.filters = n;
|
|
@@ -597,32 +597,34 @@ const $ = () => ({
|
|
|
597
597
|
const t = [
|
|
598
598
|
this.currentRecommendationId,
|
|
599
599
|
this.configVersion,
|
|
600
|
-
|
|
600
|
+
b
|
|
601
601
|
].join(":");
|
|
602
|
-
if (
|
|
603
|
-
await
|
|
602
|
+
if (y && I === t) {
|
|
603
|
+
await y;
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
|
|
606
|
+
I = t, y = this._doFetchProducts();
|
|
607
607
|
try {
|
|
608
|
-
await
|
|
608
|
+
await y;
|
|
609
609
|
} finally {
|
|
610
|
-
|
|
610
|
+
I === t && (y = null, I = "");
|
|
611
611
|
}
|
|
612
612
|
},
|
|
613
613
|
async _doFetchProducts() {
|
|
614
|
-
var
|
|
614
|
+
var g;
|
|
615
615
|
const t = this.currentRecommendationId, e = this.blockStates[t], { recommendationConfigs: r } = e, n = P();
|
|
616
616
|
if (r.strategyId && n.isFeatureEnabled("reusableRecommendationStrategy")) {
|
|
617
617
|
await this._doFetchStrategyProducts(t);
|
|
618
618
|
return;
|
|
619
619
|
}
|
|
620
|
-
const s =
|
|
620
|
+
const s = (h.get(t) ?? 0) + 1;
|
|
621
|
+
h.set(t, s);
|
|
622
|
+
const i = parseInt(r.size) || 6;
|
|
621
623
|
if (!r.strategy) {
|
|
622
|
-
this._setBlockProducts(t, [],
|
|
624
|
+
this._setBlockProducts(t, [], i);
|
|
623
625
|
return;
|
|
624
626
|
}
|
|
625
|
-
const
|
|
627
|
+
const o = r.filters.filter((d) => d.isValid), a = F(o), u = ((g = C().find((d) => d.key === r.strategy)) == null ? void 0 : g.path) || "", c = {
|
|
626
628
|
locale: r.language,
|
|
627
629
|
currency: r.currencySettings.value,
|
|
628
630
|
partnerName: n.partnerName,
|
|
@@ -630,21 +632,21 @@ const $ = () => ({
|
|
|
630
632
|
details: !0,
|
|
631
633
|
campaignId: n.variationId
|
|
632
634
|
};
|
|
633
|
-
r.strategy === "manualMerchandising" ?
|
|
634
|
-
|
|
635
|
+
r.strategy === "manualMerchandising" ? c.productId = T(r.productIds) : r.strategy === "similarViewed" && (c.productId = "{itemId}"), r.strategy === "userBased" && (c.userId = "{user_id}"), a && (c.filter = a), r.shuffleProducts && (c.shuffle = !0), Object.assign(
|
|
636
|
+
c,
|
|
635
637
|
O(n.partnerName, r.strategy)
|
|
636
638
|
);
|
|
637
|
-
let
|
|
639
|
+
let m;
|
|
638
640
|
try {
|
|
639
|
-
|
|
641
|
+
m = await f.fetchRecommendationProducts(u, c);
|
|
640
642
|
} catch {
|
|
641
|
-
|
|
643
|
+
m = [];
|
|
642
644
|
}
|
|
643
|
-
this._setBlockProducts(t,
|
|
645
|
+
h.get(t) === s && this._setBlockProducts(t, m, i);
|
|
644
646
|
},
|
|
645
647
|
async _doFetchStrategyProducts(t) {
|
|
646
|
-
const e = (
|
|
647
|
-
|
|
648
|
+
const e = (h.get(t) ?? 0) + 1;
|
|
649
|
+
h.set(t, e);
|
|
648
650
|
const { recommendationConfigs: r } = this.blockStates[t];
|
|
649
651
|
let n = [], s = parseInt(r.size) || 6;
|
|
650
652
|
try {
|
|
@@ -654,13 +656,13 @@ const $ = () => ({
|
|
|
654
656
|
);
|
|
655
657
|
if (i) {
|
|
656
658
|
s = parseInt(String(i.size ?? "")) || s;
|
|
657
|
-
const o = r.currencySettings.value,
|
|
658
|
-
|
|
659
|
+
const o = r.currencySettings.value, u = (await this.resolveStrategyUrlTemplate(i, o)).replaceAll("{locale}", r.language).replaceAll("{currency}", o), c = u.indexOf("?"), m = c === -1 ? u : u.slice(0, c), g = (c === -1 ? "" : u.slice(c + 1)).split("&").filter((k) => k && !k.startsWith("user_id=")), d = g.length ? `${m}?${g.join("&")}` : m;
|
|
660
|
+
d && (n = await f.fetchRecommendationProductsByUrl(d));
|
|
659
661
|
}
|
|
660
662
|
} catch {
|
|
661
663
|
n = [];
|
|
662
664
|
}
|
|
663
|
-
|
|
665
|
+
h.get(t) === e && this._setBlockProducts(t, n, s);
|
|
664
666
|
},
|
|
665
667
|
_setBlockProducts(t, e, r) {
|
|
666
668
|
if (!this.blockStates[t])
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
-
import { ModificationDescription as
|
|
2
|
-
import { RECOMMENDATION_ID_ATTR as
|
|
3
|
-
import { isPartnerManagedBlock as
|
|
4
|
-
import { RecommendationConfigService as
|
|
5
|
-
let
|
|
6
|
-
function
|
|
7
|
-
|
|
1
|
+
import { ModificationDescription as g } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RECOMMENDATION_ID_ATTR as s } from "../constants/selectors.js";
|
|
3
|
+
import { isPartnerManagedBlock as p, updateProductContentInPlace as C, regenerateProductRowsWithStyles as N } from "../controls/main/utils.js";
|
|
4
|
+
import { RecommendationConfigService as m } from "../services/configService.js";
|
|
5
|
+
let o = null;
|
|
6
|
+
function D(n) {
|
|
7
|
+
o = n;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
if (!
|
|
9
|
+
function P(n, r, c, l) {
|
|
10
|
+
const i = o == null ? void 0 : o.getDocumentRootHtmlNode();
|
|
11
|
+
if (!o || !i || !("querySelector" in i))
|
|
12
12
|
return !1;
|
|
13
|
-
const
|
|
14
|
-
if (!
|
|
13
|
+
const e = i.querySelector(`[${s}="${n}"]`);
|
|
14
|
+
if (!e)
|
|
15
15
|
return !1;
|
|
16
|
-
const o = e.
|
|
17
|
-
|
|
16
|
+
const t = o.getDocumentModifier(), a = m.getConfig(e), d = Object.keys(r).some((u) => JSON.stringify(a[u]) !== JSON.stringify(r[u]));
|
|
17
|
+
if (m.stageConfig(t, e, r), p(e))
|
|
18
|
+
return t.apply(new g(l)), !0;
|
|
19
|
+
let f = !1;
|
|
20
|
+
return C({
|
|
21
|
+
currentNode: e,
|
|
22
|
+
documentModifier: t,
|
|
23
|
+
products: c,
|
|
24
|
+
onApplied: () => {
|
|
25
|
+
f = !0;
|
|
26
|
+
}
|
|
27
|
+
}) || (f = N({ currentNode: e, documentModifier: t, products: c })), !f && d && t.apply(new g(l)), !0;
|
|
18
28
|
}
|
|
19
29
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
P as commitBlockChangeOutsidePanel,
|
|
31
|
+
D as registerNodeConfigWriter
|
|
22
32
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useRecommendationExtensionStore as s } from "../store/recommendation.js";
|
|
2
|
+
import { commitBlockChangeOutsidePanel as d } from "./nodeConfigWriter.js";
|
|
3
|
+
async function u(e, n) {
|
|
4
|
+
const t = s(), o = t.blockStates[e];
|
|
5
|
+
if (!o)
|
|
6
|
+
return !1;
|
|
7
|
+
const { strategyId: a, strategy: c, size: i } = o.recommendationConfigs;
|
|
8
|
+
if (t.currentRecommendationId === e)
|
|
9
|
+
try {
|
|
10
|
+
await t.fetchRecommendationProducts();
|
|
11
|
+
} catch (m) {
|
|
12
|
+
console.error("[recommendation] product refetch after a strategy change failed", m);
|
|
13
|
+
}
|
|
14
|
+
const r = d(
|
|
15
|
+
e,
|
|
16
|
+
{ strategyId: a, strategy: c, size: i },
|
|
17
|
+
o.recommendationProducts,
|
|
18
|
+
n
|
|
19
|
+
);
|
|
20
|
+
return r || console.error("[recommendation] strategy change did not reach a node", { blockId: e }), r;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
u as commitStrategyChange
|
|
24
|
+
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-1ca6baf0]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-cc5ee925]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-cc5ee925]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-cc5ee925]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-91a26acd]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-91a26acd]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-91a26acd]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-91a26acd]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-91a26acd]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-
|
|
1
|
+
@charset "UTF-8";.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-1ca6baf0]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-cc5ee925]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-cc5ee925]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-cc5ee925]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-91a26acd]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-91a26acd]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-91a26acd]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-91a26acd]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-91a26acd]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-521cf6b3]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-521cf6b3] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}
|