@builder.io/sdk-vue 1.0.27 → 1.0.29

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.
Files changed (118) hide show
  1. package/lib/browser/{block-styles-5vJtIFGc.js → block-styles-6Y1t-e1e.js} +16 -14
  2. package/lib/browser/{block-styles-LT72luTT.cjs → block-styles-Vd5V1boF.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-JrLSq3J2.js → block-wrapper-iGFVmCXG.js} +6 -6
  4. package/lib/browser/block-wrapper-nXuRNQin.cjs +1 -0
  5. package/lib/browser/blocks/accordion/accordion.types.d.ts +12 -0
  6. package/lib/browser/blocks/accordion/accordion.vue.d.ts +43 -0
  7. package/lib/browser/blocks/accordion/component-info.d.ts +2 -0
  8. package/lib/browser/blocks/accordion/helpers.d.ts +1 -0
  9. package/lib/browser/blocks/accordion/index.d.ts +1 -0
  10. package/lib/browser/blocks/button/button.vue.d.ts +3 -3
  11. package/lib/browser/blocks/columns/columns.vue.d.ts +3 -3
  12. package/lib/browser/blocks/form/form/form.vue.d.ts +3 -3
  13. package/lib/browser/blocks/form/input/input.vue.d.ts +3 -3
  14. package/lib/browser/blocks/form/select/select.vue.d.ts +3 -3
  15. package/lib/browser/blocks/img/img.vue.d.ts +3 -3
  16. package/lib/browser/blocks/section/section.vue.d.ts +3 -3
  17. package/lib/browser/blocks/symbol/symbol.vue.d.ts +3 -3
  18. package/lib/browser/blocks/tabs/tabs.vue.d.ts +4 -4
  19. package/lib/browser/blocks/video/video.vue.d.ts +3 -3
  20. package/lib/browser/{component-ref-gxDw0wuA.js → component-ref-IH6gtUDX.js} +5 -5
  21. package/lib/browser/{component-ref-iTvdhu8t.cjs → component-ref-Q3Km96HW.cjs} +1 -1
  22. package/lib/browser/components/block/animator.d.ts +0 -1
  23. package/lib/browser/components/content/content.vue.d.ts +3 -3
  24. package/lib/browser/components/content-variants/content-variants.types.d.ts +1 -1
  25. package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -3
  26. package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  27. package/lib/browser/constants/sdk-version.d.ts +1 -1
  28. package/lib/browser/functions/camel-to-kebab-case.d.ts +1 -1
  29. package/lib/browser/{get-block-properties-eTge7Psf.cjs → get-block-properties-39xKF7g8.cjs} +1 -1
  30. package/lib/browser/{get-block-properties-kzs3bKSe.js → get-block-properties-dpkFUqtj.js} +1 -1
  31. package/lib/browser/{index-sDts8rvf.js → index-UXibJs5J.js} +1241 -983
  32. package/lib/browser/index-iSsIOtGA.cjs +166 -0
  33. package/lib/browser/index.cjs +1 -1
  34. package/lib/browser/{index.js → index.mjs} +1 -1
  35. package/lib/browser/{repeated-block-VOp3bqi_.cjs → repeated-block-nLOO-rH-.cjs} +1 -1
  36. package/lib/browser/{repeated-block-Qlvgzgy_.js → repeated-block-xVXddgZl.js} +5 -5
  37. package/lib/browser/style.css +1 -1
  38. package/lib/{node/block-styles-rm11zBuW.js → edge/block-styles-5lJWw0kG.js} +16 -14
  39. package/lib/edge/{block-styles-W7NZdgo_.cjs → block-styles-MLD4jo2v.cjs} +1 -1
  40. package/lib/edge/block-wrapper-V3wVFrTd.cjs +1 -0
  41. package/lib/edge/{block-wrapper-OIDhZ8QC.js → block-wrapper-YTWwn7i-.js} +6 -6
  42. package/lib/edge/blocks/accordion/accordion.types.d.ts +12 -0
  43. package/lib/edge/blocks/accordion/accordion.vue.d.ts +43 -0
  44. package/lib/edge/blocks/accordion/component-info.d.ts +2 -0
  45. package/lib/edge/blocks/accordion/helpers.d.ts +1 -0
  46. package/lib/edge/blocks/accordion/index.d.ts +1 -0
  47. package/lib/edge/blocks/button/button.vue.d.ts +3 -3
  48. package/lib/edge/blocks/columns/columns.vue.d.ts +3 -3
  49. package/lib/edge/blocks/form/form/form.vue.d.ts +3 -3
  50. package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
  51. package/lib/edge/blocks/form/select/select.vue.d.ts +3 -3
  52. package/lib/edge/blocks/img/img.vue.d.ts +3 -3
  53. package/lib/edge/blocks/section/section.vue.d.ts +3 -3
  54. package/lib/edge/blocks/symbol/symbol.vue.d.ts +3 -3
  55. package/lib/edge/blocks/tabs/tabs.vue.d.ts +4 -4
  56. package/lib/edge/blocks/video/video.vue.d.ts +3 -3
  57. package/lib/{node/component-ref-fhwnMZz8.js → edge/component-ref-X_ND75_2.js} +5 -5
  58. package/lib/{node/component-ref-WoJnhrB7.cjs → edge/component-ref-mOBHskpM.cjs} +1 -1
  59. package/lib/edge/components/block/animator.d.ts +0 -1
  60. package/lib/edge/components/content/content.vue.d.ts +3 -3
  61. package/lib/edge/components/content-variants/content-variants.types.d.ts +1 -1
  62. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -3
  63. package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  64. package/lib/edge/constants/sdk-version.d.ts +1 -1
  65. package/lib/edge/functions/camel-to-kebab-case.d.ts +1 -1
  66. package/lib/{node/get-block-properties-NQY7lR-2.js → edge/get-block-properties-FdBubNyM.js} +1 -1
  67. package/lib/edge/{get-block-properties-VeBLUsdk.cjs → get-block-properties-gGy4EVqV.cjs} +1 -1
  68. package/lib/edge/index--ZKa4yGd.cjs +186 -0
  69. package/lib/edge/{index-QWsu5MiN.js → index-vWDVRqux.js} +1741 -1483
  70. package/lib/edge/index.cjs +1 -1
  71. package/lib/edge/{index.js → index.mjs} +1 -1
  72. package/lib/edge/{repeated-block-OubyYvC0.cjs → repeated-block-7d0xhcky.cjs} +1 -1
  73. package/lib/edge/{repeated-block-Ge8TbIKG.js → repeated-block-uz5ZklAX.js} +5 -5
  74. package/lib/edge/style.css +1 -1
  75. package/lib/node/{block-styles-Iwegahoe.cjs → block-styles-B7almu8F.cjs} +1 -1
  76. package/lib/{edge/block-styles-AYBXOYOn.js → node/block-styles-QA_bsC7X.js} +16 -14
  77. package/lib/node/{block-wrapper-srcEZrVN.js → block-wrapper-HnlnJbxq.js} +6 -6
  78. package/lib/node/block-wrapper-v29rSMEI.cjs +1 -0
  79. package/lib/node/blocks/accordion/accordion.types.d.ts +12 -0
  80. package/lib/node/blocks/accordion/accordion.vue.d.ts +43 -0
  81. package/lib/node/blocks/accordion/component-info.d.ts +2 -0
  82. package/lib/node/blocks/accordion/helpers.d.ts +1 -0
  83. package/lib/node/blocks/accordion/index.d.ts +1 -0
  84. package/lib/node/blocks/button/button.vue.d.ts +3 -3
  85. package/lib/node/blocks/columns/columns.vue.d.ts +3 -3
  86. package/lib/node/blocks/form/form/form.vue.d.ts +3 -3
  87. package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
  88. package/lib/node/blocks/form/select/select.vue.d.ts +3 -3
  89. package/lib/node/blocks/img/img.vue.d.ts +3 -3
  90. package/lib/node/blocks/section/section.vue.d.ts +3 -3
  91. package/lib/node/blocks/symbol/symbol.vue.d.ts +3 -3
  92. package/lib/node/blocks/tabs/tabs.vue.d.ts +4 -4
  93. package/lib/node/blocks/video/video.vue.d.ts +3 -3
  94. package/lib/{edge/component-ref-dNZrnHbg.cjs → node/component-ref-7bYYUVwM.cjs} +1 -1
  95. package/lib/{edge/component-ref-rBP7Enzc.js → node/component-ref-9omtaI9w.js} +5 -5
  96. package/lib/node/components/block/animator.d.ts +0 -1
  97. package/lib/node/components/content/content.vue.d.ts +3 -3
  98. package/lib/node/components/content-variants/content-variants.types.d.ts +1 -1
  99. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -3
  100. package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  101. package/lib/node/constants/sdk-version.d.ts +1 -1
  102. package/lib/node/functions/camel-to-kebab-case.d.ts +1 -1
  103. package/lib/node/{get-block-properties-VZy5JLJH.cjs → get-block-properties-VHU3cV3b.cjs} +1 -1
  104. package/lib/{edge/get-block-properties-TQklEtas.js → node/get-block-properties-ccVJMeEx.js} +1 -1
  105. package/lib/node/index-Cz4H0pDE.cjs +213 -0
  106. package/lib/node/{index-551oCh4n.js → index-hIYMMTep.js} +459 -201
  107. package/lib/node/index.cjs +1 -1
  108. package/lib/node/{index.js → index.mjs} +1 -1
  109. package/lib/node/{repeated-block-UcyfQ95X.js → repeated-block-Cwk1bqtn.js} +5 -5
  110. package/lib/node/{repeated-block-cGtcw64F.cjs → repeated-block-x42Aesm-.cjs} +1 -1
  111. package/lib/node/style.css +1 -1
  112. package/package.json +19 -19
  113. package/lib/browser/block-wrapper-a_8x6uWh.cjs +0 -1
  114. package/lib/browser/index-7ZQyrM-R.cjs +0 -166
  115. package/lib/edge/block-wrapper-rvM_UKzu.cjs +0 -1
  116. package/lib/edge/index-iGyGCnH8.cjs +0 -186
  117. package/lib/node/block-wrapper-gmX-LBXN.cjs +0 -1
  118. package/lib/node/index-cjjbqLNI.cjs +0 -213
