@builder.io/sdk-react 4.1.0 → 4.1.2

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 (71) hide show
  1. package/lib/browser/blocks-exports.cjs +3 -3
  2. package/lib/browser/blocks-exports.mjs +247 -246
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-cddec22e.js → server-entry-275748e0.js} +120 -144
  6. package/lib/browser/server-entry-d2f19ab1.cjs +2 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-59aed902.cjs → accordion-59377bdf.cjs} +1 -1
  10. package/lib/edge/{accordion-88f5ca79.js → accordion-59685072.js} +1 -1
  11. package/lib/edge/{blocks-1bfa0619.js → blocks-803a3669.js} +2 -2
  12. package/lib/edge/{blocks-e5610e53.cjs → blocks-ab4caea4.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-cfcad5ee.js → button-244756d9.js} +2 -2
  16. package/lib/edge/{button-d4969c10.cjs → button-d9ead397.cjs} +1 -1
  17. package/lib/edge/{columns-4c22f5f9.cjs → columns-88904faf.cjs} +1 -1
  18. package/lib/edge/{columns-840b77f4.js → columns-ac088b45.js} +3 -3
  19. package/lib/edge/{content-variants-5b95a71c.js → content-variants-7ba31977.js} +133 -133
  20. package/lib/edge/{content-variants-9084d7cf.cjs → content-variants-d0558de3.cjs} +5 -5
  21. package/lib/edge/{custom-code-c12691cc.js → custom-code-3d893bd2.js} +1 -1
  22. package/lib/edge/{custom-code-f0f3bef1.cjs → custom-code-e2904013.cjs} +1 -1
  23. package/lib/edge/{embed-95c874d3.cjs → embed-7710e674.cjs} +1 -1
  24. package/lib/edge/{embed-46acac57.js → embed-7c2fe6ce.js} +1 -1
  25. package/lib/edge/{form-49928227.js → form-a5b57678.js} +3 -3
  26. package/lib/edge/{form-e74d90ef.cjs → form-ec1cd318.cjs} +1 -1
  27. package/lib/edge/{get-class-prop-name-5d642918.cjs → get-class-prop-name-31bfc4d6.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-de337a1b.js → get-class-prop-name-4ca8bda9.js} +1 -1
  29. package/lib/edge/{img-a0115c68.js → img-1b034d45.js} +2 -1
  30. package/lib/edge/img-f00b7db5.cjs +1 -0
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-4f2e451f.cjs → input-19390442.cjs} +1 -1
  34. package/lib/edge/{input-2a39a1a8.js → input-dfd8b37e.js} +1 -1
  35. package/lib/edge/{personalization-container-9ddd7a55.cjs → personalization-container-40c62fee.cjs} +1 -1
  36. package/lib/edge/{personalization-container-d477347e.js → personalization-container-660938a9.js} +4 -4
  37. package/lib/edge/{select-d1902b94.js → select-155fc504.js} +1 -1
  38. package/lib/edge/{select-b5449eba.cjs → select-9839622b.cjs} +1 -1
  39. package/lib/edge/{server-entry-50618347.js → server-entry-75006b6f.js} +119 -143
  40. package/lib/edge/server-entry-bdf7aa30.cjs +2 -0
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-e2f8c494.cjs → slot-28225152.cjs} +1 -1
  44. package/lib/edge/{slot-f37576fc.js → slot-c14c2de1.js} +3 -3
  45. package/lib/edge/{symbol-a34eea2a.js → symbol-2419b184.js} +2 -2
  46. package/lib/edge/{symbol-8424cd54.cjs → symbol-e5dc7a91.cjs} +1 -1
  47. package/lib/edge/{tabs-b97f9798.js → tabs-c7011fa2.js} +3 -3
  48. package/lib/edge/{tabs-e686d11f.cjs → tabs-d7aa6ac2.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +3 -3
  50. package/lib/node/blocks-exports.mjs +245 -244
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-1556528d.js → server-entry-0cf21855.js} +120 -144
  56. package/lib/node/server-entry-7a611f62.cjs +2 -0
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-15c96eda.js → setIvm-4171d613.js} +1 -1
  60. package/lib/node/{setIvm-432010ba.cjs → setIvm-68685828.cjs} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-4128d124.cjs → should-force-browser-runtime-in-node-88656beb.cjs} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-d0bca779.js → should-force-browser-runtime-in-node-9fe42073.js} +1 -1
  65. package/package.json +1 -1
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/types/scripts/init-editing.d.ts +0 -1
  68. package/lib/browser/server-entry-9ed7eace.cjs +0 -2
  69. package/lib/edge/img-0fe56811.cjs +0 -1
  70. package/lib/edge/server-entry-a24928b8.cjs +0 -2
  71. package/lib/node/server-entry-ecee24b6.cjs +0 -2
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./server-entry-9ed7eace.cjs"),o=require("react/jsx-runtime"),g=require("react");function et(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const tt=et(g),nt=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),it=e=>typeof e=="string"&&nt.has(e.toLowerCase());function le(e){return o.jsx(o.Fragment,{children:it(e.TagName)?o.jsx(o.Fragment,{children:o.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):o.jsx(o.Fragment,{children:typeof e.TagName=="string"?o.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):o.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}const L=()=>{switch(f.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function Te(e){function t(){return{...e.attributes,[L()]:`${e.link?"":"builder-button"} ${e.attributes[L()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return o.jsx(le,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const Z=g.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""}),Ie=g.createContext({registeredComponents:{}}),we=(e,t,n)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((r,a)=>r!=null?r[a]:r,e);return i===void 0||i===e?n:i},rt=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),at=()=>({isEditing:f.isEditing(),isBrowser:f.isBrowser(),isServer:!f.isBrowser(),getUserAttributes:()=>f.getUserAttributes()}),ot=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Ee({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,r)=>{if(t&&r in t)return t[r];const a=i[r];return typeof a=="object"&&a!==null?Ee({rootState:a,localState:void 0,rootSetState:n?s=>{i[r]=s,n(i)}:void 0}):a},set:(i,r,a)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[r]=a,n==null||n(i),!0}})}const fe=({code:e,builder:t,context:n,event:i,localState:r,rootSetState:a,rootState:s})=>{const l=rt({builder:t,context:n,event:i,state:Ee({rootState:s,localState:r,rootSetState:a})});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function st(){var e;return typeof process!="undefined"&&f.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const lt=({shouldLogWarning:e})=>{var r;if(!st())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),i=(r=process.env.NODE_OPTIONS)==null?void 0:r.includes("--no-node-snapshot");return t&&n&&!i?(e&&f.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},ct=e=>(f.isBrowser()||lt({shouldLogWarning:!0}),fe(e)),ut=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,dt=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,mt=e=>{var t,n,i,r,a,s;return((i=(n=(t=ut.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:i.slice(1))||((s=(a=(r=dt.exec(e.trim()))==null?void 0:r.groups)==null?void 0:a.getPath)==null?void 0:s.slice(1))};function U({code:e,context:t,localState:n,rootState:i,rootSetState:r,event:a,isExpression:s=!0}){if(e.trim()==="")return;const l=mt(e.trim());if(l)return we({...i,...n},l);const c={code:ot(e,{isExpression:s}),builder:at(),context:t,event:a,rootSetState:r,rootState:i,localState:n};try{return ct(c)}catch(u){f.logger.error("Failed code evaluation: "+u.message,{code:e});return}}function ft(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...gt(e,t)}}const gt=(e,t)=>{var n,i;if(((n=e.component)==null?void 0:n.name)==="Text"&&((i=e.component.options)!=null&&i.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(r,a)=>U({code:a,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function ht(e,...t){const n=Object.assign({},e);for(const i of t)delete n[i];return n}function X(e,t,n=null,i=null,r=new WeakSet){if(e==null||typeof e!="object"){t(e,a=>{n!==null&&i!==null&&(n[i]=a)});return}r.has(e)||(r.add(e),Array.isArray(e)?e.forEach((a,s)=>{t(a,c=>{e[s]=c}),X(a,t,e,s,r)}):Object.entries(e).forEach(([a,s])=>{t(s,c=>{e[a]=c}),X(s,t,e,a,r)}))}function Re(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function bt(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return X(e,n=>{if(Re(n)){t=!0;return}}),t}function yt(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(X(e,(n,i)=>{var r;Re(n)&&i((r=n[t])!=null?r:void 0)}),e)}function pt(e,t){var n,i;return(n=e.component)!=null&&n.options&&bt((i=e.component)==null?void 0:i.options)&&(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),e.component.options=yt(e.component.options,t!=null?t:"Default")),e}const ce=e=>JSON.parse(JSON.stringify(e)),Pe=(e,t,n)=>{if(Object(e)!==e)return e;const i=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return i.slice(0,-1).reduce((r,a,s)=>Object(r[a])===r[a]?r[a]:r[a]=Math.abs(Number(i[s+1]))>>0===+i[s+1]?[]:{},e)[i[i.length-1]]=n,e};function se(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>se(n));if(e["@type"]==="@builder.io/sdk:Element")return e;const t={};for(const n in e)n!=="meta"&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=se(e[n]));return t}const xt=["svelte","vue","angular","qwik","solid"].includes(f.TARGET),vt=e=>{if(xt){const t=ce(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=se(ht(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},St=({block:e,context:t,localState:n,rootState:i,rootSetState:r})=>{if(!e.bindings)return e;const a=vt(e);for(const s in e.bindings){const l=e.bindings[s],c=U({code:l,localState:n,rootState:i,rootSetState:r,context:t});Pe(a,s,c)}return a};function kt({block:e,context:t,localState:n,rootState:i,rootSetState:r}){let a=pt(e,i.locale);return a=a,St({block:a,localState:n,rootState:i,rootSetState:r,context:t})}const ee=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function Ct(e,t,n={}){let i,r,a,s=null,l=0;const c=function(){l=n.leading===!1?0:Date.now(),s=null,a=e.apply(i,r),s||(i=r=null)};return function(){const u=Date.now();!l&&n.leading===!1&&(l=u);const h=t-(u-l);return i=this,r=arguments,h<=0||h>t?(s&&(clearTimeout(s),s=null),l=u,a=e.apply(i,r),s||(i=r=null)):!s&&n.trailing!==!1&&(s=setTimeout(c,h)),a}}function q(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const r=arguments[i];if(r!=null)for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n}function Tt(e){for(const t of e)switch(t.trigger){case"pageLoad":je(t);break;case"scrollInView":wt(t);break}}function Ae(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Ve(e,t){const n=It(e),i=getComputedStyle(t),r=e.steps[0].styles,a=e.steps[e.steps.length-1].styles,s=[r,a];for(const l of s)for(const c of n)c in l||(l[c]=i[c])}function It(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 je(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ae(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ve(e,n),n.style.transition="none",n.style.transitionDelay="0",q(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${ee(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),q(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function wt(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ae(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ve(e,n);let i=!1,r=!1;function a(){!i&&l(n)?(i=!0,r=!0,setTimeout(()=>{q(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",s),setTimeout(()=>{r=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!r&&!l(n)&&(i=!1,q(n.style,e.steps[0].styles))}const s=Ct(a,200,{leading:!1});function l(h){const p=h.getBoundingClientRect(),m=window.innerHeight,d=(e.thresholdPercent||0)/100*m;return p.bottom>d&&p.top<m-d}const c=e.steps[0].styles;function u(){q(n.style,c)}u(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${ee(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",s,{capture:!0,passive:!0}),a()})}const Be=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${ee(n)}: ${i};`}).filter(f.checkIsDefined),Et=e=>Be(e).join(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./server-entry-d2f19ab1.cjs"),o=require("react/jsx-runtime"),g=require("react");function et(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const tt=et(g),nt=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),it=e=>typeof e=="string"&&nt.has(e.toLowerCase());function le(e){return o.jsx(o.Fragment,{children:it(e.TagName)?o.jsx(o.Fragment,{children:o.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):o.jsx(o.Fragment,{children:typeof e.TagName=="string"?o.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children}):o.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})}const L=()=>{switch(f.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function Te(e){function t(){return{...e.attributes,[L()]:`${e.link?"":"builder-button"} ${e.attributes[L()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return o.jsx(le,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const Z=g.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""}),Ie=g.createContext({registeredComponents:{}}),we=(e,t,n)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((r,a)=>r!=null?r[a]:r,e);return i===void 0||i===e?n:i},rt=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),at=()=>({isEditing:f.isEditing(),isBrowser:f.isBrowser(),isServer:!f.isBrowser(),getUserAttributes:()=>f.getUserAttributes()}),ot=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Ee({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,r)=>{if(t&&r in t)return t[r];const a=i[r];return typeof a=="object"&&a!==null?Ee({rootState:a,localState:void 0,rootSetState:n?s=>{i[r]=s,n(i)}:void 0}):a},set:(i,r,a)=>{if(t&&r in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[r]=a,n==null||n(i),!0}})}const fe=({code:e,builder:t,context:n,event:i,localState:r,rootSetState:a,rootState:s})=>{const l=rt({builder:t,context:n,event:i,state:Ee({rootState:s,localState:r,rootSetState:a})});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function st(){var e;return typeof process!="undefined"&&f.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const lt=({shouldLogWarning:e})=>{var r;if(!st())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),i=(r=process.env.NODE_OPTIONS)==null?void 0:r.includes("--no-node-snapshot");return t&&n&&!i?(e&&f.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},ct=e=>(f.isBrowser()||lt({shouldLogWarning:!0}),fe(e)),ut=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,dt=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,mt=e=>{var t,n,i,r,a,s;return((i=(n=(t=ut.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:i.slice(1))||((s=(a=(r=dt.exec(e.trim()))==null?void 0:r.groups)==null?void 0:a.getPath)==null?void 0:s.slice(1))};function U({code:e,context:t,localState:n,rootState:i,rootSetState:r,event:a,isExpression:s=!0}){if(e.trim()==="")return;const l=mt(e.trim());if(l)return we({...i,...n},l);const c={code:ot(e,{isExpression:s}),builder:at(),context:t,event:a,rootSetState:r,rootState:i,localState:n};try{return ct(c)}catch(u){f.logger.error("Failed code evaluation: "+u.message,{code:e});return}}function ft(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...gt(e,t)}}const gt=(e,t)=>{var n,i;if(((n=e.component)==null?void 0:n.name)==="Text"&&((i=e.component.options)!=null&&i.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(r,a)=>U({code:a,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function ht(e,...t){const n=Object.assign({},e);for(const i of t)delete n[i];return n}function X(e,t,n=null,i=null,r=new WeakSet){if(e==null||typeof e!="object"){t(e,a=>{n!==null&&i!==null&&(n[i]=a)});return}r.has(e)||(r.add(e),Array.isArray(e)?e.forEach((a,s)=>{t(a,c=>{e[s]=c}),X(a,t,e,s,r)}):Object.entries(e).forEach(([a,s])=>{t(s,c=>{e[a]=c}),X(s,t,e,a,r)}))}function Re(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function bt(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return X(e,n=>{if(Re(n)){t=!0;return}}),t}function yt(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(X(e,(n,i)=>{var r;Re(n)&&i((r=n[t])!=null?r:void 0)}),e)}function pt(e,t){var n,i;return(n=e.component)!=null&&n.options&&bt((i=e.component)==null?void 0:i.options)&&(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),e.component.options=yt(e.component.options,t!=null?t:"Default")),e}const ce=e=>JSON.parse(JSON.stringify(e)),Pe=(e,t,n)=>{if(Object(e)!==e)return e;const i=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return i.slice(0,-1).reduce((r,a,s)=>Object(r[a])===r[a]?r[a]:r[a]=Math.abs(Number(i[s+1]))>>0===+i[s+1]?[]:{},e)[i[i.length-1]]=n,e};function se(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>se(n));if(e["@type"]==="@builder.io/sdk:Element")return e;const t={};for(const n in e)n!=="meta"&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=se(e[n]));return t}const xt=["svelte","vue","angular","qwik","solid"].includes(f.TARGET),vt=e=>{if(xt){const t=ce(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=se(ht(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},St=({block:e,context:t,localState:n,rootState:i,rootSetState:r})=>{if(!e.bindings)return e;const a=vt(e);for(const s in e.bindings){const l=e.bindings[s],c=U({code:l,localState:n,rootState:i,rootSetState:r,context:t});Pe(a,s,c)}return a};function kt({block:e,context:t,localState:n,rootState:i,rootSetState:r}){let a=pt(e,i.locale);return a=a,St({block:a,localState:n,rootState:i,rootSetState:r,context:t})}const ee=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function Ct(e,t,n={}){let i,r,a,s=null,l=0;const c=function(){l=n.leading===!1?0:Date.now(),s=null,a=e.apply(i,r),s||(i=r=null)};return function(){const u=Date.now();!l&&n.leading===!1&&(l=u);const h=t-(u-l);return i=this,r=arguments,h<=0||h>t?(s&&(clearTimeout(s),s=null),l=u,a=e.apply(i,r),s||(i=r=null)):!s&&n.trailing!==!1&&(s=setTimeout(c,h)),a}}function q(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const r=arguments[i];if(r!=null)for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n}function Tt(e){for(const t of e)switch(t.trigger){case"pageLoad":je(t);break;case"scrollInView":wt(t);break}}function Ae(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Ve(e,t){const n=It(e),i=getComputedStyle(t),r=e.steps[0].styles,a=e.steps[e.steps.length-1].styles,s=[r,a];for(const l of s)for(const c of n)c in l||(l[c]=i[c])}function It(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 je(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ae(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ve(e,n),n.style.transition="none",n.style.transitionDelay="0",q(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${ee(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),q(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function wt(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ae(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Ve(e,n);let i=!1,r=!1;function a(){!i&&l(n)?(i=!0,r=!0,setTimeout(()=>{q(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",s),setTimeout(()=>{r=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!r&&!l(n)&&(i=!1,q(n.style,e.steps[0].styles))}const s=Ct(a,200,{leading:!1});function l(h){const p=h.getBoundingClientRect(),m=window.innerHeight,d=(e.thresholdPercent||0)/100*m;return p.bottom>d&&p.top<m-d}const c=e.steps[0].styles;function u(){q(n.style,c)}u(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${ee(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",s,{capture:!0,passive:!0}),a()})}const Be=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${ee(n)}: ${i};`}).filter(f.checkIsDefined),Et=e=>Be(e).join(`
2
2
  `),H=({mediaQuery:e,className:t,styles:n})=>{const i=`.${t} {
3
3
  ${Et(n)}
4
4
  }`;return e?`${e} {
@@ -218,7 +218,7 @@
218
218
  window.${en} = ${Xt}
219
219
  window.${Me} = ${Yt}
220
220
  window.${He} = ${Zt}
221
- `,ze=f.TARGET==="react",an=(e,t,n)=>`window.${Me}(${JSON.stringify(e)}, "${t}", ${ze}${n?`, "${n}"`:""})`,on=(e,t,n)=>`window.${He}(${JSON.stringify(e)}, "${t}", ${ze}${n?`, "${n}"`:""})`,ie={"@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!"}}}]},re={"@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!"}}}]},sn={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:[ie]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[re]}],defaultValue:[{title:[ie],detail:[re]},{title:[ie],detail:[re]}],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}},pe=e=>e.toString();function ln(e){var p;const[t,n]=g.useState(()=>[]);function i(){return!!(e.grid||e.oneAtATime)}function r(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function a(){const S={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(S).filter(([d,b])=>b!==void 0))}function s(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 d=t[0];let v=document.querySelector(`.builder-accordion-title[data-index="${d}"]`);if(m=d,v){let x=v.getBoundingClientRect();for(;v=v&&v.nextElementSibling;)if(v){if(v.classList.contains("builder-accordion-detail"))continue;const C=v.getBoundingClientRect();if(C.left>x.left){const T=parseInt(v.getAttribute("data-index")||"",10);isNaN(T)||(x=C,m=T)}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(([S,d])=>d!==void 0))}function h(m){t.includes(m)?n(i()?[]:t.filter(S=>S!==m)):n(i()?[m]:t.concat(m))}return o.jsx("div",{className:"builder-accordion",style:r(),children:(p=e.items)==null?void 0:p.map((m,S)=>o.jsxs(tt.Fragment,{children:[o.jsx("div",{className:s(S),style:{...a(),...e.grid&&{width:e.gridRowWidth,order:c()!==null?pe(S):pe(S+1)}},"data-index":S,onClick:d=>h(S),children:o.jsx(D,{blocks:m.title,path:`items.${S}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),t.includes(S)?o.jsx("div",{className:l(S),style:u(),children:o.jsx(D,{blocks:m.detail,path:`items.${S}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]},S))})}const cn={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}},un={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(r=>r.get("width"))&&(n.find(a=>!a.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}},dn={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},de=["jpeg","jpg","png","svg","webp","gif","jfif","pjpeg","pjp","apng","avif","tif","tiff","heif","bmp","eps","raw","cr2","nef","orf","sr2","psd","heic","dib","ai"],mn=["mp4","webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","mts","m2ts","ts","wmv","yuv","rm","rmvb","viv","asf","amv","m4p","mpeg","mpe","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b"],fn={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:de,required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,l=6e4){return new Promise((c,u)=>{const h=document.createElement("img");let p=!1;h.onload=()=>{p=!0,c(h)},h.addEventListener("error",m=>{console.warn("Image load failed",m.error),u(m.error)}),h.src=s,setTimeout(()=>{p||u(new Error("Image load timed out"))},l)})}function i(s){return Math.round(s*1e3)/1e3}const r=e.get("image"),a=e.get("aspectRatio");if(fetch(r).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!a||a===.7041))return n(r).then(s=>{const l=e.get("aspectRatio");e.get("image")===r&&(!l||l===.7041)&&s.width&&s.height&&(e.set("aspectRatio",i(s.height/s.width)),e.set("height",s.height),e.set("width",s.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:"title",type:"string",helperText:"Text to display when hovering over the asset"},{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}},gn={name:"PersonalizationContainer",shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0},noWrap:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",canHaveChildren:!0,inputs:[{name:"variants",defaultValue:[],behavior:"personalizationVariantList",type:"list",subFields:[{name:"name",type:"text"},{name:"query",friendlyName:"Targeting rules",type:"BuilderQuery",defaultValue:[]},{name:"startDate",type:"date"},{name:"endDate",type:"date"},{name:"blocks",type:"uiBlocks",hideFromUI:!0,defaultValue:[]}]}]};function O(e){return o.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id,nonce:e.nonce||""})}function hn(e){var C,T,A,I,w,y,k,E,N,W,B,P,$;const t=g.useRef(null),[n,i]=g.useState(()=>f.userAttributesService.getUserAttributes()),[r,a]=g.useState(()=>{var R,V,j;return an(e.variants,((R=e.builderBlock)==null?void 0:R.id)||"none",(j=(V=e.builderContext)==null?void 0:V.rootState)==null?void 0:j.locale)}),[s,l]=g.useState(()=>{var R,V,j;return on(e.variants,((R=e.builderBlock)==null?void 0:R.id)||"none",(j=(V=e.builderContext)==null?void 0:V.rootState)==null?void 0:j.locale)}),[c,u]=g.useState(()=>[]),[h,p]=g.useState(()=>{var R;return tn(e.variants,f.getDefaultCanTrack((R=e.builderContext)==null?void 0:R.canTrack))}),[m,S]=g.useState(()=>!1);function d(){return{...e.attributes,[L()]:`builder-personalization-container ${e.attributes[L()]||""}`}}function b(){return(e.variants||[]).filter(R=>{var V,j,_,F;return Qt({...(j=(V=e.builderContext)==null?void 0:V.rootState)!=null&&j.locale?{locale:(F=(_=e.builderContext)==null?void 0:_.rootState)==null?void 0:F.locale}:{},...n},R.query,R.startDate,R.endDate)})}function v(){var R;return nn({variants:e.variants,fallbackBlocks:(R=e.builderBlock)==null?void 0:R.children,isHydrated:m,filteredVariants:b(),previewingIndex:e.previewingIndex})}function x(){return(e.variants||[]).map((R,V)=>{var j;return`div[data-variant-id="${(j=e.builderBlock)==null?void 0:j.id}-${V}"] { display: none !important; } `}).join("")}return g.useEffect(()=>{var V;S(!0);const R=f.userAttributesService.subscribeOnUserAttributesChange(j=>{i(j)},{fireImmediately:f.TARGET==="qwik"});if(!(f.isEditing()||f.isPreviewing())){const j=b()[0];t.current&&(t.current.dispatchEvent(new CustomEvent("builder.variantLoaded",{detail:{variant:j||J,content:(V=e.builderContext)==null?void 0:V.content},bubbles:!0})),new IntersectionObserver(F=>{F.forEach(K=>{var M;K.isIntersecting&&t.current&&t.current.dispatchEvent(new CustomEvent("builder.variantDisplayed",{detail:{variant:j||J,content:(M=e.builderContext)==null?void 0:M.content},bubbles:!0}))})}).observe(t.current))}c.push(R)},[]),g.useEffect(()=>()=>{c.forEach(R=>R())},[]),o.jsxs("div",{ref:t,...d(),children:[m&&Q.includes(f.TARGET)?o.jsx(D,{blocks:v().blocks,parent:(C=e.builderBlock)==null?void 0:C.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(T=e.builderContext)==null?void 0:T.BlocksWrapperProps,"data-variant-id":`${(A=e.builderBlock)==null?void 0:A.id}-${v().index}`}}):null,!m&&Q.includes(f.TARGET)||!Q.includes(f.TARGET)?o.jsxs(o.Fragment,{children:[h?o.jsxs(o.Fragment,{children:[o.jsx(z,{nonce:((I=e.builderContext)==null?void 0:I.nonce)||"",styles:x(),id:`variants-styles-${(w=e.builderBlock)==null?void 0:w.id}`}),o.jsx(O,{nonce:((y=e.builderContext)==null?void 0:y.nonce)||"",scriptStr:s,id:`variants-visibility-script-${(k=e.builderBlock)==null?void 0:k.id}`}),(E=e.variants)==null?void 0:E.map((R,V)=>{var j,_,F,K,M,me;return o.jsx(D,{BlocksWrapperProps:{...(j=e.builderContext)==null?void 0:j.BlocksWrapperProps,"aria-hidden":!0,hidden:!0,"data-variant-id":`${(_=e.builderBlock)==null?void 0:_.id}-${V}`},blocks:R.blocks,parent:(F=e.builderBlock)==null?void 0:F.id,path:`component.options.variants.${V}.blocks`,context:e.builderContext,registeredComponents:e.builderComponents,children:o.jsx(O,{nonce:((K=e.builderContext)==null?void 0:K.nonce)||"",scriptStr:r,id:`variants-script-${(M=e.builderBlock)==null?void 0:M.id}-${V}`})},`${(me=e.builderBlock)==null?void 0:me.id}-${V}`)})]}):null,o.jsx(D,{blocks:v().blocks,parent:(N=e.builderBlock)==null?void 0:N.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(W=e.builderContext)==null?void 0:W.BlocksWrapperProps,"data-variant-id":`${(B=e.builderBlock)==null?void 0:B.id}-${v().index}`},children:h?o.jsx(O,{nonce:((P=e.builderContext)==null?void 0:P.nonce)||"",scriptStr:r,id:`variants-script-${($=e.builderBlock)==null?void 0:$.id}-${J}`}):null})]}):null]})}const bn={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>"}}}]},yn={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}],shouldReceiveBuilderProps:{builderContext:!0,builderComponents:!0}};function pn(e){var t,n,i;return o.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:o.jsx(D,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,registeredComponents:e.builderComponents,blocks:(i=e.builderContext.rootState)==null?void 0:i[e.name]})})}const xn={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}},ae={"@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"}}},oe={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},vn={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[ae]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[oe]}],defaultValue:[{label:[{...ae,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...oe,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...ae,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...oe,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 Sn(e){var a;const[t,n]=g.useState(()=>e.defaultActiveTab?e.defaultActiveTab-1:0);function i(s){return e.tabs&&e.tabs[s].content}function r(s){s===t&&e.collapsible?n(-1):n(s)}return o.jsxs("div",{children:[o.jsx("div",{className:"builder-tabs-wrap",style:{display:"flex",flexDirection:"row",justifyContent:e.tabHeaderLayout||"flex-start",overflow:"auto"},children:(a=e.tabs)==null?void 0:a.map((s,l)=>o.jsx("span",{className:`builder-tab-wrap ${t===l?"builder-tab-active":""}`,style:{...t===l?e.activeTabStyle:{}},onClick:c=>r(l),children:o.jsx(D,{parent:e.builderBlock.id,path:`tabs.${l}.label`,blocks:s.label,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})},l))}),i(t)?o.jsx("div",{children:o.jsx(D,{parent:e.builderBlock.id,path:`tabs.${t}.content`,blocks:i(t),context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]})}const kn={shouldReceiveBuilderProps:{},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 Ke(e){var t;return o.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Cn={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 Tn(e){const t=g.useRef(null),[n,i]=g.useState(()=>[]),[r,a]=g.useState(()=>[]);function s(){var c;if(!t.current||!((c=t.current)!=null&&c.getElementsByTagName)||typeof window=="undefined")return;const l=t.current.getElementsByTagName("script");for(let u=0;u<l.length;u++){const h=l[u];if(h.src){if(n.includes(h.src))continue;n.push(h.src);const p=document.createElement("script");p.async=!0,p.src=h.src,document.head.appendChild(p)}else if(!h.type||["text/javascript","application/javascript","application/ecmascript"].includes(h.type)){if(r.includes(h.innerText))continue;try{r.push(h.innerText),new Function(h.innerText)()}catch(p){f.logger.warn("[BUILDER.IO] `CustomCode`: Error running script:",p)}}}}return g.useEffect(()=>{s()},[]),g.useEffect(()=>{f.isEditing()&&s()},[e.code]),o.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const In={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}]},wn=["text/javascript","application/javascript","application/ecmascript"],En=e=>wn.includes(e.type);function Rn(e){const t=g.useRef(null),[n,i]=g.useState(()=>[]),[r,a]=g.useState(()=>[]),[s,l]=g.useState(()=>!1);function c(){if(!t.current||!t.current.getElementsByTagName)return;const u=t.current.getElementsByTagName("script");for(let h=0;h<u.length;h++){const p=u[h];if(p.src&&!n.includes(p.src)){n.push(p.src);const m=document.createElement("script");m.async=!0,m.src=p.src,document.head.appendChild(m)}else if(En(p)&&!r.includes(p.innerText))try{r.push(p.innerText),new Function(p.innerText)()}catch(m){f.logger.warn("[BUILDER.IO] `Embed`: Error running script:",m)}}}return g.useEffect(()=>{t.current&&!s&&(l(!0),c())},[t.current,s]),o.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Pn={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}},An=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Vn=()=>{const e=process.env.NODE_ENV||"production";return An.includes(e)?e:"production"};function jn(e){const t=g.useRef(null),[n,i]=g.useState(()=>"unsubmitted"),[r,a]=g.useState(()=>null),[s,l]=g.useState(()=>"");function c(p){var S,d;const m={...e.builderContext.rootState,...p};e.builderContext.rootSetState?(d=(S=e.builderContext).rootSetState)==null||d.call(S,m):e.builderContext.rootState=m}function u(){return f.isEditing()&&e.previewState||n}function h(p){var S;const m=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")p.preventDefault();else if(m){if(!(e.action||e.sendSubmissionsTo==="email")){p.preventDefault();return}p.preventDefault();const d=p.currentTarget||p.target,b=e.customHeaders||{};let v;const x=new FormData(d),C=Array.from(d.querySelectorAll("input,select,textarea")).filter(y=>!!y.name).map(y=>{let k;const E=y.name;if(y instanceof HTMLInputElement)if(y.type==="radio"){if(y.checked)return k=y.name,{key:E,value:k}}else if(y.type==="checkbox")k=y.checked;else if(y.type==="number"||y.type==="range"){const N=y.valueAsNumber;isNaN(N)||(k=N)}else y.type==="file"?k=y.files:k=y.value;else k=y.value;return{key:E,value:k}});let T=e.contentType;if(e.sendSubmissionsTo==="email"&&(T="multipart/form-data"),Array.from(C).forEach(({value:y})=>{(y instanceof File||Array.isArray(y)&&y[0]instanceof File||y instanceof FileList)&&(T="multipart/form-data")}),T!=="application/json")v=x;else{const y={};Array.from(C).forEach(({value:k,key:E})=>{Pe(y,E,k)}),v=JSON.stringify(y)}T&&T!=="multipart/form-data"&&(m&&((S=e.action)!=null&&S.includes("zapier.com"))||(b["content-type"]=T));const A=new CustomEvent("presubmit",{detail:{body:v}});if(t.current&&(t.current.dispatchEvent(A),A.defaultPrevented))return;if(i("sending"),e.sendSubmissionsTo==="email"&&(e.sendSubmissionsToEmail==="your@email.com"||!e.sendSubmissionsToEmail)){const y="SubmissionsToEmail is required when sendSubmissionsTo is set to email";console.error(y),i("error"),c({formErrorMessage:y});return}const I=`${Vn()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`,w=e.sendSubmissionsTo==="email"?I:e.action;f.logFetch(w),fetch(w,{body:v,headers:b,method:e.method||"post"}).then(async y=>{var N,W;let k;const E=y.headers.get("content-type");if(E&&E.indexOf("application/json")!==-1?k=await y.json():k=await y.text(),!y.ok){const B=new CustomEvent("submit:error",{detail:{error:k,status:y.status}});if((N=t.current)!=null&&N.nativeElement&&((W=t.current)==null||W.nativeElement.dispatchEvent(B),B.defaultPrevented))return;a(k),i("error");let P=e.errorMessagePath?we(k,e.errorMessagePath):k.message||k.error||k;typeof P!="string"&&(P=JSON.stringify(P)),l(P),c({formErrorMessage:P});return}if(a(k),i(y.ok?"success":"error"),y.ok){const B=new CustomEvent("submit:success",{detail:{res:y,body:k}});if(t.current){if(t.current.dispatchEvent(B),B.defaultPrevented)return;e.resetFormOnSubmit!==!1&&t.current.reset()}if(e.successUrl)if(t.current){const P=new CustomEvent("route",{detail:{url:e.successUrl}});t.current.dispatchEvent(P),P.defaultPrevented||(location.href=e.successUrl)}else location.href=e.successUrl}},y=>{const k=new CustomEvent("submit:error",{detail:{error:y}});t.current&&(t.current.dispatchEvent(k),k.defaultPrevented)||(a(y),i("error"))})}}return o.jsxs(o.Fragment,{children:[" ",o.jsx("style",{children:".pre-7c90c93e { padding: 10px; color: red; text-align: center; }"})," ",o.jsxs("form",{validate:e.validate,ref:t,action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:p=>h(p),...e.attributes,children:[e.children,u()==="error"?o.jsx(D,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,u()==="sending"?o.jsx(D,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,u()==="error"&&r?o.jsx("pre",{className:"builder-form-error-text pre-7c90c93e",children:JSON.stringify(r,null,2)}):null,u()==="success"?o.jsx(D,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," "]})}const Bn={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 Nn(e){return g.createElement("input",{...e.attributes,key:f.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 Wn={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 Dn(e){var t;return g.createElement("select",{...e.attributes,value:e.value,key:f.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)=>o.jsx("option",{value:n.value,children:n.name||n.value},`${n.name}-${i}`)))}const $n={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 Fn(e){return o.jsx("button",{type:"submit",...e.attributes,children:e.text})}const On={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 Ln(e){return o.jsx("textarea",{...e.attributes,placeholder:e.placeholder,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const _n={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:de,required:!0}],noWrap:!0,static:!0};function Un(e){function t(){const n=e.imgSrc||e.image;if(!(!n||typeof n!="string")&&n.match(/builder\.io/))return G(n)}return o.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,srcSet:t(),...e.attributes},f.isEditing()&&e.imgSrc||"default-key")}const Mn={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:mn,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:de,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 Ge(e){var s,l,c,u,h,p,m;const t=g.useRef(null);function n(){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 i(){return{...n()}}const[r,a]=g.useState(()=>{});return g.useEffect(()=>{if(e.lazyLoad){const S=new IntersectionObserver(function(d){d.forEach(function(b){if(!b.isIntersecting)return;const v=b.target;try{Array.from(v.children).filter(x=>x instanceof HTMLElement&&x.tagName==="SOURCE").forEach(x=>{const C=x.dataset.src;C&&(x.src=C)}),v.load(),S.unobserve(v)}catch(x){console.error("Error loading lazy video:",x)}})});t.current&&S.observe(t.current),a(S)}},[]),g.useEffect(()=>()=>{r&&r.disconnect()},[]),o.jsxs("div",{style:{position:"relative"},children:[o.jsx("video",{className:"builder-video",...i(),ref:t,preload:e.lazyLoad?"none":e.preload||"metadata",style:{width:"100%",height:"100%",...(s=e.attributes)==null?void 0:s.style,objectFit:e.fit,objectPosition:e.position,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},poster:e.posterImage,children:o.jsx("source",{type:"video/mp4",...e.lazyLoad?{"data-src":e.video}:{src:e.video}})}),e.aspectRatio&&!(e.fitContent&&((c=(l=e.builderBlock)==null?void 0:l.children)!=null&&c.length))?o.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}}):null,(h=(u=e.builderBlock)==null?void 0:u.children)!=null&&h.length&&e.fitContent?o.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(m=(p=e.builderBlock)==null?void 0:p.children)!=null&&m.length&&!e.fitContent?o.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 Hn=()=>[{component:Tn,...Cn},{component:Rn,...In},{component:jn,...Pn},{component:Nn,...Bn},{component:Fn,...$n},{component:Dn,...Wn},{component:Ln,...On},{component:Un,..._n},{component:Ge,...Mn}],xe=()=>[{component:Te,...cn},{component:Oe,...un},{component:Le,...dn},{component:_e,...fn},{component:Ue,...bn},{component:pn,...yn},{component:Ze,...xn},{component:Ke,...kn},...qe.includes(f.TARGET)?[{component:hn,...gn}]:[],{component:Sn,...vn},{component:ln,...sn},...Hn()],qn=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
221
+ `,ze=f.TARGET==="react",an=(e,t,n)=>`window.${Me}(${JSON.stringify(e)}, "${t}", ${ze}${n?`, "${n}"`:""})`,on=(e,t,n)=>`window.${He}(${JSON.stringify(e)}, "${t}", ${ze}${n?`, "${n}"`:""})`,ie={"@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!"}}}]},re={"@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!"}}}]},sn={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:[ie]},{name:"detail",type:"uiBlocks",hideFromUI:!0,defaultValue:[re]}],defaultValue:[{title:[ie],detail:[re]},{title:[ie],detail:[re]}],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}},pe=e=>e.toString();function ln(e){var p;const[t,n]=g.useState(()=>[]);function i(){return!!(e.grid||e.oneAtATime)}function r(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function a(){const S={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(S).filter(([d,b])=>b!==void 0))}function s(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 d=t[0];let v=document.querySelector(`.builder-accordion-title[data-index="${d}"]`);if(m=d,v){let x=v.getBoundingClientRect();for(;v=v&&v.nextElementSibling;)if(v){if(v.classList.contains("builder-accordion-detail"))continue;const C=v.getBoundingClientRect();if(C.left>x.left){const T=parseInt(v.getAttribute("data-index")||"",10);isNaN(T)||(x=C,m=T)}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(([S,d])=>d!==void 0))}function h(m){t.includes(m)?n(i()?[]:t.filter(S=>S!==m)):n(i()?[m]:t.concat(m))}return o.jsx("div",{className:"builder-accordion",style:r(),children:(p=e.items)==null?void 0:p.map((m,S)=>o.jsxs(tt.Fragment,{children:[o.jsx("div",{className:s(S),style:{...a(),...e.grid&&{width:e.gridRowWidth,order:c()!==null?pe(S):pe(S+1)}},"data-index":S,onClick:d=>h(S),children:o.jsx(D,{blocks:m.title,path:`items.${S}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),t.includes(S)?o.jsx("div",{className:l(S),style:u(),children:o.jsx(D,{blocks:m.detail,path:`items.${S}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]},S))})}const cn={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}},un={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(r=>r.get("width"))&&(n.find(a=>!a.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}},dn={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},de=["jpeg","jpg","png","svg","webp","gif","jfif","pjpeg","pjp","apng","avif","tif","tiff","heif","bmp","eps","raw","cr2","nef","orf","sr2","psd","heic","dib","ai"],mn=["mp4","webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","mts","m2ts","ts","wmv","yuv","rm","rmvb","viv","asf","amv","m4p","mpeg","mpe","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b"],fn={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:de,required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(s,l=6e4){return new Promise((c,u)=>{const h=document.createElement("img");let p=!1;h.onload=()=>{p=!0,c(h)},h.addEventListener("error",m=>{console.warn("Image load failed",m.error),u(m.error)}),h.src=s,setTimeout(()=>{p||u(new Error("Image load timed out"))},l)})}function i(s){return Math.round(s*1e3)/1e3}const r=e.get("image"),a=e.get("aspectRatio");if(fetch(r).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!a||a===.7041))return n(r).then(s=>{const l=e.get("aspectRatio");e.get("image")===r&&(!l||l===.7041)&&s.width&&s.height&&(e.set("aspectRatio",i(s.height/s.width)),e.set("height",s.height),e.set("width",s.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:"title",type:"string",helperText:"Text to display when hovering over the asset"},{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}},gn={name:"PersonalizationContainer",shouldReceiveBuilderProps:{builderBlock:!0,builderContext:!0,builderComponents:!0},noWrap:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",canHaveChildren:!0,inputs:[{name:"variants",defaultValue:[],behavior:"personalizationVariantList",type:"list",subFields:[{name:"name",type:"text"},{name:"query",friendlyName:"Targeting rules",type:"BuilderQuery",defaultValue:[]},{name:"startDate",type:"date"},{name:"endDate",type:"date"},{name:"blocks",type:"uiBlocks",hideFromUI:!0,defaultValue:[]}]}]};function O(e){return o.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id,nonce:e.nonce||""})}function hn(e){var C,T,A,I,w,y,k,E,N,W,B,P,$;const t=g.useRef(null),[n,i]=g.useState(()=>f.userAttributesService.getUserAttributes()),[r,a]=g.useState(()=>{var R,V,j;return an(e.variants,((R=e.builderBlock)==null?void 0:R.id)||"none",(j=(V=e.builderContext)==null?void 0:V.rootState)==null?void 0:j.locale)}),[s,l]=g.useState(()=>{var R,V,j;return on(e.variants,((R=e.builderBlock)==null?void 0:R.id)||"none",(j=(V=e.builderContext)==null?void 0:V.rootState)==null?void 0:j.locale)}),[c,u]=g.useState(()=>[]),[h,p]=g.useState(()=>{var R;return tn(e.variants,f.getDefaultCanTrack((R=e.builderContext)==null?void 0:R.canTrack))}),[m,S]=g.useState(()=>!1);function d(){return{...e.attributes,[L()]:`builder-personalization-container ${e.attributes[L()]||""}`}}function b(){return(e.variants||[]).filter(R=>{var V,j,_,F;return Qt({...(j=(V=e.builderContext)==null?void 0:V.rootState)!=null&&j.locale?{locale:(F=(_=e.builderContext)==null?void 0:_.rootState)==null?void 0:F.locale}:{},...n},R.query,R.startDate,R.endDate)})}function v(){var R;return nn({variants:e.variants,fallbackBlocks:(R=e.builderBlock)==null?void 0:R.children,isHydrated:m,filteredVariants:b(),previewingIndex:e.previewingIndex})}function x(){return(e.variants||[]).map((R,V)=>{var j;return`div[data-variant-id="${(j=e.builderBlock)==null?void 0:j.id}-${V}"] { display: none !important; } `}).join("")}return g.useEffect(()=>{var V;S(!0);const R=f.userAttributesService.subscribeOnUserAttributesChange(j=>{i(j)},{fireImmediately:f.TARGET==="qwik"});if(!(f.isEditing()||f.isPreviewing())){const j=b()[0];t.current&&(t.current.dispatchEvent(new CustomEvent("builder.variantLoaded",{detail:{variant:j||J,content:(V=e.builderContext)==null?void 0:V.content},bubbles:!0})),new IntersectionObserver(F=>{F.forEach(K=>{var M;K.isIntersecting&&t.current&&t.current.dispatchEvent(new CustomEvent("builder.variantDisplayed",{detail:{variant:j||J,content:(M=e.builderContext)==null?void 0:M.content},bubbles:!0}))})}).observe(t.current))}c.push(R)},[]),g.useEffect(()=>()=>{c.forEach(R=>R())},[]),o.jsxs("div",{ref:t,...d(),children:[m&&Q.includes(f.TARGET)?o.jsx(D,{blocks:v().blocks,parent:(C=e.builderBlock)==null?void 0:C.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(T=e.builderContext)==null?void 0:T.BlocksWrapperProps,"data-variant-id":`${(A=e.builderBlock)==null?void 0:A.id}-${v().index}`}}):null,!m&&Q.includes(f.TARGET)||!Q.includes(f.TARGET)?o.jsxs(o.Fragment,{children:[h?o.jsxs(o.Fragment,{children:[o.jsx(z,{nonce:((I=e.builderContext)==null?void 0:I.nonce)||"",styles:x(),id:`variants-styles-${(w=e.builderBlock)==null?void 0:w.id}`}),o.jsx(O,{nonce:((y=e.builderContext)==null?void 0:y.nonce)||"",scriptStr:s,id:`variants-visibility-script-${(k=e.builderBlock)==null?void 0:k.id}`}),(E=e.variants)==null?void 0:E.map((R,V)=>{var j,_,F,K,M,me;return o.jsx(D,{BlocksWrapperProps:{...(j=e.builderContext)==null?void 0:j.BlocksWrapperProps,"aria-hidden":!0,hidden:!0,"data-variant-id":`${(_=e.builderBlock)==null?void 0:_.id}-${V}`},blocks:R.blocks,parent:(F=e.builderBlock)==null?void 0:F.id,path:`component.options.variants.${V}.blocks`,context:e.builderContext,registeredComponents:e.builderComponents,children:o.jsx(O,{nonce:((K=e.builderContext)==null?void 0:K.nonce)||"",scriptStr:r,id:`variants-script-${(M=e.builderBlock)==null?void 0:M.id}-${V}`})},`${(me=e.builderBlock)==null?void 0:me.id}-${V}`)})]}):null,o.jsx(D,{blocks:v().blocks,parent:(N=e.builderBlock)==null?void 0:N.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(W=e.builderContext)==null?void 0:W.BlocksWrapperProps,"data-variant-id":`${(B=e.builderBlock)==null?void 0:B.id}-${v().index}`},children:h?o.jsx(O,{nonce:((P=e.builderContext)==null?void 0:P.nonce)||"",scriptStr:r,id:`variants-script-${($=e.builderBlock)==null?void 0:$.id}-${J}`}):null})]}):null]})}const bn={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>"}}}]},yn={name:"Slot",isRSC:!0,description:"Allow child blocks to be inserted into this content when used as a Symbol",docsLink:"https://www.builder.io/c/docs/symbols-with-blocks",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",inputs:[{name:"name",type:"string",required:!0,defaultValue:"children"}],shouldReceiveBuilderProps:{builderContext:!0,builderComponents:!0}};function pn(e){var t,n,i;return o.jsx("div",{style:{pointerEvents:"auto"},...!((t=e.builderContext.context)!=null&&t.symbolId)&&{"builder-slot":e.name},children:o.jsx(D,{parent:(n=e.builderContext.context)==null?void 0:n.symbolId,path:`symbol.data.${e.name}`,context:e.builderContext,registeredComponents:e.builderComponents,blocks:(i=e.builderContext.rootState)==null?void 0:i[e.name]})})}const xn={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}},ae={"@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"}}},oe={"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{height:"200px",display:"flex",marginTop:"20px",flexDirection:"column"}},component:{name:"Text",options:{text:"New tab content "}}},vn={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[ae]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[oe]}],defaultValue:[{label:[{...ae,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...oe,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...ae,component:{name:"Text",options:{text:"Tab 2"}}}],content:[{...oe,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 Sn(e){var a;const[t,n]=g.useState(()=>e.defaultActiveTab?e.defaultActiveTab-1:0);function i(s){return e.tabs&&e.tabs[s].content}function r(s){s===t&&e.collapsible?n(-1):n(s)}return o.jsxs("div",{children:[o.jsx("div",{className:"builder-tabs-wrap",style:{display:"flex",flexDirection:"row",justifyContent:e.tabHeaderLayout||"flex-start",overflow:"auto"},children:(a=e.tabs)==null?void 0:a.map((s,l)=>o.jsx("span",{className:`builder-tab-wrap ${t===l?"builder-tab-active":""}`,style:{...t===l?e.activeTabStyle:{}},onClick:c=>r(l),children:o.jsx(D,{parent:e.builderBlock.id,path:`tabs.${l}.label`,blocks:s.label,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})},l))}),i(t)?o.jsx("div",{children:o.jsx(D,{parent:e.builderBlock.id,path:`tabs.${t}.content`,blocks:i(t),context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]})}const kn={shouldReceiveBuilderProps:{},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 Ke(e){var t;return o.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Cn={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 Tn(e){const t=g.useRef(null),[n,i]=g.useState(()=>[]),[r,a]=g.useState(()=>[]);function s(){var c;if(!t.current||!((c=t.current)!=null&&c.getElementsByTagName)||typeof window=="undefined")return;const l=t.current.getElementsByTagName("script");for(let u=0;u<l.length;u++){const h=l[u];if(h.src){if(n.includes(h.src))continue;n.push(h.src);const p=document.createElement("script");p.async=!0,p.src=h.src,document.head.appendChild(p)}else if(!h.type||["text/javascript","application/javascript","application/ecmascript"].includes(h.type)){if(r.includes(h.innerText))continue;try{r.push(h.innerText),new Function(h.innerText)()}catch(p){f.logger.warn("[BUILDER.IO] `CustomCode`: Error running script:",p)}}}}return g.useEffect(()=>{s()},[]),g.useEffect(()=>{f.isEditing()&&s()},[e.code]),o.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const In={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}]},wn=["text/javascript","application/javascript","application/ecmascript"],En=e=>wn.includes(e.type);function Rn(e){const t=g.useRef(null),[n,i]=g.useState(()=>[]),[r,a]=g.useState(()=>[]),[s,l]=g.useState(()=>!1);function c(){if(!t.current||!t.current.getElementsByTagName)return;const u=t.current.getElementsByTagName("script");for(let h=0;h<u.length;h++){const p=u[h];if(p.src&&!n.includes(p.src)){n.push(p.src);const m=document.createElement("script");m.async=!0,m.src=p.src,document.head.appendChild(m)}else if(En(p)&&!r.includes(p.innerText))try{r.push(p.innerText),new Function(p.innerText)()}catch(m){f.logger.warn("[BUILDER.IO] `Embed`: Error running script:",m)}}}return g.useEffect(()=>{t.current&&!s&&(l(!0),c())},[t.current,s]),o.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Pn={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}},An=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Vn=()=>{const e=process.env.NODE_ENV||"production";return An.includes(e)?e:"production"};function jn(e){const t=g.useRef(null),[n,i]=g.useState(()=>"unsubmitted"),[r,a]=g.useState(()=>null),[s,l]=g.useState(()=>"");function c(p){var S,d;const m={...e.builderContext.rootState,...p};e.builderContext.rootSetState?(d=(S=e.builderContext).rootSetState)==null||d.call(S,m):e.builderContext.rootState=m}function u(){return f.isEditing()&&e.previewState||n}function h(p){var S;const m=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")p.preventDefault();else if(m){if(!(e.action||e.sendSubmissionsTo==="email")){p.preventDefault();return}p.preventDefault();const d=p.currentTarget||p.target,b=e.customHeaders||{};let v;const x=new FormData(d),C=Array.from(d.querySelectorAll("input,select,textarea")).filter(y=>!!y.name).map(y=>{let k;const E=y.name;if(y instanceof HTMLInputElement)if(y.type==="radio"){if(y.checked)return k=y.name,{key:E,value:k}}else if(y.type==="checkbox")k=y.checked;else if(y.type==="number"||y.type==="range"){const N=y.valueAsNumber;isNaN(N)||(k=N)}else y.type==="file"?k=y.files:k=y.value;else k=y.value;return{key:E,value:k}});let T=e.contentType;if(e.sendSubmissionsTo==="email"&&(T="multipart/form-data"),Array.from(C).forEach(({value:y})=>{(y instanceof File||Array.isArray(y)&&y[0]instanceof File||y instanceof FileList)&&(T="multipart/form-data")}),T!=="application/json")v=x;else{const y={};Array.from(C).forEach(({value:k,key:E})=>{Pe(y,E,k)}),v=JSON.stringify(y)}T&&T!=="multipart/form-data"&&(m&&((S=e.action)!=null&&S.includes("zapier.com"))||(b["content-type"]=T));const A=new CustomEvent("presubmit",{detail:{body:v}});if(t.current&&(t.current.dispatchEvent(A),A.defaultPrevented))return;if(i("sending"),e.sendSubmissionsTo==="email"&&(e.sendSubmissionsToEmail==="your@email.com"||!e.sendSubmissionsToEmail)){const y="SubmissionsToEmail is required when sendSubmissionsTo is set to email";console.error(y),i("error"),c({formErrorMessage:y});return}const I=`${Vn()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`,w=e.sendSubmissionsTo==="email"?I:e.action;f.logFetch(w),fetch(w,{body:v,headers:b,method:e.method||"post"}).then(async y=>{var N,W;let k;const E=y.headers.get("content-type");if(E&&E.indexOf("application/json")!==-1?k=await y.json():k=await y.text(),!y.ok){const B=new CustomEvent("submit:error",{detail:{error:k,status:y.status}});if((N=t.current)!=null&&N.nativeElement&&((W=t.current)==null||W.nativeElement.dispatchEvent(B),B.defaultPrevented))return;a(k),i("error");let P=e.errorMessagePath?we(k,e.errorMessagePath):k.message||k.error||k;typeof P!="string"&&(P=JSON.stringify(P)),l(P),c({formErrorMessage:P});return}if(a(k),i(y.ok?"success":"error"),y.ok){const B=new CustomEvent("submit:success",{detail:{res:y,body:k}});if(t.current){if(t.current.dispatchEvent(B),B.defaultPrevented)return;e.resetFormOnSubmit!==!1&&t.current.reset()}if(e.successUrl)if(t.current){const P=new CustomEvent("route",{detail:{url:e.successUrl}});t.current.dispatchEvent(P),P.defaultPrevented||(location.href=e.successUrl)}else location.href=e.successUrl}},y=>{const k=new CustomEvent("submit:error",{detail:{error:y}});t.current&&(t.current.dispatchEvent(k),k.defaultPrevented)||(a(y),i("error"))})}}return o.jsxs(o.Fragment,{children:[" ",o.jsx("style",{children:".pre-7c90c93e { padding: 10px; color: red; text-align: center; }"})," ",o.jsxs("form",{validate:e.validate,ref:t,action:!e.sendWithJs&&e.action,method:e.method,name:e.name,onSubmit:p=>h(p),...e.attributes,children:[e.children,u()==="error"?o.jsx(D,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,u()==="sending"?o.jsx(D,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,u()==="error"&&r?o.jsx("pre",{className:"builder-form-error-text pre-7c90c93e",children:JSON.stringify(r,null,2)}):null,u()==="success"?o.jsx(D,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," "]})}const Bn={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 Nn(e){return g.createElement("input",{...e.attributes,key:f.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 Wn={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 Dn(e){var t;return g.createElement("select",{...e.attributes,value:e.value,key:f.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)=>o.jsx("option",{value:n.value,children:n.name||n.value},`${n.name}-${i}`)))}const $n={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 Fn(e){return o.jsx("button",{type:"submit",...e.attributes,children:e.text})}const On={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 Ln(e){return o.jsx("textarea",{...e.attributes,placeholder:e.placeholder,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const _n={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:de,required:!0}],noWrap:!0,static:!0};function Un(e){function t(){const n=e.imgSrc||e.image;if(!(!n||typeof n!="string")&&n.match(/builder\.io/))return G(n)}return o.jsx("img",{loading:"lazy",style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,srcSet:t(),...e.attributes},f.isEditing()&&e.imgSrc||"default-key")}const Mn={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:mn,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:de,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 Ge(e){var s,l,c,u,h,p,m;const t=g.useRef(null);function n(){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 i(){return{...n()}}const[r,a]=g.useState(()=>{});return g.useEffect(()=>{if(e.lazyLoad){const S=new IntersectionObserver(function(d){d.forEach(function(b){if(!b.isIntersecting)return;const v=b.target;try{Array.from(v.children).filter(x=>x instanceof HTMLElement&&x.tagName==="SOURCE").forEach(x=>{const C=x.dataset.src;C&&(x.src=C)}),v.load(),S.unobserve(v)}catch(x){console.error("Error loading lazy video:",x)}})});t.current&&S.observe(t.current),a(S)}},[]),g.useEffect(()=>()=>{r&&r.disconnect()},[]),o.jsxs("div",{style:{position:"relative"},children:[o.jsx("video",{className:"builder-video",...i(),ref:t,preload:e.lazyLoad?"none":e.preload||"metadata",style:{width:"100%",height:"100%",...(s=e.attributes)==null?void 0:s.style,objectFit:e.fit,objectPosition:e.position,borderRadius:"1px",...e.aspectRatio?{position:"absolute"}:null},poster:e.posterImage,children:o.jsx("source",{type:"video/mp4",...e.lazyLoad?{"data-src":e.video}:{src:e.video}})}),e.aspectRatio&&!(e.fitContent&&((c=(l=e.builderBlock)==null?void 0:l.children)!=null&&c.length))?o.jsx("div",{style:{width:"100%",paddingTop:e.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}}):null,(h=(u=e.builderBlock)==null?void 0:u.children)!=null&&h.length&&e.fitContent?o.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(m=(p=e.builderBlock)==null?void 0:p.children)!=null&&m.length&&!e.fitContent?o.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 Hn=()=>[{component:Tn,...Cn},{component:Rn,...In},{component:jn,...Pn},{component:Nn,...Bn},{component:Fn,...$n},{component:Dn,...Wn},{component:Ln,...On},{component:Un,..._n},{component:Ge,...Mn}],xe=()=>[{component:Te,...cn},{component:Oe,...un},{component:Le,...dn},{component:_e,...fn},{component:Ue,...bn},{component:pn,...yn},{component:Ze,...xn},{component:Ke,...kn},...qe.includes(f.TARGET)?[{component:hn,...gn}]:[],{component:Sn,...vn},{component:ln,...sn},...Hn()],qn=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
222
222
  function getAndSetVariantId() {
223
223
  function setCookie(name, value, days) {
224
224
  let expires = '';
@@ -350,7 +350,7 @@ font-weight: ${l};
350
350
  text-align: inherit;
351
351
  font-family: inherit;
352
352
  }
353
- `,si=e=>e?"":oi,li=e=>`variant-${e}`;function ci(e){var C,T,A;const t=g.useRef(null);g.useState(()=>!1);function n(I){var y,k;const w={...e.builderContextSignal.rootState,...I};e.builderContextSignal.rootSetState?(k=(y=e.builderContextSignal).rootSetState)==null||k.call(y,w):e.setBuilderContextSignal(E=>({...E,rootState:w}))}function i(I){var y,k,E,N,W;const w={...e.builderContextSignal.content,...I,data:{...(y=e.builderContextSignal.content)==null?void 0:y.data,...I==null?void 0:I.data},meta:{...(k=e.builderContextSignal.content)==null?void 0:k.meta,...I==null?void 0:I.meta,breakpoints:((E=I==null?void 0:I.meta)==null?void 0:E.breakpoints)||((W=(N=e.builderContextSignal.content)==null?void 0:N.meta)==null?void 0:W.breakpoints)}};e.setBuilderContextSignal(B=>({...B,content:w}))}function r(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[a,s]=g.useState(()=>e.contentWrapper||"div");function l(I){return f.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:w=>{var E;const{breakpoints:y,contentId:k}=w;!k||k!==((E=e.builderContextSignal.content)==null?void 0:E.id)||y&&i({meta:{breakpoints:y}})},animation:w=>{je(w)},contentUpdate:w=>{i(w)},stateUpdate:w=>{n(w)}}})(I)}const[c,u]=g.useState(()=>({})),[h,p]=g.useState(()=>({})),[m,S]=g.useState(()=>!1);function d(I){var w,y;if(e.builderContextSignal.content){const k=(w=e.builderContextSignal.content)==null?void 0:w.testVariationId,E=(y=e.builderContextSignal.content)==null?void 0:y.id;f._track({apiHost:e.apiHost,type:"click",canTrack:f.getDefaultCanTrack(e.canTrack),contentId:E,apiKey:e.apiKey,variationId:k!==E?k:void 0,...ti(I),unique:!m})}m||S(!0)}function b(){var w,y,k;const I=(k=(y=(w=e.builderContextSignal.content)==null?void 0:w.data)==null?void 0:y.httpRequests)!=null?k:{};Object.entries(I).forEach(([E,N])=>{if(!N||h[E]||c[E]&&!f.isEditing())return;h[E]=!0;const W=N.replace(/{{([^}]+)}}/g,(B,P)=>String(U({code:P,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})));f.logFetch(W),fetch(W).then(B=>B.json()).then(B=>{n({[E]:B}),c[E]=!0}).catch(B=>{console.error("error fetching dynamic data",N,B)}).finally(()=>{h[E]=!1})})}function v(){f.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:ce(e.builderContextSignal.rootState),ref:{name:e.model}}}))}const x=g.useRef(!1);return x.current||(b(),v(),x.current=!0),g.useEffect(()=>{var I,w,y,k,E;if(f.isBrowser()){f.isEditing()&&!e.isNestedRender&&(window.addEventListener("message",l),f.registerInsertMenu(),f.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{},modelName:(I=e.model)!=null?I:"",apiKey:e.apiKey}),Object.values(e.builderContextSignal.componentInfos).forEach(P=>{var $,R;if(!(($=P.models)!=null&&$.length)||P.models.includes(e.model)){const V=f.createRegisterComponentMessage(P);(R=window.parent)==null||R.postMessage(V,"*")}}),window.addEventListener("builder:component:stateChangeListenerActivated",v));const N=e.builderContextSignal.content&&f.getDefaultCanTrack(e.canTrack),W=f.getCookieSync({name:`builder.tests.${(w=e.builderContextSignal.content)==null?void 0:w.id}`,canTrack:!0}),B=(y=e.builderContextSignal.content)==null?void 0:y.testVariationId;if(N&&B===W){const P=(k=e.builderContextSignal.content)==null?void 0:k.id,$=e.apiKey;f._track({apiHost:e.apiHost,type:"impression",canTrack:!0,contentId:P,apiKey:$,variationId:W!==P?W:void 0})}if(f.isPreviewing()&&!f.isEditing()){const P=new URL(location.href).searchParams,$=P.get("builder.preview"),R=P.get(`builder.overrides.${$}`),V=P.get("apiKey")||P.get("builder.space");($==="BUILDER_STUDIO"||$===e.model&&V===e.apiKey&&(!e.content||R===e.content.id))&&f.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion,...$==="BUILDER_STUDIO"&&((E=e.context)!=null&&E.symbolId)?{query:{id:e.context.symbolId}}:{}}).then(j=>{j&&i(j)})}}},[]),g.useEffect(()=>{e.content&&i(e.content)},[e.content]),g.useEffect(()=>{v()},[e.builderContextSignal.rootState]),g.useEffect(()=>{e.data&&n(e.data)},[e.data]),g.useEffect(()=>{e.locale&&n({locale:e.locale})},[e.locale]),g.useEffect(()=>()=>{f.isBrowser()&&(window.removeEventListener("message",l),window.removeEventListener("builder:component:stateChangeListenerActivated",v))},[]),o.jsx(Z.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content||ke()?o.jsx(a,{ref:t,onClick:I=>d(I),"builder-content-id":(C=e.builderContextSignal.content)==null?void 0:C.id,"builder-model":e.model,className:li(((T=e.content)==null?void 0:T.testVariationId)||((A=e.content)==null?void 0:A.id)),style:{display:!e.builderContextSignal.content&&ke()?"none":void 0},...r(),...e.contentWrapperProps,children:e.children}):null})}function ui(e){const[t,n]=g.useState(()=>`
353
+ `,si=e=>e?"":oi,li=e=>`variant-${e}`;function ci(e){var C,T,A;const t=g.useRef(null);g.useState(()=>!1);function n(I){var y,k;const w={...e.builderContextSignal.rootState,...I};e.builderContextSignal.rootSetState?(k=(y=e.builderContextSignal).rootSetState)==null||k.call(y,w):e.setBuilderContextSignal(E=>({...E,rootState:w}))}function i(I){var y,k,E,N,W;const w={...e.builderContextSignal.content,...I,data:{...(y=e.builderContextSignal.content)==null?void 0:y.data,...I==null?void 0:I.data},meta:{...(k=e.builderContextSignal.content)==null?void 0:k.meta,...I==null?void 0:I.meta,breakpoints:((E=I==null?void 0:I.meta)==null?void 0:E.breakpoints)||((W=(N=e.builderContextSignal.content)==null?void 0:N.meta)==null?void 0:W.breakpoints)}};e.setBuilderContextSignal(B=>({...B,content:w}))}function r(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[a,s]=g.useState(()=>e.contentWrapper||"div");function l(I){return f.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:w=>{var E;const{breakpoints:y,contentId:k}=w;!k||k!==((E=e.builderContextSignal.content)==null?void 0:E.id)||y&&i({meta:{breakpoints:y}})},animation:w=>{je(w)},contentUpdate:w=>{i(w)},stateUpdate:w=>{n(w)}}})(I)}const[c,u]=g.useState(()=>({})),[h,p]=g.useState(()=>({})),[m,S]=g.useState(()=>!1);function d(I){var w,y;if(e.builderContextSignal.content){const k=(w=e.builderContextSignal.content)==null?void 0:w.testVariationId,E=(y=e.builderContextSignal.content)==null?void 0:y.id;f._track({apiHost:e.apiHost,type:"click",canTrack:f.getDefaultCanTrack(e.canTrack),contentId:E,apiKey:e.apiKey,variationId:k!==E?k:void 0,...ti(I),unique:!m})}m||S(!0)}function b(){var w,y,k;const I=(k=(y=(w=e.builderContextSignal.content)==null?void 0:w.data)==null?void 0:y.httpRequests)!=null?k:{};Object.entries(I).forEach(([E,N])=>{if(!N||h[E]||c[E]&&!f.isEditing())return;h[E]=!0;const W=N.replace(/{{([^}]+)}}/g,(B,P)=>String(U({code:P,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})));f.logFetch(W),fetch(W).then(B=>B.json()).then(B=>{n({[E]:B}),c[E]=!0}).catch(B=>{console.error("error fetching dynamic data",N,B)}).finally(()=>{h[E]=!1})})}function v(){f.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:ce(e.builderContextSignal.rootState),ref:{name:e.model}}}))}const x=g.useRef(!1);return x.current||(b(),v(),x.current=!0),g.useEffect(()=>{var I,w,y,k,E;if(f.isBrowser()){f.isEditing()&&!e.isNestedRender&&(window.addEventListener("message",l),f.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{},modelName:(I=e.model)!=null?I:"",apiKey:e.apiKey}),Object.values(e.builderContextSignal.componentInfos).forEach(P=>{var $,R;if(!(($=P.models)!=null&&$.length)||P.models.includes(e.model)){const V=f.createRegisterComponentMessage(P);(R=window.parent)==null||R.postMessage(V,"*")}}),window.addEventListener("builder:component:stateChangeListenerActivated",v));const N=e.builderContextSignal.content&&f.getDefaultCanTrack(e.canTrack),W=f.getCookieSync({name:`builder.tests.${(w=e.builderContextSignal.content)==null?void 0:w.id}`,canTrack:!0}),B=(y=e.builderContextSignal.content)==null?void 0:y.testVariationId;if(N&&B===W){const P=(k=e.builderContextSignal.content)==null?void 0:k.id,$=e.apiKey;f._track({apiHost:e.apiHost,type:"impression",canTrack:!0,contentId:P,apiKey:$,variationId:W!==P?W:void 0})}if(f.isPreviewing()&&!f.isEditing()){const P=new URL(location.href).searchParams,$=P.get("builder.preview"),R=P.get(`builder.overrides.${$}`),V=P.get("apiKey")||P.get("builder.space");($==="BUILDER_STUDIO"||$===e.model&&V===e.apiKey&&(!e.content||R===e.content.id))&&f.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion,...$==="BUILDER_STUDIO"&&((E=e.context)!=null&&E.symbolId)?{query:{id:e.context.symbolId}}:{}}).then(j=>{j&&i(j)})}}},[]),g.useEffect(()=>{e.content&&i(e.content)},[e.content]),g.useEffect(()=>{v()},[e.builderContextSignal.rootState]),g.useEffect(()=>{e.data&&n(e.data)},[e.data]),g.useEffect(()=>{e.locale&&n({locale:e.locale})},[e.locale]),g.useEffect(()=>()=>{f.isBrowser()&&(window.removeEventListener("message",l),window.removeEventListener("builder:component:stateChangeListenerActivated",v))},[]),o.jsx(Z.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content||ke()?o.jsx(a,{ref:t,onClick:I=>d(I),"builder-content-id":(C=e.builderContextSignal.content)==null?void 0:C.id,"builder-model":e.model,className:li(((T=e.content)==null?void 0:T.testVariationId)||((A=e.content)==null?void 0:A.id)),style:{display:!e.builderContextSignal.content&&ke()?"none":void 0},...r(),...e.contentWrapperProps,children:e.children}):null})}function ui(e){const[t,n]=g.useState(()=>`
354
354
  ${ai({cssCode:e.cssCode,contentId:e.contentId})}
355
355
  ${ri({customFonts:e.customFonts})}
356
356
  ${si(e.isNestedRender)}