@builder.io/sdk-react-nextjs 0.14.1 → 0.14.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/{USE_CLIENT_BUNDLE-51815064.js → USE_CLIENT_BUNDLE-1270c8f4.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-62a178e1.cjs → browser/USE_CLIENT_BUNDLE-c1f06a46.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-f0e5fdef.cjs → browser/USE_SERVER_BUNDLE-24e8f107.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-7191faac.js → browser/USE_SERVER_BUNDLE-99e0334d.js} +1 -1
- package/lib/browser/{bundle-cc12d1bc.js → bundle-333e93b9.js} +22 -20
- package/lib/browser/{bundle-9c5f5cde.cjs → bundle-bebe179f.cjs} +3 -3
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-d012a153.js → edge/USE_CLIENT_BUNDLE-91b3973b.js} +2 -2
- package/lib/{browser/USE_CLIENT_BUNDLE-83c9a885.cjs → edge/USE_CLIENT_BUNDLE-e0cb789c.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-95968708.cjs → edge/USE_SERVER_BUNDLE-28ff24f9.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-a4460138.js → edge/USE_SERVER_BUNDLE-f29a4a48.js} +1 -1
- package/lib/edge/{bundle-cc82bd60.js → bundle-49ee510b.js} +22 -20
- package/lib/edge/{bundle-a08cccde.cjs → bundle-8abf9251.cjs} +3 -3
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-366693e9.cjs → node/USE_CLIENT_BUNDLE-516849e4.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-c1fb11f0.js → node/USE_CLIENT_BUNDLE-6ecc05ac.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-fb3ef1bb.cjs → node/USE_SERVER_BUNDLE-6860cf7c.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-60b2536b.js → node/USE_SERVER_BUNDLE-6a09d70e.js} +1 -1
- package/lib/node/{bundle-72550faf.js → bundle-35759433.js} +7 -5
- package/lib/node/{bundle-b5a3f37b.cjs → bundle-e917fcc7.cjs} +3 -3
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +4 -4
- package/types/cjs/blocks/button/index.d.ts +1 -0
- package/types/cjs/blocks/columns/index.d.ts +1 -0
- package/types/cjs/blocks/custom-code/index.d.ts +1 -0
- package/types/cjs/blocks/embed/index.d.ts +1 -0
- package/types/cjs/blocks/form/form/index.d.ts +1 -0
- package/types/cjs/blocks/form/input/index.d.ts +1 -0
- package/types/cjs/blocks/form/select/index.d.ts +1 -0
- package/types/cjs/blocks/form/submit-button/index.d.ts +1 -0
- package/types/cjs/blocks/fragment/index.d.ts +1 -0
- package/types/cjs/blocks/image/index.d.ts +1 -0
- package/types/cjs/blocks/img/index.d.ts +1 -0
- package/types/cjs/blocks/section/index.d.ts +1 -0
- package/types/cjs/blocks/slot/index.d.ts +1 -0
- package/types/cjs/blocks/symbol/index.d.ts +1 -0
- package/types/cjs/blocks/text/index.d.ts +1 -0
- package/types/cjs/blocks/video/index.d.ts +1 -0
- package/types/cjs/components/blocks/index.d.ts +1 -0
- package/types/cjs/components/content-variants/index.d.ts +1 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/get-content/types.d.ts +1 -1
- package/types/cjs/index-helpers/blocks-exports.d.ts +10 -11
- package/types/esm/blocks/button/index.d.ts +1 -0
- package/types/esm/blocks/columns/index.d.ts +1 -0
- package/types/esm/blocks/custom-code/index.d.ts +1 -0
- package/types/esm/blocks/embed/index.d.ts +1 -0
- package/types/esm/blocks/form/form/index.d.ts +1 -0
- package/types/esm/blocks/form/input/index.d.ts +1 -0
- package/types/esm/blocks/form/select/index.d.ts +1 -0
- package/types/esm/blocks/form/submit-button/index.d.ts +1 -0
- package/types/esm/blocks/fragment/index.d.ts +1 -0
- package/types/esm/blocks/image/index.d.ts +1 -0
- package/types/esm/blocks/img/index.d.ts +1 -0
- package/types/esm/blocks/section/index.d.ts +1 -0
- package/types/esm/blocks/slot/index.d.ts +1 -0
- package/types/esm/blocks/symbol/index.d.ts +1 -0
- package/types/esm/blocks/text/index.d.ts +1 -0
- package/types/esm/blocks/video/index.d.ts +1 -0
- package/types/esm/components/blocks/index.d.ts +1 -0
- package/types/esm/components/content-variants/index.d.ts +1 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/get-content/types.d.ts +1 -1
- package/types/esm/index-helpers/blocks-exports.d.ts +10 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i, Fragment as h, jsxs as E } from "react/jsx-runtime";
|
|
3
|
-
import { i as p, g as H, a as $, b as O, c as w, d as R, e as ee, f as P, h as V, _ as D, j as te, l as ne, k as ie, t as ae, m as U, n as ce, o as re, r as le, s as oe, p as de, q as se, u as ue } from "./bundle-
|
|
3
|
+
import { i as p, g as H, a as $, b as O, c as w, d as R, e as ee, f as P, h as V, _ as D, j as te, l as ne, k as ie, t as ae, m as U, n as ce, o as re, r as le, s as oe, p as de, q as se, u as ue } from "./bundle-333e93b9.js";
|
|
4
4
|
import { useRef as T, useState as x, useEffect as b, createContext as me, createElement as ge } from "react";
|
|
5
|
-
import { p as he } from "./USE_SERVER_BUNDLE-
|
|
5
|
+
import { p as he } from "./USE_SERVER_BUNDLE-99e0334d.js";
|
|
6
6
|
import { useRouter as be } from "next/navigation";
|
|
7
7
|
function J(e) {
|
|
8
8
|
return /* @__PURE__ */ i(h, { children: p(e.TagName) ? /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ i(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-bebe179f.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-24e8f107.cjs"),V=require("next/navigation");function C(e){return t.jsx(t.Fragment,{children:a.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}function H(e){return t.jsx(C,{attributes:{...e.attributes,[a.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[a.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(C,{TagName:e.Wrapper,attributes:a.getBlockProperties({block:e.block,context:e.context}),actionAttributes:a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function $(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}function O(e){function l(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function x(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:l()+" props-blocks-wrapper-7354e098","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>x(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7354e098 {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: stretch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use server";"use strict";const n=require("./bundle-
|
|
1
|
+
"use server";"use strict";const n=require("./bundle-bebe179f.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, Fragment as S, jsxs as R } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { LRUCache as Ae } from "lru-cache";
|
|
4
|
+
import { I as Be, B as Ve, a as We, D as Oe, C as $e, E as Fe, b as Ne, V as Le, c as Ue, F as _e, d as De, S as je, e as Me } from "./USE_CLIENT_BUNDLE-1270c8f4.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
const He = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), to = (e) => typeof e == "string" && He.has(e.toLowerCase()), T = "rsc", D = () => {
|
|
7
7
|
switch (T) {
|
|
@@ -519,7 +519,7 @@ const gt = ({
|
|
|
519
519
|
};
|
|
520
520
|
function Y(e) {
|
|
521
521
|
var n;
|
|
522
|
-
const t = e.isInteractive ?
|
|
522
|
+
const t = e.isInteractive ? Be : e.componentRef;
|
|
523
523
|
return /* @__PURE__ */ l(S, { children: e.componentRef ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(
|
|
524
524
|
t,
|
|
525
525
|
{
|
|
@@ -641,7 +641,7 @@ function $(e) {
|
|
|
641
641
|
},
|
|
642
642
|
h
|
|
643
643
|
)) }) : /* @__PURE__ */ l(S, { children: /* @__PURE__ */ R(
|
|
644
|
-
|
|
644
|
+
Ve,
|
|
645
645
|
{
|
|
646
646
|
Wrapper: i(),
|
|
647
647
|
block: o(),
|
|
@@ -680,7 +680,7 @@ function $(e) {
|
|
|
680
680
|
function H(e) {
|
|
681
681
|
var t, n, o;
|
|
682
682
|
return /* @__PURE__ */ l(
|
|
683
|
-
|
|
683
|
+
We,
|
|
684
684
|
{
|
|
685
685
|
blocks: e.blocks,
|
|
686
686
|
parent: e.parent,
|
|
@@ -795,7 +795,7 @@ function yt(e) {
|
|
|
795
795
|
children: [
|
|
796
796
|
/* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(O, { styles: f() }) }),
|
|
797
797
|
(h = e.columns) == null ? void 0 : h.map((u, d) => /* @__PURE__ */ l(
|
|
798
|
-
|
|
798
|
+
Oe,
|
|
799
799
|
{
|
|
800
800
|
TagName: u.link ? e.builderLinkComponent || "a" : "div",
|
|
801
801
|
actionAttributes: {},
|
|
@@ -1621,31 +1621,31 @@ const jt = {
|
|
|
1621
1621
|
advanced: !0
|
|
1622
1622
|
}]
|
|
1623
1623
|
}, qt = () => [{
|
|
1624
|
-
component:
|
|
1624
|
+
component: $e,
|
|
1625
1625
|
...jt
|
|
1626
1626
|
}, {
|
|
1627
|
-
component:
|
|
1627
|
+
component: Fe,
|
|
1628
1628
|
...Mt
|
|
1629
1629
|
}, {
|
|
1630
|
-
component:
|
|
1630
|
+
component: Ne,
|
|
1631
1631
|
...Kt
|
|
1632
1632
|
}, {
|
|
1633
|
-
component:
|
|
1633
|
+
component: Le,
|
|
1634
1634
|
...zt
|
|
1635
1635
|
}], Q = () => [{
|
|
1636
|
-
component:
|
|
1636
|
+
component: Ue,
|
|
1637
1637
|
...Vt
|
|
1638
1638
|
}, {
|
|
1639
1639
|
component: yt,
|
|
1640
1640
|
...Wt
|
|
1641
1641
|
}, {
|
|
1642
|
-
component:
|
|
1642
|
+
component: _e,
|
|
1643
1643
|
...Ot
|
|
1644
1644
|
}, {
|
|
1645
|
-
component:
|
|
1645
|
+
component: De,
|
|
1646
1646
|
...$t
|
|
1647
1647
|
}, {
|
|
1648
|
-
component:
|
|
1648
|
+
component: je,
|
|
1649
1649
|
...Ft
|
|
1650
1650
|
}, {
|
|
1651
1651
|
component: Lt,
|
|
@@ -1794,7 +1794,7 @@ const on = (e) => {
|
|
|
1794
1794
|
return n || x.warn("No previewed ID found in search params."), n;
|
|
1795
1795
|
};
|
|
1796
1796
|
function rn() {
|
|
1797
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
1797
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Ae({
|
|
1798
1798
|
max: 500,
|
|
1799
1799
|
// how long to live in ms
|
|
1800
1800
|
ttl: 1e3 * 60 * 5
|
|
@@ -2132,7 +2132,7 @@ function Pe(e, t) {
|
|
|
2132
2132
|
const n = new URL(t.origin), o = n.hostname;
|
|
2133
2133
|
return (e || Vn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
|
|
2134
2134
|
}
|
|
2135
|
-
const Wn = "0.14.
|
|
2135
|
+
const Wn = "0.14.3", ne = {};
|
|
2136
2136
|
function On(e, t) {
|
|
2137
2137
|
let n = ne[e];
|
|
2138
2138
|
if (n || (n = ne[e] = []), n.push(t), k()) {
|
|
@@ -2463,7 +2463,7 @@ function re(e) {
|
|
|
2463
2463
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2464
2464
|
};
|
|
2465
2465
|
return /* @__PURE__ */ R(
|
|
2466
|
-
|
|
2466
|
+
Me,
|
|
2467
2467
|
{
|
|
2468
2468
|
content: e.content,
|
|
2469
2469
|
data: e.data,
|
|
@@ -2640,7 +2640,9 @@ async function Yn(e) {
|
|
|
2640
2640
|
},
|
|
2641
2641
|
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
2642
2642
|
content: n,
|
|
2643
|
-
linkComponent: e.builderLinkComponent
|
|
2643
|
+
linkComponent: e.builderLinkComponent,
|
|
2644
|
+
blocksWrapper: "div",
|
|
2645
|
+
contentWrapper: "div"
|
|
2644
2646
|
}
|
|
2645
2647
|
) });
|
|
2646
2648
|
}
|
|
@@ -2678,7 +2680,7 @@ const ho = async (e) => {
|
|
|
2678
2680
|
export {
|
|
2679
2681
|
so as A,
|
|
2680
2682
|
H as B,
|
|
2681
|
-
|
|
2683
|
+
yt as C,
|
|
2682
2684
|
uo as D,
|
|
2683
2685
|
ho as E,
|
|
2684
2686
|
gn as F,
|
|
@@ -2708,7 +2710,7 @@ export {
|
|
|
2708
2710
|
mo as t,
|
|
2709
2711
|
ln as u,
|
|
2710
2712
|
rn as v,
|
|
2711
|
-
|
|
2713
|
+
qn as w,
|
|
2712
2714
|
On as x,
|
|
2713
2715
|
fo as y,
|
|
2714
2716
|
xe as z
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime");require("react");const
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime");require("react");const De=require("lru-cache"),v=require("./USE_CLIENT_BUNDLE-c1f06a46.cjs");require("next/navigation");const Me=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),He=e=>typeof e=="string"&&Me.has(e.toLowerCase()),E="rsc",F=()=>{switch(E){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}};function Ke(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const P="[Builder.io]: ",k={log:(...e)=>console.log(P,...e),error:(...e)=>console.error(P,...e),warn:(...e)=>console.warn(P,...e),debug:(...e)=>console.debug(P,...e)};function x(){return typeof window<"u"&&typeof document<"u"}function qe(){return x()&&window.self!==window.top}function W(){return qe()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const ze=()=>{if(x()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},Je=()=>typeof navigator=="object"&&navigator.userAgent||"",ce=()=>{const e=Je(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||E==="reactNative"}},n=e.match(/Tablet|iPad/i),o=ze();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},Ye=({builder:e,context:t,event:n,state:o})=>Object.entries({state:o,Builder:e,builder:e,context:t,event:n}),Ge=()=>({isEditing:W(),isBrowser:x(),isServer:!x(),getUserAttributes:()=>ce()}),Qe=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,J=({code:e,builder:t,context:n,event:o,localState:i,rootSetState:r,rootState:a})=>{const s=Ye({builder:t,context:n,event:o,state:le({rootState:a,localState:i,rootSetState:r})});return new Function(...s.map(([l])=>l),e)(...s.map(([,l])=>l))};function le({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(o,i)=>{if(t&&i in t)return t[i];const r=o[i];return typeof r=="object"?le({rootState:r,localState:void 0,rootSetState:n?a=>{o[i]=a,n(o)}:void 0}):r},set:(o,i,r)=>{if(t&&i in t)throw new Error("Writing to local state is not allowed as it is read-only.");return o[i]=r,n==null||n(o),!0}})}const w=e=>e!=null;function Xe(){var e;return typeof process<"u"&&w((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Ze=()=>{var o;if(!Xe())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return e&&t&&!n?(k.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},et=e=>(x()||Ze(),J(e));function O({code:e,context:t,localState:n,rootState:o,rootSetState:i,event:r,isExpression:a=!0}){if(e===""){k.warn("Skipping evaluation of empty code block.");return}const s={code:Qe(e,{isExpression:a}),builder:Ge(),context:t,event:r,rootSetState:i,rootState:o,localState:n};try{return et(s)}catch(l){k.error("Failed code evaluation: "+l.message,{code:e});return}}const R=e=>JSON.parse(JSON.stringify(e)),tt=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((i,r,a)=>Object(i[r])===i[r]?i[r]:i[r]=Math.abs(Number(o[a+1]))>>0===+o[a+1]?[]:{},e)[o[o.length-1]]=n,e};const nt=({block:e,context:t,localState:n,rootState:o,rootSetState:i})=>{if(!e.bindings)return e;const r=R(e),a={...r,properties:{...r.properties},actions:{...r.actions}};for(const s in e.bindings){const l=e.bindings[s],m=O({code:l,localState:n,rootState:o,rootSetState:i,context:t});tt(a,s,m)}return a};function V({block:e,context:t,shouldEvaluateBindings:n,localState:o,rootState:i,rootSetState:r}){const a=e;return n?nt({block:a,localState:o,rootState:i,rootSetState:r,context:t}):a}const ot=({block:e,context:t,registeredComponents:n})=>{var r;const o=(r=V({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!o)return null;const i=n[o];if(i)return i;console.warn(`
|
|
2
2
|
Could not find a registered component named "${o}".
|
|
3
3
|
If you registered it, is the file that registered it imported by the file that needs to render it?`)},it=({block:e,context:t})=>{const{repeat:n,...o}=e;if(!(n!=null&&n.collection))return;const i=O({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(i))return;const r=n.collection.split(".").pop(),a=n.itemName||(r?r+"Item":"item");return i.map((l,m)=>({context:{...t,localState:{...t.localState,$index:m,$item:l,[a]:l,[`$${a}Index`]:m}},block:o}))},de={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Y=(e,t=de)=>`@media (max-width: ${t[e].max}px)`,ue=({small:e,medium:t})=>{const n=R(de);if(!e||!t)return n;const o=Math.floor(e/2);n.small={max:e,min:o,default:o+1};const i=n.small.max+1;n.medium={max:t,min:i,default:i+1};const r=n.medium.max+1;return n.large={max:2e3,min:r,default:r+1},n},rt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),me=e=>Object.entries(e).map(([n,o])=>{if(typeof o=="string")return`${rt(n)}: ${o};`}).filter(w),at=e=>me(e).join(`
|
|
4
4
|
`),_=({mediaQuery:e,className:t,styles:n})=>{const o=`.${t} {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
)`,on=({contentId:e,variationId:t})=>`window.${we}(
|
|
132
132
|
"${t}", "${e}", ${Ie}
|
|
133
133
|
)`;function M(e){return c.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id||""})}const rn=e=>{const t=e.get("preview"),n=e.get("overrides."+t);return n||k.warn("No previewed ID found in search params."),n};function Ee(){globalThis._BUILDER_PREVIEW_LRU_CACHE||(globalThis._BUILDER_PREVIEW_LRU_CACHE=new De.LRUCache({max:500,ttl:1e3*60*5}))}function an(e){Ee();const t=rn(e);return typeof t=="string"?globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t):void 0}function sn(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function cn(){const e=sn().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
134
|
-
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Te=cn();function B(e,t=null,n="."){return Object.keys(e).reduce((o,i)=>{const r=e[i],a=[t,i].filter(Boolean).join(n);return[typeof r=="object",r!==null,!(Array.isArray(r)&&r.length===0)].every(Boolean)?{...o,...B(r,a,n)}:{...o,[a]:r}},{})}const ln="v3",Z="builder.",dn="options.",un=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},K=e=>{if(!e)return{};const t=Re(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(Z)){const i=o.replace(Z,"").replace(dn,"");n[i]=t[o]}}),n},mn=()=>{if(!x())return{};const e=new URLSearchParams(window.location.search);return K(e)},Re=e=>e instanceof URLSearchParams?un(e):e,ee=e=>typeof e=="number"&&!isNaN(e)&&e>=0,q=e=>{const{limit:t=30,userAttributes:n,query:o,model:i,apiKey:r,enrich:a,locale:s,apiVersion:l=ln,fields:m,omit:b,offset:g,cacheSeconds:f,staleCacheSeconds:h,sort:u,includeUnpublished:d}=e;if(!r)throw new Error("Missing API key");if(!["v3"].includes(l))throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);const y=t!==1,p=new URL(`https://cdn.builder.io/api/${l}/content/${i}`);if(p.searchParams.set("apiKey",r),p.searchParams.set("limit",String(t)),p.searchParams.set("noTraverse",String(y)),p.searchParams.set("includeRefs",String(!0)),s&&p.searchParams.set("locale",s),a&&p.searchParams.set("enrich",String(a)),p.searchParams.set("omit",b||"meta.componentsUsed"),m&&p.searchParams.set("fields",m),Number.isFinite(g)&&g>-1&&p.searchParams.set("offset",String(Math.floor(g))),typeof d=="boolean"&&p.searchParams.set("includeUnpublished",String(d)),f&&ee(f)&&p.searchParams.set("cacheSeconds",String(f)),h&&ee(h)&&p.searchParams.set("staleCacheSeconds",String(h)),u){const S=B({sort:u});for(const I in S)p.searchParams.set(I,JSON.stringify(S[I]))}const C={...mn(),...Re(e.options||{})},T=B(C);for(const S in T)p.searchParams.set(S,String(T[S]));if(n&&p.searchParams.set("userAttributes",JSON.stringify(n)),o){const S=B({query:o});for(const I in S)p.searchParams.set(I,JSON.stringify(S[I]))}return p},fn=e=>"results"in e;async function z(e){const t=await Ae({...e,limit:1});return t&&t[0]||null}const hn=async e=>{const t=q(e);return await(await Te(t.href)).json()},Pe=async(e,t,n=q(e))=>{const o=j(e.canTrack);if(n.search.includes("preview=")){const r=[];for(const a of t.results){const s=an(n.searchParams);r.push(s||a)}t.results=r}if(!o||!(x()||E==="reactNative"))return t.results;try{const r=[];for(const a of t.results)r.push(await Bt({item:a,canTrack:o}));t.results=r}catch(r){k.error("Could not process A/B tests. ",r)}return t.results};async function Ae(e){try{const t=q(e),n=await hn(e);return fn(n)?Pe(e,n):(k.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return k.error("Error fetching data. ",t),null}}function pn(){return!x()||W()?!1:location.search.indexOf("builder.preview=")!==-1}function gn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Be(){return gn().replace(/-/g,"")}const Ve="builderSessionId",bn=async({canTrack:e})=>{if(!e)return;const t=await be({name:Ve,canTrack:e});if(w(t))return t;{const n=yn();return xn({id:n,canTrack:e}),n}},yn=()=>Be(),xn=({id:e,canTrack:t})=>ye({name:Ve,value:e,canTrack:t}),je=()=>x()&&typeof localStorage<"u"?localStorage:void 0,Sn=({key:e,canTrack:t})=>{var n;try{return t?(n=je())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},kn=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=je())==null||o.setItem(e,n))}catch(i){console.debug("[LocalStorage] SET error: ",i)}},Fe="builderVisitorId",vn=({canTrack:e})=>{if(!e)return;const t=Sn({key:Fe,canTrack:e});if(w(t))return t;{const n=Cn();return wn({id:n,canTrack:e}),n}},Cn=()=>Be(),wn=({id:e,canTrack:t})=>kn({key:Fe,value:e,canTrack:t}),In=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await bn({canTrack:e}),n=vn({canTrack:e});return{sessionId:t,visitorId:n}},En=async({type:e,canTrack:t,apiKey:n,metadata:o,...i})=>({type:e,data:{...i,metadata:{url:location.href,...o},...await In({canTrack:t}),userAttributes:ce(),ownerId:n}});async function We(e){if(!e.apiKey){k.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!W()&&(x()||E==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await En(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Tn=e=>We({...e,canTrack:!0});function te(e){return Math.round(e*1e3)/1e3}const Rn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},Pn=e=>Rn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ne=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,i=e.clientY-n.top,r=te(o/n.width),a=te(i/n.height);return{x:r,y:a}},An=e=>{const t=e.target,n=t&&Pn(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?ne({event:e,target:t}):void 0,builderTargetOffset:n?ne({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},Bn=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Oe(e,t){const n=new URL(t.origin),o=n.hostname;return(e||Bn).findIndex(i=>i.startsWith("*.")?o.endsWith(i.slice(1)):i===o)>-1}const Vn="0.14.
|
|
134
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Te=cn();function B(e,t=null,n="."){return Object.keys(e).reduce((o,i)=>{const r=e[i],a=[t,i].filter(Boolean).join(n);return[typeof r=="object",r!==null,!(Array.isArray(r)&&r.length===0)].every(Boolean)?{...o,...B(r,a,n)}:{...o,[a]:r}},{})}const ln="v3",Z="builder.",dn="options.",un=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},K=e=>{if(!e)return{};const t=Re(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(Z)){const i=o.replace(Z,"").replace(dn,"");n[i]=t[o]}}),n},mn=()=>{if(!x())return{};const e=new URLSearchParams(window.location.search);return K(e)},Re=e=>e instanceof URLSearchParams?un(e):e,ee=e=>typeof e=="number"&&!isNaN(e)&&e>=0,q=e=>{const{limit:t=30,userAttributes:n,query:o,model:i,apiKey:r,enrich:a,locale:s,apiVersion:l=ln,fields:m,omit:b,offset:g,cacheSeconds:f,staleCacheSeconds:h,sort:u,includeUnpublished:d}=e;if(!r)throw new Error("Missing API key");if(!["v3"].includes(l))throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);const y=t!==1,p=new URL(`https://cdn.builder.io/api/${l}/content/${i}`);if(p.searchParams.set("apiKey",r),p.searchParams.set("limit",String(t)),p.searchParams.set("noTraverse",String(y)),p.searchParams.set("includeRefs",String(!0)),s&&p.searchParams.set("locale",s),a&&p.searchParams.set("enrich",String(a)),p.searchParams.set("omit",b||"meta.componentsUsed"),m&&p.searchParams.set("fields",m),Number.isFinite(g)&&g>-1&&p.searchParams.set("offset",String(Math.floor(g))),typeof d=="boolean"&&p.searchParams.set("includeUnpublished",String(d)),f&&ee(f)&&p.searchParams.set("cacheSeconds",String(f)),h&&ee(h)&&p.searchParams.set("staleCacheSeconds",String(h)),u){const S=B({sort:u});for(const I in S)p.searchParams.set(I,JSON.stringify(S[I]))}const C={...mn(),...Re(e.options||{})},T=B(C);for(const S in T)p.searchParams.set(S,String(T[S]));if(n&&p.searchParams.set("userAttributes",JSON.stringify(n)),o){const S=B({query:o});for(const I in S)p.searchParams.set(I,JSON.stringify(S[I]))}return p},fn=e=>"results"in e;async function z(e){const t=await Ae({...e,limit:1});return t&&t[0]||null}const hn=async e=>{const t=q(e);return await(await Te(t.href)).json()},Pe=async(e,t,n=q(e))=>{const o=j(e.canTrack);if(n.search.includes("preview=")){const r=[];for(const a of t.results){const s=an(n.searchParams);r.push(s||a)}t.results=r}if(!o||!(x()||E==="reactNative"))return t.results;try{const r=[];for(const a of t.results)r.push(await Bt({item:a,canTrack:o}));t.results=r}catch(r){k.error("Could not process A/B tests. ",r)}return t.results};async function Ae(e){try{const t=q(e),n=await hn(e);return fn(n)?Pe(e,n):(k.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return k.error("Error fetching data. ",t),null}}function pn(){return!x()||W()?!1:location.search.indexOf("builder.preview=")!==-1}function gn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Be(){return gn().replace(/-/g,"")}const Ve="builderSessionId",bn=async({canTrack:e})=>{if(!e)return;const t=await be({name:Ve,canTrack:e});if(w(t))return t;{const n=yn();return xn({id:n,canTrack:e}),n}},yn=()=>Be(),xn=({id:e,canTrack:t})=>ye({name:Ve,value:e,canTrack:t}),je=()=>x()&&typeof localStorage<"u"?localStorage:void 0,Sn=({key:e,canTrack:t})=>{var n;try{return t?(n=je())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},kn=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=je())==null||o.setItem(e,n))}catch(i){console.debug("[LocalStorage] SET error: ",i)}},Fe="builderVisitorId",vn=({canTrack:e})=>{if(!e)return;const t=Sn({key:Fe,canTrack:e});if(w(t))return t;{const n=Cn();return wn({id:n,canTrack:e}),n}},Cn=()=>Be(),wn=({id:e,canTrack:t})=>kn({key:Fe,value:e,canTrack:t}),In=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await bn({canTrack:e}),n=vn({canTrack:e});return{sessionId:t,visitorId:n}},En=async({type:e,canTrack:t,apiKey:n,metadata:o,...i})=>({type:e,data:{...i,metadata:{url:location.href,...o},...await In({canTrack:t}),userAttributes:ce(),ownerId:n}});async function We(e){if(!e.apiKey){k.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!W()&&(x()||E==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await En(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Tn=e=>We({...e,canTrack:!0});function te(e){return Math.round(e*1e3)/1e3}const Rn=(e,t,n=!0)=>{if(!(e instanceof HTMLElement))return null;let o=n?e:e.parentElement;do{if(!o)return null;if(t(o))return o}while(o=o.parentElement);return null},Pn=e=>Rn(e,t=>{const n=t.getAttribute("builder-id")||t.id;return(n==null?void 0:n.indexOf("builder-"))===0}),ne=({event:e,target:t})=>{const n=t.getBoundingClientRect(),o=e.clientX-n.left,i=e.clientY-n.top,r=te(o/n.width),a=te(i/n.height);return{x:r,y:a}},An=e=>{const t=e.target,n=t&&Pn(t),o=(n==null?void 0:n.getAttribute("builder-id"))||(n==null?void 0:n.id);return{targetBuilderElement:o||void 0,metadata:{targetOffset:t?ne({event:e,target:t}):void 0,builderTargetOffset:n?ne({event:e,target:n}):void 0,builderElementIndex:n&&o?[].slice.call(document.getElementsByClassName(o)).indexOf(n):void 0}}},Bn=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function Oe(e,t){const n=new URL(t.origin),o=n.hostname;return(e||Bn).findIndex(i=>i.startsWith("*.")?o.endsWith(i.slice(1)):i===o)>-1}const Vn="0.14.3",oe={};function $e(e,t){let n=oe[e];if(n||(n=oe[e]=[]),n.push(t),x()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(i){console.debug("Could not postmessage",i)}}}const jn=()=>{$e("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let ie=!1;const Ne=(e={})=>{var t,n;ie||(ie=!0,x()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:E,version:Vn,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",o=>{var r,a;if(!Oe(e.trustedHosts,o))return;const{data:i}=o;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const s=i.data.text,l=i.data.arguments||[],m=i.data.id,b=new Function(s);let g,f=null;try{g=b.apply(null,l)}catch(h){f=h}f?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:m,error:f.message}},"*"):g&&typeof g.then=="function"?g.then(h=>{var u;(u=window.parent)==null||u.postMessage({type:"builder.evaluateResult",data:{id:m,result:h}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:g,id:m}},"*");break}}})))},Le=({model:e,trustedHosts:t,callbacks:n})=>o=>{if(!Oe(t,o))return;const{data:i}=o;if(i)switch(i.type){case"builder.configureSdk":{n.configureSdk(i.data);break}case"builder.triggerAnimation":{n.animation(i.data);break}case"builder.contentUpdate":{const r=i.data,a=r.key||r.alias||r.entry||r.modelName,s=r.data;a===e&&n.contentUpdate(s);break}}},Fn=(e,t,n)=>{if(!x)return k.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};Ne();const o=Le({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}};function re(e,...t){const n=Object(e);for(let o=1;o<arguments.length;o++){const i=arguments[o];if(i!=null)for(const r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n}const Wn=e=>e?e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`):"";function On(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function $n(e,t){const n=Nn(e),o=getComputedStyle(t),i=e.steps[0].styles,r=e.steps[e.steps.length-1].styles,a=[i,r];for(const s of a)for(const l of n)l in s||(s[l]=o[l])}function Nn(e){const t=[];for(const n of e.steps)for(const o in n.styles)t.indexOf(o)===-1&&t.push(o);return t}function Ln(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){On(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{$n(e,n),n.style.transition="none",n.style.transitionDelay="0",re(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${Wn(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),re(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}const Un=e=>{var r;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],o=e.fileUrl??((r=e==null?void 0:e.files)==null?void 0:r.regular);let i="";if(o&&t&&n&&(i+=`
|
|
135
135
|
@font-face {
|
|
136
136
|
font-family: "${t}";
|
|
137
137
|
src: local("${n}"), url('${o}') format('woff2');
|
|
@@ -165,4 +165,4 @@ ${_n({customFonts:e.customFonts})}
|
|
|
165
165
|
text-align: inherit;
|
|
166
166
|
font-family: inherit;
|
|
167
167
|
}
|
|
168
|
-
`.trim();return c.jsx($,{styles:t})}const Hn=({content:e,data:t,locale:n})=>{var r,a,s;const o={},i=((r=e==null?void 0:e.data)==null?void 0:r.state)||{};return(s=(a=e==null?void 0:e.data)==null?void 0:a.inputs)==null||s.forEach(l=>{l.name&&l.defaultValue!==void 0&&(o[l.name]=l.defaultValue)}),{...o,...i,...t,...n?{locale:n}:{}}},Kn=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function ae(e){var i,r,a,s,l,m,b,g,f;const t=on({variationId:(i=e.content)==null?void 0:i.testVariationId,contentId:(r=e.content)==null?void 0:r.id}),n=[...X(),...e.customComponents||[]].reduce((h,{component:u,...d})=>({...h,[d.name]:{component:u,...D(d)}}),{}),o={content:Kn({content:e.content,data:e.data}),localState:void 0,rootState:Hn({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...X(),...e.customComponents||[]].reduce((h,{component:u,...d})=>({...h,[d.name]:D(d)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}};return c.jsxs(v.EnableEditor,{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:o,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts,children:[e.isSsrAbTest?c.jsx(c.Fragment,{children:c.jsx(M,{scriptStr:t})}):null,c.jsx(c.Fragment,{children:c.jsx(Mn,{contentId:(a=o.content)==null?void 0:a.id,cssCode:(l=(s=o.content)==null?void 0:s.data)==null?void 0:l.cssCode,customFonts:(b=(m=o.content)==null?void 0:m.data)==null?void 0:b.customFonts})}),c.jsx(L,{blocks:(f=(g=o.content)==null?void 0:g.data)==null?void 0:f.blocks,context:o,registeredComponents:n,linkComponent:e.linkComponent})]})}function Ue(e){var r,a;const t=Zt({canTrack:j(e.canTrack),content:e.content}),n=function(){var l;return nn(A(e.content).map(m=>({id:m.testVariationId,testRatio:m.testRatio})),((l=e.content)==null?void 0:l.id)||"")},o=function(){return A(e.content).map(l=>`.variant-${l.testVariationId} { display: none; } `).join("")},i=function(){var l;return t?{...e.content,testVariationId:(l=e.content)==null?void 0:l.id}:At({item:e.content,canTrack:j(e.canTrack)})};return c.jsxs(c.Fragment,{children:[!e.__isNestedRender&&E!=="reactNative"?c.jsx(c.Fragment,{children:c.jsx(M,{scriptStr:tn()})}):null,t?c.jsxs(c.Fragment,{children:[c.jsx($,{id:`variants-styles-${(r=e.content)==null?void 0:r.id}`,styles:o()}),c.jsx(M,{scriptStr:n()}),(a=A(e.content))==null?void 0:a.map(s=>c.jsx(ae,{content:s,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},s.testVariationId))]}):null,c.jsx(ae,{content:i(),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 qn=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return z({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{k.error("Could not fetch symbol content: ",n)})};async function _e(e){var o,i,r,a,s;const t=function(){var m,b;return[e.attributes[F()],"builder-symbol",(m=e.symbol)!=null&&m.inline?"builder-inline-symbol":void 0,(b=e.symbol)!=null&&b.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((o=e.symbol)==null?void 0:o.content)||await qn({symbol:e.symbol,builderContextValue:e.builderContext});return c.jsx("div",{...e.attributes,className:t(),children:c.jsx(Ue,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(i=e.builderBlock)==null?void 0:i.id},customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(a=n==null?void 0:n.data)==null?void 0:a.state},model:(s=e.symbol)==null?void 0:s.model,content:n,linkComponent:e.builderLinkComponent})})}const se={};function zn(e){if(x()){Object.assign(se,e);const t={type:"builder.settingsChange",data:se};parent.postMessage(t,"*")}}const Jn=async e=>{var o,i,r;const t=e.path||((o=e.url)==null?void 0:o.pathname)||((i=e.userAttributes)==null?void 0:i.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:K(e.searchParams||((r=e.url)==null?void 0:r.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await z(n)}};exports.Blocks=L;exports.Columns=pe;exports.ContentVariants=Ue;exports.Symbol=_e;exports.Text=ve;exports._processContentResult=Pe;exports._track=We;exports.createEditorListener=Le;exports.createRegisterComponentMessage=Jt;exports.evaluate=O;exports.fastClone=R;exports.fetch=Te;exports.fetchBuilderProps=Jn;exports.fetchEntries=Ae;exports.fetchOneEntry=z;exports.getBlockActions=ut;exports.getBlockProperties=he;exports.getBuilderSearchParams=K;exports.getClassPropName=F;exports.getDefaultCanTrack=j;exports.getInteractionPropertiesForEvent=An;exports.getSrcSet=St;exports.init=Ee;exports.isBrowser=x;exports.isEditing=W;exports.isEmptyElement=He;exports.isJsScript=Ht;exports.isPreviewing=pn;exports.logger=k;exports.register=$e;exports.registerInsertMenu=jn;exports.setEditorSettings=zn;exports.setupBrowserForEditing=Ne;exports.subscribeToEditor=Fn;exports.track=Tn;exports.triggerAnimation=Ln;
|
|
168
|
+
`.trim();return c.jsx($,{styles:t})}const Hn=({content:e,data:t,locale:n})=>{var r,a,s;const o={},i=((r=e==null?void 0:e.data)==null?void 0:r.state)||{};return(s=(a=e==null?void 0:e.data)==null?void 0:a.inputs)==null||s.forEach(l=>{l.name&&l.defaultValue!==void 0&&(o[l.name]=l.defaultValue)}),{...o,...i,...t,...n?{locale:n}:{}}},Kn=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0;function ae(e){var i,r,a,s,l,m,b,g,f;const t=on({variationId:(i=e.content)==null?void 0:i.testVariationId,contentId:(r=e.content)==null?void 0:r.id}),n=[...X(),...e.customComponents||[]].reduce((h,{component:u,...d})=>({...h,[d.name]:{component:u,...D(d)}}),{}),o={content:Kn({content:e.content,data:e.data}),localState:void 0,rootState:Hn({content:e.content,data:e.data,locale:e.locale}),rootSetState:void 0,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...X(),...e.customComponents||[]].reduce((h,{component:u,...d})=>({...h,[d.name]:D(d)}),{}),inheritedStyles:{},BlocksWrapper:e.blocksWrapper||"div",BlocksWrapperProps:e.blocksWrapperProps||{}};return c.jsxs(v.EnableEditor,{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:o,contentWrapper:e.contentWrapper,contentWrapperProps:e.contentWrapperProps,linkComponent:e.linkComponent,trustedHosts:e.trustedHosts,children:[e.isSsrAbTest?c.jsx(c.Fragment,{children:c.jsx(M,{scriptStr:t})}):null,c.jsx(c.Fragment,{children:c.jsx(Mn,{contentId:(a=o.content)==null?void 0:a.id,cssCode:(l=(s=o.content)==null?void 0:s.data)==null?void 0:l.cssCode,customFonts:(b=(m=o.content)==null?void 0:m.data)==null?void 0:b.customFonts})}),c.jsx(L,{blocks:(f=(g=o.content)==null?void 0:g.data)==null?void 0:f.blocks,context:o,registeredComponents:n,linkComponent:e.linkComponent})]})}function Ue(e){var r,a;const t=Zt({canTrack:j(e.canTrack),content:e.content}),n=function(){var l;return nn(A(e.content).map(m=>({id:m.testVariationId,testRatio:m.testRatio})),((l=e.content)==null?void 0:l.id)||"")},o=function(){return A(e.content).map(l=>`.variant-${l.testVariationId} { display: none; } `).join("")},i=function(){var l;return t?{...e.content,testVariationId:(l=e.content)==null?void 0:l.id}:At({item:e.content,canTrack:j(e.canTrack)})};return c.jsxs(c.Fragment,{children:[!e.__isNestedRender&&E!=="reactNative"?c.jsx(c.Fragment,{children:c.jsx(M,{scriptStr:tn()})}):null,t?c.jsxs(c.Fragment,{children:[c.jsx($,{id:`variants-styles-${(r=e.content)==null?void 0:r.id}`,styles:o()}),c.jsx(M,{scriptStr:n()}),(a=A(e.content))==null?void 0:a.map(s=>c.jsx(ae,{content:s,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},s.testVariationId))]}):null,c.jsx(ae,{content:i(),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 qn=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return z({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{k.error("Could not fetch symbol content: ",n)})};async function _e(e){var o,i,r,a,s;const t=function(){var m,b;return[e.attributes[F()],"builder-symbol",(m=e.symbol)!=null&&m.inline?"builder-inline-symbol":void 0,(b=e.symbol)!=null&&b.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},n=((o=e.symbol)==null?void 0:o.content)||await qn({symbol:e.symbol,builderContextValue:e.builderContext});return c.jsx("div",{...e.attributes,className:t(),children:c.jsx(Ue,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:{...e.builderContext.context,symbolId:(i=e.builderBlock)==null?void 0:i.id},customComponents:Object.values(e.builderComponents),data:{...(r=e.symbol)==null?void 0:r.data,...e.builderContext.localState,...(a=n==null?void 0:n.data)==null?void 0:a.state},model:(s=e.symbol)==null?void 0:s.model,content:n,linkComponent:e.builderLinkComponent,blocksWrapper:"div",contentWrapper:"div"})})}const se={};function zn(e){if(x()){Object.assign(se,e);const t={type:"builder.settingsChange",data:se};parent.postMessage(t,"*")}}const Jn=async e=>{var o,i,r;const t=e.path||((o=e.url)==null?void 0:o.pathname)||((i=e.userAttributes)==null?void 0:i.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:K(e.searchParams||((r=e.url)==null?void 0:r.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await z(n)}};exports.Blocks=L;exports.Columns=pe;exports.ContentVariants=Ue;exports.Symbol=_e;exports.Text=ve;exports._processContentResult=Pe;exports._track=We;exports.createEditorListener=Le;exports.createRegisterComponentMessage=Jt;exports.evaluate=O;exports.fastClone=R;exports.fetch=Te;exports.fetchBuilderProps=Jn;exports.fetchEntries=Ae;exports.fetchOneEntry=z;exports.getBlockActions=ut;exports.getBlockProperties=he;exports.getBuilderSearchParams=K;exports.getClassPropName=F;exports.getDefaultCanTrack=j;exports.getInteractionPropertiesForEvent=An;exports.getSrcSet=St;exports.init=Ee;exports.isBrowser=x;exports.isEditing=W;exports.isEmptyElement=He;exports.isJsScript=Ht;exports.isPreviewing=pn;exports.logger=k;exports.register=$e;exports.registerInsertMenu=jn;exports.setEditorSettings=zn;exports.setupBrowserForEditing=Ne;exports.subscribeToEditor=Fn;exports.track=Tn;exports.triggerAnimation=Ln;
|
package/lib/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./USE_CLIENT_BUNDLE-c1f06a46.cjs"),e=require("./bundle-bebe179f.cjs");require("react/jsx-runtime");require("react");require("./USE_SERVER_BUNDLE-24e8f107.cjs");require("next/navigation");require("lru-cache");exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Symbol=e.Symbol;exports.Text=e.Text;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.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/browser/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as n, F as m, d as c, S as p, V as g } from "./USE_CLIENT_BUNDLE-
|
|
2
|
-
import { B as l,
|
|
1
|
+
import { c as n, F as m, d as c, S as p, V as g } from "./USE_CLIENT_BUNDLE-1270c8f4.js";
|
|
2
|
+
import { B as l, C as u, w as E, S, T as f, F as B, p as C, E as h, G as x, q as b, z as y, c as F, j as P, x as T, y as k, D as w, A as R } from "./bundle-333e93b9.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./USE_SERVER_BUNDLE-
|
|
5
|
+
import "./USE_SERVER_BUNDLE-99e0334d.js";
|
|
6
6
|
import "next/navigation";
|
|
7
7
|
import "lru-cache";
|
|
8
8
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i, Fragment as h, jsxs as E } from "react/jsx-runtime";
|
|
3
|
-
import { i as p, g as H, a as $, b as O, c as w, d as R, e as ee, f as P, h as V, _ as D, j as te, l as ne, k as ie, t as ae, m as U, n as ce, o as re, r as le, s as oe, p as de, q as se, u as ue } from "./bundle-
|
|
3
|
+
import { i as p, g as H, a as $, b as O, c as w, d as R, e as ee, f as P, h as V, _ as D, j as te, l as ne, k as ie, t as ae, m as U, n as ce, o as re, r as le, s as oe, p as de, q as se, u as ue } from "./bundle-49ee510b.js";
|
|
4
4
|
import { useRef as T, useState as x, useEffect as b, createContext as me, createElement as ge } from "react";
|
|
5
|
-
import { p as he } from "./USE_SERVER_BUNDLE-
|
|
5
|
+
import { p as he } from "./USE_SERVER_BUNDLE-f29a4a48.js";
|
|
6
6
|
import { useRouter as be } from "next/navigation";
|
|
7
7
|
function J(e) {
|
|
8
8
|
return /* @__PURE__ */ i(h, { children: p(e.TagName) ? /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ i(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-8abf9251.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-28ff24f9.cjs"),V=require("next/navigation");function C(e){return t.jsx(t.Fragment,{children:a.isEmptyElement(e.TagName)?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):t.jsx(t.Fragment,{children:typeof e.TagName=="string"?t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):t.jsx(t.Fragment,{children:t.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}function H(e){return t.jsx(C,{attributes:{...e.attributes,[a.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[a.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}function U(e){return t.jsx(C,{TagName:e.Wrapper,attributes:a.getBlockProperties({block:e.block,context:e.context}),actionAttributes:a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function $(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:e.includeBlockProps?{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{},children:e.children})}function O(e){function l(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function x(){var o,m;a.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((m=window.parent)==null||m.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx(e.BlocksWrapper,{className:l()+" props-blocks-wrapper-7354e098","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>x(),onKeyPress:o=>g(),...e.BlocksWrapperProps,children:e.children}),t.jsx("style",{children:`.props-blocks-wrapper-7354e098 {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: stretch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use server";"use strict";const n=require("./bundle-
|
|
1
|
+
"use server";"use strict";const n=require("./bundle-8abf9251.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as C, Fragment as W, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { LRUCache as Zr } from "lru-cache";
|
|
4
|
+
import { I as Qr, B as eo, a as to, D as no, C as ro, E as oo, b as io, V as ao, c as so, F as lo, d as co, S as uo, e as fo } from "./USE_CLIENT_BUNDLE-91b3973b.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
const po = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), La = (e) => typeof e == "string" && po.has(e.toLowerCase()), he = "rsc", Gt = () => {
|
|
7
7
|
switch (he) {
|
|
@@ -2992,7 +2992,7 @@ const ni = ({
|
|
|
2992
2992
|
};
|
|
2993
2993
|
function Yn(e) {
|
|
2994
2994
|
var n;
|
|
2995
|
-
const t = e.isInteractive ?
|
|
2995
|
+
const t = e.isInteractive ? Qr : e.componentRef;
|
|
2996
2996
|
return /* @__PURE__ */ C(W, { children: e.componentRef ? /* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(
|
|
2997
2997
|
t,
|
|
2998
2998
|
{
|
|
@@ -3114,7 +3114,7 @@ function ht(e) {
|
|
|
3114
3114
|
},
|
|
3115
3115
|
j
|
|
3116
3116
|
)) }) : /* @__PURE__ */ C(W, { children: /* @__PURE__ */ xe(
|
|
3117
|
-
|
|
3117
|
+
eo,
|
|
3118
3118
|
{
|
|
3119
3119
|
Wrapper: o(),
|
|
3120
3120
|
block: r(),
|
|
@@ -3153,7 +3153,7 @@ function ht(e) {
|
|
|
3153
3153
|
function sn(e) {
|
|
3154
3154
|
var t, n, r;
|
|
3155
3155
|
return /* @__PURE__ */ C(
|
|
3156
|
-
|
|
3156
|
+
to,
|
|
3157
3157
|
{
|
|
3158
3158
|
blocks: e.blocks,
|
|
3159
3159
|
parent: e.parent,
|
|
@@ -3268,7 +3268,7 @@ function oi(e) {
|
|
|
3268
3268
|
children: [
|
|
3269
3269
|
/* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(dt, { styles: R() }) }),
|
|
3270
3270
|
(j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ C(
|
|
3271
|
-
|
|
3271
|
+
no,
|
|
3272
3272
|
{
|
|
3273
3273
|
TagName: v.link ? e.builderLinkComponent || "a" : "div",
|
|
3274
3274
|
actionAttributes: {},
|
|
@@ -4094,31 +4094,31 @@ const Ai = {
|
|
|
4094
4094
|
advanced: !0
|
|
4095
4095
|
}]
|
|
4096
4096
|
}, Ni = () => [{
|
|
4097
|
-
component:
|
|
4097
|
+
component: ro,
|
|
4098
4098
|
...Ai
|
|
4099
4099
|
}, {
|
|
4100
|
-
component:
|
|
4100
|
+
component: oo,
|
|
4101
4101
|
...Oi
|
|
4102
4102
|
}, {
|
|
4103
|
-
component:
|
|
4103
|
+
component: io,
|
|
4104
4104
|
...Ri
|
|
4105
4105
|
}, {
|
|
4106
|
-
component:
|
|
4106
|
+
component: ao,
|
|
4107
4107
|
...Pi
|
|
4108
4108
|
}], zn = () => [{
|
|
4109
|
-
component:
|
|
4109
|
+
component: so,
|
|
4110
4110
|
...vi
|
|
4111
4111
|
}, {
|
|
4112
4112
|
component: oi,
|
|
4113
4113
|
...bi
|
|
4114
4114
|
}, {
|
|
4115
|
-
component:
|
|
4115
|
+
component: lo,
|
|
4116
4116
|
...Si
|
|
4117
4117
|
}, {
|
|
4118
|
-
component:
|
|
4118
|
+
component: co,
|
|
4119
4119
|
...wi
|
|
4120
4120
|
}, {
|
|
4121
|
-
component:
|
|
4121
|
+
component: uo,
|
|
4122
4122
|
...xi
|
|
4123
4123
|
}, {
|
|
4124
4124
|
component: Ci,
|
|
@@ -4267,7 +4267,7 @@ const $i = (e) => {
|
|
|
4267
4267
|
return n || Y.warn("No previewed ID found in search params."), n;
|
|
4268
4268
|
};
|
|
4269
4269
|
function Hi() {
|
|
4270
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4270
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Zr({
|
|
4271
4271
|
max: 500,
|
|
4272
4272
|
// how long to live in ms
|
|
4273
4273
|
ttl: 1e3 * 60 * 5
|
|
@@ -4605,7 +4605,7 @@ function Ur(e, t) {
|
|
|
4605
4605
|
const n = new URL(t.origin), r = n.hostname;
|
|
4606
4606
|
return (e || ya).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4607
4607
|
}
|
|
4608
|
-
const va = "0.14.
|
|
4608
|
+
const va = "0.14.3", tr = {};
|
|
4609
4609
|
function ba(e, t) {
|
|
4610
4610
|
let n = tr[e];
|
|
4611
4611
|
if (n || (n = tr[e] = []), n.push(t), X()) {
|
|
@@ -4936,7 +4936,7 @@ function or(e) {
|
|
|
4936
4936
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4937
4937
|
};
|
|
4938
4938
|
return /* @__PURE__ */ xe(
|
|
4939
|
-
|
|
4939
|
+
fo,
|
|
4940
4940
|
{
|
|
4941
4941
|
content: e.content,
|
|
4942
4942
|
data: e.data,
|
|
@@ -5113,7 +5113,9 @@ async function Ba(e) {
|
|
|
5113
5113
|
},
|
|
5114
5114
|
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
5115
5115
|
content: n,
|
|
5116
|
-
linkComponent: e.builderLinkComponent
|
|
5116
|
+
linkComponent: e.builderLinkComponent,
|
|
5117
|
+
blocksWrapper: "div",
|
|
5118
|
+
contentWrapper: "div"
|
|
5117
5119
|
}
|
|
5118
5120
|
) });
|
|
5119
5121
|
}
|
|
@@ -5151,7 +5153,7 @@ const Za = async (e) => {
|
|
|
5151
5153
|
export {
|
|
5152
5154
|
Ga as A,
|
|
5153
5155
|
sn as B,
|
|
5154
|
-
|
|
5156
|
+
oi as C,
|
|
5155
5157
|
Ja as D,
|
|
5156
5158
|
Za as E,
|
|
5157
5159
|
ta as F,
|
|
@@ -5181,7 +5183,7 @@ export {
|
|
|
5181
5183
|
za as t,
|
|
5182
5184
|
Yi as u,
|
|
5183
5185
|
Hi as v,
|
|
5184
|
-
|
|
5186
|
+
Pa as w,
|
|
5185
5187
|
ba as x,
|
|
5186
5188
|
qa as y,
|
|
5187
5189
|
Ar as z
|