@@ -14,7 +14,7 @@ function filterAttrs(e = {}, t, n) {
14
14
  }
15
15
  return o;
16
16
  }
17
- const _sfc_main$r = defineComponent({
17
+ const _sfc_main$s = defineComponent({
18
18
  name: "dynamic-renderer",
19
19
  props: ["TagName", "attributes", "actionAttributes"],
20
20
  data() {
@@ -26,7 +26,7 @@ const _sfc_main$r = defineComponent({
26
26
  n[o] = r;
27
27
  return n;
28
28
  };
29
- function _sfc_render$p(e, t, n, o, r, s) {
29
+ function _sfc_render$q(e, t, n, o, r, s) {
30
30
  return e.isEmptyElement(e.TagName) ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 1 }, e.attributes, toHandlers(e.actionAttributes)), null, 16)) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
31
31
  typeof e.TagName == "string" ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 0 }, e.attributes, toHandlers(e.actionAttributes)), {
32
32
  default: withCtx(() => [
@@ -41,7 +41,7 @@ function _sfc_render$p(e, t, n, o, r, s) {
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p]]), dynamicRenderer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$q]]), dynamicRenderer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
46
  default: DynamicRenderer
47
47
  }, Symbol.toStringTag, { value: "Module" })), TARGET = "vue", getClassPropName = () => {
@@ -57,7 +57,7 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sf
57
57
  case "angular":
58
58
  return "class";
59
59
  }
60
- }, _sfc_main$q = defineComponent({
60
+ }, _sfc_main$r = defineComponent({
61
61
  name: "builder-button",
62
62
  components: { DynamicRenderer },
63
63
  props: [
@@ -86,8 +86,8 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sf
86
86
  }
87
87
  }
88
88
  });
