@useinsider/guido 3.23.0-beta.5389d8c → 3.23.0-beta.95eb6bb
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/display-conditions/DisplayConditionSelectDrawer.vue.js +10 -10
- package/dist/config/compiler/utils/itemsCompilerUtils.js +43 -42
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +67 -64
- package/dist/extensions/DisplayConditions/control.js +2 -2
- package/dist/guido.css +1 -1
- package/dist/package.json.js +2 -2
- package/dist/utils/protectTableText.js +9 -9
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import a from "./DisplayConditionSelectDrawer.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
3
|
+
import d from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var o = function() {
|
|
5
5
|
var s = this, i = s._self._c, t = s._self._setupProxy;
|
|
6
|
-
return i("div", { staticClass: "guido-display-condition-select-root" }, [i(t.WpDrawer, { attrs: { id: "guido__display-condition-select-drawer", "description-status": "", "class-name": "guido-display-condition-select-drawer", size: "large", "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, status: t.store.isSelectOpen, "title-text": t.trans(`${t.KEY}.select-title`) }, on: { cancelOrBackButtonEvent: t.cancel, onCloseEvent: t.cancel } }, [i("div", { staticClass: "guido-display-condition-select" }, [t.store.listStatus === "loaded" && t.store.list.length ? i(t.InBasicTextInput, { staticClass: "mb-4 w-1", attrs: { id: "guido__display-condition-search-input", name: "displayConditionSearch", "character-counter-status": !1, "label-status": !1, "placeholder-text": t.trans(`${t.KEY}.search`), "tooltip-status": !1, value: t.search }, on: { input: function(e) {
|
|
6
|
+
return i("div", { staticClass: "guido-display-condition-select-root" }, [i(t.WpDrawer, { attrs: { id: "guido__display-condition-select-drawer", "description-status": "", "class-name": "guido-display-condition-select-drawer", size: "large", "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, status: t.store.isSelectOpen, "title-text": t.trans(`${t.KEY}.select-title`) }, on: { cancelOrBackButtonEvent: t.cancel, onCloseEvent: t.cancel } }, [i("div", { staticClass: "guido-display-condition-select d-f f-d-c f-g-1" }, [t.store.listStatus === "loaded" && t.store.list.length ? i(t.InBasicTextInput, { staticClass: "mb-4 w-1", attrs: { id: "guido__display-condition-search-input", name: "displayConditionSearch", "character-counter-status": !1, "label-status": !1, "placeholder-text": t.trans(`${t.KEY}.search`), "tooltip-status": !1, value: t.search }, on: { input: function(e) {
|
|
7
7
|
t.search = e;
|
|
8
8
|
} } }) : s._e(), t.store.listStatus === "loading" || t.store.listStatus === "idle" ? i("div", { staticClass: "guido-display-condition-select__list", attrs: { "data-testid": "display-condition-loading" } }, s._l(t.SKELETON_HEIGHTS, function(e, n) {
|
|
9
9
|
return i(t.InSkeleton, { key: n, attrs: { sizing: { width: 856, height: e } } });
|
|
10
|
-
}), 1) : t.store.listStatus === "error" ? i(t.InNoData, { attrs: { id: "guido__display-condition-error", "button-status": "", icon: "no-data", "button-text": t.trans(`${t.KEY}.retry`), description: t.trans(`${t.KEY}.error-load`), title: t.trans(`${t.KEY}.error-load-title`) }, on: { click: t.loadList } }) : t.store.list.length ? t.filteredList.length ? i("ul", { staticClass: "guido-display-condition-select__list" }, s._l(t.filteredList, function(e) {
|
|
10
|
+
}), 1) : t.store.listStatus === "error" ? i(t.InNoData, { staticClass: "d-f f-d-c j-c-c f-g-1", attrs: { id: "guido__display-condition-error", "button-status": "", icon: "no-data", "button-text": t.trans(`${t.KEY}.retry`), description: t.trans(`${t.KEY}.error-load`), title: t.trans(`${t.KEY}.error-load-title`) }, on: { click: t.loadList } }) : t.store.list.length ? t.filteredList.length ? i("ul", { staticClass: "guido-display-condition-select__list" }, s._l(t.filteredList, function(e) {
|
|
11
11
|
return i("li", { key: e.id, staticClass: "guido-display-condition-card", attrs: { "data-condition-id": e.id } }, [i("div", { staticClass: "guido-display-condition-card__header" }, [i("div", { staticClass: "guido-display-condition-card__text" }, [i("p", { staticClass: "guido-display-condition-card__name" }, [s._v(" " + s._s(e.name) + " ")]), e.description ? i("p", { staticClass: "guido-display-condition-card__description" }, [s._v(" " + s._s(e.description) + " ")]) : s._e()]), i("div", { staticClass: "guido-display-condition-card__actions" }, [i("div", { staticClass: "guido-display-condition-card__split" }, [i(t.InButtonV2, { attrs: { id: `guido__display-condition-select-${e.id}`, type: "subtle-primary", "label-text": t.trans(`${t.KEY}.select`) }, on: { click: function(n) {
|
|
12
12
|
return t.select(e);
|
|
13
13
|
} } }), i(t.InButtonV2, { attrs: { id: `guido__display-condition-menu-${e.id}`, "left-icon": "filled-dropdown-down", type: "subtle-primary", "label-text-status": !1 }, on: { click: function(n) {
|
|
@@ -17,18 +17,18 @@ var d = function() {
|
|
|
17
17
|
} } }, [s._v(" " + s._s(t.trans(`${t.KEY}.delete`)) + " ")])]) : s._e()], 1), i("span", { staticClass: "guido-display-condition-card__divider" }), i("button", { staticClass: "guido-display-condition-card__expand", attrs: { id: `guido__display-condition-expand-${e.id}`, type: "button", "aria-expanded": t.expandedId === e.id ? "true" : "false", "aria-label": t.trans(`${t.KEY}.preview`) }, on: { click: function(n) {
|
|
18
18
|
return t.toggleExpanded(e);
|
|
19
19
|
} } }, [i(t.InIcons, { attrs: { name: t.expandedId === e.id ? "filled-dropdown-up" : "filled-dropdown-down" } })], 1)])]), t.expandedId === e.id ? i("pre", { staticClass: "guido-display-condition-card__code" }, [s._v(s._s(t.codeOf(e)))]) : s._e()]);
|
|
20
|
-
}), 0) : i(t.InNoData, { attrs: { id: "guido__display-condition-no-result", icon: "no-data", title: t.trans(`${t.KEY}.no-result`) } }) : i(t.InNoData, { attrs: { id: "guido__display-condition-empty", "button-status": "", icon: "no-personalization", "button-text": t.trans(`${t.KEY}.create-new`), description: t.trans(`${t.KEY}.empty-description`), title: t.trans(`${t.KEY}.empty-title`) }, on: { click: function(e) {
|
|
20
|
+
}), 0) : i(t.InNoData, { staticClass: "d-f f-d-c j-c-c f-g-1", attrs: { id: "guido__display-condition-no-result", icon: "no-data", title: t.trans(`${t.KEY}.no-result`) } }) : i(t.InNoData, { staticClass: "d-f f-d-c j-c-c f-g-1", attrs: { id: "guido__display-condition-empty", "button-status": "", icon: "no-personalization", "button-text": t.trans(`${t.KEY}.create-new`), description: t.trans(`${t.KEY}.empty-description`), title: t.trans(`${t.KEY}.empty-title`) }, on: { click: function(e) {
|
|
21
21
|
return t.store.openCreate();
|
|
22
22
|
} } })], 1)]), t.store.pendingDelete ? i("div", { staticClass: "guido-display-condition-select__delete-modal" }, [i(t.WpModal, { attrs: { id: "guido__display-condition-delete-modal", size: "X-small", state: "danger", "close-on-outside-click": !1, "footer-button-options": t.deleteModalButtons, title: t.trans(`${t.KEY}.delete-confirm-title`) }, on: { close: t.closeDeleteModal, "primary-action": t.confirmDelete } }, [i("p", { staticClass: "guido-display-condition-select__delete-text" }, [s._v(" " + s._s(t.trans(`${t.KEY}.delete-confirm-description`, { name: t.store.pendingDelete.name })) + " ")])])], 1) : s._e()], 1);
|
|
23
|
-
}, l = [], c = /* @__PURE__ */
|
|
23
|
+
}, l = [], c = /* @__PURE__ */ d(
|
|
24
24
|
a,
|
|
25
|
-
|
|
25
|
+
o,
|
|
26
26
|
l,
|
|
27
27
|
!1,
|
|
28
28
|
null,
|
|
29
|
-
"
|
|
29
|
+
"cf7caade"
|
|
30
30
|
);
|
|
31
|
-
const
|
|
31
|
+
const f = c.exports;
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
f as default
|
|
34
34
|
};
|
|
@@ -1,75 +1,76 @@
|
|
|
1
|
-
import { PRODUCT_WRAPPER_SELECTOR as
|
|
2
|
-
import { DefaultConfigValues as
|
|
3
|
-
import { protectLiquid as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PRODUCT_WRAPPER_SELECTOR as _, hasZeroWidthDeclaration as p, isZeroWidthValue as f, withWidthPin as y, PRODUCT_TD_SELECTOR as D, withoutZeroWidth as S } from "../../../extensions/Blocks/Items/constants/cardWidth.js";
|
|
2
|
+
import { DefaultConfigValues as M } from "../../../extensions/Blocks/Items/enums/settingsEnums.js";
|
|
3
|
+
import { protectLiquid as h, restoreLiquid as T } from "../../../utils/liquidProtection.js";
|
|
4
|
+
import { protectTableText as E, restoreTableText as m } from "../../../utils/protectTableText.js";
|
|
5
|
+
const A = "MSO_ITEMS_HIDE_START", b = "MSO_ITEMS_HIDE_END", I = "mso-hide:all; max-height:0; overflow:hidden; font-size:0; line-height:0;", O = ".ins-product-cart td.horizontal-price, .ins-product-cart td.vertical-price", g = ".ins-product-td td.product-image-class img[width]", H = Number(M.productImageWidth);
|
|
6
|
+
function P(t) {
|
|
6
7
|
if (!t.includes("vertical-price") || !t.includes("ins-product-cart"))
|
|
7
8
|
return t;
|
|
8
|
-
const s = t.replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), o = new DOMParser().parseFromString(s, "text/html");
|
|
9
|
+
const s = E(t).replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), o = new DOMParser().parseFromString(s, "text/html");
|
|
9
10
|
let n = !1;
|
|
10
|
-
if (o.querySelectorAll(
|
|
11
|
+
if (o.querySelectorAll(O).forEach((e) => {
|
|
11
12
|
var d, u;
|
|
12
|
-
const
|
|
13
|
-
if (!/display\s*:\s*none/i.test(
|
|
13
|
+
const i = e.getAttribute("style") || "";
|
|
14
|
+
if (!/display\s*:\s*none/i.test(i))
|
|
14
15
|
return;
|
|
15
16
|
const l = e.previousSibling;
|
|
16
|
-
if (((l == null ? void 0 : l.nodeType) !== Node.COMMENT_NODE || l.data !==
|
|
17
|
-
const a =
|
|
18
|
-
e.setAttribute("style", `${
|
|
17
|
+
if (((l == null ? void 0 : l.nodeType) !== Node.COMMENT_NODE || l.data !== A) && ((d = e.parentNode) == null || d.insertBefore(o.createComment(A), e), (u = e.parentNode) == null || u.insertBefore(o.createComment(b), e.nextSibling)), !/mso-hide/i.test(i)) {
|
|
18
|
+
const a = i.trim().endsWith(";") ? " " : "; ";
|
|
19
|
+
e.setAttribute("style", `${i}${a}${I}`);
|
|
19
20
|
}
|
|
20
21
|
n = !0;
|
|
21
22
|
}), !n)
|
|
22
23
|
return t;
|
|
23
|
-
const c = s.match(/<!DOCTYPE[^>]*>/i)
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const c = s.match(/<!DOCTYPE[^>]*>/i), r = c ? `${c[0]}
|
|
25
|
+
` : "";
|
|
26
|
+
return m((r + o.documentElement.outerHTML).replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}").replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}"));
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function R(t) {
|
|
28
29
|
if (!t.includes("ins-product-wrapper") && !t.includes("ins-product-td"))
|
|
29
30
|
return t;
|
|
30
|
-
const s = new DOMParser().parseFromString(
|
|
31
|
+
const s = new DOMParser().parseFromString(h(E(t)), "text/html");
|
|
31
32
|
let o = !1;
|
|
32
|
-
if (s.querySelectorAll(
|
|
33
|
-
const e =
|
|
34
|
-
if (!
|
|
33
|
+
if (s.querySelectorAll(_).forEach((r) => {
|
|
34
|
+
const e = r.getAttribute("style") || "";
|
|
35
|
+
if (!p(e) && !f(r.getAttribute("width")))
|
|
35
36
|
return;
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
}), s.querySelectorAll(
|
|
39
|
-
const e =
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
|
|
37
|
+
const i = y(e);
|
|
38
|
+
i !== e && (r.setAttribute("style", i), o = !0), f(r.getAttribute("width")) && (r.setAttribute("width", "100%"), o = !0);
|
|
39
|
+
}), s.querySelectorAll(D).forEach((r) => {
|
|
40
|
+
const e = r.getAttribute("style") || "";
|
|
41
|
+
if (p(e)) {
|
|
42
|
+
const i = S(e);
|
|
43
|
+
i ? r.setAttribute("style", i) : r.removeAttribute("style"), o = !0;
|
|
43
44
|
}
|
|
44
|
-
f(
|
|
45
|
+
f(r.getAttribute("width")) && (r.removeAttribute("width"), o = !0);
|
|
45
46
|
}), !o)
|
|
46
47
|
return t;
|
|
47
48
|
const n = t.match(/<!DOCTYPE[^>]*>/i), c = n ? `${n[0]}
|
|
48
49
|
` : "";
|
|
49
|
-
return
|
|
50
|
+
return m(T(c + s.documentElement.outerHTML));
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function x(t) {
|
|
52
53
|
if (!t.includes("product-image-class"))
|
|
53
54
|
return t;
|
|
54
|
-
const s = new DOMParser().parseFromString(
|
|
55
|
+
const s = new DOMParser().parseFromString(h(E(t)), "text/html");
|
|
55
56
|
let o = !1;
|
|
56
|
-
if (s.querySelectorAll(
|
|
57
|
+
if (s.querySelectorAll(g).forEach((r) => {
|
|
57
58
|
var u, a;
|
|
58
|
-
const e = ((u =
|
|
59
|
-
if (!/^\d+$/.test(e) || /(^|;)\s*min-width\s*:/i.test(
|
|
59
|
+
const e = ((u = r.getAttribute("width")) == null ? void 0 : u.trim()) ?? "", i = ((a = r.getAttribute("style")) == null ? void 0 : a.trim()) ?? "";
|
|
60
|
+
if (!/^\d+$/.test(e) || /(^|;)\s*min-width\s*:/i.test(i))
|
|
60
61
|
return;
|
|
61
|
-
const l =
|
|
62
|
-
|
|
62
|
+
const l = i && !i.endsWith(";") ? ";" : "", d = Math.min(Number(e), H);
|
|
63
|
+
r.setAttribute("style", `${i}${l}min-width:${d}px;max-width:${e}px`), o = !0;
|
|
63
64
|
}), !o)
|
|
64
65
|
return t;
|
|
65
66
|
const n = t.match(/<!DOCTYPE[^>]*>/i), c = n ? `${n[0]}
|
|
66
67
|
` : "";
|
|
67
|
-
return
|
|
68
|
+
return m(T(c + s.documentElement.outerHTML));
|
|
68
69
|
}
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
b as MSO_ITEMS_HIDE_END,
|
|
72
|
+
A as MSO_ITEMS_HIDE_START,
|
|
73
|
+
x as lockHorizontalItemImageWidths,
|
|
74
|
+
R as normalizeItemsBlockWidths,
|
|
75
|
+
P as wrapHiddenPriceTdsForOutlook
|
|
75
76
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { useConfig as C } from "../../../composables/useConfig.js";
|
|
2
2
|
import { useRecommendation as O } from "../../../composables/useRecommendation.js";
|
|
3
|
-
import { MOBILE_ROW_SELECTOR as q, MOBILE_CONTAINER_SELECTOR as M, CSS_CLASS_RECO_BUTTON as
|
|
4
|
-
import { useRecommendationExtensionStore as
|
|
5
|
-
import {
|
|
6
|
-
|
|
3
|
+
import { MOBILE_ROW_SELECTOR as q, MOBILE_CONTAINER_SELECTOR as M, CSS_CLASS_RECO_BUTTON as T } from "../../../extensions/Blocks/Recommendation/constants/selectors.js";
|
|
4
|
+
import { useRecommendationExtensionStore as B } from "../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
5
|
+
import { protectTableText as N, restoreTableText as L } from "../../../utils/protectTableText.js";
|
|
6
|
+
import { isIgnoredRecommendationBlock as P } from "./recommendationIgnoreUtils.js";
|
|
7
|
+
function R(t, r, e, o, c = "") {
|
|
7
8
|
const i = `{{${c}${t}_${r}_${e}}}`, n = `{{${c}${t}_${r}_currency}}`;
|
|
8
9
|
return o === "before" ? `${n} ${i}` : `${i} ${n}`;
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
+
function b(t) {
|
|
11
12
|
let r = t;
|
|
12
13
|
for (; r.children.length === 1; )
|
|
13
14
|
[r] = r.children;
|
|
@@ -19,12 +20,12 @@ function _(t, r, e, o, c, i) {
|
|
|
19
20
|
const n = t.querySelector("img");
|
|
20
21
|
n && (n.setAttribute("src", `{{${i}${e}_${o}_image_url}}`), n.setAttribute("alt", `{{${i}${e}_${o}_name}}`));
|
|
21
22
|
const s = t.querySelector("a");
|
|
22
|
-
s && (s.setAttribute("href", `{{${i}${e}_${o}_url}}`), s.classList.add(
|
|
23
|
+
s && (s.setAttribute("href", `{{${i}${e}_${o}_url}}`), s.classList.add(T));
|
|
23
24
|
break;
|
|
24
25
|
}
|
|
25
26
|
case "productName": {
|
|
26
27
|
const n = t.querySelector("p");
|
|
27
|
-
n && (
|
|
28
|
+
n && (b(n).textContent = `{{${i}${e}_${o}_name}}`);
|
|
28
29
|
break;
|
|
29
30
|
}
|
|
30
31
|
// Inline mode ("Move to next line" OFF) merges BOTH prices into one row
|
|
@@ -32,16 +33,16 @@ function _(t, r, e, o, c, i) {
|
|
|
32
33
|
// substitute by cell content, not by the row's anchor (SD-145161).
|
|
33
34
|
case "productPrice":
|
|
34
35
|
case "productOldPrice": {
|
|
35
|
-
const n = (
|
|
36
|
-
|
|
36
|
+
const n = (l, d) => {
|
|
37
|
+
l && (b(l).textContent = R(
|
|
37
38
|
e,
|
|
38
39
|
o,
|
|
39
|
-
|
|
40
|
+
d,
|
|
40
41
|
c,
|
|
41
42
|
i
|
|
42
43
|
));
|
|
43
|
-
}, s = t.querySelector(".product-price p"),
|
|
44
|
-
n(s ?? (r === "productPrice" ? u : null), "price"), n(
|
|
44
|
+
}, s = t.querySelector(".product-price p"), a = t.querySelector(".product-old-price p"), u = !s && !a ? t.querySelector("p") : null;
|
|
45
|
+
n(s ?? (r === "productPrice" ? u : null), "price"), n(a ?? (r === "productOldPrice" ? u : null), "original_price");
|
|
45
46
|
break;
|
|
46
47
|
}
|
|
47
48
|
case "productButton": {
|
|
@@ -70,72 +71,72 @@ function _(t, r, e, o, c, i) {
|
|
|
70
71
|
default: {
|
|
71
72
|
const n = t.getAttribute("product-attr") ? t : t.querySelector("[product-attr]");
|
|
72
73
|
if (n) {
|
|
73
|
-
const s = n.getAttribute("product-attr"),
|
|
74
|
-
|
|
74
|
+
const s = n.getAttribute("product-attr"), a = n.querySelector("p");
|
|
75
|
+
a && (b(a).textContent = `{{${i}${e}_${o}_${s}}}`);
|
|
75
76
|
}
|
|
76
77
|
break;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
const
|
|
81
|
+
const w = "name";
|
|
81
82
|
function y(t, r, e, o) {
|
|
82
|
-
const c = `${o}${r}_${e}_${
|
|
83
|
+
const c = `${o}${r}_${e}_${w}`;
|
|
83
84
|
return {
|
|
84
85
|
open: t.createComment(`{% if ${c} and ${c} != "" %}`),
|
|
85
86
|
close: t.createComment("{% endif %}")
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function D(t, r, e) {
|
|
89
90
|
return y(t, r, 0, e);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function v(t, r, e, o) {
|
|
92
93
|
if (!t.innerHTML.includes("{{"))
|
|
93
94
|
return;
|
|
94
95
|
const { open: c, close: i } = y(t.ownerDocument, r, e, o);
|
|
95
96
|
t.insertBefore(c, t.firstChild), t.appendChild(i);
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
+
function W(t, r, e, o) {
|
|
98
99
|
var n, s;
|
|
99
100
|
if (!t.innerHTML.includes("{{"))
|
|
100
101
|
return;
|
|
101
102
|
const { open: c, close: i } = y(t.ownerDocument, r, e, o);
|
|
102
103
|
(n = t.parentNode) == null || n.insertBefore(c, t), (s = t.parentNode) == null || s.insertBefore(i, t.nextSibling);
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function H(t, r, e, o) {
|
|
105
106
|
t.querySelectorAll(".recommendation-product-row").forEach((i, n) => {
|
|
106
|
-
i.querySelectorAll("[data-attribute-type]").forEach((
|
|
107
|
-
const u =
|
|
108
|
-
|
|
109
|
-
_(
|
|
110
|
-
}) : _(
|
|
111
|
-
}),
|
|
107
|
+
i.querySelectorAll("[data-attribute-type]").forEach((a) => {
|
|
108
|
+
const u = a.getAttribute("data-attribute-type") || "", l = a.querySelectorAll(".attribute-cell");
|
|
109
|
+
l.length > 0 ? l.forEach((d) => {
|
|
110
|
+
_(d, u, r, n, e, o);
|
|
111
|
+
}) : _(a, u, r, n, e, o);
|
|
112
|
+
}), W(i, r, n, o);
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function x(t, r, e, o) {
|
|
115
116
|
const c = t.querySelectorAll(".recommendation-product-row");
|
|
116
117
|
if (!c.length)
|
|
117
118
|
return;
|
|
118
119
|
const [i] = c, n = i.querySelector("[data-attribute-type]"), s = n ? n.querySelectorAll(".attribute-cell").length : 1;
|
|
119
|
-
c.forEach((
|
|
120
|
-
|
|
121
|
-
const p =
|
|
122
|
-
|
|
120
|
+
c.forEach((a, u) => {
|
|
121
|
+
a.querySelectorAll("[data-attribute-type]").forEach((d) => {
|
|
122
|
+
const p = d.getAttribute("data-attribute-type") || "";
|
|
123
|
+
d.querySelectorAll(".attribute-cell").forEach((m, h) => {
|
|
123
124
|
const S = u * s + h;
|
|
124
|
-
_(m, p, r, S, e, o),
|
|
125
|
+
_(m, p, r, S, e, o), v(m, r, S, o);
|
|
125
126
|
});
|
|
126
127
|
});
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
+
function F(t, r, e, o) {
|
|
130
131
|
t.querySelectorAll(".ins-recommendation-product-container").forEach((i) => {
|
|
131
|
-
|
|
132
|
+
x(i, r, e, o);
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function G(t, r, e) {
|
|
135
136
|
const o = t.getAttribute("data-layout") || "grid", c = t.getAttribute("currency-alignment"), i = c === "0" || c === "before" ? "before" : "after";
|
|
136
|
-
o === "list" ?
|
|
137
|
+
o === "list" ? H(t, r, i, e) : F(t, r, i, e);
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function A(t, r, e) {
|
|
139
140
|
const o = new RegExp(`${r}\\s*:\\s*(\\d+)\\s*px`, "i"), c = t.match(o);
|
|
140
141
|
return c ? parseInt(c[1]) : e;
|
|
141
142
|
}
|
|
@@ -150,7 +151,7 @@ function g(t) {
|
|
|
150
151
|
const e = (t.getAttribute("style") || "").match(/(?:^|[;\s])width\s*:\s*(\d+(?:\.\d+)?(?:px|%))/i);
|
|
151
152
|
return e && $(e[1]) ? e[1] : null;
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
+
function V(t, r) {
|
|
154
155
|
let e = t.parentElement;
|
|
155
156
|
for (; e && e !== r; ) {
|
|
156
157
|
if (e.tagName === "TD" && g(e))
|
|
@@ -159,62 +160,64 @@ function x(t, r) {
|
|
|
159
160
|
}
|
|
160
161
|
return null;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
const r = t.getAttribute("style") || "", e =
|
|
163
|
+
function U(t) {
|
|
164
|
+
const r = t.getAttribute("style") || "", e = A(r, "width", 600), o = A(r, "padding", 0) * 2, c = Math.max(0, e - o);
|
|
164
165
|
c !== 0 && t.querySelectorAll("img.adapt-img").forEach((i) => {
|
|
165
166
|
if (i.hasAttribute("width"))
|
|
166
167
|
return;
|
|
167
|
-
const n =
|
|
168
|
+
const n = V(i, t);
|
|
168
169
|
if (!n)
|
|
169
170
|
return;
|
|
170
|
-
const s = g(n),
|
|
171
|
+
const s = g(n), a = A(n.getAttribute("style") || "", "padding", 0) * 2, u = s.endsWith("%") ? Math.floor(c * parseFloat(s) / 100) : parseInt(s), l = Math.max(1, u - a), d = i.getAttribute("style") || "", p = /(?:^|[;\s])max-height\s*:\s*(\d+(?:\.\d+)?)px/i.exec(d);
|
|
171
172
|
if (p) {
|
|
172
|
-
i.setAttribute("width", String(Math.max(1, Math.min(
|
|
173
|
+
i.setAttribute("width", String(Math.max(1, Math.min(l, Math.floor(parseFloat(p[1])))))), i.removeAttribute("height");
|
|
173
174
|
return;
|
|
174
175
|
}
|
|
175
|
-
if (i.setAttribute("width", String(
|
|
176
|
-
const f =
|
|
177
|
-
i.setAttribute("style", `${
|
|
176
|
+
if (i.setAttribute("width", String(l)), !/\bwidth\s*:\s*\d/i.test(d)) {
|
|
177
|
+
const f = d && !d.trim().endsWith(";") ? "; " : "";
|
|
178
|
+
i.setAttribute("style", `${d}${f}width: ${l}px`);
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
}
|
|
181
|
-
const E = "MSO_MOBILE_HIDE_START",
|
|
182
|
-
function
|
|
182
|
+
const E = "MSO_MOBILE_HIDE_START", X = "MSO_MOBILE_HIDE_END";
|
|
183
|
+
function j(t, r) {
|
|
183
184
|
t.querySelectorAll(q).forEach((e) => {
|
|
184
185
|
var i, n;
|
|
185
186
|
const o = e.querySelector(M);
|
|
186
187
|
if (!o || o.children.length === 0)
|
|
187
188
|
return;
|
|
188
189
|
const c = e.previousSibling;
|
|
189
|
-
(c == null ? void 0 : c.nodeType) === Node.COMMENT_NODE && c.data === E || ((i = e.parentNode) == null || i.insertBefore(r.createComment(E), e), (n = e.parentNode) == null || n.insertBefore(r.createComment(
|
|
190
|
+
(c == null ? void 0 : c.nodeType) === Node.COMMENT_NODE && c.data === E || ((i = e.parentNode) == null || i.insertBefore(r.createComment(E), e), (n = e.parentNode) == null || n.insertBefore(r.createComment(X), e.nextSibling));
|
|
190
191
|
});
|
|
191
192
|
}
|
|
192
|
-
function
|
|
193
|
+
function Y(t, r) {
|
|
193
194
|
const e = t.match(/<!DOCTYPE[^>]*>/i);
|
|
194
195
|
return (e ? `${e[0]}
|
|
195
196
|
` : "") + r.documentElement.outerHTML;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
const r = t.replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), e = new DOMParser().parseFromString(r, "text/html"), o = e.querySelectorAll(".recommendation-block-v2");
|
|
198
|
+
function I(t) {
|
|
199
|
+
const r = N(t).replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), e = new DOMParser().parseFromString(r, "text/html"), o = e.querySelectorAll(".recommendation-block-v2");
|
|
199
200
|
if (!o.length)
|
|
200
201
|
return t;
|
|
201
|
-
const { buildCampaignUrl: c } = O(), i =
|
|
202
|
+
const { buildCampaignUrl: c } = O(), i = B();
|
|
202
203
|
i.recommendationCampaignUrls = {};
|
|
203
204
|
const { isFeatureEnabled: n } = C(), s = n("liquidSyntax") ? "reco_" : "";
|
|
204
|
-
|
|
205
|
-
var
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
if ((
|
|
209
|
-
|
|
210
|
-
const { open: h, close: S } =
|
|
205
|
+
o.forEach((u) => {
|
|
206
|
+
var d, p, f, m;
|
|
207
|
+
const l = u.getAttribute("recommendation-id");
|
|
208
|
+
if (l) {
|
|
209
|
+
if ((d = u.parentNode) == null || d.insertBefore(e.createComment("REC_START"), u), (p = u.parentNode) == null || p.insertBefore(e.createComment("REC_END"), u.nextSibling), u.querySelectorAll('[data-visibility="0"]').forEach((h) => h.remove()), c(l), j(u, e), !P(u)) {
|
|
210
|
+
G(u, l, s);
|
|
211
|
+
const { open: h, close: S } = D(e, l, s);
|
|
211
212
|
(f = u.parentNode) == null || f.insertBefore(h, u), (m = u.parentNode) == null || m.insertBefore(S, u.nextSibling);
|
|
212
213
|
}
|
|
213
|
-
|
|
214
|
+
U(u);
|
|
214
215
|
}
|
|
215
|
-
})
|
|
216
|
+
});
|
|
217
|
+
const a = Y(r, e);
|
|
218
|
+
return L(a.replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}").replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}"));
|
|
216
219
|
}
|
|
217
220
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
221
|
+
R as formatPriceVariable,
|
|
222
|
+
I as prepareRecommendationBlocks
|
|
220
223
|
};
|
|
@@ -82,9 +82,9 @@ class B extends S {
|
|
|
82
82
|
`;
|
|
83
83
|
}
|
|
84
84
|
onRender() {
|
|
85
|
-
this.teardown(), this.wire("#guido__btn-add-display-condition", () => this.toggleMenu()), this.wire("#guido__btn-display-condition-create", () => this.openDrawer("create")), this.wire("#guido__btn-display-condition-select", () => this.openDrawer("select")), this.wire("#guido__btn-edit-display-condition", () => this.openDrawer("edit")), this.wire("#guido__btn-remove-display-condition", () => this.applyCondition(null)), this.wire("#guido__btn-display-condition-toggle", () => {
|
|
85
|
+
this.forgetLastPanelNode(), this.teardown(), this.wire("#guido__btn-add-display-condition", () => this.toggleMenu()), this.wire("#guido__btn-display-condition-create", () => this.openDrawer("create")), this.wire("#guido__btn-display-condition-select", () => this.openDrawer("select")), this.wire("#guido__btn-edit-display-condition", () => this.openDrawer("edit")), this.wire("#guido__btn-remove-display-condition", () => this.applyCondition(null)), this.wire("#guido__btn-display-condition-toggle", () => {
|
|
86
86
|
this.expanded = !this.expanded, this.paint();
|
|
87
|
-
}), this.observeCodeSize()
|
|
87
|
+
}), this.observeCodeSize();
|
|
88
88
|
}
|
|
89
89
|
onTemplateNodeUpdated(i) {
|
|
90
90
|
const t = i !== this.currentNode;
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-b8f24f34] .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-baf7a5dd]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-36a92344]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-36a92344]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-36a92344]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{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-19d8cb42] .vueperslides__bullets,[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-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .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}.guido-code-editor-field__label[data-v-e96c7aa3]{margin:0 0 8px;color:#2c3546;font-size:13px;line-height:16px}[data-v-a4b2ccb9] .guido-display-condition-academy{color:#0a2ecc;text-decoration:underline}[data-v-a4b2ccb9] .guido-display-condition-create__optional{color:#666}.guido-display-condition-create__separator[data-v-a4b2ccb9]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,#91949F 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__method-title[data-v-a4b2ccb9]{margin:0 0 24px;color:#292929;font-size:13px;font-weight:600;letter-spacing:1.2px;line-height:20px;text-transform:uppercase}.guido-display-condition-create__methods[data-v-a4b2ccb9]{display:flex;gap:16px;margin-bottom:24px}[data-v-
|
|
1
|
+
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-b8f24f34] .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-baf7a5dd]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-36a92344]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-36a92344]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-36a92344]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{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-19d8cb42] .vueperslides__bullets,[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-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .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}.guido-code-editor-field__label[data-v-e96c7aa3]{margin:0 0 8px;color:#2c3546;font-size:13px;line-height:16px}[data-v-a4b2ccb9] .guido-display-condition-academy{color:#0a2ecc;text-decoration:underline}[data-v-a4b2ccb9] .guido-display-condition-create__optional{color:#666}.guido-display-condition-create__separator[data-v-a4b2ccb9]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,#91949F 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__method-title[data-v-a4b2ccb9]{margin:0 0 24px;color:#292929;font-size:13px;font-weight:600;letter-spacing:1.2px;line-height:20px;text-transform:uppercase}.guido-display-condition-create__methods[data-v-a4b2ccb9]{display:flex;gap:16px;margin-bottom:24px}[data-v-cf7caade] .guido-display-condition-academy{color:#0a2ecc;text-decoration:underline}.guido-display-condition-select-root[data-v-cf7caade] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-cf7caade]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-cf7caade] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select__delete-text[data-v-cf7caade]{margin:0;color:#292929}.guido-display-condition-select-root[data-v-cf7caade] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-cf7caade]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card[data-v-cf7caade]{border:1px solid #E1E1E1;border-radius:4px;background-color:#fff}.guido-display-condition-card__header[data-v-cf7caade]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-cf7caade]{min-width:0}.guido-display-condition-card__name[data-v-cf7caade]{margin:0;overflow:hidden;color:#292929;font-size:16px;font-weight:600;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__description[data-v-cf7caade]{margin:4px 0 0;overflow:hidden;color:#666;font-size:13px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-cf7caade]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-cf7caade]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-cf7caade]{position:absolute;z-index:2;top:calc(100% + 2px);right:0;min-width:115px;padding:4px 0;border-radius:4px;background-color:#fff;box-shadow:0 4px 16px #22293829}.guido-display-condition-card__menu-item[data-v-cf7caade]{width:100%;padding:8px 16px;border:0;background:none;color:#222938;cursor:pointer;font-size:14px;line-height:24px;text-align:left}.guido-display-condition-card__menu-item[data-v-cf7caade]:hover,.guido-display-condition-card__menu-item[data-v-cf7caade]:focus-visible{background-color:#eff2f4}.guido-display-condition-card__divider[data-v-cf7caade]{width:1px;height:24px;background-color:#dcdee6}.guido-display-condition-card__expand[data-v-cf7caade]{display:flex;padding:0;border:0;background:none;cursor:pointer}.guido-display-condition-card__code[data-v-cf7caade]{margin:1px 15px 15px;padding:8px;border:1px solid #E1E1E1;border-radius:4px;background-color:#fff;color:#101727;font-family:inherit;font-size:15px;line-height:24px;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.23.0-beta.
|
|
1
|
+
const o = "3.23.0-beta.95eb6bb", s = { stripo: { version: "2.81.1" } }, e = {
|
|
2
2
|
version: o,
|
|
3
3
|
guido: s
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default,
|
|
7
7
|
s as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = "guido-table-text:", i = new RegExp(`<!--${n}([A-Za-z0-9+/=]*)-->`, "g"), T = /<!--[\s\S]*?-->|\{%[\s\S]*?%\}|<[a-zA-Z/!?](?:[^>"']|"[^"]*"|'[^']*')*>|[^<{]+|[<{]/g, o = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr", "colgroup"]), r = /* @__PURE__ */ new Set(["col"]), f = /* @__PURE__ */ new Set([...o, ...r, "td", "th", "caption"]), p = (s) => btoa(unescape(encodeURIComponent(s))), u = (s) => decodeURIComponent(escape(atob(s))), d = (s) => {
|
|
2
2
|
const e = /^<(\/?)([a-zA-Z][\w-]*)/.exec(s);
|
|
3
3
|
return { name: e ? e[2].toLowerCase() : "", closing: e ? e[1] === "/" : !1 };
|
|
4
4
|
};
|
|
5
|
-
function
|
|
5
|
+
function E(s) {
|
|
6
6
|
const e = [];
|
|
7
7
|
let a = !1;
|
|
8
|
-
return s.replace(
|
|
8
|
+
return s.replace(T, (t) => {
|
|
9
9
|
if (t.startsWith("<!--") || t.startsWith("{%"))
|
|
10
10
|
return t;
|
|
11
11
|
if (t.length > 1 && t.startsWith("<")) {
|
|
12
|
-
const { name:
|
|
13
|
-
return a =
|
|
12
|
+
const { name: c, closing: l } = d(t);
|
|
13
|
+
return a = f.has(c), !a || r.has(c) || (l ? e.includes(c) && e.splice(e.lastIndexOf(c)) : e.push(c)), t;
|
|
14
14
|
}
|
|
15
|
-
return a && o.has(e[e.length - 1] ?? "") && t.trim() ? `<!--${
|
|
15
|
+
return a && o.has(e[e.length - 1] ?? "") && t.trim() ? `<!--${n}${p(t)}-->` : t;
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const g = (s) => s.replace(i, (e, a) => u(a));
|
|
19
19
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
E as protectTableText,
|
|
21
|
+
g as restoreTableText
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.23.0-beta.
|
|
3
|
+
"version": "3.23.0-beta.95eb6bb",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|