@builder.io/sdk-react 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/lib/browser/blocks-exports.cjs +12 -12
  2. package/lib/browser/blocks-exports.mjs +10 -7
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-81390e9b.js → server-entry-2aabcfc5.js} +1 -1
  6. package/lib/browser/{server-entry-1549d863.cjs → server-entry-56a43424.cjs} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-90d607ca.js → accordion-7a8559d1.js} +1 -1
  10. package/lib/edge/{accordion-ba377db1.cjs → accordion-b8a726ee.cjs} +1 -1
  11. package/lib/edge/{blocks-482bd303.js → blocks-12590d6b.js} +50 -47
  12. package/lib/edge/{blocks-49400750.cjs → blocks-58f7d3bf.cjs} +2 -2
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-76b09bda.js → button-8c1d414f.js} +2 -2
  16. package/lib/edge/{button-1dd20b20.cjs → button-c68ea03d.cjs} +1 -1
  17. package/lib/edge/{columns-ed698360.cjs → columns-5bad599a.cjs} +1 -1
  18. package/lib/edge/{columns-89f6f5b7.js → columns-ea10971b.js} +3 -3
  19. package/lib/edge/{content-variants-98b86c90.cjs → content-variants-1ea2cc45.cjs} +2 -2
  20. package/lib/edge/{content-variants-6e54d1d8.js → content-variants-8052ce9b.js} +12 -12
  21. package/lib/edge/{custom-code-62511fce.cjs → custom-code-126854d0.cjs} +1 -1
  22. package/lib/edge/{custom-code-3387f2ee.js → custom-code-29bcd3c1.js} +1 -1
  23. package/lib/edge/{embed-54bfd2b5.cjs → embed-2986e15c.cjs} +1 -1
  24. package/lib/edge/{embed-e24c574a.js → embed-51ea3559.js} +1 -1
  25. package/lib/edge/{form-5c77fb87.cjs → form-0e910fbf.cjs} +1 -1
  26. package/lib/edge/{form-b3b23e9b.js → form-75a443ad.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-2e01e11c.js → get-class-prop-name-1e9476bb.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-3347a655.cjs → get-class-prop-name-db97ef04.cjs} +1 -1
  29. package/lib/edge/{img-d900f0a6.js → img-71d8f85a.js} +2 -2
  30. package/lib/edge/{img-8430be52.cjs → img-d73b746e.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-6b9d2f0d.js → input-1aeefc8e.js} +1 -1
  34. package/lib/edge/{input-e522b3f8.cjs → input-c8886579.cjs} +1 -1
  35. package/lib/edge/{personalization-container-42afbf21.js → personalization-container-13aa06c8.js} +4 -4
  36. package/lib/edge/{personalization-container-9469f576.cjs → personalization-container-9daeb712.cjs} +1 -1
  37. package/lib/edge/{select-38371935.cjs → select-8a79d8dd.cjs} +1 -1
  38. package/lib/edge/{select-e1a9f4c9.js → select-d6a5369f.js} +1 -1
  39. package/lib/edge/{server-entry-954fe774.js → server-entry-77646307.js} +1 -1
  40. package/lib/edge/{server-entry-a2bf7e77.cjs → server-entry-a1d12fab.cjs} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-cc86bcca.js → slot-110c36af.js} +3 -3
  44. package/lib/edge/{slot-562ee3ff.cjs → slot-215396be.cjs} +1 -1
  45. package/lib/edge/{symbol-099ae199.cjs → symbol-5e7704f0.cjs} +1 -1
  46. package/lib/edge/{symbol-6224d576.js → symbol-cb47c30e.js} +2 -2
  47. package/lib/edge/{tabs-51cb7107.js → tabs-4a754007.js} +3 -3
  48. package/lib/edge/{tabs-e1cf9ee7.cjs → tabs-dddcc4d9.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +2 -2
  50. package/lib/node/blocks-exports.mjs +12 -9
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-85c98f9a.js → server-entry-683f926c.js} +1 -1
  56. package/lib/node/{server-entry-1c10e3d9.cjs → server-entry-ef0a9bc1.cjs} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-a5e6d580.cjs → setIvm-4b6c067d.cjs} +1 -1
  60. package/lib/node/{setIvm-ed61fc8c.js → setIvm-bcaed0e9.js} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-03c2678b.js → should-force-browser-runtime-in-node-8b51c95e.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-36ea59a2.cjs → should-force-browser-runtime-in-node-92af2305.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/constants/sdk-version.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import { Blocks as o, BuilderContext as s, Button as n, Columns as c, Content as g, Fragment as m, Image as a, Section as l, Symbol as u, Text as d, Video as p } from "./blocks-exports.mjs";
2
- import { _processContentResult as f, createRegisterComponentMessage as B, fetchBuilderProps as E, fetchEntries as b, fetchOneEntry as h, getBuilderSearchParams as x, isEditing as S, isPreviewing as P, register as k, registerAction as y, setClientUserAttributes as A, setEditorSettings as R, subscribeToEditor as T, track as v } from "./server-entry-81390e9b.js";
2
+ import { _processContentResult as f, createRegisterComponentMessage as B, fetchBuilderProps as E, fetchEntries as b, fetchOneEntry as h, getBuilderSearchParams as x, isEditing as S, isPreviewing as P, register as k, registerAction as y, setClientUserAttributes as A, setEditorSettings as R, subscribeToEditor as T, track as v } from "./server-entry-2aabcfc5.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  export {
@@ -52,7 +52,7 @@ const ut = () => {
52
52
  host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
53
53
  device: n ? "tablet" : e.any() ? "mobile" : "desktop"
54
54
  };