89
- function _sfc_render$o(e, t, n, o, r, s) {
90
- const i = resolveComponent("dynamic-renderer");
89
+ function _sfc_render$p(e, t, n, o, r, s) {
90
+ const i = resolveComponent("DynamicRenderer");
91
91
  return openBlock(), createBlock(i, {
92
92
  attributes: e.attrs(),
93
93
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -99,7 +99,7 @@ function _sfc_render$o(e, t, n, o, r, s) {
99
99
  _: 1
100
100
  }, 8, ["attributes", "TagName", "actionAttributes"]);
101
101
  }
102
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$o]]), key$1 = Symbol(), BuilderContext = {
102
+ const Button = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p]]), key$1 = Symbol(), BuilderContext = {
103
103
  Builder: {
104
104
  content: null,
105
105
  context: {},
@@ -212,7 +212,7 @@ const getLocation = () => {
212
212
  rootSetState: s,
213
213
  rootState: i
214
214
  }) => {
215
- const a = getFunctionArguments({
215
+ const l = getFunctionArguments({
216
216
  builder: t,
217
217
  context: n,
218
218
  event: o,
@@ -222,7 +222,7 @@ const getLocation = () => {
222
222
  rootSetState: s
223
223
  })
224
224
  });
225
- return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
225
+ return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
226
226
  };
227
227
  function flattenState({
228
228
  rootState: e,
@@ -347,26 +347,26 @@ const getIsolateContext = () => IVM_CONTEXT || setIsolateContext(), runInNode =
347
347
  rootSetState: s,
348
348
  rootState: i
349
349
  }) => {
350
- const a = getIvm(), l = fastClone({
350
+ const l = getIvm(), a = fastClone({
351
351
  ...i,
352
352
  ...r
353
353
  }), d = getFunctionArguments({
354
354
  builder: t,
355
355
  context: n,
356
356
  event: o,
357
- state: l
357
+ state: a
358
358
  }), p = getIsolateContext(), c = p.global;
359
359
  c.setSync(BUILDER_SET_STATE_NAME, function(m, b) {
360
360
  set(i, m, b), s == null || s(i);
361
361
  }), d.forEach(([m, b]) => {
362
- const S = typeof b == "object" ? new a.Reference(
362
+ const C = typeof b == "object" ? new l.Reference(
363
363
  // workaround: methods with default values for arguments is not being cloned over
364
364
  m === "builder" ? {
365
365
  ...b,
366
366
  getUserAttributes: () => b.getUserAttributes()
367
367
  } : b
368
368
  ) : null;
369
- c.setSync(getSyncValName(m), S);
369
+ c.setSync(getSyncValName(m), C);
370
370
  });
371
371
  const u = processCode({
372
372
  code: e,
@@ -416,11 +416,11 @@ function evaluate({
416
416
  rootSetState: r,
417
417
  event: s,
418
418
  isExpression: i = !0,
419
- enableCache: a
419
+ enableCache: l
420
420
  }) {
421
421
  if (e === "")
422
422
  return;
423
- const l = {
423
+ const a = {
424
424
  code: parseCode(e, {
425
425
  isExpression: i
426
426
  }),
@@ -431,15 +431,15 @@ function evaluate({
431
431
  rootState: o,
432
432
  localState: n
433
433
  };
434
- if (a) {
435
- const d = EvalCache.getCacheKey(l), p = EvalCache.getCachedValue(d);
434
+ if (l) {
435
+ const d = EvalCache.getCacheKey(a), p = EvalCache.getCachedValue(d);
436
436
  if (p)
437
437
  return p.value;
438
438
  }
439
439
  try {
440
- const d = chooseBrowserOrServerEval(l);
441
- if (a) {
442
- const p = EvalCache.getCacheKey(l);
440
+ const d = chooseBrowserOrServerEval(a);
441
+ if (l) {
442
+ const p = EvalCache.getCacheKey(a);
443
443
  EvalCache.setCachedValue(p, d);
444
444
  }
445
445
  return d;
@@ -471,16 +471,16 @@ const evaluateBindings = ({
471
471
  ...s.actions
472
472
  }
473
473
  };
474
- for (const a in e.bindings) {
475
- const l = e.bindings[a], d = evaluate({
476
- code: l,
474
+ for (const l in e.bindings) {
475
+ const a = e.bindings[l], d = evaluate({
476
+ code: a,
477
477
  localState: n,
478
478
  rootState: o,
479
479
  rootSetState: r,
480
480
  context: t,
481
481
  enableCache: !0
482
482
  });
483
- set(i, a, d);
483
+ set(i, l, d);
484
484
  }
485
485
  return i;
486
486
  };
@@ -501,16 +501,17 @@ function getProcessedBlock({
501
501
  context: t
502
502
  }) : i;
503
503
  }
504
+ const camelToKebabCase = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
504
505
  function throttle(e, t, n = {}) {
505
- let o, r, s, i = null, a = 0;
506
- const l = function() {
507
- a = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
506
+ let o, r, s, i = null, l = 0;
507
+ const a = function() {
508
+ l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
508
509
  };
509
510
  return function() {
510
511
  const d = Date.now();
511
- !a && n.leading === !1 && (a = d);
512
- const p = t - (d - a);
513
- return o = this, r = arguments, p <= 0 || p > t ? (i && (clearTimeout(i), i = null), a = d, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, p)), s;
512
+ !l && n.leading === !1 && (l = d);
513
+ const p = t - (d - l);
514
+ return o = this, r = arguments, p <= 0 || p > t ? (i && (clearTimeout(i), i = null), l = d, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, p)), s;
514
515
  };
515
516
  }
516
517
  function assign(e, ...t) {
@@ -523,7 +524,6 @@ function assign(e, ...t) {
523
524
  }
524
525
  return n;
525
526
  }
526
- const camelCaseToKebabCase = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
527
527
  function bindAnimations(e) {
528
528
  for (const t of e)
529
529
  switch (t.trigger) {
@@ -540,9 +540,9 @@ function warnElementNotPresent(e) {
540
540
  }
541
541
  function augmentAnimation(e, t) {
542
542
  const n = getAllStylesUsed(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
543
- for (const a of i)
544
- for (const l of n)
545
- l in a || (a[l] = o[l]);
543
+ for (const l of i)
544
+ for (const a of n)
545
+ a in l || (l[a] = o[a]);
546
546
  }
547
547
  function getAllStylesUsed(e) {
548
548
  const t = [];
@@ -559,7 +559,7 @@ function triggerAnimation(e) {
559
559
  }
560
560
  Array.from(t).forEach((n) => {
561
561
  augmentAnimation(e, n), n.style.transition = "none", n.style.transitionDelay = "0", assign(n.style, e.steps[0].styles), setTimeout(() => {
562
- n.style.transition = `all ${e.duration}s ${camelCaseToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), assign(n.style, e.steps[1].styles), setTimeout(() => {
562
+ n.style.transition = `all ${e.duration}s ${camelToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), assign(n.style, e.steps[1].styles), setTimeout(() => {
563
563
  n.style.transition = "", n.style.transitionDelay = "";
564
564
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
565
565
  });
@@ -575,32 +575,32 @@ function bindScrollInViewAnimation(e) {
575
575
  augmentAnimation(e, n);
576
576
  let o = !1, r = !1;
577
577
  function s() {
578
- !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
578
+ !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
579
579
  assign(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
580
580
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
581
581
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
582
- })) : e.repeat && o && !r && !a(n) && (o = !1, assign(n.style, e.steps[0].styles));
582
+ })) : e.repeat && o && !r && !l(n) && (o = !1, assign(n.style, e.steps[0].styles));
583
583
  }
584
584
  const i = throttle(s, 200, {
585
585
  leading: !1
586
586
  });
587
- function a(p) {
587
+ function l(p) {
588
588
  const c = p.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
589
589
  return c.bottom > m && c.top < u - m;
590
590
  }
591
- const l = e.steps[0].styles;
591
+ const a = e.steps[0].styles;
592
592
  function d() {
593
- assign(n.style, l);
593
+ assign(n.style, a);
594
594
  }
595
595
  d(), setTimeout(() => {
596
- n.style.transition = `all ${e.duration}s ${camelCaseToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
596
+ n.style.transition = `all ${e.duration}s ${camelToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
597
597
  }), document.addEventListener("scroll", i, {
598
598
  capture: !0,
599
599
  passive: !0
600
600
  }), s();
601
601
  });
602
602
  }
603
- const camelToKebabCase = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
603
+ const convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
604
604
  if (typeof o == "string")
605
605
  return `${camelToKebabCase(n)}: ${o};`;
606
606
  }).filter(checkIsDefined), convertStyleMapToCSS = (e) => convertStyleMapToCSSArray(e).join(`
@@ -686,45 +686,45 @@ const getComponent = ({
686
686
  if (!Array.isArray(r))
687
687
  return;
688
688
  const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
689
- return r.map((l, d) => ({
689
+ return r.map((a, d) => ({
690
690
  context: {
691
691
  ...t,
692
692
  localState: {
693
693
  ...t.localState,
694
694
  $index: d,
695
- $item: l,
696
- [i]: l,
695
+ $item: a,
696
+ [i]: a,
697
697
  [`$${i}Index`]: d
698
698
  }
699
699
  },
700
700
  block: o
701
701
  }));
702
- }, shouldPassLinkComponent = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), shouldPassRegisteredComponents = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), BlockStyles = () => import("./block-styles-rm11zBuW.js").then((e) => e.default).catch((e) => {
702
+ }, shouldPassLinkComponent = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), shouldPassRegisteredComponents = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), DynamicDiv$1 = () => Promise.resolve().then(() => dynamicDiv).then((e) => e.default).catch((e) => {
703
+ throw console.error(
704
+ "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
705
+ e
706
+ ), e;
707
+ }), BlockStyles = () => import("./block-styles-QA_bsC7X.js").then((e) => e.default).catch((e) => {
703
708
  throw console.error(
704
709
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
705
710
  e
706
711
  ), e;
707
- }), BlockWrapper = () => import("./block-wrapper-srcEZrVN.js").then((e) => e.default).catch((e) => {
712
+ }), BlockWrapper = () => import("./block-wrapper-HnlnJbxq.js").then((e) => e.default).catch((e) => {
708
713
  throw console.error(
709
714
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
710
715
  e
711
716
  ), e;
712
- }), ComponentRef = () => import("./component-ref-fhwnMZz8.js").then((e) => e.default).catch((e) => {
717
+ }), ComponentRef = () => import("./component-ref-9omtaI9w.js").then((e) => e.default).catch((e) => {
713
718
  throw console.error(
714
719
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
715
720
  e
716
721
  ), e;
717
- }), RepeatedBlock = () => import("./repeated-block-UcyfQ95X.js").then((e) => e.default).catch((e) => {
722
+ }), RepeatedBlock = () => import("./repeated-block-Cwk1bqtn.js").then((e) => e.default).catch((e) => {
718
723
  throw console.error(
719
724
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
720
725
  e
721
726
  ), e;
722
- }), DynamicDiv$1 = () => Promise.resolve().then(() => dynamicDiv).then((e) => e.default).catch((e) => {
723
- throw console.error(
724
- "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
725
- e
726
- ), e;
727
- }), _sfc_main$p = defineComponent({
727
+ }), _sfc_main$q = defineComponent({
728
728
  name: "block",
729
729
  components: {
730
730
  BlockStyles: defineAsyncComponent(BlockStyles),
@@ -808,15 +808,15 @@ const getComponent = ({
808
808
  }
809
809
  }
810
810
  });
811
- function _sfc_render$n(e, t, n, o, r, s) {
811
+ function _sfc_render$o(e, t, n, o, r, s) {
812
812
  var c;
813
- const i = resolveComponent("block-styles"), a = resolveComponent("component-ref"), l = resolveComponent("block", !0), d = resolveComponent("block-wrapper"), p = resolveComponent("repeated-block");
813
+ const i = resolveComponent("BlockStyles"), l = resolveComponent("ComponentRef"), a = resolveComponent("Block", !0), d = resolveComponent("BlockWrapper"), p = resolveComponent("RepeatedBlock");
814
814
  return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
815
815
  createVNode(i, {
816
816
  block: e.block,
817
817
  context: e.context
818
818
  }, null, 8, ["block", "context"]),
819
- (c = e.blockComponent) != null && c.noWrap ? (openBlock(), createBlock(a, {
819
+ (c = e.blockComponent) != null && c.noWrap ? (openBlock(), createBlock(l, {
820
820
  key: 1,
821
821
  componentRef: e.componentRefProps.componentRef,
822
822
  componentOptions: e.componentRefProps.componentOptions,
@@ -842,7 +842,7 @@ function _sfc_render$n(e, t, n, o, r, s) {
842
842
  linkComponent: e.linkComponent
843
843
  }, {
844
844
  default: withCtx(() => [
845
- createVNode(a, {
845
+ createVNode(l, {
846
846
  componentRef: e.componentRefProps.componentRef,
847
847
  componentOptions: e.componentRefProps.componentOptions,
848
848
  blockChildren: e.componentRefProps.blockChildren,
@@ -853,7 +853,7 @@ function _sfc_render$n(e, t, n, o, r, s) {
853
853
  includeBlockProps: e.componentRefProps.includeBlockProps,
854
854
  isInteractive: e.componentRefProps.isInteractive
855
855
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
856
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (u, f) => (openBlock(), createBlock(l, {
856
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (u, f) => (openBlock(), createBlock(a, {
857
857
  key: u.id,
858
858
  block: u,
859
859
  registeredComponents: e.registeredComponents,
@@ -866,10 +866,10 @@ function _sfc_render$n(e, t, n, o, r, s) {
866
866
  ], 64))
867
867
  ], 64)) : createCommentVNode("", !0);
868
868
  }
869
- const Block = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n]]), block = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
869
+ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$o]]), block = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
870
870
  __proto__: null,
871
871
  default: Block
872
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$o = defineComponent({
872
+ }, Symbol.toStringTag, { value: "Module" })), _sfc_main$p = defineComponent({
873
873
  name: "builder-blocks-wrapper",
874
874
  props: [
875
875
  "blocks",
@@ -914,9 +914,9 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n
914
914
  }
915
915
  }
916
916
  });
917
- function _sfc_render$m(e, t, n, o, r, s) {
917
+ function _sfc_render$n(e, t, n, o, r, s) {
918
918
  return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
919
- class: e.className + " component-178o76acnws",
919
+ class: e.className + " component-1k2igrjdg3x",
920
920
  "builder-path": e.path,
921
921
  "builder-parent-id": e.parent,
922
922
  style: e.styleProp,
@@ -930,7 +930,7 @@ function _sfc_render$m(e, t, n, o, r, s) {
930
930
  _: 3
931
931
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
932
932
  }
933
- const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m], ["__scopeId", "data-v-a5b13ef9"]]), _sfc_main$n = defineComponent({
933
+ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n], ["__scopeId", "data-v-f091a4a7"]]), _sfc_main$o = defineComponent({
934
934
  name: "builder-blocks",
935
935
  components: { BlocksWrapper, Block },
936
936
  props: [
@@ -947,15 +947,15 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_
947
947
  componentsContext: ComponentsContext.key
948
948
  }
949
949
  });
950
- function _sfc_render$l(e, t, n, o, r, s) {
951
- var l, d;
952
- const i = resolveComponent("block"), a = resolveComponent("blocks-wrapper");
953
- return openBlock(), createBlock(a, {
950
+ function _sfc_render$m(e, t, n, o, r, s) {
951
+ var a, d;
952
+ const i = resolveComponent("Block"), l = resolveComponent("BlocksWrapper");
953
+ return openBlock(), createBlock(l, {
954
954
  blocks: e.blocks,
955
955
  parent: e.parent,
956
956
  path: e.path,
957
957
  styleProp: e.styleProp,
958
- BlocksWrapper: ((l = e.context) == null ? void 0 : l.BlocksWrapper) || e.builderContext.BlocksWrapper,
958
+ BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
959
959
  BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
960
960
  }, {
961
961
  default: withCtx(() => [
@@ -970,7 +970,19 @@ function _sfc_render$l(e, t, n, o, r, s) {
970
970
  _: 1
971
971
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
972
972
  }
973
- const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]), _sfc_main$m = defineComponent({
973
+ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]), _sfc_main$n = defineComponent({
974
+ name: "dynamic-div",
975
+ props: []
976
+ });
977
+ function _sfc_render$l(e, t, n, o, r, s) {
978
+ return openBlock(), createElementBlock("div", null, [
979
+ renderSlot(e.$slots, "default")
980
+ ]);
981
+ }
982
+ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]), dynamicDiv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
983
+ __proto__: null,
984
+ default: DynamicDiv
985
+ }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = defineComponent({
974
986
  render() {
975
987
  return h("style", {
976
988
  innerHTML: this.styles,
@@ -1022,18 +1034,6 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$
1022
1034
  default: s + 1
1023
1035
  }, n;
1024
1036
  }, getColumnsClass = (e) => `builder-columns ${e}-breakpoints`, _sfc_main$l = defineComponent({
1025
- name: "dynamic-div",
1026
- props: []
1027
- });
1028
- function _sfc_render$k(e, t, n, o, r, s) {
1029
- return openBlock(), createElementBlock("div", null, [
1030
- renderSlot(e.$slots, "default")
1031
- ]);
1032
- }
1033
- const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k]]), dynamicDiv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1034
- __proto__: null,
1035
- default: DynamicDiv
1036
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$k = defineComponent({
1037
1037
  name: "builder-columns",
1038
1038
  components: {
1039
1039
  InlinedStyles: _sfc_main$m,
@@ -1166,11 +1166,11 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_ren
1166
1166
  }
1167
1167
  }
1168
1168
  });
1169
- function _sfc_render$j(e, t, n, o, r, s) {
1169
+ function _sfc_render$k(e, t, n, o, r, s) {
1170
1170
  var d;
1171
- const i = resolveComponent("inlined-styles"), a = resolveComponent("blocks"), l = resolveComponent("dynamic-renderer");
1171
+ const i = resolveComponent("InlinedStyles"), l = resolveComponent("Blocks"), a = resolveComponent("DynamicRenderer");
1172
1172
  return openBlock(), createElementBlock("div", mergeProps({
1173
- class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-t9spj7joih",
1173
+ class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-2brhoa1k8gd",
1174
1174
  style: e.columnsCssVars()
1175
1175
  }, {}), [
1176
1176
  e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
@@ -1178,14 +1178,14 @@ function _sfc_render$j(e, t, n, o, r, s) {
1178
1178
  id: "builderio-columns",
1179
1179
  styles: e.columnsStyles()
1180
1180
  }, null, 8, ["styles"])) : createCommentVNode("", !0),
1181
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (p, c) => (openBlock(), createBlock(l, {
1181
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (p, c) => (openBlock(), createBlock(a, {
1182
1182
  key: c,
1183
1183
  TagName: e.getTagName(p),
1184
1184
  actionAttributes: {},
1185
1185
  attributes: e.getAttributes(p, c)
1186
1186
  }, {
1187
1187
  default: withCtx(() => [
1188
- createVNode(a, {
1188
+ createVNode(l, {
1189
1189
  path: `component.options.columns.${c}.blocks`,
1190
1190
  parent: e.builderBlock.id,
1191
1191
  styleProp: {
@@ -1201,16 +1201,16 @@ function _sfc_render$j(e, t, n, o, r, s) {
1201
1201
  }, 1032, ["TagName", "attributes"]))), 128))
1202
1202
  ], 16);
1203
1203
  }
1204
- const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-4878b55f"]]), _sfc_main$j = defineComponent({
1204
+ const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k], ["__scopeId", "data-v-27a4dde0"]]), _sfc_main$k = defineComponent({
1205
1205
  name: "builder-fragment-component",
1206
1206
  props: []
1207
1207
  });
1208
- function _sfc_render$i(e, t, n, o, r, s) {
1208
+ function _sfc_render$j(e, t, n, o, r, s) {
1209
1209
  return openBlock(), createElementBlock("span", null, [
1210
1210
  renderSlot(e.$slots, "default")
1211
1211
  ]);
1212
1212
  }
1213
- const Fragment = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i]]);
1213
+ const Fragment = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j]]);
1214
1214
  function removeProtocol(e) {
1215
1215
  return e.replace(/http(s)?:/, "");
1216
1216
  }
@@ -1241,7 +1241,7 @@ function getSrcSet(e) {
1241
1241
  }
1242
1242
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [getShopifyImageUrl(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1243
1243
  }
1244
- const _sfc_main$i = defineComponent({
1244
+ const _sfc_main$j = defineComponent({
1245
1245
  name: "builder-image",
1246
1246
  props: [
1247
1247
  "image",
@@ -1287,19 +1287,19 @@ const _sfc_main$i = defineComponent({
1287
1287
  return this.aspectRatio ? e : void 0;
1288
1288
  }
1289
1289
  }
1290
- }), _hoisted_1$9 = ["srcset"], _hoisted_2$4 = ["alt", "role", "src", "srcset", "sizes"], _hoisted_3$1 = {
1290
+ }), _hoisted_1$a = ["srcset"], _hoisted_2$4 = ["alt", "role", "src", "srcset", "sizes"], _hoisted_3$1 = {
1291
1291
  key: 2,
1292
- class: "div-20351ewpue7-2"
1292
+ class: "div-1pl23ac79ld-2"
1293
1293
  };
1294
- function _sfc_render$h(e, t, n, o, r, s) {
1295
- var i, a, l, d, p, c;
1294
+ function _sfc_render$i(e, t, n, o, r, s) {
1295
+ var i, l, a, d, p, c;
1296
1296
  return openBlock(), createElementBlock(Fragment$1, null, [
1297
1297
  createElementVNode("picture", null, [
1298
1298
  e.webpSrcSet ? (openBlock(), createElementBlock("source", {
1299
1299
  key: 0,
1300
1300
  type: "image/webp",
1301
1301
  srcset: e.webpSrcSet
1302
- }, null, 8, _hoisted_1$9)) : createCommentVNode("", !0),
1302
+ }, null, 8, _hoisted_1$a)) : createCommentVNode("", !0),
1303
1303
  createElementVNode("img", {
1304
1304
  loading: "lazy",
1305
1305
  alt: e.altText,
@@ -1310,34 +1310,34 @@ function _sfc_render$h(e, t, n, o, r, s) {
1310
1310
  ...e.aspectRatioCss
1311
1311
  }),
1312
1312
  class: normalizeClass(
1313
- "builder-image" + (e.className ? " " + e.className : "") + " img-20351ewpue7"
1313
+ "builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
1314
1314
  ),
1315
1315
  src: e.image,
1316
1316
  srcset: e.srcSetToUse,
1317
1317
  sizes: e.sizes
1318
1318
  }, null, 14, _hoisted_2$4)
1319
1319
  ]),
1320
- e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1320
+ e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1321
1321
  key: 0,
1322
- class: "builder-image-sizer div-20351ewpue7",
1322
+ class: "builder-image-sizer div-1pl23ac79ld",
1323
1323
  style: normalizeStyle({
1324
1324
  paddingTop: e.aspectRatio * 100 + "%"
1325
1325
  })
1326
1326
  }, null, 4)) : createCommentVNode("", !0),
1327
- (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? renderSlot(e.$slots, "default", { key: 1 }, void 0, !0) : createCommentVNode("", !0),
1327
+ (d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? renderSlot(e.$slots, "default", { key: 1 }, void 0, !0) : createCommentVNode("", !0),
1328
1328
  !e.fitContent && ((c = (p = e.builderBlock) == null ? void 0 : p.children) != null && c.length) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1329
1329
  renderSlot(e.$slots, "default", {}, void 0, !0)
1330
1330
  ])) : createCommentVNode("", !0)
1331
1331
  ], 64);
1332
1332
  }
1333
- const Image = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h], ["__scopeId", "data-v-5dee860d"]]), _sfc_main$h = defineComponent({
1333
+ const Image = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-6b703704"]]), _sfc_main$i = defineComponent({
1334
1334
  name: "builder-section-component",
1335
1335
  props: ["attributes", "maxWidth"],
1336
1336
  data() {
1337
1337
  return { filterAttrs };
1338
1338
  }
1339
1339
  });
1340
- function _sfc_render$g(e, t, n, o, r, s) {
1340
+ function _sfc_render$h(e, t, n, o, r, s) {
1341
1341
  return openBlock(), createElementBlock("section", mergeProps({
1342
1342
  style: {
1343
1343
  width: "100%",
@@ -1355,7 +1355,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
1355
1355
  renderSlot(e.$slots, "default")
1356
1356
  ], 16);
1357
1357
  }
1358
- const Section = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]), getTopLevelDomain = (e) => {
1358
+ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h]]), getTopLevelDomain = (e) => {
1359
1359
  if (e === "localhost" || e === "127.0.0.1")
1360
1360
  return e;
1361
1361
  const t = e.split(".");
@@ -1490,7 +1490,264 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render
1490
1490
  ...e,
1491
1491
  ...r
1492
1492
  };
1493
- }, getDefaultCanTrack = (e) => checkIsDefined(e) ? e : !0, componentInfo$g = {
1493
+ }, getDefaultCanTrack = (e) => checkIsDefined(e) ? e : !0, defaultTitle = {
1494
+ "@type": "@builder.io/sdk:Element",
1495
+ layerName: "Accordion item title",
1496
+ responsiveStyles: {
1497
+ large: {
1498
+ marginTop: "10px",
1499
+ position: "relative",
1500
+ display: "flex",
1501
+ alignItems: "stretch",
1502
+ flexDirection: "column",
1503
+ paddingBottom: "10px"
1504
+ }
1505
+ },
1506
+ children: [{
1507
+ "@type": "@builder.io/sdk:Element",
1508
+ responsiveStyles: {
1509
+ large: {
1510
+ textAlign: "left",
1511
+ display: "flex",
1512
+ flexDirection: "column"
1513
+ }
1514
+ },
1515
+ component: {
1516
+ name: "Text",
1517
+ options: {
1518
+ text: "I am an accordion title. Click me!"
1519
+ }
1520
+ }
1521
+ }]
1522
+ }, defaultDetail = {
1523
+ "@type": "@builder.io/sdk:Element",
1524
+ layerName: "Accordion item detail",
1525
+ responsiveStyles: {
1526
+ large: {
1527
+ position: "relative",
1528
+ display: "flex",
1529
+ alignItems: "stretch",
1530
+ flexDirection: "column",
1531
+ marginTop: "10px",
1532
+ paddingBottom: "10px"
1533
+ }
1534
+ },
1535
+ children: [{
1536
+ "@type": "@builder.io/sdk:Element",
1537
+ responsiveStyles: {
1538
+ large: {
1539
+ paddingTop: "50px",
1540
+ textAlign: "left",
1541
+ display: "flex",
1542
+ flexDirection: "column",
1543
+ paddingBottom: "50px"
1544
+ }
1545
+ },
1546
+ component: {
1547
+ name: "Text",
1548
+ options: {
1549
+ text: "I am an accordion detail, hello!"
1550
+ }
1551
+ }
1552
+ }]
1553
+ }, componentInfo$h = {
1554
+ name: "Builder:Accordion",
1555
+ canHaveChildren: !0,
1556
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
1557
+ defaultStyles: {
1558
+ display: "flex",
1559
+ flexDirection: "column",
1560
+ alignItems: "stretch"
1561
+ },
1562
+ inputs: [{
1563
+ name: "items",
1564
+ type: "list",
1565
+ broadcast: !0,
1566
+ subFields: [{
1567
+ name: "title",
1568
+ type: "uiBlocks",
1569
+ hideFromUI: !0,
1570
+ defaultValue: [defaultTitle]
1571
+ }, {
1572
+ name: "detail",
1573
+ type: "uiBlocks",
1574
+ hideFromUI: !0,
1575
+ defaultValue: [defaultDetail]
1576
+ }],
1577
+ defaultValue: [{
1578
+ title: [defaultTitle],
1579
+ detail: [defaultDetail]
1580
+ }, {
1581
+ title: [defaultTitle],
1582
+ detail: [defaultDetail]
1583
+ }],
1584
+ showIf: (e) => !e.get("useChildrenForItems")
1585
+ }, {
1586
+ name: "oneAtATime",
1587
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
1588
+ type: "boolean",
1589
+ defaultValue: !1
1590
+ }, {
1591
+ name: "grid",
1592
+ helperText: "Display as a grid",
1593
+ type: "boolean",
1594
+ defaultValue: !1
1595
+ }, {
1596
+ name: "gridRowWidth",
1597
+ helperText: "Display as a grid",
1598
+ type: "string",
1599
+ showIf: (e) => e.get("grid"),
1600
+ defaultValue: "25%"
1601
+ }, {
1602
+ name: "useChildrenForItems",
1603
+ type: "boolean",
1604
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
1605
+ advanced: !0,
1606
+ defaultValue: !1,
1607
+ onChange: (e) => {
1608
+ e.get("useChildrenForItems") === !0 && e.set("items", []);
1609
+ }
1610
+ }]
1611
+ }, convertOrderNumberToString = (e) => e.toString(), _sfc_main$h = defineComponent({
1612
+ name: "builder-accordion",
1613
+ components: { Blocks },
1614
+ props: [
1615
+ "grid",
1616
+ "oneAtATime",
1617
+ "items",
1618
+ "gridRowWidth",
1619
+ "builderBlock",
1620
+ "builderContext",
1621
+ "builderComponents",
1622
+ "builderLinkComponent"
1623
+ ],
1624
+ data() {
1625
+ return { open: [], convertOrderNumberToString };
1626
+ },
1627
+ computed: {
1628
+ onlyOneAtATime() {
1629
+ return !!(this.grid || this.oneAtATime);
1630
+ },
1631
+ accordionStyles() {
1632
+ return {
1633
+ display: "flex",
1634
+ alignItems: "stretch",
1635
+ flexDirection: "column",
1636
+ ...this.grid && {
1637
+ flexDirection: "row",
1638
+ alignItems: "flex-start",
1639
+ flexWrap: "wrap"
1640
+ }
1641
+ };
1642
+ },
1643
+ accordionTitleStyles() {
1644
+ const t = {
1645
+ ...{
1646
+ display: "flex",
1647
+ flexDirection: "column"
1648
+ },
1649
+ alignItems: "stretch",
1650
+ cursor: "pointer"
1651
+ };
1652
+ return Object.fromEntries(
1653
+ Object.entries(t).filter(([n, o]) => o !== void 0)
1654
+ );
1655
+ },
1656
+ openGridItemOrder() {
1657
+ let e = null;
1658
+ if (this.grid && this.open.length && document) {
1659
+ const n = this.open[0];
1660
+ let r = document.querySelector(
1661
+ `.builder-accordion-title[data-index="${n}"]`
1662
+ );
1663
+ if (e = n, r) {
1664
+ let s = r.getBoundingClientRect();
1665
+ for (; r = r && r.nextElementSibling; )
1666
+ if (r) {
1667
+ if (r.classList.contains("builder-accordion-detail"))
1668
+ continue;
1669
+ const i = r.getBoundingClientRect();
1670
+ if (i.left > s.left) {
1671
+ const l = parseInt(
1672
+ r.getAttribute("data-index") || "",
1673
+ 10
1674
+ );
1675
+ isNaN(l) || (s = i, e = l);
1676
+ } else
1677
+ break;
1678
+ }
1679
+ }
1680
+ }
1681
+ return typeof e == "number" && (e = e + 1), e;
1682
+ },
1683
+ accordionDetailStyles() {
1684
+ const e = {
1685
+ order: typeof this.openGridItemOrder == "number" ? this.openGridItemOrder : void 0,
1686
+ ...this.grid && {
1687
+ width: "100%"
1688
+ }
1689
+ };
1690
+ return Object.fromEntries(
1691
+ Object.entries(e).filter(([t, n]) => n !== void 0)
1692
+ );
1693
+ }
1694
+ },
1695
+ methods: {
1696
+ getAccordionTitleClassName(e) {
1697
+ return `builder-accordion-title builder-accordion-title-${this.open.includes(e) ? "open" : "closed"}`;
1698
+ },
1699
+ getAccordionDetailClassName(e) {
1700
+ return `builder-accordion-detail builder-accordion-detail-${this.open.includes(e) ? "open" : "closed"}`;
1701
+ },
1702
+ onClick(e) {
1703
+ this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
1704
+ }
1705
+ }
1706
+ }), _hoisted_1$9 = ["data-index", "onClick"];
1707
+ function _sfc_render$g(e, t, n, o, r, s) {
1708
+ const i = resolveComponent("Blocks");
1709
+ return openBlock(), createElementBlock("div", {
1710
+ class: "builder-accordion",
1711
+ style: normalizeStyle(e.accordionStyles)
1712
+ }, [
1713
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.items, (l, a) => (openBlock(), createElementBlock(Fragment$1, { key: a }, [
1714
+ createElementVNode("div", {
1715
+ class: normalizeClass(e.getAccordionTitleClassName(a)),
1716
+ style: normalizeStyle({
1717
+ ...e.accordionTitleStyles,
1718
+ width: e.grid ? e.gridRowWidth : void 0,
1719
+ order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
1720
+ }),
1721
+ "data-index": a,
1722
+ onClick: (d) => e.onClick(a)
1723
+ }, [
1724
+ createVNode(i, {
1725
+ blocks: l.title,
1726
+ path: `items.${a}.title`,
1727
+ parent: e.builderBlock.id,
1728
+ context: e.builderContext,
1729
+ registeredComponents: e.builderComponents,
1730
+ linkComponent: e.builderLinkComponent
1731
+ }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
1732
+ ], 14, _hoisted_1$9),
1733
+ e.open.includes(a) ? (openBlock(), createElementBlock("div", {
1734
+ key: 0,
1735
+ class: normalizeClass(e.getAccordionDetailClassName(a)),
1736
+ style: normalizeStyle(e.accordionDetailStyles)
1737
+ }, [
1738
+ createVNode(i, {
1739
+ blocks: l.detail,
1740
+ path: `items.${a}.detail`,
1741
+ parent: e.builderBlock.id,
1742
+ context: e.builderContext,
1743
+ registeredComponents: e.builderComponents,
1744
+ linkComponent: e.builderLinkComponent
1745
+ }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
1746
+ ], 6)) : createCommentVNode("", !0)
1747
+ ], 64))), 128))
1748
+ ], 4);
1749
+ }
1750
+ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]), componentInfo$g = {
1494
1751
  name: "Core:Button",
1495
1752
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1496
1753
  defaultStyles: {
@@ -1702,7 +1959,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render
1702
1959
  });
1703
1960
  }
1704
1961
  const n = e.get("columns");
1705
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1962
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
1706
1963
  }
1707
1964
  }, {
1708
1965
  name: "space",
@@ -1750,17 +2007,17 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render
1750
2007
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1751
2008
  onChange: (e) => {
1752
2009
  e.delete("srcset"), e.delete("noWebp");
1753
- function n(i, a = 6e4) {
1754
- return new Promise((l, d) => {
2010
+ function n(i, l = 6e4) {
2011
+ return new Promise((a, d) => {
1755
2012
  const p = document.createElement("img");
1756
2013
  let c = !1;
1757
2014
  p.onload = () => {
1758
- c = !0, l(p);
2015
+ c = !0, a(p);
1759
2016
  }, p.addEventListener("error", (u) => {
1760
2017
  console.warn("Image load failed", u.error), d(u.error);
1761
2018
  }), p.src = i, setTimeout(() => {
1762
2019
  c || d(new Error("Image load timed out"));
1763
- }, a);
2020
+ }, l);
1764
2021
  });
1765
2022
  }
1766
2023
  function o(i) {
@@ -1771,8 +2028,8 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render
1771
2028
  i.type.includes("svg") && e.set("noWebp", !0);
1772
2029
  }), r && (!s || s === 0.7041))
1773
2030
  return n(r).then((i) => {
1774
- const a = e.get("aspectRatio");
1775
- e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
2031
+ const l = e.get("aspectRatio");
2032
+ e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1776
2033
  });
1777
2034
  }
1778
2035
  }, {
@@ -1888,18 +2145,18 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render
1888
2145
  props: ["builderContext", "name"]
1889
2146
  });
1890
2147
  function _sfc_render$f(e, t, n, o, r, s) {
1891
- var a, l, d;
1892
- const i = resolveComponent("blocks");
2148
+ var l, a, d;
2149
+ const i = resolveComponent("Blocks");
1893
2150
  return openBlock(), createElementBlock("div", mergeProps(
1894
2151
  { style: {
1895
2152
  pointerEvents: "auto"
1896
2153
  } },
1897
- !((a = e.builderContext.context) != null && a.symbolId) && {
2154
+ !((l = e.builderContext.context) != null && l.symbolId) && {
1898
2155
  "builder-slot": e.name
1899
2156
  }
1900
2157
  ), [
1901
2158
  createVNode(i, {
1902
- parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
2159
+ parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
1903
2160
  path: `symbol.data.${e.name}`,
1904
2161
  context: e.builderContext,
1905
2162
  blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
@@ -2080,9 +2337,9 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
2080
2337
  props: [
2081
2338
  "defaultActiveTab",
2082
2339
  "tabs",
2083
- "activeTabStyle",
2084
- "tabHeaderLayout",
2085
2340
  "collapsible",
2341
+ "tabHeaderLayout",
2342
+ "activeTabStyle",
2086
2343
  "builderBlock",
2087
2344
  "builderContext",
2088
2345
  "builderComponents",
@@ -2095,13 +2352,13 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
2095
2352
  activeTabContent(e) {
2096
2353
  return this.tabs && this.tabs[e].content;
2097
2354
  },
2098
- getActiveTabStyle(e) {
2099
- return this.activeTab === e ? this.activeTabStyle : {};
2355
+ onClick(e) {
2356
+ e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2100
2357
  }
2101
2358
  }
2102
2359
  }), _hoisted_1$8 = ["onClick"], _hoisted_2$3 = { key: 0 };
2103
2360
  function _sfc_render$e(e, t, n, o, r, s) {
2104
- const i = resolveComponent("blocks");
2361
+ const i = resolveComponent("Blocks");
2105
2362
  return openBlock(), createElementBlock("div", null, [
2106
2363
  createElementVNode("div", {
2107
2364
  class: "builder-tabs-wrap",
@@ -2112,18 +2369,18 @@ function _sfc_render$e(e, t, n, o, r, s) {
2112
2369
  overflow: "auto"
2113
2370
  })
2114
2371
  }, [
2115
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.tabs, (a, l) => (openBlock(), createElementBlock("span", {
2116
- key: l,
2117
- class: normalizeClass(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
2118
- style: normalizeStyle(e.getActiveTabStyle(l)),
2119
- onClick: (d) => {
2120
- l === e.activeTab && e.collapsible ? e.activeTab = -1 : e.activeTab = l;
2121
- }
2372
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.tabs, (l, a) => (openBlock(), createElementBlock("span", {
2373
+ key: a,
2374
+ class: normalizeClass(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2375
+ style: normalizeStyle({
2376
+ ...e.activeTab === a ? e.activeTabStyle : {}
2377
+ }),
2378
+ onClick: (d) => e.onClick(a)
2122
2379
  }, [
2123
2380
  createVNode(i, {
2124
2381
  parent: e.builderBlock.id,
2125
- path: `component.options.tabs.${l}.label`,
2126
- blocks: a.label,
2382
+ path: `component.options.tabs.${a}.label`,
2383
+ blocks: l.label,
2127
2384
  context: e.builderContext,
2128
2385
  registeredComponents: e.builderComponents,
2129
2386
  linkComponent: e.builderLinkComponent
@@ -2607,11 +2864,9 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
2607
2864
  return;
2608
2865
  }
2609
2866
  e.preventDefault();
2610
- const o = e.currentTarget, r = this.customHeaders || {};
2867
+ const o = e.currentTarget || e.target, r = this.customHeaders || {};
2611
2868
  let s;
2612
- const i = new FormData(o), a = Array.from(
2613
- e.currentTarget.querySelectorAll("input,select,textarea")
2614
- ).filter((c) => !!c.name).map((c) => {
2869
+ const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
2615
2870
  let u;
2616
2871
  const f = c.name;
2617
2872
  if (c instanceof HTMLInputElement)
@@ -2635,18 +2890,18 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
2635
2890
  value: u
2636
2891
  };
2637
2892
  });
2638
- let l = this.contentType;
2639
- if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
2640
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
2641
- }), l !== "application/json")
2893
+ let a = this.contentType;
2894
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
2895
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
2896
+ }), a !== "application/json")
2642
2897
  s = i;
2643
2898
  else {
2644
2899
  const c = {};
2645
- Array.from(a).forEach(({ value: u, key: f }) => {
2900
+ Array.from(l).forEach(({ value: u, key: f }) => {
2646
2901
  set(c, f, u);
2647
2902
  }), s = JSON.stringify(c);
2648
2903
  }
2649
- l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
2904
+ a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
2650
2905
  const d = new CustomEvent("presubmit", {
2651
2906
  detail: {
2652
2907
  body: s
@@ -2713,11 +2968,11 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
2713
2968
  }
2714
2969
  }), _hoisted_1$4 = ["validate", "action", "method", "name"], _hoisted_2$2 = {
2715
2970
  key: 3,
2716
- class: "builder-form-error-text pre-3i4ezorcfhi"
2971
+ class: "builder-form-error-text pre-3q96myty4lk"
2717
2972
  };
2718
2973
  function _sfc_render$a(e, t, n, o, r, s) {
2719
- var l;
2720
- const i = resolveComponent("block"), a = resolveComponent("blocks");
2974
+ var a;
2975
+ const i = resolveComponent("Block"), l = resolveComponent("Blocks");
2721
2976
  return openBlock(), createElementBlock("form", mergeProps({
2722
2977
  validate: e.validate,
2723
2978
  ref: "formRef",
@@ -2725,28 +2980,28 @@ function _sfc_render$a(e, t, n, o, r, s) {
2725
2980
  method: e.method,
2726
2981
  name: e.name,
2727
2982
  onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
2728
- }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2729
- e.builderBlock && e.builderBlock.children ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList((l = e.builderBlock) == null ? void 0 : l.children, (d, p) => (openBlock(), createBlock(i, {
2983
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2984
+ e.builderBlock && e.builderBlock.children ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList((a = e.builderBlock) == null ? void 0 : a.children, (d, p) => (openBlock(), createBlock(i, {
2730
2985
  key: `form-block-${e.idx}`,
2731
2986
  block: d,
2732
2987
  context: e.builderContext,
2733
2988
  registeredComponents: e.builderComponents,
2734
2989
  linkComponent: e.builderLinkComponent
2735
2990
  }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : createCommentVNode("", !0),
2736
- e.submissionState() === "error" ? (openBlock(), createBlock(a, {
2991
+ e.submissionState() === "error" ? (openBlock(), createBlock(l, {
2737
2992
  key: 1,
2738
2993
  path: "errorMessage",
2739
2994
  blocks: e.errorMessage,
2740
2995
  context: e.builderContext
2741
2996
  }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0),
2742
- e.submissionState() === "sending" ? (openBlock(), createBlock(a, {
2997
+ e.submissionState() === "sending" ? (openBlock(), createBlock(l, {
2743
2998
  key: 2,
2744
2999
  path: "sendingMessage",
2745
3000
  blocks: e.sendingMessage,
2746
3001
  context: e.builderContext
2747
3002
  }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0),
2748
3003
  e.submissionState() === "error" && e.responseData ? (openBlock(), createElementBlock("pre", _hoisted_2$2, toDisplayString(JSON.stringify(e.responseData, null, 2)), 1)) : createCommentVNode("", !0),
2749
- e.submissionState() === "success" ? (openBlock(), createBlock(a, {
3004
+ e.submissionState() === "success" ? (openBlock(), createBlock(l, {
2750
3005
  key: 4,
2751
3006
  path: "successMessage",
2752
3007
  blocks: e.successMessage,
@@ -2754,7 +3009,7 @@ function _sfc_render$a(e, t, n, o, r, s) {
2754
3009
  }, null, 8, ["blocks", "context"])) : createCommentVNode("", !0)
2755
3010
  ], 16, _hoisted_1$4);
2756
3011
  }
2757
- const Form = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-1573388b"]]), componentInfo$4 = {
3012
+ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-6e18f21b"]]), componentInfo$4 = {
2758
3013
  name: "Form:Input",
2759
3014
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2760
3015
  inputs: [
@@ -2887,8 +3142,8 @@ function _sfc_render$8(e, t, n, o, r, s) {
2887
3142
  defaultValue: e.defaultValue,
2888
3143
  name: e.name
2889
3144
  }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2890
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.options, (i, a) => (openBlock(), createElementBlock("option", {
2891
- key: `${i.name}-${a}`,
3145
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.options, (i, l) => (openBlock(), createElementBlock("option", {
3146
+ key: `${i.name}-${l}`,
2892
3147
  value: i.value
2893
3148
  }, toDisplayString(i.name || i.value), 9, _hoisted_2$1))), 128))
2894
3149
  ], 16, _hoisted_1$2);
@@ -3117,7 +3372,7 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
3117
3372
  }
3118
3373
  };
3119
3374
  function _sfc_render$5(e, t, n, o, r, s) {
3120
- var i, a, l, d, p, c, u;
3375
+ var i, l, a, d, p, c, u;
3121
3376
  return openBlock(), createElementBlock("div", _hoisted_1, [
3122
3377
  createElementVNode("video", mergeProps({
3123
3378
  class: "builder-video",
@@ -3145,7 +3400,7 @@ function _sfc_render$5(e, t, n, o, r, s) {
3145
3400
  src: e.video
3146
3401
  }, null, 8, _hoisted_3))
3147
3402
  ], 16, _hoisted_2),
3148
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (openBlock(), createElementBlock("div", {
3403
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (openBlock(), createElementBlock("div", {
3149
3404
  key: 0,
3150
3405
  style: normalizeStyle({
3151
3406
  width: "100%",
@@ -3213,6 +3468,9 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
3213
3468
  }, {
3214
3469
  component: Tabs,
3215
3470
  ...componentInfo$9
3471
+ }, {
3472
+ component: Accordion,
3473
+ ...componentInfo$h
3216
3474
  }, ...getExtraComponents()], createRegisterComponentMessage = (e) => ({
3217
3475
  type: "builder.registerComponent",
3218
3476
  data: serializeComponentInfo(e)
@@ -3399,8 +3657,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
3399
3657
  model: r,
3400
3658
  apiKey: s,
3401
3659
  enrich: i,
3402
- locale: a,
3403
- apiVersion: l = DEFAULT_API_VERSION,
3660
+ locale: l,
3661
+ apiVersion: a = DEFAULT_API_VERSION,
3404
3662
  fields: d,
3405
3663
  omit: p,
3406
3664
  offset: c,
@@ -3411,28 +3669,28 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
3411
3669
  } = e;
3412
3670
  if (!s)
3413
3671
  throw new Error("Missing API key");
3414
- if (!["v3"].includes(l))
3415
- throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
3416
- const S = t !== 1, g = new URL(`https://cdn.builder.io/api/${l}/content/${r}`);
3417
- if (g.searchParams.set("apiKey", s), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(S)), g.searchParams.set("includeRefs", String(!0)), a && g.searchParams.set("locale", a), i && g.searchParams.set("enrich", String(i)), g.searchParams.set("omit", p || "meta.componentsUsed"), d && g.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && g.searchParams.set("offset", String(Math.floor(c))), typeof b == "boolean" && g.searchParams.set("includeUnpublished", String(b)), u && isPositiveNumber(u) && g.searchParams.set("cacheSeconds", String(u)), f && isPositiveNumber(f) && g.searchParams.set("staleCacheSeconds", String(f)), m) {
3672
+ if (!["v3"].includes(a))
3673
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
3674
+ const C = t !== 1, g = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
3675
+ if (g.searchParams.set("apiKey", s), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(C)), g.searchParams.set("includeRefs", String(!0)), l && g.searchParams.set("locale", l), i && g.searchParams.set("enrich", String(i)), g.searchParams.set("omit", p || "meta.componentsUsed"), d && g.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && g.searchParams.set("offset", String(Math.floor(c))), typeof b == "boolean" && g.searchParams.set("includeUnpublished", String(b)), u && isPositiveNumber(u) && g.searchParams.set("cacheSeconds", String(u)), f && isPositiveNumber(f) && g.searchParams.set("staleCacheSeconds", String(f)), m) {
3418
3676
  const k = flatten({
3419
3677
  sort: m
3420
3678
  });
3421
- for (const C in k)
3422
- g.searchParams.set(C, JSON.stringify(k[C]));
3679
+ for (const S in k)
3680
+ g.searchParams.set(S, JSON.stringify(k[S]));
3423
3681
  }
3424
- const I = {
3682
+ const T = {
3425
3683
  ...getBuilderSearchParamsFromWindow(),
3426
3684
  ...normalizeSearchParams(e.options || {})
3427
- }, T = flatten(I);
3428
- for (const k in T)
3429
- g.searchParams.set(k, String(T[k]));
3685
+ }, I = flatten(T);
3686
+ for (const k in I)
3687
+ g.searchParams.set(k, String(I[k]));
3430
3688
  if (n && g.searchParams.set("userAttributes", JSON.stringify(n)), o) {
3431
3689
  const k = flattenMongoQuery({
3432
3690
  query: o
3433
3691
  });
3434
- for (const C in k)
3435
- g.searchParams.set(C, JSON.stringify(k[C]));
3692
+ for (const S in k)
3693
+ g.searchParams.set(S, JSON.stringify(k[S]));
3436
3694
  }
3437
3695
  return g;
3438
3696
  }, checkContentHasResults = (e) => "results" in e;
@@ -3668,7 +3926,7 @@ function isFromTrustedHost(e, t) {
3668
3926
  const n = new URL(t.origin), o = n.hostname;
3669
3927
  return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3670
3928
  }
3671
- const SDK_VERSION = "1.0.27", registry = {};
3929
+ const SDK_VERSION = "1.0.29", registry = {};
3672
3930
  function register(e, t) {
3673
3931
  let n = registry[e];
3674
3932
  if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
@@ -3738,10 +3996,10 @@ const setupBrowserForEditing = (e = {}) => {
3738
3996
  if (r != null && r.type)
3739
3997
  switch (r.type) {
3740
3998
  case "builder.evaluate": {
3741
- const a = r.data.text, l = r.data.arguments || [], d = r.data.id, p = new Function(a);
3999
+ const l = r.data.text, a = r.data.arguments || [], d = r.data.id, p = new Function(l);
3742
4000
  let c, u = null;
3743
4001
  try {
3744
- c = p.apply(null, l);
4002
+ c = p.apply(null, a);
3745
4003
  } catch (f) {
3746
4004
  u = f;
3747
4005
  }
@@ -3792,8 +4050,8 @@ const setupBrowserForEditing = (e = {}) => {
3792
4050
  break;
3793
4051
  }
3794
4052
  case "builder.contentUpdate": {
3795
- const s = r.data, i = s.key || s.alias || s.entry || s.modelName, a = s.data;
3796
- i === e && n.contentUpdate(a);
4053
+ const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
4054
+ i === e && n.contentUpdate(l);
3797
4055
  break;
3798
4056
  }
3799
4057
  }
@@ -3831,11 +4089,11 @@ font-weight: 400;
3831
4089
  for (const i in e.files) {
3832
4090
  if (!(String(Number(i)) === i))
3833
4091
  continue;
3834
- const l = e.files[i];
3835
- l && l !== o && (r += `
4092
+ const a = e.files[i];
4093
+ a && a !== o && (r += `
3836
4094
  @font-face {
3837
4095
  font-family: "${t}";
3838
- src: url('${l}') format('woff2');
4096
+ src: url('${a}') format('woff2');
3839
4097
  font-display: fallback;
3840
4098
  font-weight: ${i};
3841
4099
  }
@@ -3908,12 +4166,12 @@ font-weight: ${i};
3908
4166
  if (isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3909
4167
  new CustomEvent("initeditingbldr")
3910
4168
  ), this.builderContextSignal.content && getDefaultCanTrack(this.canTrack)) {
3911
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
4169
+ const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
3912
4170
  _track({
3913
4171
  type: "impression",
3914
4172
  canTrack: !0,
3915
4173
  contentId: i,
3916
- apiKey: a,
4174
+ apiKey: l,
3917
4175
  variationId: s !== i ? s : void 0
3918
4176
  });
3919
4177
  }
@@ -3923,7 +4181,7 @@ font-weight: ${i};
3923
4181
  }
3924
4182
  })(), (() => {
3925
4183
  this.apiKey || logger.error(
3926
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4184
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3927
4185
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
3928
4186
  })();
3929
4187
  },
@@ -4102,9 +4360,9 @@ font-weight: ${i};
4102
4360
  this.httpReqsPending[o] = !0;
4103
4361
  const s = r.replace(
4104
4362
  /{{([^}]+)}}/g,
4105
- (i, a) => String(
4363
+ (i, l) => String(
4106
4364
  evaluate({
4107
- code: a,
4365
+ code: l,
4108
4366
  context: this.context || {},
4109
4367
  localState: void 0,
4110
4368
  rootState: this.builderContextSignal.rootState,
@@ -4163,7 +4421,7 @@ font-weight: ${i};
4163
4421
  },
4164
4422
  elementRef_onInitpreviewingbldr(e) {
4165
4423
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4166
- `builder.preview.${n}`
4424
+ `builder.overrides.${n}`
4167
4425
  ), r = t.get("apiKey") || t.get("builder.space");
4168
4426
  n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && fetchOneEntry({
4169
4427
  model: this.model,
@@ -4176,14 +4434,14 @@ font-weight: ${i};
4176
4434
  }
4177
4435
  });
4178
4436
  function _sfc_render$4(e, t, n, o, r, s) {
4179
- var i, a, l;
4437
+ var i, l, a;
4180
4438
  return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
4181
4439
  key: 0,
4182
4440
  ref: "elementRef",
4183
4441
  onClick: (d) => e.onClick(d),
4184
4442
  "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
4185
4443
  "builder-model": e.model,
4186
- class: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
4444
+ class: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
4187
4445
  onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
4188
4446
  onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
4189
4447
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
@@ -4213,7 +4471,7 @@ ${getDefaultStyles(this.isNestedRender)}
4213
4471
  }
4214
4472
  });
4215
4473
  function _sfc_render$3(e, t, n, o, r, s) {
4216
- const i = resolveComponent("inlined-styles");
4474
+ const i = resolveComponent("InlinedStyles");
4217
4475
  return openBlock(), createBlock(i, {
4218
4476
  id: "builderio-content",
4219
4477
  styles: e.injectedStyles
@@ -4224,10 +4482,10 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4224
4482
  data: t,
4225
4483
  locale: n
4226
4484
  }) => {
4227
- var s, i, a;
4485
+ var s, i, l;
4228
4486
  const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
4229
- return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
4230
- l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
4487
+ return (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || l.forEach((a) => {
4488
+ a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
4231
4489
  }), {
4232
4490
  ...o,
4233
4491
  ...r,
@@ -4345,7 +4603,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4345
4603
  }
4346
4604
  });
4347
4605
  function _sfc_render$2(e, t, n, o, r, s) {
4348
- const i = resolveComponent("inlined-script"), a = resolveComponent("content-styles"), l = resolveComponent("blocks"), d = resolveComponent("enable-editor");
4606
+ const i = resolveComponent("InlinedScript"), l = resolveComponent("ContentStyles"), a = resolveComponent("Blocks"), d = resolveComponent("EnableEditor");
4349
4607
  return openBlock(), createBlock(d, mergeProps({
4350
4608
  content: e.content,
4351
4609
  data: e.data,
@@ -4363,22 +4621,22 @@ function _sfc_render$2(e, t, n, o, r, s) {
4363
4621
  trustedHosts: e.trustedHosts
4364
4622
  }, {}), {
4365
4623
  default: withCtx(() => {
4366
- var p, c, u, f, m, b, S;
4624
+ var p, c, u, f, m, b, C;
4367
4625
  return [
4368
4626
  e.isSsrAbTest ? (openBlock(), createBlock(i, {
4369
4627
  key: 0,
4370
4628
  id: "builderio-variant-visibility",
4371
4629
  scriptStr: e.scriptStr
4372
4630
  }, null, 8, ["scriptStr"])) : createCommentVNode("", !0),
4373
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(a, {
4631
+ e.TARGET !== "reactNative" ? (openBlock(), createBlock(l, {
4374
4632
  key: 1,
4375
4633
  isNestedRender: e.isNestedRender,
4376
4634
  contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
4377
4635
  cssCode: (u = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
4378
4636
  customFonts: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4379
4637
  }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : createCommentVNode("", !0),
4380
- createVNode(l, {
4381
- blocks: (S = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : S.blocks,
4638
+ createVNode(a, {
4639
+ blocks: (C = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : C.blocks,
4382
4640
  context: e.builderContextSignal,
4383
4641
  registeredComponents: e.registeredComponents,
4384
4642
  linkComponent: e.linkComponent
@@ -4454,7 +4712,7 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4454
4712
  }
4455
4713
  });
4456
4714
  function _sfc_render$1(e, t, n, o, r, s) {
4457
- const i = resolveComponent("inlined-script"), a = resolveComponent("inlined-styles"), l = resolveComponent("content-component");
4715
+ const i = resolveComponent("InlinedScript"), l = resolveComponent("InlinedStyles"), a = resolveComponent("ContentComponent");
4458
4716
  return openBlock(), createElementBlock(Fragment$1, null, [
4459
4717
  !e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
4460
4718
  key: 0,
@@ -4462,7 +4720,7 @@ function _sfc_render$1(e, t, n, o, r, s) {
4462
4720
  scriptStr: e.getInitVariantsFnsScriptString()
4463
4721
  }, null, 8, ["scriptStr"])) : createCommentVNode("", !0),
4464
4722
  e.shouldRenderVariants ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
4465
- createVNode(a, {
4723
+ createVNode(l, {
4466
4724
  id: "builderio-variants",
4467
4725
  styles: e.hideVariantsStyleString
4468
4726
  }, null, 8, ["styles"]),
@@ -4470,7 +4728,7 @@ function _sfc_render$1(e, t, n, o, r, s) {
4470
4728
  id: "builderio-variants-visibility",
4471
4729
  scriptStr: e.updateCookieAndStylesScriptStr
4472
4730
  }, null, 8, ["scriptStr"]),
4473
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, p) => (openBlock(), createBlock(l, {
4731
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, p) => (openBlock(), createBlock(a, {
4474
4732
  key: d.testVariationId,
4475
4733
  isNestedRender: e.isNestedRender,
4476
4734
  content: d,
@@ -4493,7 +4751,7 @@ function _sfc_render$1(e, t, n, o, r, s) {
4493
4751
  trustedHosts: e.trustedHosts
4494
4752
  }, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4495
4753
  ], 64)) : createCommentVNode("", !0),
4496
- createVNode(l, mergeProps({
4754
+ createVNode(a, mergeProps({
4497
4755
  isNestedRender: e.isNestedRender,
4498
4756
  content: e.defaultContent,
4499
4757
  showContent: !0,
@@ -4597,8 +4855,8 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
4597
4855
  }
4598
4856
  });
4599
4857
  function _sfc_render(e, t, n, o, r, s) {
4600
- var a, l, d, p, c;
4601
- const i = resolveComponent("content-variants");
4858
+ var l, a, d, p, c;
4859
+ const i = resolveComponent("ContentVariants");
4602
4860
  return openBlock(), createElementBlock("div", mergeProps({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4603
4861
  createVNode(i, {
4604
4862
  isNestedRender: !0,
@@ -4606,11 +4864,11 @@ function _sfc_render(e, t, n, o, r, s) {
4606
4864
  apiKey: e.builderContext.apiKey,
4607
4865
  context: {
4608
4866
  ...e.builderContext.context,
4609
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
4867
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4610
4868
  },
4611
4869
  customComponents: Object.values(e.builderComponents),
4612
4870
  data: {
4613
- ...(l = e.symbol) == null ? void 0 : l.data,
4871
+ ...(a = e.symbol) == null ? void 0 : a.data,
4614
4872
  ...e.builderContext.localState,
4615
4873
  ...(p = (d = e.contentToUse) == null ? void 0 : d.data) == null ? void 0 : p.state
4616
4874
  },
@@ -4671,7 +4929,7 @@ export {
4671
4929
  createCssClass as b,
4672
4930
  checkIsDefined as c,
4673
4931
  getMaxWidthQueryForSize as d,
4674
- camelCaseToKebabCase as e,
4932
+ camelToKebabCase as e,
4675
4933
  _export_sfc as f,
4676
4934
  getProcessedBlock as g,
4677
4935
  evaluate as h,