@builder.io/sdk-react 2.0.3 → 2.0.8

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 (82) hide show
  1. package/lib/browser/blocks-exports.cjs +14 -14
  2. package/lib/browser/blocks-exports.mjs +191 -170
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-02cecfb7.cjs → server-entry-ba3e0524.cjs} +1 -1
  8. package/lib/{node/server-entry-0687830a.js → browser/server-entry-f6ee5d92.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-368a2cf8.cjs → accordion-88007399.cjs} +1 -1
  12. package/lib/edge/{accordion-0eca9b08.js → accordion-ef5e6161.js} +1 -1
  13. package/lib/edge/blocks-90fd2fd8.js +808 -0
  14. package/lib/edge/blocks-dc478c97.cjs +12 -0
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-3ed29654.cjs → button-228f448d.cjs} +1 -1
  18. package/lib/edge/{button-e852700f.js → button-8d307faf.js} +2 -2
  19. package/lib/edge/columns-3547be8c.cjs +28 -0
  20. package/lib/edge/{columns-ee464f6c.js → columns-77b7011a.js} +10 -9
  21. package/lib/edge/{content-variants-c0257a99.js → content-variants-4f7cad1a.js} +15 -13
  22. package/lib/edge/content-variants-f0edf280.cjs +134 -0
  23. package/lib/edge/evaluate-384a03ed.js +2615 -0
  24. package/lib/edge/evaluate-39c2c786.cjs +21 -0
  25. package/lib/edge/form-c6da17f5.cjs +1 -0
  26. package/lib/edge/{form-8191004e.js → form-d40e9eca.js} +8 -7
  27. package/lib/edge/{get-class-prop-name-5fc98fcc.cjs → get-class-prop-name-4f8743e9.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-d18337d2.js → get-class-prop-name-767dbeb0.js} +1 -1
  29. package/lib/edge/{image-e3fcd611.js → image-6a074aab.js} +27 -25
  30. package/lib/edge/image-eebfcbac.cjs +17 -0
  31. package/lib/edge/{img-10ef20a5.cjs → img-c50b3839.cjs} +1 -1
  32. package/lib/edge/{img-a24ed75f.js → img-d650b796.js} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/init.cjs +1 -1
  36. package/lib/edge/init.mjs +1 -1
  37. package/lib/edge/{input-3876429d.js → input-5646dcb2.js} +1 -1
  38. package/lib/edge/{input-6325bfc0.cjs → input-aaba7df0.cjs} +1 -1
  39. package/lib/edge/{select-3f0f00f3.cjs → select-2e7bf7d0.cjs} +1 -1
  40. package/lib/edge/{select-5dc1c7d1.js → select-d3905dcd.js} +1 -1
  41. package/lib/edge/{server-entry-ff728468.js → server-entry-29a170e3.js} +1 -1
  42. package/lib/edge/{server-entry-805b9266.cjs → server-entry-b0e7430b.cjs} +1 -1
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/slot-695259cf.cjs +1 -0
  46. package/lib/edge/{slot-20fe5e4f.js → slot-82c0b340.js} +12 -11
  47. package/lib/edge/{symbol-5012ed02.cjs → symbol-5a6a783f.cjs} +1 -1
  48. package/lib/edge/{symbol-e95082e1.js → symbol-91897bd4.js} +2 -2
  49. package/lib/edge/tabs-4c4a6b19.cjs +1 -0
  50. package/lib/edge/{tabs-261e8cd4.js → tabs-a191e7b1.js} +10 -9
  51. package/lib/edge/text-7a00e2f8.cjs +1 -0
  52. package/lib/edge/text-ca974245.js +38 -0
  53. package/lib/node/blocks-exports.cjs +15 -15
  54. package/lib/node/blocks-exports.mjs +192 -171
  55. package/lib/node/index.cjs +1 -1
  56. package/lib/node/index.mjs +2 -2
  57. package/lib/node/init.cjs +1 -1
  58. package/lib/node/init.mjs +2 -2
  59. package/lib/node/{node-runtime-160b6846.cjs → node-runtime-a6fb6ac7.cjs} +1 -1
  60. package/lib/node/{node-runtime-405effc5.js → node-runtime-d8e6d827.js} +1 -1
  61. package/lib/node/{server-entry-02cecfb7.cjs → server-entry-ba3e0524.cjs} +1 -1
  62. package/lib/{browser/server-entry-0687830a.js → node/server-entry-f6ee5d92.js} +1 -1
  63. package/lib/node/server-entry.cjs +1 -1
  64. package/lib/node/server-entry.mjs +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/image/image.types.d.ts +2 -0
  67. package/types/blocks/symbol/symbol.types.d.ts +1 -0
  68. package/types/components/content-variants/content-variants.types.d.ts +2 -1
  69. package/types/components/content-variants/extra-framework-props-types.d.ts +2 -0
  70. package/types/constants/sdk-version.d.ts +1 -1
  71. package/types/context/extra-context-types.d.ts +6 -0
  72. package/types/context/types.d.ts +2 -1
  73. package/lib/edge/blocks-db3cfcac.js +0 -3419
  74. package/lib/edge/blocks-f524a758.cjs +0 -32
  75. package/lib/edge/columns-1f84e26e.cjs +0 -28
  76. package/lib/edge/content-variants-42f2495b.cjs +0 -134
  77. package/lib/edge/form-4444faf2.cjs +0 -1
  78. package/lib/edge/image-344ddbb0.cjs +0 -17
  79. package/lib/edge/slot-a64b535f.cjs +0 -1
  80. package/lib/edge/tabs-d672f816.cjs +0 -1
  81. package/lib/edge/text-5915f038.js +0 -17
  82. package/lib/edge/text-e6dbb721.cjs +0 -1
