@builder.io/sdk-qwik 0.1.16 → 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.
@@ -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._jsxQ("a", {
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
- }, qwik._fnSignal((p0) => p0.text, [
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
- }, null, qwik._fnSignal((p0) => p0.text, [
26
- props
27
- ], "p0.text"), 2, null)
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: className3, styles }) => {
165
- const cssClass = `.${className3} {
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 tag$1 = function tag2(props, state) {
176
- return "style";
177
- };
178
- const RenderInlinedStyles = (props) => {
179
- const state = {};
180
- state.tag = tag$1();
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._wrapSignal(props, "styles")
184
- }, null, null, 3, "zz_0")
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 useBlock$1 = function useBlock2(props, state) {
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(props) && canShowBlock$1(props) ? /* @__PURE__ */ qwik._jsxC(RenderInlinedStyles, {
234
- styles: css(props)
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 component = function component2(props, state) {
433
- return getComponent({
434
- block: props.block,
435
- context: props.context
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 attributes = function attributes2(props, state) {
478
- const blockProperties = getBlockProperties(useBlock(props));
479
- return {
480
- ...blockProperties,
481
- ...{}
482
- };
483
- };
484
- const renderComponentProps = function renderComponentProps2(props, state) {
485
- return {
486
- blockChildren: useBlock(props).children ?? [],
487
- componentRef: component(props)?.component,
488
- componentOptions: {
489
- ...getBlockComponentOptions(useBlock(props)),
490
- ...!component(props)?.noWrap ? {} : {
491
- attributes: {
492
- ...attributes(props),
493
- ...actions(props)
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
- context: childrenContext(props)
498
- };
499
- };
500
- const childrenWithoutParentComponent = function childrenWithoutParentComponent2(props, state) {
501
- const shouldRenderChildrenOutsideRef = !component(props)?.component && !repeatItemData(props);
502
- return shouldRenderChildrenOutsideRef ? useBlock(props).children ?? [] : [];
503
- };
504
- const repeatItemData = function repeatItemData2(props, state) {
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(props) ? !component(props)?.noWrap ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
593
+ children: canShowBlock.value ? !component.value?.noWrap ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
531
594
  children: [
532
- isEmptyHtmlElement(tag(props)) ? /* @__PURE__ */ qwik._jsxC(state.tag, {
533
- ...attributes(props),
534
- ...actions(props)
535
- }, 2, "9d_0") : null,
536
- !isEmptyHtmlElement(tag(props)) && repeatItemData(props) ? (repeatItemData(props) || []).map(function(data, index) {
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(props)) && !repeatItemData(props) ? /* @__PURE__ */ qwik._jsxC(state.tag, {
551
- ...attributes(props),
552
- ...actions(props),
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(props)
556
- }, 2, "9d_1"),
557
- (childrenWithoutParentComponent(props) || []).map(function(child) {
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: childrenContext(props)
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(props) || []).map(function(child) {
633
+ (childrenWithoutParentComponent.value || []).map(function(child) {
564
634
  return /* @__PURE__ */ qwik._jsxC(BlockStyles, {
565
635
  block: child,
566
- context: childrenContext(props)
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(props)
574
- }, 2, "9d_4") : null
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 columnsStyles = function columnsStyles2(props, state, builderContext2) {
712
- return `
713
- @media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "medium")}px) {
714
- .${props.builderBlock.id}-breakpoints {
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
- .${props.builderBlock.id}-breakpoints > .builder-column {
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(props, state, builderContext2, "small")}px) {
726
- .${props.builderBlock.id}-breakpoints {
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
- .${props.builderBlock.id}-breakpoints > .builder-column {
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
- const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
739
- qwik._jsxBranch();
740
- qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES$1, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
741
- const builderContext$1 = qwik.useContext(builderContext);
742
- const state = qwik.useStore({
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: columnsStyles(props, state, builderContext$1)
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(props) ? /* @__PURE__ */ qwik._jsxQ("source", {
889
- srcSet: webpSrcSet(props)
890
- }, {
891
- type: "image/webp"
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._jsxQ("section", {
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
- }, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "2Y_0"), 0, "2Y_1");
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",
@@ -1707,8 +1823,9 @@ const getBuilderSearchParamsFromWindow = () => {
1707
1823
  return getBuilderSearchParams(searchParams);
1708
1824
  };
1709
1825
  const normalizeSearchParams = (searchParams) => searchParams instanceof URLSearchParams ? convertSearchParamsToQueryObject(searchParams) : searchParams;
1826
+ const DEFAULT_API_VERSION = "v3";
1710
1827
  const generateContentUrl = (options) => {
1711
- const { limit = 30, userAttributes, query, noTraverse = false, model, apiKey, includeRefs = true, locale, apiVersion = "v2" } = options;
1828
+ const { limit = 30, userAttributes, query, noTraverse = false, model, apiKey, includeRefs = true, locale, apiVersion = DEFAULT_API_VERSION } = options;
1712
1829
  if (!apiKey)
1713
1830
  throw new Error("Missing API key");
1714
1831
  if (![
@@ -1811,68 +1928,69 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
1811
1928
  props,
1812
1929
  state
1813
1930
  ]));
1814
- return /* @__PURE__ */ qwik._jsxQ("div", {
1815
- ...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")
1816
1989
  }, {
1817
1990
  class: qwik._fnSignal((p0) => p0.className, [
1818
1991
  state
1819
1992
  ], "p0.className")
1820
- }, /* @__PURE__ */ qwik._jsxC(RenderContent, {
1821
- get apiVersion() {
1822
- return builderContext$1.apiVersion;
1823
- },
1824
- get apiKey() {
1825
- return builderContext$1.apiKey;
1826
- },
1827
- get context() {
1828
- return builderContext$1.context;
1829
- },
1830
- get customComponents() {
1831
- return Object.values(builderContext$1.registeredComponents);
1832
- },
1833
- get data() {
1834
- return {
1835
- ...props.symbol?.data,
1836
- ...builderContext$1.state,
1837
- ...state.contentToUse?.data?.state
1838
- };
1839
- },
1840
- get model() {
1841
- return props.symbol?.model;
1842
- },
1843
- get content() {
1844
- return state.contentToUse;
1845
- },
1846
- [qwik._IMMUTABLE]: {
1847
- apiVersion: qwik._fnSignal((p0) => p0.apiVersion, [
1848
- builderContext$1
1849
- ], "p0.apiVersion"),
1850
- apiKey: qwik._fnSignal((p0) => p0.apiKey, [
1851
- builderContext$1
1852
- ], "p0.apiKey"),
1853
- context: qwik._fnSignal((p0) => p0.context, [
1854
- builderContext$1
1855
- ], "p0.context"),
1856
- customComponents: qwik._fnSignal((p0) => Object.values(p0.registeredComponents), [
1857
- builderContext$1
1858
- ], "Object.values(p0.registeredComponents)"),
1859
- data: qwik._fnSignal((p0, p1, p2) => ({
1860
- ...p1.symbol?.data,
1861
- ...p0.state,
1862
- ...p2.contentToUse?.data?.state
1863
- }), [
1864
- builderContext$1,
1865
- props,
1866
- state
1867
- ], "{...p1.symbol?.data,...p0.state,...p2.contentToUse?.data?.state}"),
1868
- model: qwik._fnSignal((p0) => p0.symbol?.model, [
1869
- props
1870
- ], "p0.symbol?.model"),
1871
- content: qwik._fnSignal((p0) => p0.contentToUse, [
1872
- state
1873
- ], "p0.contentToUse")
1874
- }
1875
- }, 3, "Wt_0"), 0, "Wt_1");
1993
+ }, 0, "Wt_1");
1876
1994
  }, "Symbol_component_WVvggdkUPdk"));
1877
1995
  const componentInfo$4 = {
1878
1996
  name: "Text",
@@ -2018,34 +2136,41 @@ const componentInfo$3 = {
2018
2136
  }
2019
2137
  ]
2020
2138
  };
2021
- const videoProps = function videoProps2(props, state) {
2022
- return {
2023
- ...props.autoPlay === true ? {
2024
- autoPlay: true
2025
- } : {},
2026
- ...props.muted === true ? {
2027
- muted: true
2028
- } : {},
2029
- ...props.controls === true ? {
2030
- controls: true
2031
- } : {},
2032
- ...props.loop === true ? {
2033
- loop: true
2034
- } : {},
2035
- ...props.playsInline === true ? {
2036
- playsInline: true
2037
- } : {}
2038
- };
2039
- };
2040
- const spreadProps = function spreadProps2(props, state) {
2041
- return {
2042
- ...props.attributes,
2043
- ...videoProps(props)
2044
- };
2045
- };
2046
2139
  const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
2047
- return /* @__PURE__ */ qwik._jsxQ("video", {
2048
- ...spreadProps(props)
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
2049
2174
  }, {
2050
2175
  style: qwik._fnSignal((p0) => ({
2051
2176
  width: "100%",
@@ -2063,7 +2188,7 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
2063
2188
  poster: qwik._fnSignal((p0) => p0.posterImage, [
2064
2189
  props
2065
2190
  ], "p0.posterImage")
2066
- }, null, 2, "j7_0");
2191
+ }, 0, "j7_0");
2067
2192
  }, "Video_component_qdcTZflYyoQ"));
