@builder.io/sdk-qwik 0.2.0 → 0.2.1
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/index.qwik.cjs +483 -357
- package/lib/index.qwik.mjs +484 -358
- package/package.json +2 -2
- package/types/blocks/columns/columns.d.ts +0 -2
- package/types/blocks/image/image.d.ts +0 -9
- package/types/blocks/video/video.d.ts +0 -8
- package/types/components/render-block/block-styles.d.ts +1 -6
- package/types/components/render-block/render-block.d.ts +1 -43
- package/types/components/render-block/render-block.helpers.d.ts +1 -0
- package/types/components/render-blocks.d.ts +0 -1
- package/types/components/render-inlined-styles.d.ts +1 -5
package/lib/index.qwik.cjs
CHANGED
|
@@ -5,8 +5,11 @@ const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
|
5
5
|
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
6
6
|
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES$3, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
|
|
7
7
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
8
|
-
children: props.link ? /* @__PURE__ */ qwik.
|
|
9
|
-
...props.attributes
|
|
8
|
+
children: props.link ? /* @__PURE__ */ qwik._jsxS("a", {
|
|
9
|
+
...props.attributes,
|
|
10
|
+
children: qwik._fnSignal((p0) => p0.text, [
|
|
11
|
+
props
|
|
12
|
+
], "p0.text")
|
|
10
13
|
}, {
|
|
11
14
|
role: "button",
|
|
12
15
|
href: qwik._fnSignal((p0) => p0.link, [
|
|
@@ -15,16 +18,15 @@ const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
15
18
|
target: qwik._fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
|
|
16
19
|
props
|
|
17
20
|
], 'p0.openLinkInNewTab?"_blank":undefined')
|
|
18
|
-
},
|
|
19
|
-
props
|
|
20
|
-
], "p0.text"), 2, "jc_0") : /* @__PURE__ */ qwik._jsxQ("button", {
|
|
21
|
+
}, 0, "jc_0") : /* @__PURE__ */ qwik._jsxS("button", {
|
|
21
22
|
class: (() => {
|
|
22
23
|
props.attributes.class;
|
|
23
24
|
})(),
|
|
24
|
-
...props.attributes
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
...props.attributes,
|
|
26
|
+
children: qwik._fnSignal((p0) => p0.text, [
|
|
27
|
+
props
|
|
28
|
+
], "p0.text")
|
|
29
|
+
}, null, 0, null)
|
|
28
30
|
}, 1, "jc_1");
|
|
29
31
|
}, "Button_component_gJoMUICXoUQ"));
|
|
30
32
|
const STYLES$3 = `
|
|
@@ -161,8 +163,8 @@ const convertStyleMapToCSSArray = (style) => {
|
|
|
161
163
|
return cssProps.filter(checkIsDefined);
|
|
162
164
|
};
|
|
163
165
|
const convertStyleMapToCSS = (style) => convertStyleMapToCSSArray(style).join("\n");
|
|
164
|
-
const createCssClass = ({ mediaQuery, className
|
|
165
|
-
const cssClass = `.${
|
|
166
|
+
const createCssClass = ({ mediaQuery, className, styles }) => {
|
|
167
|
+
const cssClass = `.${className} {
|
|
166
168
|
${convertStyleMapToCSS(styles)}
|
|
167
169
|
}`;
|
|
168
170
|
if (mediaQuery)
|
|
@@ -172,69 +174,95 @@ const createCssClass = ({ mediaQuery, className: className3, styles }) => {
|
|
|
172
174
|
else
|
|
173
175
|
return cssClass;
|
|
174
176
|
};
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
const RenderInlinedStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
178
|
+
const tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
179
|
+
return "style";
|
|
180
|
+
}, "RenderInlinedStyles_component_tag_useComputed_S1nSc0C6qB4"));
|
|
181
|
+
qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
182
|
+
const [props2, tag2] = qwik.useLexicalScope();
|
|
183
|
+
return `<${tag2.value}>${props2.styles}</${tag2.value}>`;
|
|
184
|
+
}, "RenderInlinedStyles_component_injectedStyleScript_useComputed_CVKinNBYTxE", [
|
|
185
|
+
props,
|
|
186
|
+
tag
|
|
187
|
+
]));
|
|
181
188
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
182
|
-
children: /* @__PURE__ */ qwik._jsxQ("style", {
|
|
183
|
-
dangerouslySetInnerHTML: qwik.
|
|
184
|
-
|
|
189
|
+
children: /* @__PURE__ */ qwik._jsxQ("style", null, {
|
|
190
|
+
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.styles, [
|
|
191
|
+
props
|
|
192
|
+
], "p0.styles")
|
|
193
|
+
}, null, 3, "zz_0")
|
|
185
194
|
}, 1, "zz_2");
|
|
186
|
-
};
|
|
187
|
-
const
|
|
188
|
-
return getProcessedBlock({
|
|
189
|
-
block: props.block,
|
|
190
|
-
state: props.context.state,
|
|
191
|
-
context: props.context.context,
|
|
192
|
-
shouldEvaluateBindings: true
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
const canShowBlock$1 = function canShowBlock2(props, state) {
|
|
196
|
-
if (checkIsDefined(useBlock$1(props).hide))
|
|
197
|
-
return !useBlock$1(props).hide;
|
|
198
|
-
if (checkIsDefined(useBlock$1(props).show))
|
|
199
|
-
return useBlock$1(props).show;
|
|
200
|
-
return true;
|
|
201
|
-
};
|
|
202
|
-
const css = function css2(props, state) {
|
|
203
|
-
const styles = useBlock$1(props).responsiveStyles;
|
|
204
|
-
const content = props.context.content;
|
|
205
|
-
const sizesWithUpdatedBreakpoints = getSizesForBreakpoints(content?.meta?.breakpoints || {});
|
|
206
|
-
const largeStyles = styles?.large;
|
|
207
|
-
const mediumStyles = styles?.medium;
|
|
208
|
-
const smallStyles = styles?.small;
|
|
209
|
-
const className3 = useBlock$1(props).id;
|
|
210
|
-
const largeStylesClass = largeStyles ? createCssClass({
|
|
211
|
-
className: className3,
|
|
212
|
-
styles: largeStyles
|
|
213
|
-
}) : "";
|
|
214
|
-
const mediumStylesClass = mediumStyles ? createCssClass({
|
|
215
|
-
className: className3,
|
|
216
|
-
styles: mediumStyles,
|
|
217
|
-
mediaQuery: getMaxWidthQueryForSize("medium", sizesWithUpdatedBreakpoints)
|
|
218
|
-
}) : "";
|
|
219
|
-
const smallStylesClass = smallStyles ? createCssClass({
|
|
220
|
-
className: className3,
|
|
221
|
-
styles: smallStyles,
|
|
222
|
-
mediaQuery: getMaxWidthQueryForSize("small", sizesWithUpdatedBreakpoints)
|
|
223
|
-
}) : "";
|
|
224
|
-
return [
|
|
225
|
-
largeStylesClass,
|
|
226
|
-
mediumStylesClass,
|
|
227
|
-
smallStylesClass
|
|
228
|
-
].join(" ");
|
|
229
|
-
};
|
|
230
|
-
const BlockStyles = (props) => {
|
|
195
|
+
}, "RenderInlinedStyles_component_ejNQtXd1ahM"));
|
|
196
|
+
const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
231
197
|
qwik._jsxBranch();
|
|
198
|
+
const useBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
199
|
+
const [props2] = qwik.useLexicalScope();
|
|
200
|
+
return getProcessedBlock({
|
|
201
|
+
block: props2.block,
|
|
202
|
+
state: props2.context.state,
|
|
203
|
+
context: props2.context.context,
|
|
204
|
+
shouldEvaluateBindings: true
|
|
205
|
+
});
|
|
206
|
+
}, "BlockStyles_component_useBlock_useComputed_9Y0pQBSnHds", [
|
|
207
|
+
props
|
|
208
|
+
]));
|
|
209
|
+
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
210
|
+
const [useBlock2] = qwik.useLexicalScope();
|
|
211
|
+
if (checkIsDefined(useBlock2.value.hide))
|
|
212
|
+
return !useBlock2.value.hide;
|
|
213
|
+
if (checkIsDefined(useBlock2.value.show))
|
|
214
|
+
return useBlock2.value.show;
|
|
215
|
+
return true;
|
|
216
|
+
}, "BlockStyles_component_canShowBlock_useComputed_QhiYxJDtCJY", [
|
|
217
|
+
useBlock
|
|
218
|
+
]));
|
|
219
|
+
const css = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
220
|
+
const [props2, useBlock2] = qwik.useLexicalScope();
|
|
221
|
+
const styles = useBlock2.value.responsiveStyles;
|
|
222
|
+
const content = props2.context.content;
|
|
223
|
+
const sizesWithUpdatedBreakpoints = getSizesForBreakpoints(content?.meta?.breakpoints || {});
|
|
224
|
+
const largeStyles = styles?.large;
|
|
225
|
+
const mediumStyles = styles?.medium;
|
|
226
|
+
const smallStyles = styles?.small;
|
|
227
|
+
const className = useBlock2.value.id;
|
|
228
|
+
if (!className)
|
|
229
|
+
return "";
|
|
230
|
+
const largeStylesClass = largeStyles ? createCssClass({
|
|
231
|
+
className,
|
|
232
|
+
styles: largeStyles
|
|
233
|
+
}) : "";
|
|
234
|
+
const mediumStylesClass = mediumStyles ? createCssClass({
|
|
235
|
+
className,
|
|
236
|
+
styles: mediumStyles,
|
|
237
|
+
mediaQuery: getMaxWidthQueryForSize("medium", sizesWithUpdatedBreakpoints)
|
|
238
|
+
}) : "";
|
|
239
|
+
const smallStylesClass = smallStyles ? createCssClass({
|
|
240
|
+
className,
|
|
241
|
+
styles: smallStyles,
|
|
242
|
+
mediaQuery: getMaxWidthQueryForSize("small", sizesWithUpdatedBreakpoints)
|
|
243
|
+
}) : "";
|
|
244
|
+
return [
|
|
245
|
+
largeStylesClass,
|
|
246
|
+
mediumStylesClass,
|
|
247
|
+
smallStylesClass
|
|
248
|
+
].join(" ");
|
|
249
|
+
}, "BlockStyles_component_css_useComputed_wAetZF3ncbo", [
|
|
250
|
+
props,
|
|
251
|
+
useBlock
|
|
252
|
+
]));
|
|
232
253
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
233
|
-
children: css
|
|
234
|
-
styles
|
|
254
|
+
children: css.value && canShowBlock.value ? /* @__PURE__ */ qwik._jsxC(RenderInlinedStyles, {
|
|
255
|
+
get styles() {
|
|
256
|
+
return css.value;
|
|
257
|
+
},
|
|
258
|
+
[qwik._IMMUTABLE]: {
|
|
259
|
+
styles: qwik._fnSignal((p0) => p0.value, [
|
|
260
|
+
css
|
|
261
|
+
], "p0.value")
|
|
262
|
+
}
|
|
235
263
|
}, 3, "LQ_0") : null
|
|
236
264
|
}, 1, "LQ_1");
|
|
237
|
-
};
|
|
265
|
+
}, "BlockStyles_component_r0t5qGxiwHA"));
|
|
238
266
|
function capitalizeFirstLetter(string) {
|
|
239
267
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
240
268
|
}
|
|
@@ -303,9 +331,6 @@ function getStyleAttribute(style) {
|
|
|
303
331
|
return style;
|
|
304
332
|
}
|
|
305
333
|
}
|
|
306
|
-
function getBlockTag(block) {
|
|
307
|
-
return block.tagName || "div";
|
|
308
|
-
}
|
|
309
334
|
const EMPTY_HTML_ELEMENTS = [
|
|
310
335
|
"area",
|
|
311
336
|
"base",
|
|
@@ -372,6 +397,20 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
372
397
|
}));
|
|
373
398
|
return repeatArray;
|
|
374
399
|
};
|
|
400
|
+
const getProxyState = (context) => {
|
|
401
|
+
if (typeof Proxy === "undefined") {
|
|
402
|
+
console.error("no Proxy available in this environment, cannot proxy state.");
|
|
403
|
+
return context.state;
|
|
404
|
+
}
|
|
405
|
+
const useState = new Proxy(context.state, {
|
|
406
|
+
set: (obj, prop, value) => {
|
|
407
|
+
obj[prop] = value;
|
|
408
|
+
context.setState?.(obj);
|
|
409
|
+
return true;
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
return useState;
|
|
413
|
+
};
|
|
375
414
|
const RenderComponent = (props) => {
|
|
376
415
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
377
416
|
children: props.componentRef ? /* @__PURE__ */ qwik._jsxC(props.componentRef, {
|
|
@@ -429,111 +468,135 @@ const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qw
|
|
|
429
468
|
}
|
|
430
469
|
}, 3, "K5_0");
|
|
431
470
|
}, "RenderRepeatedBlock_component_nRyVBtbGKc8"));
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
};
|
|
438
|
-
const tag = function tag22(props, state) {
|
|
439
|
-
return getBlockTag(useBlock(props));
|
|
440
|
-
};
|
|
441
|
-
const useBlock = function useBlock22(props, state) {
|
|
442
|
-
return repeatItemData(props) ? props.block : getProcessedBlock({
|
|
443
|
-
block: props.block,
|
|
444
|
-
state: props.context.state,
|
|
445
|
-
context: props.context.context,
|
|
446
|
-
shouldEvaluateBindings: true
|
|
447
|
-
});
|
|
448
|
-
};
|
|
449
|
-
const canShowBlock = function canShowBlock22(props, state) {
|
|
450
|
-
if (checkIsDefined(useBlock(props).hide))
|
|
451
|
-
return !useBlock(props).hide;
|
|
452
|
-
if (checkIsDefined(useBlock(props).show))
|
|
453
|
-
return useBlock(props).show;
|
|
454
|
-
return true;
|
|
455
|
-
};
|
|
456
|
-
const proxyState = function proxyState2(props, state) {
|
|
457
|
-
if (typeof Proxy === "undefined") {
|
|
458
|
-
console.error("no Proxy available in this environment, cannot proxy state.");
|
|
459
|
-
return props.context.state;
|
|
460
|
-
}
|
|
461
|
-
const useState = new Proxy(props.context.state, {
|
|
462
|
-
set: (obj, prop, value) => {
|
|
463
|
-
obj[prop] = value;
|
|
464
|
-
props.context.setState?.(obj);
|
|
465
|
-
return true;
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
return useState;
|
|
469
|
-
};
|
|
470
|
-
const actions = function actions2(props, state) {
|
|
471
|
-
return getBlockActions({
|
|
472
|
-
block: useBlock(props),
|
|
473
|
-
state: proxyState(props),
|
|
474
|
-
context: props.context.context
|
|
471
|
+
const RenderBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
472
|
+
qwik._jsxBranch();
|
|
473
|
+
const state = qwik.useStore({
|
|
474
|
+
proxyState: getProxyState(props.context),
|
|
475
|
+
tag: props.block.tagName || "div"
|
|
475
476
|
});
|
|
476
|
-
|
|
477
|
-
const
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
477
|
+
const component = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
478
|
+
const [props2] = qwik.useLexicalScope();
|
|
479
|
+
return getComponent({
|
|
480
|
+
block: props2.block,
|
|
481
|
+
context: props2.context
|
|
482
|
+
});
|
|
483
|
+
}, "RenderBlock_component_component_useComputed_qb7DMTJ9XGY", [
|
|
484
|
+
props
|
|
485
|
+
]));
|
|
486
|
+
const repeatItemData = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
487
|
+
const [props2] = qwik.useLexicalScope();
|
|
488
|
+
return getRepeatItemData({
|
|
489
|
+
block: props2.block,
|
|
490
|
+
context: props2.context
|
|
491
|
+
});
|
|
492
|
+
}, "RenderBlock_component_repeatItemData_useComputed_Q2wkGRsY3KE", [
|
|
493
|
+
props
|
|
494
|
+
]));
|
|
495
|
+
const useBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
496
|
+
const [props2, repeatItemData2] = qwik.useLexicalScope();
|
|
497
|
+
return repeatItemData2.value ? props2.block : getProcessedBlock({
|
|
498
|
+
block: props2.block,
|
|
499
|
+
state: props2.context.state,
|
|
500
|
+
context: props2.context.context,
|
|
501
|
+
shouldEvaluateBindings: true
|
|
502
|
+
});
|
|
503
|
+
}, "RenderBlock_component_useBlock_useComputed_4ZTSqMpaluI", [
|
|
504
|
+
props,
|
|
505
|
+
repeatItemData
|
|
506
|
+
]));
|
|
507
|
+
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
508
|
+
const [useBlock2] = qwik.useLexicalScope();
|
|
509
|
+
if (checkIsDefined(useBlock2.value.hide))
|
|
510
|
+
return !useBlock2.value.hide;
|
|
511
|
+
if (checkIsDefined(useBlock2.value.show))
|
|
512
|
+
return useBlock2.value.show;
|
|
513
|
+
return true;
|
|
514
|
+
}, "RenderBlock_component_canShowBlock_useComputed_82dAQcDBUzY", [
|
|
515
|
+
useBlock
|
|
516
|
+
]));
|
|
517
|
+
const actions = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
518
|
+
const [props2, state2, useBlock2] = qwik.useLexicalScope();
|
|
519
|
+
return getBlockActions({
|
|
520
|
+
block: useBlock2.value,
|
|
521
|
+
state: props2.context.state,
|
|
522
|
+
context: props2.context.context
|
|
523
|
+
});
|
|
524
|
+
}, "RenderBlock_component_actions_useComputed_AOTwdXfwCqY", [
|
|
525
|
+
props,
|
|
526
|
+
state,
|
|
527
|
+
useBlock
|
|
528
|
+
]));
|
|
529
|
+
const attributes = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
530
|
+
const [props2, useBlock2] = qwik.useLexicalScope();
|
|
531
|
+
const blockProperties = getBlockProperties(useBlock2.value);
|
|
532
|
+
return {
|
|
533
|
+
...blockProperties,
|
|
534
|
+
...{}
|
|
535
|
+
};
|
|
536
|
+
}, "RenderBlock_component_attributes_useComputed_2cvnb0dCzeU", [
|
|
537
|
+
props,
|
|
538
|
+
useBlock
|
|
539
|
+
]));
|
|
540
|
+
const childrenWithoutParentComponent = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
541
|
+
const [component2, repeatItemData2, useBlock2] = qwik.useLexicalScope();
|
|
542
|
+
const shouldRenderChildrenOutsideRef = !component2.value?.component && !repeatItemData2.value;
|
|
543
|
+
return shouldRenderChildrenOutsideRef ? useBlock2.value.children ?? [] : [];
|
|
544
|
+
}, "RenderBlock_component_childrenWithoutParentComponent_useComputed_l4hT2V9liQc", [
|
|
545
|
+
component,
|
|
546
|
+
repeatItemData,
|
|
547
|
+
useBlock
|
|
548
|
+
]));
|
|
549
|
+
const childrenContext = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
550
|
+
const [attributes2, props2, useBlock2] = qwik.useLexicalScope();
|
|
551
|
+
const getInheritedTextStyles = () => {
|
|
552
|
+
return {};
|
|
553
|
+
};
|
|
554
|
+
return {
|
|
555
|
+
apiKey: props2.context.apiKey,
|
|
556
|
+
apiVersion: props2.context.apiVersion,
|
|
557
|
+
state: props2.context.state,
|
|
558
|
+
content: props2.context.content,
|
|
559
|
+
context: props2.context.context,
|
|
560
|
+
setState: props2.context.setState,
|
|
561
|
+
registeredComponents: props2.context.registeredComponents,
|
|
562
|
+
inheritedStyles: getInheritedTextStyles()
|
|
563
|
+
};
|
|
564
|
+
}, "RenderBlock_component_childrenContext_useComputed_gskFnyBnHDI", [
|
|
565
|
+
attributes,
|
|
566
|
+
props,
|
|
567
|
+
useBlock
|
|
568
|
+
]));
|
|
569
|
+
const renderComponentProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
570
|
+
const [actions2, attributes2, childrenContext2, component2, useBlock2] = qwik.useLexicalScope();
|
|
571
|
+
return {
|
|
572
|
+
blockChildren: useBlock2.value.children ?? [],
|
|
573
|
+
componentRef: component2.value?.component,
|
|
574
|
+
componentOptions: {
|
|
575
|
+
...getBlockComponentOptions(useBlock2.value),
|
|
576
|
+
...!component2.value?.noWrap ? {} : {
|
|
577
|
+
attributes: {
|
|
578
|
+
...attributes2.value,
|
|
579
|
+
...actions2.value
|
|
580
|
+
}
|
|
494
581
|
}
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
return getRepeatItemData({
|
|
506
|
-
block: props.block,
|
|
507
|
-
context: props.context
|
|
508
|
-
});
|
|
509
|
-
};
|
|
510
|
-
const childrenContext = function childrenContext2(props, state) {
|
|
511
|
-
const getInheritedTextStyles = () => {
|
|
512
|
-
return {};
|
|
513
|
-
};
|
|
514
|
-
return {
|
|
515
|
-
apiKey: props.context.apiKey,
|
|
516
|
-
apiVersion: props.context.apiVersion,
|
|
517
|
-
state: props.context.state,
|
|
518
|
-
content: props.context.content,
|
|
519
|
-
context: props.context.context,
|
|
520
|
-
setState: props.context.setState,
|
|
521
|
-
registeredComponents: props.context.registeredComponents,
|
|
522
|
-
inheritedStyles: getInheritedTextStyles()
|
|
523
|
-
};
|
|
524
|
-
};
|
|
525
|
-
const RenderBlock = (props) => {
|
|
526
|
-
qwik._jsxBranch();
|
|
527
|
-
const state = {};
|
|
528
|
-
state.tag = tag(props);
|
|
582
|
+
},
|
|
583
|
+
context: childrenContext2.value
|
|
584
|
+
};
|
|
585
|
+
}, "RenderBlock_component_renderComponentProps_useComputed_tWa1cp0r7XY", [
|
|
586
|
+
actions,
|
|
587
|
+
attributes,
|
|
588
|
+
childrenContext,
|
|
589
|
+
component,
|
|
590
|
+
useBlock
|
|
591
|
+
]));
|
|
529
592
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
530
|
-
children: canShowBlock
|
|
593
|
+
children: canShowBlock.value ? !component.value?.noWrap ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
531
594
|
children: [
|
|
532
|
-
isEmptyHtmlElement(tag
|
|
533
|
-
...attributes
|
|
534
|
-
...actions
|
|
535
|
-
},
|
|
536
|
-
!isEmptyHtmlElement(tag
|
|
595
|
+
isEmptyHtmlElement(state.tag) ? /* @__PURE__ */ qwik._jsxC(state.tag, {
|
|
596
|
+
...attributes.value,
|
|
597
|
+
...actions.value
|
|
598
|
+
}, 0, "9d_0") : null,
|
|
599
|
+
!isEmptyHtmlElement(state.tag) && repeatItemData.value ? (repeatItemData.value || []).map(function(data, index) {
|
|
537
600
|
return /* @__PURE__ */ qwik._jsxC(RenderRepeatedBlock, {
|
|
538
601
|
get repeatContext() {
|
|
539
602
|
return data.context;
|
|
@@ -547,36 +610,47 @@ const RenderBlock = (props) => {
|
|
|
547
610
|
}
|
|
548
611
|
}, 3, index);
|
|
549
612
|
}) : null,
|
|
550
|
-
!isEmptyHtmlElement(tag
|
|
551
|
-
...attributes
|
|
552
|
-
...actions
|
|
613
|
+
!isEmptyHtmlElement(state.tag) && !repeatItemData.value ? /* @__PURE__ */ qwik._jsxC(state.tag, {
|
|
614
|
+
...attributes.value,
|
|
615
|
+
...actions.value,
|
|
553
616
|
children: [
|
|
554
617
|
/* @__PURE__ */ qwik._jsxC(RenderComponent, {
|
|
555
|
-
...renderComponentProps
|
|
556
|
-
},
|
|
557
|
-
(childrenWithoutParentComponent
|
|
618
|
+
...renderComponentProps.value
|
|
619
|
+
}, 0, "9d_1"),
|
|
620
|
+
(childrenWithoutParentComponent.value || []).map(function(child) {
|
|
558
621
|
return /* @__PURE__ */ qwik._jsxC(RenderBlock, {
|
|
559
622
|
block: child,
|
|
560
|
-
context
|
|
623
|
+
get context() {
|
|
624
|
+
return childrenContext.value;
|
|
625
|
+
},
|
|
626
|
+
[qwik._IMMUTABLE]: {
|
|
627
|
+
context: qwik._fnSignal((p0) => p0.value, [
|
|
628
|
+
childrenContext
|
|
629
|
+
], "p0.value")
|
|
630
|
+
}
|
|
561
631
|
}, 3, "render-block-" + child.id);
|
|
562
632
|
}),
|
|
563
|
-
(childrenWithoutParentComponent
|
|
633
|
+
(childrenWithoutParentComponent.value || []).map(function(child) {
|
|
564
634
|
return /* @__PURE__ */ qwik._jsxC(BlockStyles, {
|
|
565
635
|
block: child,
|
|
566
|
-
context
|
|
636
|
+
get context() {
|
|
637
|
+
return childrenContext.value;
|
|
638
|
+
},
|
|
639
|
+
[qwik._IMMUTABLE]: {
|
|
640
|
+
context: qwik._fnSignal((p0) => p0.value, [
|
|
641
|
+
childrenContext
|
|
642
|
+
], "p0.value")
|
|
643
|
+
}
|
|
567
644
|
}, 3, "block-style-" + child.id);
|
|
568
645
|
})
|
|
569
646
|
]
|
|
570
647
|
}, 0, "9d_2") : null
|
|
571
648
|
]
|
|
572
649
|
}, 1, "9d_3") : /* @__PURE__ */ qwik._jsxC(RenderComponent, {
|
|
573
|
-
...renderComponentProps
|
|
574
|
-
},
|
|
650
|
+
...renderComponentProps.value
|
|
651
|
+
}, 0, "9d_4") : null
|
|
575
652
|
}, 1, "9d_5");
|
|
576
|
-
};
|
|
577
|
-
const className = function className2(props, state, builderContext2) {
|
|
578
|
-
return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
|
|
579
|
-
};
|
|
653
|
+
}, "RenderBlock_component_m0hg0zT573Q"));
|
|
580
654
|
const onClick$1 = function onClick2(props, state, builderContext2) {
|
|
581
655
|
if (isEditing() && !props.blocks?.length)
|
|
582
656
|
window.parent?.postMessage({
|
|
@@ -601,8 +675,13 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
601
675
|
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES$2, "RenderBlocks_component_useStylesScoped_0XKYzaR059E"));
|
|
602
676
|
const builderContext$1 = qwik.useContext(builderContext);
|
|
603
677
|
const state = {};
|
|
678
|
+
const className = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
679
|
+
const [props2] = qwik.useLexicalScope();
|
|
680
|
+
return "builder-blocks" + (!props2.blocks?.length ? " no-blocks" : "");
|
|
681
|
+
}, "RenderBlocks_component_className_useComputed_7iQuBozD6Tc", [
|
|
682
|
+
props
|
|
683
|
+
]));
|
|
604
684
|
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
605
|
-
class: className(props) + " div-RenderBlocks",
|
|
606
685
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
|
|
607
686
|
const [builderContext2, props2, state2] = qwik.useLexicalScope();
|
|
608
687
|
return onClick$1(props2);
|
|
@@ -620,6 +699,9 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
620
699
|
state
|
|
621
700
|
])
|
|
622
701
|
}, {
|
|
702
|
+
class: qwik._fnSignal((p0) => p0.value + " div-RenderBlocks", [
|
|
703
|
+
className
|
|
704
|
+
], 'p0.value+" div-RenderBlocks"'),
|
|
623
705
|
"builder-path": qwik._fnSignal((p0) => p0.path, [
|
|
624
706
|
props
|
|
625
707
|
], "p0.path"),
|
|
@@ -670,15 +752,6 @@ const getTabletStyle = function getTabletStyle2(props, state, builderContext2, {
|
|
|
670
752
|
const getMobileStyle = function getMobileStyle2(props, state, builderContext2, { stackedStyle, desktopStyle }) {
|
|
671
753
|
return state.stackAt === "never" ? desktopStyle : stackedStyle;
|
|
672
754
|
};
|
|
673
|
-
const columnsCssVars = function columnsCssVars2(props, state, builderContext2) {
|
|
674
|
-
return {
|
|
675
|
-
"--flex-dir": state.flexDir,
|
|
676
|
-
"--flex-dir-tablet": getTabletStyle(props, state, builderContext2, {
|
|
677
|
-
stackedStyle: state.flexDir,
|
|
678
|
-
desktopStyle: "row"
|
|
679
|
-
})
|
|
680
|
-
};
|
|
681
|
-
};
|
|
682
755
|
const columnCssVars = function columnCssVars2(props, state, builderContext2, index) {
|
|
683
756
|
index === 0 ? 0 : state.gutterSize;
|
|
684
757
|
const width = getColumnCssWidth(props, state, builderContext2, index);
|
|
@@ -708,52 +781,79 @@ const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, sta
|
|
|
708
781
|
const breakpointSizes = getSizesForBreakpoints(builderContext2.content?.meta?.breakpoints || {});
|
|
709
782
|
return breakpointSizes[size].max;
|
|
710
783
|
};
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
784
|
+
const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
785
|
+
qwik._jsxBranch();
|
|
786
|
+
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES$1, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
|
|
787
|
+
const builderContext$1 = qwik.useContext(builderContext);
|
|
788
|
+
const state = qwik.useStore({
|
|
789
|
+
cols: props.columns || [],
|
|
790
|
+
flexDir: props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
791
|
+
gutterSize: typeof props.space === "number" ? props.space || 0 : 20,
|
|
792
|
+
stackAt: props.stackColumnsAt || "tablet"
|
|
793
|
+
});
|
|
794
|
+
const columnsCssVars = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
795
|
+
const [builderContext2, props2, state2] = qwik.useLexicalScope();
|
|
796
|
+
return {
|
|
797
|
+
"--flex-dir": state2.flexDir,
|
|
798
|
+
"--flex-dir-tablet": getTabletStyle(props2, state2, builderContext2, {
|
|
799
|
+
stackedStyle: state2.flexDir,
|
|
800
|
+
desktopStyle: "row"
|
|
801
|
+
})
|
|
802
|
+
};
|
|
803
|
+
}, "Columns_component_columnsCssVars_useComputed_adFEq2RWT9s", [
|
|
804
|
+
builderContext$1,
|
|
805
|
+
props,
|
|
806
|
+
state
|
|
807
|
+
]));
|
|
808
|
+
const columnsStyles = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
809
|
+
const [builderContext2, props2, state2] = qwik.useLexicalScope();
|
|
810
|
+
return `
|
|
811
|
+
@media (max-width: ${getWidthForBreakpointSize(props2, state2, builderContext2, "medium")}px) {
|
|
812
|
+
.${props2.builderBlock.id}-breakpoints {
|
|
715
813
|
flex-direction: var(--flex-dir-tablet);
|
|
716
814
|
align-items: stretch;
|
|
717
815
|
}
|
|
718
816
|
|
|
719
|
-
.${
|
|
817
|
+
.${props2.builderBlock.id}-breakpoints > .builder-column {
|
|
720
818
|
width: var(--column-width-tablet) !important;
|
|
721
819
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
722
820
|
}
|
|
723
821
|
}
|
|
724
822
|
|
|
725
|
-
@media (max-width: ${getWidthForBreakpointSize(
|
|
726
|
-
.${
|
|
823
|
+
@media (max-width: ${getWidthForBreakpointSize(props2, state2, builderContext2, "small")}px) {
|
|
824
|
+
.${props2.builderBlock.id}-breakpoints {
|
|
727
825
|
flex-direction: var(--flex-dir);
|
|
728
826
|
align-items: stretch;
|
|
729
827
|
}
|
|
730
828
|
|
|
731
|
-
.${
|
|
829
|
+
.${props2.builderBlock.id}-breakpoints > .builder-column {
|
|
732
830
|
width: var(--column-width-mobile) !important;
|
|
733
831
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
734
832
|
}
|
|
735
833
|
},
|
|
736
834
|
`;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
cols: props.columns || [],
|
|
744
|
-
flexDir: props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
745
|
-
gutterSize: typeof props.space === "number" ? props.space || 0 : 20,
|
|
746
|
-
stackAt: props.stackColumnsAt || "tablet"
|
|
747
|
-
});
|
|
748
|
-
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
749
|
-
style: columnsCssVars(props, state, builderContext$1)
|
|
750
|
-
}, {
|
|
835
|
+
}, "Columns_component_columnsStyles_useComputed_nBtMPbzd1Wc", [
|
|
836
|
+
builderContext$1,
|
|
837
|
+
props,
|
|
838
|
+
state
|
|
839
|
+
]));
|
|
840
|
+
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
751
841
|
class: qwik._fnSignal((p0) => `builder-columns ${p0.builderBlock.id}-breakpoints div-Columns`, [
|
|
752
842
|
props
|
|
753
|
-
], '`builder-columns ${p0.builderBlock.id}-breakpoints`+" div-Columns"')
|
|
843
|
+
], '`builder-columns ${p0.builderBlock.id}-breakpoints`+" div-Columns"'),
|
|
844
|
+
style: qwik._fnSignal((p0) => p0.value, [
|
|
845
|
+
columnsCssVars
|
|
846
|
+
], "p0.value")
|
|
754
847
|
}, [
|
|
755
848
|
/* @__PURE__ */ qwik._jsxC(RenderInlinedStyles, {
|
|
756
|
-
styles
|
|
849
|
+
get styles() {
|
|
850
|
+
return columnsStyles.value;
|
|
851
|
+
},
|
|
852
|
+
[qwik._IMMUTABLE]: {
|
|
853
|
+
styles: qwik._fnSignal((p0) => p0.value, [
|
|
854
|
+
columnsStyles
|
|
855
|
+
], "p0.value")
|
|
856
|
+
}
|
|
757
857
|
}, 3, "c0_0"),
|
|
758
858
|
(props.columns || []).map(function(column, index) {
|
|
759
859
|
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
@@ -849,55 +949,59 @@ function getSrcSet(url) {
|
|
|
849
949
|
]).join(", ");
|
|
850
950
|
return url;
|
|
851
951
|
}
|
|
852
|
-
const srcSetToUse = function srcSetToUse2(props, state) {
|
|
853
|
-
const imageToUse = props.image || props.src;
|
|
854
|
-
if (!imageToUse || !(imageToUse.match(/builder\.io/) || imageToUse.match(/cdn\.shopify\.com/)))
|
|
855
|
-
return props.srcset;
|
|
856
|
-
if (props.srcset && props.image?.includes("builder.io/api/v1/image")) {
|
|
857
|
-
if (!props.srcset.includes(props.image.split("?")[0])) {
|
|
858
|
-
console.debug("Removed given srcset");
|
|
859
|
-
return getSrcSet(imageToUse);
|
|
860
|
-
}
|
|
861
|
-
} else if (props.image && !props.srcset)
|
|
862
|
-
return getSrcSet(imageToUse);
|
|
863
|
-
return getSrcSet(imageToUse);
|
|
864
|
-
};
|
|
865
|
-
const webpSrcSet = function webpSrcSet2(props, state) {
|
|
866
|
-
if (srcSetToUse(props)?.match(/builder\.io/) && !props.noWebp)
|
|
867
|
-
return srcSetToUse(props).replace(/\?/g, "?format=webp&");
|
|
868
|
-
else
|
|
869
|
-
return "";
|
|
870
|
-
};
|
|
871
|
-
const aspectRatioCss = function aspectRatioCss2(props, state) {
|
|
872
|
-
const aspectRatioStyles = {
|
|
873
|
-
position: "absolute",
|
|
874
|
-
height: "100%",
|
|
875
|
-
width: "100%",
|
|
876
|
-
left: "0px",
|
|
877
|
-
top: "0px"
|
|
878
|
-
};
|
|
879
|
-
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
880
|
-
return out;
|
|
881
|
-
};
|
|
882
952
|
const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
883
953
|
qwik._jsxBranch();
|
|
884
954
|
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES, "Image_component_useStylesScoped_fBMYiVf9fuU"));
|
|
955
|
+
const srcSetToUse = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
956
|
+
const [props2] = qwik.useLexicalScope();
|
|
957
|
+
const imageToUse = props2.image || props2.src;
|
|
958
|
+
if (!imageToUse || !(imageToUse.match(/builder\.io/) || imageToUse.match(/cdn\.shopify\.com/)))
|
|
959
|
+
return props2.srcset;
|
|
960
|
+
if (props2.srcset && props2.image?.includes("builder.io/api/v1/image")) {
|
|
961
|
+
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
962
|
+
console.debug("Removed given srcset");
|
|
963
|
+
return getSrcSet(imageToUse);
|
|
964
|
+
}
|
|
965
|
+
} else if (props2.image && !props2.srcset)
|
|
966
|
+
return getSrcSet(imageToUse);
|
|
967
|
+
return getSrcSet(imageToUse);
|
|
968
|
+
}, "Image_component_srcSetToUse_useComputed_TZMibf9Gpvw", [
|
|
969
|
+
props
|
|
970
|
+
]));
|
|
971
|
+
const webpSrcSet = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
972
|
+
const [props2, srcSetToUse2] = qwik.useLexicalScope();
|
|
973
|
+
if (srcSetToUse2.value?.match(/builder\.io/) && !props2.noWebp)
|
|
974
|
+
return srcSetToUse2.value.replace(/\?/g, "?format=webp&");
|
|
975
|
+
else
|
|
976
|
+
return "";
|
|
977
|
+
}, "Image_component_webpSrcSet_useComputed_01YCu72BBtA", [
|
|
978
|
+
props,
|
|
979
|
+
srcSetToUse
|
|
980
|
+
]));
|
|
981
|
+
const aspectRatioCss = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
982
|
+
const [props2] = qwik.useLexicalScope();
|
|
983
|
+
const aspectRatioStyles = {
|
|
984
|
+
position: "absolute",
|
|
985
|
+
height: "100%",
|
|
986
|
+
width: "100%",
|
|
987
|
+
left: "0px",
|
|
988
|
+
top: "0px"
|
|
989
|
+
};
|
|
990
|
+
const out = props2.aspectRatio ? aspectRatioStyles : void 0;
|
|
991
|
+
return out;
|
|
992
|
+
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
993
|
+
props
|
|
994
|
+
]));
|
|
885
995
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
886
996
|
children: [
|
|
887
997
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
888
|
-
webpSrcSet
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
998
|
+
webpSrcSet.value ? /* @__PURE__ */ qwik._jsxQ("source", null, {
|
|
999
|
+
type: "image/webp",
|
|
1000
|
+
srcSet: qwik._fnSignal((p0) => p0.value, [
|
|
1001
|
+
webpSrcSet
|
|
1002
|
+
], "p0.value")
|
|
892
1003
|
}, null, 3, "0A_0") : null,
|
|
893
|
-
/* @__PURE__ */ qwik._jsxQ("img", {
|
|
894
|
-
style: {
|
|
895
|
-
objectPosition: props.backgroundPosition || "center",
|
|
896
|
-
objectFit: props.backgroundSize || "cover",
|
|
897
|
-
...aspectRatioCss(props)
|
|
898
|
-
},
|
|
899
|
-
srcSet: srcSetToUse(props)
|
|
900
|
-
}, {
|
|
1004
|
+
/* @__PURE__ */ qwik._jsxQ("img", null, {
|
|
901
1005
|
loading: "lazy",
|
|
902
1006
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
903
1007
|
props
|
|
@@ -905,12 +1009,23 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
905
1009
|
role: qwik._fnSignal((p0) => p0.altText ? "presentation" : void 0, [
|
|
906
1010
|
props
|
|
907
1011
|
], 'p0.altText?"presentation":undefined'),
|
|
1012
|
+
style: qwik._fnSignal((p0, p1) => ({
|
|
1013
|
+
objectPosition: p1.backgroundPosition || "center",
|
|
1014
|
+
objectFit: p1.backgroundSize || "cover",
|
|
1015
|
+
...p0.value
|
|
1016
|
+
}), [
|
|
1017
|
+
aspectRatioCss,
|
|
1018
|
+
props
|
|
1019
|
+
], '{objectPosition:p1.backgroundPosition||"center",objectFit:p1.backgroundSize||"cover",...p0.value}'),
|
|
908
1020
|
class: qwik._fnSignal((p0) => "builder-image" + (p0.className ? " " + p0.className : "") + " img-Image", [
|
|
909
1021
|
props
|
|
910
1022
|
], '"builder-image"+(p0.className?" "+p0.className:"")+" img-Image"'),
|
|
911
1023
|
src: qwik._fnSignal((p0) => p0.image, [
|
|
912
1024
|
props
|
|
913
1025
|
], "p0.image"),
|
|
1026
|
+
srcSet: qwik._fnSignal((p0) => p0.value, [
|
|
1027
|
+
srcSetToUse
|
|
1028
|
+
], "p0.value"),
|
|
914
1029
|
sizes: qwik._fnSignal((p0) => p0.sizes, [
|
|
915
1030
|
props
|
|
916
1031
|
], "p0.sizes")
|
|
@@ -1434,7 +1549,7 @@ const componentInfo$6 = {
|
|
|
1434
1549
|
]
|
|
1435
1550
|
};
|
|
1436
1551
|
const SectionComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1437
|
-
return /* @__PURE__ */ qwik.
|
|
1552
|
+
return /* @__PURE__ */ qwik._jsxS("section", {
|
|
1438
1553
|
...props.attributes,
|
|
1439
1554
|
style: {
|
|
1440
1555
|
width: "100%",
|
|
@@ -1447,8 +1562,9 @@ const SectionComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
1447
1562
|
alignItems: "stretch",
|
|
1448
1563
|
marginLeft: "auto",
|
|
1449
1564
|
marginRight: "auto"
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1565
|
+
},
|
|
1566
|
+
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "2Y_0")
|
|
1567
|
+
}, null, 0, "2Y_1");
|
|
1452
1568
|
}, "SectionComponent_component_ZWF9iD5WeLg"));
|
|
1453
1569
|
const componentInfo$5 = {
|
|
1454
1570
|
name: "Symbol",
|
|
@@ -1812,68 +1928,69 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
1812
1928
|
props,
|
|
1813
1929
|
state
|
|
1814
1930
|
]));
|
|
1815
|
-
return /* @__PURE__ */ qwik.
|
|
1816
|
-
...props.attributes
|
|
1931
|
+
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
1932
|
+
...props.attributes,
|
|
1933
|
+
children: /* @__PURE__ */ qwik._jsxC(RenderContent, {
|
|
1934
|
+
get apiVersion() {
|
|
1935
|
+
return builderContext$1.apiVersion;
|
|
1936
|
+
},
|
|
1937
|
+
get apiKey() {
|
|
1938
|
+
return builderContext$1.apiKey;
|
|
1939
|
+
},
|
|
1940
|
+
get context() {
|
|
1941
|
+
return builderContext$1.context;
|
|
1942
|
+
},
|
|
1943
|
+
get customComponents() {
|
|
1944
|
+
return Object.values(builderContext$1.registeredComponents);
|
|
1945
|
+
},
|
|
1946
|
+
get data() {
|
|
1947
|
+
return {
|
|
1948
|
+
...props.symbol?.data,
|
|
1949
|
+
...builderContext$1.state,
|
|
1950
|
+
...state.contentToUse?.data?.state
|
|
1951
|
+
};
|
|
1952
|
+
},
|
|
1953
|
+
get model() {
|
|
1954
|
+
return props.symbol?.model;
|
|
1955
|
+
},
|
|
1956
|
+
get content() {
|
|
1957
|
+
return state.contentToUse;
|
|
1958
|
+
},
|
|
1959
|
+
[qwik._IMMUTABLE]: {
|
|
1960
|
+
apiVersion: qwik._fnSignal((p0) => p0.apiVersion, [
|
|
1961
|
+
builderContext$1
|
|
1962
|
+
], "p0.apiVersion"),
|
|
1963
|
+
apiKey: qwik._fnSignal((p0) => p0.apiKey, [
|
|
1964
|
+
builderContext$1
|
|
1965
|
+
], "p0.apiKey"),
|
|
1966
|
+
context: qwik._fnSignal((p0) => p0.context, [
|
|
1967
|
+
builderContext$1
|
|
1968
|
+
], "p0.context"),
|
|
1969
|
+
customComponents: qwik._fnSignal((p0) => Object.values(p0.registeredComponents), [
|
|
1970
|
+
builderContext$1
|
|
1971
|
+
], "Object.values(p0.registeredComponents)"),
|
|
1972
|
+
data: qwik._fnSignal((p0, p1, p2) => ({
|
|
1973
|
+
...p1.symbol?.data,
|
|
1974
|
+
...p0.state,
|
|
1975
|
+
...p2.contentToUse?.data?.state
|
|
1976
|
+
}), [
|
|
1977
|
+
builderContext$1,
|
|
1978
|
+
props,
|
|
1979
|
+
state
|
|
1980
|
+
], "{...p1.symbol?.data,...p0.state,...p2.contentToUse?.data?.state}"),
|
|
1981
|
+
model: qwik._fnSignal((p0) => p0.symbol?.model, [
|
|
1982
|
+
props
|
|
1983
|
+
], "p0.symbol?.model"),
|
|
1984
|
+
content: qwik._fnSignal((p0) => p0.contentToUse, [
|
|
1985
|
+
state
|
|
1986
|
+
], "p0.contentToUse")
|
|
1987
|
+
}
|
|
1988
|
+
}, 3, "Wt_0")
|
|
1817
1989
|
}, {
|
|
1818
1990
|
class: qwik._fnSignal((p0) => p0.className, [
|
|
1819
1991
|
state
|
|
1820
1992
|
], "p0.className")
|
|
1821
|
-
},
|
|
1822
|
-
get apiVersion() {
|
|
1823
|
-
return builderContext$1.apiVersion;
|
|
1824
|
-
},
|
|
1825
|
-
get apiKey() {
|
|
1826
|
-
return builderContext$1.apiKey;
|
|
1827
|
-
},
|
|
1828
|
-
get context() {
|
|
1829
|
-
return builderContext$1.context;
|
|
1830
|
-
},
|
|
1831
|
-
get customComponents() {
|
|
1832
|
-
return Object.values(builderContext$1.registeredComponents);
|
|
1833
|
-
},
|
|
1834
|
-
get data() {
|
|
1835
|
-
return {
|
|
1836
|
-
...props.symbol?.data,
|
|
1837
|
-
...builderContext$1.state,
|
|
1838
|
-
...state.contentToUse?.data?.state
|
|
1839
|
-
};
|
|
1840
|
-
},
|
|
1841
|
-
get model() {
|
|
1842
|
-
return props.symbol?.model;
|
|
1843
|
-
},
|
|
1844
|
-
get content() {
|
|
1845
|
-
return state.contentToUse;
|
|
1846
|
-
},
|
|
1847
|
-
[qwik._IMMUTABLE]: {
|
|
1848
|
-
apiVersion: qwik._fnSignal((p0) => p0.apiVersion, [
|
|
1849
|
-
builderContext$1
|
|
1850
|
-
], "p0.apiVersion"),
|
|
1851
|
-
apiKey: qwik._fnSignal((p0) => p0.apiKey, [
|
|
1852
|
-
builderContext$1
|
|
1853
|
-
], "p0.apiKey"),
|
|
1854
|
-
context: qwik._fnSignal((p0) => p0.context, [
|
|
1855
|
-
builderContext$1
|
|
1856
|
-
], "p0.context"),
|
|
1857
|
-
customComponents: qwik._fnSignal((p0) => Object.values(p0.registeredComponents), [
|
|
1858
|
-
builderContext$1
|
|
1859
|
-
], "Object.values(p0.registeredComponents)"),
|
|
1860
|
-
data: qwik._fnSignal((p0, p1, p2) => ({
|
|
1861
|
-
...p1.symbol?.data,
|
|
1862
|
-
...p0.state,
|
|
1863
|
-
...p2.contentToUse?.data?.state
|
|
1864
|
-
}), [
|
|
1865
|
-
builderContext$1,
|
|
1866
|
-
props,
|
|
1867
|
-
state
|
|
1868
|
-
], "{...p1.symbol?.data,...p0.state,...p2.contentToUse?.data?.state}"),
|
|
1869
|
-
model: qwik._fnSignal((p0) => p0.symbol?.model, [
|
|
1870
|
-
props
|
|
1871
|
-
], "p0.symbol?.model"),
|
|
1872
|
-
content: qwik._fnSignal((p0) => p0.contentToUse, [
|
|
1873
|
-
state
|
|
1874
|
-
], "p0.contentToUse")
|
|
1875
|
-
}
|
|
1876
|
-
}, 3, "Wt_0"), 0, "Wt_1");
|
|
1993
|
+
}, 0, "Wt_1");
|
|
1877
1994
|
}, "Symbol_component_WVvggdkUPdk"));
|
|
1878
1995
|
const componentInfo$4 = {
|
|
1879
1996
|
name: "Text",
|
|
@@ -2019,34 +2136,41 @@ const componentInfo$3 = {
|
|
|
2019
2136
|
}
|
|
2020
2137
|
]
|
|
2021
2138
|
};
|
|
2022
|
-
const videoProps = function videoProps2(props, state) {
|
|
2023
|
-
return {
|
|
2024
|
-
...props.autoPlay === true ? {
|
|
2025
|
-
autoPlay: true
|
|
2026
|
-
} : {},
|
|
2027
|
-
...props.muted === true ? {
|
|
2028
|
-
muted: true
|
|
2029
|
-
} : {},
|
|
2030
|
-
...props.controls === true ? {
|
|
2031
|
-
controls: true
|
|
2032
|
-
} : {},
|
|
2033
|
-
...props.loop === true ? {
|
|
2034
|
-
loop: true
|
|
2035
|
-
} : {},
|
|
2036
|
-
...props.playsInline === true ? {
|
|
2037
|
-
playsInline: true
|
|
2038
|
-
} : {}
|
|
2039
|
-
};
|
|
2040
|
-
};
|
|
2041
|
-
const spreadProps = function spreadProps2(props, state) {
|
|
2042
|
-
return {
|
|
2043
|
-
...props.attributes,
|
|
2044
|
-
...videoProps(props)
|
|
2045
|
-
};
|
|
2046
|
-
};
|
|
2047
2139
|
const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
2048
|
-
|
|
2049
|
-
|
|
2140
|
+
const videoProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
2141
|
+
const [props2] = qwik.useLexicalScope();
|
|
2142
|
+
return {
|
|
2143
|
+
...props2.autoPlay === true ? {
|
|
2144
|
+
autoPlay: true
|
|
2145
|
+
} : {},
|
|
2146
|
+
...props2.muted === true ? {
|
|
2147
|
+
muted: true
|
|
2148
|
+
} : {},
|
|
2149
|
+
...props2.controls === true ? {
|
|
2150
|
+
controls: true
|
|
2151
|
+
} : {},
|
|
2152
|
+
...props2.loop === true ? {
|
|
2153
|
+
loop: true
|
|
2154
|
+
} : {},
|
|
2155
|
+
...props2.playsInline === true ? {
|
|
2156
|
+
playsInline: true
|
|
2157
|
+
} : {}
|
|
2158
|
+
};
|
|
2159
|
+
}, "Video_component_videoProps_useComputed_60AadUGY06E", [
|
|
2160
|
+
props
|
|
2161
|
+
]));
|
|
2162
|
+
const spreadProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
2163
|
+
const [props2, videoProps2] = qwik.useLexicalScope();
|
|
2164
|
+
return {
|
|
2165
|
+
...props2.attributes,
|
|
2166
|
+
...videoProps2.value
|
|
2167
|
+
};
|
|
2168
|
+
}, "Video_component_spreadProps_useComputed_ZdLsx18NYH4", [
|
|
2169
|
+
props,
|
|
2170
|
+
videoProps
|
|
2171
|
+
]));
|
|
2172
|
+
return /* @__PURE__ */ qwik._jsxS("video", {
|
|
2173
|
+
...spreadProps.value
|
|
2050
2174
|
}, {
|
|
2051
2175
|
style: qwik._fnSignal((p0) => ({
|
|
2052
2176
|
width: "100%",
|
|
@@ -2064,7 +2188,7 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
2064
2188
|
poster: qwik._fnSignal((p0) => p0.posterImage, [
|
|
2065
2189
|
props
|
|
2066
2190
|
], "p0.posterImage")
|
|
2067
|
-
},
|
|
2191
|
+
}, 0, "j7_0");
|
|
2068
2192
|
}, "Video_component_qdcTZflYyoQ"));
|
|
2069
2193
|
const componentInfo$2 = {
|
|
2070
2194
|
name: "Embed",
|
|
@@ -2159,7 +2283,7 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
2159
2283
|
}, null, 3, "9r_0");
|
|
2160
2284
|
}, "Embed_component_Uji08ORjXbE"));
|
|
2161
2285
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
2162
|
-
return /* @__PURE__ */ qwik.
|
|
2286
|
+
return /* @__PURE__ */ qwik._jsxS("img", {
|
|
2163
2287
|
...props.attributes
|
|
2164
2288
|
}, {
|
|
2165
2289
|
style: qwik._fnSignal((p0) => ({
|
|
@@ -2174,7 +2298,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
2174
2298
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
2175
2299
|
props
|
|
2176
2300
|
], "p0.imgSrc||p0.image")
|
|
2177
|
-
},
|
|
2301
|
+
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
2178
2302
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
2179
2303
|
const componentInfo$1 = {
|
|
2180
2304
|
name: "Raw:Img",
|
|
@@ -2335,13 +2459,13 @@ function isPreviewing() {
|
|
|
2335
2459
|
return Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2336
2460
|
}
|
|
2337
2461
|
const components = [];
|
|
2338
|
-
function registerComponent(
|
|
2462
|
+
function registerComponent(component, info) {
|
|
2339
2463
|
components.push({
|
|
2340
|
-
component
|
|
2464
|
+
component,
|
|
2341
2465
|
...info
|
|
2342
2466
|
});
|
|
2343
2467
|
console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.");
|
|
2344
|
-
return
|
|
2468
|
+
return component;
|
|
2345
2469
|
}
|
|
2346
2470
|
const createRegisterComponentMessage = ({ component: _, ...info }) => ({
|
|
2347
2471
|
type: "builder.registerComponent",
|
|
@@ -2964,6 +3088,8 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
2964
3088
|
content: props.content,
|
|
2965
3089
|
data: props.data
|
|
2966
3090
|
})
|
|
3091
|
+
}, {
|
|
3092
|
+
deep: true
|
|
2967
3093
|
});
|
|
2968
3094
|
qwik.useContextProvider(builderContext, qwik.useStore({
|
|
2969
3095
|
content: state.useContent,
|