@builder.io/sdk-react-nextjs 0.13.3 → 0.13.4
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-04cd188b.js → USE_CLIENT_BUNDLE-288752d8.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-85cf7e92.cjs → browser/USE_CLIENT_BUNDLE-94cce7fa.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-1f2bfec0.js → browser/USE_SERVER_BUNDLE-02c2385b.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-c05264ac.cjs → browser/USE_SERVER_BUNDLE-20569132.cjs} +1 -1
- package/lib/browser/{bundle-16af19fc.js → bundle-10ada443.js} +94 -94
- package/lib/browser/{bundle-09521c43.cjs → bundle-44e64ae0.cjs} +7 -7
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-dcad73d0.cjs → edge/USE_CLIENT_BUNDLE-4859795b.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-d1e6dcd3.js → edge/USE_CLIENT_BUNDLE-6fd05768.js} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-601fafbe.js → edge/USE_SERVER_BUNDLE-6e48e5ed.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-1aafe1f0.cjs → edge/USE_SERVER_BUNDLE-70e7e90b.cjs} +1 -1
- package/lib/edge/{bundle-32e28c53.js → bundle-66600134.js} +119 -119
- package/lib/edge/{bundle-10fb1352.cjs → bundle-aa7b9a16.cjs} +16 -16
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-403b6348.cjs → node/USE_CLIENT_BUNDLE-5990191b.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-5b75ae27.js → node/USE_CLIENT_BUNDLE-d7ccf4f8.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-498895bc.js → node/USE_SERVER_BUNDLE-7a98295a.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-f6de6931.cjs → node/USE_SERVER_BUNDLE-b7c27ec7.cjs} +1 -1
- package/lib/node/{bundle-42fea3bc.js → bundle-2d5f1c0c.js} +3 -3
- package/lib/node/{bundle-3f825965.cjs → bundle-9b818d40.cjs} +9 -9
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -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-10ada443.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-02c2385b.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-44e64ae0.cjs"),r=require("react"),D=require("./USE_SERVER_BUNDLE-20569132.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,{TagName:e.link?e.builderLinkComponent||"a":"button",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"}},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-44e64ae0.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,9 +1,9 @@
|
|
|
1
1
|
import { LRUCache as $e } from "lru-cache";
|
|
2
|
-
import { jsx as l, Fragment as
|
|
3
|
-
import { I as We, B as Oe, a as
|
|
2
|
+
import { jsx as l, Fragment as S, jsxs as A } from "react/jsx-runtime";
|
|
3
|
+
import { I as We, B as Oe, a as Fe, D as Ne, C as Le, E as Ue, b as _e, V as De, c as je, F as Me, d as He, S as Ke, e as ze } from "./USE_CLIENT_BUNDLE-288752d8.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), no = (e) => typeof e == "string" && qe.has(e.toLowerCase()), T = "rsc",
|
|
6
|
+
const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), no = (e) => typeof e == "string" && qe.has(e.toLowerCase()), T = "rsc", j = () => {
|
|
7
7
|
switch (T) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -33,17 +33,17 @@ const P = "[Builder.io]: ", v = {
|
|
|
33
33
|
warn: (...e) => console.warn(P, ...e),
|
|
34
34
|
debug: (...e) => console.debug(P, ...e)
|
|
35
35
|
};
|
|
36
|
-
function
|
|
36
|
+
function k() {
|
|
37
37
|
return typeof window < "u" && typeof document < "u";
|
|
38
38
|
}
|
|
39
39
|
function Je() {
|
|
40
|
-
return
|
|
40
|
+
return k() && window.self !== window.top;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function M() {
|
|
43
43
|
return Je() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
44
44
|
}
|
|
45
45
|
const Ye = () => {
|
|
46
|
-
if (
|
|
46
|
+
if (k()) {
|
|
47
47
|
const e = new URL(location.href);
|
|
48
48
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
49
49
|
} else
|
|
@@ -87,9 +87,9 @@ const Ye = () => {
|
|
|
87
87
|
context: t,
|
|
88
88
|
event: n
|
|
89
89
|
}), Ze = () => ({
|
|
90
|
-
isEditing:
|
|
91
|
-
isBrowser:
|
|
92
|
-
isServer: !
|
|
90
|
+
isEditing: M(),
|
|
91
|
+
isBrowser: k(),
|
|
92
|
+
isServer: !k(),
|
|
93
93
|
getUserAttributes: () => le()
|
|
94
94
|
}), et = (e, {
|
|
95
95
|
isExpression: t = !0
|
|
@@ -150,7 +150,7 @@ const nt = () => {
|
|
|
150
150
|
return !1;
|
|
151
151
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
152
152
|
return e && t && !n ? (v.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;
|
|
153
|
-
}, ot = (e) => (
|
|
153
|
+
}, ot = (e) => (k() || nt(), G(e));
|
|
154
154
|
function H({
|
|
155
155
|
code: e,
|
|
156
156
|
context: t,
|
|
@@ -398,7 +398,7 @@ function dt(e) {
|
|
|
398
398
|
}) : "";
|
|
399
399
|
return [f, h, u].join(" ");
|
|
400
400
|
};
|
|
401
|
-
return /* @__PURE__ */ l(
|
|
401
|
+
return /* @__PURE__ */ l(S, { children: n() && t() ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(O, { styles: n() }) }) : null });
|
|
402
402
|
}
|
|
403
403
|
function ut(e) {
|
|
404
404
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -479,7 +479,7 @@ function yt({
|
|
|
479
479
|
block: e,
|
|
480
480
|
context: t
|
|
481
481
|
}),
|
|
482
|
-
[
|
|
482
|
+
[j()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
483
483
|
};
|
|
484
484
|
return gt({
|
|
485
485
|
properties: n,
|
|
@@ -487,7 +487,7 @@ function yt({
|
|
|
487
487
|
block: e
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const St = ({
|
|
491
491
|
componentOptions: e,
|
|
492
492
|
builderBlock: t,
|
|
493
493
|
context: n,
|
|
@@ -520,10 +520,10 @@ const kt = ({
|
|
|
520
520
|
function Y(e) {
|
|
521
521
|
var n;
|
|
522
522
|
const t = e.isInteractive ? We : e.componentRef;
|
|
523
|
-
return /* @__PURE__ */ l(
|
|
523
|
+
return /* @__PURE__ */ l(S, { children: e.componentRef ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(
|
|
524
524
|
t,
|
|
525
525
|
{
|
|
526
|
-
...
|
|
526
|
+
...St({
|
|
527
527
|
componentOptions: e.componentOptions,
|
|
528
528
|
builderBlock: e.builderBlock,
|
|
529
529
|
context: e.context,
|
|
@@ -534,7 +534,7 @@ function Y(e) {
|
|
|
534
534
|
contextValue: e.context
|
|
535
535
|
}),
|
|
536
536
|
children: (n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
|
|
537
|
-
|
|
537
|
+
F,
|
|
538
538
|
{
|
|
539
539
|
block: o,
|
|
540
540
|
context: e.context,
|
|
@@ -546,10 +546,10 @@ function Y(e) {
|
|
|
546
546
|
}
|
|
547
547
|
) }) : null });
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function kt(e) {
|
|
550
550
|
const t = e.repeatContext;
|
|
551
551
|
return /* @__PURE__ */ l(
|
|
552
|
-
|
|
552
|
+
F,
|
|
553
553
|
{
|
|
554
554
|
block: e.block,
|
|
555
555
|
context: t,
|
|
@@ -558,7 +558,7 @@ function St(e) {
|
|
|
558
558
|
}
|
|
559
559
|
);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function F(e) {
|
|
562
562
|
var m, g, p;
|
|
563
563
|
const t = function() {
|
|
564
564
|
return at({
|
|
@@ -616,9 +616,9 @@ function N(e) {
|
|
|
616
616
|
isInteractive: !((I = t()) != null && I.isRSC)
|
|
617
617
|
};
|
|
618
618
|
}, c = e.context;
|
|
619
|
-
return /* @__PURE__ */ l(
|
|
619
|
+
return /* @__PURE__ */ l(S, { children: r() ? /* @__PURE__ */ A(S, { children: [
|
|
620
620
|
/* @__PURE__ */ l(dt, { block: e.block, context: e.context }),
|
|
621
|
-
(m = t()) != null && m.noWrap ? /* @__PURE__ */ l(
|
|
621
|
+
(m = t()) != null && m.noWrap ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(
|
|
622
622
|
Y,
|
|
623
623
|
{
|
|
624
624
|
componentRef: s().componentRef,
|
|
@@ -631,8 +631,8 @@ function N(e) {
|
|
|
631
631
|
includeBlockProps: s().includeBlockProps,
|
|
632
632
|
isInteractive: s().isInteractive
|
|
633
633
|
}
|
|
634
|
-
) }) : /* @__PURE__ */ l(
|
|
635
|
-
|
|
634
|
+
) }) : /* @__PURE__ */ l(S, { children: n() ? /* @__PURE__ */ l(S, { children: (p = n()) == null ? void 0 : p.map((f, h) => /* @__PURE__ */ l(
|
|
635
|
+
kt,
|
|
636
636
|
{
|
|
637
637
|
repeatContext: f.context,
|
|
638
638
|
block: f.block,
|
|
@@ -640,7 +640,7 @@ function N(e) {
|
|
|
640
640
|
linkComponent: e.linkComponent
|
|
641
641
|
},
|
|
642
642
|
h
|
|
643
|
-
)) }) : /* @__PURE__ */ l(
|
|
643
|
+
)) }) : /* @__PURE__ */ l(S, { children: /* @__PURE__ */ A(
|
|
644
644
|
Oe,
|
|
645
645
|
{
|
|
646
646
|
Wrapper: i(),
|
|
@@ -663,7 +663,7 @@ function N(e) {
|
|
|
663
663
|
}
|
|
664
664
|
),
|
|
665
665
|
(g = a()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
|
|
666
|
-
|
|
666
|
+
F,
|
|
667
667
|
{
|
|
668
668
|
block: f,
|
|
669
669
|
context: c,
|
|
@@ -677,10 +677,10 @@ function N(e) {
|
|
|
677
677
|
) }) })
|
|
678
678
|
] }) : null });
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function N(e) {
|
|
681
681
|
var t, n, o;
|
|
682
682
|
return /* @__PURE__ */ l(
|
|
683
|
-
|
|
683
|
+
Fe,
|
|
684
684
|
{
|
|
685
685
|
blocks: e.blocks,
|
|
686
686
|
parent: e.parent,
|
|
@@ -688,8 +688,8 @@ function F(e) {
|
|
|
688
688
|
styleProp: e.styleProp,
|
|
689
689
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
690
690
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
691
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
692
|
-
|
|
691
|
+
children: e.blocks ? /* @__PURE__ */ l(S, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
|
|
692
|
+
F,
|
|
693
693
|
{
|
|
694
694
|
block: i,
|
|
695
695
|
linkComponent: e.linkComponent,
|
|
@@ -786,16 +786,16 @@ function vt(e) {
|
|
|
786
786
|
},
|
|
787
787
|
`;
|
|
788
788
|
};
|
|
789
|
-
return /* @__PURE__ */ A(
|
|
789
|
+
return /* @__PURE__ */ A(S, { children: [
|
|
790
790
|
/* @__PURE__ */ A(
|
|
791
791
|
"div",
|
|
792
792
|
{
|
|
793
793
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-65bb9135`,
|
|
794
794
|
style: m(),
|
|
795
795
|
children: [
|
|
796
|
-
/* @__PURE__ */ l(
|
|
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
|
+
Ne,
|
|
799
799
|
{
|
|
800
800
|
TagName: u.link ? e.builderLinkComponent || "a" : "div",
|
|
801
801
|
actionAttributes: {},
|
|
@@ -803,11 +803,11 @@ function vt(e) {
|
|
|
803
803
|
...u.link ? {
|
|
804
804
|
href: u.link
|
|
805
805
|
} : {},
|
|
806
|
-
[
|
|
806
|
+
[j()]: "builder-column",
|
|
807
807
|
style: he(g(d))
|
|
808
808
|
},
|
|
809
809
|
children: /* @__PURE__ */ l(
|
|
810
|
-
|
|
810
|
+
N,
|
|
811
811
|
{
|
|
812
812
|
path: `component.options.columns.${d}.blocks`,
|
|
813
813
|
parent: e.builderBlock.id,
|
|
@@ -883,7 +883,7 @@ const wt = (e) => {
|
|
|
883
883
|
value: t,
|
|
884
884
|
expires: n
|
|
885
885
|
}) => {
|
|
886
|
-
const i = (
|
|
886
|
+
const i = (k() ? location.protocol === "https:" : !0) ? Tt : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", wt(window.location.hostname)], ...i];
|
|
887
887
|
return It(a);
|
|
888
888
|
}, be = async ({
|
|
889
889
|
name: e,
|
|
@@ -933,7 +933,7 @@ const wt = (e) => {
|
|
|
933
933
|
return r;
|
|
934
934
|
}
|
|
935
935
|
return e;
|
|
936
|
-
},
|
|
936
|
+
}, Se = (e) => {
|
|
937
937
|
const t = Vt(e);
|
|
938
938
|
return Bt({
|
|
939
939
|
contentId: e.id,
|
|
@@ -941,7 +941,7 @@ const wt = (e) => {
|
|
|
941
941
|
}).catch((n) => {
|
|
942
942
|
v.error("could not store A/B test variation: ", n);
|
|
943
943
|
}), t;
|
|
944
|
-
},
|
|
944
|
+
}, ke = ({
|
|
945
945
|
item: e,
|
|
946
946
|
testGroupId: t
|
|
947
947
|
}) => {
|
|
@@ -967,10 +967,10 @@ const wt = (e) => {
|
|
|
967
967
|
return e;
|
|
968
968
|
const n = Pt({
|
|
969
969
|
contentId: e.id
|
|
970
|
-
}) ||
|
|
970
|
+
}) || Se({
|
|
971
971
|
variations: e.variations,
|
|
972
972
|
id: e.id
|
|
973
|
-
}), o =
|
|
973
|
+
}), o = ke({
|
|
974
974
|
item: e,
|
|
975
975
|
testGroupId: n
|
|
976
976
|
});
|
|
@@ -986,10 +986,10 @@ const wt = (e) => {
|
|
|
986
986
|
return e;
|
|
987
987
|
const o = await At({
|
|
988
988
|
contentId: e.id
|
|
989
|
-
}) ||
|
|
989
|
+
}) || Se({
|
|
990
990
|
variations: e.variations,
|
|
991
991
|
id: e.id
|
|
992
|
-
}), i =
|
|
992
|
+
}), i = ke({
|
|
993
993
|
item: e,
|
|
994
994
|
testGroupId: o
|
|
995
995
|
});
|
|
@@ -1030,7 +1030,7 @@ const wt = (e) => {
|
|
|
1030
1030
|
}],
|
|
1031
1031
|
static: !0,
|
|
1032
1032
|
noWrap: !0
|
|
1033
|
-
},
|
|
1033
|
+
}, Ft = {
|
|
1034
1034
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1035
1035
|
name: "Columns",
|
|
1036
1036
|
isRSC: !0,
|
|
@@ -1231,7 +1231,7 @@ const wt = (e) => {
|
|
|
1231
1231
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1232
1232
|
advanced: !0
|
|
1233
1233
|
}]
|
|
1234
|
-
},
|
|
1234
|
+
}, Nt = {
|
|
1235
1235
|
name: "Fragment",
|
|
1236
1236
|
static: !0,
|
|
1237
1237
|
hidden: !0,
|
|
@@ -1402,7 +1402,7 @@ function Dt(e) {
|
|
|
1402
1402
|
"builder-slot": e.name
|
|
1403
1403
|
},
|
|
1404
1404
|
children: /* @__PURE__ */ l(
|
|
1405
|
-
|
|
1405
|
+
N,
|
|
1406
1406
|
{
|
|
1407
1407
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1408
1408
|
path: `symbol.data.${e.name}`,
|
|
@@ -1413,7 +1413,7 @@ function Dt(e) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
);
|
|
1415
1415
|
}
|
|
1416
|
-
const
|
|
1416
|
+
const jt = {
|
|
1417
1417
|
name: "Symbol",
|
|
1418
1418
|
noWrap: !0,
|
|
1419
1419
|
static: !0,
|
|
@@ -1446,7 +1446,7 @@ const Mt = {
|
|
|
1446
1446
|
hideFromUI: !0,
|
|
1447
1447
|
type: "boolean"
|
|
1448
1448
|
}]
|
|
1449
|
-
},
|
|
1449
|
+
}, Mt = {
|
|
1450
1450
|
name: "Text",
|
|
1451
1451
|
static: !0,
|
|
1452
1452
|
isRSC: !0,
|
|
@@ -1552,7 +1552,7 @@ const Kt = {
|
|
|
1552
1552
|
type: "file",
|
|
1553
1553
|
allowedFileTypes: ["mp4"],
|
|
1554
1554
|
bubble: !0,
|
|
1555
|
-
defaultValue: "https://
|
|
1555
|
+
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
1556
1556
|
required: !0
|
|
1557
1557
|
}, {
|
|
1558
1558
|
name: "posterImage",
|
|
@@ -1633,14 +1633,14 @@ const Kt = {
|
|
|
1633
1633
|
component: De,
|
|
1634
1634
|
...Jt
|
|
1635
1635
|
}], X = () => [{
|
|
1636
|
-
component:
|
|
1636
|
+
component: je,
|
|
1637
1637
|
...Ot
|
|
1638
1638
|
}, {
|
|
1639
1639
|
component: vt,
|
|
1640
|
-
...Nt
|
|
1641
|
-
}, {
|
|
1642
|
-
component: je,
|
|
1643
1640
|
...Ft
|
|
1641
|
+
}, {
|
|
1642
|
+
component: Me,
|
|
1643
|
+
...Nt
|
|
1644
1644
|
}, {
|
|
1645
1645
|
component: He,
|
|
1646
1646
|
...Lt
|
|
@@ -1652,10 +1652,10 @@ const Kt = {
|
|
|
1652
1652
|
..._t
|
|
1653
1653
|
}, {
|
|
1654
1654
|
component: Yn,
|
|
1655
|
-
...
|
|
1655
|
+
...jt
|
|
1656
1656
|
}, {
|
|
1657
1657
|
component: Ht,
|
|
1658
|
-
...
|
|
1658
|
+
...Mt
|
|
1659
1659
|
}, ...Yt()], Z = [], ao = (e) => ({
|
|
1660
1660
|
type: "builder.registerComponent",
|
|
1661
1661
|
data: _(e)
|
|
@@ -1768,7 +1768,7 @@ const Kt = {
|
|
|
1768
1768
|
})), tn = ({
|
|
1769
1769
|
canTrack: e,
|
|
1770
1770
|
content: t
|
|
1771
|
-
}) => !(!(B(t).length > 0) || !e ||
|
|
1771
|
+
}) => !(!(B(t).length > 0) || !e || k()), nn = (e) => e === "react" || e === "reactNative", Ce = nn(T), on = () => `
|
|
1772
1772
|
window.${ve} = ${Zt}
|
|
1773
1773
|
window.${xe} = ${en}
|
|
1774
1774
|
`, rn = (e, t) => `
|
|
@@ -1844,7 +1844,7 @@ const fn = "v3", ee = "builder.", hn = "options.", pn = (e) => {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
}), n;
|
|
1846
1846
|
}, gn = () => {
|
|
1847
|
-
if (!
|
|
1847
|
+
if (!k())
|
|
1848
1848
|
return {};
|
|
1849
1849
|
const e = new URLSearchParams(window.location.search);
|
|
1850
1850
|
return we(e);
|
|
@@ -1908,7 +1908,7 @@ async function q(e) {
|
|
|
1908
1908
|
const so = q, yn = async (e) => {
|
|
1909
1909
|
const t = z(e);
|
|
1910
1910
|
return await (await mn(t.href)).json();
|
|
1911
|
-
},
|
|
1911
|
+
}, Sn = async (e, t, n = z(e)) => {
|
|
1912
1912
|
const o = U(e.canTrack);
|
|
1913
1913
|
if (n.search.includes("preview=")) {
|
|
1914
1914
|
const r = [];
|
|
@@ -1918,7 +1918,7 @@ const so = q, yn = async (e) => {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
t.results = r;
|
|
1920
1920
|
}
|
|
1921
|
-
if (!o || !(
|
|
1921
|
+
if (!o || !(k() || T === "reactNative"))
|
|
1922
1922
|
return t.results;
|
|
1923
1923
|
try {
|
|
1924
1924
|
const r = [];
|
|
@@ -1936,7 +1936,7 @@ const so = q, yn = async (e) => {
|
|
|
1936
1936
|
async function Te(e) {
|
|
1937
1937
|
try {
|
|
1938
1938
|
const t = z(e), n = await yn(e);
|
|
1939
|
-
return bn(n) ?
|
|
1939
|
+
return bn(n) ? Sn(e, n) : (v.error("Error fetching data. ", {
|
|
1940
1940
|
url: t,
|
|
1941
1941
|
content: n,
|
|
1942
1942
|
options: e
|
|
@@ -1947,16 +1947,16 @@ async function Te(e) {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
const co = Te;
|
|
1949
1949
|
function lo() {
|
|
1950
|
-
return !
|
|
1950
|
+
return !k() || M() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function kn() {
|
|
1953
1953
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1954
1954
|
const t = Math.random() * 16 | 0;
|
|
1955
1955
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
1958
|
function Ee() {
|
|
1959
|
-
return
|
|
1959
|
+
return kn().replace(/-/g, "");
|
|
1960
1960
|
}
|
|
1961
1961
|
const Re = "builderSessionId", vn = async ({
|
|
1962
1962
|
canTrack: e
|
|
@@ -1983,7 +1983,7 @@ const Re = "builderSessionId", vn = async ({
|
|
|
1983
1983
|
name: Re,
|
|
1984
1984
|
value: e,
|
|
1985
1985
|
canTrack: t
|
|
1986
|
-
}), Ae = () =>
|
|
1986
|
+
}), Ae = () => k() && typeof localStorage < "u" ? localStorage : void 0, wn = ({
|
|
1987
1987
|
key: e,
|
|
1988
1988
|
canTrack: t
|
|
1989
1989
|
}) => {
|
|
@@ -2073,7 +2073,7 @@ async function Bn(e) {
|
|
|
2073
2073
|
v.error("Missing API key for track call. Please provide your API key.");
|
|
2074
2074
|
return;
|
|
2075
2075
|
}
|
|
2076
|
-
if (e.canTrack && !
|
|
2076
|
+
if (e.canTrack && !M() && (k() || T === "reactNative"))
|
|
2077
2077
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2078
2078
|
method: "POST",
|
|
2079
2079
|
body: JSON.stringify({
|
|
@@ -2138,10 +2138,10 @@ function Be(e, t) {
|
|
|
2138
2138
|
const n = new URL(t.origin), o = n.hostname;
|
|
2139
2139
|
return (e || Wn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
|
|
2140
2140
|
}
|
|
2141
|
-
const On = "0.13.
|
|
2142
|
-
function
|
|
2141
|
+
const On = "0.13.4", ie = {};
|
|
2142
|
+
function Fn(e, t) {
|
|
2143
2143
|
let n = ie[e];
|
|
2144
|
-
if (n || (n = ie[e] = []), n.push(t),
|
|
2144
|
+
if (n || (n = ie[e] = []), n.push(t), k()) {
|
|
2145
2145
|
const o = {
|
|
2146
2146
|
type: "builder.register",
|
|
2147
2147
|
data: {
|
|
@@ -2157,7 +2157,7 @@ function Nn(e, t) {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
2159
|
const fo = () => {
|
|
2160
|
-
|
|
2160
|
+
Fn("insertMenu", {
|
|
2161
2161
|
name: "_default",
|
|
2162
2162
|
default: !0,
|
|
2163
2163
|
items: [{
|
|
@@ -2180,9 +2180,9 @@ const fo = () => {
|
|
|
2180
2180
|
});
|
|
2181
2181
|
};
|
|
2182
2182
|
let re = !1;
|
|
2183
|
-
const
|
|
2183
|
+
const Nn = (e = {}) => {
|
|
2184
2184
|
var t, n;
|
|
2185
|
-
re || (re = !0,
|
|
2185
|
+
re || (re = !0, k() && ((t = window.parent) == null || t.postMessage({
|
|
2186
2186
|
type: "builder.sdkInfo",
|
|
2187
2187
|
data: {
|
|
2188
2188
|
target: T,
|
|
@@ -2268,10 +2268,10 @@ const Fn = (e = {}) => {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
2270
|
}, ho = (e, t, n) => {
|
|
2271
|
-
if (!
|
|
2271
|
+
if (!k)
|
|
2272
2272
|
return v.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
2273
2273
|
};
|
|
2274
|
-
|
|
2274
|
+
Nn();
|
|
2275
2275
|
const o = Ln({
|
|
2276
2276
|
callbacks: {
|
|
2277
2277
|
contentUpdate: t,
|
|
@@ -2302,12 +2302,12 @@ function _n(e) {
|
|
|
2302
2302
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2303
2303
|
}
|
|
2304
2304
|
function Dn(e, t) {
|
|
2305
|
-
const n =
|
|
2305
|
+
const n = jn(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
|
|
2306
2306
|
for (const s of a)
|
|
2307
2307
|
for (const c of n)
|
|
2308
2308
|
c in s || (s[c] = o[c]);
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function jn(e) {
|
|
2311
2311
|
const t = [];
|
|
2312
2312
|
for (const n of e.steps)
|
|
2313
2313
|
for (const o in n.styles)
|
|
@@ -2328,7 +2328,7 @@ function po(e) {
|
|
|
2328
2328
|
});
|
|
2329
2329
|
});
|
|
2330
2330
|
}
|
|
2331
|
-
const
|
|
2331
|
+
const Mn = (e) => {
|
|
2332
2332
|
var r;
|
|
2333
2333
|
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);
|
|
2334
2334
|
let i = "";
|
|
@@ -2358,7 +2358,7 @@ font-weight: ${a};
|
|
|
2358
2358
|
customFonts: e
|
|
2359
2359
|
}) => {
|
|
2360
2360
|
var t;
|
|
2361
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2361
|
+
return ((t = e == null ? void 0 : e.map((n) => Mn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2362
2362
|
}, Kn = ({
|
|
2363
2363
|
cssCode: e,
|
|
2364
2364
|
contentId: t
|
|
@@ -2499,8 +2499,8 @@ function se(e) {
|
|
|
2499
2499
|
linkComponent: e.linkComponent,
|
|
2500
2500
|
trustedHosts: e.trustedHosts,
|
|
2501
2501
|
children: [
|
|
2502
|
-
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
2503
|
-
/* @__PURE__ */ l(
|
|
2502
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(D, { scriptStr: t }) }) : null,
|
|
2503
|
+
/* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(
|
|
2504
2504
|
zn,
|
|
2505
2505
|
{
|
|
2506
2506
|
contentId: (a = o.content) == null ? void 0 : a.id,
|
|
@@ -2509,7 +2509,7 @@ function se(e) {
|
|
|
2509
2509
|
}
|
|
2510
2510
|
) }),
|
|
2511
2511
|
/* @__PURE__ */ l(
|
|
2512
|
-
|
|
2512
|
+
N,
|
|
2513
2513
|
{
|
|
2514
2514
|
blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
|
|
2515
2515
|
context: o,
|
|
@@ -2547,9 +2547,9 @@ function Ve(e) {
|
|
|
2547
2547
|
canTrack: U(e.canTrack)
|
|
2548
2548
|
});
|
|
2549
2549
|
};
|
|
2550
|
-
return /* @__PURE__ */ A(
|
|
2551
|
-
!e.__isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(
|
|
2552
|
-
t ? /* @__PURE__ */ A(
|
|
2550
|
+
return /* @__PURE__ */ A(S, { children: [
|
|
2551
|
+
!e.__isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(D, { scriptStr: on() }) }) : null,
|
|
2552
|
+
t ? /* @__PURE__ */ A(S, { children: [
|
|
2553
2553
|
/* @__PURE__ */ l(
|
|
2554
2554
|
O,
|
|
2555
2555
|
{
|
|
@@ -2634,7 +2634,7 @@ async function Yn(e) {
|
|
|
2634
2634
|
const t = function() {
|
|
2635
2635
|
var m, g;
|
|
2636
2636
|
return [
|
|
2637
|
-
e.attributes[
|
|
2637
|
+
e.attributes[j()],
|
|
2638
2638
|
"builder-symbol",
|
|
2639
2639
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
2640
2640
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -2665,9 +2665,9 @@ async function Yn(e) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
) });
|
|
2667
2667
|
}
|
|
2668
|
-
const go =
|
|
2668
|
+
const go = N, bo = Ve, ce = {};
|
|
2669
2669
|
function yo(e) {
|
|
2670
|
-
if (
|
|
2670
|
+
if (k()) {
|
|
2671
2671
|
Object.assign(ce, e);
|
|
2672
2672
|
const t = {
|
|
2673
2673
|
type: "builder.settingsChange",
|
|
@@ -2676,7 +2676,7 @@ function yo(e) {
|
|
|
2676
2676
|
parent.postMessage(t, "*");
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
|
-
const
|
|
2679
|
+
const So = async (e) => {
|
|
2680
2680
|
var o, i, r;
|
|
2681
2681
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
|
|
2682
2682
|
...e,
|
|
@@ -2698,12 +2698,12 @@ const ko = async (e) => {
|
|
|
2698
2698
|
};
|
|
2699
2699
|
export {
|
|
2700
2700
|
we as A,
|
|
2701
|
-
|
|
2701
|
+
N as B,
|
|
2702
2702
|
Ve as C,
|
|
2703
2703
|
uo as D,
|
|
2704
2704
|
ho as E,
|
|
2705
|
-
|
|
2706
|
-
|
|
2705
|
+
So as F,
|
|
2706
|
+
Sn as G,
|
|
2707
2707
|
Te as H,
|
|
2708
2708
|
co as I,
|
|
2709
2709
|
so as J,
|
|
@@ -2713,11 +2713,11 @@ export {
|
|
|
2713
2713
|
Bn as _,
|
|
2714
2714
|
yt as a,
|
|
2715
2715
|
oo as b,
|
|
2716
|
-
|
|
2716
|
+
M as c,
|
|
2717
2717
|
io as d,
|
|
2718
2718
|
ro as e,
|
|
2719
|
-
|
|
2720
|
-
|
|
2719
|
+
k as f,
|
|
2720
|
+
j as g,
|
|
2721
2721
|
U as h,
|
|
2722
2722
|
no as i,
|
|
2723
2723
|
lo as j,
|
|
@@ -2729,12 +2729,12 @@ export {
|
|
|
2729
2729
|
ao as p,
|
|
2730
2730
|
q,
|
|
2731
2731
|
fo as r,
|
|
2732
|
-
|
|
2732
|
+
Nn as s,
|
|
2733
2733
|
po as t,
|
|
2734
2734
|
mn as u,
|
|
2735
2735
|
cn as v,
|
|
2736
2736
|
bo as w,
|
|
2737
2737
|
vt as x,
|
|
2738
|
-
|
|
2738
|
+
Fn as y,
|
|
2739
2739
|
yo as z
|
|
2740
2740
|
};
|