55
- }, W = "5.2.0", j = () => ({
55
+ }, W = "5.2.1", j = () => ({
56
56
  "X-Builder-SDK": b,
57
57
  "X-Builder-SDK-GEN": "2",
58
58
  "X-Builder-SDK-Version": W
@@ -1,2 +1,2 @@
1
- "use strict";const b="react",I="[Builder.io]: ",f={log:(...t)=>console.log(I,...t),error:(...t)=>console.error(I,...t),warn:(...t)=>console.warn(I,...t),debug:(...t)=>console.debug(I,...t)};function a(){return typeof window!="undefined"&&typeof document!="undefined"}const St=t=>{const e={};return t.forEach((r,n)=>{e[n]=r}),e},j=t=>t instanceof URLSearchParams?St(t):t,$=t=>typeof t=="string"?t:t instanceof URLSearchParams?t.toString():new URLSearchParams(t).toString();function bt(){return a()&&window.self!==window.top}function G(t){return bt()&&$(t||window.location.search).indexOf("builder.frameEditing=")!==-1}const yt=()=>{if(a()){const t=new URL(location.href);return t.pathname===""&&(t.pathname="/"),t}else return console.warn("Cannot get location for tracking in non-browser environment"),null},mt=()=>typeof navigator=="object"&&navigator.userAgent||"",J=()=>{const t=mt(),e={Android(){return t.match(/Android/i)},BlackBerry(){return t.match(/BlackBerry/i)},iOS(){return t.match(/iPhone|iPod/i)},Opera(){return t.match(/Opera Mini/i)},Windows(){return t.match(/IEMobile/i)||t.match(/WPDesktop/i)},any(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()||b==="reactNative"}},r=t.match(/Tablet|iPad/i),n=yt();return{urlPath:n==null?void 0:n.pathname,host:(n==null?void 0:n.host)||(n==null?void 0:n.hostname),device:r?"tablet":e.any()?"mobile":"desktop"}},z="5.2.0",X=()=>({"X-Builder-SDK":b,"X-Builder-SDK-GEN":"2","X-Builder-SDK-Version":z}),S=t=>t!=null,wt=t=>{if(t==="localhost"||t==="127.0.0.1")return t;const e=t.split(".");return e.length>2?e.slice(1).join("."):t},v=({name:t,canTrack:e})=>{var r;try{return e?(r=document.cookie.split("; ").find(n=>n.startsWith(`${t}=`)))==null?void 0:r.split("=")[1]:void 0}catch(n){f.warn("[COOKIE] GET error: ",(n==null?void 0:n.message)||n);return}},H=async t=>v(t),Et=t=>t.map(([e,r])=>r?`${e}=${r}`:e).filter(S).join("; "),At=[["secure",""],["SameSite","None"]],It=({name:t,value:e,expires:r})=>{const s=(a()?location.protocol==="https:":!0)?At:[[]],o=r?[["expires",r.toUTCString()]]:[[]],i=[[t,e],...o,["path","/"],["domain",wt(window.location.hostname)],...s];return Et(i)},U=async({name:t,value:e,expires:r,canTrack:n})=>{try{if(!n)return;const s=It({name:t,value:e,expires:r});document.cookie=s}catch(s){f.warn("[COOKIE] SET error: ",(s==null?void 0:s.message)||s)}};function vt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}function Q(){return vt().replace(/-/g,"")}const Y="builderSessionId",kt=async({canTrack:t})=>{if(!t)return;const e=await H({name:Y,canTrack:t});if(S(e))return e;{const r=Tt();return Ut({id:r,canTrack:t}),r}},Tt=()=>Q(),Ut=({id:t,canTrack:e})=>U({name:Y,value:t,canTrack:e}),Z=()=>a()&&typeof localStorage!="undefined"?localStorage:void 0,Ot=({key:t,canTrack:e})=>{var r;try{return e?(r=Z())==null?void 0:r.getItem(t):void 0}catch(n){console.debug("[LocalStorage] GET error: ",n);return}},Pt=({key:t,canTrack:e,value:r})=>{var n;try{e&&((n=Z())==null||n.setItem(t,r))}catch(s){console.debug("[LocalStorage] SET error: ",s)}},q="builderVisitorId",Rt=({canTrack:t})=>{if(!t)return;const e=Ot({key:q,canTrack:t});if(S(e))return e;{const r=Ct();return Bt({id:r,canTrack:t}),r}},Ct=()=>Q(),Bt=({id:t,canTrack:e})=>Pt({key:q,value:t,canTrack:e});function tt(t){var e;typeof process!="undefined"&&((e=process.env)!=null&&e.DEBUG)&&String(process.env.DEBUG)=="true"&&f.log(t)}const xt=async({canTrack:t})=>{if(!t)return{visitorId:void 0,sessionId:void 0};const e=await kt({canTrack:t}),r=Rt({canTrack:t});return{sessionId:e,visitorId:r}},_t=async({type:t,canTrack:e,apiKey:r,metadata:n,...s})=>({type:t,data:{...s,metadata:{url:location.href,...n},...await xt({canTrack:e}),userAttributes:J(),ownerId:r}});async function et({apiHost:t,...e}){if(!e.apiKey){f.error("Missing API key for track call. Please provide your API key.");return}if(!e.canTrack||G()||!(a()||b==="reactNative"))return;const n=`${t||"https://cdn.builder.io"}/api/v1/track`;return tt(n),fetch(n,{method:"POST",body:JSON.stringify({events:[await _t(e)]}),headers:{"content-type":"application/json",...X()},mode:"cors"}).catch(s=>{console.error("Failed to track: ",s)})}const Lt=t=>et({...t,canTrack:!0});function Nt(t){const e=t||(a()?window.location.search:void 0);return e?$(e).indexOf("builder.preview=")!==-1:!1}const Vt=t=>({type:"builder.registerComponent",data:O(t)}),Dt=t=>{const e=t.toString().trim(),r=/^[a-zA-Z0-9_]+\s*=>/i.test(e);return`return (${!e.startsWith("function")&&!e.startsWith("async")&&!e.startsWith("(")&&!r?"function ":""}${e}).apply(this, arguments)`};function O(t){return JSON.parse(JSON.stringify(t,(e,r)=>typeof r=="function"?Dt(r):r))}const N={};function Ft(t,e){t==="plugin"&&(e=O(e));let r=N[t];if(r||(r=N[t]=[]),r.push(e),a()){const n={type:"builder.register",data:{type:t,info:e}};try{parent.postMessage(n,"*"),parent!==window&&window.postMessage(n,"*")}catch(s){console.debug("Could not postmessage",s)}}}function Mt(t){var e;if(a()){const r=JSON.parse(JSON.stringify(t));t.action&&(r.action=t.action.toString()),(e=window.parent)==null||e.postMessage({type:"builder.registerAction",data:r},"*")}}const V={};function Kt(t){if(a()){Object.assign(V,t);const e={type:"builder.settingsChange",data:V};parent.postMessage(e,"*")}}const D="builder.",Wt="options.",P=t=>{if(!t)return{};const e=j(t),r={};return Object.keys(e).forEach(n=>{if(n.startsWith(D)){const s=n.replace(D,"").replace(Wt,"");r[s]=e[n]}}),r},jt=()=>{if(!a())return{};const t=new URLSearchParams(window.location.search);return P(t)},$t=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function rt(t,e){if(!e.origin.startsWith("http")&&!e.origin.startsWith("https"))return!1;const r=new URL(e.origin),n=r.hostname;return(t||$t).findIndex(s=>s.startsWith("*.")?n.endsWith(s.slice(1)):s===n)>-1}let F=!1;const nt=t=>{var e,r;F||(F=!0,a()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:b,version:z,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0,modelName:t.modelName,apiKey:t.apiKey,supportsXSmallBreakpoint:!0,blockLevelPersonalization:!0}},"*"),(r=window.parent)==null||r.postMessage({type:"builder.updateContent",data:{options:t}},"*"),window.addEventListener("message",n=>{var o,i;if(!rt(t.trustedHosts,n))return;const{data:s}=n;if(s!=null&&s.type)switch(s.type){case"builder.evaluate":{const u=s.data.text,l=s.data.arguments||[],y=s.data.id,m=new Function(u);let d,h=null;try{d=m.apply(null,l)}catch(p){h=p}h?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:y,error:h.message}},"*"):d&&typeof d.then=="function"?d.then(p=>{var w;(w=window.parent)==null||w.postMessage({type:"builder.evaluateResult",data:{id:y,result:p}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:d,id:y}},"*");break}}})))},st=({model:t,trustedHosts:e,callbacks:r})=>n=>{if(!rt(e,n))return;const{data:s}=n;if(s)switch(s.type){case"builder.configureSdk":{r.configureSdk(s.data);break}case"builder.triggerAnimation":{r.animation(s.data);break}case"builder.resetState":{const o=s.data,i=o.model,u=o==null?void 0:o.state,l=o.editType;i===t&&u&&r.stateUpdate(u,l);break}case"builder.contentUpdate":{const o=s.data,i=o.key||o.alias||o.entry||o.modelName,u=o.data,l=o.editType;i===t&&r.contentUpdate(u,l);break}}},Gt=({model:t,apiKey:e,callback:r,trustedHosts:n})=>{if(!a)return f.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};nt({modelName:t,apiKey:e});const s=st({callbacks:{contentUpdate:r,animation:()=>{},configureSdk:()=>{},stateUpdate:()=>{}},model:t,trustedHosts:n});return window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}},Jt="builder.tests",R=t=>`${Jt}.${t}`,zt=({contentId:t})=>H({name:R(t),canTrack:!0}),Xt=({contentId:t})=>v({name:R(t),canTrack:!0}),Ht=({contentId:t,value:e})=>U({name:R(t),value:e,canTrack:!0}),ot=t=>S(t.id)&&S(t.variations)&&Object.keys(t.variations).length>0,Qt=({id:t,variations:e})=>{var s;let r=0;const n=Math.random();for(const o in e){const i=(s=e[o])==null?void 0:s.testRatio;if(r+=i,n<r)return o}return t},it=t=>{const e=Qt(t);return Ht({contentId:t.id,value:e}).catch(r=>{f.error("could not store A/B test variation: ",r)}),e},at=({item:t,testGroupId:e})=>{const r=t.variations[e];return e===t.id||!r?{testVariationId:t.id,testVariationName:"Default"}:{data:r.data,testVariationId:r.id,testVariationName:r.name||(r.id===t.id?"Default":"")}},Yt=({item:t,canTrack:e})=>{if(!e)return t;if(!t)return;if(!ot(t))return t;const r=Xt({contentId:t.id})||it({variations:t.variations,id:t.id}),n=at({item:t,testGroupId:r});return{...t,...n}},Zt=async({item:t,canTrack:e})=>{if(!e||!ot(t))return t;const n=await zt({contentId:t.id})||it({variations:t.variations,id:t.id}),s=at({item:t,testGroupId:n});return{...t,...s}};const M="builder.userAttributes";function K(){let t=!0;const e=new Set;return{setUserAttributes(r){if(!a())return;const n={...this.getUserAttributes(),...r};U({name:M,value:JSON.stringify(n),canTrack:t}),e.forEach(s=>s(n))},getUserAttributes(){return a()?JSON.parse(v({name:M,canTrack:t})||"{}"):{}},subscribeOnUserAttributesChange(r,{fireImmediately:n}={}){return e.add(r),n&&r(this.getUserAttributes()),function(){e.delete(r)}},setCanTrack(r){t=r}}}let k;a()&&b==="qwik"?(window.__BUILDER_USER_ATTRIBUTES_SERVICE__||(window.__BUILDER_USER_ATTRIBUTES_SERVICE__=K()),k=window.__BUILDER_USER_ATTRIBUTES_SERVICE__):k=K();const C=k,qt=t=>{C.setUserAttributes(t)},ct=t=>{const e=S(t)?t:!0;return C.setCanTrack(e),e};function te(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:globalThis}function ee(){const t=te().fetch;if(typeof t=="undefined")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1
+ "use strict";const b="react",I="[Builder.io]: ",f={log:(...t)=>console.log(I,...t),error:(...t)=>console.error(I,...t),warn:(...t)=>console.warn(I,...t),debug:(...t)=>console.debug(I,...t)};function a(){return typeof window!="undefined"&&typeof document!="undefined"}const St=t=>{const e={};return t.forEach((r,n)=>{e[n]=r}),e},j=t=>t instanceof URLSearchParams?St(t):t,$=t=>typeof t=="string"?t:t instanceof URLSearchParams?t.toString():new URLSearchParams(t).toString();function bt(){return a()&&window.self!==window.top}function G(t){return bt()&&$(t||window.location.search).indexOf("builder.frameEditing=")!==-1}const yt=()=>{if(a()){const t=new URL(location.href);return t.pathname===""&&(t.pathname="/"),t}else return console.warn("Cannot get location for tracking in non-browser environment"),null},mt=()=>typeof navigator=="object"&&navigator.userAgent||"",J=()=>{const t=mt(),e={Android(){return t.match(/Android/i)},BlackBerry(){return t.match(/BlackBerry/i)},iOS(){return t.match(/iPhone|iPod/i)},Opera(){return t.match(/Opera Mini/i)},Windows(){return t.match(/IEMobile/i)||t.match(/WPDesktop/i)},any(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()||b==="reactNative"}},r=t.match(/Tablet|iPad/i),n=yt();return{urlPath:n==null?void 0:n.pathname,host:(n==null?void 0:n.host)||(n==null?void 0:n.hostname),device:r?"tablet":e.any()?"mobile":"desktop"}},z="5.2.1",X=()=>({"X-Builder-SDK":b,"X-Builder-SDK-GEN":"2","X-Builder-SDK-Version":z}),S=t=>t!=null,wt=t=>{if(t==="localhost"||t==="127.0.0.1")return t;const e=t.split(".");return e.length>2?e.slice(1).join("."):t},v=({name:t,canTrack:e})=>{var r;try{return e?(r=document.cookie.split("; ").find(n=>n.startsWith(`${t}=`)))==null?void 0:r.split("=")[1]:void 0}catch(n){f.warn("[COOKIE] GET error: ",(n==null?void 0:n.message)||n);return}},H=async t=>v(t),Et=t=>t.map(([e,r])=>r?`${e}=${r}`:e).filter(S).join("; "),At=[["secure",""],["SameSite","None"]],It=({name:t,value:e,expires:r})=>{const s=(a()?location.protocol==="https:":!0)?At:[[]],o=r?[["expires",r.toUTCString()]]:[[]],i=[[t,e],...o,["path","/"],["domain",wt(window.location.hostname)],...s];return Et(i)},U=async({name:t,value:e,expires:r,canTrack:n})=>{try{if(!n)return;const s=It({name:t,value:e,expires:r});document.cookie=s}catch(s){f.warn("[COOKIE] SET error: ",(s==null?void 0:s.message)||s)}};function vt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}function Q(){return vt().replace(/-/g,"")}const Y="builderSessionId",kt=async({canTrack:t})=>{if(!t)return;const e=await H({name:Y,canTrack:t});if(S(e))return e;{const r=Tt();return Ut({id:r,canTrack:t}),r}},Tt=()=>Q(),Ut=({id:t,canTrack:e})=>U({name:Y,value:t,canTrack:e}),Z=()=>a()&&typeof localStorage!="undefined"?localStorage:void 0,Ot=({key:t,canTrack:e})=>{var r;try{return e?(r=Z())==null?void 0:r.getItem(t):void 0}catch(n){console.debug("[LocalStorage] GET error: ",n);return}},Pt=({key:t,canTrack:e,value:r})=>{var n;try{e&&((n=Z())==null||n.setItem(t,r))}catch(s){console.debug("[LocalStorage] SET error: ",s)}},q="builderVisitorId",Rt=({canTrack:t})=>{if(!t)return;const e=Ot({key:q,canTrack:t});if(S(e))return e;{const r=Ct();return Bt({id:r,canTrack:t}),r}},Ct=()=>Q(),Bt=({id:t,canTrack:e})=>Pt({key:q,value:t,canTrack:e});function tt(t){var e;typeof process!="undefined"&&((e=process.env)!=null&&e.DEBUG)&&String(process.env.DEBUG)=="true"&&f.log(t)}const xt=async({canTrack:t})=>{if(!t)return{visitorId:void 0,sessionId:void 0};const e=await kt({canTrack:t}),r=Rt({canTrack:t});return{sessionId:e,visitorId:r}},_t=async({type:t,canTrack:e,apiKey:r,metadata:n,...s})=>({type:t,data:{...s,metadata:{url:location.href,...n},...await xt({canTrack:e}),userAttributes:J(),ownerId:r}});async function et({apiHost:t,...e}){if(!e.apiKey){f.error("Missing API key for track call. Please provide your API key.");return}if(!e.canTrack||G()||!(a()||b==="reactNative"))return;const n=`${t||"https://cdn.builder.io"}/api/v1/track`;return tt(n),fetch(n,{method:"POST",body:JSON.stringify({events:[await _t(e)]}),headers:{"content-type":"application/json",...X()},mode:"cors"}).catch(s=>{console.error("Failed to track: ",s)})}const Lt=t=>et({...t,canTrack:!0});function Nt(t){const e=t||(a()?window.location.search:void 0);return e?$(e).indexOf("builder.preview=")!==-1:!1}const Vt=t=>({type:"builder.registerComponent",data:O(t)}),Dt=t=>{const e=t.toString().trim(),r=/^[a-zA-Z0-9_]+\s*=>/i.test(e);return`return (${!e.startsWith("function")&&!e.startsWith("async")&&!e.startsWith("(")&&!r?"function ":""}${e}).apply(this, arguments)`};function O(t){return JSON.parse(JSON.stringify(t,(e,r)=>typeof r=="function"?Dt(r):r))}const N={};function Ft(t,e){t==="plugin"&&(e=O(e));let r=N[t];if(r||(r=N[t]=[]),r.push(e),a()){const n={type:"builder.register",data:{type:t,info:e}};try{parent.postMessage(n,"*"),parent!==window&&window.postMessage(n,"*")}catch(s){console.debug("Could not postmessage",s)}}}function Mt(t){var e;if(a()){const r=JSON.parse(JSON.stringify(t));t.action&&(r.action=t.action.toString()),(e=window.parent)==null||e.postMessage({type:"builder.registerAction",data:r},"*")}}const V={};function Kt(t){if(a()){Object.assign(V,t);const e={type:"builder.settingsChange",data:V};parent.postMessage(e,"*")}}const D="builder.",Wt="options.",P=t=>{if(!t)return{};const e=j(t),r={};return Object.keys(e).forEach(n=>{if(n.startsWith(D)){const s=n.replace(D,"").replace(Wt,"");r[s]=e[n]}}),r},jt=()=>{if(!a())return{};const t=new URLSearchParams(window.location.search);return P(t)},$t=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function rt(t,e){if(!e.origin.startsWith("http")&&!e.origin.startsWith("https"))return!1;const r=new URL(e.origin),n=r.hostname;return(t||$t).findIndex(s=>s.startsWith("*.")?n.endsWith(s.slice(1)):s===n)>-1}let F=!1;const nt=t=>{var e,r;F||(F=!0,a()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:b,version:z,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0,modelName:t.modelName,apiKey:t.apiKey,supportsXSmallBreakpoint:!0,blockLevelPersonalization:!0}},"*"),(r=window.parent)==null||r.postMessage({type:"builder.updateContent",data:{options:t}},"*"),window.addEventListener("message",n=>{var o,i;if(!rt(t.trustedHosts,n))return;const{data:s}=n;if(s!=null&&s.type)switch(s.type){case"builder.evaluate":{const u=s.data.text,l=s.data.arguments||[],y=s.data.id,m=new Function(u);let d,h=null;try{d=m.apply(null,l)}catch(p){h=p}h?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:y,error:h.message}},"*"):d&&typeof d.then=="function"?d.then(p=>{var w;(w=window.parent)==null||w.postMessage({type:"builder.evaluateResult",data:{id:y,result:p}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:d,id:y}},"*");break}}})))},st=({model:t,trustedHosts:e,callbacks:r})=>n=>{if(!rt(e,n))return;const{data:s}=n;if(s)switch(s.type){case"builder.configureSdk":{r.configureSdk(s.data);break}case"builder.triggerAnimation":{r.animation(s.data);break}case"builder.resetState":{const o=s.data,i=o.model,u=o==null?void 0:o.state,l=o.editType;i===t&&u&&r.stateUpdate(u,l);break}case"builder.contentUpdate":{const o=s.data,i=o.key||o.alias||o.entry||o.modelName,u=o.data,l=o.editType;i===t&&r.contentUpdate(u,l);break}}},Gt=({model:t,apiKey:e,callback:r,trustedHosts:n})=>{if(!a)return f.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};nt({modelName:t,apiKey:e});const s=st({callbacks:{contentUpdate:r,animation:()=>{},configureSdk:()=>{},stateUpdate:()=>{}},model:t,trustedHosts:n});return window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}},Jt="builder.tests",R=t=>`${Jt}.${t}`,zt=({contentId:t})=>H({name:R(t),canTrack:!0}),Xt=({contentId:t})=>v({name:R(t),canTrack:!0}),Ht=({contentId:t,value:e})=>U({name:R(t),value:e,canTrack:!0}),ot=t=>S(t.id)&&S(t.variations)&&Object.keys(t.variations).length>0,Qt=({id:t,variations:e})=>{var s;let r=0;const n=Math.random();for(const o in e){const i=(s=e[o])==null?void 0:s.testRatio;if(r+=i,n<r)return o}return t},it=t=>{const e=Qt(t);return Ht({contentId:t.id,value:e}).catch(r=>{f.error("could not store A/B test variation: ",r)}),e},at=({item:t,testGroupId:e})=>{const r=t.variations[e];return e===t.id||!r?{testVariationId:t.id,testVariationName:"Default"}:{data:r.data,testVariationId:r.id,testVariationName:r.name||(r.id===t.id?"Default":"")}},Yt=({item:t,canTrack:e})=>{if(!e)return t;if(!t)return;if(!ot(t))return t;const r=Xt({contentId:t.id})||it({variations:t.variations,id:t.id}),n=at({item:t,testGroupId:r});return{...t,...n}},Zt=async({item:t,canTrack:e})=>{if(!e||!ot(t))return t;const n=await zt({contentId:t.id})||it({variations:t.variations,id:t.id}),s=at({item:t,testGroupId:n});return{...t,...s}};const M="builder.userAttributes";function K(){let t=!0;const e=new Set;return{setUserAttributes(r){if(!a())return;const n={...this.getUserAttributes(),...r};U({name:M,value:JSON.stringify(n),canTrack:t}),e.forEach(s=>s(n))},getUserAttributes(){return a()?JSON.parse(v({name:M,canTrack:t})||"{}"):{}},subscribeOnUserAttributesChange(r,{fireImmediately:n}={}){return e.add(r),n&&r(this.getUserAttributes()),function(){e.delete(r)}},setCanTrack(r){t=r}}}let k;a()&&b==="qwik"?(window.__BUILDER_USER_ATTRIBUTES_SERVICE__||(window.__BUILDER_USER_ATTRIBUTES_SERVICE__=K()),k=window.__BUILDER_USER_ATTRIBUTES_SERVICE__):k=K();const C=k,qt=t=>{C.setUserAttributes(t)},ct=t=>{const e=S(t)?t:!0;return C.setCanTrack(e),e};function te(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:globalThis}function ee(){const t=te().fetch;if(typeof t=="undefined")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2
2
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return t}const re=ee();function T(t,e=null,r="."){return Object.keys(t).reduce((n,s)=>{const o=t[s],i=[e,s].filter(Boolean).join(r);return[typeof o=="object",o!==null,!(Array.isArray(o)&&o.length===0)].every(Boolean)?{...n,...T(o,i,r)}:{...n,[i]:o}},{})}function ut(t,e,r={}){for(const n in t){const s=t[n],o=e?e+"."+n:n;s&&typeof s=="object"&&!Array.isArray(s)&&!Object.keys(s).find(i=>i.startsWith("$"))?ut(s,o,r):r[o]=s}return r}function ne(t){const e={};for(const r in t){const n=r.split(".");let s=e;for(let o=0;o<n.length;o++){const i=n[o];o===n.length-1?s[i]=t[r]:(s[i]=s[i]||{},s=s[i])}}return e}const se="v3",W=t=>typeof t=="number"&&!isNaN(t)&&t>=0,B=t=>{const{limit:e=30,userAttributes:r,query:n,model:s,apiKey:o,enrich:i,locale:u,apiVersion:l=se,fields:y,omit:m,offset:d,cacheSeconds:h,staleCacheSeconds:p,sort:w,includeUnpublished:x,apiHost:gt}=t;if(!o)throw new Error("Missing API key");if(!["v3"].includes(l))throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);const ht=e!==1,pt=gt||"https://cdn.builder.io",c=new URL(`${pt}/api/${l}/content/${s}`);c.searchParams.set("apiKey",o),c.searchParams.set("limit",String(e)),c.searchParams.set("noTraverse",String(ht)),c.searchParams.set("includeRefs",String(!0)),u&&c.searchParams.set("locale",u);let A=r||{};if(i&&c.searchParams.set("enrich",String(i)),c.searchParams.set("omit",m!=null?m:"meta.componentsUsed"),y&&c.searchParams.set("fields",y),Number.isFinite(d)&&d>-1&&c.searchParams.set("offset",String(Math.floor(d))),typeof x=="boolean"&&c.searchParams.set("includeUnpublished",String(x)),h&&W(h)&&c.searchParams.set("cacheSeconds",String(h)),p&&W(p)&&c.searchParams.set("staleCacheSeconds",String(p)),w){const g=T({sort:w});for(const E in g)c.searchParams.set(E,JSON.stringify(g[E]))}const _={...jt(),...j(t.options||{})};A={...A,...ie(_)};const L=T(_);for(const g in L)c.searchParams.set(g,String(L[g]));if(Object.keys(A).length>0&&c.searchParams.set("userAttributes",JSON.stringify(A)),n){const g=ut({query:n});for(const E in g)c.searchParams.set(E,JSON.stringify(g[E]))}return c},oe=t=>{const e={};for(const r in t)r.startsWith("userAttributes.")&&(e[r]=t[r],delete t[r]);return e},ie=t=>{if(a()&&t.preview==="BUILDER_STUDIO"){t["userAttributes.urlPath"]=window.location.pathname,t["userAttributes.host"]=window.location.host;const e=oe(t),{userAttributes:r}=ne(e);return r}return{}},ae=t=>"results"in t;async function lt(t){var n;const e=t.locale||((n=t.userAttributes)==null?void 0:n.locale);e&&(t.locale=e,t.userAttributes={locale:e,...t.userAttributes});const r=await ft({...t,limit:1});return r&&r[0]||null}const ce=async t=>{var i,u;const e=B(t),r=(i=t.fetch)!=null?i:re,n={...t.fetchOptions,headers:{...(u=t.fetchOptions)==null?void 0:u.headers,...X()}};return await(await r(e.href,n)).json()},dt=async(t,e,r=B(t))=>{const n=ct(t.canTrack);if(r.search.includes("preview="),!n||!(a()||b==="reactNative"))return e.results;try{const s=[];for(const o of e.results)s.push(await Zt({item:o,canTrack:n}));e.results=s}catch(s){f.error("Could not process A/B tests. ",s)}return e.results};async function ft(t){const e=B(t),r=await ce(t);if(!ae(r))throw f.error("Error fetching data. ",{url:e,content:r,options:t}),r;return dt(t,r)}const ue=async t=>{var n,s,o;const e=t.path||((n=t.url)==null?void 0:n.pathname)||((s=t.userAttributes)==null?void 0:s.urlPath),r={...t,apiKey:t.apiKey,model:t.model||"page",userAttributes:{...t.userAttributes,...e?{urlPath:e}:{}},options:P(t.searchParams||((o=t.url)==null?void 0:o.searchParams)||t.options)};return{apiKey:r.apiKey,model:r.model,content:await lt(r)}};exports.TARGET=b;exports._processContentResult=dt;exports._track=et;exports.checkIsDefined=S;exports.createEditorListener=st;exports.createRegisterComponentMessage=Vt;exports.fetchBuilderProps=ue;exports.fetchEntries=ft;exports.fetchOneEntry=lt;exports.getBuilderSearchParams=P;exports.getCookieSync=v;exports.getDefaultCanTrack=ct;exports.getUserAttributes=J;exports.handleABTestingSync=Yt;exports.isBrowser=a;exports.isEditing=G;exports.isPreviewing=Nt;exports.logFetch=tt;exports.logger=f;exports.register=Ft;exports.registerAction=Mt;exports.serializeIncludingFunctions=O;exports.setClientUserAttributes=qt;exports.setEditorSettings=Kt;exports.setupBrowserForEditing=nt;exports.subscribeToEditor=Gt;exports.track=Lt;exports.userAttributesService=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-1549d863.cjs");exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.registerAction=e.registerAction;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-56a43424.cjs");exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.registerAction=e.registerAction;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
@@ -1,4 +1,4 @@
1
- import { _processContentResult as r, createRegisterComponentMessage as i, fetchBuilderProps as s, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, registerAction as E, setEditorSettings as f, subscribeToEditor as h, track as p } from "./server-entry-81390e9b.js";
1
+ import { _processContentResult as r, createRegisterComponentMessage as i, fetchBuilderProps as s, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, registerAction as E, setEditorSettings as f, subscribeToEditor as h, track as p } from "./server-entry-2aabcfc5.js";
2
2
  export {
3
3
  r as _processContentResult,
4
4
  i as createRegisterComponentMessage,
@@ -2,7 +2,7 @@ import { jsx as l, jsxs as j } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
3
  import { useState as x } from "react";
4
4
  import { Blocks as g } from "./blocks-exports.mjs";
5
- import "./server-entry-954fe774.js";
5
+ import "./server-entry-77646307.js";
6
6
  const y = (t) => t.toString();
7
7
  function B(t) {
8
8
  var a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),j=require("react"),g=require("./blocks-exports.cjs");require("./server-entry-a2bf7e77.cjs");function S(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return i.default=e,Object.freeze(i)}const v=S(j),y=e=>e.toString();function p(e){var u;const[i,r]=j.useState(()=>[]);function s(){return!!(e.grid||e.oneAtATime)}function O(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function C(){const n={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(n).filter(([l,a])=>a!==void 0))}function h(t){return`builder-accordion-title builder-accordion-title-${i.includes(t)?"open":"closed"}`}function k(t){return`builder-accordion-detail builder-accordion-detail-${i.includes(t)?"open":"closed"}`}function d(){let t=null;if(e.grid&&i.length&&document){const l=i[0];let o=document.querySelector(`.builder-accordion-title[data-index="${l}"]`);if(t=l,o){let m=o.getBoundingClientRect();for(;o=o&&o.nextElementSibling;)if(o){if(o.classList.contains("builder-accordion-detail"))continue;const f=o.getBoundingClientRect();if(f.left>m.left){const b=parseInt(o.getAttribute("data-index")||"",10);isNaN(b)||(m=f,t=b)}else break}}}return typeof t=="number"&&(t=t+1),t}function I(){const t={order:typeof d()=="number"?d():void 0,...e.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(t).filter(([n,l])=>l!==void 0))}function x(t){i.includes(t)?r(s()?[]:i.filter(n=>n!==t)):r(s()?[t]:i.concat(t))}return c.jsx("div",{className:"builder-accordion",style:O(),children:(u=e.items)==null?void 0:u.map((t,n)=>c.jsxs(v.Fragment,{children:[c.jsx("div",{className:h(n),style:{...C(),...e.grid&&{width:e.gridRowWidth,order:d()!==null?y(n):y(n+1)}},"data-index":n,onClick:l=>x(n),children:c.jsx(g.Blocks,{blocks:t.title,path:`items.${n}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),i.includes(n)?c.jsx("div",{className:k(n),style:I(),children:c.jsx(g.Blocks,{blocks:t.detail,path:`items.${n}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]},n))})}exports.default=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),j=require("react"),g=require("./blocks-exports.cjs");require("./server-entry-a1d12fab.cjs");function S(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return i.default=e,Object.freeze(i)}const v=S(j),y=e=>e.toString();function p(e){var u;const[i,r]=j.useState(()=>[]);function s(){return!!(e.grid||e.oneAtATime)}function O(){return{display:"flex",alignItems:"stretch",flexDirection:"column",...e.grid&&{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap"}}}function C(){const n={...{display:"flex",flexDirection:"column"},alignItems:"stretch",cursor:"pointer"};return Object.fromEntries(Object.entries(n).filter(([l,a])=>a!==void 0))}function h(t){return`builder-accordion-title builder-accordion-title-${i.includes(t)?"open":"closed"}`}function k(t){return`builder-accordion-detail builder-accordion-detail-${i.includes(t)?"open":"closed"}`}function d(){let t=null;if(e.grid&&i.length&&document){const l=i[0];let o=document.querySelector(`.builder-accordion-title[data-index="${l}"]`);if(t=l,o){let m=o.getBoundingClientRect();for(;o=o&&o.nextElementSibling;)if(o){if(o.classList.contains("builder-accordion-detail"))continue;const f=o.getBoundingClientRect();if(f.left>m.left){const b=parseInt(o.getAttribute("data-index")||"",10);isNaN(b)||(m=f,t=b)}else break}}}return typeof t=="number"&&(t=t+1),t}function I(){const t={order:typeof d()=="number"?d():void 0,...e.grid&&{width:"100%"}};return Object.fromEntries(Object.entries(t).filter(([n,l])=>l!==void 0))}function x(t){i.includes(t)?r(s()?[]:i.filter(n=>n!==t)):r(s()?[t]:i.concat(t))}return c.jsx("div",{className:"builder-accordion",style:O(),children:(u=e.items)==null?void 0:u.map((t,n)=>c.jsxs(v.Fragment,{children:[c.jsx("div",{className:h(n),style:{...C(),...e.grid&&{width:e.gridRowWidth,order:d()!==null?y(n):y(n+1)}},"data-index":n,onClick:l=>x(n),children:c.jsx(g.Blocks,{blocks:t.title,path:`items.${n}.title`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}),i.includes(n)?c.jsx("div",{className:k(n),style:I(),children:c.jsx(g.Blocks,{blocks:t.detail,path:`items.${n}.detail`,parent:e.builderBlock.id,context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent})}):null]},n))})}exports.default=p;
@@ -1,8 +1,8 @@
1
- import { jsx as O, Fragment as L, jsxs as it } from "react/jsx-runtime";
1
+ import { jsx as O, Fragment as W, jsxs as it } from "react/jsx-runtime";
2
2
  import { createContext as On, useEffect as pe, useState as he, useContext as Lt, useRef as jn } from "react";
3
3
  import { BuilderContext as Xt } from "./blocks-exports.mjs";
4
- import { isEditing as Ft, isBrowser as Wt, getUserAttributes as An, _track as In, checkIsDefined as st, logger as Kr, TARGET as lt, isPreviewing as Tn } from "./server-entry-954fe774.js";
5
- import { getClassPropName as Pn } from "./get-class-prop-name-2e01e11c.js";
4
+ import { isEditing as Ft, isBrowser as Wt, getUserAttributes as An, _track as In, checkIsDefined as st, logger as Kr, TARGET as lt, isPreviewing as Tn } from "./server-entry-77646307.js";
5
+ import { getClassPropName as Pn } from "./get-class-prop-name-1e9476bb.js";
6
6
  import { DynamicRenderer as bn } from "./dynamic-renderer-8b343325.js";
7
7
  const Nn = On({ registeredComponents: {} }), Rn = (e, t, n) => {
8
8
  const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, s) => o != null ? o[s] : o, e);
@@ -99,9 +99,9 @@ var b, _n = function(e) {
99
99
  function r(i, l) {
100
100
  for (var u = g, p = 1, E = 0; ; ) {
101
101
  ot.lastIndex = E;
102
- var F = ot.exec(u);
103
- if (F && F.index < i)
104
- ++p, E = F.index + F[0].length;
102
+ var L = ot.exec(u);
103
+ if (L && L.index < i)
104
+ ++p, E = L.index + L[0].length;
105
105
  else
106
106
  break;
107
107
  }
@@ -330,13 +330,13 @@ var b, _n = function(e) {
330
330
  i = g.slice(u, c), ++c, (l = R()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
331
331
  try {
332
332
  var E = new RegExp(i, l);
333
- } catch (F) {
334
- throw F instanceof SyntaxError && r(u, F.message), F;
333
+ } catch (L) {
334
+ throw L instanceof SyntaxError && r(u, L.message), L;
335
335
  }
336
336
  a(ur, E);
337
337
  }
338
338
  function H(i, l) {
339
- for (var u = c, p = 0, E = l === void 0 ? 1 / 0 : l, F = 0; F < E; ++F) {
339
+ for (var u = c, p = 0, E = l === void 0 ? 1 / 0 : l, L = 0; L < E; ++L) {
340
340
  var X = g.charCodeAt(c);
341
341
  if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= i)
342
342
  break;
@@ -488,12 +488,12 @@ var b, _n = function(e) {
488
488
  for (l.body = [], M(De); !N(Se); ) {
489
489
  var E = Q();
490
490
  if (l.body.push(E), u && i && dt(E)) {
491
- var F = p;
491
+ var L = p;
492
492
  ue(p = !0);
493
493
  }
494
494
  u = !1;
495
495
  }
496
- return p && !F && ue(!1), x(l, "BlockStatement");
496
+ return p && !L && ue(!1), x(l, "BlockStatement");
497
497
  }
498
498
  function gt(i, l) {
499
499
  return i.ua = l, M(oe), i.test = S === oe ? null : V(), M(oe), i.update = S === q ? null : V(), M(q), i.body = Q(), D.pop(), x(i, "ForStatement");
@@ -583,15 +583,15 @@ var b, _n = function(e) {
583
583
  }, E = !1;
584
584
  if (N(_e)) {
585
585
  p.value = V(!0);
586
- var F = p.kind = "init";
586
+ var L = p.kind = "init";
587
587
  } else
588
- p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (E = u = !0, F = p.kind = p.key.name, p.key = S === Me || S === et ? qe() : te(!0), S !== ne && ee(), p.value = wt(B(), !1));
588
+ p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (E = u = !0, L = p.kind = p.key.name, p.key = S === Me || S === et ? qe() : te(!0), S !== ne && ee(), p.value = wt(B(), !1));
589
589
  if (p.key.type === "Identifier" && (z || u))
590
590
  for (var X = 0; X < i.h.length; ++X) {
591
591
  var ke = i.h[X];
592
592
  if (ke.key.name === p.key.name) {
593
- var Dt = F === ke.kind || E && ke.kind === "init" || F === "init" && (ke.kind === "get" || ke.kind === "set");
594
- Dt && !z && F === "init" && ke.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
593
+ var Dt = L === ke.kind || E && ke.kind === "init" || L === "init" && (ke.kind === "get" || ke.kind === "set");
594
+ Dt && !z && L === "init" && ke.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
595
595
  }
596
596
  }
597
597
  i.h.push(p);
@@ -1036,17 +1036,17 @@ function Fn(e, t) {
1036
1036
  }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, s) {
1037
1037
  var a = e.o[e.o.length - 1];
1038
1038
  a.U = this, a.B = o, a.F = [], s != null && (s instanceof I ? a.F = Yr(e, s) : v(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
1039
- }, W(e, e.O, "apply", r), r = function(o) {
1039
+ }, F(e, e.O, "apply", r), r = function(o) {
1040
1040
  var s = e.o[e.o.length - 1];
1041
1041
  s.U = this, s.B = o, s.F = [];
1042
1042
  for (var a = 1; a < arguments.length; a++)
1043
1043
  s.F.push(arguments[a]);
1044
1044
  s.eb = !1;
1045
- }, W(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
1045
+ }, F(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
1046
1046
  return String(this);
1047
- }, W(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
1047
+ }, F(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
1048
1048
  return this.valueOf();
1049
- }, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
1049
+ }, F(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
1050
1050
  }
1051
1051
  function Wn(e, t) {
1052
1052
  function n(o) {
@@ -1080,18 +1080,18 @@ function Wn(e, t) {
1080
1080
  return !!o && !o.preventExtensions;
1081
1081
  }, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
1082
1082
  return o instanceof I && (o.preventExtensions = !0), o;
1083
- }, e.g(e.v, "preventExtensions", e.i(r, !1), y), W(e, e.v, "toString", I.prototype.toString), W(e, e.v, "toLocaleString", I.prototype.toString), W(e, e.v, "valueOf", I.prototype.valueOf), r = function(o) {
1083
+ }, e.g(e.v, "preventExtensions", e.i(r, !1), y), F(e, e.v, "toString", I.prototype.toString), F(e, e.v, "toLocaleString", I.prototype.toString), F(e, e.v, "valueOf", I.prototype.valueOf), r = function(o) {
1084
1084
  return n(this), this instanceof I ? String(o) in this.h : this.hasOwnProperty(o);
1085
- }, W(e, e.v, "hasOwnProperty", r), r = function(o) {
1085
+ }, F(e, e.v, "hasOwnProperty", r), r = function(o) {
1086
1086
  return n(this), this instanceof I ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
1087
- }, W(e, e.v, "propertyIsEnumerable", r), r = function(o) {
1087
+ }, F(e, e.v, "propertyIsEnumerable", r), r = function(o) {
1088
1088
  for (; ; ) {
1089
1089
  if (o = ae(e, o), !o)
1090
1090
  return !1;
1091
1091
  if (o === this)
1092
1092
  return !0;
1093
1093
  }
1094
- }, W(e, e.v, "isPrototypeOf", r);
1094
+ }, F(e, e.v, "isPrototypeOf", r);
1095
1095
  }
1096
1096
  function Gn(e, t) {
1097
1097
  var n = function(r) {
@@ -1118,7 +1118,7 @@ function $n(e, t) {
1118
1118
  return r = arguments.length ? de.String(r) : "", le(e) ? (this.data = r, this) : r;
1119
1119
  };
1120
1120
  for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1121
- W(e, e.J, t[n], String.prototype[t[n]]);
1121
+ F(e, e.J, t[n], String.prototype[t[n]]);
1122
1122
  n = function(r, o, s) {
1123
1123
  o = e.R(o), s = e.R(s);
1124
1124
  try {
@@ -1126,7 +1126,7 @@ function $n(e, t) {
1126
1126
  } catch (a) {
1127
1127
  v(e, e.D, "localeCompare: " + a.message);
1128
1128
  }
1129
- }, W(e, e.J, "localeCompare", n), n = function(r, o, s) {
1129
+ }, F(e, e.J, "localeCompare", n), n = function(r, o, s) {
1130
1130
  var a = String(this);
1131
1131
  if (o = o ? Number(o) : void 0, $(e, r, e.I) && (r = r.data, We(e, r, s), e.REGEXP_MODE === 2)) {
1132
1132
  if (se)
@@ -1213,32 +1213,32 @@ function Hn(e, t) {
1213
1213
  } catch (o) {
1214
1214
  v(e, e.D, o.message);
1215
1215
  }
1216
- }, W(e, e.aa, "toExponential", n), n = function(r) {
1216
+ }, F(e, e.aa, "toExponential", n), n = function(r) {
1217
1217
  try {
1218
1218
  return Number(this).toFixed(r);
1219
1219
  } catch (o) {
1220
1220
  v(e, e.D, o.message);
1221
1221
  }
1222
- }, W(e, e.aa, "toFixed", n), n = function(r) {
1222
+ }, F(e, e.aa, "toFixed", n), n = function(r) {
1223
1223
  try {
1224
1224
  return Number(this).toPrecision(r);
1225
1225
  } catch (o) {
1226
1226
  v(e, e.D, o.message);
1227
1227
  }
1228
- }, W(e, e.aa, "toPrecision", n), n = function(r) {
1228
+ }, F(e, e.aa, "toPrecision", n), n = function(r) {
1229
1229
  try {
1230
1230
  return Number(this).toString(r);
1231
1231
  } catch (o) {
1232
1232
  v(e, e.D, o.message);
1233
1233
  }
1234
- }, W(e, e.aa, "toString", n), n = function(r, o) {
1234
+ }, F(e, e.aa, "toString", n), n = function(r, o) {
1235
1235
  r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
1236
1236
  try {
1237
1237
  return Number(this).toLocaleString(r, o);
1238
1238
  } catch (s) {
1239
1239
  v(e, e.D, "toLocaleString: " + s.message);
1240
1240
  }
1241
- }, W(e, e.aa, "toLocaleString", n);
1241
+ }, F(e, e.aa, "toLocaleString", n);
1242
1242
  }
1243
1243
  function Xn(e, t) {
1244
1244
  var n = function(o, s) {
@@ -1257,7 +1257,7 @@ function Xn(e, t) {
1257
1257
  f[d] = e.R(arguments[d]);
1258
1258
  return a[o].apply(a, f);
1259
1259
  };
1260
- }(t[r]), W(e, e.$, t[r], n);
1260
+ }(t[r]), F(e, e.$, t[r], n);
1261
1261
  }
1262
1262
  function Kn(e, t) {
1263
1263
  var n = function(r, o) {
@@ -1638,7 +1638,7 @@ b.g.ac = function() {
1638
1638
  b.g.bc = function() {
1639
1639
  throw Error("Placeholder setter");
1640
1640
  };
1641
- function W(e, t, n, r) {
1641
+ function F(e, t, n, r) {
1642
1642
  e.g(t.h.prototype, n, e.i(r, !1), y);
1643
1643
  }
1644
1644
  function $e(e, t, n, r) {
@@ -3083,7 +3083,7 @@ function Fo(e) {
3083
3083
  }
3084
3084
  function Wo(e) {
3085
3085
  return pe(() => {
3086
- }, []), /* @__PURE__ */ O(L, { children: e.children });
3086
+ }, []), /* @__PURE__ */ O(W, { children: e.children });
3087
3087
  }
3088
3088
  function Go(e) {
3089
3089
  var r, o;
@@ -3114,7 +3114,7 @@ function Go(e) {
3114
3114
  return e.wrapperProps;
3115
3115
  }
3116
3116
  return pe(() => {
3117
- }, [e.wrapperProps, (o = (r = e.block) == null ? void 0 : r.component) == null ? void 0 : o.options]), /* @__PURE__ */ O(L, { children: e.Wrapper.load ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(
3117
+ }, [e.wrapperProps, (o = (r = e.block) == null ? void 0 : r.component) == null ? void 0 : o.options]), /* @__PURE__ */ O(W, { children: e.Wrapper.load ? /* @__PURE__ */ O(W, { children: /* @__PURE__ */ O(
3118
3118
  Wo,
3119
3119
  {
3120
3120
  load: e.Wrapper.load,
@@ -3156,12 +3156,15 @@ const $o = ({
3156
3156
  } : f;
3157
3157
  };
3158
3158
  function Vr(e) {
3159
- var r;
3159
+ var o;
3160
3160
  he(() => !1);
3161
3161
  const [t, n] = he(
3162
3162
  () => e.isInteractive ? Go : e.componentRef
3163
3163
  );
3164
- return /* @__PURE__ */ O(L, { children: e.componentRef ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(
3164
+ function r() {
3165
+ return e.componentRef ? e.blockChildren : [];
3166
+ }
3167
+ return /* @__PURE__ */ O(W, { children: e.componentRef ? /* @__PURE__ */ O(W, { children: /* @__PURE__ */ O(
3165
3168
  t,
3166
3169
  {
3167
3170
  ...$o({
@@ -3174,16 +3177,16 @@ function Vr(e) {
3174
3177
  isInteractive: e.isInteractive,
3175
3178
  contextValue: e.context
3176
3179
  }),
3177
- children: e.componentRef ? /* @__PURE__ */ O(L, { children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ O(
3180
+ children: (o = r()) == null ? void 0 : o.map((s) => /* @__PURE__ */ O(
3178
3181
  ht,
3179
3182
  {
3180
- block: o,
3183
+ block: s,
3181
3184
  context: e.context,
3182
3185
  registeredComponents: e.registeredComponents,
3183
3186
  linkComponent: e.linkComponent
3184
3187
  },
3185
- o.id
3186
- )) }) : null
3188
+ s.id
3189
+ ))
3187
3190
  }
3188
3191
  ) }) : null });
3189
3192
  }
@@ -3330,7 +3333,7 @@ function Xr(e) {
3330
3333
  k
3331
3334
  ].join(" ");
3332
3335
  }
3333
- return /* @__PURE__ */ O(L, { children: n() && t() ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(
3336
+ return /* @__PURE__ */ O(W, { children: n() && t() ? /* @__PURE__ */ O(W, { children: /* @__PURE__ */ O(
3334
3337
  Ho,
3335
3338
  {
3336
3339
  id: "builderio-block",
@@ -3343,7 +3346,7 @@ function Xo(e) {
3343
3346
  he(() => !1);
3344
3347
  const [t, n] = he(() => !1);
3345
3348
  return Lt(Xt), pe(() => {
3346
- }, []), /* @__PURE__ */ O(L, { children: t ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(Xr, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(Xr, { block: e.block, context: e.context }) }) });
3349
+ }, []), /* @__PURE__ */ O(W, { children: t ? /* @__PURE__ */ O(W, { children: /* @__PURE__ */ O(W, { children: /* @__PURE__ */ O(Xr, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ O(W, { children: /* @__PURE__ */ O(Xr, { block: e.block, context: e.context }) }) });
3347
3350
  }
3348
3351
  function ht(e) {
3349
3352
  var A, T, G, H;
@@ -3426,7 +3429,7 @@ function ht(e) {
3426
3429
  );
3427
3430
  }, []), pe(() => {
3428
3431
  n.update = !0;
3429
- }), /* @__PURE__ */ O(L, { children: f() ? /* @__PURE__ */ it(L, { children: [
3432
+ }), /* @__PURE__ */ O(W, { children: f() ? /* @__PURE__ */ it(W, { children: [
3430
3433
  /* @__PURE__ */ O(
3431
3434
  Xo,
3432
3435
  {
@@ -3435,7 +3438,7 @@ function ht(e) {
3435
3438
  id: e.block.id
3436
3439
  }
3437
3440
  ),
3438
- (A = s == null ? void 0 : s()) != null && A.noWrap ? t() ? /* @__PURE__ */ O(L, { children: (H = t()) == null ? void 0 : H.map((P, j) => /* @__PURE__ */ O(
3441
+ (A = s == null ? void 0 : s()) != null && A.noWrap ? t() ? /* @__PURE__ */ O(W, { children: (H = t()) == null ? void 0 : H.map((P, j) => /* @__PURE__ */ O(
3439
3442
  Hr,
3440
3443
  {
3441
3444
  repeatContext: P.context,
@@ -3457,7 +3460,7 @@ function ht(e) {
3457
3460
  includeBlockProps: w().includeBlockProps,
3458
3461
  isInteractive: w().isInteractive
3459
3462
  }
3460
- ) : /* @__PURE__ */ O(L, { children: t() ? /* @__PURE__ */ O(L, { children: (G = t()) == null ? void 0 : G.map((P, j) => /* @__PURE__ */ O(
3463
+ ) : /* @__PURE__ */ O(W, { children: t() ? /* @__PURE__ */ O(W, { children: (G = t()) == null ? void 0 : G.map((P, j) => /* @__PURE__ */ O(
3461
3464
  Hr,
3462
3465
  {
3463
3466
  repeatContext: P.context,
@@ -3547,7 +3550,7 @@ function Ko(e) {
3547
3550
  }
3548
3551
  return pe(() => {
3549
3552
  }, []), pe(() => {
3550
- }, [e.blocks]), /* @__PURE__ */ it(L, { children: [
3553
+ }, [e.blocks]), /* @__PURE__ */ it(W, { children: [
3551
3554
  /* @__PURE__ */ O("style", { children: `.props-blocks-wrapper-b46bf284 {
3552
3555
  display: flex;
3553
3556
  flex-direction: column;
@@ -3585,7 +3588,7 @@ function Jo(e) {
3585
3588
  BlocksWrapper: ((o = e.context) == null ? void 0 : o.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
3586
3589
  children: [
3587
3590
  e.children,
3588
- e.blocks ? /* @__PURE__ */ O(L, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ O(
3591
+ e.blocks ? /* @__PURE__ */ O(W, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ O(
3589
3592
  ht,
3590
3593
  {
3591
3594
  block: a,