@builder.io/sdk-qwik 0.18.11 → 0.18.13
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/lib/browser/blocks/personalization-container/component-info.qwik.cjs +48 -0
- package/lib/browser/blocks/personalization-container/component-info.qwik.mjs +48 -0
- package/lib/browser/blocks/personalization-container/helpers/inlined-fns.qwik.cjs +82 -0
- package/lib/browser/blocks/personalization-container/helpers/inlined-fns.qwik.mjs +82 -0
- package/lib/browser/blocks/personalization-container/helpers.qwik.cjs +86 -0
- package/lib/browser/blocks/personalization-container/helpers.qwik.mjs +87 -0
- package/lib/browser/blocks/personalization-container/personalization-container.qwik.cjs +382 -0
- package/lib/browser/blocks/personalization-container/personalization-container.qwik.mjs +382 -0
- package/lib/browser/blocks/symbol/symbol.qwik.cjs +15 -10
- package/lib/browser/blocks/symbol/symbol.qwik.mjs +15 -10
- package/lib/browser/components/block/components/interactive-element.qwik.cjs +20 -12
- package/lib/browser/components/block/components/interactive-element.qwik.mjs +21 -13
- package/lib/browser/components/blocks/blocks.qwik.cjs +37 -34
- package/lib/browser/components/blocks/blocks.qwik.mjs +38 -35
- package/lib/browser/components/content-variants/content-variants.qwik.cjs +42 -21
- package/lib/browser/components/content-variants/content-variants.qwik.mjs +42 -21
- package/lib/browser/constants/builder-registered-components.qwik.cjs +14 -10
- package/lib/browser/constants/builder-registered-components.qwik.mjs +14 -10
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/blocks/personalization-container/component-info.qwik.cjs +48 -0
- package/lib/edge/blocks/personalization-container/component-info.qwik.mjs +48 -0
- package/lib/edge/blocks/personalization-container/helpers/inlined-fns.qwik.cjs +82 -0
- package/lib/edge/blocks/personalization-container/helpers/inlined-fns.qwik.mjs +82 -0
- package/lib/edge/blocks/personalization-container/helpers.qwik.cjs +86 -0
- package/lib/edge/blocks/personalization-container/helpers.qwik.mjs +87 -0
- package/lib/edge/blocks/personalization-container/personalization-container.qwik.cjs +382 -0
- package/lib/edge/blocks/personalization-container/personalization-container.qwik.mjs +382 -0
- package/lib/edge/blocks/symbol/symbol.qwik.cjs +15 -10
- package/lib/edge/blocks/symbol/symbol.qwik.mjs +15 -10
- package/lib/edge/components/block/components/interactive-element.qwik.cjs +20 -12
- package/lib/edge/components/block/components/interactive-element.qwik.mjs +21 -13
- package/lib/edge/components/blocks/blocks.qwik.cjs +37 -34
- package/lib/edge/components/blocks/blocks.qwik.mjs +38 -35
- package/lib/edge/components/content-variants/content-variants.qwik.cjs +42 -21
- package/lib/edge/components/content-variants/content-variants.qwik.mjs +42 -21
- package/lib/edge/constants/builder-registered-components.qwik.cjs +14 -11
- package/lib/edge/constants/builder-registered-components.qwik.mjs +14 -11
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/blocks/personalization-container/component-info.qwik.cjs +48 -0
- package/lib/node/blocks/personalization-container/component-info.qwik.mjs +48 -0
- package/lib/node/blocks/personalization-container/helpers/inlined-fns.qwik.cjs +82 -0
- package/lib/node/blocks/personalization-container/helpers/inlined-fns.qwik.mjs +82 -0
- package/lib/node/blocks/personalization-container/helpers.qwik.cjs +86 -0
- package/lib/node/blocks/personalization-container/helpers.qwik.mjs +87 -0
- package/lib/node/blocks/personalization-container/personalization-container.qwik.cjs +382 -0
- package/lib/node/blocks/personalization-container/personalization-container.qwik.mjs +382 -0
- package/lib/node/blocks/symbol/symbol.qwik.cjs +15 -10
- package/lib/node/blocks/symbol/symbol.qwik.mjs +15 -10
- package/lib/node/components/block/components/interactive-element.qwik.cjs +20 -12
- package/lib/node/components/block/components/interactive-element.qwik.mjs +21 -13
- package/lib/node/components/blocks/blocks.qwik.cjs +37 -34
- package/lib/node/components/blocks/blocks.qwik.mjs +38 -35
- package/lib/node/components/content-variants/content-variants.qwik.cjs +42 -21
- package/lib/node/components/content-variants/content-variants.qwik.mjs +42 -21
- package/lib/node/constants/builder-registered-components.qwik.cjs +14 -11
- package/lib/node/constants/builder-registered-components.qwik.mjs +14 -11
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/package.json +2 -2
- package/types/src/blocks/personalization-container/helpers/inlined-fns.d.ts +4 -1
- package/types/src/blocks/personalization-container/helpers.d.ts +24 -4
- package/types/src/blocks/personalization-container/personalization-container.types.d.ts +2 -2
- package/types/src/components/blocks/blocks-wrapper.d.ts +13 -1
- package/types/src/components/blocks/blocks.types.d.ts +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const qwik = require("@builder.io/qwik");
|
|
4
|
+
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
5
|
+
const blocks = require("../../components/blocks/blocks.qwik.cjs");
|
|
6
|
+
const inlinedScript = require("../../components/inlined-script.qwik.cjs");
|
|
7
|
+
const inlinedStyles = require("../../components/inlined-styles.qwik.cjs");
|
|
8
|
+
const target = require("../../constants/target.qwik.cjs");
|
|
9
|
+
const getClassPropName = require("../../functions/get-class-prop-name.qwik.cjs");
|
|
10
|
+
const isEditing = require("../../functions/is-editing.qwik.cjs");
|
|
11
|
+
const isPreviewing = require("../../functions/is-previewing.qwik.cjs");
|
|
12
|
+
const canTrack = require("../../helpers/canTrack.qwik.cjs");
|
|
13
|
+
const userAttributes = require("../../helpers/user-attributes.qwik.cjs");
|
|
14
|
+
const helpers = require("./helpers.qwik.cjs");
|
|
15
|
+
const inlinedFns = require("./helpers/inlined-fns.qwik.cjs");
|
|
16
|
+
const PersonalizationContainer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18
|
+
qwik._jsxBranch();
|
|
19
|
+
const attrs = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
20
|
+
const [props2] = qwik.useLexicalScope();
|
|
21
|
+
return {
|
|
22
|
+
...props2.attributes,
|
|
23
|
+
[getClassPropName.getClassPropName()]: `builder-personalization-container ${props2.attributes[getClassPropName.getClassPropName()] || ""}`
|
|
24
|
+
};
|
|
25
|
+
}, "PersonalizationContainer_component_attrs_useComputed_HvEf55mhkdc", [
|
|
26
|
+
props
|
|
27
|
+
]));
|
|
28
|
+
const filteredVariants = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
29
|
+
const [props2] = qwik.useLexicalScope();
|
|
30
|
+
return (props2.variants || []).filter((variant) => {
|
|
31
|
+
var _a2, _b2, _c2, _d2;
|
|
32
|
+
return inlinedFns.filterWithCustomTargeting({
|
|
33
|
+
...((_b2 = (_a2 = props2.builderContext) == null ? void 0 : _a2.rootState) == null ? void 0 : _b2.locale) ? {
|
|
34
|
+
locale: (_d2 = (_c2 = props2.builderContext) == null ? void 0 : _c2.rootState) == null ? void 0 : _d2.locale
|
|
35
|
+
} : {},
|
|
36
|
+
...state.userAttributes
|
|
37
|
+
}, variant.query, variant.startDate, variant.endDate);
|
|
38
|
+
});
|
|
39
|
+
}, "PersonalizationContainer_component_filteredVariants_useComputed_0jlgEflkxcQ", [
|
|
40
|
+
props
|
|
41
|
+
]));
|
|
42
|
+
const blocksToRender = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
43
|
+
var _a2;
|
|
44
|
+
const [filteredVariants2, props2] = qwik.useLexicalScope();
|
|
45
|
+
return helpers.getBlocksToRender({
|
|
46
|
+
variants: props2.variants,
|
|
47
|
+
fallbackBlocks: (_a2 = props2.builderBlock) == null ? void 0 : _a2.children,
|
|
48
|
+
isHydrated: state.shouldResetVariants,
|
|
49
|
+
filteredVariants: filteredVariants2.value,
|
|
50
|
+
previewingIndex: props2.previewingIndex
|
|
51
|
+
});
|
|
52
|
+
}, "PersonalizationContainer_component_blocksToRender_useComputed_aZOAYVB7Svg", [
|
|
53
|
+
filteredVariants,
|
|
54
|
+
props
|
|
55
|
+
]));
|
|
56
|
+
const hideVariantsStyleString = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
57
|
+
const [props2] = qwik.useLexicalScope();
|
|
58
|
+
return (props2.variants || []).map((_, index) => {
|
|
59
|
+
var _a2;
|
|
60
|
+
return `div[data-variant-id="${(_a2 = props2.builderBlock) == null ? void 0 : _a2.id}-${index}"] { display: none !important; } `;
|
|
61
|
+
}).join("");
|
|
62
|
+
}, "PersonalizationContainer_component_hideVariantsStyleString_useComputed_zcfmLIe0H1E", [
|
|
63
|
+
props
|
|
64
|
+
]));
|
|
65
|
+
const rootRef = qwik.useSignal();
|
|
66
|
+
const state = qwik.useStore({
|
|
67
|
+
scriptStr: helpers.getPersonalizationScript(props.variants, ((_a = props.builderBlock) == null ? void 0 : _a.id) || "none", (_c = (_b = props.builderContext) == null ? void 0 : _b.rootState) == null ? void 0 : _c.locale),
|
|
68
|
+
shouldRenderVariants: helpers.checkShouldRenderVariants(props.variants, canTrack.getDefaultCanTrack((_d = props.builderContext) == null ? void 0 : _d.canTrack)),
|
|
69
|
+
shouldResetVariants: false,
|
|
70
|
+
unsubscribers: [],
|
|
71
|
+
updateVisibilityStylesScript: helpers.getUpdateVisibilityStylesScript(props.variants, ((_e = props.builderBlock) == null ? void 0 : _e.id) || "none", (_g = (_f = props.builderContext) == null ? void 0 : _f.rootState) == null ? void 0 : _g.locale),
|
|
72
|
+
userAttributes: userAttributes.userAttributesService.getUserAttributes()
|
|
73
|
+
});
|
|
74
|
+
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
75
|
+
var _a2;
|
|
76
|
+
const [filteredVariants2, props2, rootRef2, state2] = qwik.useLexicalScope();
|
|
77
|
+
state2.shouldResetVariants = true;
|
|
78
|
+
const unsub = userAttributes.userAttributesService.subscribeOnUserAttributesChange((attrs2) => {
|
|
79
|
+
state2.userAttributes = attrs2;
|
|
80
|
+
});
|
|
81
|
+
if (!(isEditing.isEditing() || isPreviewing.isPreviewing())) {
|
|
82
|
+
const variant = filteredVariants2.value[0];
|
|
83
|
+
if (rootRef2.value) {
|
|
84
|
+
rootRef2.value.dispatchEvent(new CustomEvent("builder.variantLoaded", {
|
|
85
|
+
detail: {
|
|
86
|
+
variant: variant || helpers.DEFAULT_INDEX,
|
|
87
|
+
content: (_a2 = props2.builderContext) == null ? void 0 : _a2.content
|
|
88
|
+
},
|
|
89
|
+
bubbles: true
|
|
90
|
+
}));
|
|
91
|
+
const observer = new IntersectionObserver((entries) => {
|
|
92
|
+
entries.forEach((entry) => {
|
|
93
|
+
var _a3;
|
|
94
|
+
if (entry.isIntersecting && rootRef2.value)
|
|
95
|
+
rootRef2.value.dispatchEvent(new CustomEvent("builder.variantDisplayed", {
|
|
96
|
+
detail: {
|
|
97
|
+
variant: variant || helpers.DEFAULT_INDEX,
|
|
98
|
+
content: (_a3 = props2.builderContext) == null ? void 0 : _a3.content
|
|
99
|
+
},
|
|
100
|
+
bubbles: true
|
|
101
|
+
}));
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
observer.observe(rootRef2.value);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
state2.unsubscribers.push(unsub);
|
|
108
|
+
}, "PersonalizationContainer_component_useVisibleTask_Pr6C1pfMwDU", [
|
|
109
|
+
filteredVariants,
|
|
110
|
+
props,
|
|
111
|
+
rootRef,
|
|
112
|
+
state
|
|
113
|
+
]));
|
|
114
|
+
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
115
|
+
ref: rootRef,
|
|
116
|
+
...attrs.value,
|
|
117
|
+
children: [
|
|
118
|
+
state.shouldResetVariants && helpers.SDKS_REQUIRING_RESET_APPROACH.includes(target.TARGET) ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
119
|
+
get blocks() {
|
|
120
|
+
return blocksToRender.value.blocks;
|
|
121
|
+
},
|
|
122
|
+
get parent() {
|
|
123
|
+
var _a2;
|
|
124
|
+
return (_a2 = props.builderBlock) == null ? void 0 : _a2.id;
|
|
125
|
+
},
|
|
126
|
+
get path() {
|
|
127
|
+
return blocksToRender.value.path;
|
|
128
|
+
},
|
|
129
|
+
get context() {
|
|
130
|
+
return props.builderContext;
|
|
131
|
+
},
|
|
132
|
+
get registeredComponents() {
|
|
133
|
+
return props.builderComponents;
|
|
134
|
+
},
|
|
135
|
+
get BlocksWrapperProps() {
|
|
136
|
+
var _a2, _b2;
|
|
137
|
+
return {
|
|
138
|
+
...(_a2 = props.builderContext) == null ? void 0 : _a2.BlocksWrapperProps,
|
|
139
|
+
"data-variant-id": `${(_b2 = props.builderBlock) == null ? void 0 : _b2.id}-${blocksToRender.value.index}`
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
[qwik._IMMUTABLE]: {
|
|
143
|
+
BlocksWrapperProps: qwik._fnSignal((p0, p1) => {
|
|
144
|
+
var _a2, _b2;
|
|
145
|
+
return {
|
|
146
|
+
...(_a2 = p1.builderContext) == null ? void 0 : _a2.BlocksWrapperProps,
|
|
147
|
+
"data-variant-id": `${(_b2 = p1.builderBlock) == null ? void 0 : _b2.id}-${p0.value.index}`
|
|
148
|
+
};
|
|
149
|
+
}, [
|
|
150
|
+
blocksToRender,
|
|
151
|
+
props
|
|
152
|
+
], '{...p1.builderContext?.BlocksWrapperProps,"data-variant-id":`${p1.builderBlock?.id}-${p0.value.index}`}'),
|
|
153
|
+
blocks: qwik._fnSignal((p0) => p0.value.blocks, [
|
|
154
|
+
blocksToRender
|
|
155
|
+
], "p0.value.blocks"),
|
|
156
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
157
|
+
props
|
|
158
|
+
], "p0.builderContext"),
|
|
159
|
+
parent: qwik._fnSignal((p0) => {
|
|
160
|
+
var _a2;
|
|
161
|
+
return (_a2 = p0.builderBlock) == null ? void 0 : _a2.id;
|
|
162
|
+
}, [
|
|
163
|
+
props
|
|
164
|
+
], "p0.builderBlock?.id"),
|
|
165
|
+
path: qwik._fnSignal((p0) => p0.value.path, [
|
|
166
|
+
blocksToRender
|
|
167
|
+
], "p0.value.path"),
|
|
168
|
+
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
169
|
+
props
|
|
170
|
+
], "p0.builderComponents")
|
|
171
|
+
}
|
|
172
|
+
}, 3, "Xk_0") : null,
|
|
173
|
+
!state.shouldResetVariants && helpers.SDKS_REQUIRING_RESET_APPROACH.includes(target.TARGET) || !helpers.SDKS_REQUIRING_RESET_APPROACH.includes(target.TARGET) ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
174
|
+
children: [
|
|
175
|
+
state.shouldRenderVariants ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ qwik._jsxC(inlinedStyles.InlinedStyles, {
|
|
178
|
+
get nonce() {
|
|
179
|
+
var _a2;
|
|
180
|
+
return ((_a2 = props.builderContext) == null ? void 0 : _a2.nonce) || "";
|
|
181
|
+
},
|
|
182
|
+
get styles() {
|
|
183
|
+
return hideVariantsStyleString.value;
|
|
184
|
+
},
|
|
185
|
+
get id() {
|
|
186
|
+
var _a2;
|
|
187
|
+
return `variants-styles-${(_a2 = props.builderBlock) == null ? void 0 : _a2.id}`;
|
|
188
|
+
},
|
|
189
|
+
[qwik._IMMUTABLE]: {
|
|
190
|
+
id: qwik._fnSignal((p0) => {
|
|
191
|
+
var _a2;
|
|
192
|
+
return `variants-styles-${(_a2 = p0.builderBlock) == null ? void 0 : _a2.id}`;
|
|
193
|
+
}, [
|
|
194
|
+
props
|
|
195
|
+
], "`variants-styles-${p0.builderBlock?.id}`"),
|
|
196
|
+
nonce: qwik._fnSignal((p0) => {
|
|
197
|
+
var _a2;
|
|
198
|
+
return ((_a2 = p0.builderContext) == null ? void 0 : _a2.nonce) || "";
|
|
199
|
+
}, [
|
|
200
|
+
props
|
|
201
|
+
], 'p0.builderContext?.nonce||""'),
|
|
202
|
+
styles: qwik._fnSignal((p0) => p0.value, [
|
|
203
|
+
hideVariantsStyleString
|
|
204
|
+
], "p0.value")
|
|
205
|
+
}
|
|
206
|
+
}, 3, "Xk_1"),
|
|
207
|
+
/* @__PURE__ */ qwik._jsxC(inlinedScript.InlinedScript, {
|
|
208
|
+
get nonce() {
|
|
209
|
+
var _a2;
|
|
210
|
+
return ((_a2 = props.builderContext) == null ? void 0 : _a2.nonce) || "";
|
|
211
|
+
},
|
|
212
|
+
get scriptStr() {
|
|
213
|
+
return state.updateVisibilityStylesScript;
|
|
214
|
+
},
|
|
215
|
+
get id() {
|
|
216
|
+
var _a2;
|
|
217
|
+
return `variants-visibility-script-${(_a2 = props.builderBlock) == null ? void 0 : _a2.id}`;
|
|
218
|
+
},
|
|
219
|
+
[qwik._IMMUTABLE]: {
|
|
220
|
+
id: qwik._fnSignal((p0) => {
|
|
221
|
+
var _a2;
|
|
222
|
+
return `variants-visibility-script-${(_a2 = p0.builderBlock) == null ? void 0 : _a2.id}`;
|
|
223
|
+
}, [
|
|
224
|
+
props
|
|
225
|
+
], "`variants-visibility-script-${p0.builderBlock?.id}`"),
|
|
226
|
+
nonce: qwik._fnSignal((p0) => {
|
|
227
|
+
var _a2;
|
|
228
|
+
return ((_a2 = p0.builderContext) == null ? void 0 : _a2.nonce) || "";
|
|
229
|
+
}, [
|
|
230
|
+
props
|
|
231
|
+
], 'p0.builderContext?.nonce||""'),
|
|
232
|
+
scriptStr: qwik._fnSignal((p0) => p0.updateVisibilityStylesScript, [
|
|
233
|
+
state
|
|
234
|
+
], "p0.updateVisibilityStylesScript")
|
|
235
|
+
}
|
|
236
|
+
}, 3, "Xk_2"),
|
|
237
|
+
(props.variants || []).map((variant, index) => {
|
|
238
|
+
var _a2, _b2, _c2, _d2;
|
|
239
|
+
return /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
240
|
+
BlocksWrapperProps: {
|
|
241
|
+
...(_a2 = props.builderContext) == null ? void 0 : _a2.BlocksWrapperProps,
|
|
242
|
+
"aria-hidden": true,
|
|
243
|
+
hidden: true,
|
|
244
|
+
"data-variant-id": `${(_b2 = props.builderBlock) == null ? void 0 : _b2.id}-${index}`
|
|
245
|
+
},
|
|
246
|
+
get blocks() {
|
|
247
|
+
return variant.blocks;
|
|
248
|
+
},
|
|
249
|
+
get parent() {
|
|
250
|
+
var _a3;
|
|
251
|
+
return (_a3 = props.builderBlock) == null ? void 0 : _a3.id;
|
|
252
|
+
},
|
|
253
|
+
path: `component.options.variants.${index}.blocks`,
|
|
254
|
+
get context() {
|
|
255
|
+
return props.builderContext;
|
|
256
|
+
},
|
|
257
|
+
get registeredComponents() {
|
|
258
|
+
return props.builderComponents;
|
|
259
|
+
},
|
|
260
|
+
children: /* @__PURE__ */ qwik._jsxC(inlinedScript.InlinedScript, {
|
|
261
|
+
get nonce() {
|
|
262
|
+
var _a3;
|
|
263
|
+
return ((_a3 = props.builderContext) == null ? void 0 : _a3.nonce) || "";
|
|
264
|
+
},
|
|
265
|
+
get scriptStr() {
|
|
266
|
+
return state.scriptStr;
|
|
267
|
+
},
|
|
268
|
+
id: `variants-script-${(_c2 = props.builderBlock) == null ? void 0 : _c2.id}-${index}`,
|
|
269
|
+
[qwik._IMMUTABLE]: {
|
|
270
|
+
nonce: qwik._fnSignal((p0) => {
|
|
271
|
+
var _a3;
|
|
272
|
+
return ((_a3 = p0.builderContext) == null ? void 0 : _a3.nonce) || "";
|
|
273
|
+
}, [
|
|
274
|
+
props
|
|
275
|
+
], 'p0.builderContext?.nonce||""'),
|
|
276
|
+
scriptStr: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
277
|
+
state
|
|
278
|
+
], "p0.scriptStr")
|
|
279
|
+
}
|
|
280
|
+
}, 3, "Xk_3"),
|
|
281
|
+
[qwik._IMMUTABLE]: {
|
|
282
|
+
blocks: qwik._wrapProp(variant, "blocks"),
|
|
283
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
284
|
+
props
|
|
285
|
+
], "p0.builderContext"),
|
|
286
|
+
parent: qwik._fnSignal((p0) => {
|
|
287
|
+
var _a3;
|
|
288
|
+
return (_a3 = p0.builderBlock) == null ? void 0 : _a3.id;
|
|
289
|
+
}, [
|
|
290
|
+
props
|
|
291
|
+
], "p0.builderBlock?.id"),
|
|
292
|
+
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
293
|
+
props
|
|
294
|
+
], "p0.builderComponents")
|
|
295
|
+
}
|
|
296
|
+
}, 1, `${(_d2 = props.builderBlock) == null ? void 0 : _d2.id}-${index}`);
|
|
297
|
+
})
|
|
298
|
+
]
|
|
299
|
+
}, 1, "Xk_4") : null,
|
|
300
|
+
/* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
301
|
+
get blocks() {
|
|
302
|
+
return blocksToRender.value.blocks;
|
|
303
|
+
},
|
|
304
|
+
get parent() {
|
|
305
|
+
var _a2;
|
|
306
|
+
return (_a2 = props.builderBlock) == null ? void 0 : _a2.id;
|
|
307
|
+
},
|
|
308
|
+
get path() {
|
|
309
|
+
return blocksToRender.value.path;
|
|
310
|
+
},
|
|
311
|
+
get context() {
|
|
312
|
+
return props.builderContext;
|
|
313
|
+
},
|
|
314
|
+
get registeredComponents() {
|
|
315
|
+
return props.builderComponents;
|
|
316
|
+
},
|
|
317
|
+
get BlocksWrapperProps() {
|
|
318
|
+
var _a2, _b2;
|
|
319
|
+
return {
|
|
320
|
+
...(_a2 = props.builderContext) == null ? void 0 : _a2.BlocksWrapperProps,
|
|
321
|
+
"data-variant-id": `${(_b2 = props.builderBlock) == null ? void 0 : _b2.id}-${blocksToRender.value.index}`
|
|
322
|
+
};
|
|
323
|
+
},
|
|
324
|
+
children: state.shouldRenderVariants ? /* @__PURE__ */ qwik._jsxC(inlinedScript.InlinedScript, {
|
|
325
|
+
get nonce() {
|
|
326
|
+
var _a2;
|
|
327
|
+
return ((_a2 = props.builderContext) == null ? void 0 : _a2.nonce) || "";
|
|
328
|
+
},
|
|
329
|
+
get scriptStr() {
|
|
330
|
+
return state.scriptStr;
|
|
331
|
+
},
|
|
332
|
+
id: `variants-script-${(_h = props.builderBlock) == null ? void 0 : _h.id}-${helpers.DEFAULT_INDEX}`,
|
|
333
|
+
[qwik._IMMUTABLE]: {
|
|
334
|
+
nonce: qwik._fnSignal((p0) => {
|
|
335
|
+
var _a2;
|
|
336
|
+
return ((_a2 = p0.builderContext) == null ? void 0 : _a2.nonce) || "";
|
|
337
|
+
}, [
|
|
338
|
+
props
|
|
339
|
+
], 'p0.builderContext?.nonce||""'),
|
|
340
|
+
scriptStr: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
341
|
+
state
|
|
342
|
+
], "p0.scriptStr")
|
|
343
|
+
}
|
|
344
|
+
}, 3, "Xk_5") : null,
|
|
345
|
+
[qwik._IMMUTABLE]: {
|
|
346
|
+
BlocksWrapperProps: qwik._fnSignal((p0, p1) => {
|
|
347
|
+
var _a2, _b2;
|
|
348
|
+
return {
|
|
349
|
+
...(_a2 = p1.builderContext) == null ? void 0 : _a2.BlocksWrapperProps,
|
|
350
|
+
"data-variant-id": `${(_b2 = p1.builderBlock) == null ? void 0 : _b2.id}-${p0.value.index}`
|
|
351
|
+
};
|
|
352
|
+
}, [
|
|
353
|
+
blocksToRender,
|
|
354
|
+
props
|
|
355
|
+
], '{...p1.builderContext?.BlocksWrapperProps,"data-variant-id":`${p1.builderBlock?.id}-${p0.value.index}`}'),
|
|
356
|
+
blocks: qwik._fnSignal((p0) => p0.value.blocks, [
|
|
357
|
+
blocksToRender
|
|
358
|
+
], "p0.value.blocks"),
|
|
359
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
360
|
+
props
|
|
361
|
+
], "p0.builderContext"),
|
|
362
|
+
parent: qwik._fnSignal((p0) => {
|
|
363
|
+
var _a2;
|
|
364
|
+
return (_a2 = p0.builderBlock) == null ? void 0 : _a2.id;
|
|
365
|
+
}, [
|
|
366
|
+
props
|
|
367
|
+
], "p0.builderBlock?.id"),
|
|
368
|
+
path: qwik._fnSignal((p0) => p0.value.path, [
|
|
369
|
+
blocksToRender
|
|
370
|
+
], "p0.value.path"),
|
|
371
|
+
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
372
|
+
props
|
|
373
|
+
], "p0.builderComponents")
|
|
374
|
+
}
|
|
375
|
+
}, 1, "Xk_6")
|
|
376
|
+
]
|
|
377
|
+
}, 1, "Xk_7") : null
|
|
378
|
+
]
|
|
379
|
+
}, null, 0, "Xk_8");
|
|
380
|
+
}, "PersonalizationContainer_component_kIsPnu9O2Ew"));
|
|
381
|
+
exports.PersonalizationContainer = PersonalizationContainer;
|
|
382
|
+
exports.default = PersonalizationContainer;
|