@builder.io/sdk-react 5.2.2 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +32 -62
- package/lib/browser/blocks-exports.mjs +433 -467
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-44ac782f.cjs → server-entry-4bf14bc1.cjs} +1 -1
- package/lib/browser/{server-entry-aff2c5ee.js → server-entry-a6f43f98.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-3144e69e.js → accordion-52741334.js} +1 -1
- package/lib/edge/{accordion-8b1afed8.cjs → accordion-6c708d49.cjs} +1 -1
- package/lib/edge/{blocks-817f9485.js → blocks-af5e55f6.js} +2 -2
- package/lib/edge/{blocks-5b2c456f.cjs → blocks-e94e371c.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-cfe682cf.js → button-2a5bf939.js} +2 -2
- package/lib/edge/{button-ac5a0022.cjs → button-df76a8b2.cjs} +1 -1
- package/lib/edge/{columns-e400b435.cjs → columns-044891a6.cjs} +1 -1
- package/lib/edge/{columns-1de197aa.js → columns-dc5fc496.js} +3 -3
- package/lib/edge/{content-variants-7113e9cf.cjs → content-variants-9ee0d895.cjs} +23 -53
- package/lib/edge/{content-variants-c6ff157f.js → content-variants-d950ffc8.js} +301 -335
- package/lib/edge/{custom-code-7616d00a.cjs → custom-code-2403d3d3.cjs} +1 -1
- package/lib/edge/{custom-code-143b5a84.js → custom-code-685e8b43.js} +1 -1
- package/lib/edge/{embed-e6116e90.js → embed-462f3730.js} +1 -1
- package/lib/edge/{embed-f68db9ab.cjs → embed-cdbaa40e.cjs} +1 -1
- package/lib/edge/{form-bbe1e30e.js → form-1a9b42a0.js} +3 -3
- package/lib/edge/{form-3b66981f.cjs → form-43c8dbf3.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-541f7abc.js → get-class-prop-name-e944471a.js} +1 -1
- package/lib/edge/{get-class-prop-name-13da1e6d.cjs → get-class-prop-name-fbedc76f.cjs} +1 -1
- package/lib/edge/{img-e4fe298b.cjs → img-d3819e49.cjs} +1 -1
- package/lib/edge/{img-89400807.js → img-fb540382.js} +2 -2
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-4b0e20ac.js → input-0efc2cf0.js} +1 -1
- package/lib/edge/{input-9fd73d5f.cjs → input-6c53f2f3.cjs} +1 -1
- package/lib/edge/{personalization-container-d4bfb7a9.js → personalization-container-63d25e42.js} +4 -4
- package/lib/edge/{personalization-container-adbe238a.cjs → personalization-container-a9c09c80.cjs} +1 -1
- package/lib/edge/{select-93ec2e99.cjs → select-391ac558.cjs} +1 -1
- package/lib/edge/{select-53fe8822.js → select-61deb890.js} +1 -1
- package/lib/edge/{server-entry-92cd5eeb.cjs → server-entry-4528f206.cjs} +1 -1
- package/lib/edge/{server-entry-17b8ed52.js → server-entry-5182bda7.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-1d00a5ae.cjs → slot-373f1e81.cjs} +1 -1
- package/lib/edge/{slot-31cbb5b2.js → slot-6f93fc15.js} +3 -3
- package/lib/edge/{symbol-9aca7157.js → symbol-2ad1da28.js} +2 -2
- package/lib/edge/{symbol-84c1857b.cjs → symbol-a1651207.cjs} +1 -1
- package/lib/edge/{tabs-a7d93c37.cjs → tabs-a0eccabc.cjs} +1 -1
- package/lib/edge/{tabs-f8858f81.js → tabs-c4e43a9c.js} +3 -3
- package/lib/node/blocks-exports.cjs +30 -60
- package/lib/node/blocks-exports.mjs +500 -534
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-c3bc01a9.js → server-entry-52b9a881.js} +1 -1
- package/lib/node/{server-entry-99ae937a.cjs → server-entry-88c9db7d.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-f74f2921.js → setIvm-25463972.js} +1 -1
- package/lib/node/{setIvm-4dccb8f3.cjs → setIvm-5e533ce2.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-131d268b.cjs → should-force-browser-runtime-in-node-a8019095.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1af30e6f.js → should-force-browser-runtime-in-node-d883c014.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/helpers.d.ts +0 -1
- package/types/constants/sdk-version.d.ts +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./server-entry-44ac782f.cjs"),o=require("react/jsx-runtime"),d=require("react");function nt(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 it=nt(d),rt=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),at=e=>typeof e=="string"&&rt.has(e.toLowerCase());function le(e){return o.jsx(o.Fragment,{children:at(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 U=()=>{switch(f.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function we(e){function t(){return{...e.attributes,[U()]:`${e.link?"":"builder-button"} ${e.attributes[U()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return o.jsx(le,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const z=d.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""}),Ee=d.createContext({registeredComponents:{}}),Re=(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},ot=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),st=e=>({isEditing:f.isEditing(),isBrowser:f.isBrowser(),isServer:!f.isBrowser(),getUserAttributes:()=>f.getUserAttributes(),trackConversion:(t,n)=>{var i;!(e!=null&&e.apiKey)||(e==null?void 0:e.canTrack)===!1||f._track({type:"conversion",apiKey:e.apiKey,canTrack:(i=e.canTrack)!=null?i:!0,contentId:e.contentId,variationId:e.variationId!==e.contentId?e.variationId:void 0,metadata:{...n||{},...t!==void 0?{amount:t}:{}}})}}),lt=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Pe({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?Pe({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=ot({builder:t,context:n,event:i,state:Pe({rootState:s,localState:r,rootSetState:a})});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function ct(){var e;return typeof process!="undefined"&&f.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const ut=({shouldLogWarning:e})=>{var r;if(!ct())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},dt=e=>(f.isBrowser()||ut({shouldLogWarning:!0}),fe(e)),mt=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,ft=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,gt=e=>{var t,n,i,r,a,s;return((i=(n=(t=mt.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:i.slice(1))||((s=(a=(r=ft.exec(e.trim()))==null?void 0:r.groups)==null?void 0:a.getPath)==null?void 0:s.slice(1))};function H({code:e,context:t,localState:n,rootState:i,rootSetState:r,event:a,isExpression:s=!0,trackingContext:l}){if(e.trim()==="")return;const c=gt(e.trim());if(c)return Re({...i,...n},c);const m={code:lt(e,{isExpression:s}),builder:st(l),context:t,event:a,rootSetState:r,rootState:i,localState:n};try{return dt(m)}catch(b){f.logger.error("Failed code evaluation: "+b.message,{code:e});return}}function ht(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...bt(e,t)}}const bt=(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)=>H({code:a,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function yt(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 Ae(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function pt(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return X(e,n=>{if(Ae(n)){t=!0;return}}),t}function xt(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(X(e,(n,i)=>{var r;Ae(n)&&i((r=n[t])!=null?r:void 0)}),e)}function vt(e,t){var n,i;return(n=e.component)!=null&&n.options&&pt((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=xt(e.component.options,t!=null?t:"Default")),e}const ce=e=>JSON.parse(JSON.stringify(e)),Ve=(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 St=["svelte","vue","angular","qwik","solid"].includes(f.TARGET),kt=e=>{if(St){const t=ce(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=se(yt(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},Ct=({block:e,context:t,localState:n,rootState:i,rootSetState:r})=>{if(!e.bindings)return e;const a=kt(e);for(const s in e.bindings){const l=e.bindings[s],c=H({code:l,localState:n,rootState:i,rootSetState:r,context:t});Ve(a,s,c)}return a};function Tt({block:e,context:t,localState:n,rootState:i,rootSetState:r}){let a=e;return a=Ct({block:a,localState:n,rootState:i,rootSetState:r,context:t}),a=vt(a,i.locale),a}const Z=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function It(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 m=Date.now();!l&&n.leading===!1&&(l=m);const b=t-(m-l);return i=this,r=arguments,b<=0||b>t?(s&&(clearTimeout(s),s=null),l=m,a=e.apply(i,r),s||(i=r=null)):!s&&n.trailing!==!1&&(s=setTimeout(c,b)),a}}function K(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 wt(e){for(const t of e)switch(t.trigger){case"pageLoad":Ne(t);break;case"scrollInView":Rt(t);break}}function je(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Be(e,t){const n=Et(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 Et(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 Ne(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){je(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Be(e,n),n.style.transition="none",n.style.transitionDelay="0",K(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${Z(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),K(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function Rt(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){je(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{Be(e,n);let i=!1,r=!1;function a(){!i&&l(n)?(i=!0,r=!0,setTimeout(()=>{K(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,K(n.style,e.steps[0].styles))}const s=It(a,200,{leading:!1});function l(b){const p=b.getBoundingClientRect(),u=window.innerHeight,g=(e.thresholdPercent||0)/100*u;return p.bottom>g&&p.top<u-g}const c=e.steps[0].styles;function m(){K(n.style,c)}m(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${Z(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",s,{capture:!0,passive:!0}),a()})}const $e=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${Z(n)}: ${i};`}).filter(f.checkIsDefined),Pt=e=>$e(e).join(`
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./server-entry-4bf14bc1.cjs"),o=require("react/jsx-runtime"),d=require("react");function tt(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 nt=tt(d),it=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),at=e=>typeof e=="string"&&it.has(e.toLowerCase());function le(e){return o.jsx(o.Fragment,{children:at(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 U=()=>{switch(f.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}};function Ie(e){function t(){return{...e.attributes,[U()]:`${e.link?"":"builder-button"} ${e.attributes[U()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}return o.jsx(le,{attributes:t(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const K=d.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""}),we=d.createContext({registeredComponents:{}}),Ee=(e,t,n)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((a,r)=>a!=null?a[r]:a,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}),ot=e=>({isEditing:f.isEditing(),isBrowser:f.isBrowser(),isServer:!f.isBrowser(),getUserAttributes:()=>f.getUserAttributes(),trackConversion:(t,n)=>{var i;!(e!=null&&e.apiKey)||(e==null?void 0:e.canTrack)===!1||f._track({type:"conversion",apiKey:e.apiKey,canTrack:(i=e.canTrack)!=null?i:!0,contentId:e.contentId,variationId:e.variationId!==e.contentId?e.variationId:void 0,metadata:{...n||{},...t!==void 0?{amount:t}:{}}})}}),st=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Re({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,a)=>{if(t&&a in t)return t[a];const r=i[a];return typeof r=="object"&&r!==null?Re({rootState:r,localState:void 0,rootSetState:n?s=>{i[a]=s,n(i)}:void 0}):r},set:(i,a,r)=>{if(t&&a in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[a]=r,n==null||n(i),!0}})}const fe=({code:e,builder:t,context:n,event:i,localState:a,rootSetState:r,rootState:s})=>{const l=rt({builder:t,context:n,event:i,state:Re({rootState:s,localState:a,rootSetState:r})});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function lt(){var e;return typeof process!="undefined"&&f.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const ct=({shouldLogWarning:e})=>{var a;if(!lt())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),i=(a=process.env.NODE_OPTIONS)==null?void 0:a.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},ut=e=>(f.isBrowser()||ct({shouldLogWarning:!0}),fe(e)),dt=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,mt=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,ft=e=>{var t,n,i,a,r,s;return((i=(n=(t=dt.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:i.slice(1))||((s=(r=(a=mt.exec(e.trim()))==null?void 0:a.groups)==null?void 0:r.getPath)==null?void 0:s.slice(1))};function M({code:e,context:t,localState:n,rootState:i,rootSetState:a,event:r,isExpression:s=!0,trackingContext:l}){if(e.trim()==="")return;const c=ft(e.trim());if(c)return Ee({...i,...n},c);const m={code:st(e,{isExpression:s}),builder:ot(l),context:t,event:r,rootSetState:a,rootState:i,localState:n};try{return ut(m)}catch(b){f.logger.error("Failed code evaluation: "+b.message,{code:e});return}}function gt(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...ht(e,t)}}const ht=(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,(a,r)=>M({code:r,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function bt(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,a=new WeakSet){if(e==null||typeof e!="object"){t(e,r=>{n!==null&&i!==null&&(n[i]=r)});return}a.has(e)||(a.add(e),Array.isArray(e)?e.forEach((r,s)=>{t(r,c=>{e[s]=c}),X(r,t,e,s,a)}):Object.entries(e).forEach(([r,s])=>{t(s,c=>{e[r]=c}),X(s,t,e,r,a)}))}function Pe(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function yt(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return X(e,n=>{if(Pe(n)){t=!0;return}}),t}function xt(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(X(e,(n,i)=>{var a;Pe(n)&&i((a=n[t])!=null?a:void 0)}),e)}function pt(e,t){var n,i;return(n=e.component)!=null&&n.options&&yt((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=xt(e.component.options,t!=null?t:"Default")),e}const ce=e=>JSON.parse(JSON.stringify(e)),Ae=(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((a,r,s)=>Object(a[r])===a[r]?a[r]:a[r]=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 vt=["svelte","vue","angular","qwik","solid"].includes(f.TARGET),St=e=>{if(vt){const t=ce(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=se(bt(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},kt=({block:e,context:t,localState:n,rootState:i,rootSetState:a})=>{if(!e.bindings)return e;const r=St(e);for(const s in e.bindings){const l=e.bindings[s],c=M({code:l,localState:n,rootState:i,rootSetState:a,context:t});Ae(r,s,c)}return r};function Ct({block:e,context:t,localState:n,rootState:i,rootSetState:a}){let r=e;return r=kt({block:r,localState:n,rootState:i,rootSetState:a,context:t}),r=pt(r,i.locale),r}const Z=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function Tt(e,t,n={}){let i,a,r,s=null,l=0;const c=function(){l=n.leading===!1?0:Date.now(),s=null,r=e.apply(i,a),s||(i=a=null)};return function(){const m=Date.now();!l&&n.leading===!1&&(l=m);const b=t-(m-l);return i=this,a=arguments,b<=0||b>t?(s&&(clearTimeout(s),s=null),l=m,r=e.apply(i,a),s||(i=a=null)):!s&&n.trailing!==!1&&(s=setTimeout(c,b)),r}}function z(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const a=arguments[i];if(a!=null)for(const r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])}return n}function It(e){for(const t of e)switch(t.trigger){case"pageLoad":Be(t);break;case"scrollInView":Et(t);break}}function Ve(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function je(e,t){const n=wt(e),i=getComputedStyle(t),a=e.steps[0].styles,r=e.steps[e.steps.length-1].styles,s=[a,r];for(const l of s)for(const c of n)c in l||(l[c]=i[c])}function wt(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 Be(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ve(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{je(e,n),n.style.transition="none",n.style.transitionDelay="0",z(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${Z(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),z(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function Et(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Ve(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{je(e,n);let i=!1,a=!1;function r(){!i&&l(n)?(i=!0,a=!0,setTimeout(()=>{z(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",s),setTimeout(()=>{a=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!a&&!l(n)&&(i=!1,z(n.style,e.steps[0].styles))}const s=Tt(r,200,{leading:!1});function l(b){const x=b.getBoundingClientRect(),u=window.innerHeight,g=(e.thresholdPercent||0)/100*u;return x.bottom>g&&x.top<u-g}const c=e.steps[0].styles;function m(){z(n.style,c)}m(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${Z(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",s,{capture:!0,passive:!0}),r()})}const Ne=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${Z(n)}: ${i};`}).filter(f.checkIsDefined),Rt=e=>Ne(e).join(`
|
|
2
2
|
`),q=({mediaQuery:e,className:t,styles:n})=>{const i=`.${t} {
|
|
3
|
-
${
|
|
3
|
+
${Rt(n)}
|
|
4
4
|
}`;return e?`${e} {
|
|
5
5
|
${i}
|
|
6
|
-
}`:i};function
|
|
6
|
+
}`:i};function Pt({style:e}){return e}const At=({block:e,context:t})=>De(Pt({style:e.style||{},context:t,block:e}));function De(e){switch(f.TARGET){case"svelte":case"vue":case"solid":case"angular":return Ne(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Fe=(e,t)=>e?t?e.models&&e.models.length>0&&!e.models.includes(t):!1:!0,Vt=({block:e,registeredComponents:t,model:n})=>{var r;const i=(r=e.component)==null?void 0:r.name;if(!i)return null;const a=t[i];if(!a||Fe(a,n)){console.warn(`
|
|
7
7
|
Could not find a registered component named "${i}".
|
|
8
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`);return}else return r},Bt=({block:e,context:t})=>{const{repeat:n,...i}=e;if(!(n!=null&&n.collection))return;const r=H({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(r))return;const a=n.collection.split(".").pop(),s=n.itemName||(a?a+"Item":"item");return r.map((c,m)=>({context:{...t,localState:{...t.localState,$index:m,$item:c,[s]:c,[`$${s}Index`]:m}},block:i}))},Nt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},$t=(e,t,n)=>{var i;return(i=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&i.builderComponents?{builderComponents:Object.fromEntries(Object.entries(t).filter(([a,s])=>!We(s,n)))}:{}},Dt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},Wt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},ge=e=>e.toString();function Ft(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ot=e=>`on${Ft(e)}`,Lt=(e,t)=>n=>H({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,trackingContext:t.trackingContext});function Fe(e){var i;const t={},n=(i=e.block.actions)!=null?i:{};for(const r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];let s=Ot(r);if(e.stripPrefix)switch(f.TARGET){case"vue":s=s.replace("v-on:","");break;case"svelte":s=s.replace("on:","");break}t[s]=Lt(a,e)}return t}function _t({properties:e}){return e}const Ut=e=>({href:e.href});function ue({block:e,context:t}){var i;const n={...Ut(e),...e.properties,"builder-id":e.id,style:Vt({block:e,context:t}),[U()]:[e.id,"builder-block",e.class,(i=e.properties)==null?void 0:i.class].filter(Boolean).join(" ")};return _t({properties:n,context:t,block:e})}function Mt(e){var t,n,i;return o.jsx(le,{TagName:e.Wrapper,attributes:ue({block:e.block,context:e.context}),actionAttributes:Fe({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0,trackingContext:{apiKey:e.context.apiKey,canTrack:(t=e.context.canTrack)!=null?t:!0,contentId:(n=e.context.content)==null?void 0:n.id,variationId:(i=e.context.content)==null?void 0:i.testVariationId}}),children:e.children})}function Ht(e){return d.useEffect(()=>{},[]),o.jsx(o.Fragment,{children:e.children})}function qt(e){var i,r;d.useState(()=>0);function t(){var a,s,l;return e.includeBlockProps?{...ue({block:e.block,context:e.context}),...Fe({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,trackingContext:{apiKey:e.context.apiKey,canTrack:(a=e.context.canTrack)!=null?a:!0,contentId:(s=e.context.content)==null?void 0:s.id,variationId:(l=e.context.content)==null?void 0:l.testVariationId}})}:{}}function n(){return e.wrapperProps}return d.useEffect(()=>{},[e.wrapperProps,(r=(i=e.block)==null?void 0:i.component)==null?void 0:r.options]),o.jsx(o.Fragment,{children:e.Wrapper.load?o.jsx(o.Fragment,{children:o.jsx(Ht,{load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:t(),children:e.children})}):o.jsx(e.Wrapper,{...n(),attributes:t(),children:e.children})})}const Kt=({componentOptions:e,builderBlock:t,context:n,componentRef:i,includeBlockProps:r,isInteractive:a,contextValue:s})=>{const l={...e,...r?{attributes:ue({block:t,context:s})}:{}};return a?{Wrapper:i,block:t,context:n,wrapperProps:e,includeBlockProps:r}:l};function he(e){var r;d.useState(()=>!1);const[t,n]=d.useState(()=>e.isInteractive?qt:e.componentRef);function i(){return e.componentRef?e.blockChildren:[]}return o.jsx(o.Fragment,{children:e.componentRef?o.jsx(o.Fragment,{children:o.jsx(t,{...Kt({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(r=i())==null?void 0:r.map(a=>o.jsx(ee,{block:a,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},a.id))})}):null})}function be(e){const[t,n]=d.useState(()=>e.repeatContext);return d.useEffect(()=>{n(e.repeatContext)},[e.repeatContext]),o.jsx(z.Provider,{value:t,children:o.jsx(ee,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}const Oe={xsmall:{min:0,default:160,max:320},small:{min:321,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},te=(e,t=Oe)=>`@media (max-width: ${t[e].max}px)`,Le=e=>{const t=ce(Oe);if(!e)return t;const{xsmall:n,small:i,medium:r}=e;if(n){const c=Math.floor(n/2);t.xsmall={max:n,min:c,default:c+1}}if(!i||!r)return t;const a=n?t.xsmall.max+1:Math.floor(i/2);t.small={max:i,min:a,default:a+1};const s=t.small.max+1;t.medium={max:r,min:s,default:s+1};const l=t.medium.max+1;return t.large={max:2e3,min:l,default:l+1},t};function G(e){return o.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id,nonce:e.nonce})}function ye(e){function t(){const i=e.block;return f.checkIsDefined(i.hide)?!i.hide:f.checkIsDefined(i.show)?i.show:!0}function n(){var I,E,W,O,L;const i=e.block,r=i.responsiveStyles,a=e.context.content,s=Le(((I=a==null?void 0:a.meta)==null?void 0:I.breakpoints)||{}),l=!!((W=(E=a==null?void 0:a.meta)==null?void 0:E.breakpoints)!=null&&W.xsmall),c=r==null?void 0:r.large,m=r==null?void 0:r.medium,b=r==null?void 0:r.small,p=r==null?void 0:r.xsmall,u=i.id;if(!u)return"";const C=c?q({className:u,styles:c}):"",g=m?q({className:u,styles:m,mediaQuery:te("medium",s)}):"",y=b?q({className:u,styles:b,mediaQuery:te("small",s)}):"",v=p&&l?q({className:u,styles:p,mediaQuery:te("xsmall",s)}):"",h=i.animations&&i.animations.find(x=>x.trigger==="hover");let S="";if(h){const x=((L=(O=h.steps)==null?void 0:O[1])==null?void 0:L.styles)||{};S=q({className:`${u}:hover`,styles:{...x,transition:`all ${h.duration}s ${Z(h.easing)}`,transitionDelay:h.delay?`${h.delay}s`:"0s"}})||""}return[C,g,y,v,S].join(" ")}return o.jsx(o.Fragment,{children:n()&&t()?o.jsx(o.Fragment,{children:o.jsx(G,{id:"builderio-block",styles:n(),nonce:e.context.nonce})}):null})}function zt(e){d.useState(()=>!1);const[t,n]=d.useState(()=>!1);return d.useContext(z),d.useEffect(()=>{},[]),o.jsx(o.Fragment,{children:t?o.jsx(o.Fragment,{children:o.jsx(o.Fragment,{children:o.jsx(ye,{block:e.block,context:e.context})})}):o.jsx(o.Fragment,{children:o.jsx(ye,{block:e.block,context:e.context})})})}function ee(e){var b,p,u,C;function t(){return Bt({block:e.block,context:e.context})}const[n,i]=d.useState(()=>({value:null,update:!1}));function r(){var y;if(n.value&&!n.update&&!f.isPreviewing())return n.value;const g=(y=e.block.repeat)!=null&&y.collection?e.block:Tt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context});return n.value=g,n.update=!1,g}function a(){return jt({block:r(),registeredComponents:e.registeredComponents,model:e.context.model})}function s(){var y;return e.block.tagName==="a"||((y=r().properties)==null?void 0:y.href)||r().href?e.linkComponent||"a":e.block.tagName||"div"}function l(){var v,h;if((v=e.block.repeat)!=null&&v.collection)return!!((h=t==null?void 0:t())!=null&&h.length);const g="hide"in r()?r().hide:!1;return("show"in r()?r().show:!0)&&!g}function c(){var y,v;return!((y=a==null?void 0:a())!=null&&y.component)&&!t()?(v=r().children)!=null?v:[]:[]}function m(){var g,y,v,h;return{blockChildren:(g=r().children)!=null?g:[],componentRef:(y=a==null?void 0:a())==null?void 0:y.component,componentOptions:{...ht(r(),e.context),...Dt(a(),r()),...Wt(a(),e.context),...Nt(a(),e.linkComponent),...$t(a(),e.registeredComponents,e.context.model)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:r(),includeBlockProps:((v=a==null?void 0:a())==null?void 0:v.noWrap)===!0,isInteractive:!((h=a==null?void 0:a())!=null&&h.isRSC&&f.TARGET==="rsc")}}return d.useEffect(()=>{const g=r().id,y=r().animations;y&&g&&wt(y.map(v=>({...v,elementId:g})))},[]),d.useEffect(()=>{n.update=!0}),o.jsx(o.Fragment,{children:l()?o.jsxs(o.Fragment,{children:[o.jsx(zt,{block:r(),context:e.context,id:e.block.id}),(b=a==null?void 0:a())!=null&&b.noWrap?t()?o.jsx(o.Fragment,{children:(C=t())==null?void 0:C.map((g,y)=>o.jsx(be,{repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},ge(y)))}):o.jsx(he,{componentRef:m().componentRef,componentOptions:m().componentOptions,blockChildren:m().blockChildren,context:m().context,registeredComponents:m().registeredComponents,linkComponent:m().linkComponent,builderBlock:m().builderBlock,includeBlockProps:m().includeBlockProps,isInteractive:m().isInteractive}):o.jsx(o.Fragment,{children:t()?o.jsx(o.Fragment,{children:(u=t())==null?void 0:u.map((g,y)=>o.jsx(be,{repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},ge(y)))}):o.jsxs(Mt,{Wrapper:s(),block:r(),context:e.context,children:[o.jsx(he,{componentRef:m().componentRef,componentOptions:m().componentOptions,blockChildren:m().blockChildren,context:m().context,registeredComponents:m().registeredComponents,linkComponent:m().linkComponent,builderBlock:m().builderBlock,includeBlockProps:m().includeBlockProps,isInteractive:m().isInteractive}),(p=c())==null?void 0:p.map(g=>o.jsx(ee,{block:g,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},g.id))]})})]}):null})}function Gt(e){const t=d.useRef(null);d.useState(()=>!1);function n(){var s;return["builder-blocks",(s=e.blocks)!=null&&s.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function i(){if(!e.path)return;const s="this.",l="component.options.";return e.path.startsWith(s)?e.path.replace(s,""):e.path.startsWith(l)?e.path:`${l}${e.path||""}`}function r(){var s,l;f.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((l=window.parent)==null||l.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}function a(){var s,l;f.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((l=window.parent)==null||l.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}return d.useEffect(()=>{},[]),d.useEffect(()=>{},[e.blocks]),o.jsxs(o.Fragment,{children:[o.jsx("style",{children:`.props-blocks-wrapper-b46bf284 {
|
|
8
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`);return}else return a},jt=({block:e,context:t})=>{const{repeat:n,...i}=e;if(!(n!=null&&n.collection))return;const a=M({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(a))return;const r=n.collection.split(".").pop(),s=n.itemName||(r?r+"Item":"item");return a.map((c,m)=>({context:{...t,localState:{...t.localState,$index:m,$item:c,[s]:c,[`$${s}Index`]:m}},block:i}))},Bt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},Nt=(e,t,n)=>{var i;return(i=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&i.builderComponents?{builderComponents:Object.fromEntries(Object.entries(t).filter(([r,s])=>!Fe(s,n)))}:{}},Dt=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},Ft=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},ge=e=>e.toString();function Wt(e){return e.charAt(0).toUpperCase()+e.slice(1)}const $t=e=>`on${Wt(e)}`,Ot=(e,t)=>n=>M({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1,trackingContext:t.trackingContext});function We(e){var i;const t={},n=(i=e.block.actions)!=null?i:{};for(const a in n){if(!n.hasOwnProperty(a))continue;const r=n[a];let s=$t(a);if(e.stripPrefix)switch(f.TARGET){case"vue":s=s.replace("v-on:","");break;case"svelte":s=s.replace("on:","");break}t[s]=Ot(r,e)}return t}function Lt({properties:e}){return e}const _t=e=>({href:e.href});function ue({block:e,context:t}){var i;const n={..._t(e),...e.properties,"builder-id":e.id,style:At({block:e,context:t}),[U()]:[e.id,"builder-block",e.class,(i=e.properties)==null?void 0:i.class].filter(Boolean).join(" ")};return Lt({properties:n,context:t,block:e})}function Ut(e){var t,n,i;return o.jsx(le,{TagName:e.Wrapper,attributes:ue({block:e.block,context:e.context}),actionAttributes:We({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0,trackingContext:{apiKey:e.context.apiKey,canTrack:(t=e.context.canTrack)!=null?t:!0,contentId:(n=e.context.content)==null?void 0:n.id,variationId:(i=e.context.content)==null?void 0:i.testVariationId}}),children:e.children})}function Ht(e){return d.useEffect(()=>{},[]),o.jsx(o.Fragment,{children:e.children})}function Mt(e){var i,a;d.useState(()=>0);function t(){var r,s,l;return e.includeBlockProps?{...ue({block:e.block,context:e.context}),...We({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,trackingContext:{apiKey:e.context.apiKey,canTrack:(r=e.context.canTrack)!=null?r:!0,contentId:(s=e.context.content)==null?void 0:s.id,variationId:(l=e.context.content)==null?void 0:l.testVariationId}})}:{}}function n(){return e.wrapperProps}return d.useEffect(()=>{},[e.wrapperProps,(a=(i=e.block)==null?void 0:i.component)==null?void 0:a.options]),o.jsx(o.Fragment,{children:e.Wrapper.load?o.jsx(o.Fragment,{children:o.jsx(Ht,{load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:t(),children:e.children})}):o.jsx(e.Wrapper,{...n(),attributes:t(),children:e.children})})}const qt=({componentOptions:e,builderBlock:t,context:n,componentRef:i,includeBlockProps:a,isInteractive:r,contextValue:s})=>{const l={...e,...a?{attributes:ue({block:t,context:s})}:{}};return r?{Wrapper:i,block:t,context:n,wrapperProps:e,includeBlockProps:a}:l};function he(e){var a;d.useState(()=>!1);const[t,n]=d.useState(()=>e.isInteractive?Mt:e.componentRef);function i(){return e.componentRef?e.blockChildren:[]}return o.jsx(o.Fragment,{children:e.componentRef?o.jsx(o.Fragment,{children:o.jsx(t,{...qt({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(a=i())==null?void 0:a.map(r=>o.jsx(ee,{block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},r.id))})}):null})}function be(e){const[t,n]=d.useState(()=>e.repeatContext);return d.useEffect(()=>{n(e.repeatContext)},[e.repeatContext]),o.jsx(K.Provider,{value:t,children:o.jsx(ee,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}const $e={xsmall:{min:0,default:160,max:320},small:{min:321,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},te=(e,t=$e)=>`@media (max-width: ${t[e].max}px)`,Oe=e=>{const t=ce($e);if(!e)return t;const{xsmall:n,small:i,medium:a}=e;if(n){const c=Math.floor(n/2);t.xsmall={max:n,min:c,default:c+1}}if(!i||!a)return t;const r=n?t.xsmall.max+1:Math.floor(i/2);t.small={max:i,min:r,default:r+1};const s=t.small.max+1;t.medium={max:a,min:s,default:s+1};const l=t.medium.max+1;return t.large={max:2e3,min:l,default:l+1},t};function G(e){return o.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id,nonce:e.nonce})}function ye(e){function t(){const i=e.block;return f.checkIsDefined(i.hide)?!i.hide:f.checkIsDefined(i.show)?i.show:!0}function n(){var I,E,W,O,L;const i=e.block,a=i.responsiveStyles,r=e.context.content,s=Oe(((I=r==null?void 0:r.meta)==null?void 0:I.breakpoints)||{}),l=!!((W=(E=r==null?void 0:r.meta)==null?void 0:E.breakpoints)!=null&&W.xsmall),c=a==null?void 0:a.large,m=a==null?void 0:a.medium,b=a==null?void 0:a.small,x=a==null?void 0:a.xsmall,u=i.id;if(!u)return"";const C=c?q({className:u,styles:c}):"",g=m?q({className:u,styles:m,mediaQuery:te("medium",s)}):"",y=b?q({className:u,styles:b,mediaQuery:te("small",s)}):"",v=x&&l?q({className:u,styles:x,mediaQuery:te("xsmall",s)}):"",h=i.animations&&i.animations.find(p=>p.trigger==="hover");let S="";if(h){const p=((L=(O=h.steps)==null?void 0:O[1])==null?void 0:L.styles)||{};S=q({className:`${u}:hover`,styles:{...p,transition:`all ${h.duration}s ${Z(h.easing)}`,transitionDelay:h.delay?`${h.delay}s`:"0s"}})||""}return[C,g,y,v,S].join(" ")}return o.jsx(o.Fragment,{children:n()&&t()?o.jsx(o.Fragment,{children:o.jsx(G,{id:"builderio-block",styles:n(),nonce:e.context.nonce})}):null})}function zt(e){d.useState(()=>!1);const[t,n]=d.useState(()=>!1);return d.useContext(K),d.useEffect(()=>{},[]),o.jsx(o.Fragment,{children:t?o.jsx(o.Fragment,{children:o.jsx(o.Fragment,{children:o.jsx(ye,{block:e.block,context:e.context})})}):o.jsx(o.Fragment,{children:o.jsx(ye,{block:e.block,context:e.context})})})}function ee(e){var b,x,u,C;function t(){return jt({block:e.block,context:e.context})}const[n,i]=d.useState(()=>({value:null,update:!1}));function a(){var y;if(n.value&&!n.update&&!f.isPreviewing())return n.value;const g=(y=e.block.repeat)!=null&&y.collection?e.block:Ct({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context});return n.value=g,n.update=!1,g}function r(){return Vt({block:a(),registeredComponents:e.registeredComponents,model:e.context.model})}function s(){var y;return e.block.tagName==="a"||((y=a().properties)==null?void 0:y.href)||a().href?e.linkComponent||"a":e.block.tagName||"div"}function l(){var v,h;if((v=e.block.repeat)!=null&&v.collection)return!!((h=t==null?void 0:t())!=null&&h.length);const g="hide"in a()?a().hide:!1;return("show"in a()?a().show:!0)&&!g}function c(){var y,v;return!((y=r==null?void 0:r())!=null&&y.component)&&!t()?(v=a().children)!=null?v:[]:[]}function m(){var g,y,v,h;return{blockChildren:(g=a().children)!=null?g:[],componentRef:(y=r==null?void 0:r())==null?void 0:y.component,componentOptions:{...gt(a(),e.context),...Dt(r(),a()),...Ft(r(),e.context),...Bt(r(),e.linkComponent),...Nt(r(),e.registeredComponents,e.context.model)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:a(),includeBlockProps:((v=r==null?void 0:r())==null?void 0:v.noWrap)===!0,isInteractive:!((h=r==null?void 0:r())!=null&&h.isRSC&&f.TARGET==="rsc")}}return d.useEffect(()=>{const g=a().id,y=a().animations;y&&g&&It(y.map(v=>({...v,elementId:g})))},[]),d.useEffect(()=>{n.update=!0}),o.jsx(o.Fragment,{children:l()?o.jsxs(o.Fragment,{children:[o.jsx(zt,{block:a(),context:e.context,id:e.block.id}),(b=r==null?void 0:r())!=null&&b.noWrap?t()?o.jsx(o.Fragment,{children:(C=t())==null?void 0:C.map((g,y)=>o.jsx(be,{repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},ge(y)))}):o.jsx(he,{componentRef:m().componentRef,componentOptions:m().componentOptions,blockChildren:m().blockChildren,context:m().context,registeredComponents:m().registeredComponents,linkComponent:m().linkComponent,builderBlock:m().builderBlock,includeBlockProps:m().includeBlockProps,isInteractive:m().isInteractive}):o.jsx(o.Fragment,{children:t()?o.jsx(o.Fragment,{children:(u=t())==null?void 0:u.map((g,y)=>o.jsx(be,{repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},ge(y)))}):o.jsxs(Ut,{Wrapper:s(),block:a(),context:e.context,children:[o.jsx(he,{componentRef:m().componentRef,componentOptions:m().componentOptions,blockChildren:m().blockChildren,context:m().context,registeredComponents:m().registeredComponents,linkComponent:m().linkComponent,builderBlock:m().builderBlock,includeBlockProps:m().includeBlockProps,isInteractive:m().isInteractive}),(x=c())==null?void 0:x.map(g=>o.jsx(ee,{block:g,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},g.id))]})})]}):null})}function Kt(e){const t=d.useRef(null);d.useState(()=>!1);function n(){var s;return["builder-blocks",(s=e.blocks)!=null&&s.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function i(){if(!e.path)return;const s="this.",l="component.options.";return e.path.startsWith(s)?e.path.replace(s,""):e.path.startsWith(l)?e.path:`${l}${e.path||""}`}function a(){var s,l;f.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((l=window.parent)==null||l.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}function r(){var s,l;f.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((l=window.parent)==null||l.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:i()}},"*"))}return d.useEffect(()=>{},[]),d.useEffect(()=>{},[e.blocks]),o.jsxs(o.Fragment,{children:[o.jsx("style",{children:`.props-blocks-wrapper-b46bf284 {
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: stretch;
|
|
12
|
-
}`}),o.jsx(e.BlocksWrapper,{ref:t,className:n()+" props-blocks-wrapper-b46bf284","builder-path":i(),"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>
|
|
12
|
+
}`}),o.jsx(e.BlocksWrapper,{ref:t,className:n()+" props-blocks-wrapper-b46bf284","builder-path":i(),"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>a(),onMouseEnter:s=>r(),onKeyPress:s=>a(),...e.BlocksWrapperProps,children:e.children})]})}function $(e){var i,a,r;const t=d.useContext(K),n=d.useContext(we);return o.jsxs(Kt,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapperProps:e.BlocksWrapperProps||((i=e.context)==null?void 0:i.BlocksWrapperProps)||(t==null?void 0:t.BlocksWrapperProps),classNameProp:e.className,BlocksWrapper:((a=e.context)==null?void 0:a.BlocksWrapper)||(t==null?void 0:t.BlocksWrapper),children:[e.children,e.blocks?o.jsx(o.Fragment,{children:(r=e.blocks)==null?void 0:r.map(s=>o.jsx(ee,{block:s,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||(n==null?void 0:n.registeredComponents)},s.id))}):null]})}const Gt=e=>`builder-columns ${e}-breakpoints`;function Le(e){var y,v;function t(){return typeof e.space=="number"?e.space||0:20}function n(){return e.columns||[]}function i(){return e.stackColumnsAt||"tablet"}function a(h){return h.link?e.builderLinkComponent||"a":"div"}function r(h){var S;return((S=n()[h])==null?void 0:S.width)||100/n().length}function s(h){const S=r(h),I=t()*(n().length-1)*(S/100);return`calc(${S}% - ${I}px)`}function l({stackedStyle:h,desktopStyle:S}){return i()==="tablet"?h:S}function c({stackedStyle:h,desktopStyle:S}){return i()==="never"?S:h}function m(){return e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column"}function b(){return{"--flex-dir":m(),"--flex-dir-tablet":l({stackedStyle:m(),desktopStyle:"row"})}}function x(h){const S=h===0?0:t(),I=s(h),E=`${S}px`,W="100%",O=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:I,["marginLeft"]:E,"--column-width-mobile":c({stackedStyle:W,desktopStyle:I}),"--column-margin-left-mobile":c({stackedStyle:O,desktopStyle:E}),"--column-width-tablet":l({stackedStyle:W,desktopStyle:I}),"--column-margin-left-tablet":l({stackedStyle:O,desktopStyle:E})}}function u(h){var I,E;return Oe(((E=(I=e.builderContext.content)==null?void 0:I.meta)==null?void 0:E.breakpoints)||{})[h].max}function C(){const h=`.${e.builderBlock.id}-breakpoints > .builder-column`;return`
|
|
13
13
|
@media (max-width: ${u("medium")}px) {
|
|
14
14
|
.${e.builderBlock.id}-breakpoints {
|
|
15
15
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
`}function g(h,S){return{...h.link?{href:h.link}:{},[U()]:"builder-column",style:De(
|
|
36
|
+
`}function g(h,S){return{...h.link?{href:h.link}:{},[U()]:"builder-column",style:De(x(S))}}return o.jsxs(o.Fragment,{children:[o.jsx("style",{children:`.div-0369db37 {
|
|
37
37
|
display: flex;
|
|
38
38
|
line-height: normal;
|
|
39
39
|
height: 100%;
|
|
40
|
-
}`}),o.jsxs("div",{className:
|
|
40
|
+
}`}),o.jsxs("div",{className:Gt((y=e.builderBlock)==null?void 0:y.id)+" div-0369db37",style:b(),children:[o.jsx(G,{id:"builderio-columns",styles:C(),nonce:e.builderContext.nonce}),(v=e.columns)==null?void 0:v.map((h,S)=>o.jsx(le,{TagName:a(h),actionAttributes:{},attributes:g(h,S),children:o.jsx($,{path:`columns.${S}.blocks`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:h.blocks,styleProp:{flexGrow:"1"}})},S))]})]})}function _e(e){return o.jsx("span",{children:e.children})}function xe(e){return e.replace(/http(s)?:/,"")}function Jt(e="",t,n){const i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+a+t+"="+encodeURIComponent(n)}function Qt(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return xe(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const i=e.split(n[0]),a=n[3],r=t.match("x")?t:`${t}x`;return xe(`${i[0]}_${r}${a}`)}return null}function ne(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const i=Number(e.split("?width=")[1]);return isNaN(i)||(n=`${n} ${i}w`),t.filter(a=>a!==i).map(a=>`${Jt(e,"width",a)} ${a}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Qt(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,i])=>`${n} ${i}w`).concat([e]).join(", "):e}function Ue(e){var a,r,s,l,c,m;function t(){var u;const x=e.image||e.src;if(!x||!(typeof x=="string"&&(x.match(/builder\.io/)||x.match(/cdn\.shopify\.com/))))return e.srcset;if(!e.noWebp){if(e.srcset&&((u=e.image)!=null&&u.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),ne(x)}else if(e.image&&!e.srcset)return ne(x);return ne(x)}}function n(){var b;return(b=t==null?void 0:t())!=null&&b.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function i(){const b={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?b:void 0}return d.useEffect(()=>{},[]),o.jsxs(o.Fragment,{children:[o.jsx("style",{children:`.img-3cc22d08 {
|
|
41
41
|
opacity: 1;
|
|
42
42
|
transition: opacity 0.2s ease-in-out;
|
|
43
43
|
}.div-3cc22d08 {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
left: 0;
|
|
54
54
|
width: 100%;
|
|
55
55
|
height: 100%;
|
|
56
|
-
}`}),o.jsxs(o.Fragment,{children:[o.jsxs("picture",{children:[n()?o.jsx("source",{type:"image/webp",srcSet:n()}):null,o.jsx("img",{loading:e.highPriority?"eager":"lazy",fetchPriority:e.highPriority?"high":"auto",alt:e.altText,title:e.title,role:e.altText?void 0:"presentation",style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...i()},className:"builder-image"+(e.className?" "+e.className:"")+" img-3cc22d08",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((
|
|
56
|
+
}`}),o.jsxs(o.Fragment,{children:[o.jsxs("picture",{children:[n()?o.jsx("source",{type:"image/webp",srcSet:n()}):null,o.jsx("img",{loading:e.highPriority?"eager":"lazy",fetchPriority:e.highPriority?"high":"auto",alt:e.altText,title:e.title,role:e.altText?void 0:"presentation",style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...i()},className:"builder-image"+(e.className?" "+e.className:"")+" img-3cc22d08",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((r=(a=e.builderBlock)==null?void 0:a.children)!=null&&r.length&&e.fitContent)?o.jsx("div",{className:"builder-image-sizer div-3cc22d08",style:{paddingTop:e.aspectRatio*100+"%"}}):null,(l=(s=e.builderBlock)==null?void 0:s.children)!=null&&l.length&&e.fitContent?o.jsx(o.Fragment,{children:e.children}):null,!e.fitContent&&((m=(c=e.builderBlock)==null?void 0:c.children)!=null&&m.length)?o.jsx("div",{className:"div-3cc22d08-2",children:e.children}):null]})]})}function He(e){return o.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}function Yt(e,t,n,i){function a(m){return typeof m=="string"}function r(m){return typeof m=="number"}function s(m,b){return(()=>{const u=b.property,C=b.operator;let g=b.value;if(b&&b.property==="urlPath"&&b.value&&typeof b.value=="string"&&b.value!=="/"&&b.value.endsWith("/")&&(g=b.value.slice(0,-1)),!(u&&C))return!0;if(Array.isArray(g))return C==="isNot"?g.every(v=>s(m,{property:u,operator:C,value:v})):!!g.find(v=>s(m,{property:u,operator:C,value:v}));const y=m[u];if(Array.isArray(y))return y.includes(g);switch(C){case"is":return y===g;case"isNot":return y!==g;case"contains":return(a(y)||Array.isArray(y))&&y.includes(String(g));case"startsWith":return a(y)&&y.startsWith(String(g));case"endsWith":return a(y)&&y.endsWith(String(g));case"greaterThan":return r(y)&&r(g)&&y>g;case"lessThan":return r(y)&&r(g)&&y<g;case"greaterThanOrEqualTo":return r(y)&&r(g)&&y>=g;case"lessThanOrEqualTo":return r(y)&&r(g)&&y<=g;default:return!1}})()}const l={query:t,startDate:n,endDate:i},c=e.date&&new Date(e.date)||new Date;return l.startDate&&new Date(l.startDate)>c||l.endDate&&new Date(l.endDate)<c?!1:!l.query||!l.query.length?!0:l.query.every(m=>s(e,m))}const Xt=`function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
57
57
|
if (!navigator.cookieEnabled) {
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
thisScript.remove();
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
}`,
|
|
101
|
+
}`,Zt=`function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
102
102
|
function isString(val) {
|
|
103
103
|
return typeof val === 'string';
|
|
104
104
|
}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
return item.query.every(filter => {
|
|
177
177
|
return objectMatchesQuery(userAttributes, filter);
|
|
178
178
|
});
|
|
179
|
-
}`,
|
|
179
|
+
}`,en=`function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
180
180
|
function getCookie(name) {
|
|
181
181
|
const nameEQ = name + '=';
|
|
182
182
|
const ca = document.cookie.split(';');
|
|
@@ -214,11 +214,11 @@
|
|
|
214
214
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
}`,J="default",
|
|
218
|
-
window.${
|
|
219
|
-
window.${
|
|
220
|
-
window.${
|
|
221
|
-
`,Ge=f.TARGET==="react",sn=(e,t,n)=>`window.${qe}(${JSON.stringify(e)}, "${t}", ${Ge}${n?`, "${n}"`:""})`,ln=(e,t,n)=>`window.${Ke}(${JSON.stringify(e)}, "${t}", ${Ge}${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!"}}}]},cn={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}},xe=e=>e.toString();function un(e){var p;const[t,n]=d.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 C={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(C).filter(([g,y])=>y!==void 0))}function s(u){return`builder-accordion-title builder-accordion-title-${t.includes(u)?"open":"closed"}`}function l(u){return`builder-accordion-detail builder-accordion-detail-${t.includes(u)?"open":"closed"}`}function c(){let u=null;if(e.grid&&t.length&&document){const g=t[0];let v=document.querySelector(`.builder-accordion-title[data-index="${g}"]`);if(u=g,v){let h=v.getBoundingClientRect();for(;v=v&&v.nextElementSibling;)if(v){if(v.classList.contains("builder-accordion-detail"))continue;const S=v.getBoundingClientRect();if(S.left>h.left){const I=parseInt(v.getAttribute("data-index")||"",10);isNaN(I)||(h=S,u=I)}else break}}}return typeof u=="number"&&(u=u+1),u}function m(){const u={order:typeof c()=="number"?c():void 0,...e.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(u).filter(([C,g])=>g!==void 0))}function b(u){t.includes(u)?n(i()?[]:t.filter(C=>C!==u)):n(i()?[u]:t.concat(u))}return o.jsx("div",{className:"builder-accordion",style:r(),children:(p=e.items)==null?void 0:p.map((u,C)=>o.jsxs(it.Fragment,{children:[o.jsx("div",{className:s(C),style:{...a(),...e.grid&&{width:e.gridRowWidth,order:c()!==null?xe(C):xe(C+1)}},"data-index":C,onClick:g=>b(C),children:o.jsx(F,{blocks:u.title,path:`items.${C}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),t.includes(C)?o.jsx("div",{className:l(C),style:m(),children:o.jsx(F,{blocks:u.detail,path:`items.${C}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]},C))})}const dn={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}},mn={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}},fn={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"],gn=["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"],hn={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,m)=>{const b=document.createElement("img");let p=!1;b.onload=()=>{p=!0,c(b)},b.addEventListener("error",u=>{console.warn("Image load failed",u.error),m(u.error)}),b.src=s,setTimeout(()=>{p||m(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}},bn={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 M(e){return o.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id,nonce:e.nonce||""})}function yn(e){var S,I,E,W,O,L,x,k,A,V,B,R,P;const t=d.useRef(null),[n,i]=d.useState(()=>f.userAttributesService.getUserAttributes()),[r,a]=d.useState(()=>{var w,j,T;return sn(e.variants,((w=e.builderBlock)==null?void 0:w.id)||"none",(T=(j=e.builderContext)==null?void 0:j.rootState)==null?void 0:T.locale)}),[s,l]=d.useState(()=>{var w,j,T;return ln(e.variants,((w=e.builderBlock)==null?void 0:w.id)||"none",(T=(j=e.builderContext)==null?void 0:j.rootState)==null?void 0:T.locale)}),[c,m]=d.useState(()=>[]),[b,p]=d.useState(()=>{var w;return rn(e.variants,f.getDefaultCanTrack((w=e.builderContext)==null?void 0:w.canTrack))}),[u,C]=d.useState(()=>!1);function g(){return{...e.attributes,[U()]:`builder-personalization-container ${e.attributes[U()]||""}`}}function y(){return(e.variants||[]).filter(w=>{var j,T,N,$;return Xt({...(T=(j=e.builderContext)==null?void 0:j.rootState)!=null&&T.locale?{locale:($=(N=e.builderContext)==null?void 0:N.rootState)==null?void 0:$.locale}:{},...n},w.query,w.startDate,w.endDate)})}function v(){var w;return an({variants:e.variants,fallbackBlocks:(w=e.builderBlock)==null?void 0:w.children,isHydrated:u,filteredVariants:y(),previewingIndex:e.previewingIndex})}function h(){return(e.variants||[]).map((w,j)=>{var T;return`div[data-variant-id="${(T=e.builderBlock)==null?void 0:T.id}-${j}"] { display: none !important; } `}).join("")}return d.useEffect(()=>{var j;C(!0);const w=f.userAttributesService.subscribeOnUserAttributesChange(T=>{i(T)},{fireImmediately:f.TARGET==="qwik"});if(!(f.isEditing()||f.isPreviewing())){const T=y()[0];t.current&&(t.current.dispatchEvent(new CustomEvent("builder.variantLoaded",{detail:{variant:T||J,content:(j=e.builderContext)==null?void 0:j.content},bubbles:!0})),new IntersectionObserver($=>{$.forEach(D=>{var _;D.isIntersecting&&t.current&&t.current.dispatchEvent(new CustomEvent("builder.variantDisplayed",{detail:{variant:T||J,content:(_=e.builderContext)==null?void 0:_.content},bubbles:!0}))})}).observe(t.current))}c.push(w)},[]),d.useEffect(()=>()=>{c.forEach(w=>w())},[]),o.jsxs("div",{ref:t,...g(),children:[u&&Q.includes(f.TARGET)?o.jsx(F,{blocks:v().blocks,parent:(S=e.builderBlock)==null?void 0:S.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(I=e.builderContext)==null?void 0:I.BlocksWrapperProps,"data-variant-id":`${(E=e.builderBlock)==null?void 0:E.id}-${v().index}`}}):null,!u&&Q.includes(f.TARGET)||!Q.includes(f.TARGET)?o.jsxs(o.Fragment,{children:[b?o.jsxs(o.Fragment,{children:[o.jsx(G,{nonce:((W=e.builderContext)==null?void 0:W.nonce)||"",styles:h(),id:`variants-styles-${(O=e.builderBlock)==null?void 0:O.id}`}),o.jsx(M,{nonce:((L=e.builderContext)==null?void 0:L.nonce)||"",scriptStr:s,id:`variants-visibility-script-${(x=e.builderBlock)==null?void 0:x.id}`}),(k=e.variants)==null?void 0:k.map((w,j)=>{var T,N,$,D,_,me;return o.jsx(F,{BlocksWrapperProps:{...(T=e.builderContext)==null?void 0:T.BlocksWrapperProps,"aria-hidden":!0,hidden:!0,"data-variant-id":`${(N=e.builderBlock)==null?void 0:N.id}-${j}`},blocks:w.blocks,parent:($=e.builderBlock)==null?void 0:$.id,path:`component.options.variants.${j}.blocks`,context:e.builderContext,registeredComponents:e.builderComponents,children:o.jsx(M,{nonce:((D=e.builderContext)==null?void 0:D.nonce)||"",scriptStr:r,id:`variants-script-${(_=e.builderBlock)==null?void 0:_.id}-${j}`})},`${(me=e.builderBlock)==null?void 0:me.id}-${j}`)})]}):null,o.jsx(F,{blocks:v().blocks,parent:(A=e.builderBlock)==null?void 0:A.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(V=e.builderContext)==null?void 0:V.BlocksWrapperProps,"data-variant-id":`${(B=e.builderBlock)==null?void 0:B.id}-${v().index}`},children:b?o.jsx(M,{nonce:((R=e.builderContext)==null?void 0:R.nonce)||"",scriptStr:r,id:`variants-script-${(P=e.builderBlock)==null?void 0:P.id}-${J}`}):null})]}):null]})}const pn={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>"}}}]},xn={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 vn(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(F,{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 Sn={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 "}}},kn={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 Cn(e){var s;const[t,n]=d.useState(()=>e.defaultActiveTab?e.defaultActiveTab-1:0);function i(l){return e.tabs&&e.tabs[l].content}function r(l){return l===t?e.activeTabStyle:{}}function a(l){l===t&&e.collapsible?n(-1):n(l)}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:(s=e.tabs)==null?void 0:s.map((l,c)=>o.jsx("span",{className:`builder-tab-wrap ${t===c?"builder-tab-active":""}`,style:r(c),onClick:m=>a(c),children:o.jsx(F,{parent:e.builderBlock.id,path:`tabs.${c}.label`,blocks:l.label,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})},c))}),i(t)?o.jsx("div",{children:o.jsx(F,{parent:e.builderBlock.id,path:`tabs.${t}.content`,blocks:i(t),context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]})}const Tn={shouldReceiveBuilderProps:{},name:"Text",static:!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 Je(e){var t;return o.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const In={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 wn(e){const t=d.useRef(null),[n,i]=d.useState(()=>[]),[r,a]=d.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 m=0;m<l.length;m++){const b=l[m];if(b.src){if(n.includes(b.src))continue;n.push(b.src);const p=document.createElement("script");p.async=!0,p.src=b.src,document.head.appendChild(p)}else if(!b.type||["text/javascript","application/javascript","application/ecmascript"].includes(b.type)){if(r.includes(b.innerText))continue;try{r.push(b.innerText),new Function(b.innerText)()}catch(p){f.logger.warn("[BUILDER.IO] `CustomCode`: Error running script:",p)}}}}return d.useEffect(()=>{s()},[]),d.useEffect(()=>{f.isEditing()&&s()},[e.code]),o.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const En={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}]},Rn=["text/javascript","application/javascript","application/ecmascript"],Pn=e=>Rn.includes(e.type);function An(e){const t=d.useRef(null),[n,i]=d.useState(()=>[]),[r,a]=d.useState(()=>[]),[s,l]=d.useState(()=>!1);function c(){if(!t.current||!t.current.getElementsByTagName)return;const m=t.current.getElementsByTagName("script");for(let b=0;b<m.length;b++){const p=m[b];if(p.src&&!n.includes(p.src)){n.push(p.src);const u=document.createElement("script");u.async=!0,u.src=p.src,document.head.appendChild(u)}else if(Pn(p)&&!r.includes(p.innerText))try{r.push(p.innerText),new Function(p.innerText)()}catch(u){f.logger.warn("[BUILDER.IO] `Embed`: Error running script:",u)}}}return d.useEffect(()=>{t.current&&!s&&(l(!0),c())},[t.current,s]),o.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const Vn={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}},jn=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],Bn=()=>{const e=process.env.NODE_ENV||"production";return jn.includes(e)?e:"production"};function Nn(e){const t=d.useRef(null),[n,i]=d.useState(()=>"unsubmitted"),[r,a]=d.useState(()=>null),[s,l]=d.useState(()=>"");function c(u){var g,y;const C={...e.builderContext.rootState,...u};e.builderContext.rootSetState?(y=(g=e.builderContext).rootSetState)==null||y.call(g,C):e.builderContext.rootState=C}function m(){return f.isEditing()&&e.previewState||n}function b(u){return JSON.stringify(u,null,2)}function p(u){var g;const C=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")u.preventDefault();else if(C){if(!(e.action||e.sendSubmissionsTo==="email")){u.preventDefault();return}u.preventDefault();const y=u.currentTarget||u.target,v=e.customHeaders||{};let h;const S=new FormData(y),I=Array.from(y.querySelectorAll("input,select,textarea")).filter(x=>!!x.name).filter(x=>!!x.name&&(x.type!=="radio"||x.checked)).map(x=>{let k;const A=x.name;if(x instanceof HTMLInputElement)if(x.type==="radio"){if(x.checked)return k=x.value,{key:A,value:k}}else if(x.type==="checkbox")k=x.checked;else if(x.type==="number"||x.type==="range"){const V=x.valueAsNumber;isNaN(V)||(k=V)}else x.type==="file"?k=x.files:k=x.value;else k=x.value;return{key:A,value:k}});let E=e.contentType;if(e.sendSubmissionsTo==="email"&&(E="multipart/form-data"),Array.from(I).forEach(({value:x})=>{(x instanceof File||Array.isArray(x)&&x[0]instanceof File||x instanceof FileList)&&(E="multipart/form-data")}),E!=="application/json")h=S;else{const x={};Array.from(I).forEach(({value:k,key:A})=>{Ve(x,A,k)}),h=JSON.stringify(x)}E&&E!=="multipart/form-data"&&(C&&((g=e.action)!=null&&g.includes("zapier.com"))||(v["content-type"]=E));const W=new CustomEvent("presubmit",{detail:{body:h}});if(t.current&&(t.current.dispatchEvent(W),W.defaultPrevented))return;if(i("sending"),e.sendSubmissionsTo==="email"&&(e.sendSubmissionsToEmail==="your@email.com"||!e.sendSubmissionsToEmail)){const x="SubmissionsToEmail is required when sendSubmissionsTo is set to email";console.error(x),i("error"),c({formErrorMessage:x});return}const O=`${Bn()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`,L=e.sendSubmissionsTo==="email"?O:e.action;f.logFetch(L),fetch(L,{body:h,headers:v,method:e.method||"post"}).then(async x=>{var V,B;let k;const A=x.headers.get("content-type");if(A&&A.indexOf("application/json")!==-1?k=await x.json():k=await x.text(),!x.ok){const R=new CustomEvent("submit:error",{detail:{error:k,status:x.status}});if((V=t.current)!=null&&V.nativeElement&&((B=t.current)==null||B.nativeElement.dispatchEvent(R),R.defaultPrevented))return;a(k),i("error");let P=e.errorMessagePath?Re(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(x.ok?"success":"error"),x.ok){const R=new CustomEvent("submit:success",{detail:{res:x,body:k}});if(t.current){if(t.current.dispatchEvent(R),R.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}},x=>{const k=new CustomEvent("submit:error",{detail:{error:x}});t.current&&(t.current.dispatchEvent(k),k.defaultPrevented)||(a(x),i("error"))})}}return o.jsxs(o.Fragment,{children:[" ",o.jsx("style",{children:".pre-abc898ba { 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:u=>p(u),...e.attributes,children:[e.children,m()==="error"?o.jsx(F,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,m()==="sending"?o.jsx(F,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,m()==="error"&&r?o.jsx("pre",{className:"builder-form-error-text pre-abc898ba",children:b(r)}):null,m()==="success"?o.jsx(F,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," "]})}const $n={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 Dn(e){return d.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 Fn(e){var t;return d.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 On={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 Ln(e){return o.jsx("button",{type:"submit",...e.attributes,children:e.text})}const _n={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 Un(e){return o.jsx("textarea",{...e.attributes,placeholder:e.placeholder,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const Mn={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},{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:"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}],noWrap:!0};function Hn(e){var n;function t(){const i={...e.attributes,[U()]:`builder-raw-img ${e.attributes[U()]||""}`};return delete i.style,i}return o.jsx("img",{loading:"lazy",alt:e.altText,title:e.title,src:e.imgSrc||e.image,...t(),style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center",aspectRatio:e.aspectRatio||void 0,...((n=e.attributes)==null?void 0:n.style)||{}}},f.isEditing()&&e.imgSrc||"default-key")}const qn={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:gn,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 Qe(e){var s,l,c,m,b,p,u;const t=d.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]=d.useState(()=>{});return d.useEffect(()=>{if(e.lazyLoad){const C=new IntersectionObserver(function(g){g.forEach(function(y){if(!y.isIntersecting)return;const v=y.target;try{Array.from(v.children).filter(h=>h instanceof HTMLElement&&h.tagName==="SOURCE").forEach(h=>{const S=h.dataset.src;S&&(h.src=S)}),v.load(),C.unobserve(v)}catch(h){console.error("Error loading lazy video:",h)}})});t.current&&C.observe(t.current),a(C)}},[]),d.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,(b=(m=e.builderBlock)==null?void 0:m.children)!=null&&b.length&&e.fitContent?o.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(u=(p=e.builderBlock)==null?void 0:p.children)!=null&&u.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 Kn=()=>[{component:wn,...In},{component:An,...En},{component:Nn,...Vn},{component:Dn,...$n},{component:Ln,...On},{component:Fn,...Wn},{component:Un,..._n},{component:Hn,...Mn},{component:Qe,...qn}],ve=()=>[{component:we,...dn},{component:_e,...mn},{component:Ue,...fn},{component:Me,...hn},{component:He,...pn},{component:vn,...xn},{component:tt,...Sn},{component:Je,...Tn},...ze.includes(f.TARGET)?[{component:yn,...bn}]:[],{component:Cn,...kn},{component:un,...cn},...Kn()],zn=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
217
|
+
}`,J="default",tn="filterWithCustomTargeting",Me="builderIoPersonalization",qe="updateVisibilityStylesScript",ze=["react","vue","svelte","qwik"],Q=["vue","svelte","qwik"];function nn(e,t){return!(e&&e.length>0)||!t?!1:Q.includes(f.TARGET)?!0:!f.isBrowser()}function an({variants:e,previewingIndex:t,isHydrated:n,filteredVariants:i,fallbackBlocks:a}){var s;const r={blocks:a!=null?a:[],path:"this.children",index:J};if(n&&f.isEditing()){if(typeof t=="number"&&t<((s=e==null?void 0:e.length)!=null?s:0)){const l=e==null?void 0:e[t];if(l)return{blocks:l.blocks,path:`variants.${t}.blocks`,index:t}}return r}if(f.isBrowser()){const l=i==null?void 0:i[0];if(l&&e){const c=e.indexOf(l);if(c!==-1)return{blocks:l.blocks,path:`variants.${c}.blocks`,index:c}}}return r}const rn=()=>`
|
|
218
|
+
window.${tn} = ${Zt}
|
|
219
|
+
window.${Me} = ${Xt}
|
|
220
|
+
window.${qe} = ${en}
|
|
221
|
+
`,Ke=f.TARGET==="react",on=(e,t,n)=>`window.${Me}(${JSON.stringify(e)}, "${t}", ${Ke}${n?`, "${n}"`:""})`,sn=(e,t,n)=>`window.${qe}(${JSON.stringify(e)}, "${t}", ${Ke}${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!"}}}]},ae={"@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!"}}}]},ln={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:[ae]}],defaultValue:[{title:[ie],detail:[ae]},{title:[ie],detail:[ae]}],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 cn(e){var x;const[t,n]=d.useState(()=>[]);function i(){return!!(e.grid||e.oneAtATime)}function a(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function r(){const C={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(C).filter(([g,y])=>y!==void 0))}function s(u){return`builder-accordion-title builder-accordion-title-${t.includes(u)?"open":"closed"}`}function l(u){return`builder-accordion-detail builder-accordion-detail-${t.includes(u)?"open":"closed"}`}function c(){let u=null;if(e.grid&&t.length&&document){const g=t[0];let v=document.querySelector(`.builder-accordion-title[data-index="${g}"]`);if(u=g,v){let h=v.getBoundingClientRect();for(;v=v&&v.nextElementSibling;)if(v){if(v.classList.contains("builder-accordion-detail"))continue;const S=v.getBoundingClientRect();if(S.left>h.left){const I=parseInt(v.getAttribute("data-index")||"",10);isNaN(I)||(h=S,u=I)}else break}}}return typeof u=="number"&&(u=u+1),u}function m(){const u={order:typeof c()=="number"?c():void 0,...e.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(u).filter(([C,g])=>g!==void 0))}function b(u){t.includes(u)?n(i()?[]:t.filter(C=>C!==u)):n(i()?[u]:t.concat(u))}return o.jsx("div",{className:"builder-accordion",style:a(),children:(x=e.items)==null?void 0:x.map((u,C)=>o.jsxs(nt.Fragment,{children:[o.jsx("div",{className:s(C),style:{...r(),...e.grid&&{width:e.gridRowWidth,order:c()!==null?pe(C):pe(C+1)}},"data-index":C,onClick:g=>b(C),children:o.jsx($,{blocks:u.title,path:`items.${C}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),t.includes(C)?o.jsx("div",{className:l(C),style:m(),children:o.jsx($,{blocks:u.detail,path:`items.${C}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]},C))})}const un={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}},dn={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(a=>a.get("width"))&&(n.find(r=>!r.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}},mn={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"],fn=["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"],gn={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,m)=>{const b=document.createElement("img");let x=!1;b.onload=()=>{x=!0,c(b)},b.addEventListener("error",u=>{console.warn("Image load failed",u.error),m(u.error)}),b.src=s,setTimeout(()=>{x||m(new Error("Image load timed out"))},l)})}function i(s){return Math.round(s*1e3)/1e3}const a=e.get("image"),r=e.get("aspectRatio");if(fetch(a).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),a&&(!r||r===.7041))return n(a).then(s=>{const l=e.get("aspectRatio");e.get("image")===a&&(!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}},hn={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 H(e){return o.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},"data-id":e.id,nonce:e.nonce||""})}function bn(e){var S,I,E,W,O,L,p,k,A,V,B,R,P;const t=d.useRef(null),[n,i]=d.useState(()=>f.userAttributesService.getUserAttributes()),[a,r]=d.useState(()=>{var w,j,T;return on(e.variants,((w=e.builderBlock)==null?void 0:w.id)||"none",(T=(j=e.builderContext)==null?void 0:j.rootState)==null?void 0:T.locale)}),[s,l]=d.useState(()=>{var w,j,T;return sn(e.variants,((w=e.builderBlock)==null?void 0:w.id)||"none",(T=(j=e.builderContext)==null?void 0:j.rootState)==null?void 0:T.locale)}),[c,m]=d.useState(()=>[]),[b,x]=d.useState(()=>{var w;return nn(e.variants,f.getDefaultCanTrack((w=e.builderContext)==null?void 0:w.canTrack))}),[u,C]=d.useState(()=>!1);function g(){return{...e.attributes,[U()]:`builder-personalization-container ${e.attributes[U()]||""}`}}function y(){return(e.variants||[]).filter(w=>{var j,T,N,D;return Yt({...(T=(j=e.builderContext)==null?void 0:j.rootState)!=null&&T.locale?{locale:(D=(N=e.builderContext)==null?void 0:N.rootState)==null?void 0:D.locale}:{},...n},w.query,w.startDate,w.endDate)})}function v(){var w;return an({variants:e.variants,fallbackBlocks:(w=e.builderBlock)==null?void 0:w.children,isHydrated:u,filteredVariants:y(),previewingIndex:e.previewingIndex})}function h(){return(e.variants||[]).map((w,j)=>{var T;return`div[data-variant-id="${(T=e.builderBlock)==null?void 0:T.id}-${j}"] { display: none !important; } `}).join("")}return d.useEffect(()=>{var j;C(!0);const w=f.userAttributesService.subscribeOnUserAttributesChange(T=>{i(T)},{fireImmediately:f.TARGET==="qwik"});if(!(f.isEditing()||f.isPreviewing())){const T=y()[0];t.current&&(t.current.dispatchEvent(new CustomEvent("builder.variantLoaded",{detail:{variant:T||J,content:(j=e.builderContext)==null?void 0:j.content},bubbles:!0})),new IntersectionObserver(D=>{D.forEach(F=>{var _;F.isIntersecting&&t.current&&t.current.dispatchEvent(new CustomEvent("builder.variantDisplayed",{detail:{variant:T||J,content:(_=e.builderContext)==null?void 0:_.content},bubbles:!0}))})}).observe(t.current))}c.push(w)},[]),d.useEffect(()=>()=>{c.forEach(w=>w())},[]),o.jsxs("div",{ref:t,...g(),children:[u&&Q.includes(f.TARGET)?o.jsx($,{blocks:v().blocks,parent:(S=e.builderBlock)==null?void 0:S.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(I=e.builderContext)==null?void 0:I.BlocksWrapperProps,"data-variant-id":`${(E=e.builderBlock)==null?void 0:E.id}-${v().index}`}}):null,!u&&Q.includes(f.TARGET)||!Q.includes(f.TARGET)?o.jsxs(o.Fragment,{children:[b?o.jsxs(o.Fragment,{children:[o.jsx(G,{nonce:((W=e.builderContext)==null?void 0:W.nonce)||"",styles:h(),id:`variants-styles-${(O=e.builderBlock)==null?void 0:O.id}`}),o.jsx(H,{nonce:((L=e.builderContext)==null?void 0:L.nonce)||"",scriptStr:s,id:`variants-visibility-script-${(p=e.builderBlock)==null?void 0:p.id}`}),(k=e.variants)==null?void 0:k.map((w,j)=>{var T,N,D,F,_,me;return o.jsx($,{BlocksWrapperProps:{...(T=e.builderContext)==null?void 0:T.BlocksWrapperProps,"aria-hidden":!0,hidden:!0,"data-variant-id":`${(N=e.builderBlock)==null?void 0:N.id}-${j}`},blocks:w.blocks,parent:(D=e.builderBlock)==null?void 0:D.id,path:`component.options.variants.${j}.blocks`,context:e.builderContext,registeredComponents:e.builderComponents,children:o.jsx(H,{nonce:((F=e.builderContext)==null?void 0:F.nonce)||"",scriptStr:a,id:`variants-script-${(_=e.builderBlock)==null?void 0:_.id}-${j}`})},`${(me=e.builderBlock)==null?void 0:me.id}-${j}`)})]}):null,o.jsx($,{blocks:v().blocks,parent:(A=e.builderBlock)==null?void 0:A.id,path:v().path,context:e.builderContext,registeredComponents:e.builderComponents,BlocksWrapperProps:{...(V=e.builderContext)==null?void 0:V.BlocksWrapperProps,"data-variant-id":`${(B=e.builderBlock)==null?void 0:B.id}-${v().index}`},children:b?o.jsx(H,{nonce:((R=e.builderContext)==null?void 0:R.nonce)||"",scriptStr:a,id:`variants-script-${(P=e.builderBlock)==null?void 0:P.id}-${J}`}):null})]}):null]})}const yn={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>"}}}]},xn={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($,{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 vn={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}},re={"@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 "}}},Sn={name:"Builder: Tabs",inputs:[{name:"tabs",type:"list",broadcast:!0,subFields:[{name:"label",type:"uiBlocks",hideFromUI:!0,defaultValue:[re]},{name:"content",type:"uiBlocks",hideFromUI:!0,defaultValue:[oe]}],defaultValue:[{label:[{...re,component:{name:"Text",options:{text:"Tab 1"}}}],content:[{...oe,component:{name:"Text",options:{text:"Tab 1 content"}}}]},{label:[{...re,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 kn(e){var s;const[t,n]=d.useState(()=>e.defaultActiveTab?e.defaultActiveTab-1:0);function i(l){return e.tabs&&e.tabs[l].content}function a(l){return l===t?e.activeTabStyle:{}}function r(l){l===t&&e.collapsible?n(-1):n(l)}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:(s=e.tabs)==null?void 0:s.map((l,c)=>o.jsx("span",{className:`builder-tab-wrap ${t===c?"builder-tab-active":""}`,style:a(c),onClick:m=>r(c),children:o.jsx($,{parent:e.builderBlock.id,path:`tabs.${c}.label`,blocks:l.label,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})},c))}),i(t)?o.jsx("div",{children:o.jsx($,{parent:e.builderBlock.id,path:`tabs.${t}.content`,blocks:i(t),context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]})}const Cn={shouldReceiveBuilderProps:{},name:"Text",static:!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 Ge(e){var t;return o.jsx("div",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Tn={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 In(e){const t=d.useRef(null),[n,i]=d.useState(()=>[]),[a,r]=d.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 m=0;m<l.length;m++){const b=l[m];if(b.src){if(n.includes(b.src))continue;n.push(b.src);const x=document.createElement("script");x.async=!0,x.src=b.src,document.head.appendChild(x)}else if(!b.type||["text/javascript","application/javascript","application/ecmascript"].includes(b.type)){if(a.includes(b.innerText))continue;try{a.push(b.innerText),new Function(b.innerText)()}catch(x){f.logger.warn("[BUILDER.IO] `CustomCode`: Error running script:",x)}}}}return d.useEffect(()=>{s()},[]),d.useEffect(()=>{f.isEditing()&&s()},[e.code]),o.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const wn={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}]},En=["text/javascript","application/javascript","application/ecmascript"],Rn=e=>En.includes(e.type);function Pn(e){const t=d.useRef(null),[n,i]=d.useState(()=>[]),[a,r]=d.useState(()=>[]),[s,l]=d.useState(()=>!1);function c(){if(!t.current||!t.current.getElementsByTagName)return;const m=t.current.getElementsByTagName("script");for(let b=0;b<m.length;b++){const x=m[b];if(x.src&&!n.includes(x.src)){n.push(x.src);const u=document.createElement("script");u.async=!0,u.src=x.src,document.head.appendChild(u)}else if(Rn(x)&&!a.includes(x.innerText))try{a.push(x.innerText),new Function(x.innerText)()}catch(u){f.logger.warn("[BUILDER.IO] `Embed`: Error running script:",u)}}}return d.useEffect(()=>{t.current&&!s&&(l(!0),c())},[t.current,s]),o.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}const An={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}},Vn=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-prod"],jn=()=>{const e=process.env.NODE_ENV||"production";return Vn.includes(e)?e:"production"};function Bn(e){const t=d.useRef(null),[n,i]=d.useState(()=>"unsubmitted"),[a,r]=d.useState(()=>null),[s,l]=d.useState(()=>"");function c(u){var g,y;const C={...e.builderContext.rootState,...u};e.builderContext.rootSetState?(y=(g=e.builderContext).rootSetState)==null||y.call(g,C):e.builderContext.rootState=C}function m(){return f.isEditing()&&e.previewState||n}function b(u){return JSON.stringify(u,null,2)}function x(u){var g;const C=e.sendWithJs||e.sendSubmissionsTo==="email";if(e.sendSubmissionsTo==="zapier")u.preventDefault();else if(C){if(!(e.action||e.sendSubmissionsTo==="email")){u.preventDefault();return}u.preventDefault();const y=u.currentTarget||u.target,v=e.customHeaders||{};let h;const S=new FormData(y),I=Array.from(y.querySelectorAll("input,select,textarea")).filter(p=>!!p.name).filter(p=>!!p.name&&(p.type!=="radio"||p.checked)).map(p=>{let k;const A=p.name;if(p instanceof HTMLInputElement)if(p.type==="radio"){if(p.checked)return k=p.value,{key:A,value:k}}else if(p.type==="checkbox")k=p.checked;else if(p.type==="number"||p.type==="range"){const V=p.valueAsNumber;isNaN(V)||(k=V)}else p.type==="file"?k=p.files:k=p.value;else k=p.value;return{key:A,value:k}});let E=e.contentType;if(e.sendSubmissionsTo==="email"&&(E="multipart/form-data"),Array.from(I).forEach(({value:p})=>{(p instanceof File||Array.isArray(p)&&p[0]instanceof File||p instanceof FileList)&&(E="multipart/form-data")}),E!=="application/json")h=S;else{const p={};Array.from(I).forEach(({value:k,key:A})=>{Ae(p,A,k)}),h=JSON.stringify(p)}E&&E!=="multipart/form-data"&&(C&&((g=e.action)!=null&&g.includes("zapier.com"))||(v["content-type"]=E));const W=new CustomEvent("presubmit",{detail:{body:h}});if(t.current&&(t.current.dispatchEvent(W),W.defaultPrevented))return;if(i("sending"),e.sendSubmissionsTo==="email"&&(e.sendSubmissionsToEmail==="your@email.com"||!e.sendSubmissionsToEmail)){const p="SubmissionsToEmail is required when sendSubmissionsTo is set to email";console.error(p),i("error"),c({formErrorMessage:p});return}const O=`${jn()==="dev"?"http://localhost:5000":"https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(e.sendSubmissionsToEmail||"")}&name=${encodeURIComponent(e.name||"")}`,L=e.sendSubmissionsTo==="email"?O:e.action;f.logFetch(L),fetch(L,{body:h,headers:v,method:e.method||"post"}).then(async p=>{var V,B;let k;const A=p.headers.get("content-type");if(A&&A.indexOf("application/json")!==-1?k=await p.json():k=await p.text(),!p.ok){const R=new CustomEvent("submit:error",{detail:{error:k,status:p.status}});if((V=t.current)!=null&&V.nativeElement&&((B=t.current)==null||B.nativeElement.dispatchEvent(R),R.defaultPrevented))return;r(k),i("error");let P=e.errorMessagePath?Ee(k,e.errorMessagePath):k.message||k.error||k;typeof P!="string"&&(P=JSON.stringify(P)),l(P),c({formErrorMessage:P});return}if(r(k),i(p.ok?"success":"error"),p.ok){const R=new CustomEvent("submit:success",{detail:{res:p,body:k}});if(t.current){if(t.current.dispatchEvent(R),R.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}},p=>{const k=new CustomEvent("submit:error",{detail:{error:p}});t.current&&(t.current.dispatchEvent(k),k.defaultPrevented)||(r(p),i("error"))})}}return o.jsxs(o.Fragment,{children:[" ",o.jsx("style",{children:".pre-abc898ba { 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:u=>x(u),...e.attributes,children:[e.children,m()==="error"?o.jsx($,{path:"errorMessage",blocks:e.errorMessage,context:e.builderContext}):null,m()==="sending"?o.jsx($,{path:"sendingMessage",blocks:e.sendingMessage,context:e.builderContext}):null,m()==="error"&&a?o.jsx("pre",{className:"builder-form-error-text pre-abc898ba",children:b(a)}):null,m()==="success"?o.jsx($,{path:"successMessage",blocks:e.successMessage,context:e.builderContext}):null]})," "]})}const Nn={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 Dn(e){return d.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 Fn={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 Wn(e){var t;return d.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 On(e){return o.jsx("button",{type:"submit",...e.attributes,children:e.text})}const Ln={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 _n(e){return o.jsx("textarea",{...e.attributes,placeholder:e.placeholder,name:e.name,value:e.value,defaultValue:e.defaultValue,required:e.required})}const Un={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},{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:"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}],noWrap:!0};function Hn(e){var n;function t(){const i={...e.attributes,[U()]:`builder-raw-img ${e.attributes[U()]||""}`};return delete i.style,i}return o.jsx("img",{loading:"lazy",alt:e.altText,title:e.title,src:e.imgSrc||e.image,...t(),style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center",aspectRatio:e.aspectRatio||void 0,...((n=e.attributes)==null?void 0:n.style)||{}}},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:fn,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 Je(e){var s,l,c,m,b,x,u;const t=d.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[a,r]=d.useState(()=>{});return d.useEffect(()=>{if(e.lazyLoad){const C=new IntersectionObserver(function(g){g.forEach(function(y){if(!y.isIntersecting)return;const v=y.target;try{Array.from(v.children).filter(h=>h instanceof HTMLElement&&h.tagName==="SOURCE").forEach(h=>{const S=h.dataset.src;S&&(h.src=S)}),v.load(),C.unobserve(v)}catch(h){console.error("Error loading lazy video:",h)}})});t.current&&C.observe(t.current),r(C)}},[]),d.useEffect(()=>()=>{a&&a.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,(b=(m=e.builderBlock)==null?void 0:m.children)!=null&&b.length&&e.fitContent?o.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch"},children:e.children}):null,(u=(x=e.builderBlock)==null?void 0:x.children)!=null&&u.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 qn=()=>[{component:In,...Tn},{component:Pn,...wn},{component:Bn,...An},{component:Dn,...Nn},{component:On,...$n},{component:Wn,...Fn},{component:_n,...Ln},{component:Hn,...Un},{component:Je,...Mn}],ve=()=>[{component:Ie,...un},{component:Le,...dn},{component:_e,...mn},{component:Ue,...gn},{component:He,...yn},{component:pn,...xn},{component:et,...vn},{component:Ge,...Cn},...ze.includes(f.TARGET)?[{component:bn,...hn}]:[],{component:kn,...Sn},{component:cn,...ln},...qn()],zn=`function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
222
222
|
function getAndSetVariantId() {
|
|
223
223
|
function setCookie(name, value, days) {
|
|
224
224
|
let expires = '';
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
}).join('');
|
|
278
278
|
styleEl.innerHTML = newStyleStr;
|
|
279
279
|
}
|
|
280
|
-
}`,
|
|
280
|
+
}`,Kn=`function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
281
281
|
if (!navigator.cookieEnabled) {
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
@@ -311,59 +311,29 @@
|
|
|
311
311
|
thisScriptEl?.remove();
|
|
312
312
|
}
|
|
313
313
|
return;
|
|
314
|
-
}`,
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
if (index > 0) {
|
|
324
|
-
script.parentNode && script.parentNode.removeChild(script);
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
|
|
328
|
-
// Watch for duplicates added later (e.g. RSC streaming chunks)
|
|
329
|
-
if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
|
|
330
|
-
window[observerKey] = new MutationObserver(function() {
|
|
331
|
-
var all = document.querySelectorAll(selector);
|
|
332
|
-
for (var i = 1; i < all.length; i++) {
|
|
333
|
-
all[i].parentNode && all[i].parentNode.removeChild(all[i]);
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
if (!window[scriptKey]) {
|
|
340
|
-
window[scriptKey] = true;
|
|
341
|
-
${t}
|
|
342
|
-
}
|
|
343
|
-
})();
|
|
344
|
-
`,Xn=()=>`
|
|
345
|
-
window.${Ye} = ${zn}
|
|
346
|
-
window.${Xe} = ${Gn}
|
|
347
|
-
`,Zn=(e,t)=>`
|
|
348
|
-
window.${Ye}(
|
|
349
|
-
"${t}",${JSON.stringify(e)}, ${Ze}, ${Yn}
|
|
350
|
-
)`,ei=({contentId:e,variationId:t})=>`window.${Xe}(
|
|
351
|
-
"${t}", "${e}", ${Ze}
|
|
352
|
-
)`;function ke(e){return Math.round(e*1e3)/1e3}const ti=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let i=n?e:e.parentElement;do{if(!i)return null;if(t(i))return i}while(i=i.parentElement);return null},ni=e=>ti(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),Ce=({event:e,target:t})=>{const n=t.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top,a=ke(i/n.width),s=ke(r/n.height);return{x:a,y:s}},ii=e=>{const t=e.target,n=t&&ni(t),i=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:t?Ce({event:e,target:t}):void 0,builderTargetOffset:n?Ce({event:e,target:n}):void 0,builderElementIndex:n&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(n):void 0}}},ri=["svelte","qwik","vue"],Te=()=>ri.includes(f.TARGET)&&(f.isEditing()||f.isPreviewing()),ai=e=>{var a,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],i=(s=e.fileUrl)!=null?s:(a=e==null?void 0:e.files)==null?void 0:a.regular;let r="";if(i&&t&&n&&(r+=`
|
|
314
|
+
}`,Qe="builderIoAbTest",Ye="builderIoRenderContent",Y=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Gn=({canTrack:e,content:t})=>!(!(Y(t).length>0)||!e||f.isBrowser()),Jn=e=>e==="react"||e==="reactNative",Qn=f.TARGET==="angular",Xe=Jn(f.TARGET),Yn=()=>`
|
|
315
|
+
window.${Qe} = ${zn}
|
|
316
|
+
window.${Ye} = ${Kn}
|
|
317
|
+
`,Xn=(e,t)=>`
|
|
318
|
+
window.${Qe}(
|
|
319
|
+
"${t}",${JSON.stringify(e)}, ${Xe}, ${Qn}
|
|
320
|
+
)`,Zn=({contentId:e,variationId:t})=>`window.${Ye}(
|
|
321
|
+
"${t}", "${e}", ${Xe}
|
|
322
|
+
)`;function Se(e){return Math.round(e*1e3)/1e3}const ei=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let i=n?e:e.parentElement;do{if(!i)return null;if(t(i))return i}while(i=i.parentElement);return null},ti=e=>ei(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ke=({event:e,target:t})=>{const n=t.getBoundingClientRect(),i=e.clientX-n.left,a=e.clientY-n.top,r=Se(i/n.width),s=Se(a/n.height);return{x:r,y:s}},ni=e=>{const t=e.target,n=t&&ti(t),i=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:t?ke({event:e,target:t}):void 0,builderTargetOffset:n?ke({event:e,target:n}):void 0,builderElementIndex:n&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(n):void 0}}},ii=["svelte","qwik","vue"],Ce=()=>ii.includes(f.TARGET)&&(f.isEditing()||f.isPreviewing()),ai=e=>{var r,s;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],i=(s=e.fileUrl)!=null?s:(r=e==null?void 0:e.files)==null?void 0:r.regular;let a="";if(i&&t&&n&&(a+=`
|
|
353
323
|
@font-face {
|
|
354
324
|
font-family: "${t}";
|
|
355
325
|
src: local("${n}"), url('${i}') format('woff2');
|
|
356
326
|
font-display: fallback;
|
|
357
327
|
font-weight: 400;
|
|
358
328
|
}
|
|
359
|
-
`.trim()),e.files)for(const l in e.files){if(!(String(Number(l))===l))continue;const m=e.files[l];m&&m!==i&&(
|
|
329
|
+
`.trim()),e.files)for(const l in e.files){if(!(String(Number(l))===l))continue;const m=e.files[l];m&&m!==i&&(a+=`
|
|
360
330
|
@font-face {
|
|
361
331
|
font-family: "${t}";
|
|
362
332
|
src: url('${m}') format('woff2');
|
|
363
333
|
font-display: fallback;
|
|
364
334
|
font-weight: ${l};
|
|
365
335
|
}
|
|
366
|
-
`.trim())}return
|
|
336
|
+
`.trim())}return a},ri=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>ai(n)))==null?void 0:t.join(" "))||""},oi=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",si=`
|
|
367
337
|
.builder-button {
|
|
368
338
|
all: unset;
|
|
369
339
|
}
|
|
@@ -380,8 +350,8 @@ font-weight: ${l};
|
|
|
380
350
|
text-align: inherit;
|
|
381
351
|
font-family: inherit;
|
|
382
352
|
}
|
|
383
|
-
`,
|
|
384
|
-
${
|
|
385
|
-
${
|
|
386
|
-
${
|
|
387
|
-
`.trim());return o.jsx(G,{id:"builderio-content",styles:t,nonce:e.nonce})}const
|
|
353
|
+
`,li=e=>e?"":si,ci=e=>`variant-${e}`;function ui(e){var O,L,p;const t=d.useRef(null);d.useState(()=>!1),d.useState(()=>e.builderContextSignal);const[n,i]=d.useState(()=>null),[a,r]=d.useState(()=>"");function s(k,A){var B,R;const V={...e.builderContextSignal.rootState,...k};e.builderContextSignal.rootSetState?(R=(B=e.builderContextSignal).rootSetState)==null||R.call(B,V):e.setBuilderContextSignal(P=>({...P,rootState:V})),e.builderContextSignal.rootSetState?e.builderContextSignal.rootSetState(V):e.setBuilderContextSignal(P=>({...P,rootState:V}))}function l(k,A){var B,R,P,w,j;const V={...e.builderContextSignal.content,...k,data:{...(B=e.builderContextSignal.content)==null?void 0:B.data,...k==null?void 0:k.data},meta:{...(R=e.builderContextSignal.content)==null?void 0:R.meta,...k==null?void 0:k.meta,breakpoints:((P=k==null?void 0:k.meta)==null?void 0:P.breakpoints)||((j=(w=e.builderContextSignal.content)==null?void 0:w.meta)==null?void 0:j.breakpoints)}};e.setBuilderContextSignal(T=>({...T,content:V}))}function c(){return e.showContent?{}:{hidden:!0,"aria-hidden":!0}}const[m,b]=d.useState(()=>e.contentWrapper||"div");function x(k){return f.createEditorListener({model:e.model,trustedHosts:e.trustedHosts,callbacks:{configureSdk:A=>{var R;const{breakpoints:V,contentId:B}=A;!B||B!==((R=e.builderContextSignal.content)==null?void 0:R.id)||V&&l({meta:{breakpoints:V}})},animation:A=>{Be(A)},contentUpdate:(A,V)=>{l(A)},stateUpdate:(A,V)=>{s(A)}}})(k)}const[u,C]=d.useState(()=>({})),[g,y]=d.useState(()=>({})),[v,h]=d.useState(()=>!1);function S(k){var A,V;if(e.builderContextSignal.content){const B=(A=e.builderContextSignal.content)==null?void 0:A.testVariationId,R=(V=e.builderContextSignal.content)==null?void 0:V.id;f._track({apiHost:e.apiHost,type:"click",canTrack:f.getDefaultCanTrack(e.canTrack),contentId:R,apiKey:e.apiKey,variationId:B!==R?B:void 0,...ni(k),unique:!v})}v||h(!0)}function I(){var A,V,B;const k=(B=(V=(A=e.builderContextSignal.content)==null?void 0:A.data)==null?void 0:V.httpRequests)!=null?B:{};Object.entries(k).forEach(([R,P])=>{if(!P)return;const w=typeof P=="object"&&P["@type"]==="@builder.io/core:Request";if(g[R]||u[R]&&!f.isEditing())return;const j=w?P.request.url:P;g[R]=!0;const T=j.replace(/{{([^}]+)}}/g,(F,_)=>String(M({code:_,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))),N=w?{url:T,method:P.request.method,headers:P.request.headers,body:P.request.body}:{url:T,method:"GET"};f.logFetch(JSON.stringify(N));const D={method:N.method,headers:N.headers,body:N.body};N.method==="GET"&&delete D.body,fetch(N.url,D).then(F=>F.json()).then(F=>{s({[R]:F}),u[R]=!0}).catch(F=>{console.error("error fetching dynamic data",JSON.stringify(P),F)}).finally(()=>{g[R]=!1})})}function E(){f.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:ce(e.builderContextSignal.rootState),ref:{name:e.model}}}))}const W=d.useRef(!1);return W.current||(I(),E(),W.current=!0),d.useEffect(()=>{var k,A,V,B,R;if(f.isBrowser()){f.isEditing()&&!e.isNestedRender&&(window.addEventListener("message",x),f.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.enrich?{enrich:e.enrich}:{},...e.trustedHosts?{trustedHosts:e.trustedHosts}:{},modelName:(k=e.model)!=null?k:"",apiKey:e.apiKey}),Object.values(e.builderContextSignal.componentInfos).forEach(T=>{var N,D;if(!((N=T.models)!=null&&N.length)||T.models.includes(e.model)){const F=f.createRegisterComponentMessage(T);(D=window.parent)==null||D.postMessage(F,"*")}}),window.addEventListener("builder:component:stateChangeListenerActivated",E));const P=e.builderContextSignal.content&&f.getDefaultCanTrack(e.canTrack),w=f.getCookieSync({name:`builder.tests.${(A=e.builderContextSignal.content)==null?void 0:A.id}`,canTrack:!0}),j=(V=e.builderContextSignal.content)==null?void 0:V.testVariationId;if(P&&j===w){const T=(B=e.builderContextSignal.content)==null?void 0:B.id,N=e.apiKey;f._track({apiHost:e.apiHost,type:"impression",canTrack:!0,contentId:T,apiKey:N,variationId:w!==T?w:void 0})}if(f.isPreviewing()&&!f.isEditing()){const T=new URL(location.href).searchParams,N=T.get("builder.preview"),D=T.get(`builder.overrides.${N}`),F=T.get("apiKey")||T.get("builder.space");(N==="BUILDER_STUDIO"||N===e.model&&F===e.apiKey&&(!e.content||D===e.content.id))&&f.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion,...N==="BUILDER_STUDIO"&&((R=e.context)!=null&&R.symbolId)?{query:{id:e.context.symbolId}}:{}}).then(_=>{_&&l(_)})}}},[]),d.useEffect(()=>{e.content&&l(e.content)},[e.content]),d.useEffect(()=>{E()},[e.builderContextSignal.rootState]),d.useEffect(()=>{if(e.data){if(n===e.data)return;s(e.data),i(e.data)}},[e.data]),d.useEffect(()=>{if(e.locale){if(a===e.locale)return;s({locale:e.locale}),r(e.locale)}},[e.locale]),d.useEffect(()=>()=>{f.isBrowser()&&(window.removeEventListener("message",x),window.removeEventListener("builder:component:stateChangeListenerActivated",E))},[]),o.jsx(K.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content||Ce()?o.jsx(m,{ref:t,onClick:k=>S(k),"builder-content-id":(O=e.builderContextSignal.content)==null?void 0:O.id,"builder-model":e.model,className:ci(((L=e.content)==null?void 0:L.testVariationId)||((p=e.content)==null?void 0:p.id)),style:{display:!e.builderContextSignal.content&&Ce()?"none":void 0},...c(),...e.contentWrapperProps,children:e.children}):null})}function di(e){const[t,n]=d.useState(()=>`
|
|
354
|
+
${oi({cssCode:e.cssCode,contentId:e.contentId})}
|
|
355
|
+
${ri({customFonts:e.customFonts})}
|
|
356
|
+
${li(e.isNestedRender)}
|
|
357
|
+
`.trim());return o.jsx(G,{id:"builderio-content",styles:t,nonce:e.nonce})}const mi=({content:e,data:t,locale:n})=>{var r,s,l;const i={},a=((r=e==null?void 0:e.data)==null?void 0:r.state)||{};return(l=(s=e==null?void 0:e.data)==null?void 0:s.inputs)==null||l.forEach(c=>{c.name&&c.defaultValue!==void 0&&(i[c.name]=c.defaultValue)}),{...i,...a,...t,...n?{locale:n}:{}}},fi=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function Te(e){var m,b,x,u,C,g,y,v,h;const[t,n]=d.useState(()=>{var S,I;return Zn({variationId:(S=e.content)==null?void 0:S.testVariationId,contentId:(I=e.content)==null?void 0:I.id})});function i(S){l(I=>({...I,rootState:S}))}const[a,r]=d.useState(()=>[...ve(),...e.customComponents||[]].reduce((S,{component:I,...E})=>({...S,[E.name]:{component:I,...f.serializeIncludingFunctions(E)}}),{})),[s,l]=d.useState(()=>({content:fi({content:e.content,data:e.data}),localState:void 0,rootState:mi({content:e.content,data:e.data,locale:e.locale}),rootSetState:i,context:e.context||{},canTrack:e.canTrack,apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...ve(),...e.customComponents||[]].reduce((S,{component:I,...E})=>({...S,[E.name]:f.serializeIncludingFunctions(E)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{},nonce:e.nonce||"",model:e.model})),c=d.useRef(!1);if(!c.current){e.apiKey||f.logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop.");const S=(b=(m=s.content)==null?void 0:m.data)==null?void 0:b.jsCode;S&&M({code:S,context:e.context||{},localState:void 0,rootState:s.rootState,rootSetState:I=>{Object.assign(s.rootState,I)},isExpression:!1}),c.current=!0}return d.useEffect(()=>{},[e.content,e.data,e.locale]),o.jsx(we.Provider,{value:{registeredComponents:a},children:o.jsxs(ui,{apiHost:e.apiHost,nonce:e.nonce,content:e.content,data:e.data,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,showContent:e.showContent,builderContextSignal:s,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts,isNestedRender:e.isNestedRender,setBuilderContextSignal:l,children:[e.isSsrAbTest?o.jsx(H,{id:"builderio-variant-visibility",scriptStr:t,nonce:e.nonce||""}):null,o.jsx(di,{nonce:e.nonce||"",isNestedRender:e.isNestedRender,contentId:(x=s.content)==null?void 0:x.id,cssCode:(C=(u=s.content)==null?void 0:u.data)==null?void 0:C.cssCode,customFonts:(y=(g=s.content)==null?void 0:g.data)==null?void 0:y.customFonts}),o.jsx($,{blocks:(h=(v=s.content)==null?void 0:v.data)==null?void 0:h.blocks,context:s,registeredComponents:a,linkComponent:e.linkComponent})]})})}function Ze(e){var s;const[t,n]=d.useState(()=>Gn({canTrack:f.getDefaultCanTrack(e.canTrack),content:e.content}));function i(){var l;return Xn(Y(e.content).map(c=>({id:c.testVariationId,testRatio:c.testRatio})),((l=e.content)==null?void 0:l.id)||"")}function a(){return Y(e.content).map(l=>`.variant-${l.testVariationId} { display: none; } `).join("")}function r(){var l;return t?{...e.content,testVariationId:(l=e.content)==null?void 0:l.id}:f.handleABTestingSync({item:e.content,canTrack:f.getDefaultCanTrack(e.canTrack)})}return d.useEffect(()=>{},[]),o.jsxs(o.Fragment,{children:[!e.isNestedRender&&f.TARGET!=="reactNative"?o.jsxs(o.Fragment,{children:[o.jsx(H,{id:"builderio-init-variants-fns",scriptStr:Yn(),nonce:e.nonce||""}),ze.includes(f.TARGET)?o.jsx(H,{id:"builderio-init-personalization-variants-fns",nonce:e.nonce||"",scriptStr:rn()}):null]}):null,t?o.jsxs(o.Fragment,{children:[o.jsx(G,{id:"builderio-variants",styles:a(),nonce:e.nonce||""}),o.jsx(H,{id:"builderio-variants-visibility",scriptStr:i(),nonce:e.nonce||""}),(s=Y(e.content))==null?void 0:s.map(l=>o.jsx(Te,{apiHost:e.apiHost,isNestedRender:e.isNestedRender,nonce:e.nonce,content:l,showContent:!1,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts},l.testVariationId))]}):null,o.jsx(Te,{apiHost:e.apiHost,nonce:e.nonce,isNestedRender:e.isNestedRender,content:r(),showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,linkComponent:e.linkComponent,canTrack:e.canTrack,locale:e.locale,enrich:e.enrich,isSsrAbTest:t,blocksWrapper:e.blocksWrapper,blocksWrapperProps:e.blocksWrapperProps,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,trustedHosts:e.trustedHosts})]})}const gi=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return f.fetchOneEntry({model:t.model,apiKey:t.global&&t.ownerId?t.ownerId:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{f.logger.error("Could not fetch symbol content: ",n)})};function et(e){var b,x,u,C,g,y,v;function t(){return"div"}function n(){return"div"}function i(){return Object.values(e.builderComponents)}function a(){var h,S;return[e.attributes[U()],"builder-symbol",(h=e.symbol)!=null&&h.inline?"builder-inline-symbol":void 0,(S=e.symbol)!=null&&S.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[r,s]=d.useState(()=>{var h;return(h=e.symbol)==null?void 0:h.content}),[l,c]=d.useState(()=>{var h;return(h=e.symbol)==null?void 0:h.entry});function m(){var h;r&&l===((h=e.symbol)==null?void 0:h.entry)||gi({symbol:e.symbol,builderContextValue:e.builderContext}).then(S=>{var I;S&&(s(S),c((I=e.symbol)==null?void 0:I.entry))})}return d.useEffect(()=>{},[]),d.useEffect(()=>{m()},[e.symbol]),o.jsx("div",{...e.attributes,className:a(),children:o.jsx(Ze,{nonce:e.builderContext.nonce,isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:(b=e.symbol)!=null&&b.global&&((x=e.symbol)!=null&&x.ownerId)?e.symbol.ownerId:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(u=e.builderBlock)==null?void 0:u.id},customComponents:i(),data:{...(C=e.symbol)==null?void 0:C.data,...e.builderContext.localState,...(g=r==null?void 0:r.data)==null?void 0:g.state},canTrack:e.builderContext.canTrack,model:(v=(y=e.symbol)==null?void 0:y.model)!=null?v:"",content:r,linkComponent:e.builderLinkComponent,blocksWrapper:t(),contentWrapper:n()})})}exports.setClientUserAttributes=f.setClientUserAttributes;exports.Blocks=$;exports.BuilderContext=K;exports.Button=Ie;exports.Columns=Le;exports.Content=Ze;exports.Fragment=_e;exports.Image=Ue;exports.Section=He;exports.Symbol=et;exports.Text=Ge;exports.Video=Je;
|