@useinsider/guido 2.0.0-beta.b46bbf6 → 2.0.0-beta.b889d81
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/composables/useStripo.js +37 -35
- package/dist/config/migrator/index.js +8 -9
- package/dist/extensions/Blocks/CouponBlock/constants.js +4 -0
- package/dist/extensions/Blocks/CouponBlock/controls/index.js +29 -0
- package/dist/extensions/Blocks/CouponBlock/extension.js +5 -4
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +20 -14
- package/dist/extensions/Blocks/CouponBlock/template.js +22 -11
- package/dist/extensions/Blocks/Items/block.js +40 -39
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +49 -46
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +26 -28
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +127 -132
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +2 -2
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +48 -58
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +58 -48
- package/dist/extensions/Blocks/Items/store/items-block.js +2 -2
- package/dist/extensions/Blocks/Items/template.js +123 -296
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +20 -11
- package/dist/extensions/Blocks/Recommendation/control.js +1 -1
- package/dist/extensions/Blocks/common-control.js +53 -64
- package/dist/extensions/Blocks/controlFactories.js +122 -111
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +290 -364
- package/dist/package.json.js +7 -0
- package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +14 -0
- package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +108 -0
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +4 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +1 -20
- package/dist/src/extensions/Blocks/common-control.d.ts +8 -13
- package/dist/src/extensions/Blocks/controlFactories.d.ts +30 -7
- package/package.json +3 -3
- package/dist/config/migrator/itemsBlockMigrator.js +0 -283
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +0 -172
- package/dist/src/config/migrator/itemsBlockMigrator.d.ts +0 -6
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +0 -71
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var I = (
|
|
3
|
-
var l = (
|
|
4
|
-
import { Control as
|
|
5
|
-
class
|
|
2
|
+
var I = (a, r, e) => r in a ? c(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
|
|
3
|
+
var l = (a, r, e) => I(a, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { Control as O, UIElementType as t, UEAttr as $ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
|
+
class _ extends O {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
8
|
l(this, "currentNode");
|
|
@@ -19,54 +19,43 @@ class B extends s {
|
|
|
19
19
|
this.lastBlockInstanceId = null;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Gets the
|
|
23
|
-
* @returns The container element or null if not found
|
|
24
|
-
*/
|
|
25
|
-
getItemsBlockContainer() {
|
|
26
|
-
return this.currentNode ? this.currentNode.closest(".items-block-v2") : null;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Gets the config block element from the current node (legacy support).
|
|
30
|
-
* @deprecated Use getNodeConfig() from nodeConfigUtils instead for Stripo V2
|
|
22
|
+
* Gets the config block element from the current node.
|
|
31
23
|
* @returns The config block element or null if not found
|
|
32
24
|
*/
|
|
33
25
|
getConfigBlock() {
|
|
34
|
-
|
|
26
|
+
if (!this.currentNode)
|
|
27
|
+
return null;
|
|
28
|
+
const e = this.currentNode.closest(".items-block-v2");
|
|
35
29
|
return e ? e.querySelector("esd-config-block") : null;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
|
-
* Gets the current block instance ID from the
|
|
32
|
+
* Gets the current block instance ID from the config block.
|
|
33
|
+
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
39
34
|
* @returns The block instance ID or null if not found
|
|
40
35
|
*/
|
|
41
|
-
getBlockInstanceId() {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
return null;
|
|
45
|
-
const n = e.getNodeConfig();
|
|
46
|
-
if (n && typeof n.blockInstanceId == "string")
|
|
47
|
-
return n.blockInstanceId;
|
|
48
|
-
const o = this.getConfigBlock();
|
|
49
|
-
return o ? o.getAttribute("data-block-instance-id") : null;
|
|
36
|
+
getBlockInstanceId(e = "data-block-instance-id") {
|
|
37
|
+
const n = this.getConfigBlock();
|
|
38
|
+
return n ? n.getAttribute(e) : null;
|
|
50
39
|
}
|
|
51
40
|
/**
|
|
52
41
|
* Handles block instance change detection and syncing.
|
|
53
|
-
* This is a helper method for controls that need to sync
|
|
54
|
-
*
|
|
55
|
-
* @param syncFunction - Function to call when block instance changes (to sync from node config)
|
|
42
|
+
* This is a helper method for controls that need to sync attributes when switching between block instances.
|
|
43
|
+
* @param syncFunction - Function to call when block instance changes (to sync from attributes)
|
|
56
44
|
* @param updateUI - Function to call to update the UI (called both on change and when same block)
|
|
45
|
+
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
57
46
|
* @returns true if block instance changed, false otherwise
|
|
58
47
|
*/
|
|
59
|
-
handleBlockInstanceChange(e, n) {
|
|
60
|
-
const o = this.getBlockInstanceId();
|
|
48
|
+
handleBlockInstanceChange(e, n, E = "data-block-instance-id") {
|
|
49
|
+
const o = this.getBlockInstanceId(E);
|
|
61
50
|
if (!o)
|
|
62
51
|
return !1;
|
|
63
|
-
const
|
|
64
|
-
return
|
|
52
|
+
const T = o !== this.lastBlockInstanceId;
|
|
53
|
+
return T ? (this.currentNode && e(this.currentNode), n(), this.lastBlockInstanceId = o) : n(), T;
|
|
65
54
|
}
|
|
66
|
-
_GuLabel({ text: e, name: n = "", position:
|
|
55
|
+
_GuLabel({ text: e, name: n = "", position: E = "top" }) {
|
|
67
56
|
return `
|
|
68
57
|
<${t.LABEL}
|
|
69
|
-
style="${
|
|
58
|
+
style="${E === "top" ? "margin-bottom: 8px;" : ""}"
|
|
70
59
|
${$.LABEL.text}="${e}"
|
|
71
60
|
${$.LABEL.name}="${n || `${e} Label`}">
|
|
72
61
|
</${t.LABEL}>
|
|
@@ -86,59 +75,59 @@ class B extends s {
|
|
|
86
75
|
${$.SELECT_ITEM.value}="${n}">
|
|
87
76
|
</${t.SELECT_ITEM}>`;
|
|
88
77
|
}
|
|
89
|
-
_GuSelect({ name: e, placeholder: n, options:
|
|
78
|
+
_GuSelect({ name: e, placeholder: n, options: E, className: o = "es-180w" }) {
|
|
90
79
|
return `
|
|
91
80
|
<${t.SELECTPICKER}
|
|
92
|
-
class="${
|
|
81
|
+
class="${o}"
|
|
93
82
|
${$.SELECTPICKER.name}="${e}"
|
|
94
83
|
${$.SELECTPICKER.placeholder}="${n}">
|
|
95
|
-
${
|
|
84
|
+
${E.map((T) => this._GuSelectItem(T)).join("")}
|
|
96
85
|
</${t.SELECTPICKER}>
|
|
97
86
|
`;
|
|
98
87
|
}
|
|
99
|
-
_GuTextInput({ name: e, placeholder: n, className:
|
|
88
|
+
_GuTextInput({ name: e, placeholder: n, className: E = "", disabled: o = !1 }) {
|
|
100
89
|
return `
|
|
101
90
|
<${t.TEXT}
|
|
102
|
-
class=${
|
|
91
|
+
class=${E}
|
|
103
92
|
${$.TEXT.name}="${e}"
|
|
104
93
|
placeholder="${n || e}"
|
|
105
|
-
${
|
|
94
|
+
${o ? `${$.TEXT.disabled}="true"` : ""}>
|
|
106
95
|
</${t.TEXT}>
|
|
107
96
|
`;
|
|
108
97
|
}
|
|
109
|
-
_GuCounter({ name: e, maxValue: n, minValue:
|
|
98
|
+
_GuCounter({ name: e, maxValue: n, minValue: E = 1, step: o = 1 }) {
|
|
110
99
|
return `
|
|
111
100
|
<${t.COUNTER}
|
|
112
101
|
${$.COUNTER.name}="${e}"
|
|
113
|
-
${$.COUNTER.minValue}="${
|
|
102
|
+
${$.COUNTER.minValue}="${E}"
|
|
114
103
|
${$.COUNTER.maxValue}="${n}"
|
|
115
|
-
${$.COUNTER.step}="${
|
|
104
|
+
${$.COUNTER.step}="${o}">
|
|
116
105
|
</${t.COUNTER}>
|
|
117
106
|
`;
|
|
118
107
|
}
|
|
119
|
-
_GuRadioButtonItem({ text: e, value: n, icon:
|
|
108
|
+
_GuRadioButtonItem({ text: e, value: n, icon: E }) {
|
|
120
109
|
return `
|
|
121
110
|
<${t.RADIO_ITEM}
|
|
122
111
|
${$.RADIO_ITEM.value}="${n}"
|
|
123
112
|
${e ? `${$.RADIO_ITEM.text}="${e}"` : ""}
|
|
124
|
-
${
|
|
113
|
+
${E ? `${$.RADIO_ITEM.icon}="${E}"` : ""}>
|
|
125
114
|
</${t.RADIO_ITEM}>
|
|
126
115
|
`;
|
|
127
116
|
}
|
|
128
|
-
_GuRadioButton({ name: e, buttons: n, id:
|
|
117
|
+
_GuRadioButton({ name: e, buttons: n, id: E = "" }) {
|
|
129
118
|
return `
|
|
130
119
|
<${t.RADIO_BUTTONS}
|
|
131
|
-
${
|
|
120
|
+
${E ? `id="${E}"` : ""}
|
|
132
121
|
${$.RADIO_BUTTONS.name}="${e}">
|
|
133
|
-
${n.map((
|
|
122
|
+
${n.map((o) => this._GuRadioButtonItem(o)).join("")}
|
|
134
123
|
</${t.RADIO_BUTTONS}>
|
|
135
124
|
`;
|
|
136
125
|
}
|
|
137
|
-
_GuButton({ name: e, label: n, id:
|
|
126
|
+
_GuButton({ name: e, label: n, id: E = "" }) {
|
|
138
127
|
return `
|
|
139
128
|
<${t.BUTTON}
|
|
140
129
|
${$.BUTTON.name}="${e}"
|
|
141
|
-
${
|
|
130
|
+
${E ? `id="${E}"` : ""}
|
|
142
131
|
${$.BUTTON.caption}="${n}"}>
|
|
143
132
|
</${t.BUTTON}>
|
|
144
133
|
`;
|
|
@@ -148,10 +137,10 @@ class B extends s {
|
|
|
148
137
|
* @param param0
|
|
149
138
|
* @returns It returns a button with an icon.
|
|
150
139
|
*/
|
|
151
|
-
_GuIconButton({ name: e, icon: n, className:
|
|
140
|
+
_GuIconButton({ name: e, icon: n, className: E = "" }) {
|
|
152
141
|
return `
|
|
153
142
|
<${t.BUTTON}
|
|
154
|
-
class="${
|
|
143
|
+
class="${E}"
|
|
155
144
|
${$.BUTTON.name}="${e}"
|
|
156
145
|
${$.BUTTON.icon}="${n}">
|
|
157
146
|
</${t.BUTTON}>
|
|
@@ -179,19 +168,19 @@ class B extends s {
|
|
|
179
168
|
* @returns HTML string for the orderable control
|
|
180
169
|
*/
|
|
181
170
|
_GuOrderable(e, n) {
|
|
182
|
-
let
|
|
183
|
-
n.forEach((
|
|
171
|
+
let E = "";
|
|
172
|
+
n.forEach((T) => {
|
|
184
173
|
const u = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
|
|
185
|
-
|
|
186
|
-
<${t.ORDERABLE_ITEM} ${u}="${
|
|
187
|
-
${
|
|
174
|
+
E += `
|
|
175
|
+
<${t.ORDERABLE_ITEM} ${u}="${T.key}">
|
|
176
|
+
${T.content}
|
|
188
177
|
</${t.ORDERABLE_ITEM}>
|
|
189
178
|
`;
|
|
190
179
|
});
|
|
191
|
-
const
|
|
180
|
+
const o = $.ORDERABLE && "name" in $.ORDERABLE ? $.ORDERABLE.name : "name";
|
|
192
181
|
return `
|
|
193
|
-
<${t.ORDERABLE} ${
|
|
194
|
-
${
|
|
182
|
+
<${t.ORDERABLE} ${o}="${e}">
|
|
183
|
+
${E}
|
|
195
184
|
</${t.ORDERABLE}>
|
|
196
185
|
`;
|
|
197
186
|
}
|
|
@@ -232,16 +221,16 @@ class B extends s {
|
|
|
232
221
|
`;
|
|
233
222
|
}
|
|
234
223
|
_GuRadioButtons(e, n) {
|
|
235
|
-
const
|
|
224
|
+
const E = n.map((o) => `
|
|
236
225
|
<${t.RADIO_ITEM}
|
|
237
|
-
${$.RADIO_ITEM.text}="${
|
|
238
|
-
${$.RADIO_ITEM.value}="${
|
|
226
|
+
${$.RADIO_ITEM.text}="${o.text}"
|
|
227
|
+
${$.RADIO_ITEM.value}="${o.value}">
|
|
239
228
|
</${t.RADIO_ITEM}>
|
|
240
229
|
`).join("");
|
|
241
230
|
return `
|
|
242
231
|
<${t.RADIO_BUTTONS}
|
|
243
232
|
${$.RADIO_BUTTONS.name}="${e}">
|
|
244
|
-
${
|
|
233
|
+
${E}
|
|
245
234
|
</${t.RADIO_BUTTONS}>
|
|
246
235
|
`;
|
|
247
236
|
}
|
|
@@ -255,5 +244,5 @@ class B extends s {
|
|
|
255
244
|
}
|
|
256
245
|
}
|
|
257
246
|
export {
|
|
258
|
-
|
|
247
|
+
_ as CommonControl
|
|
259
248
|
};
|
|
@@ -1,223 +1,234 @@
|
|
|
1
|
-
import { TextAlignBuiltInControl as
|
|
2
|
-
function
|
|
3
|
-
return class extends
|
|
1
|
+
import { TextAlignBuiltInControl as o, TextColorBuiltInControl as l, TextSizeBuiltInControl as s, TextStyleBuiltInControl as u, TextFontFamilyBuiltInControl as i, ButtonBackgroundColorBuiltInControl as c, TextPaddingsBuiltInControl as d, ImageSizeBuiltInControl as a, ImageMarginsBuiltInControl as g, ButtonAlignBuiltInControl as x, ButtonBorderBuiltInControl as C, ButtonBorderRadiusBuiltInControl as B, ButtonColorBuiltInControl as T, ButtonFontFamilyBuiltInControl as I, ButtonMarginsBuiltInControl as f, ButtonPaddingsBuiltInControl as m, ButtonTextBuiltInControl as y, ButtonTextSizeBuiltInControl as A, ButtonTextStyleAndFontColorBuiltInControl as S, ButtonFitToContainerBuiltInControl as N, TextLineSpacingBuiltInControl as b } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
function $(r, t, n) {
|
|
3
|
+
return class extends o {
|
|
4
4
|
getId() {
|
|
5
|
-
return
|
|
5
|
+
return r;
|
|
6
6
|
}
|
|
7
|
-
getTargetNodes(
|
|
8
|
-
return
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function k(r, t, n) {
|
|
13
13
|
return class extends l {
|
|
14
14
|
getId() {
|
|
15
|
-
return
|
|
15
|
+
return r;
|
|
16
16
|
}
|
|
17
|
-
getTargetNodes(
|
|
18
|
-
return
|
|
17
|
+
getTargetNodes(e) {
|
|
18
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function p(r, t, n) {
|
|
23
23
|
return class extends s {
|
|
24
24
|
getId() {
|
|
25
|
-
return
|
|
25
|
+
return r;
|
|
26
26
|
}
|
|
27
|
-
getTargetNodes(
|
|
28
|
-
return
|
|
27
|
+
getTargetNodes(e) {
|
|
28
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return class extends
|
|
32
|
+
function F(r, t, n) {
|
|
33
|
+
return class extends u {
|
|
34
34
|
getId() {
|
|
35
|
-
return
|
|
35
|
+
return r;
|
|
36
36
|
}
|
|
37
|
-
getTargetNodes(
|
|
38
|
-
return
|
|
37
|
+
getTargetNodes(e) {
|
|
38
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return class extends
|
|
42
|
+
function z(r, t, n) {
|
|
43
|
+
return class extends i {
|
|
44
44
|
getId() {
|
|
45
|
-
return
|
|
45
|
+
return r;
|
|
46
46
|
}
|
|
47
|
-
getTargetNodes(
|
|
48
|
-
return
|
|
47
|
+
getTargetNodes(e) {
|
|
48
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return class extends
|
|
52
|
+
function M(r, t, n) {
|
|
53
|
+
return class extends c {
|
|
54
54
|
getId() {
|
|
55
|
-
return
|
|
55
|
+
return r;
|
|
56
56
|
}
|
|
57
|
-
getTargetNodes(
|
|
58
|
-
return
|
|
57
|
+
getTargetNodes(e) {
|
|
58
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function P(r, t, n) {
|
|
63
63
|
return class extends d {
|
|
64
64
|
getId() {
|
|
65
|
-
return
|
|
65
|
+
return r;
|
|
66
|
+
}
|
|
67
|
+
getTargetNodes(e) {
|
|
68
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function L(r, t, n) {
|
|
73
|
+
return class extends b {
|
|
74
|
+
getId() {
|
|
75
|
+
return r;
|
|
66
76
|
}
|
|
67
|
-
getTargetNodes(
|
|
68
|
-
return
|
|
77
|
+
getTargetNodes(e) {
|
|
78
|
+
return [e];
|
|
69
79
|
}
|
|
70
80
|
};
|
|
71
81
|
}
|
|
72
|
-
function
|
|
82
|
+
function R(r, t, n = ".ins-recommendation-product-container") {
|
|
73
83
|
return class extends x {
|
|
74
84
|
getId() {
|
|
75
|
-
return
|
|
85
|
+
return r;
|
|
76
86
|
}
|
|
77
|
-
getTargetNodes(
|
|
78
|
-
return
|
|
87
|
+
getTargetNodes(e) {
|
|
88
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
79
89
|
}
|
|
80
90
|
};
|
|
81
91
|
}
|
|
82
|
-
function
|
|
83
|
-
return class extends
|
|
92
|
+
function h(r, t, n = ".ins-recommendation-product-container") {
|
|
93
|
+
return class extends T {
|
|
84
94
|
getId() {
|
|
85
|
-
return
|
|
95
|
+
return r;
|
|
86
96
|
}
|
|
87
|
-
getTargetNodes(
|
|
88
|
-
return
|
|
97
|
+
getTargetNodes(e) {
|
|
98
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
89
99
|
}
|
|
90
100
|
};
|
|
91
101
|
}
|
|
92
|
-
function
|
|
102
|
+
function j(r, t, n = ".ins-recommendation-product-container") {
|
|
93
103
|
return class extends C {
|
|
94
104
|
getId() {
|
|
95
|
-
return
|
|
105
|
+
return r;
|
|
96
106
|
}
|
|
97
|
-
getTargetNodes(
|
|
98
|
-
return
|
|
107
|
+
getTargetNodes(e) {
|
|
108
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
99
109
|
}
|
|
100
110
|
};
|
|
101
111
|
}
|
|
102
|
-
function
|
|
112
|
+
function v(r, t, n = ".ins-recommendation-product-container") {
|
|
103
113
|
return class extends B {
|
|
104
114
|
getId() {
|
|
105
|
-
return
|
|
115
|
+
return r;
|
|
106
116
|
}
|
|
107
|
-
getTargetNodes(
|
|
108
|
-
return
|
|
117
|
+
getTargetNodes(e) {
|
|
118
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
109
119
|
}
|
|
110
120
|
};
|
|
111
121
|
}
|
|
112
|
-
function
|
|
113
|
-
return class extends
|
|
122
|
+
function w(r, t, n = ".ins-recommendation-product-container") {
|
|
123
|
+
return class extends I {
|
|
114
124
|
getId() {
|
|
115
|
-
return
|
|
125
|
+
return r;
|
|
116
126
|
}
|
|
117
|
-
getTargetNodes(
|
|
118
|
-
return
|
|
127
|
+
getTargetNodes(e) {
|
|
128
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
119
129
|
}
|
|
120
130
|
};
|
|
121
131
|
}
|
|
122
|
-
function
|
|
123
|
-
return class extends
|
|
132
|
+
function D(r, t, n = ".ins-recommendation-product-container") {
|
|
133
|
+
return class extends f {
|
|
124
134
|
getId() {
|
|
125
|
-
return
|
|
135
|
+
return r;
|
|
126
136
|
}
|
|
127
|
-
getTargetNodes(
|
|
128
|
-
return
|
|
137
|
+
getTargetNodes(e) {
|
|
138
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
129
139
|
}
|
|
130
140
|
};
|
|
131
141
|
}
|
|
132
|
-
function
|
|
133
|
-
return class extends
|
|
142
|
+
function E(r, t, n = ".ins-recommendation-product-container") {
|
|
143
|
+
return class extends m {
|
|
134
144
|
getId() {
|
|
135
|
-
return
|
|
145
|
+
return r;
|
|
136
146
|
}
|
|
137
|
-
getTargetNodes(
|
|
138
|
-
return
|
|
147
|
+
getTargetNodes(e) {
|
|
148
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
139
149
|
}
|
|
140
150
|
};
|
|
141
151
|
}
|
|
142
|
-
function
|
|
152
|
+
function G(r, t, n = ".ins-recommendation-product-container") {
|
|
143
153
|
return class extends y {
|
|
144
154
|
getId() {
|
|
145
|
-
return
|
|
155
|
+
return r;
|
|
146
156
|
}
|
|
147
|
-
getTargetNodes(
|
|
148
|
-
return
|
|
157
|
+
getTargetNodes(e) {
|
|
158
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
149
159
|
}
|
|
150
160
|
};
|
|
151
161
|
}
|
|
152
|
-
function
|
|
162
|
+
function H(r, t, n = ".ins-recommendation-product-container") {
|
|
153
163
|
return class extends A {
|
|
154
164
|
getId() {
|
|
155
|
-
return
|
|
165
|
+
return r;
|
|
156
166
|
}
|
|
157
|
-
getTargetNodes(
|
|
158
|
-
return
|
|
167
|
+
getTargetNodes(e) {
|
|
168
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
159
169
|
}
|
|
160
170
|
};
|
|
161
171
|
}
|
|
162
|
-
function
|
|
163
|
-
return class extends
|
|
172
|
+
function J(r, t, n) {
|
|
173
|
+
return class extends S {
|
|
164
174
|
getId() {
|
|
165
|
-
return
|
|
175
|
+
return r;
|
|
166
176
|
}
|
|
167
|
-
getTargetNodes(
|
|
168
|
-
return
|
|
177
|
+
getTargetNodes(e) {
|
|
178
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
169
179
|
}
|
|
170
180
|
};
|
|
171
181
|
}
|
|
172
|
-
function
|
|
173
|
-
return class extends
|
|
182
|
+
function K(r, t, n) {
|
|
183
|
+
return class extends N {
|
|
174
184
|
getId() {
|
|
175
|
-
return
|
|
185
|
+
return r;
|
|
176
186
|
}
|
|
177
|
-
getTargetNodes(
|
|
178
|
-
return
|
|
187
|
+
getTargetNodes(e) {
|
|
188
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
179
189
|
}
|
|
180
190
|
};
|
|
181
191
|
}
|
|
182
|
-
function
|
|
192
|
+
function O(r, t, n) {
|
|
183
193
|
return class extends a {
|
|
184
194
|
getId() {
|
|
185
|
-
return
|
|
195
|
+
return r;
|
|
186
196
|
}
|
|
187
|
-
getTargetNodes(
|
|
188
|
-
return
|
|
197
|
+
getTargetNodes(e) {
|
|
198
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
189
199
|
}
|
|
190
200
|
};
|
|
191
201
|
}
|
|
192
|
-
function
|
|
202
|
+
function Q(r, t, n) {
|
|
193
203
|
return class extends g {
|
|
194
204
|
getId() {
|
|
195
|
-
return
|
|
205
|
+
return r;
|
|
196
206
|
}
|
|
197
|
-
getTargetNodes(
|
|
198
|
-
return
|
|
207
|
+
getTargetNodes(e) {
|
|
208
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
199
209
|
}
|
|
200
210
|
};
|
|
201
211
|
}
|
|
202
212
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
p as
|
|
213
|
+
R as createButtonAlignControl,
|
|
214
|
+
j as createButtonBorderControl,
|
|
215
|
+
v as createButtonBorderRadiusControl,
|
|
216
|
+
h as createButtonColorControl,
|
|
217
|
+
K as createButtonFitToContainerControl,
|
|
218
|
+
w as createButtonFontFamilyControl,
|
|
219
|
+
D as createButtonMarginsControl,
|
|
220
|
+
E as createButtonPaddingsControl,
|
|
221
|
+
G as createButtonTextControl,
|
|
222
|
+
H as createButtonTextSizeControl,
|
|
223
|
+
J as createButtonTextStyleAndFontColorControl,
|
|
224
|
+
Q as createImageMarginsControl,
|
|
225
|
+
O as createImageSizeControl,
|
|
226
|
+
P as createPaddingsControl,
|
|
227
|
+
$ as createTextAlignControl,
|
|
228
|
+
M as createTextBackgroundColorControl,
|
|
229
|
+
k as createTextColorControl,
|
|
230
|
+
z as createTextFontFamilyControl,
|
|
231
|
+
L as createTextLineSpacingControl,
|
|
232
|
+
p as createTextSizeControl,
|
|
233
|
+
F as createTextStyleControl
|
|
223
234
|
};
|