@builder.io/sdk-react 3.0.2 → 3.0.3

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 (66) hide show
  1. package/lib/browser/blocks-exports.cjs +23 -23
  2. package/lib/browser/blocks-exports.mjs +284 -283
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-75ce8600.cjs → server-entry-5eafc5bd.cjs} +1 -1
  6. package/lib/browser/{server-entry-a2495a20.js → server-entry-c904f136.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/accordion-032726a7.cjs +1 -0
  10. package/lib/edge/{accordion-c020e15b.js → accordion-c786f197.js} +17 -16
  11. package/lib/edge/{blocks-27ac5b23.js → blocks-105e50e5.js} +4 -4
  12. package/lib/edge/{blocks-cd946d16.cjs → blocks-827b0a87.cjs} +8 -8
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-8572fca5.cjs → button-5cbfe22c.cjs} +1 -1
  16. package/lib/edge/{button-5cdb4f26.js → button-f0e0ea72.js} +2 -2
  17. package/lib/edge/{columns-3ac1fa96.js → columns-9e187314.js} +12 -12
  18. package/lib/edge/{columns-c8a9cb89.cjs → columns-d07da61d.cjs} +2 -2
  19. package/lib/edge/{content-variants-caa23bf7.cjs → content-variants-0db90715.cjs} +6 -6
  20. package/lib/edge/{content-variants-23c8eec6.js → content-variants-59dc0824.js} +10 -10
  21. package/lib/edge/{custom-code-6d9730ff.cjs → custom-code-8119ea3f.cjs} +1 -1
  22. package/lib/edge/{form-3d9bf265.cjs → form-79639135.cjs} +1 -1
  23. package/lib/edge/{form-7fc5691b.js → form-7a7b98cf.js} +13 -13
  24. package/lib/edge/{get-class-prop-name-a4845b04.js → get-class-prop-name-6b143ec7.js} +1 -1
  25. package/lib/edge/{get-class-prop-name-29fd576a.cjs → get-class-prop-name-8fb0e5ad.cjs} +1 -1
  26. package/lib/edge/{image-5c9e156f.js → image-2a2b26d2.js} +6 -6
  27. package/lib/edge/{image-94922c87.cjs → image-4db81d72.cjs} +3 -3
  28. package/lib/edge/{img-388698cb.js → img-2c4c6b78.js} +1 -1
  29. package/lib/edge/{img-102acaa2.cjs → img-72bf9d21.cjs} +1 -1
  30. package/lib/edge/index.cjs +1 -1
  31. package/lib/edge/index.mjs +1 -1
  32. package/lib/edge/{input-10e350a9.cjs → input-6eca8427.cjs} +1 -1
  33. package/lib/edge/{input-5484e9e7.js → input-752f3ce9.js} +1 -1
  34. package/lib/edge/{select-f11be7a7.cjs → select-49a73a0b.cjs} +1 -1
  35. package/lib/edge/{select-b8406bcf.js → select-a1d6e80e.js} +1 -1
  36. package/lib/edge/{server-entry-7ce03a4e.js → server-entry-35f12729.js} +1 -1
  37. package/lib/edge/{server-entry-1879cbc4.cjs → server-entry-6b2058e2.cjs} +1 -1
  38. package/lib/edge/server-entry.cjs +1 -1
  39. package/lib/edge/server-entry.mjs +1 -1
  40. package/lib/edge/{slot-4ab390ec.cjs → slot-2327e009.cjs} +1 -1
  41. package/lib/edge/{slot-23f75377.js → slot-b9bcbd41.js} +3 -3
  42. package/lib/edge/{symbol-2eafb4e0.js → symbol-33e7736f.js} +2 -2
  43. package/lib/edge/{symbol-fa343d77.cjs → symbol-3527699b.cjs} +1 -1
  44. package/lib/edge/{tabs-7d258d82.cjs → tabs-2df0eaa2.cjs} +1 -1
  45. package/lib/edge/{tabs-4c9c64f6.js → tabs-bc422e4c.js} +3 -3
  46. package/lib/node/blocks-exports.cjs +23 -23
  47. package/lib/node/blocks-exports.mjs +282 -281
  48. package/lib/node/index.cjs +1 -1
  49. package/lib/node/index.mjs +3 -3
  50. package/lib/node/init.cjs +1 -1
  51. package/lib/node/init.mjs +3 -3
  52. package/lib/node/{server-entry-ec330556.cjs → server-entry-606ce65a.cjs} +1 -1
  53. package/lib/node/{server-entry-2b263dde.js → server-entry-d1ed35c5.js} +1 -1
  54. package/lib/node/server-entry.cjs +1 -1
  55. package/lib/node/server-entry.mjs +1 -1
  56. package/lib/node/{setIvm-7eb67cd6.js → setIvm-6675714a.js} +1 -1
  57. package/lib/node/{setIvm-1e6f0b60.cjs → setIvm-e4deba11.cjs} +1 -1
  58. package/lib/node/setIvm.cjs +1 -1
  59. package/lib/node/setIvm.mjs +2 -2
  60. package/lib/node/{should-force-browser-runtime-in-node-23218b19.cjs → should-force-browser-runtime-in-node-03adae17.cjs} +1 -1
  61. package/lib/node/{should-force-browser-runtime-in-node-cdae9360.js → should-force-browser-runtime-in-node-75b2b3a0.js} +1 -1
  62. package/package.json +1 -1
  63. package/types/constants/sdk-version.d.ts +1 -1
  64. package/types/types/builder-content.d.ts +1 -0
  65. package/types/types/input.d.ts +10 -0
  66. package/lib/edge/accordion-1c16f65e.cjs +0 -1
@@ -1,14 +1,14 @@
1
1
  import { jsxs as h, Fragment as $, jsx as r } from "react/jsx-runtime";
2
- import { InlinedStyles as B, Blocks as L, mapStyleObjToStrIfNeeded as W, getSizesForBreakpoints as z } from "./blocks-27ac5b23.js";
2
+ import { InlinedStyles as B, Blocks as L, mapStyleObjToStrIfNeeded as W, getSizesForBreakpoints as z } from "./blocks-105e50e5.js";
3
3
  import { DynamicRenderer as A } from "./dynamic-renderer-8b343325.js";
4
- import { getClassPropName as N } from "./get-class-prop-name-a4845b04.js";
4
+ import { getClassPropName as N } from "./get-class-prop-name-6b143ec7.js";
5
5
  import "react";
6
6
  import "./blocks-exports.mjs";
7
- import "./server-entry-7ce03a4e.js";
7
+ import "./server-entry-35f12729.js";
8
8
  const D = (e) => `builder-columns ${e}-breakpoints`;