2068
2193
  const componentInfo$2 = {
2069
2194
  name: "Embed",
@@ -2158,7 +2283,7 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
2158
2283
  }, null, 3, "9r_0");
2159
2284
  }, "Embed_component_Uji08ORjXbE"));
2160
2285
  const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
2161
- return /* @__PURE__ */ qwik._jsxQ("img", {
2286
+ return /* @__PURE__ */ qwik._jsxS("img", {
2162
2287
  ...props.attributes
2163
2288
  }, {
2164
2289
  style: qwik._fnSignal((p0) => ({
@@ -2173,7 +2298,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
2173
2298
  src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
2174
2299
  props
2175
2300
  ], "p0.imgSrc||p0.image")
2176
- }, null, 2, isEditing() && props.imgSrc || "default-key");
2301
+ }, 0, isEditing() && props.imgSrc || "default-key");
2177
2302
  }, "ImgComponent_component_FXvIDBSffO8"));
2178
2303
  const componentInfo$1 = {
2179
2304
  name: "Raw:Img",
@@ -2334,13 +2459,13 @@ function isPreviewing() {
2334
2459
  return Boolean(location.search.indexOf("builder.preview=") !== -1);
2335
2460
  }
2336
2461
  const components = [];
2337
- function registerComponent(component3, info) {
2462
+ function registerComponent(component, info) {
2338
2463
  components.push({
2339
- component: component3,
2464
+ component,
2340
2465
  ...info
2341
2466
  });
2342
2467
  console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.");
2343
- return component3;
2468
+ return component;
2344
2469
  }
2345
2470
  const createRegisterComponentMessage = ({ component: _, ...info }) => ({
2346
2471
  type: "builder.registerComponent",
@@ -2963,6 +3088,8 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
2963
3088
  content: props.content,
2964
3089
  data: props.data
2965
3090
  })
3091
+ }, {
3092
+ deep: true
2966
3093
  });
2967
3094
  qwik.useContextProvider(builderContext, qwik.useStore({
2968
3095
  content: state.useContent,