@@ -1,22 +1,22 @@
1
- "use client";"use strict";var We=Object.defineProperty;var $e=(e,t,n)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Y=(e,t,n)=>($e(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),p=require("./server-entry-02cecfb7.cjs"),h=require("react"),W=require("./node-runtime-160b6846.cjs"),De=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Le=e=>typeof e=="string"&&De.has(e.toLowerCase());function ie(e){return a.jsx(a.Fragment,{children:Le(e.TagName)?a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):a.jsx(a.Fragment,{children:typeof e.TagName=="string"?a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}const M=()=>{switch(p.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function fe(e){function t(){return{...e.attributes,[M()]:`${e.link?"":"builder-button"} ${e.attributes[M()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return a.jsx(ie,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const _=h.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:""}),he=h.createContext({registeredComponents:{}});function Oe(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options}}const Me=({code:e,builder:t,context:n,event:i,localState:o,rootSetState:s,rootState:r})=>{const l=W.getFunctionArguments({builder:t,context:n,event:i,state:ge({rootState:r,localState:o,rootSetState:s})});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function ge({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,o)=>{if(t&&o in t)return t[o];const s=i[o];return typeof s=="object"&&s!==null?ge({rootState:s,localState:void 0,rootSetState:n?r=>{i[o]=r,n(i)}:void 0}):s},set:(i,o,s)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[o]=s,n==null||n(i),!0}})}function Ue(){var e;return typeof process!="undefined"&&p.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const He=()=>{var i;if(!Ue())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(i=process.env.NODE_OPTIONS)==null?void 0:i.includes("--no-node-snapshot");return e&&t&&!n?(p.logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},qe=e=>p.isBrowser()||He()?Me(e):W.runInNode(e),N=class N{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return N.cache.get(t)}static setCachedValue(t,n){N.cache.size>20&&N.cache.delete(N.cache.keys().next().value),N.cache.set(t,{value:n})}};Y(N,"cacheLimit",20),Y(N,"cache",new Map);let L=N;function U({code:e,context:t,localState:n,rootState:i,rootSetState:o,event:s,isExpression:r=!0,enableCache:l}){if(e==="")return;const c={code:W.parseCode(e,{isExpression:r}),builder:W.getBuilderGlobals(),context:t,event:s,rootSetState:o,rootState:i,localState:n};if(l){const u=L.getCacheKey(c),f=L.getCachedValue(u);if(f)return f.value}try{const u=qe(c);if(l){const f=L.getCacheKey(c);L.setCachedValue(f,u)}return u}catch(u){p.logger.error("Failed code evaluation: "+u.message,{code:e});return}}const Ke=({block:e,context:t,localState:n,rootState:i,rootSetState:o})=>{if(!e.bindings)return e;const s=W.fastClone(e),r={...s,properties:{...s.properties},actions:{...s.actions}};for(const l in e.bindings){const c=e.bindings[l],u=U({code:c,localState:n,rootState:i,rootSetState:o,context:t,enableCache:!0});W.set(r,l,u)}return r};function z({block:e,context:t,shouldEvaluateBindings:n,localState:i,rootState:o,rootSetState:s}){const r=e;return n?Ke({block:r,localState:i,rootState:o,rootSetState:s,context:t}):r}const J=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function ze(e,t,n={}){let i,o,s,r=null,l=0;const c=function(){l=n.leading===!1?0:Date.now(),r=null,s=e.apply(i,o),r||(i=o=null)};return function(){const u=Date.now();!l&&n.leading===!1&&(l=u);const f=t-(u-l);return i=this,o=arguments,f<=0||f>t?(r&&(clearTimeout(r),r=null),l=u,s=e.apply(i,o),r||(i=o=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),s}}function O(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const o=arguments[i];if(o!=null)for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n}function _e(e){for(const t of e)switch(t.trigger){case"pageLoad":pe(t);break;case"scrollInView":Ge(t);break}}function be(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function xe(e,t){const n=Je(e),i=getComputedStyle(t),o=e.steps[0].styles,s=e.steps[e.steps.length-1].styles,r=[o,s];for(const l of r)for(const c of n)c in l||(l[c]=i[c])}function Je(e){const t=[];for(const n of e.steps)for(const i in n.styles)t.indexOf(i)===-1&&t.push(i);return t}function pe(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){be(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{xe(e,n),n.style.transition="none",n.style.transitionDelay="0",O(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${J(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),O(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function Ge(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){be(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{xe(e,n);let i=!1,o=!1;function s(){!i&&l(n)?(i=!0,o=!0,setTimeout(()=>{O(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",r),setTimeout(()=>{o=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!o&&!l(n)&&(i=!1,O(n.style,e.steps[0].styles))}const r=ze(s,200,{leading:!1});function l(f){const d=f.getBoundingClientRect(),m=window.innerHeight,v=(e.thresholdPercent||0)/100*m;return d.bottom>v&&d.top<m-v}const c=e.steps[0].styles;function u(){O(n.style,c)}u(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${J(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",r,{capture:!0,passive:!0}),s()})}const ye=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${J(n)}: ${i};`}).filter(p.checkIsDefined),Ye=e=>ye(e).join(`
1
+ "use client";"use strict";var We=Object.defineProperty;var $e=(e,t,n)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Y=(e,t,n)=>($e(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),p=require("./server-entry-ba3e0524.cjs"),h=require("react"),W=require("./node-runtime-a6fb6ac7.cjs"),De=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Le=e=>typeof e=="string"&&De.has(e.toLowerCase());function ie(e){return a.jsx(a.Fragment,{children:Le(e.TagName)?a.jsx(a.Fragment,{children:a.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):a.jsx(a.Fragment,{children:typeof e.TagName=="string"?a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):a.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}const U=()=>{switch(p.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function fe(e){function t(){return{...e.attributes,[U()]:`${e.link?"":"builder-button"} ${e.attributes[U()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return a.jsx(ie,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const _=h.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:""}),he=h.createContext({registeredComponents:{}});function Oe(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options}}const Me=({code:e,builder:t,context:n,event:i,localState:o,rootSetState:s,rootState:r})=>{const l=W.getFunctionArguments({builder:t,context:n,event:i,state:ge({rootState:r,localState:o,rootSetState:s})});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function ge({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,o)=>{if(t&&o in t)return t[o];const s=i[o];return typeof s=="object"&&s!==null?ge({rootState:s,localState:void 0,rootSetState:n?r=>{i[o]=r,n(i)}:void 0}):s},set:(i,o,s)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[o]=s,n==null||n(i),!0}})}function Ue(){var e;return typeof process!="undefined"&&p.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const He=()=>{var i;if(!Ue())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(i=process.env.NODE_OPTIONS)==null?void 0:i.includes("--no-node-snapshot");return e&&t&&!n?(p.logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},qe=e=>p.isBrowser()||He()?Me(e):W.runInNode(e),N=class N{static getCacheKey(t){return JSON.stringify({...t,event:t.event?Math.random():void 0})}static getCachedValue(t){return N.cache.get(t)}static setCachedValue(t,n){N.cache.size>20&&N.cache.delete(N.cache.keys().next().value),N.cache.set(t,{value:n})}};Y(N,"cacheLimit",20),Y(N,"cache",new Map);let L=N;function O({code:e,context:t,localState:n,rootState:i,rootSetState:o,event:s,isExpression:r=!0,enableCache:l}){if(e==="")return;const c={code:W.parseCode(e,{isExpression:r}),builder:W.getBuilderGlobals(),context:t,event:s,rootSetState:o,rootState:i,localState:n};if(l){const d=L.getCacheKey(c),f=L.getCachedValue(d);if(f)return f.value}try{const d=qe(c);if(l){const f=L.getCacheKey(c);L.setCachedValue(f,d)}return d}catch(d){p.logger.error("Failed code evaluation: "+d.message,{code:e});return}}const Ke=({block:e,context:t,localState:n,rootState:i,rootSetState:o})=>{if(!e.bindings)return e;const s=W.fastClone(e),r={...s,properties:{...s.properties},actions:{...s.actions}};for(const l in e.bindings){const c=e.bindings[l],d=O({code:c,localState:n,rootState:i,rootSetState:o,context:t,enableCache:!0});W.set(r,l,d)}return r};function z({block:e,context:t,shouldEvaluateBindings:n,localState:i,rootState:o,rootSetState:s}){const r=e;return n?Ke({block:r,localState:i,rootState:o,rootSetState:s,context:t}):r}const J=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function ze(e,t,n={}){let i,o,s,r=null,l=0;const c=function(){l=n.leading===!1?0:Date.now(),r=null,s=e.apply(i,o),r||(i=o=null)};return function(){const d=Date.now();!l&&n.leading===!1&&(l=d);const f=t-(d-l);return i=this,o=arguments,f<=0||f>t?(r&&(clearTimeout(r),r=null),l=d,s=e.apply(i,o),r||(i=o=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),s}}function M(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const o=arguments[i];if(o!=null)for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n}function _e(e){for(const t of e)switch(t.trigger){case"pageLoad":pe(t);break;case"scrollInView":Ge(t);break}}function be(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function xe(e,t){const n=Je(e),i=getComputedStyle(t),o=e.steps[0].styles,s=e.steps[e.steps.length-1].styles,r=[o,s];for(const l of r)for(const c of n)c in l||(l[c]=i[c])}function Je(e){const t=[];for(const n of e.steps)for(const i in n.styles)t.indexOf(i)===-1&&t.push(i);return t}function pe(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){be(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{xe(e,n),n.style.transition="none",n.style.transitionDelay="0",M(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${J(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),M(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function Ge(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){be(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{xe(e,n);let i=!1,o=!1;function s(){!i&&l(n)?(i=!0,o=!0,setTimeout(()=>{M(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",r),setTimeout(()=>{o=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!o&&!l(n)&&(i=!1,M(n.style,e.steps[0].styles))}const r=ze(s,200,{leading:!1});function l(f){const u=f.getBoundingClientRect(),m=window.innerHeight,S=(e.thresholdPercent||0)/100*m;return u.bottom>S&&u.top<m-S}const c=e.steps[0].styles;function d(){M(n.style,c)}d(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${J(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",r,{capture:!0,passive:!0}),s()})}const ye=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${J(n)}: ${i};`}).filter(p.checkIsDefined),Ye=e=>ye(e).join(`
2
2
  `),q=({mediaQuery:e,className:t,styles:n})=>{const i=`.${t} {
3
3
  ${Ye(n)}
4
4
  }`;return e?`${e} {
5
5
  ${i}
6
- }`:i};function Qe({style:e}){return e}const Xe=({block:e,context:t})=>ve(Qe({style:e.style||{},context:t,block:e}));function ve(e){switch(p.TARGET){case"svelte":case"vue":case"solid":case"angular":return ye(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Ze=({block:e,context:t,registeredComponents:n})=>{var s;const i=(s=z({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:s.name;if(!i)return null;const o=n[i];if(o)return o;console.warn(`
6
+ }`:i};function Qe({style:e}){return e}const Xe=({block:e,context:t})=>Se(Qe({style:e.style||{},context:t,block:e}));function Se(e){switch(p.TARGET){case"svelte":case"vue":case"solid":case"angular":return ye(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Ze=({block:e,context:t,registeredComponents:n})=>{var s;const i=(s=z({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:s.name;if(!i)return null;const o=n[i];if(o)return o;console.warn(`
7
7
  Could not find a registered component named "${i}".
8
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},et=({block:e,context:t})=>{const{repeat:n,...i}=e;if(!(n!=null&&n.collection))return;const o=U({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const s=n.collection.split(".").pop(),r=n.itemName||(s?s+"Item":"item");return o.map((c,u)=>({context:{...t,localState:{...t.localState,$index:u,$item:c,[r]:c,[`$${r}Index`]:u}},block:i}))},tt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},nt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderComponents?{builderComponents:t}:{}},it=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},ot=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},Se={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},ae=(e,t=Se)=>`@media (max-width: ${t[e].max}px)`,ke=({small:e,medium:t})=>{const n=W.fastClone(Se);if(!e||!t)return n;const i=Math.floor(e/2);n.small={max:e,min:i,default:i+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const s=n.medium.max+1;return n.large={max:2e3,min:s,default:s+1},n};function G(e){return a.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id,nonce:e.nonce})}function at(e){function t(){const i=z({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return p.checkIsDefined(i.hide)?!i.hide:p.checkIsDefined(i.show)?i.show:!0}function n(){var y,j,R;const i=z({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),o=i.responsiveStyles,s=e.context.content,r=ke(((y=s==null?void 0:s.meta)==null?void 0:y.breakpoints)||{}),l=o==null?void 0:o.large,c=o==null?void 0:o.medium,u=o==null?void 0:o.small,f=i.id;if(!f)return"";const d=l?q({className:f,styles:l}):"",m=c?q({className:f,styles:c,mediaQuery:ae("medium",r)}):"",b=u?q({className:f,styles:u,mediaQuery:ae("small",r)}):"",v=i.animations&&i.animations.find(B=>B.trigger==="hover");let I="";if(v){const B=((R=(j=v.steps)==null?void 0:j[1])==null?void 0:R.styles)||{};I=q({className:`${f}:hover`,styles:{...B,transition:`all ${v.duration}s ${J(v.easing)}`,transitionDelay:v.delay?`${v.delay}s`:"0s"}})||""}return[d,m,b,I].join(" ")}return a.jsx(a.Fragment,{children:n()&&t()?a.jsx(a.Fragment,{children:a.jsx(G,{id:"builderio-block",styles:n(),nonce:e.context.nonce})}):null})}function rt(e){return e.charAt(0).toUpperCase()+e.slice(1)}const lt=e=>`on${rt(e)}`,st=(e,t)=>n=>U({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,enableCache:!0});function Ce(e){var i;const t={},n=(i=e.block.actions)!=null?i:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];let r=lt(o);if(e.stripPrefix)switch(p.TARGET){case"vue":r=r.replace("v-on:","");break;case"svelte":r=r.replace("on:","");break}t[r]=st(s,e)}return t}function ct({properties:e}){return e}const dt=e=>({href:e.href});function oe({block:e,context:t}){var i;const n={...dt(e),...e.properties,"builder-id":e.id,style:Xe({block:e,context:t}),[M()]:[e.id,"builder-block",e.class,(i=e.properties)==null?void 0:i.class].filter(Boolean).join(" ")};return ct({properties:n,context:t,block:e})}function ut(e){return a.jsx(ie,{TagName:e.Wrapper,attributes:oe({block:e.block,context:e.context}),actionAttributes:Ce({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function mt(e){function t(){return e.includeBlockProps?{...oe({block:e.block,context:e.context}),...Ce({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return a.jsx(e.Wrapper,{...e.wrapperProps,attributes:t(),children:e.children})}const ft=({componentOptions:e,builderBlock:t,context:n,componentRef:i,includeBlockProps:o,isInteractive:s,contextValue:r})=>{const l={...e,...o?{attributes:oe({block:t,context:r})}:{}};return s?{Wrapper:i,block:t,context:n,wrapperProps:e,includeBlockProps:o}:l};function re(e){var i;const[t,n]=h.useState(()=>e.isInteractive?mt:e.componentRef);return a.jsx(a.Fragment,{children:e.componentRef?a.jsx(a.Fragment,{children:a.jsx(t,{...ft({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(i=e.blockChildren)==null?void 0:i.map(o=>a.jsx(H,{block:o,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},o.id))})}):null})}function ht(e){const[t,n]=h.useState(()=>e.repeatContext);return a.jsx(_.Provider,{value:t,children:a.jsx(H,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}function H(e){var c,u,f;function t(){return Ze({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function n(){return et({block:e.block,context:e.context})}function i(){var d;return(d=e.block.repeat)!=null&&d.collection?e.block:z({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function o(){var m;return e.block.tagName==="a"||((m=i().properties)==null?void 0:m.href)||i().href?e.linkComponent||"a":e.block.tagName||"div"}function s(){var b,v;if((b=e.block.repeat)!=null&&b.collection)return!!((v=n==null?void 0:n())!=null&&v.length);const d="hide"in i()?i().hide:!1;return("show"in i()?i().show:!0)&&!d}function r(){var m,b;return!((m=t==null?void 0:t())!=null&&m.component)&&!n()?(b=i().children)!=null?b:[]:[]}function l(){var d,m,b,v;return{blockChildren:(d=i().children)!=null?d:[],componentRef:(m=t==null?void 0:t())==null?void 0:m.component,componentOptions:{...Oe(i()),...it(t(),i()),...ot(t(),e.context),...tt(t(),e.linkComponent),...nt(t(),e.registeredComponents)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:i(),includeBlockProps:((b=t==null?void 0:t())==null?void 0:b.noWrap)===!0,isInteractive:!((v=t==null?void 0:t())!=null&&v.isRSC)}}return h.useEffect(()=>{const d=i().id,m=i().animations;m&&d&&_e(m.map(b=>({...b,elementId:d})))},[]),a.jsx(a.Fragment,{children:s()?a.jsxs(a.Fragment,{children:[a.jsx(at,{block:e.block,context:e.context}),(c=t==null?void 0:t())!=null&&c.noWrap?a.jsx(a.Fragment,{children:a.jsx(re,{componentRef:l().componentRef,componentOptions:l().componentOptions,blockChildren:l().blockChildren,context:l().context,registeredComponents:l().registeredComponents,linkComponent:l().linkComponent,builderBlock:l().builderBlock,includeBlockProps:l().includeBlockProps,isInteractive:l().isInteractive})}):a.jsx(a.Fragment,{children:n()?a.jsx(a.Fragment,{children:(f=n())==null?void 0:f.map((d,m)=>a.jsx(ht,{repeatContext:d.context,block:d.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},m))}):a.jsxs(ut,{Wrapper:o(),block:i(),context:e.context,children:[a.jsx(re,{componentRef:l().componentRef,componentOptions:l().componentOptions,blockChildren:l().blockChildren,context:l().context,registeredComponents:l().registeredComponents,linkComponent:l().linkComponent,builderBlock:l().builderBlock,includeBlockProps:l().includeBlockProps,isInteractive:l().isInteractive}),(u=r())==null?void 0:u.map(d=>a.jsx(H,{block:d,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},d.id))]})})]}):null})}function gt(e){function t(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function n(){var o,s;p.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((s=window.parent)==null||s.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function i(){var o,s;p.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((s=window.parent)==null||s.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return a.jsxs(a.Fragment,{children:[a.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>n(),onMouseEnter:o=>i(),onKeyPress:o=>n(),...e.BlocksWrapperProps,children:e.children}),a.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
8
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},et=({block:e,context:t})=>{const{repeat:n,...i}=e;if(!(n!=null&&n.collection))return;const o=O({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,enableCache:!0});if(!Array.isArray(o))return;const s=n.collection.split(".").pop(),r=n.itemName||(s?s+"Item":"item");return o.map((c,d)=>({context:{...t,localState:{...t.localState,$index:d,$item:c,[r]:c,[`$${r}Index`]:d}},block:i}))},tt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},nt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderComponents?{builderComponents:t}:{}},it=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},ot=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},ve={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},ae=(e,t=ve)=>`@media (max-width: ${t[e].max}px)`,ke=({small:e,medium:t})=>{const n=W.fastClone(ve);if(!e||!t)return n;const i=Math.floor(e/2);n.small={max:e,min:i,default:i+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const s=n.medium.max+1;return n.large={max:2e3,min:s,default:s+1},n};function G(e){return a.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id,nonce:e.nonce})}function at(e){function t(){const i=z({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return p.checkIsDefined(i.hide)?!i.hide:p.checkIsDefined(i.show)?i.show:!0}function n(){var y,j,R;const i=z({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}),o=i.responsiveStyles,s=e.context.content,r=ke(((y=s==null?void 0:s.meta)==null?void 0:y.breakpoints)||{}),l=o==null?void 0:o.large,c=o==null?void 0:o.medium,d=o==null?void 0:o.small,f=i.id;if(!f)return"";const u=l?q({className:f,styles:l}):"",m=c?q({className:f,styles:c,mediaQuery:ae("medium",r)}):"",b=d?q({className:f,styles:d,mediaQuery:ae("small",r)}):"",S=i.animations&&i.animations.find(B=>B.trigger==="hover");let I="";if(S){const B=((R=(j=S.steps)==null?void 0:j[1])==null?void 0:R.styles)||{};I=q({className:`${f}:hover`,styles:{...B,transition:`all ${S.duration}s ${J(S.easing)}`,transitionDelay:S.delay?`${S.delay}s`:"0s"}})||""}return[u,m,b,I].join(" ")}return a.jsx(a.Fragment,{children:n()&&t()?a.jsx(a.Fragment,{children:a.jsx(G,{id:"builderio-block",styles:n(),nonce:e.context.nonce})}):null})}function rt(e){return e.charAt(0).toUpperCase()+e.slice(1)}const lt=e=>`on${rt(e)}`,st=(e,t)=>n=>O({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,enableCache:!0});function Ce(e){var i;const t={},n=(i=e.block.actions)!=null?i:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];let r=lt(o);if(e.stripPrefix)switch(p.TARGET){case"vue":r=r.replace("v-on:","");break;case"svelte":r=r.replace("on:","");break}t[r]=st(s,e)}return t}function ct({properties:e}){return e}const dt=e=>({href:e.href});function oe({block:e,context:t}){var i;const n={...dt(e),...e.properties,"builder-id":e.id,style:Xe({block:e,context:t}),[U()]:[e.id,"builder-block",e.class,(i=e.properties)==null?void 0:i.class].filter(Boolean).join(" ")};return ct({properties:n,context:t,block:e})}function ut(e){return a.jsx(ie,{TagName:e.Wrapper,attributes:oe({block:e.block,context:e.context}),actionAttributes:Ce({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function mt(e){function t(){return e.includeBlockProps?{...oe({block:e.block,context:e.context}),...Ce({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return a.jsx(e.Wrapper,{...e.wrapperProps,attributes:t(),children:e.children})}const ft=({componentOptions:e,builderBlock:t,context:n,componentRef:i,includeBlockProps:o,isInteractive:s,contextValue:r})=>{const l={...e,...o?{attributes:oe({block:t,context:r})}:{}};return s?{Wrapper:i,block:t,context:n,wrapperProps:e,includeBlockProps:o}:l};function re(e){var i;const[t,n]=h.useState(()=>e.isInteractive?mt:e.componentRef);return a.jsx(a.Fragment,{children:e.componentRef?a.jsx(a.Fragment,{children:a.jsx(t,{...ft({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(i=e.blockChildren)==null?void 0:i.map(o=>a.jsx(H,{block:o,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},o.id))})}):null})}function ht(e){const[t,n]=h.useState(()=>e.repeatContext);return a.jsx(_.Provider,{value:t,children:a.jsx(H,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}function H(e){var c,d,f;function t(){return Ze({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function n(){return et({block:e.block,context:e.context})}function i(){var u;return(u=e.block.repeat)!=null&&u.collection?e.block:z({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function o(){var m;return e.block.tagName==="a"||((m=i().properties)==null?void 0:m.href)||i().href?e.linkComponent||"a":e.block.tagName||"div"}function s(){var b,S;if((b=e.block.repeat)!=null&&b.collection)return!!((S=n==null?void 0:n())!=null&&S.length);const u="hide"in i()?i().hide:!1;return("show"in i()?i().show:!0)&&!u}function r(){var m,b;return!((m=t==null?void 0:t())!=null&&m.component)&&!n()?(b=i().children)!=null?b:[]:[]}function l(){var u,m,b,S;return{blockChildren:(u=i().children)!=null?u:[],componentRef:(m=t==null?void 0:t())==null?void 0:m.component,componentOptions:{...Oe(i()),...it(t(),i()),...ot(t(),e.context),...tt(t(),e.linkComponent),...nt(t(),e.registeredComponents)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:i(),includeBlockProps:((b=t==null?void 0:t())==null?void 0:b.noWrap)===!0,isInteractive:!((S=t==null?void 0:t())!=null&&S.isRSC&&p.TARGET==="rsc")}}return h.useEffect(()=>{const u=i().id,m=i().animations;m&&u&&_e(m.map(b=>({...b,elementId:u})))},[]),a.jsx(a.Fragment,{children:s()?a.jsxs(a.Fragment,{children:[a.jsx(at,{block:e.block,context:e.context}),(c=t==null?void 0:t())!=null&&c.noWrap?a.jsx(a.Fragment,{children:a.jsx(re,{componentRef:l().componentRef,componentOptions:l().componentOptions,blockChildren:l().blockChildren,context:l().context,registeredComponents:l().registeredComponents,linkComponent:l().linkComponent,builderBlock:l().builderBlock,includeBlockProps:l().includeBlockProps,isInteractive:l().isInteractive})}):a.jsx(a.Fragment,{children:n()?a.jsx(a.Fragment,{children:(f=n())==null?void 0:f.map((u,m)=>a.jsx(ht,{repeatContext:u.context,block:u.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},m))}):a.jsxs(ut,{Wrapper:o(),block:i(),context:e.context,children:[a.jsx(re,{componentRef:l().componentRef,componentOptions:l().componentOptions,blockChildren:l().blockChildren,context:l().context,registeredComponents:l().registeredComponents,linkComponent:l().linkComponent,builderBlock:l().builderBlock,includeBlockProps:l().includeBlockProps,isInteractive:l().isInteractive}),(d=r())==null?void 0:d.map(u=>a.jsx(H,{block:u,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},u.id))]})})]}):null})}function gt(e){function t(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function n(){var o,s;p.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((s=window.parent)==null||s.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function i(){var o,s;p.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((s=window.parent)==null||s.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return a.jsxs(a.Fragment,{children:[a.jsx(e.BlocksWrapper,{className:t()+" props-blocks-wrapper-7cd1560e","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>n(),onMouseEnter:o=>i(),onKeyPress:o=>n(),...e.BlocksWrapperProps,children:e.children}),a.jsx("style",{children:`.props-blocks-wrapper-7cd1560e {
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: stretch;
12
- }`})]})}function A(e){var i,o,s;const t=h.useContext(_),n=h.useContext(he);return a.jsx(gt,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:((i=e.context)==null?void 0:i.BlocksWrapper)||t.BlocksWrapper,BlocksWrapperProps:((o=e.context)==null?void 0:o.BlocksWrapperProps)||t.BlocksWrapperProps,children:e.blocks?a.jsx(a.Fragment,{children:(s=e.blocks)==null?void 0:s.map(r=>a.jsx(H,{block:r,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||n.registeredComponents},r.id))}):null})}const bt=e=>`builder-columns ${e}-breakpoints`;function Te(e){var B,$;const[t,n]=h.useState(()=>typeof e.space=="number"?e.space||0:20),[i,o]=h.useState(()=>e.columns||[]),[s,r]=h.useState(()=>e.stackColumnsAt||"tablet");function l(S){return S.link?e.builderLinkComponent||"a":"div"}function c(S){var E;return((E=i[S])==null?void 0:E.width)||100/i.length}function u(S){const E=c(S),P=t*(i.length-1)*(E/100);return`calc(${E}% - ${P}px)`}function f({stackedStyle:S,desktopStyle:E}){return s==="tablet"?S:E}function d({stackedStyle:S,desktopStyle:E}){return s==="never"?E:S}const[m,b]=h.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function v(){return{"--flex-dir":m,"--flex-dir-tablet":f({stackedStyle:m,desktopStyle:"row"})}}function I(S){const E=S===0?0:t,P=u(S),x=`${E}px`,g="100%",k=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:P,["marginLeft"]:x,"--column-width-mobile":d({stackedStyle:g,desktopStyle:P}),"--column-margin-left-mobile":d({stackedStyle:k,desktopStyle:x}),"--column-width-tablet":f({stackedStyle:g,desktopStyle:P}),"--column-margin-left-tablet":f({stackedStyle:k,desktopStyle:x})}}function y(S){var P,x;return ke(((x=(P=e.builderContext.content)==null?void 0:P.meta)==null?void 0:x.breakpoints)||{})[S].max}function j(){const S=`.${e.builderBlock.id}-breakpoints > .builder-column`;return`
12
+ }`})]})}function A(e){var i,o,s;const t=h.useContext(_),n=h.useContext(he);return a.jsx(gt,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:((i=e.context)==null?void 0:i.BlocksWrapper)||t.BlocksWrapper,BlocksWrapperProps:((o=e.context)==null?void 0:o.BlocksWrapperProps)||t.BlocksWrapperProps,children:e.blocks?a.jsx(a.Fragment,{children:(s=e.blocks)==null?void 0:s.map(r=>a.jsx(H,{block:r,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||n.registeredComponents},r.id))}):null})}const bt=e=>`builder-columns ${e}-breakpoints`;function Te(e){var B,$;const[t,n]=h.useState(()=>typeof e.space=="number"?e.space||0:20),[i,o]=h.useState(()=>e.columns||[]),[s,r]=h.useState(()=>e.stackColumnsAt||"tablet");function l(v){return v.link?e.builderLinkComponent||"a":"div"}function c(v){var E;return((E=i[v])==null?void 0:E.width)||100/i.length}function d(v){const E=c(v),P=t*(i.length-1)*(E/100);return`calc(${E}% - ${P}px)`}function f({stackedStyle:v,desktopStyle:E}){return s==="tablet"?v:E}function u({stackedStyle:v,desktopStyle:E}){return s==="never"?E:v}const[m,b]=h.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function S(){return{"--flex-dir":m,"--flex-dir-tablet":f({stackedStyle:m,desktopStyle:"row"})}}function I(v){const E=v===0?0:t,P=d(v),x=`${E}px`,g="100%",k=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:P,["marginLeft"]:x,"--column-width-mobile":u({stackedStyle:g,desktopStyle:P}),"--column-margin-left-mobile":u({stackedStyle:k,desktopStyle:x}),"--column-width-tablet":f({stackedStyle:g,desktopStyle:P}),"--column-margin-left-tablet":f({stackedStyle:k,desktopStyle:x})}}function y(v){var P,x;return ke(((x=(P=e.builderContext.content)==null?void 0:P.meta)==null?void 0:x.breakpoints)||{})[v].max}function j(){const v=`.${e.builderBlock.id}-breakpoints > .builder-column`;return`
13
13
  @media (max-width: ${y("medium")}px) {
14
14
  .${e.builderBlock.id}-breakpoints {
15
15
  flex-direction: var(--flex-dir-tablet);
16
16
  align-items: stretch;
17
17
  }
18
18
 
19
- ${S} {
19
+ ${v} {
20
20
  width: var(--column-width-tablet) !important;
21
21
  margin-left: var(--column-margin-left-tablet) !important;
22
22
  }
@@ -28,22 +28,22 @@
28
28
  align-items: stretch;
29
29
  }
30
30
 
31
- ${S} {
31
+ ${v} {
32
32
  width: var(--column-width-mobile) !important;
33
33
  margin-left: var(--column-margin-left-mobile) !important;
34
34
  }
35
35
  },
36
- `}function R(S,E){return{...S.link?{href:S.link}:{},[M()]:"builder-column",style:ve(I(E))}}return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:bt((B=e.builderBlock)==null?void 0:B.id)+" div-34f576bb",style:v(),children:[a.jsx(G,{id:"builderio-columns",styles:j(),nonce:e.builderContext.nonce}),($=e.columns)==null?void 0:$.map((S,E)=>a.jsx(ie,{TagName:l(S),actionAttributes:{},attributes:R(S,E),children:a.jsx(A,{path:`component.options.columns.${E}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:S.blocks})},E))]}),a.jsx("style",{children:`.div-34f576bb {
36
+ `}function R(v,E){return{...v.link?{href:v.link}:{},[U()]:"builder-column",style:Se(I(E))}}return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:bt((B=e.builderBlock)==null?void 0:B.id)+" div-34f576bb",style:S(),children:[a.jsx(G,{id:"builderio-columns",styles:j(),nonce:e.builderContext.nonce}),($=e.columns)==null?void 0:$.map((v,E)=>a.jsx(ie,{TagName:l(v),actionAttributes:{},attributes:R(v,E),children:a.jsx(A,{path:`component.options.columns.${E}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:v.blocks})},E))]}),a.jsx("style",{children:`.div-34f576bb {
37
37
  display: flex;
38
38
  line-height: normal;
39
- }`})]})}function Ie(e){return a.jsx("span",{children:e.children})}function le(e){return e.replace(/http(s)?:/,"")}function xt(e="",t,n){const i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function pt(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return le(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const i=e.split(n[0]),o=n[3],s=t.match("x")?t:`${t}x`;return le(`${i[0]}_${s}${o}`)}return null}function Q(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const i=Number(e.split("?width=")[1]);return isNaN(i)||(n=`${n} ${i}w`),t.filter(o=>o!==i).map(o=>`${xt(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[pt(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,i])=>`${n} ${i}w`).concat([e]).join(", "):e}function we(e){var o,s,r,l,c,u;function t(){var m;const d=e.image||e.src;if(!d||!(d.match(/builder\.io/)||d.match(/cdn\.shopify\.com/)))return e.srcset;if(!e.noWebp){if(e.srcset&&((m=e.image)!=null&&m.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),Q(d)}else if(e.image&&!e.srcset)return Q(d);return Q(d)}}function n(){var f;return(f=t==null?void 0:t())!=null&&f.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function i(){const f={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?f:void 0}return a.jsxs(a.Fragment,{children:[a.jsxs(a.Fragment,{children:[a.jsxs("picture",{children:[n()?a.jsx("source",{type:"image/webp",srcSet:n()}):null,a.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",...i()},className:"builder-image"+(e.className?" "+e.className:"")+" img-56bbd606",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((s=(o=e.builderBlock)==null?void 0:o.children)!=null&&s.length&&e.fitContent)?a.jsx("div",{className:"builder-image-sizer div-56bbd606",style:{paddingTop:e.aspectRatio*100+"%"}}):null,(l=(r=e.builderBlock)==null?void 0:r.children)!=null&&l.length&&e.fitContent?a.jsx(a.Fragment,{children:e.children}):null,!e.fitContent&&((u=(c=e.builderBlock)==null?void 0:c.children)!=null&&u.length)?a.jsx("div",{className:"div-56bbd606-2",children:e.children}):null]}),a.jsx("style",{children:`.img-56bbd606 {
39
+ }`})]})}function Ie(e){return a.jsx("span",{children:e.children})}function le(e){return e.replace(/http(s)?:/,"")}function xt(e="",t,n){const i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+o+t+"="+encodeURIComponent(n)}function pt(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return le(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const i=e.split(n[0]),o=n[3],s=t.match("x")?t:`${t}x`;return le(`${i[0]}_${s}${o}`)}return null}function Q(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const i=Number(e.split("?width=")[1]);return isNaN(i)||(n=`${n} ${i}w`),t.filter(o=>o!==i).map(o=>`${xt(e,"width",o)} ${o}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[pt(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,i])=>`${n} ${i}w`).concat([e]).join(", "):e}function we(e){var o,s,r,l,c,d;function t(){var m;const u=e.image||e.src;if(!u||!(u.match(/builder\.io/)||u.match(/cdn\.shopify\.com/)))return e.srcset;if(!e.noWebp){if(e.srcset&&((m=e.image)!=null&&m.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),Q(u)}else if(e.image&&!e.srcset)return Q(u);return Q(u)}}function n(){var f;return(f=t==null?void 0:t())!=null&&f.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function i(){const f={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?f:void 0}return h.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[a.jsxs(a.Fragment,{children:[a.jsxs("picture",{children:[n()?a.jsx("source",{type:"image/webp",srcSet:n()}):null,a.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",...i()},className:"builder-image"+(e.className?" "+e.className:"")+" img-2d6925f2",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((s=(o=e.builderBlock)==null?void 0:o.children)!=null&&s.length&&e.fitContent)?a.jsx("div",{className:"builder-image-sizer div-2d6925f2",style:{paddingTop:e.aspectRatio*100+"%"}}):null,(l=(r=e.builderBlock)==null?void 0:r.children)!=null&&l.length&&e.fitContent?a.jsx(a.Fragment,{children:e.children}):null,!e.fitContent&&((d=(c=e.builderBlock)==null?void 0:c.children)!=null&&d.length)?a.jsx("div",{className:"div-2d6925f2-2",children:e.children}):null]}),a.jsx("style",{children:`.img-2d6925f2 {
40
40
  opacity: 1;
41
41
  transition: opacity 0.2s ease-in-out;
42
- }.div-56bbd606 {
42
+ }.div-2d6925f2 {
43
43
  width: 100%;
44
44
  pointer-events: none;
45
45
  font-size: 0;
46
- }.div-56bbd606-2 {
46
+ }.div-2d6925f2-2 {
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  align-items: stretch;
@@ -52,7 +52,7 @@
52
52
  left: 0;
53
53
  width: 100%;
54
54
  height: 100%;
55
- }`})]})}function Ee(e){return a.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const X={"@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!"}}}]},Z={"@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!"}}}]},yt={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:[X]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[Z]}],defaultValue:[{title:[X],detail:[Z]},{title:[X],detail:[Z]}],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}},se=e=>e.toString();function vt(e){var d;const[t,n]=h.useState(()=>[]);function i(){return!!(e.grid||e.oneAtATime)}function o(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function s(){const b={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(b).filter(([v,I])=>I!==void 0))}function r(m){return`builder-accordion-title builder-accordion-title-${t.includes(m)?"open":"closed"}`}function l(m){return`builder-accordion-detail builder-accordion-detail-${t.includes(m)?"open":"closed"}`}function c(){let m=null;if(e.grid&&t.length&&document){const v=t[0];let y=document.querySelector(`.builder-accordion-title[data-index="${v}"]`);if(m=v,y){let j=y.getBoundingClientRect();for(;y=y&&y.nextElementSibling;)if(y){if(y.classList.contains("builder-accordion-detail"))continue;const R=y.getBoundingClientRect();if(R.left>j.left){const B=parseInt(y.getAttribute("data-index")||"",10);isNaN(B)||(j=R,m=B)}else break}}}return typeof m=="number"&&(m=m+1),m}function u(){const m={order:typeof c()=="number"?c():void 0,...e.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(m).filter(([b,v])=>v!==void 0))}function f(m){t.includes(m)?n(i()?[]:t.filter(b=>b!==m)):n(i()?[m]:t.concat(m))}return a.jsx("div",{className:"builder-accordion",style:o(),children:(d=e.items)==null?void 0:d.map((m,b)=>a.jsxs(a.Fragment,{children:[a.jsx("div",{className:r(b),style:{...s(),width:e.grid?e.gridRowWidth:void 0,order:c()!==null?se(b):se(b+1)},"data-index":b,onClick:v=>f(b),children:a.jsx(A,{blocks:m.title,path:`items.${b}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),t.includes(b)?a.jsx("div",{className:l(b),style:u(),children:a.jsx(A,{blocks:m.detail,path:`items.${b}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]}))})}const St={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}},kt={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(o=>o.get("width"))&&(n.find(s=>!s.get("width"))||n.reduce((l,c)=>l+c.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}},Ct={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Tt={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:["jpeg","jpg","png","svg","webp"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(r,l=6e4){return new Promise((c,u)=>{const f=document.createElement("img");let d=!1;f.onload=()=>{d=!0,c(f)},f.addEventListener("error",m=>{console.warn("Image load failed",m.error),u(m.error)}),f.src=r,setTimeout(()=>{d||u(new Error("Image load timed out"))},l)})}function i(r){return Math.round(r*1e3)/1e3}const o=e.get("image"),s=e.get("aspectRatio");if(fetch(o).then(r=>r.blob()).then(r=>{r.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!s||s===.7041))return n(o).then(r=>{const l=e.get("aspectRatio");e.get("image")===o&&(!l||l===.7041)&&r.width&&r.height&&(e.set("aspectRatio",i(r.height/r.width)),e.set("height",r.height),e.set("width",r.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}},It={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>"}}}]},wt={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}};function Et(e){var t,n,i;return a.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:a.jsx(A,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(i=e.builderContext.rootState)==null?void 0:i[e.name]})})}const Rt={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}},ee={"@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"}}},te={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},jt={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[ee]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[te]}],defaultValue:[{label:[{...ee,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...te,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...ee,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...te,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}};function Bt(e){var s;const[t,n]=h.useState(()=>e.defaultActiveTab?e.defaultActiveTab-1:0);function i(r){return e.tabs&&e.tabs[r].content}function o(r){r===t&&e.collapsible?n(-1):n(r)}return a.jsxs("div",{children:[a.jsx("div",{className:"builder-tabs-wrap",style:{display:"flex",flexDirection:"row",justifyContent:e.tabHeaderLayout||"flex-start",overflow:"auto"},children:(s=e.tabs)==null?void 0:s.map((r,l)=>a.jsx("span",{className:`builder-tab-wrap ${t===l?"builder-tab-active":""}`,style:{...t===l?e.activeTabStyle:{}},onClick:c=>o(l),children:a.jsx(A,{parent:e.builderBlock.id,path:`component.options.tabs.${l}.label`,blocks:r.label,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})},l))}),i(t)?a.jsx("div",{children:a.jsx(A,{parent:e.builderBlock.id,path:`component.options.tabs.${t}.content`,blocks:i(t),context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]})}const Pt={shouldReceiveBuilderProps:{builderBlock:!1},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"}};function Re(e){var t;return a.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Vt={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}]};function Ft(e){const t=h.useRef(null),[n,i]=h.useState(()=>[]),[o,s]=h.useState(()=>[]);return h.useEffect(()=>{var l;if(!((l=t.current)!=null&&l.getElementsByTagName)||typeof window=="undefined")return;const r=t.current.getElementsByTagName("script");for(let c=0;c<r.length;c++){const u=r[c];if(u.src){if(n.includes(u.src))continue;n.push(u.src);const f=document.createElement("script");f.async=!0,f.src=u.src,document.head.appendChild(f)}else if(!u.type||["text/javascript","application/javascript","application/ecmascript"].includes(u.type)){if(o.includes(u.innerText))continue;try{o.push(u.innerText),new Function(u.innerText)()}catch(f){console.warn("`CustomCode`: Error running script:",f)}}}},[]),a.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const At={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}]},Nt=["text/javascript","application/javascript","application/ecmascript"],Wt=e=>Nt.includes(e.type);function $t(e){const t=h.useRef(null),[n,i]=h.useState(()=>[]),[o,s]=h.useState(()=>[]),[r,l]=h.useState(()=>!1);function c(){if(!t.current||!t.current.getElementsByTagName)return;const u=t.current.getElementsByTagName("script");for(let f=0;f<u.length;f++){const d=u[f];if(d.src&&!n.includes(d.src)){n.push(d.src);const m=document.createElement("script");m.async=!0,m.src=d.src,document.head.appendChild(m)}else if(Wt(d)&&!o.includes(d.innerText))try{o.push(d.innerText),new Function(d.innerText)()}catch(m){console.warn("`Embed`: Error running script:",m)}}}return h.useEffect(()=>{t.current&&!r&&(l(!0),c())},[t.current,r]),a.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Dt={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}},Lt=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Ot=()=>{const e=process.env.NODE_ENV||"production";return Lt.includes(e)?e:"production"},Mt=(e,t,n)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,s)=>o!=null?o[s]:o,e);return i===void 0||i===e?n:i};function Ut(e){var d,m;const t=h.useRef(null),[n,i]=h.useState(()=>"unsubmitted"),[o,s]=h.useState(()=>null),[r,l]=h.useState(()=>"");function c(b){var I,y;const v={...e.builderContext.rootState,...b};e.builderContext.rootSetState?(y=(I=e.builderContext).rootSetState)==null||y.call(I,v):e.builderContext.rootState=v}function u(){return p.isEditing()&&e.previewState||n}function f(b){var I;const v=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")b.preventDefault();else if(v){if(!(e.action||e.sendSubmissionsTo==="email")){b.preventDefault();return}b.preventDefault();const y=b.currentTarget||b.target,j=e.customHeaders||{};let R;const B=new FormData(y),$=Array.from(y.querySelectorAll("input,select,textarea")).filter(x=>!!x.name).map(x=>{let g;const k=x.name;if(x instanceof HTMLInputElement)if(x.type==="radio"){if(x.checked)return g=x.name,{key:k,value:g}}else if(x.type==="checkbox")g=x.checked;else if(x.type==="number"||x.type==="range"){const C=x.valueAsNumber;isNaN(C)||(g=C)}else x.type==="file"?g=x.files:g=x.value;else g=x.value;return{key:k,value:g}});let S=e.contentType;if(e.sendSubmissionsTo==="email"&&(S="multipart/form-data"),Array.from($).forEach(({value:x})=>{(x instanceof File||Array.isArray(x)&&x[0]instanceof File||x instanceof FileList)&&(S="multipart/form-data")}),S!=="application/json")R=B;else{const x={};Array.from($).forEach(({value:g,key:k})=>{W.set(x,k,g)}),R=JSON.stringify(x)}S&&S!=="multipart/form-data"&&(v&&((I=e.action)!=null&&I.includes("zapier.com"))||(j["content-type"]=S));const E=new CustomEvent("presubmit",{detail:{body:R}});if(t.current&&(t.current.dispatchEvent(E),E.defaultPrevented))return;i("sending");const P=`${Ot()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`;fetch(e.sendSubmissionsTo==="email"?P:e.action,{body:R,headers:j,method:e.method||"post"}).then(async x=>{let g;const k=x.headers.get("content-type");if(k&&k.indexOf("application/json")!==-1?g=await x.json():g=await x.text(),!x.ok&&e.errorMessagePath){let C=Mt(g,e.errorMessagePath);C&&(typeof C!="string"&&(C=JSON.stringify(C)),l(C),c({formErrorMessage:C}))}if(s(g),i(x.ok?"success":"error"),x.ok){const C=new CustomEvent("submit:success",{detail:{res:x,body:g}});if(t.current){if(t.current.dispatchEvent(C),C.defaultPrevented)return;e.resetFormOnSubmit!==!1&&t.current.reset()}if(e.successUrl)if(t.current){const T=new CustomEvent("route",{detail:{url:e.successUrl}});t.current.dispatchEvent(T),T.defaultPrevented||(location.href=e.successUrl)}else location.href=e.successUrl}},x=>{const g=new CustomEvent("submit:error",{detail:{error:x}});t.current&&(t.current.dispatchEvent(g),g.defaultPrevented)||(s(x),i("error"))})}}return a.jsxs(a.Fragment,{children:[" ",a.jsxs("form",{validate:e.validate,ref:t,action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:b=>f(b),...e.attributes,children:[e.builderBlock&&e.builderBlock.children?a.jsx(a.Fragment,{children:(m=(d=e.builderBlock)==null?void 0:d.children)==null?void 0:m.map((b,v)=>a.jsx(H,{block:b,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},`form-block-${v}`))}):null,u()==="error"?a.jsx(A,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,u()==="sending"?a.jsx(A,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,u()==="error"&&o?a.jsx("pre",{className:"builder-form-error-text pre-3a20f614",children:JSON.stringify(o,null,2)}):null,u()==="success"?a.jsx(A,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," ",a.jsx("style",{children:".pre-3a20f614 { padding: 10px; color: red; text-align: center; }"})," "]})}const Ht={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"}};function qt(e){return h.createElement("input",{...e.attributes,key:p.isEditing()&&e.defaultValue?e.defaultValue:"default-key",placeholder:e.placeholder,type:e.type,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const Kt={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};function zt(e){var t;return h.createElement("select",{...e.attributes,value:e.value,key:p.isEditing()&&e.defaultValue?e.defaultValue:"default-key",defaultValue:e.defaultValue,name:e.name,required:e.required},(t=e.options)==null?void 0:t.map((n,i)=>a.jsx("option",{value:n.value,children:n.name||n.value},`${n.name}-${i}`)))}const _t={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};function Jt(e){return a.jsx("button",{type:"submit",...e.attributes,children:e.text})}const Gt={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};function Yt(e){return a.jsx("textarea",{...e.attributes,placeholder:e.placeholder,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const Qt={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:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0};function Xt(e){return a.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},p.isEditing()&&e.imgSrc||"default-key")}const Zt={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:["mp4"],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:["jpeg","png"],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}};function je(e){var i,o,s,r,l,c,u;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function n(){return{...t()}}return a.jsxs("div",{style:{position:"relative"},children:[a.jsx("video",{className:"builder-video",...n(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(i=e.attributes)==null?void 0:i.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:a.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((s=(o=e.builderBlock)==null?void 0:o.children)!=null&&s.length))?a.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}}):null,(l=(r=e.builderBlock)==null?void 0:r.children)!=null&&l.length&&e.fitContent?a.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(u=(c=e.builderBlock)==null?void 0:c.children)!=null&&u.length&&!e.fitContent?a.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children}):null]})}const en=()=>[{component:Ft,...Vt},{component:$t,...At},{component:Ut,...Dt},{component:qt,...Ht},{component:Jt,..._t},{component:zt,...Kt},{component:Yt,...Gt},{component:Xt,...Qt},{component:je,...Zt}],ce=()=>[{component:fe,...St},{component:Te,...kt},{component:Ie,...Ct},{component:we,...Tt},{component:Ee,...It},{component:Et,...wt},{component:Ae,...Rt},{component:Re,...Pt},{component:Bt,...jt},{component:vt,...yt},...en()],tn=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
55
+ }`})]})}function Ee(e){return a.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const X={"@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!"}}}]},Z={"@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!"}}}]},yt={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:[X]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[Z]}],defaultValue:[{title:[X],detail:[Z]},{title:[X],detail:[Z]}],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}},se=e=>e.toString();function St(e){var u;const[t,n]=h.useState(()=>[]);function i(){return!!(e.grid||e.oneAtATime)}function o(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function s(){const b={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(b).filter(([S,I])=>I!==void 0))}function r(m){return`builder-accordion-title builder-accordion-title-${t.includes(m)?"open":"closed"}`}function l(m){return`builder-accordion-detail builder-accordion-detail-${t.includes(m)?"open":"closed"}`}function c(){let m=null;if(e.grid&&t.length&&document){const S=t[0];let y=document.querySelector(`.builder-accordion-title[data-index="${S}"]`);if(m=S,y){let j=y.getBoundingClientRect();for(;y=y&&y.nextElementSibling;)if(y){if(y.classList.contains("builder-accordion-detail"))continue;const R=y.getBoundingClientRect();if(R.left>j.left){const B=parseInt(y.getAttribute("data-index")||"",10);isNaN(B)||(j=R,m=B)}else break}}}return typeof m=="number"&&(m=m+1),m}function d(){const m={order:typeof c()=="number"?c():void 0,...e.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(m).filter(([b,S])=>S!==void 0))}function f(m){t.includes(m)?n(i()?[]:t.filter(b=>b!==m)):n(i()?[m]:t.concat(m))}return a.jsx("div",{className:"builder-accordion",style:o(),children:(u=e.items)==null?void 0:u.map((m,b)=>a.jsxs(a.Fragment,{children:[a.jsx("div",{className:r(b),style:{...s(),width:e.grid?e.gridRowWidth:void 0,order:c()!==null?se(b):se(b+1)},"data-index":b,onClick:S=>f(b),children:a.jsx(A,{blocks:m.title,path:`items.${b}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),t.includes(b)?a.jsx("div",{className:l(b),style:d(),children:a.jsx(A,{blocks:m.detail,path:`items.${b}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]}))})}const vt={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}},kt={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(o=>o.get("width"))&&(n.find(s=>!s.get("width"))||n.reduce((l,c)=>l+c.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}},Ct={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Tt={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:["jpeg","jpg","png","svg","webp"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(r,l=6e4){return new Promise((c,d)=>{const f=document.createElement("img");let u=!1;f.onload=()=>{u=!0,c(f)},f.addEventListener("error",m=>{console.warn("Image load failed",m.error),d(m.error)}),f.src=r,setTimeout(()=>{u||d(new Error("Image load timed out"))},l)})}function i(r){return Math.round(r*1e3)/1e3}const o=e.get("image"),s=e.get("aspectRatio");if(fetch(o).then(r=>r.blob()).then(r=>{r.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!s||s===.7041))return n(o).then(r=>{const l=e.get("aspectRatio");e.get("image")===o&&(!l||l===.7041)&&r.width&&r.height&&(e.set("aspectRatio",i(r.height/r.width)),e.set("height",r.height),e.set("width",r.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}},It={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>"}}}]},wt={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}};function Et(e){var t,n,i;return a.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:a.jsx(A,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,blocks:(i=e.builderContext.rootState)==null?void 0:i[e.name]})})}const Rt={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}},ee={"@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"}}},te={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},jt={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[ee]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[te]}],defaultValue:[{label:[{...ee,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...te,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...ee,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...te,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}};function Bt(e){var s;const[t,n]=h.useState(()=>e.defaultActiveTab?e.defaultActiveTab-1:0);function i(r){return e.tabs&&e.tabs[r].content}function o(r){r===t&&e.collapsible?n(-1):n(r)}return a.jsxs("div",{children:[a.jsx("div",{className:"builder-tabs-wrap",style:{display:"flex",flexDirection:"row",justifyContent:e.tabHeaderLayout||"flex-start",overflow:"auto"},children:(s=e.tabs)==null?void 0:s.map((r,l)=>a.jsx("span",{className:`builder-tab-wrap ${t===l?"builder-tab-active":""}`,style:{...t===l?e.activeTabStyle:{}},onClick:c=>o(l),children:a.jsx(A,{parent:e.builderBlock.id,path:`component.options.tabs.${l}.label`,blocks:r.label,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})},l))}),i(t)?a.jsx("div",{children:a.jsx(A,{parent:e.builderBlock.id,path:`component.options.tabs.${t}.content`,blocks:i(t),context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]})}const Pt={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"}};function Re(e){function t(){var l;const n=e.builderContext,{context:i,localState:o,rootState:s,rootSetState:r}=n;return String(((l=e.text)==null?void 0:l.toString())||"").replace(/{{([^}]+)}}/g,(c,d)=>O({code:d,context:i,localState:o,rootState:s,rootSetState:r,enableCache:!1}))}return a.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:t()},style:{outline:"none"}})}const Vt={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}]};function Ft(e){const t=h.useRef(null),[n,i]=h.useState(()=>[]),[o,s]=h.useState(()=>[]);return h.useEffect(()=>{var l;if(!((l=t.current)!=null&&l.getElementsByTagName)||typeof window=="undefined")return;const r=t.current.getElementsByTagName("script");for(let c=0;c<r.length;c++){const d=r[c];if(d.src){if(n.includes(d.src))continue;n.push(d.src);const f=document.createElement("script");f.async=!0,f.src=d.src,document.head.appendChild(f)}else if(!d.type||["text/javascript","application/javascript","application/ecmascript"].includes(d.type)){if(o.includes(d.innerText))continue;try{o.push(d.innerText),new Function(d.innerText)()}catch(f){console.warn("`CustomCode`: Error running script:",f)}}}},[]),a.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const At={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}]},Nt=["text/javascript","application/javascript","application/ecmascript"],Wt=e=>Nt.includes(e.type);function $t(e){const t=h.useRef(null),[n,i]=h.useState(()=>[]),[o,s]=h.useState(()=>[]),[r,l]=h.useState(()=>!1);function c(){if(!t.current||!t.current.getElementsByTagName)return;const d=t.current.getElementsByTagName("script");for(let f=0;f<d.length;f++){const u=d[f];if(u.src&&!n.includes(u.src)){n.push(u.src);const m=document.createElement("script");m.async=!0,m.src=u.src,document.head.appendChild(m)}else if(Wt(u)&&!o.includes(u.innerText))try{o.push(u.innerText),new Function(u.innerText)()}catch(m){console.warn("`Embed`: Error running script:",m)}}}return h.useEffect(()=>{t.current&&!r&&(l(!0),c())},[t.current,r]),a.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Dt={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}},Lt=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Ot=()=>{const e=process.env.NODE_ENV||"production";return Lt.includes(e)?e:"production"},Mt=(e,t,n)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,s)=>o!=null?o[s]:o,e);return i===void 0||i===e?n:i};function Ut(e){var u,m;const t=h.useRef(null),[n,i]=h.useState(()=>"unsubmitted"),[o,s]=h.useState(()=>null),[r,l]=h.useState(()=>"");function c(b){var I,y;const S={...e.builderContext.rootState,...b};e.builderContext.rootSetState?(y=(I=e.builderContext).rootSetState)==null||y.call(I,S):e.builderContext.rootState=S}function d(){return p.isEditing()&&e.previewState||n}function f(b){var I;const S=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")b.preventDefault();else if(S){if(!(e.action||e.sendSubmissionsTo==="email")){b.preventDefault();return}b.preventDefault();const y=b.currentTarget||b.target,j=e.customHeaders||{};let R;const B=new FormData(y),$=Array.from(y.querySelectorAll("input,select,textarea")).filter(x=>!!x.name).map(x=>{let g;const k=x.name;if(x instanceof HTMLInputElement)if(x.type==="radio"){if(x.checked)return g=x.name,{key:k,value:g}}else if(x.type==="checkbox")g=x.checked;else if(x.type==="number"||x.type==="range"){const C=x.valueAsNumber;isNaN(C)||(g=C)}else x.type==="file"?g=x.files:g=x.value;else g=x.value;return{key:k,value:g}});let v=e.contentType;if(e.sendSubmissionsTo==="email"&&(v="multipart/form-data"),Array.from($).forEach(({value:x})=>{(x instanceof File||Array.isArray(x)&&x[0]instanceof File||x instanceof FileList)&&(v="multipart/form-data")}),v!=="application/json")R=B;else{const x={};Array.from($).forEach(({value:g,key:k})=>{W.set(x,k,g)}),R=JSON.stringify(x)}v&&v!=="multipart/form-data"&&(S&&((I=e.action)!=null&&I.includes("zapier.com"))||(j["content-type"]=v));const E=new CustomEvent("presubmit",{detail:{body:R}});if(t.current&&(t.current.dispatchEvent(E),E.defaultPrevented))return;i("sending");const P=`${Ot()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`;fetch(e.sendSubmissionsTo==="email"?P:e.action,{body:R,headers:j,method:e.method||"post"}).then(async x=>{let g;const k=x.headers.get("content-type");if(k&&k.indexOf("application/json")!==-1?g=await x.json():g=await x.text(),!x.ok&&e.errorMessagePath){let C=Mt(g,e.errorMessagePath);C&&(typeof C!="string"&&(C=JSON.stringify(C)),l(C),c({formErrorMessage:C}))}if(s(g),i(x.ok?"success":"error"),x.ok){const C=new CustomEvent("submit:success",{detail:{res:x,body:g}});if(t.current){if(t.current.dispatchEvent(C),C.defaultPrevented)return;e.resetFormOnSubmit!==!1&&t.current.reset()}if(e.successUrl)if(t.current){const T=new CustomEvent("route",{detail:{url:e.successUrl}});t.current.dispatchEvent(T),T.defaultPrevented||(location.href=e.successUrl)}else location.href=e.successUrl}},x=>{const g=new CustomEvent("submit:error",{detail:{error:x}});t.current&&(t.current.dispatchEvent(g),g.defaultPrevented)||(s(x),i("error"))})}}return a.jsxs(a.Fragment,{children:[" ",a.jsxs("form",{validate:e.validate,ref:t,action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:b=>f(b),...e.attributes,children:[e.builderBlock&&e.builderBlock.children?a.jsx(a.Fragment,{children:(m=(u=e.builderBlock)==null?void 0:u.children)==null?void 0:m.map((b,S)=>a.jsx(H,{block:b,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent},`form-block-${S}`))}):null,d()==="error"?a.jsx(A,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,d()==="sending"?a.jsx(A,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,d()==="error"&&o?a.jsx("pre",{className:"builder-form-error-text pre-3a20f614",children:JSON.stringify(o,null,2)}):null,d()==="success"?a.jsx(A,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," ",a.jsx("style",{children:".pre-3a20f614 { padding: 10px; color: red; text-align: center; }"})," "]})}const Ht={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"}};function qt(e){return h.createElement("input",{...e.attributes,key:p.isEditing()&&e.defaultValue?e.defaultValue:"default-key",placeholder:e.placeholder,type:e.type,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const Kt={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};function zt(e){var t;return h.createElement("select",{...e.attributes,value:e.value,key:p.isEditing()&&e.defaultValue?e.defaultValue:"default-key",defaultValue:e.defaultValue,name:e.name,required:e.required},(t=e.options)==null?void 0:t.map((n,i)=>a.jsx("option",{value:n.value,children:n.name||n.value},`${n.name}-${i}`)))}const _t={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};function Jt(e){return a.jsx("button",{type:"submit",...e.attributes,children:e.text})}const Gt={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};function Yt(e){return a.jsx("textarea",{...e.attributes,placeholder:e.placeholder,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const Qt={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:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0};function Xt(e){return a.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},p.isEditing()&&e.imgSrc||"default-key")}const Zt={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:["mp4"],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:["jpeg","png"],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}};function je(e){var i,o,s,r,l,c,d;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function n(){return{...t()}}return a.jsxs("div",{style:{position:"relative"},children:[a.jsx("video",{className:"builder-video",...n(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(i=e.attributes)==null?void 0:i.style,objectFit:e.fit,objectPosition:e.position,zIndex:2,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},src:e.video||"no-src",poster:e.posterImage,children:e.lazyLoad?null:a.jsx("source",{type:"video/mp4",src:e.video})}),e.aspectRatio&&!(e.fitContent&&((s=(o=e.builderBlock)==null?void 0:o.children)!=null&&s.length))?a.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}}):null,(l=(r=e.builderBlock)==null?void 0:r.children)!=null&&l.length&&e.fitContent?a.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(d=(c=e.builderBlock)==null?void 0:c.children)!=null&&d.length&&!e.fitContent?a.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",alignItems:"stretch",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},children:e.children}):null]})}const en=()=>[{component:Ft,...Vt},{component:$t,...At},{component:Ut,...Dt},{component:qt,...Ht},{component:Jt,..._t},{component:zt,...Kt},{component:Yt,...Gt},{component:Xt,...Qt},{component:je,...Zt}],ce=()=>[{component:fe,...vt},{component:Te,...kt},{component:Ie,...Ct},{component:we,...Tt},{component:Ee,...It},{component:Et,...wt},{component:Ae,...Rt},{component:Re,...Pt},{component:Bt,...jt},{component:St,...yt},...en()],tn=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
56
56
  function getAndSetVariantId() {
57
57
  function setCookie(name, value, days) {
58
58
  let expires = '';
@@ -157,10 +157,10 @@ src: local("${n}"), url('${i}') format('woff2');
157
157
  font-display: fallback;
158
158
  font-weight: 400;
159
159
  }
160
- `.trim()),e.files)for(const l in e.files){if(!(String(Number(l))===l))continue;const u=e.files[l];u&&u!==i&&(o+=`
160
+ `.trim()),e.files)for(const l in e.files){if(!(String(Number(l))===l))continue;const d=e.files[l];d&&d!==i&&(o+=`
161
161
  @font-face {
162
162
  font-family: "${t}";
163
- src: url('${u}') format('woff2');
163
+ src: url('${d}') format('woff2');
164
164
  font-display: fallback;
165
165
  font-weight: ${l};
166
166
  }
@@ -181,8 +181,8 @@ font-weight: ${l};
181
181
  text-align: inherit;
182
182
  font-family: inherit;
183
183
  }
184
- `,bn=e=>e?"":gn,xn=e=>`variant-${e}`;function pn(e){var R,B,$,S,E,P,x;const t=h.useRef(null);function n(g){var C,T;const k={...e.builderContextSignal.rootState,...g};e.builderContextSignal.rootSetState?(T=(C=e.builderContextSignal).rootSetState)==null||T.call(C,k):e.setBuilderContextSignal(w=>({...w,rootState:k}))}function i(g){var C,T,w,V,D;const k={...e.builderContextSignal.content,...g,data:{...(C=e.builderContextSignal.content)==null?void 0:C.data,...g==null?void 0:g.data},meta:{...(T=e.builderContextSignal.content)==null?void 0:T.meta,...g==null?void 0:g.meta,breakpoints:((w=g==null?void 0:g.meta)==null?void 0:w.breakpoints)||((D=(V=e.builderContextSignal.content)==null?void 0:V.meta)==null?void 0:D.breakpoints)}};e.setBuilderContextSignal(F=>({...F,content:k}))}function o(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[s,r]=h.useState(()=>e.contentWrapper||"div");function l(g){return p.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:k=>{var w;const{breakpoints:C,contentId:T}=k;!T||T!==((w=e.builderContextSignal.content)==null?void 0:w.id)||C&&i({meta:{breakpoints:C}})},animation:k=>{pe(k)},contentUpdate:k=>{i(k)}}})(g)}function c(){var k,C;const g=(C=(k=e.builderContextSignal.content)==null?void 0:k.data)==null?void 0:C.jsCode;g&&U({code:g,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState,enableCache:!1})}const[u,f]=h.useState(()=>({})),[d,m]=h.useState(()=>({})),[b,v]=h.useState(()=>!1);function I(g){var k,C;if(e.builderContextSignal.content){const T=(k=e.builderContextSignal.content)==null?void 0:k.testVariationId,w=(C=e.builderContextSignal.content)==null?void 0:C.id;p._track({type:"click",canTrack:p.getDefaultCanTrack(e.canTrack),contentId:w,apiKey:e.apiKey,variationId:T!==w?T:void 0,...un(g),unique:!b})}b||v(!0)}function y(){var k,C,T;const g=(T=(C=(k=e.builderContextSignal.content)==null?void 0:k.data)==null?void 0:C.httpRequests)!=null?T:{};Object.entries(g).forEach(([w,V])=>{if(!V||d[w]||u[w]&&!p.isEditing())return;d[w]=!0;const D=V.replace(/{{([^}]+)}}/g,(F,Ne)=>String(U({code:Ne,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState,enableCache:!0})));p.fetch(D).then(F=>F.json()).then(F=>{n({[w]:F}),u[w]=!0}).catch(F=>{console.error("error fetching dynamic data",V,F)}).finally(()=>{d[w]=!1})})}function j(){p.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:W.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}return h.useEffect(()=>{var g,k;if(p.isBrowser()){if(p.isEditing()&&(window.addEventListener("message",l),p.registerInsertMenu(),p.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(T=>{var V;const w=p.createRegisterComponentMessage(T);(V=window.parent)==null||V.postMessage(w,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",j)),e.builderContextSignal.content&&p.getDefaultCanTrack(e.canTrack)){const T=(g=e.builderContextSignal.content)==null?void 0:g.testVariationId,w=(k=e.builderContextSignal.content)==null?void 0:k.id,V=e.apiKey;p._track({type:"impression",canTrack:!0,contentId:w,apiKey:V,variationId:T!==w?T:void 0})}if(p.isPreviewing()&&!p.isEditing()){const T=new URL(location.href).searchParams,w=T.get("builder.preview"),V=T.get(`builder.overrides.${w}`),D=T.get("apiKey")||T.get("builder.space");w===e.model&&D===e.apiKey&&(!e.content||V===e.content.id)&&p.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(F=>{F&&i(F)})}}},[]),h.useEffect(()=>{e.apiKey||p.logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."),c(),y(),j()},[]),h.useEffect(()=>{e.content&&i(e.content)},[e.content]),h.useEffect(()=>{c()},[(B=(R=e.builderContextSignal.content)==null?void 0:R.data)==null?void 0:B.jsCode]),h.useEffect(()=>{y()},[(S=($=e.builderContextSignal.content)==null?void 0:$.data)==null?void 0:S.httpRequests]),h.useEffect(()=>{j()},[e.builderContextSignal.rootState]),h.useEffect(()=>{e.data&&n(e.data)},[e.data]),h.useEffect(()=>{e.locale&&n({locale:e.locale})},[e.locale]),h.useEffect(()=>()=>{p.isBrowser()&&(window.removeEventListener("message",l),window.removeEventListener("builder:component:stateChangeListenerActivated",j))},[]),a.jsx(_.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?a.jsx(s,{ref:t,onClick:g=>I(g),"builder-content-id":(E=e.builderContextSignal.content)==null?void 0:E.id,"builder-model":e.model,...o(),...e.contentWrapperProps,className:xn(((P=e.content)==null?void 0:P.testVariationId)||((x=e.content)==null?void 0:x.id)),children:e.children}):null})}function yn(e){const[t,n]=h.useState(()=>`
184
+ `,bn=e=>e?"":gn,xn=e=>`variant-${e}`;function pn(e){var R,B,$,v,E,P,x;const t=h.useRef(null);function n(g){var C,T;const k={...e.builderContextSignal.rootState,...g};e.builderContextSignal.rootSetState?(T=(C=e.builderContextSignal).rootSetState)==null||T.call(C,k):e.setBuilderContextSignal(w=>({...w,rootState:k}))}function i(g){var C,T,w,V,D;const k={...e.builderContextSignal.content,...g,data:{...(C=e.builderContextSignal.content)==null?void 0:C.data,...g==null?void 0:g.data},meta:{...(T=e.builderContextSignal.content)==null?void 0:T.meta,...g==null?void 0:g.meta,breakpoints:((w=g==null?void 0:g.meta)==null?void 0:w.breakpoints)||((D=(V=e.builderContextSignal.content)==null?void 0:V.meta)==null?void 0:D.breakpoints)}};e.setBuilderContextSignal(F=>({...F,content:k}))}function o(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[s,r]=h.useState(()=>e.contentWrapper||"div");function l(g){return p.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:k=>{var w;const{breakpoints:C,contentId:T}=k;!T||T!==((w=e.builderContextSignal.content)==null?void 0:w.id)||C&&i({meta:{breakpoints:C}})},animation:k=>{pe(k)},contentUpdate:k=>{i(k)}}})(g)}function c(){var k,C;const g=(C=(k=e.builderContextSignal.content)==null?void 0:k.data)==null?void 0:C.jsCode;g&&O({code:g,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState,enableCache:!1})}const[d,f]=h.useState(()=>({})),[u,m]=h.useState(()=>({})),[b,S]=h.useState(()=>!1);function I(g){var k,C;if(e.builderContextSignal.content){const T=(k=e.builderContextSignal.content)==null?void 0:k.testVariationId,w=(C=e.builderContextSignal.content)==null?void 0:C.id;p._track({type:"click",canTrack:p.getDefaultCanTrack(e.canTrack),contentId:w,apiKey:e.apiKey,variationId:T!==w?T:void 0,...un(g),unique:!b})}b||S(!0)}function y(){var k,C,T;const g=(T=(C=(k=e.builderContextSignal.content)==null?void 0:k.data)==null?void 0:C.httpRequests)!=null?T:{};Object.entries(g).forEach(([w,V])=>{if(!V||u[w]||d[w]&&!p.isEditing())return;u[w]=!0;const D=V.replace(/{{([^}]+)}}/g,(F,Ne)=>String(O({code:Ne,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState,enableCache:!0})));p.fetch(D).then(F=>F.json()).then(F=>{n({[w]:F}),d[w]=!0}).catch(F=>{console.error("error fetching dynamic data",V,F)}).finally(()=>{u[w]=!1})})}function j(){p.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:W.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}return h.useEffect(()=>{var g,k;if(p.isBrowser()){if(p.isEditing()&&(window.addEventListener("message",l),p.registerInsertMenu(),p.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(T=>{var V;const w=p.createRegisterComponentMessage(T);(V=window.parent)==null||V.postMessage(w,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",j)),e.builderContextSignal.content&&p.getDefaultCanTrack(e.canTrack)){const T=(g=e.builderContextSignal.content)==null?void 0:g.testVariationId,w=(k=e.builderContextSignal.content)==null?void 0:k.id,V=e.apiKey;p._track({type:"impression",canTrack:!0,contentId:w,apiKey:V,variationId:T!==w?T:void 0})}if(p.isPreviewing()&&!p.isEditing()){const T=new URL(location.href).searchParams,w=T.get("builder.preview"),V=T.get(`builder.overrides.${w}`),D=T.get("apiKey")||T.get("builder.space");w===e.model&&D===e.apiKey&&(!e.content||V===e.content.id)&&p.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(F=>{F&&i(F)})}}},[]),h.useEffect(()=>{e.apiKey||p.logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."),c(),y(),j()},[]),h.useEffect(()=>{e.content&&i(e.content)},[e.content]),h.useEffect(()=>{c()},[(B=(R=e.builderContextSignal.content)==null?void 0:R.data)==null?void 0:B.jsCode]),h.useEffect(()=>{y()},[(v=($=e.builderContextSignal.content)==null?void 0:$.data)==null?void 0:v.httpRequests]),h.useEffect(()=>{j()},[e.builderContextSignal.rootState]),h.useEffect(()=>{e.data&&n(e.data)},[e.data]),h.useEffect(()=>{e.locale&&n({locale:e.locale})},[e.locale]),h.useEffect(()=>()=>{p.isBrowser()&&(window.removeEventListener("message",l),window.removeEventListener("builder:component:stateChangeListenerActivated",j))},[]),a.jsx(_.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?a.jsx(s,{ref:t,onClick:g=>I(g),"builder-content-id":(E=e.builderContextSignal.content)==null?void 0:E.id,"builder-model":e.model,...o(),...e.contentWrapperProps,className:xn(((P=e.content)==null?void 0:P.testVariationId)||((x=e.content)==null?void 0:x.id)),children:e.children}):null})}function yn(e){const[t,n]=h.useState(()=>`
185
185
  ${hn({cssCode:e.cssCode,contentId:e.contentId})}
186
186
  ${fn({customFonts:e.customFonts})}
187
187
  ${bn(e.isNestedRender)}
188
- `.trim());return a.jsx(G,{id:"builderio-content",styles:t,nonce:e.nonce})}const vn=({content:e,data:t,locale:n})=>{var s,r,l;const i={},o=((s=e==null?void 0:e.data)==null?void 0:s.state)||{};return(l=(r=e==null?void 0:e.data)==null?void 0:r.inputs)==null||l.forEach(c=>{c.name&&c.defaultValue!==void 0&&(i[c.name]=c.defaultValue)}),{...i,...o,...t,...n?{locale:n}:{}}},Sn=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function me(e){var c,u,f,d,m,b,v;const[t,n]=h.useState(()=>{var I,y;return sn({variationId:(I=e.content)==null?void 0:I.testVariationId,contentId:(y=e.content)==null?void 0:y.id})});function i(I){l(y=>({...y,rootState:I}))}const[o,s]=h.useState(()=>{var I;return[...ce(),...((I=e.customComponents)==null?void 0:I.filter(({models:y})=>!(y!=null&&y.length)||!e.model?!0:y.includes(e.model)))||[]].reduce((y,{component:j,...R})=>({...y,[R.name]:{component:j,...p.serializeComponentInfo(R)}}),{})}),[r,l]=h.useState(()=>{var I;return{content:Sn({content:e.content,data:e.data}),localState:void 0,rootState:vn({content:e.content,data:e.data,locale:e.locale}),rootSetState:i,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...ce(),...((I=e.customComponents)==null?void 0:I.filter(({models:y})=>!(y!=null&&y.length)||!e.model?!0:y.includes(e.model)))||[]].reduce((y,{component:j,...R})=>({...y,[R.name]:p.serializeComponentInfo(R)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{},nonce:e.nonce||""}});return a.jsx(he.Provider,{value:{registeredComponents:o},children:a.jsxs(pn,{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:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,setBuilderContextSignal:l,children:[e.isSsrAbTest?a.jsx(ne,{id:"builderio-variant-visibility",scriptStr:t,nonce:e.nonce||""}):null,a.jsx(yn,{nonce:e.nonce||"",isNestedRender:e.isNestedRender,contentId:(c=r.content)==null?void 0:c.id,cssCode:(f=(u=r.content)==null?void 0:u.data)==null?void 0:f.cssCode,customFonts:(m=(d=r.content)==null?void 0:d.data)==null?void 0:m.customFonts}),a.jsx(A,{blocks:(v=(b=r.content)==null?void 0:b.data)==null?void 0:v.blocks,context:r,registeredComponents:o,linkComponent:e.linkComponent})]})})}function Fe(e){var r;const[t,n]=h.useState(()=>on({canTrack:p.getDefaultCanTrack(e.canTrack),content:e.content}));function i(){var l;return ln(K(e.content).map(c=>({id:c.testVariationId,testRatio:c.testRatio})),((l=e.content)==null?void 0:l.id)||"")}function o(){return K(e.content).map(l=>`.variant-${l.testVariationId} { display: none; } `).join("")}function s(){var l;return t?{...e.content,testVariationId:(l=e.content)==null?void 0:l.id}:p.handleABTestingSync({item:e.content,canTrack:p.getDefaultCanTrack(e.canTrack)})}return h.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[!e.isNestedRender&&p.TARGET!=="reactNative"?a.jsx(ne,{id:"builderio-init-variants-fns",scriptStr:rn(),nonce:e.nonce||""}):null,t?a.jsxs(a.Fragment,{children:[a.jsx(G,{id:"builderio-variants",styles:o(),nonce:e.nonce||""}),a.jsx(ne,{id:"builderio-variants-visibility",scriptStr:i(),nonce:e.nonce||""}),(r=K(e.content))==null?void 0:r.map(l=>a.jsx(me,{isNestedRender:e.isNestedRender,nonce:e.nonce,content:l,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},l.testVariationId))]}):null,a.jsx(me,{nonce:e.nonce,isNestedRender:e.isNestedRender,content:s(),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})]})}const kn=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return p.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{p.logger.error("Could not fetch symbol content: ",n)})};function Ae(e){var l,c,u,f;function t(){return"div"}function n(){return"div"}function i(){var d,m;return[e.attributes[M()],"builder-symbol",(d=e.symbol)!=null&&d.inline?"builder-inline-symbol":void 0,(m=e.symbol)!=null&&m.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[o,s]=h.useState(()=>{var d;return(d=e.symbol)==null?void 0:d.content});function r(){o||kn({symbol:e.symbol,builderContextValue:e.builderContext}).then(d=>{d&&s(d)})}return h.useEffect(()=>{},[]),h.useEffect(()=>{r()},[e.symbol]),a.jsx("div",{...e.attributes,className:i(),children:a.jsx(Fe,{nonce:e.builderContext.nonce,isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(l=e.builderBlock)==null?void 0:l.id},customComponents:Object.values(e.builderComponents),data:{...(c=e.symbol)==null?void 0:c.data,...e.builderContext.localState,...(u=o==null?void 0:o.data)==null?void 0:u.state},canTrack:e.builderContext.canTrack,model:(f=e.symbol)==null?void 0:f.model,content:o,linkComponent:e.builderLinkComponent,blocksWrapper:t(),contentWrapper:n()})})}exports.Blocks=A;exports.BuilderContext=_;exports.Button=fe;exports.Columns=Te;exports.Content=Fe;exports.Fragment=Ie;exports.Image=we;exports.Section=Ee;exports.Symbol=Ae;exports.Text=Re;exports.Video=je;
188
+ `.trim());return a.jsx(G,{id:"builderio-content",styles:t,nonce:e.nonce})}const Sn=({content:e,data:t,locale:n})=>{var s,r,l;const i={},o=((s=e==null?void 0:e.data)==null?void 0:s.state)||{};return(l=(r=e==null?void 0:e.data)==null?void 0:r.inputs)==null||l.forEach(c=>{c.name&&c.defaultValue!==void 0&&(i[c.name]=c.defaultValue)}),{...i,...o,...t,...n?{locale:n}:{}}},vn=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function me(e){var c,d,f,u,m,b,S;const[t,n]=h.useState(()=>{var I,y;return sn({variationId:(I=e.content)==null?void 0:I.testVariationId,contentId:(y=e.content)==null?void 0:y.id})});function i(I){l(y=>({...y,rootState:I}))}const[o,s]=h.useState(()=>{var I;return[...ce(),...((I=e.customComponents)==null?void 0:I.filter(({models:y})=>!(y!=null&&y.length)||!e.model?!0:y.includes(e.model)))||[]].reduce((y,{component:j,...R})=>({...y,[R.name]:{component:j,...p.serializeComponentInfo(R)}}),{})}),[r,l]=h.useState(()=>{var I;return{content:vn({content:e.content,data:e.data}),localState:void 0,rootState:Sn({content:e.content,data:e.data,locale:e.locale}),rootSetState:i,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...ce(),...((I=e.customComponents)==null?void 0:I.filter(({models:y})=>!(y!=null&&y.length)||!e.model?!0:y.includes(e.model)))||[]].reduce((y,{component:j,...R})=>({...y,[R.name]:p.serializeComponentInfo(R)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{},nonce:e.nonce||""}});return a.jsx(he.Provider,{value:{registeredComponents:o},children:a.jsxs(pn,{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:r,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,setBuilderContextSignal:l,children:[e.isSsrAbTest?a.jsx(ne,{id:"builderio-variant-visibility",scriptStr:t,nonce:e.nonce||""}):null,a.jsx(yn,{nonce:e.nonce||"",isNestedRender:e.isNestedRender,contentId:(c=r.content)==null?void 0:c.id,cssCode:(f=(d=r.content)==null?void 0:d.data)==null?void 0:f.cssCode,customFonts:(m=(u=r.content)==null?void 0:u.data)==null?void 0:m.customFonts}),a.jsx(A,{blocks:(S=(b=r.content)==null?void 0:b.data)==null?void 0:S.blocks,context:r,registeredComponents:o,linkComponent:e.linkComponent})]})})}function Fe(e){var r;const[t,n]=h.useState(()=>on({canTrack:p.getDefaultCanTrack(e.canTrack),content:e.content}));function i(){var l;return ln(K(e.content).map(c=>({id:c.testVariationId,testRatio:c.testRatio})),((l=e.content)==null?void 0:l.id)||"")}function o(){return K(e.content).map(l=>`.variant-${l.testVariationId} { display: none; } `).join("")}function s(){var l;return t?{...e.content,testVariationId:(l=e.content)==null?void 0:l.id}:p.handleABTestingSync({item:e.content,canTrack:p.getDefaultCanTrack(e.canTrack)})}return h.useEffect(()=>{},[]),a.jsxs(a.Fragment,{children:[!e.isNestedRender&&p.TARGET!=="reactNative"?a.jsx(ne,{id:"builderio-init-variants-fns",scriptStr:rn(),nonce:e.nonce||""}):null,t?a.jsxs(a.Fragment,{children:[a.jsx(G,{id:"builderio-variants",styles:o(),nonce:e.nonce||""}),a.jsx(ne,{id:"builderio-variants-visibility",scriptStr:i(),nonce:e.nonce||""}),(r=K(e.content))==null?void 0:r.map(l=>a.jsx(me,{isNestedRender:e.isNestedRender,nonce:e.nonce,content:l,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},l.testVariationId))]}):null,a.jsx(me,{nonce:e.nonce,isNestedRender:e.isNestedRender,content:s(),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})]})}const kn=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return p.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{p.logger.error("Could not fetch symbol content: ",n)})};function Ae(e){var l,c,d,f;function t(){return"div"}function n(){return"div"}function i(){var u,m;return[e.attributes[U()],"builder-symbol",(u=e.symbol)!=null&&u.inline?"builder-inline-symbol":void 0,(m=e.symbol)!=null&&m.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[o,s]=h.useState(()=>{var u;return(u=e.symbol)==null?void 0:u.content});function r(){o||kn({symbol:e.symbol,builderContextValue:e.builderContext}).then(u=>{u&&s(u)})}return h.useEffect(()=>{},[]),h.useEffect(()=>{r()},[e.symbol]),a.jsx("div",{...e.attributes,className:i(),children:a.jsx(Fe,{nonce:e.builderContext.nonce,isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(l=e.builderBlock)==null?void 0:l.id},customComponents:Object.values(e.builderComponents),data:{...(c=e.symbol)==null?void 0:c.data,...e.builderContext.localState,...(d=o==null?void 0:o.data)==null?void 0:d.state},canTrack:e.builderContext.canTrack,model:(f=e.symbol)==null?void 0:f.model,content:o,linkComponent:e.builderLinkComponent,blocksWrapper:t(),contentWrapper:n()})})}exports.Blocks=A;exports.BuilderContext=_;exports.Button=fe;exports.Columns=Te;exports.Content=Fe;exports.Fragment=Ie;exports.Image=we;exports.Section=Ee;exports.Symbol=Ae;exports.Text=Re;exports.Video=je;