9
9
  function O(e) {
10
10
  var b, f;
11
- function c() {
11
+ function a() {
12
12
  return typeof e.space == "number" ? e.space || 0 : 20;
13
13
  }
14
14
  function o() {
@@ -25,10 +25,10 @@ function O(e) {
25
25
  return ((n = o()[t]) == null ? void 0 : n.width) || 100 / o().length;
26
26
  }
27
27
  function x(t) {
28
- const n = S(t), i = c() * (o().length - 1) * (n / 100);
28
+ const n = S(t), i = a() * (o().length - 1) * (n / 100);
29
29
  return `calc(${n}% - ${i}px)`;
30
30
  }
31
- function a({
31
+ function c({
32
32
  stackedStyle: t,
33
33
  desktopStyle: n
34
34
  }) {
@@ -46,14 +46,14 @@ function O(e) {
46
46
  function C() {
47
47
  return {
48
48
  "--flex-dir": u(),
49
- "--flex-dir-tablet": a({
49
+ "--flex-dir-tablet": c({
50
50
  stackedStyle: u(),
51
51
  desktopStyle: "row"
52
52
  })
53
53
  };
54
54
  }
55
55
  function v(t) {
56
- const n = t === 0 ? 0 : c(), i = x(t), l = `${n}px`, k = "100%", g = 0;
56
+ const n = t === 0 ? 0 : a(), i = x(t), l = `${n}px`, k = "100%", g = 0;
57
57
  return {
58
58
  ...{
59
59
  display: "flex",
@@ -70,11 +70,11 @@ function O(e) {
70
70
  stackedStyle: g,
71
71
  desktopStyle: l
72
72
  }),
73
- "--column-width-tablet": a({
73
+ "--column-width-tablet": c({
74
74
  stackedStyle: k,
75
75
  desktopStyle: i
76
76
  }),
77
- "--column-margin-left-tablet": a({
77
+ "--column-margin-left-tablet": c({
78
78
  stackedStyle: g,
79
79
  desktopStyle: l
80
80
  })
@@ -127,7 +127,7 @@ function O(e) {
127
127
  /* @__PURE__ */ h(
128
128
  "div",
129
129
  {
130
- className: D((b = e.builderBlock) == null ? void 0 : b.id) + " div-49f40bae",
130
+ className: D((b = e.builderBlock) == null ? void 0 : b.id) + " div-d55bdf5c",
131
131
  style: C(),
132
132
  children: [
133
133
  /* @__PURE__ */ r(
@@ -164,7 +164,7 @@ function O(e) {
164
164
  ]
165
165
  }
166
166
  ),
167
- /* @__PURE__ */ r("style", { children: `.div-49f40bae {
167
+ /* @__PURE__ */ r("style", { children: `.div-d55bdf5c {
168
168
  display: flex;
169
169
  line-height: normal;
170
170
  }` })
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("./blocks-cd946d16.cjs"),j=require("./dynamic-renderer-b29b45ca.cjs"),B=require("./get-class-prop-name-29fd576a.cjs");require("react");require("./blocks-exports.cjs");require("./server-entry-1879cbc4.cjs");const q=t=>`builder-columns ${t}-breakpoints`;function p(t){var f,k;function a(){return typeof t.space=="number"?t.space||0:20}function s(){return t.columns||[]}function u(){return t.stackColumnsAt||"tablet"}function y(e){return e.link?t.builderLinkComponent||"a":"div"}function x(e){var n;return((n=s()[e])==null?void 0:n.width)||100/s().length}function S(e){const n=x(e),i=a()*(s().length-1)*(n/100);return`calc(${n}% - ${i}px)`}function c({stackedStyle:e,desktopStyle:n}){return u()==="tablet"?e:n}function d({stackedStyle:e,desktopStyle:n}){return u()==="never"?n:e}function m(){return t.stackColumnsAt==="never"?"row":t.reverseColumnsWhenStacked?"column-reverse":"column"}function C(){return{"--flex-dir":m(),"--flex-dir-tablet":c({stackedStyle:m(),desktopStyle:"row"})}}function v(e){const n=e===0?0:a(),i=S(e),r=`${n}px`,g="100%",h=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:i,["marginLeft"]:r,"--column-width-mobile":d({stackedStyle:g,desktopStyle:i}),"--column-margin-left-mobile":d({stackedStyle:h,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:g,desktopStyle:i}),"--column-margin-left-tablet":c({stackedStyle:h,desktopStyle:r})}}function b(e){var i,r;return o.getSizesForBreakpoints(((r=(i=t.builderContext.content)==null?void 0:i.meta)==null?void 0:r.breakpoints)||{})[e].max}function w(){const e=`.${t.builderBlock.id}-breakpoints > .builder-column`;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("./blocks-827b0a87.cjs"),j=require("./dynamic-renderer-b29b45ca.cjs"),B=require("./get-class-prop-name-8fb0e5ad.cjs");require("react");require("./blocks-exports.cjs");require("./server-entry-6b2058e2.cjs");const q=t=>`builder-columns ${t}-breakpoints`;function p(t){var f,k;function a(){return typeof t.space=="number"?t.space||0:20}function s(){return t.columns||[]}function u(){return t.stackColumnsAt||"tablet"}function y(e){return e.link?t.builderLinkComponent||"a":"div"}function x(e){var n;return((n=s()[e])==null?void 0:n.width)||100/s().length}function S(e){const n=x(e),i=a()*(s().length-1)*(n/100);return`calc(${n}% - ${i}px)`}function c({stackedStyle:e,desktopStyle:n}){return u()==="tablet"?e:n}function d({stackedStyle:e,desktopStyle:n}){return u()==="never"?n:e}function m(){return t.stackColumnsAt==="never"?"row":t.reverseColumnsWhenStacked?"column-reverse":"column"}function C(){return{"--flex-dir":m(),"--flex-dir-tablet":c({stackedStyle:m(),desktopStyle:"row"})}}function v(e){const n=e===0?0:a(),i=S(e),r=`${n}px`,g="100%",h=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:i,["marginLeft"]:r,"--column-width-mobile":d({stackedStyle:g,desktopStyle:i}),"--column-margin-left-mobile":d({stackedStyle:h,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:g,desktopStyle:i}),"--column-margin-left-tablet":c({stackedStyle:h,desktopStyle:r})}}function b(e){var i,r;return o.getSizesForBreakpoints(((r=(i=t.builderContext.content)==null?void 0:i.meta)==null?void 0:r.breakpoints)||{})[e].max}function w(){const e=`.${t.builderBlock.id}-breakpoints > .builder-column`;return`
2
2
  @media (max-width: ${b("medium")}px) {
3
3
  .${t.builderBlock.id}-breakpoints {
4
4
  flex-direction: var(--flex-dir-tablet);
@@ -22,7 +22,7 @@
22
22
  margin-left: var(--column-margin-left-mobile) !important;
23
23
  }
24
24
  },
25
- `}function $(e,n){return{...e.link?{href:e.link}:{},[B.getClassPropName()]:"builder-column",style:o.mapStyleObjToStrIfNeeded(v(n))}}return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:q((f=t.builderBlock)==null?void 0:f.id)+" div-49f40bae",style:C(),children:[l.jsx(o.InlinedStyles,{id:"builderio-columns",styles:w(),nonce:t.builderContext.nonce}),(k=t.columns)==null?void 0:k.map((e,n)=>l.jsx(j.DynamicRenderer,{TagName:y(e),actionAttributes:{},attributes:$(e,n),children:l.jsx(o.Blocks,{path:`columns.${n}.blocks`,parent:t.builderBlock.id,styleProp:{flexGrow:"1"},context:t.builderContext,registeredComponents:t.builderComponents,linkComponent:t.builderLinkComponent,blocks:e.blocks})},n))]}),l.jsx("style",{children:`.div-49f40bae {
25
+ `}function $(e,n){return{...e.link?{href:e.link}:{},[B.getClassPropName()]:"builder-column",style:o.mapStyleObjToStrIfNeeded(v(n))}}return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:q((f=t.builderBlock)==null?void 0:f.id)+" div-d55bdf5c",style:C(),children:[l.jsx(o.InlinedStyles,{id:"builderio-columns",styles:w(),nonce:t.builderContext.nonce}),(k=t.columns)==null?void 0:k.map((e,n)=>l.jsx(j.DynamicRenderer,{TagName:y(e),actionAttributes:{},attributes:$(e,n),children:l.jsx(o.Blocks,{path:`columns.${n}.blocks`,parent:t.builderBlock.id,styleProp:{flexGrow:"1"},context:t.builderContext,registeredComponents:t.builderComponents,linkComponent:t.builderLinkComponent,blocks:e.blocks})},n))]}),l.jsx("style",{children:`.div-d55bdf5c {
26
26
  display: flex;
27
27
  line-height: normal;
28
28
  }`})]})}exports.default=p;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),r=require("react"),s=require("./server-entry-1879cbc4.cjs"),k=require("./blocks-exports.cjs"),E=require("./blocks-cd946d16.cjs");require("./get-class-prop-name-29fd576a.cjs");require("./dynamic-renderer-b29b45ca.cjs");const q={"@type":"@builder.io/sdk:Element",layerName:"Accordion item title",responsiveStyles:{large:{marginTop:"10px",position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"left",display:"flex",flexDirection:"column"}},component:{name:"Text",options:{text:"I am an accordion title. Click me!"}}}]},H={"@type":"@builder.io/sdk:Element",layerName:"Accordion item detail",responsiveStyles:{large:{position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",marginTop:"10px",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingTop:"50px",textAlign:"left",display:"flex",flexDirection:"column",paddingBottom:"50px"}},component:{name:"Text",options:{text:"I am an accordion detail, hello!"}}}]},G={name:"Builder:Accordion",canHaveChildren:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",defaultStyles:{display:"flex",flexDirection:"column",alignItems:"stretch"},inputs:[{name:"items",type:"list",broadcast:!0,subFields:[{name:"title",type:"uiBlocks",hideFromUI:!0,defaultValue:[q]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[H]}],defaultValue:[{title:[q],detail:[H]},{title:[q],detail:[H]}],showIf:e=>!e.get("useChildrenForItems")},{name:"oneAtATime",helperText:"Only allow opening one at a time (collapse all others when new item openned)",type:"boolean",defaultValue:!1},{name:"grid",helperText:"Display as a grid",type:"boolean",defaultValue:!1},{name:"gridRowWidth",helperText:"Display as a grid",type:"string",showIf:e=>e.get("grid"),defaultValue:"25%"},{name:"useChildrenForItems",type:"boolean",helperText:"Use child elements for each slide, instead of the array. Useful for dynamically repeating items",advanced:!0,defaultValue:!1,onChange:e=>{e.get("useChildrenForItems")===!0&&e.set("items",[])}}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},Q=r.lazy(()=>Promise.resolve().then(()=>require("./accordion-1c16f65e.cjs"))),X={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0,shouldReceiveBuilderProps:{builderLinkComponent:!0}},Z={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(i=>{i.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(d=>d.get("width"))&&(n.find(m=>!m.get("width"))||n.reduce((o,p)=>o+p.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},ee={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},N=["jpeg","jpg","png","svg","webp","gif","jfif","pjpeg","pjp","apng","avif","tif","tiff","heif","bmp","eps","raw","cr2","nef","orf","sr2","psd","heic","dib","ai"],te=["mp4","webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","mts","m2ts","ts","wmv","yuv","rm","rmvb","viv","asf","amv","m4p","mpeg","mpe","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b"],ne={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:N,required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(a,o=6e4){return new Promise((p,I)=>{const T=document.createElement("img");let R=!1;T.onload=()=>{R=!0,p(T)},T.addEventListener("error",C=>{console.warn("Image load failed",C.error),I(C.error)}),T.src=a,setTimeout(()=>{R||I(new Error("Image load timed out"))},o)})}function i(a){return Math.round(a*1e3)/1e3}const d=e.get("image"),m=e.get("aspectRatio");if(fetch(d).then(a=>a.blob()).then(a=>{a.type.includes("svg")&&e.set("noWebp",!0)}),d&&(!m||m===.7041))return n(d).then(a=>{const o=e.get("aspectRatio");e.get("image")===d&&(!o||o===.7041)&&a.width&&a.height&&(e.set("aspectRatio",i(a.height/a.width)),e.set("height",a.height),e.set("width",a.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}],shouldReceiveBuilderProps:{builderBlock:!0}},ae={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},ie={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}],shouldReceiveBuilderProps:{builderContext:!0,builderComponents:!0}},oe=r.lazy(()=>Promise.resolve().then(()=>require("./slot-4ab390ec.cjs"))),re={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},U={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"10px",paddingBottom:"10px",minWidth:"100px",textAlign:"center",display:"flex",flexDirection:"column",cursor:"pointer",userSelect:"none"}},component:{name:"Text",options:{text:"New tab"}}},L={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},le={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[U]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[L]}],defaultValue:[{label:[{...U,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...L,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...U,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...L,component:{name:"Text",options:{text:"Tab 2 content"}}}]}]},{name:"activeTabStyle",type:"uiStyle",helperText:"CSS styles for the active tab",defaultValue:{backgroundColor:"rgba(0, 0, 0, 0.1)"}},{name:"defaultActiveTab",type:"number",helperText:'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',defaultValue:1,advanced:!0},{name:"collapsible",type:"boolean",helperText:"If on, clicking an open tab closes it so no tabs are active",defaultValue:!1,advanced:!0},{name:"tabHeaderLayout",type:"enum",helperText:"Change the layout of the tab headers (uses justify-content)",defaultValue:"flex-start",enum:[{label:"Center",value:"center"},{label:"Space between",value:"space-between"},{label:"Space around",value:"space-around"},{label:"Left",value:"flex-start"},{label:"Right",value:"flex-end"}]}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},se=r.lazy(()=>Promise.resolve().then(()=>require("./tabs-7d258d82.cjs"))),de={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!0},name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},ue={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},ce=r.lazy(()=>Promise.resolve().then(()=>require("./custom-code-6d9730ff.cjs"))),me={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc"},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},pe=r.lazy(()=>Promise.resolve().then(()=>require("./embed-32bdd007.cjs"))),fe={name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"your@email.com",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:"application/json",advanced:!0,enum:["application/json","multipart/form-data","application/x-www-form-urlencoded"],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:"options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},{name:"customHeaders",type:"map",valueType:{type:"string"},advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'}],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"jane@doe.com"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},ge=r.lazy(()=>Promise.resolve().then(()=>require("./form-3d9bf265.cjs"))),he={name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}},be=r.lazy(()=>Promise.resolve().then(()=>require("./input-10e350a9.cjs"))),ye={name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0},xe=r.lazy(()=>Promise.resolve().then(()=>require("./select-f11be7a7.cjs"))),ve={name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0},Se=r.lazy(()=>Promise.resolve().then(()=>require("./submit-button-b363e0ed.cjs"))),Te={name:"Form:TextArea",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",inputs:[{advanced:!0,name:"value",type:"string"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"placeholder",type:"string",defaultValue:"Hello there"},{name:"required",type:"boolean",defaultValue:!1}],defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"},static:!0,noWrap:!0},Ie=r.lazy(()=>Promise.resolve().then(()=>require("./textarea-56a875bc.cjs"))),ke={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:N,required:!0}],noWrap:!0,static:!0},Ce=r.lazy(()=>Promise.resolve().then(()=>require("./img-102acaa2.cjs"))),we={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:te,bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:N,helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}],shouldReceiveBuilderProps:{builderBlock:!0}},Ee=()=>[{component:ce,...ue},{component:pe,...me},{component:ge,...fe},{component:be,...he},{component:Se,...ve},{component:xe,...ye},{component:Ie,...Te},{component:Ce,...ke},{component:k.Video,...we}],$=()=>[{component:k.Button,...X},{component:k.Columns,...Z},{component:k.Fragment,...ee},{component:k.Image,...ne},{component:k.Section,...ae},{component:oe,...ie},{component:k.Symbol,...re},{component:k.Text,...de},{component:se,...le},{component:Q,...G},...Ee()],Ve=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),r=require("react"),s=require("./server-entry-6b2058e2.cjs"),k=require("./blocks-exports.cjs"),E=require("./blocks-827b0a87.cjs");require("./get-class-prop-name-8fb0e5ad.cjs");require("./dynamic-renderer-b29b45ca.cjs");const q={"@type":"@builder.io/sdk:Element",layerName:"Accordion item title",responsiveStyles:{large:{marginTop:"10px",position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"left",display:"flex",flexDirection:"column"}},component:{name:"Text",options:{text:"I am an accordion title. Click me!"}}}]},H={"@type":"@builder.io/sdk:Element",layerName:"Accordion item detail",responsiveStyles:{large:{position:"relative",display:"flex",alignItems:"stretch",flexDirection:"column",marginTop:"10px",paddingBottom:"10px"}},children:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingTop:"50px",textAlign:"left",display:"flex",flexDirection:"column",paddingBottom:"50px"}},component:{name:"Text",options:{text:"I am an accordion detail, hello!"}}}]},G={name:"Builder:Accordion",canHaveChildren:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",defaultStyles:{display:"flex",flexDirection:"column",alignItems:"stretch"},inputs:[{name:"items",type:"list",broadcast:!0,subFields:[{name:"title",type:"uiBlocks",hideFromUI:!0,defaultValue:[q]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[H]}],defaultValue:[{title:[q],detail:[H]},{title:[q],detail:[H]}],showIf:e=>!e.get("useChildrenForItems")},{name:"oneAtATime",helperText:"Only allow opening one at a time (collapse all others when new item openned)",type:"boolean",defaultValue:!1},{name:"grid",helperText:"Display as a grid",type:"boolean",defaultValue:!1},{name:"gridRowWidth",helperText:"Display as a grid",type:"string",showIf:e=>e.get("grid"),defaultValue:"25%"},{name:"useChildrenForItems",type:"boolean",helperText:"Use child elements for each slide, instead of the array. Useful for dynamically repeating items",advanced:!0,defaultValue:!1,onChange:e=>{e.get("useChildrenForItems")===!0&&e.set("items",[])}}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},Q=r.lazy(()=>Promise.resolve().then(()=>require("./accordion-032726a7.cjs"))),X={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0,shouldReceiveBuilderProps:{builderLinkComponent:!0}},Z={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(i=>{i.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(d=>d.get("width"))&&(n.find(m=>!m.get("width"))||n.reduce((o,p)=>o+p.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},ee={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},N=["jpeg","jpg","png","svg","webp","gif","jfif","pjpeg","pjp","apng","avif","tif","tiff","heif","bmp","eps","raw","cr2","nef","orf","sr2","psd","heic","dib","ai"],te=["mp4","webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","mts","m2ts","ts","wmv","yuv","rm","rmvb","viv","asf","amv","m4p","mpeg","mpe","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b"],ne={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:N,required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(a,o=6e4){return new Promise((p,I)=>{const T=document.createElement("img");let V=!1;T.onload=()=>{V=!0,p(T)},T.addEventListener("error",C=>{console.warn("Image load failed",C.error),I(C.error)}),T.src=a,setTimeout(()=>{V||I(new Error("Image load timed out"))},o)})}function i(a){return Math.round(a*1e3)/1e3}const d=e.get("image"),m=e.get("aspectRatio");if(fetch(d).then(a=>a.blob()).then(a=>{a.type.includes("svg")&&e.set("noWebp",!0)}),d&&(!m||m===.7041))return n(d).then(a=>{const o=e.get("aspectRatio");e.get("image")===d&&(!o||o===.7041)&&a.width&&a.height&&(e.set("aspectRatio",i(a.height/a.width)),e.set("height",a.height),e.set("width",a.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"highPriority",type:"boolean",advanced:!0,helperText:"Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}],shouldReceiveBuilderProps:{builderBlock:!0}},ae={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},ie={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}],shouldReceiveBuilderProps:{builderContext:!0,builderComponents:!0}},oe=r.lazy(()=>Promise.resolve().then(()=>require("./slot-2327e009.cjs"))),re={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},U={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"10px",paddingBottom:"10px",minWidth:"100px",textAlign:"center",display:"flex",flexDirection:"column",cursor:"pointer",userSelect:"none"}},component:{name:"Text",options:{text:"New tab"}}},L={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},le={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[U]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[L]}],defaultValue:[{label:[{...U,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...L,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...U,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...L,component:{name:"Text",options:{text:"Tab 2 content"}}}]}]},{name:"activeTabStyle",type:"uiStyle",helperText:"CSS styles for the active tab",defaultValue:{backgroundColor:"rgba(0, 0, 0, 0.1)"}},{name:"defaultActiveTab",type:"number",helperText:'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',defaultValue:1,advanced:!0},{name:"collapsible",type:"boolean",helperText:"If on, clicking an open tab closes it so no tabs are active",defaultValue:!1,advanced:!0},{name:"tabHeaderLayout",type:"enum",helperText:"Change the layout of the tab headers (uses justify-content)",defaultValue:"flex-start",enum:[{label:"Center",value:"center"},{label:"Space between",value:"space-between"},{label:"Space around",value:"space-around"},{label:"Left",value:"flex-start"},{label:"Right",value:"flex-end"}]}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},se=r.lazy(()=>Promise.resolve().then(()=>require("./tabs-2df0eaa2.cjs"))),de={shouldReceiveBuilderProps:{builderBlock:!1,builderContext:!0},name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},ue={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},ce=r.lazy(()=>Promise.resolve().then(()=>require("./custom-code-8119ea3f.cjs"))),me={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc"},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},pe=r.lazy(()=>Promise.resolve().then(()=>require("./embed-32bdd007.cjs"))),fe={name:"Form:Form",defaults:{responsiveStyles:{large:{marginTop:"15px",paddingBottom:"15px"}}},image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",inputs:[{name:"sendSubmissionsTo",type:"string",enum:[{label:"Send to email",value:"email",helperText:"Send form submissions to the email address of your choosing"},{label:"Custom",value:"custom",helperText:"Handle where the form requests go manually with a little code, e.g. to your own custom backend"}],defaultValue:"email"},{name:"sendSubmissionsToEmail",type:"string",required:!0,defaultValue:"your@email.com",showIf:'options.get("sendSubmissionsTo") === "email"'},{name:"sendWithJs",type:"boolean",helperText:"Set to false to use basic html form action",defaultValue:!0,showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"name",type:"string",defaultValue:"My form"},{name:"action",type:"string",helperText:"URL to send the form data to",showIf:'options.get("sendSubmissionsTo") === "custom"'},{name:"contentType",type:"string",defaultValue:"application/json",advanced:!0,enum:["application/json","multipart/form-data","application/x-www-form-urlencoded"],showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'},{name:"method",type:"string",showIf:'options.get("sendSubmissionsTo") === "custom"',defaultValue:"POST",advanced:!0},{name:"previewState",type:"string",enum:["unsubmitted","sending","success","error"],defaultValue:"unsubmitted",helperText:'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"successUrl",type:"url",helperText:"Optional URL to redirect the user to on form submission success",showIf:'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'},{name:"resetFormOnSubmit",type:"boolean",showIf:"options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",advanced:!0},{name:"successMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Thanks!</span>"}}}]},{name:"validate",type:"boolean",defaultValue:!0,advanced:!0},{name:"errorMessagePath",type:"text",advanced:!0,helperText:'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'},{name:"errorMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},bindings:{"component.options.text":"state.formErrorMessage || block.component.options.text"},component:{name:"Text",options:{text:"<span>Form submission error :( Please check your answers and try again</span>"}}}]},{name:"sendingMessage",type:"uiBlocks",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Sending...</span>"}}}]},{name:"customHeaders",type:"map",valueType:{type:"string"},advanced:!0,showIf:'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'}],noWrap:!0,canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your name</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"name",placeholder:"Jane Doe"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Text",options:{text:"<span>Enter your email</span>"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:Input",options:{name:"email",placeholder:"jane@doe.com"}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{marginTop:"10px"}},component:{name:"Form:SubmitButton",options:{text:"Submit"}}}],shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0,builderLinkComponent:!0}},ge=r.lazy(()=>Promise.resolve().then(()=>require("./form-79639135.cjs"))),he={name:"Form:Input",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",inputs:[{name:"type",type:"text",enum:["text","number","email","url","checkbox","radio","range","date","datetime-local","search","tel","time","file","month","week","password","color","hidden"],defaultValue:"text"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:"placeholder",type:"string",defaultValue:"Hello there",helperText:"Text to display when there is no value"},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",helperText:"Is this input required to be filled out to submit a form",defaultValue:!1}],noWrap:!0,static:!0,defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"}},be=r.lazy(()=>Promise.resolve().then(()=>require("./input-6eca8427.cjs"))),ye={name:"Form:Select",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",defaultStyles:{alignSelf:"flex-start"},inputs:[{name:"options",type:"list",required:!0,subFields:[{name:"value",type:"text",required:!0},{name:"name",type:"text"}],defaultValue:[{value:"option 1"},{value:"option 2"}]},{name:"name",type:"string",required:!0,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"value",type:"string",advanced:!0},{name:"required",type:"boolean",defaultValue:!1}],static:!0,noWrap:!0},xe=r.lazy(()=>Promise.resolve().then(()=>require("./select-49a73a0b.cjs"))),ve={name:"Form:SubmitButton",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#3898EC",color:"white",borderRadius:"4px",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me"}],static:!0,noWrap:!0},Se=r.lazy(()=>Promise.resolve().then(()=>require("./submit-button-b363e0ed.cjs"))),Te={name:"Form:TextArea",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",inputs:[{advanced:!0,name:"value",type:"string"},{name:"name",type:"string",required:!0,helperText:'Every input in a form needs a unique name describing what it gets, e.g. "email"'},{name:"defaultValue",type:"string"},{name:"placeholder",type:"string",defaultValue:"Hello there"},{name:"required",type:"boolean",defaultValue:!1}],defaultStyles:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"3px",borderWidth:"1px",borderStyle:"solid",borderColor:"#ccc"},static:!0,noWrap:!0},Ie=r.lazy(()=>Promise.resolve().then(()=>require("./textarea-56a875bc.cjs"))),ke={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:N,required:!0}],noWrap:!0,static:!0},Ce=r.lazy(()=>Promise.resolve().then(()=>require("./img-72bf9d21.cjs"))),we={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:te,bubble:!0,defaultValue:"https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",required:!0},{name:"posterImage",type:"file",allowedFileTypes:N,helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}],shouldReceiveBuilderProps:{builderBlock:!0}},Ee=()=>[{component:ce,...ue},{component:pe,...me},{component:ge,...fe},{component:be,...he},{component:Se,...ve},{component:xe,...ye},{component:Ie,...Te},{component:Ce,...ke},{component:k.Video,...we}],$=()=>[{component:k.Button,...X},{component:k.Columns,...Z},{component:k.Fragment,...ee},{component:k.Image,...ne},{component:k.Section,...ae},{component:oe,...ie},{component:k.Symbol,...re},{component:k.Text,...de},{component:se,...le},{component:Q,...G},...Ee()],Re=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2
2
  function getAndSetVariantId() {
3
3
  function setCookie(name, value, days) {
4
4
  let expires = '';
@@ -54,7 +54,7 @@
54
54
  }).join('');
55
55
  styleEl.innerHTML = newStyleStr;
56
56
  }
57
- }`,Re=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
57
+ }`,Ve=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
58
58
  if (!navigator.cookieEnabled) {
59
59
  return;
60
60
  }
@@ -89,8 +89,8 @@
89
89
  }
90
90
  return;
91
91
  }`,M="builderIoAbTest",J="builderIoRenderContent",D=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Fe=({canTrack:e,content:t})=>!(!(D(t).length>0)||!e||s.isBrowser()),Pe=e=>e==="react"||e==="reactNative",Y=Pe(s.TARGET),Ae=()=>`
92
- window.${M} = ${Ve}
93
- window.${J} = ${Re}
92
+ window.${M} = ${Re}
93
+ window.${J} = ${Ve}
94
94
  `,We=(e,t)=>`
95
95
  window.${M}(
96
96
  "${t}",${JSON.stringify(e)}, ${Y}
@@ -127,8 +127,8 @@ font-weight: ${o};
127
127
  text-align: inherit;
128
128
  font-family: inherit;
129
129
  }
130
- `,_e=e=>e?"":$e,ze=e=>`variant-${e}`;function Ke(e){var y,x,w;const t=r.useRef(null);function n(u){var g,b;const c={...e.builderContextSignal.rootState,...u};e.builderContextSignal.rootSetState?(b=(g=e.builderContextSignal).rootSetState)==null||b.call(g,c):e.setBuilderContextSignal(l=>({...l,rootState:c}))}function i(u){var g,b,l,h,v;const c={...e.builderContextSignal.content,...u,data:{...(g=e.builderContextSignal.content)==null?void 0:g.data,...u==null?void 0:u.data},meta:{...(b=e.builderContextSignal.content)==null?void 0:b.meta,...u==null?void 0:u.meta,breakpoints:((l=u==null?void 0:u.meta)==null?void 0:l.breakpoints)||((v=(h=e.builderContextSignal.content)==null?void 0:h.meta)==null?void 0:v.breakpoints)}};e.setBuilderContextSignal(S=>({...S,content:c}))}function d(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[m,a]=r.useState(()=>e.contentWrapper||"div");function o(u){return s.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:c=>{var l;const{breakpoints:g,contentId:b}=c;!b||b!==((l=e.builderContextSignal.content)==null?void 0:l.id)||g&&i({meta:{breakpoints:g}})},animation:c=>{E.triggerAnimation(c)},contentUpdate:c=>{i(c)}}})(u)}const[p,I]=r.useState(()=>({})),[T,R]=r.useState(()=>({})),[C,P]=r.useState(()=>!1);function A(u){var c,g;if(e.builderContextSignal.content){const b=(c=e.builderContextSignal.content)==null?void 0:c.testVariationId,l=(g=e.builderContextSignal.content)==null?void 0:g.id;s._track({apiHost:e.apiHost,type:"click",canTrack:s.getDefaultCanTrack(e.canTrack),contentId:l,apiKey:e.apiKey,variationId:b!==l?b:void 0,...He(u),unique:!C})}C||P(!0)}function W(){var c,g,b;const u=(b=(g=(c=e.builderContextSignal.content)==null?void 0:c.data)==null?void 0:g.httpRequests)!=null?b:{};Object.entries(u).forEach(([l,h])=>{if(!h||T[l]||p[l]&&!s.isEditing())return;T[l]=!0;const v=h.replace(/{{([^}]+)}}/g,(S,B)=>String(E.evaluate({code:B,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})));s.logFetch(v),fetch(v).then(S=>S.json()).then(S=>{n({[l]:S}),p[l]=!0}).catch(S=>{console.error("error fetching dynamic data",h,S)}).finally(()=>{T[l]=!1})})}function V(){s.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:E.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}const F=r.useRef(!1);return F.current||(W(),V(),F.current=!0),r.useEffect(()=>{var u,c,g;if(s.isBrowser()){if(s.isEditing()&&!e.isNestedRender&&(window.addEventListener("message",o),s.registerInsertMenu(),s.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(l=>{var h,v;if(!e.model||!((h=l.models)!=null&&h.length)||l.models.includes(e.model)){const S=s.createRegisterComponentMessage(l);(v=window.parent)==null||v.postMessage(S,"*")}}),window.addEventListener("builder:component:stateChangeListenerActivated",V)),e.builderContextSignal.content&&s.getDefaultCanTrack(e.canTrack)){const l=(u=e.builderContextSignal.content)==null?void 0:u.testVariationId,h=(c=e.builderContextSignal.content)==null?void 0:c.id,v=e.apiKey;s._track({apiHost:e.apiHost,type:"impression",canTrack:!0,contentId:h,apiKey:v,variationId:l!==h?l:void 0})}if(s.isPreviewing()&&!s.isEditing()){const l=new URL(location.href).searchParams,h=l.get("builder.preview"),v=l.get(`builder.overrides.${h}`),S=l.get("apiKey")||l.get("builder.space");(h==="BUILDER_STUDIO"||h===e.model&&S===e.apiKey&&(!e.content||v===e.content.id))&&s.fetchOneEntry({model:e.model||"",apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion,...h==="BUILDER_STUDIO"&&((g=e.context)!=null&&g.symbolId)?{query:{id:e.context.symbolId}}:{}}).then(B=>{B&&i(B)})}}},[]),r.useEffect(()=>{e.content&&i(e.content)},[e.content]),r.useEffect(()=>{V()},[e.builderContextSignal.rootState]),r.useEffect(()=>{e.data&&n(e.data)},[e.data]),r.useEffect(()=>{e.locale&&n({locale:e.locale})},[e.locale]),r.useEffect(()=>()=>{s.isBrowser()&&(window.removeEventListener("message",o),window.removeEventListener("builder:component:stateChangeListenerActivated",V))},[]),f.jsx(k.BuilderContext.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content||K()?f.jsx(m,{ref:t,onClick:u=>A(u),"builder-content-id":(y=e.builderContextSignal.content)==null?void 0:y.id,"builder-model":e.model,className:ze(((x=e.content)==null?void 0:x.testVariationId)||((w=e.content)==null?void 0:w.id)),style:{display:!e.builderContextSignal.content&&K()?"none":void 0},...d(),...e.contentWrapperProps,children:e.children}):null})}function Oe(e){const[t,n]=r.useState(()=>`
130
+ `,_e=e=>e?"":$e,ze=e=>`variant-${e}`;function Ke(e){var y,x,w;const t=r.useRef(null);function n(u){var g,b;const c={...e.builderContextSignal.rootState,...u};e.builderContextSignal.rootSetState?(b=(g=e.builderContextSignal).rootSetState)==null||b.call(g,c):e.setBuilderContextSignal(l=>({...l,rootState:c}))}function i(u){var g,b,l,h,v;const c={...e.builderContextSignal.content,...u,data:{...(g=e.builderContextSignal.content)==null?void 0:g.data,...u==null?void 0:u.data},meta:{...(b=e.builderContextSignal.content)==null?void 0:b.meta,...u==null?void 0:u.meta,breakpoints:((l=u==null?void 0:u.meta)==null?void 0:l.breakpoints)||((v=(h=e.builderContextSignal.content)==null?void 0:h.meta)==null?void 0:v.breakpoints)}};e.setBuilderContextSignal(S=>({...S,content:c}))}function d(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[m,a]=r.useState(()=>e.contentWrapper||"div");function o(u){return s.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:c=>{var l;const{breakpoints:g,contentId:b}=c;!b||b!==((l=e.builderContextSignal.content)==null?void 0:l.id)||g&&i({meta:{breakpoints:g}})},animation:c=>{E.triggerAnimation(c)},contentUpdate:c=>{i(c)}}})(u)}const[p,I]=r.useState(()=>({})),[T,V]=r.useState(()=>({})),[C,P]=r.useState(()=>!1);function A(u){var c,g;if(e.builderContextSignal.content){const b=(c=e.builderContextSignal.content)==null?void 0:c.testVariationId,l=(g=e.builderContextSignal.content)==null?void 0:g.id;s._track({apiHost:e.apiHost,type:"click",canTrack:s.getDefaultCanTrack(e.canTrack),contentId:l,apiKey:e.apiKey,variationId:b!==l?b:void 0,...He(u),unique:!C})}C||P(!0)}function W(){var c,g,b;const u=(b=(g=(c=e.builderContextSignal.content)==null?void 0:c.data)==null?void 0:g.httpRequests)!=null?b:{};Object.entries(u).forEach(([l,h])=>{if(!h||T[l]||p[l]&&!s.isEditing())return;T[l]=!0;const v=h.replace(/{{([^}]+)}}/g,(S,B)=>String(E.evaluate({code:B,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})));s.logFetch(v),fetch(v).then(S=>S.json()).then(S=>{n({[l]:S}),p[l]=!0}).catch(S=>{console.error("error fetching dynamic data",h,S)}).finally(()=>{T[l]=!1})})}function R(){s.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:E.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}const F=r.useRef(!1);return F.current||(W(),R(),F.current=!0),r.useEffect(()=>{var u,c,g;if(s.isBrowser()){if(s.isEditing()&&!e.isNestedRender&&(window.addEventListener("message",o),s.registerInsertMenu(),s.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(l=>{var h,v;if(!e.model||!((h=l.models)!=null&&h.length)||l.models.includes(e.model)){const S=s.createRegisterComponentMessage(l);(v=window.parent)==null||v.postMessage(S,"*")}}),window.addEventListener("builder:component:stateChangeListenerActivated",R)),e.builderContextSignal.content&&s.getDefaultCanTrack(e.canTrack)){const l=(u=e.builderContextSignal.content)==null?void 0:u.testVariationId,h=(c=e.builderContextSignal.content)==null?void 0:c.id,v=e.apiKey;s._track({apiHost:e.apiHost,type:"impression",canTrack:!0,contentId:h,apiKey:v,variationId:l!==h?l:void 0})}if(s.isPreviewing()&&!s.isEditing()){const l=new URL(location.href).searchParams,h=l.get("builder.preview"),v=l.get(`builder.overrides.${h}`),S=l.get("apiKey")||l.get("builder.space");(h==="BUILDER_STUDIO"||h===e.model&&S===e.apiKey&&(!e.content||v===e.content.id))&&s.fetchOneEntry({model:e.model||"",apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion,...h==="BUILDER_STUDIO"&&((g=e.context)!=null&&g.symbolId)?{query:{id:e.context.symbolId}}:{}}).then(B=>{B&&i(B)})}}},[]),r.useEffect(()=>{e.content&&i(e.content)},[e.content]),r.useEffect(()=>{R()},[e.builderContextSignal.rootState]),r.useEffect(()=>{e.data&&n(e.data)},[e.data]),r.useEffect(()=>{e.locale&&n({locale:e.locale})},[e.locale]),r.useEffect(()=>()=>{s.isBrowser()&&(window.removeEventListener("message",o),window.removeEventListener("builder:component:stateChangeListenerActivated",R))},[]),f.jsx(k.BuilderContext.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content||K()?f.jsx(m,{ref:t,onClick:u=>A(u),"builder-content-id":(y=e.builderContextSignal.content)==null?void 0:y.id,"builder-model":e.model,className:ze(((x=e.content)==null?void 0:x.testVariationId)||((w=e.content)==null?void 0:w.id)),style:{display:!e.builderContextSignal.content&&K()?"none":void 0},...d(),...e.contentWrapperProps,children:e.children}):null})}function Oe(e){const[t,n]=r.useState(()=>`
131
131
  ${Ne({cssCode:e.cssCode,contentId:e.contentId})}
132
132
  ${je({customFonts:e.customFonts})}
133
133
  ${_e(e.isNestedRender)}
134
- `.trim());return f.jsx(E.InlinedStyles,{id:"builderio-content",styles:t,nonce:e.nonce})}const Me=({content:e,data:t,locale:n})=>{var m,a,o;const i={},d=((m=e==null?void 0:e.data)==null?void 0:m.state)||{};return(o=(a=e==null?void 0:e.data)==null?void 0:a.inputs)==null||o.forEach(p=>{p.name&&p.defaultValue!==void 0&&(i[p.name]=p.defaultValue)}),{...i,...d,...t,...n?{locale:n}:{}}},Je=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function O(e){var I,T,R,C,P,A,W,V,F;const[t,n]=r.useState(()=>{var y,x;return Be({variationId:(y=e.content)==null?void 0:y.testVariationId,contentId:(x=e.content)==null?void 0:x.id})});function i(y){o(x=>({...x,rootState:y}))}const[d,m]=r.useState(()=>[...$(),...e.customComponents||[]].reduce((y,{component:x,...w})=>({...y,[w.name]:{component:x,...s.serializeIncludingFunctions(w)}}),{})),[a,o]=r.useState(()=>({content:Je({content:e.content,data:e.data}),localState:void 0,rootState:Me({content:e.content,data:e.data,locale:e.locale}),rootSetState:i,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...$(),...e.customComponents||[]].reduce((y,{component:x,...w})=>({...y,[w.name]:s.serializeIncludingFunctions(w)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{},nonce:e.nonce||"",model:e.model||""})),p=r.useRef(!1);if(!p.current){e.apiKey||s.logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop.");const y=(T=(I=a.content)==null?void 0:I.data)==null?void 0:T.jsCode;y&&E.evaluate({code:y,context:e.context||{},localState:void 0,rootState:a.rootState,rootSetState:x=>{Object.assign(a.rootState,x)},isExpression:!1}),p.current=!0}return f.jsx(E.ComponentsContext.Provider,{value:{registeredComponents:d},children:f.jsxs(Ke,{apiHost:e.apiHost,nonce:e.nonce,content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:a,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,isNestedRender:e.isNestedRender,setBuilderContextSignal:o,children:[e.isSsrAbTest?f.jsx(j,{id:"builderio-variant-visibility",scriptStr:t,nonce:e.nonce||""}):null,f.jsx(Oe,{nonce:e.nonce||"",isNestedRender:e.isNestedRender,contentId:(R=a.content)==null?void 0:R.id,cssCode:(P=(C=a.content)==null?void 0:C.data)==null?void 0:P.cssCode,customFonts:(W=(A=a.content)==null?void 0:A.data)==null?void 0:W.customFonts}),f.jsx(E.Blocks,{blocks:(F=(V=a.content)==null?void 0:V.data)==null?void 0:F.blocks,context:a,registeredComponents:d,linkComponent:e.linkComponent})]})})}function Ye(e){var a;const[t,n]=r.useState(()=>Fe({canTrack:s.getDefaultCanTrack(e.canTrack),content:e.content}));function i(){var o;return We(D(e.content).map(p=>({id:p.testVariationId,testRatio:p.testRatio})),((o=e.content)==null?void 0:o.id)||"")}function d(){return D(e.content).map(o=>`.variant-${o.testVariationId} { display: none; } `).join("")}function m(){var o;return t?{...e.content,testVariationId:(o=e.content)==null?void 0:o.id}:s.handleABTestingSync({item:e.content,canTrack:s.getDefaultCanTrack(e.canTrack)})}return r.useEffect(()=>{},[]),f.jsxs(f.Fragment,{children:[!e.isNestedRender&&s.TARGET!=="reactNative"?f.jsx(j,{id:"builderio-init-variants-fns",scriptStr:Ae(),nonce:e.nonce||""}):null,t?f.jsxs(f.Fragment,{children:[f.jsx(E.InlinedStyles,{id:"builderio-variants",styles:d(),nonce:e.nonce||""}),f.jsx(j,{id:"builderio-variants-visibility",scriptStr:i(),nonce:e.nonce||""}),(a=D(e.content))==null?void 0:a.map(o=>f.jsx(O,{apiHost:e.apiHost,isNestedRender:e.isNestedRender,nonce:e.nonce,content:o,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},o.testVariationId))]}):null,f.jsx(O,{apiHost:e.apiHost,nonce:e.nonce,isNestedRender:e.isNestedRender,content:m(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}exports.default=Ye;
134
+ `.trim());return f.jsx(E.InlinedStyles,{id:"builderio-content",styles:t,nonce:e.nonce})}const Me=({content:e,data:t,locale:n})=>{var m,a,o;const i={},d=((m=e==null?void 0:e.data)==null?void 0:m.state)||{};return(o=(a=e==null?void 0:e.data)==null?void 0:a.inputs)==null||o.forEach(p=>{p.name&&p.defaultValue!==void 0&&(i[p.name]=p.defaultValue)}),{...i,...d,...t,...n?{locale:n}:{}}},Je=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function O(e){var I,T,V,C,P,A,W,R,F;const[t,n]=r.useState(()=>{var y,x;return Be({variationId:(y=e.content)==null?void 0:y.testVariationId,contentId:(x=e.content)==null?void 0:x.id})});function i(y){o(x=>({...x,rootState:y}))}const[d,m]=r.useState(()=>[...$(),...e.customComponents||[]].reduce((y,{component:x,...w})=>({...y,[w.name]:{component:x,...s.serializeIncludingFunctions(w)}}),{})),[a,o]=r.useState(()=>({content:Je({content:e.content,data:e.data}),localState:void 0,rootState:Me({content:e.content,data:e.data,locale:e.locale}),rootSetState:i,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...$(),...e.customComponents||[]].reduce((y,{component:x,...w})=>({...y,[w.name]:s.serializeIncludingFunctions(w)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{},nonce:e.nonce||"",model:e.model||""})),p=r.useRef(!1);if(!p.current){e.apiKey||s.logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop.");const y=(T=(I=a.content)==null?void 0:I.data)==null?void 0:T.jsCode;y&&E.evaluate({code:y,context:e.context||{},localState:void 0,rootState:a.rootState,rootSetState:x=>{Object.assign(a.rootState,x)},isExpression:!1}),p.current=!0}return f.jsx(E.ComponentsContext.Provider,{value:{registeredComponents:d},children:f.jsxs(Ke,{apiHost:e.apiHost,nonce:e.nonce,content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:a,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,isNestedRender:e.isNestedRender,setBuilderContextSignal:o,children:[e.isSsrAbTest?f.jsx(j,{id:"builderio-variant-visibility",scriptStr:t,nonce:e.nonce||""}):null,f.jsx(Oe,{nonce:e.nonce||"",isNestedRender:e.isNestedRender,contentId:(V=a.content)==null?void 0:V.id,cssCode:(P=(C=a.content)==null?void 0:C.data)==null?void 0:P.cssCode,customFonts:(W=(A=a.content)==null?void 0:A.data)==null?void 0:W.customFonts}),f.jsx(E.Blocks,{blocks:(F=(R=a.content)==null?void 0:R.data)==null?void 0:F.blocks,context:a,registeredComponents:d,linkComponent:e.linkComponent})]})})}function Ye(e){var a;const[t,n]=r.useState(()=>Fe({canTrack:s.getDefaultCanTrack(e.canTrack),content:e.content}));function i(){var o;return We(D(e.content).map(p=>({id:p.testVariationId,testRatio:p.testRatio})),((o=e.content)==null?void 0:o.id)||"")}function d(){return D(e.content).map(o=>`.variant-${o.testVariationId} { display: none; } `).join("")}function m(){var o;return t?{...e.content,testVariationId:(o=e.content)==null?void 0:o.id}:s.handleABTestingSync({item:e.content,canTrack:s.getDefaultCanTrack(e.canTrack)})}return r.useEffect(()=>{},[]),f.jsxs(f.Fragment,{children:[!e.isNestedRender&&s.TARGET!=="reactNative"?f.jsx(j,{id:"builderio-init-variants-fns",scriptStr:Ae(),nonce:e.nonce||""}):null,t?f.jsxs(f.Fragment,{children:[f.jsx(E.InlinedStyles,{id:"builderio-variants",styles:d(),nonce:e.nonce||""}),f.jsx(j,{id:"builderio-variants-visibility",scriptStr:i(),nonce:e.nonce||""}),(a=D(e.content))==null?void 0:a.map(o=>f.jsx(O,{apiHost:e.apiHost,isNestedRender:e.isNestedRender,nonce:e.nonce,content:o,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},o.testVariationId))]}):null,f.jsx(O,{apiHost:e.apiHost,nonce:e.nonce,isNestedRender:e.isNestedRender,content:m(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}exports.default=Ye;
@@ -1,9 +1,9 @@
1
1
  import { jsx as h, jsxs as $, Fragment as z } from "react/jsx-runtime";
2
2
  import { lazy as S, useRef as _, useState as I, useEffect as V } from "react";
3
- import { isBrowser as j, TARGET as O, isEditing as F, isPreviewing as te, registerInsertMenu as le, setupBrowserForEditing as se, createRegisterComponentMessage as de, getDefaultCanTrack as H, _track as J, fetchOneEntry as ce, createEditorListener as ue, logFetch as me, serializeIncludingFunctions as Y, logger as pe, handleABTestingSync as fe } from "./server-entry-7ce03a4e.js";
3
+ import { isBrowser as j, TARGET as O, isEditing as F, isPreviewing as te, registerInsertMenu as le, setupBrowserForEditing as se, createRegisterComponentMessage as de, getDefaultCanTrack as H, _track as J, fetchOneEntry as ce, createEditorListener as ue, logFetch as me, serializeIncludingFunctions as Y, logger as pe, handleABTestingSync as fe } from "./server-entry-35f12729.js";
4
4
  import { Video as ge, Button as he, Columns as be, Fragment as ye, Image as xe, Section as ve, Symbol as Se, Text as Te, BuilderContext as Ie } from "./blocks-exports.mjs";
5
- import { triggerAnimation as ke, evaluate as ne, fastClone as Ce, InlinedStyles as ae, ComponentsContext as we, Blocks as Ve } from "./blocks-27ac5b23.js";
6
- import "./get-class-prop-name-a4845b04.js";
5
+ import { triggerAnimation as ke, evaluate as ne, fastClone as Ce, InlinedStyles as ae, ComponentsContext as we, Blocks as Ve } from "./blocks-105e50e5.js";
6
+ import "./get-class-prop-name-6b143ec7.js";
7
7
  import "./dynamic-renderer-8b343325.js";
8
8
  const U = {
9
9
  "@type": "@builder.io/sdk:Element",
@@ -129,7 +129,7 @@ const U = {
129
129
  builderComponents: !0,
130
130
  builderLinkComponent: !0
131
131
  }
132
- }, Ee = S(() => import("./accordion-c020e15b.js")), Fe = {
132
+ }, Ee = S(() => import("./accordion-c786f197.js")), Fe = {
133
133
  name: "Core:Button",
134
134
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
135
135
  defaultStyles: {
@@ -542,7 +542,7 @@ const U = {
542
542
  builderContext: !0,
543
543
  builderComponents: !0
544
544
  }
545
- }, Ue = S(() => import("./slot-23f75377.js")), Le = {
545
+ }, Ue = S(() => import("./slot-b9bcbd41.js")), Le = {
546
546
  name: "Symbol",
547
547
  noWrap: !0,
548
548
  static: !0,
@@ -722,7 +722,7 @@ const U = {
722
722
  builderComponents: !0,
723
723
  builderLinkComponent: !0
724
724
  }
725
- }, qe = S(() => import("./tabs-4c9c64f6.js")), $e = {
725
+ }, qe = S(() => import("./tabs-bc422e4c.js")), $e = {
726
726
  shouldReceiveBuilderProps: {
727
727
  builderBlock: !1,
728
728
  builderContext: !0
@@ -1018,7 +1018,7 @@ const U = {
1018
1018
  builderComponents: !0,
1019
1019
  builderLinkComponent: !0
1020
1020
  }
1021
- }, ze = S(() => import("./form-7fc5691b.js")), Je = {
1021
+ }, ze = S(() => import("./form-7a7b98cf.js")), Je = {
1022
1022
  name: "Form:Input",
1023
1023
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
1024
1024
  inputs: [
@@ -1069,7 +1069,7 @@ const U = {
1069
1069
  borderStyle: "solid",
1070
1070
  borderColor: "#ccc"
1071
1071
  }
1072
- }, Ye = S(() => import("./input-5484e9e7.js")), Ge = {
1072
+ }, Ye = S(() => import("./input-752f3ce9.js")), Ge = {
1073
1073
  name: "Form:Select",
1074
1074
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
1075
1075
  defaultStyles: {
@@ -1111,7 +1111,7 @@ const U = {
1111
1111
  }],
1112
1112
  static: !0,
1113
1113
  noWrap: !0
1114
- }, Qe = S(() => import("./select-b8406bcf.js")), Xe = {
1114
+ }, Qe = S(() => import("./select-a1d6e80e.js")), Xe = {
1115
1115
  name: "Form:SubmitButton",
1116
1116
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
1117
1117
  defaultStyles: {
@@ -1186,7 +1186,7 @@ const U = {
1186
1186
  }],
1187
1187
  noWrap: !0,
1188
1188
  static: !0
1189
- }, at = S(() => import("./img-388698cb.js")), it = {
1189
+ }, at = S(() => import("./img-2c4c6b78.js")), it = {
1190
1190
  name: "Video",
1191
1191
  canHaveChildren: !0,
1192
1192
  defaultStyles: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("react");function d(c){const r=n.useRef(null),[i,p]=n.useState(()=>[]),[u,f]=n.useState(()=>[]);return n.useEffect(()=>{var a;if(!((a=r.current)!=null&&a.getElementsByTagName)||typeof window=="undefined")return;const o=r.current.getElementsByTagName("script");for(let s=0;s<o.length;s++){const e=o[s];if(e.src){if(i.includes(e.src))continue;i.push(e.src);const t=document.createElement("script");t.async=!0,t.src=e.src,document.head.appendChild(t)}else if(!e.type||["text/javascript","application/javascript","application/ecmascript"].includes(e.type)){if(u.includes(e.innerText))continue;try{u.push(e.innerText),new Function(e.innerText)()}catch(t){console.warn("`CustomCode`: Error running script:",t)}}}},[]),l.jsx("div",{ref:r,className:"builder-custom-code"+(c.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:c.code}})}exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("react");function d(c){const s=n.useRef(null),[i,p]=n.useState(()=>[]),[u,f]=n.useState(()=>[]);return n.useEffect(()=>{var a;if(!((a=s.current)!=null&&a.getElementsByTagName)||typeof window=="undefined")return;const o=s.current.getElementsByTagName("script");for(let r=0;r<o.length;r++){const e=o[r];if(e.src){if(i.includes(e.src))continue;i.push(e.src);const t=document.createElement("script");t.async=!0,t.src=e.src,document.head.appendChild(t)}else if(!e.type||["text/javascript","application/javascript","application/ecmascript"].includes(e.type)){if(u.includes(e.innerText))continue;try{u.push(e.innerText),new Function(e.innerText)()}catch(t){console.warn("`CustomCode`: Error running script:",t)}}}},[]),l.jsx("div",{ref:s,className:"builder-custom-code"+(c.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:c.code}})}exports.default=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),h=require("react"),l=require("./blocks-cd946d16.cjs"),T=require("./server-entry-1879cbc4.cjs");require("./blocks-exports.cjs");require("./get-class-prop-name-29fd576a.cjs");require("./dynamic-renderer-b29b45ca.cjs");const A=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],B=()=>{const e=process.env.NODE_ENV||"production";return A.includes(e)?e:"production"};function O(e){var v,x;const o=h.useRef(null),[F,g]=h.useState(()=>"unsubmitted"),[y,S]=h.useState(()=>null),[J,q]=h.useState(()=>"");function N(r){var d,m;const a={...e.builderContext.rootState,...r};e.builderContext.rootSetState?(m=(d=e.builderContext).rootSetState)==null||m.call(d,a):e.builderContext.rootState=a}function f(){return T.isEditing()&&e.previewState||F}function w(r){var d;const a=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")r.preventDefault();else if(a){if(!(e.action||e.sendSubmissionsTo==="email")){r.preventDefault();return}r.preventDefault();const m=r.currentTarget||r.target,E=e.customHeaders||{};let b;const P=new FormData(m),k=Array.from(m.querySelectorAll("input,select,textarea")).filter(t=>!!t.name).map(t=>{let n;const c=t.name;if(t instanceof HTMLInputElement)if(t.type==="radio"){if(t.checked)return n=t.name,{key:c,value:n}}else if(t.type==="checkbox")n=t.checked;else if(t.type==="number"||t.type==="range"){const i=t.valueAsNumber;isNaN(i)||(n=i)}else t.type==="file"?n=t.files:n=t.value;else n=t.value;return{key:c,value:n}});let u=e.contentType;if(e.sendSubmissionsTo==="email"&&(u="multipart/form-data"),Array.from(k).forEach(({value:t})=>{(t instanceof File||Array.isArray(t)&&t[0]instanceof File||t instanceof FileList)&&(u="multipart/form-data")}),u!=="application/json")b=P;else{const t={};Array.from(k).forEach(({value:n,key:c})=>{l.set(t,c,n)}),b=JSON.stringify(t)}u&&u!=="multipart/form-data"&&(a&&((d=e.action)!=null&&d.includes("zapier.com"))||(E["content-type"]=u));const C=new CustomEvent("presubmit",{detail:{body:b}});if(o.current&&(o.current.dispatchEvent(C),C.defaultPrevented))return;g("sending");const D=`${B()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`,j=e.sendSubmissionsTo==="email"?D:e.action;T.logFetch(j),fetch(j,{body:b,headers:E,method:e.method||"post"}).then(async t=>{let n;const c=t.headers.get("content-type");if(c&&c.indexOf("application/json")!==-1?n=await t.json():n=await t.text(),!t.ok&&e.errorMessagePath){let i=l.get(n,e.errorMessagePath);i&&(typeof i!="string"&&(i=JSON.stringify(i)),q(i),N({formErrorMessage:i}))}if(S(n),g(t.ok?"success":"error"),t.ok){const i=new CustomEvent("submit:success",{detail:{res:t,body:n}});if(o.current){if(o.current.dispatchEvent(i),i.defaultPrevented)return;e.resetFormOnSubmit!==!1&&o.current.reset()}if(e.successUrl)if(o.current){const M=new CustomEvent("route",{detail:{url:e.successUrl}});o.current.dispatchEvent(M),M.defaultPrevented||(location.href=e.successUrl)}else location.href=e.successUrl}},t=>{const n=new CustomEvent("submit:error",{detail:{error:t}});o.current&&(o.current.dispatchEvent(n),n.defaultPrevented)||(S(t),g("error"))})}}return s.jsxs(s.Fragment,{children:[" ",s.jsxs("form",{validate:e.validate,ref:o,action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:r=>w(r),...e.attributes,children:[e.builderBlock&&e.builderBlock.children?s.jsx(s.Fragment,{children:(x=(v=e.builderBlock)==null?void 0:v.children)==null?void 0:x.map((r,a)=>s.jsx(l.Block,{block:r,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},`form-block-${a}`))}):null,f()==="error"?s.jsx(l.Blocks,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,f()==="sending"?s.jsx(l.Blocks,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,f()==="error"&&y?s.jsx("pre",{className:"builder-form-error-text pre-135d4696",children:JSON.stringify(y,null,2)}):null,f()==="success"?s.jsx(l.Blocks,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," ",s.jsx("style",{children:".pre-135d4696 { padding: 10px; color: red; text-align: center; }"})," "]})}exports.default=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),h=require("react"),l=require("./blocks-827b0a87.cjs"),T=require("./server-entry-6b2058e2.cjs");require("./blocks-exports.cjs");require("./get-class-prop-name-8fb0e5ad.cjs");require("./dynamic-renderer-b29b45ca.cjs");const A=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],B=()=>{const e=process.env.NODE_ENV||"production";return A.includes(e)?e:"production"};function O(e){var v,x;const o=h.useRef(null),[F,g]=h.useState(()=>"unsubmitted"),[y,S]=h.useState(()=>null),[R,q]=h.useState(()=>"");function N(r){var d,f;const a={...e.builderContext.rootState,...r};e.builderContext.rootSetState?(f=(d=e.builderContext).rootSetState)==null||f.call(d,a):e.builderContext.rootState=a}function m(){return T.isEditing()&&e.previewState||F}function w(r){var d;const a=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")r.preventDefault();else if(a){if(!(e.action||e.sendSubmissionsTo==="email")){r.preventDefault();return}r.preventDefault();const f=r.currentTarget||r.target,E=e.customHeaders||{};let b;const P=new FormData(f),k=Array.from(f.querySelectorAll("input,select,textarea")).filter(t=>!!t.name).map(t=>{let n;const c=t.name;if(t instanceof HTMLInputElement)if(t.type==="radio"){if(t.checked)return n=t.name,{key:c,value:n}}else if(t.type==="checkbox")n=t.checked;else if(t.type==="number"||t.type==="range"){const i=t.valueAsNumber;isNaN(i)||(n=i)}else t.type==="file"?n=t.files:n=t.value;else n=t.value;return{key:c,value:n}});let u=e.contentType;if(e.sendSubmissionsTo==="email"&&(u="multipart/form-data"),Array.from(k).forEach(({value:t})=>{(t instanceof File||Array.isArray(t)&&t[0]instanceof File||t instanceof FileList)&&(u="multipart/form-data")}),u!=="application/json")b=P;else{const t={};Array.from(k).forEach(({value:n,key:c})=>{l.set(t,c,n)}),b=JSON.stringify(t)}u&&u!=="multipart/form-data"&&(a&&((d=e.action)!=null&&d.includes("zapier.com"))||(E["content-type"]=u));const C=new CustomEvent("presubmit",{detail:{body:b}});if(o.current&&(o.current.dispatchEvent(C),C.defaultPrevented))return;g("sending");const D=`${B()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`,j=e.sendSubmissionsTo==="email"?D:e.action;T.logFetch(j),fetch(j,{body:b,headers:E,method:e.method||"post"}).then(async t=>{let n;const c=t.headers.get("content-type");if(c&&c.indexOf("application/json")!==-1?n=await t.json():n=await t.text(),!t.ok&&e.errorMessagePath){let i=l.get(n,e.errorMessagePath);i&&(typeof i!="string"&&(i=JSON.stringify(i)),q(i),N({formErrorMessage:i}))}if(S(n),g(t.ok?"success":"error"),t.ok){const i=new CustomEvent("submit:success",{detail:{res:t,body:n}});if(o.current){if(o.current.dispatchEvent(i),i.defaultPrevented)return;e.resetFormOnSubmit!==!1&&o.current.reset()}if(e.successUrl)if(o.current){const M=new CustomEvent("route",{detail:{url:e.successUrl}});o.current.dispatchEvent(M),M.defaultPrevented||(location.href=e.successUrl)}else location.href=e.successUrl}},t=>{const n=new CustomEvent("submit:error",{detail:{error:t}});o.current&&(o.current.dispatchEvent(n),n.defaultPrevented)||(S(t),g("error"))})}}return s.jsxs(s.Fragment,{children:[" ",s.jsxs("form",{validate:e.validate,ref:o,action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:r=>w(r),...e.attributes,children:[e.builderBlock&&e.builderBlock.children?s.jsx(s.Fragment,{children:(x=(v=e.builderBlock)==null?void 0:v.children)==null?void 0:x.map((r,a)=>s.jsx(l.Block,{block:r,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},`form-block-${a}`))}):null,m()==="error"?s.jsx(l.Blocks,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,m()==="sending"?s.jsx(l.Blocks,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,m()==="error"&&y?s.jsx("pre",{className:"builder-form-error-text pre-3f9754fe",children:JSON.stringify(y,null,2)}):null,m()==="success"?s.jsx(l.Blocks,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," ",s.jsx("style",{children:".pre-3f9754fe { padding: 10px; color: red; text-align: center; }"})," "]})}exports.default=O;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as F, Fragment as N, jsx as c } from "react/jsx-runtime";
2
2
  import { useRef as O, useState as h } from "react";
3
- import { Block as U, Blocks as g, set as B, get as R } from "./blocks-27ac5b23.js";
4
- import { isEditing as $, logFetch as L } from "./server-entry-7ce03a4e.js";
3
+ import { Block as U, Blocks as g, set as B, get as R } from "./blocks-105e50e5.js";
4
+ import { isEditing as $, logFetch as L } from "./server-entry-35f12729.js";
5
5
  import "./blocks-exports.mjs";
6
- import "./get-class-prop-name-a4845b04.js";
6
+ import "./get-class-prop-name-6b143ec7.js";
7
7
  import "./dynamic-renderer-8b343325.js";
8
8
  const q = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], W = () => {
9
9
  const e = process.env.NODE_ENV || "production";
@@ -13,14 +13,14 @@ function X(e) {
13
13
  var S, E;
14
14
  const o = O(null), [w, b] = h(() => "unsubmitted"), [v, y] = h(() => null), [z, D] = h(() => "");
15
15
  function P(r) {
16
- var l, d;
16
+ var l, m;
17
17
  const s = {
18
18
  ...e.builderContext.rootState,
19
19
  ...r
20
20
  };
21
- e.builderContext.rootSetState ? (d = (l = e.builderContext).rootSetState) == null || d.call(l, s) : e.builderContext.rootState = s;
21
+ e.builderContext.rootSetState ? (m = (l = e.builderContext).rootSetState) == null || m.call(l, s) : e.builderContext.rootState = s;
22
22
  }
23
- function m() {
23
+ function d() {
24
24
  return $() && e.previewState || w;
25
25
  }
26
26
  function A(r) {
@@ -34,9 +34,9 @@ function X(e) {
34
34
  return;
35
35
  }
36
36
  r.preventDefault();
37
- const d = r.currentTarget || r.target, x = e.customHeaders || {};
37
+ const m = r.currentTarget || r.target, x = e.customHeaders || {};
38
38
  let f;
39
- const j = new FormData(d), C = Array.from(d.querySelectorAll("input,select,textarea")).filter((t) => !!t.name).map((t) => {
39
+ const j = new FormData(m), C = Array.from(m.querySelectorAll("input,select,textarea")).filter((t) => !!t.name).map((t) => {
40
40
  let n;
41
41
  const a = t.name;
42
42
  if (t instanceof HTMLInputElement)
@@ -138,7 +138,7 @@ function X(e) {
138
138
  },
139
139
  `form-block-${s}`
140
140
  )) }) : null,
141
- m() === "error" ? /* @__PURE__ */ c(
141
+ d() === "error" ? /* @__PURE__ */ c(
142
142
  g,
143
143
  {
144
144
  path: "errorMessage",
@@ -146,7 +146,7 @@ function X(e) {
146
146
  context: e.builderContext
147
147
  }
148
148
  ) : null,
149
- m() === "sending" ? /* @__PURE__ */ c(
149
+ d() === "sending" ? /* @__PURE__ */ c(
150
150
  g,
151
151
  {
152
152
  path: "sendingMessage",
@@ -154,8 +154,8 @@ function X(e) {
154
154
  context: e.builderContext
155
155
  }
156
156
  ) : null,
157
- m() === "error" && v ? /* @__PURE__ */ c("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(v, null, 2) }) : null,
158
- m() === "success" ? /* @__PURE__ */ c(
157
+ d() === "error" && v ? /* @__PURE__ */ c("pre", { className: "builder-form-error-text pre-3f9754fe", children: JSON.stringify(v, null, 2) }) : null,
158
+ d() === "success" ? /* @__PURE__ */ c(
159
159
  g,
160
160
  {
161
161
  path: "successMessage",
@@ -167,7 +167,7 @@ function X(e) {
167
167
  }
168
168
  ),
169
169
  " ",
170
- /* @__PURE__ */ c("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
170
+ /* @__PURE__ */ c("style", { children: ".pre-3f9754fe { padding: 10px; color: red; text-align: center; }" }),
171
171
  " "
172
172
  ] });
173
173
  }
@@ -1,4 +1,4 @@
1
- import { TARGET as e } from "./server-entry-7ce03a4e.js";
1
+ import { TARGET as e } from "./server-entry-35f12729.js";
2
2
  const a = () => {
3
3
  switch (e) {
4
4
  case "react":
@@ -1 +1 @@
1
- "use strict";const e=require("./server-entry-1879cbc4.cjs"),s=()=>{switch(e.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};exports.getClassPropName=s;
1
+ "use strict";const e=require("./server-entry-6b2058e2.cjs"),s=()=>{switch(e.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};exports.getClassPropName=s;
@@ -79,7 +79,7 @@ function R(e) {
79
79
  objectFit: e.backgroundSize || "cover",
80
80
  ...n()
81
81
  },
82
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
82
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-11a47ef4",
83
83
  src: e.image,
84
84
  srcSet: i(),
85
85
  sizes: e.sizes
@@ -89,23 +89,23 @@ function R(e) {
89
89
  e.aspectRatio && !((r = (c = e.builderBlock) == null ? void 0 : c.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ o(
90
90
  "div",
91
91
  {
92
- className: "builder-image-sizer div-c071ff08",
92
+ className: "builder-image-sizer div-11a47ef4",
93
93
  style: {
94
94
  paddingTop: e.aspectRatio * 100 + "%"
95
95
  }
96
96
  }
97
97
  ) : null,
98
98
  (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ o(d, { children: e.children }) : null,
99
- !e.fitContent && ((g = (s = e.builderBlock) == null ? void 0 : s.children) != null && g.length) ? /* @__PURE__ */ o("div", { className: "div-c071ff08-2", children: e.children }) : null
99
+ !e.fitContent && ((g = (s = e.builderBlock) == null ? void 0 : s.children) != null && g.length) ? /* @__PURE__ */ o("div", { className: "div-11a47ef4-2", children: e.children }) : null
100
100
  ] }),
101
- /* @__PURE__ */ o("style", { children: `.img-c071ff08 {
101
+ /* @__PURE__ */ o("style", { children: `.img-11a47ef4 {
102
102
  opacity: 1;
103
103
  transition: opacity 0.2s ease-in-out;
104
- }.div-c071ff08 {
104
+ }.div-11a47ef4 {
105
105
  width: 100%;
106
106
  pointer-events: none;
107
107
  font-size: 0;
108
- }.div-c071ff08-2 {
108
+ }.div-11a47ef4-2 {
109
109
  display: flex;
110
110
  flex-direction: column;
111
111
  align-items: stretch;
@@ -1,11 +1,11 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("react");function g(e){return e.replace(/http(s)?:/,"")}function x(e="",i,t){const n=new RegExp("([?&])"+i+"=.*?(&|$)","i"),a=e.indexOf("?")!==-1?"&":"?";return e.match(n)?e.replace(n,"$1"+i+"="+encodeURIComponent(t)+"$2"):e+a+i+"="+encodeURIComponent(t)}function y(e,i){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!i)return e;if(i==="master")return g(e);const t=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(t){const n=e.split(t[0]),a=t[3],r=i.match("x")?i:`${i}x`;return g(`${n[0]}_${r}${a}`)}return null}function f(e){if(!e)return e;const i=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let t=e;const n=Number(e.split("?width=")[1]);return isNaN(n)||(t=`${t} ${n}w`),i.filter(a=>a!==n).map(a=>`${x(e,"width",a)} ${a}w`).concat([t]).join(", ")}return e.match(/cdn\.shopify\.com/)?i.map(t=>[y(e,`${t}x${t}`),t]).filter(([t])=>!!t).map(([t,n])=>`${t} ${n}w`).concat([e]).join(", "):e}function j(e){var a,r,s,d,u,m;function i(){var h;const o=e.image||e.src;if(!o||!(typeof o=="string"&&(o.match(/builder\.io/)||o.match(/cdn\.shopify\.com/))))return e.srcset;if(!e.noWebp){if(e.srcset&&((h=e.image)!=null&&h.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),f(o)}else if(e.image&&!e.srcset)return f(o);return f(o)}}function t(){var l;return(l=i==null?void 0:i())!=null&&l.match(/builder\.io/)&&!e.noWebp?i().replace(/\?/g,"?format=webp&"):""}function n(){const l={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?l:void 0}return b.useEffect(()=>{},[]),c.jsxs(c.Fragment,{children:[c.jsxs(c.Fragment,{children:[c.jsxs("picture",{children:[t()?c.jsx("source",{type:"image/webp",srcSet:t()}):null,c.jsx("img",{loading:e.highPriority?"eager":"lazy",fetchPriority:e.highPriority?"high":"auto",alt:e.altText,role:e.altText?void 0:"presentation",style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...n()},className:"builder-image"+(e.className?" "+e.className:"")+" img-c071ff08",src:e.image,srcSet:i(),sizes:e.sizes})]}),e.aspectRatio&&!((r=(a=e.builderBlock)==null?void 0:a.children)!=null&&r.length&&e.fitContent)?c.jsx("div",{className:"builder-image-sizer div-c071ff08",style:{paddingTop:e.aspectRatio*100+"%"}}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?c.jsx(c.Fragment,{children:e.children}):null,!e.fitContent&&((m=(u=e.builderBlock)==null?void 0:u.children)!=null&&m.length)?c.jsx("div",{className:"div-c071ff08-2",children:e.children}):null]}),c.jsx("style",{children:`.img-c071ff08 {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("react");function g(e){return e.replace(/http(s)?:/,"")}function x(e="",i,t){const n=new RegExp("([?&])"+i+"=.*?(&|$)","i"),a=e.indexOf("?")!==-1?"&":"?";return e.match(n)?e.replace(n,"$1"+i+"="+encodeURIComponent(t)+"$2"):e+a+i+"="+encodeURIComponent(t)}function y(e,i){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!i)return e;if(i==="master")return g(e);const t=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(t){const n=e.split(t[0]),a=t[3],r=i.match("x")?i:`${i}x`;return g(`${n[0]}_${r}${a}`)}return null}function s(e){if(!e)return e;const i=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let t=e;const n=Number(e.split("?width=")[1]);return isNaN(n)||(t=`${t} ${n}w`),i.filter(a=>a!==n).map(a=>`${x(e,"width",a)} ${a}w`).concat([t]).join(", ")}return e.match(/cdn\.shopify\.com/)?i.map(t=>[y(e,`${t}x${t}`),t]).filter(([t])=>!!t).map(([t,n])=>`${t} ${n}w`).concat([e]).join(", "):e}function j(e){var a,r,d,f,u,m;function i(){var h;const o=e.image||e.src;if(!o||!(typeof o=="string"&&(o.match(/builder\.io/)||o.match(/cdn\.shopify\.com/))))return e.srcset;if(!e.noWebp){if(e.srcset&&((h=e.image)!=null&&h.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),s(o)}else if(e.image&&!e.srcset)return s(o);return s(o)}}function t(){var l;return(l=i==null?void 0:i())!=null&&l.match(/builder\.io/)&&!e.noWebp?i().replace(/\?/g,"?format=webp&"):""}function n(){const l={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?l:void 0}return b.useEffect(()=>{},[]),c.jsxs(c.Fragment,{children:[c.jsxs(c.Fragment,{children:[c.jsxs("picture",{children:[t()?c.jsx("source",{type:"image/webp",srcSet:t()}):null,c.jsx("img",{loading:e.highPriority?"eager":"lazy",fetchPriority:e.highPriority?"high":"auto",alt:e.altText,role:e.altText?void 0:"presentation",style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...n()},className:"builder-image"+(e.className?" "+e.className:"")+" img-11a47ef4",src:e.image,srcSet:i(),sizes:e.sizes})]}),e.aspectRatio&&!((r=(a=e.builderBlock)==null?void 0:a.children)!=null&&r.length&&e.fitContent)?c.jsx("div",{className:"builder-image-sizer div-11a47ef4",style:{paddingTop:e.aspectRatio*100+"%"}}):null,(f=(d=e.builderBlock)==null?void 0:d.children)!=null&&f.length&&e.fitContent?c.jsx(c.Fragment,{children:e.children}):null,!e.fitContent&&((m=(u=e.builderBlock)==null?void 0:u.children)!=null&&m.length)?c.jsx("div",{className:"div-11a47ef4-2",children:e.children}):null]}),c.jsx("style",{children:`.img-11a47ef4 {
2
2
  opacity: 1;
3
3
  transition: opacity 0.2s ease-in-out;
4
- }.div-c071ff08 {
4
+ }.div-11a47ef4 {
5
5
  width: 100%;
6
6
  pointer-events: none;
7
7
  font-size: 0;
8
- }.div-c071ff08-2 {
8
+ }.div-11a47ef4-2 {
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: stretch;