@builder.io/sdk-react-nextjs 0.14.17 → 0.14.20
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/{node/USE_CLIENT_BUNDLE-8dadab11.js → browser/USE_CLIENT_BUNDLE-b0af90c6.js} +251 -247
- package/lib/browser/USE_CLIENT_BUNDLE-eb52194d.cjs +21 -0
- package/lib/{edge/USE_SERVER_BUNDLE-4035cf43.cjs → browser/USE_SERVER_BUNDLE-719f53b1.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-6b33cfd7.js → browser/USE_SERVER_BUNDLE-d83b7d23.js} +1 -1
- package/lib/browser/bundle-12d2c3ee.cjs +169 -0
- package/lib/browser/{bundle-974bbd75.js → bundle-83df769b.js} +590 -578
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -4
- package/lib/{browser/USE_CLIENT_BUNDLE-f685a480.js → edge/USE_CLIENT_BUNDLE-2d9b453e.js} +251 -247
- package/lib/edge/USE_CLIENT_BUNDLE-47285217.cjs +21 -0
- package/lib/{node/USE_SERVER_BUNDLE-d847a064.cjs → edge/USE_SERVER_BUNDLE-9e66cbc6.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-d7d118c1.js → edge/USE_SERVER_BUNDLE-c879ad04.js} +1 -1
- package/lib/edge/{bundle-0e4ba4de.js → bundle-73367f5c.js} +1016 -1004
- package/lib/edge/bundle-8a8fdc14.cjs +189 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -4
- package/lib/{edge/USE_CLIENT_BUNDLE-bf35f13e.js → node/USE_CLIENT_BUNDLE-68277019.js} +251 -247
- package/lib/node/USE_CLIENT_BUNDLE-8d2c6823.cjs +21 -0
- package/lib/{browser/USE_SERVER_BUNDLE-fbe70d66.js → node/USE_SERVER_BUNDLE-84ab22ef.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-1ee4e92a.cjs → node/USE_SERVER_BUNDLE-a4d10e9b.cjs} +1 -1
- package/lib/node/{bundle-a8217ddb.js → bundle-08369562.js} +256 -242
- package/lib/node/{bundle-39fe7680.cjs → bundle-832f5a95.cjs} +18 -18
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +4 -4
- package/package.json +1 -1
- package/types/cjs/blocks/columns/columns.types.d.ts +1 -1
- package/types/cjs/blocks/columns/helpers.d.ts +1 -0
- package/types/cjs/blocks/tabs/component-info.d.ts +2 -0
- package/types/cjs/blocks/tabs/index.d.ts +1 -0
- package/types/cjs/blocks/tabs/tabs.d.ts +4 -0
- package/types/cjs/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/cjs/blocks/text/text.types.d.ts +2 -1
- package/types/cjs/components/block/block.helpers.d.ts +4 -2
- package/types/cjs/components/content/components/styles.helpers.d.ts +1 -0
- package/types/cjs/components/dynamic-div.d.ts +15 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/targets.d.ts +1 -1
- package/types/esm/blocks/columns/columns.types.d.ts +1 -1
- package/types/esm/blocks/columns/helpers.d.ts +1 -0
- package/types/esm/blocks/tabs/component-info.d.ts +2 -0
- package/types/esm/blocks/tabs/index.d.ts +1 -0
- package/types/esm/blocks/tabs/tabs.d.ts +4 -0
- package/types/esm/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/esm/blocks/text/text.types.d.ts +2 -1
- package/types/esm/components/block/block.helpers.d.ts +4 -2
- package/types/esm/components/content/components/styles.helpers.d.ts +1 -0
- package/types/esm/components/dynamic-div.d.ts +15 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/targets.d.ts +1 -1
- package/lib/browser/USE_CLIENT_BUNDLE-f11159f6.cjs +0 -21
- package/lib/browser/bundle-e5f3c905.cjs +0 -169
- package/lib/edge/USE_CLIENT_BUNDLE-22f09854.cjs +0 -21
- package/lib/edge/bundle-15a88622.cjs +0 -189
- package/lib/node/USE_CLIENT_BUNDLE-e62d9c72.cjs +0 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, D as DynamicRenderer, C as CustomCode, E as Embed, b as ImgComponent, V as Video, c as Button, F as FragmentComponent, d as Image, S as SectionComponent, e as EnableEditor } from "./USE_CLIENT_BUNDLE-8dadab11.js";
|
|
4
3
|
import { LRUCache } from "lru-cache";
|
|
4
|
+
import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, D as DynamicRenderer, C as CustomCode, E as Embed, b as ImgComponent, V as Video, c as Button, F as FragmentComponent, d as Image, S as SectionComponent, e as EnableEditor } from "./USE_CLIENT_BUNDLE-68277019.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase()), TARGET = "rsc", getClassPropName = () => {
|
|
7
7
|
switch (TARGET) {
|
|
@@ -13,6 +13,7 @@ const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col"
|
|
|
13
13
|
case "vue":
|
|
14
14
|
case "solid":
|
|
15
15
|
case "qwik":
|
|
16
|
+
case "angular":
|
|
16
17
|
return "class";
|
|
17
18
|
}
|
|
18
19
|
};
|
|
@@ -196,16 +197,16 @@ function theFunction() {
|
|
|
196
197
|
${e}
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
|
|
200
|
+
const output = theFunction()
|
|
200
201
|
|
|
201
202
|
if (typeof output === 'object' && output !== null) {
|
|
202
|
-
|
|
203
|
+
return JSON.stringify(output.copySync ? output.copySync() : output);
|
|
204
|
+
} else {
|
|
205
|
+
return output;
|
|
203
206
|
}
|
|
204
|
-
|
|
205
|
-
output;
|
|
206
207
|
`;
|
|
207
208
|
};
|
|
208
|
-
let IVM_INSTANCE = null;
|
|
209
|
+
let IVM_INSTANCE = null, IVM_CONTEXT = null;
|
|
209
210
|
const getIvm = () => {
|
|
210
211
|
try {
|
|
211
212
|
const e = safeDynamicRequire("isolated-vm");
|
|
@@ -222,12 +223,16 @@ const getIvm = () => {
|
|
|
222
223
|
|
|
223
224
|
Please see the documentation for more information: https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments
|
|
224
225
|
`);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
226
|
+
};
|
|
227
|
+
function setIsolateContext(e = {
|
|
228
|
+
memoryLimit: 128
|
|
229
|
+
}) {
|
|
230
|
+
const t = getIvm(), o = new t.Isolate(e).createContextSync(), r = o.global;
|
|
231
|
+
return r.setSync("global", r.derefInto()), r.setSync("log", function(...i) {
|
|
232
|
+
console.log(...i);
|
|
233
|
+
}), r.setSync(INJECTED_IVM_GLOBAL, t), IVM_CONTEXT = o, o;
|
|
234
|
+
}
|
|
235
|
+
const getIsolateContext = () => IVM_CONTEXT || setIsolateContext(), runInNode = ({
|
|
231
236
|
code: e,
|
|
232
237
|
builder: t,
|
|
233
238
|
context: n,
|
|
@@ -239,34 +244,32 @@ const getIvm = () => {
|
|
|
239
244
|
const s = getIvm(), c = fastClone({
|
|
240
245
|
...a,
|
|
241
246
|
...r
|
|
242
|
-
}),
|
|
247
|
+
}), d = getFunctionArguments({
|
|
243
248
|
builder: t,
|
|
244
249
|
context: n,
|
|
245
250
|
event: o,
|
|
246
251
|
state: c
|
|
247
|
-
}),
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}), d.
|
|
251
|
-
|
|
252
|
-
}), u.forEach(([m, l]) => {
|
|
253
|
-
const b = typeof l == "object" ? new s.Reference(
|
|
252
|
+
}), f = getIsolateContext(), l = f.global;
|
|
253
|
+
l.setSync(BUILDER_SET_STATE_NAME, function(b, p) {
|
|
254
|
+
set(a, b, p), i == null || i(a);
|
|
255
|
+
}), d.forEach(([b, p]) => {
|
|
256
|
+
const v = typeof p == "object" ? new s.Reference(
|
|
254
257
|
// workaround: methods with default values for arguments is not being cloned over
|
|
255
|
-
|
|
256
|
-
...
|
|
257
|
-
getUserAttributes: () =>
|
|
258
|
-
} :
|
|
258
|
+
b === "builder" ? {
|
|
259
|
+
...p,
|
|
260
|
+
getUserAttributes: () => p.getUserAttributes()
|
|
261
|
+
} : p
|
|
259
262
|
) : null;
|
|
260
|
-
|
|
261
|
-
})
|
|
262
|
-
const
|
|
263
|
+
l.setSync(getSyncValName(b), v);
|
|
264
|
+
});
|
|
265
|
+
const u = processCode({
|
|
263
266
|
code: e,
|
|
264
|
-
args:
|
|
265
|
-
}),
|
|
267
|
+
args: d
|
|
268
|
+
}), g = f.evalClosureSync(u);
|
|
266
269
|
try {
|
|
267
|
-
return JSON.parse(
|
|
270
|
+
return JSON.parse(g);
|
|
268
271
|
} catch {
|
|
269
|
-
return
|
|
272
|
+
return g;
|
|
270
273
|
}
|
|
271
274
|
}, checkIsDefined = (e) => e != null;
|
|
272
275
|
function isNodeRuntime() {
|
|
@@ -324,19 +327,19 @@ function evaluate({
|
|
|
324
327
|
localState: n
|
|
325
328
|
};
|
|
326
329
|
if (s) {
|
|
327
|
-
const
|
|
328
|
-
if (
|
|
329
|
-
return
|
|
330
|
+
const d = EvalCache.getCacheKey(c), f = EvalCache.getCachedValue(d);
|
|
331
|
+
if (f)
|
|
332
|
+
return f.value;
|
|
330
333
|
}
|
|
331
334
|
try {
|
|
332
|
-
const
|
|
335
|
+
const d = chooseBrowserOrServerEval(c);
|
|
333
336
|
if (s) {
|
|
334
|
-
const
|
|
335
|
-
EvalCache.setCachedValue(
|
|
337
|
+
const f = EvalCache.getCacheKey(c);
|
|
338
|
+
EvalCache.setCachedValue(f, d);
|
|
336
339
|
}
|
|
337
|
-
return
|
|
338
|
-
} catch (
|
|
339
|
-
logger.error("Failed code evaluation: " +
|
|
340
|
+
return d;
|
|
341
|
+
} catch (d) {
|
|
342
|
+
logger.error("Failed code evaluation: " + d.message, {
|
|
340
343
|
code: e
|
|
341
344
|
});
|
|
342
345
|
return;
|
|
@@ -364,7 +367,7 @@ const evaluateBindings = ({
|
|
|
364
367
|
}
|
|
365
368
|
};
|
|
366
369
|
for (const s in e.bindings) {
|
|
367
|
-
const c = e.bindings[s],
|
|
370
|
+
const c = e.bindings[s], d = evaluate({
|
|
368
371
|
code: c,
|
|
369
372
|
localState: n,
|
|
370
373
|
rootState: o,
|
|
@@ -372,7 +375,7 @@ const evaluateBindings = ({
|
|
|
372
375
|
context: t,
|
|
373
376
|
enableCache: !0
|
|
374
377
|
});
|
|
375
|
-
set(a, s,
|
|
378
|
+
set(a, s, d);
|
|
376
379
|
}
|
|
377
380
|
return a;
|
|
378
381
|
};
|
|
@@ -427,6 +430,7 @@ function mapStyleObjToStrIfNeeded(e) {
|
|
|
427
430
|
case "svelte":
|
|
428
431
|
case "vue":
|
|
429
432
|
case "solid":
|
|
433
|
+
case "angular":
|
|
430
434
|
return convertStyleMapToCSSArray(e).join(" ");
|
|
431
435
|
case "qwik":
|
|
432
436
|
case "reactNative":
|
|
@@ -478,20 +482,20 @@ const getComponent = ({
|
|
|
478
482
|
if (!Array.isArray(r))
|
|
479
483
|
return;
|
|
480
484
|
const i = n.collection.split(".").pop(), a = n.itemName || (i ? i + "Item" : "item");
|
|
481
|
-
return r.map((c,
|
|
485
|
+
return r.map((c, d) => ({
|
|
482
486
|
context: {
|
|
483
487
|
...t,
|
|
484
488
|
localState: {
|
|
485
489
|
...t.localState,
|
|
486
|
-
$index:
|
|
490
|
+
$index: d,
|
|
487
491
|
$item: c,
|
|
488
492
|
[a]: c,
|
|
489
|
-
[`$${a}Index`]:
|
|
493
|
+
[`$${a}Index`]: d
|
|
490
494
|
}
|
|
491
495
|
},
|
|
492
496
|
block: o
|
|
493
497
|
}));
|
|
494
|
-
}, SIZES = {
|
|
498
|
+
}, shouldPassLinkComponent = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), shouldPassRegisteredComponents = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), SIZES = {
|
|
495
499
|
small: {
|
|
496
500
|
min: 320,
|
|
497
501
|
default: 321,
|
|
@@ -596,7 +600,7 @@ function BlockStyles(e) {
|
|
|
596
600
|
});
|
|
597
601
|
return checkIsDefined(r.hide) ? !r.hide : checkIsDefined(r.show) ? r.show : !0;
|
|
598
602
|
}, n = function() {
|
|
599
|
-
var
|
|
603
|
+
var m, h, y;
|
|
600
604
|
const r = getProcessedBlock({
|
|
601
605
|
block: e.block,
|
|
602
606
|
localState: e.context.localState,
|
|
@@ -605,47 +609,47 @@ function BlockStyles(e) {
|
|
|
605
609
|
context: e.context.context,
|
|
606
610
|
shouldEvaluateBindings: !0
|
|
607
611
|
}), i = r.responsiveStyles, a = e.context.content, s = getSizesForBreakpoints(
|
|
608
|
-
((
|
|
609
|
-
), c = i == null ? void 0 : i.large,
|
|
610
|
-
if (!
|
|
612
|
+
((m = a == null ? void 0 : a.meta) == null ? void 0 : m.breakpoints) || {}
|
|
613
|
+
), c = i == null ? void 0 : i.large, d = i == null ? void 0 : i.medium, f = i == null ? void 0 : i.small, l = r.id;
|
|
614
|
+
if (!l)
|
|
611
615
|
return "";
|
|
612
|
-
const
|
|
613
|
-
className:
|
|
616
|
+
const u = c ? createCssClass({
|
|
617
|
+
className: l,
|
|
614
618
|
styles: c
|
|
615
|
-
}) : "",
|
|
616
|
-
className:
|
|
617
|
-
styles:
|
|
619
|
+
}) : "", g = d ? createCssClass({
|
|
620
|
+
className: l,
|
|
621
|
+
styles: d,
|
|
618
622
|
mediaQuery: getMaxWidthQueryForSize(
|
|
619
623
|
"medium",
|
|
620
624
|
s
|
|
621
625
|
)
|
|
622
|
-
}) : "",
|
|
623
|
-
className:
|
|
624
|
-
styles:
|
|
626
|
+
}) : "", b = f ? createCssClass({
|
|
627
|
+
className: l,
|
|
628
|
+
styles: f,
|
|
625
629
|
mediaQuery: getMaxWidthQueryForSize(
|
|
626
630
|
"small",
|
|
627
631
|
s
|
|
628
632
|
)
|
|
629
|
-
}) : "",
|
|
630
|
-
let
|
|
631
|
-
if (
|
|
632
|
-
const
|
|
633
|
-
|
|
634
|
-
className: `${
|
|
633
|
+
}) : "", p = r.animations && r.animations.find((S) => S.trigger === "hover");
|
|
634
|
+
let v = "";
|
|
635
|
+
if (p) {
|
|
636
|
+
const S = ((y = (h = p.steps) == null ? void 0 : h[1]) == null ? void 0 : y.styles) || {};
|
|
637
|
+
v = createCssClass({
|
|
638
|
+
className: `${l}:hover`,
|
|
635
639
|
styles: {
|
|
636
|
-
...
|
|
637
|
-
transition: `all ${
|
|
638
|
-
|
|
640
|
+
...S,
|
|
641
|
+
transition: `all ${p.duration}s ${camelCaseToKebabCase(
|
|
642
|
+
p.easing
|
|
639
643
|
)}`,
|
|
640
|
-
transitionDelay:
|
|
644
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
641
645
|
}
|
|
642
646
|
}) || "";
|
|
643
647
|
}
|
|
644
648
|
return [
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
+
u,
|
|
650
|
+
g,
|
|
651
|
+
b,
|
|
652
|
+
v
|
|
649
653
|
].join(" ");
|
|
650
654
|
};
|
|
651
655
|
return /* @__PURE__ */ jsx(Fragment, { children: n() && t() ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(InlinedStyles, { id: "builderio-block", styles: n() }) }) : null });
|
|
@@ -784,7 +788,7 @@ function RepeatedBlock(e) {
|
|
|
784
788
|
);
|
|
785
789
|
}
|
|
786
790
|
function Block(e) {
|
|
787
|
-
var c,
|
|
791
|
+
var c, d, f;
|
|
788
792
|
const t = function() {
|
|
789
793
|
return getComponent({
|
|
790
794
|
block: e.block,
|
|
@@ -797,8 +801,8 @@ function Block(e) {
|
|
|
797
801
|
context: e.context
|
|
798
802
|
});
|
|
799
803
|
}, o = function() {
|
|
800
|
-
var
|
|
801
|
-
return (
|
|
804
|
+
var u;
|
|
805
|
+
return (u = e.block.repeat) != null && u.collection ? e.block : getProcessedBlock({
|
|
802
806
|
block: e.block,
|
|
803
807
|
localState: e.context.localState,
|
|
804
808
|
rootState: e.context.rootState,
|
|
@@ -807,29 +811,29 @@ function Block(e) {
|
|
|
807
811
|
shouldEvaluateBindings: !0
|
|
808
812
|
});
|
|
809
813
|
}, r = function() {
|
|
810
|
-
var
|
|
811
|
-
return e.block.tagName === "a" || ((
|
|
814
|
+
var g;
|
|
815
|
+
return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
812
816
|
}, i = function() {
|
|
813
|
-
var
|
|
814
|
-
if ((
|
|
815
|
-
return !!((
|
|
816
|
-
const
|
|
817
|
-
return ("show" in o() ? o().show : !0) && !
|
|
817
|
+
var b, p;
|
|
818
|
+
if ((b = e.block.repeat) != null && b.collection)
|
|
819
|
+
return !!((p = n()) != null && p.length);
|
|
820
|
+
const u = "hide" in o() ? o().hide : !1;
|
|
821
|
+
return ("show" in o() ? o().show : !0) && !u;
|
|
818
822
|
}, a = function() {
|
|
819
|
-
var
|
|
820
|
-
return !((
|
|
823
|
+
var g;
|
|
824
|
+
return !((g = t()) != null && g.component) && !n() ? o().children ?? [] : [];
|
|
821
825
|
}, s = function() {
|
|
822
|
-
var
|
|
826
|
+
var u, g, b;
|
|
823
827
|
return {
|
|
824
828
|
blockChildren: o().children ?? [],
|
|
825
|
-
componentRef: (
|
|
829
|
+
componentRef: (u = t()) == null ? void 0 : u.component,
|
|
826
830
|
componentOptions: {
|
|
827
831
|
...getBlockComponentOptions(o()),
|
|
828
832
|
builderContext: e.context,
|
|
829
|
-
...(
|
|
833
|
+
...shouldPassLinkComponent(t()) ? {
|
|
830
834
|
builderLinkComponent: e.linkComponent
|
|
831
835
|
} : {},
|
|
832
|
-
...(
|
|
836
|
+
...shouldPassRegisteredComponents(t()) ? {
|
|
833
837
|
builderComponents: e.registeredComponents
|
|
834
838
|
} : {}
|
|
835
839
|
},
|
|
@@ -837,8 +841,8 @@ function Block(e) {
|
|
|
837
841
|
linkComponent: e.linkComponent,
|
|
838
842
|
registeredComponents: e.registeredComponents,
|
|
839
843
|
builderBlock: o(),
|
|
840
|
-
includeBlockProps: ((
|
|
841
|
-
isInteractive: !((
|
|
844
|
+
includeBlockProps: ((g = t()) == null ? void 0 : g.noWrap) === !0,
|
|
845
|
+
isInteractive: !((b = t()) != null && b.isRSC)
|
|
842
846
|
};
|
|
843
847
|
};
|
|
844
848
|
return /* @__PURE__ */ jsx(Fragment, { children: i() ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -856,15 +860,15 @@ function Block(e) {
|
|
|
856
860
|
includeBlockProps: s().includeBlockProps,
|
|
857
861
|
isInteractive: s().isInteractive
|
|
858
862
|
}
|
|
859
|
-
) }) : /* @__PURE__ */ jsx(Fragment, { children: n() ? /* @__PURE__ */ jsx(Fragment, { children: (
|
|
863
|
+
) }) : /* @__PURE__ */ jsx(Fragment, { children: n() ? /* @__PURE__ */ jsx(Fragment, { children: (f = n()) == null ? void 0 : f.map((l, u) => /* @__PURE__ */ jsx(
|
|
860
864
|
RepeatedBlock,
|
|
861
865
|
{
|
|
862
|
-
repeatContext:
|
|
863
|
-
block:
|
|
866
|
+
repeatContext: l.context,
|
|
867
|
+
block: l.block,
|
|
864
868
|
registeredComponents: e.registeredComponents,
|
|
865
869
|
linkComponent: e.linkComponent
|
|
866
870
|
},
|
|
867
|
-
|
|
871
|
+
u
|
|
868
872
|
)) }) : /* @__PURE__ */ jsxs(
|
|
869
873
|
BlockWrapper,
|
|
870
874
|
{
|
|
@@ -887,15 +891,15 @@ function Block(e) {
|
|
|
887
891
|
isInteractive: s().isInteractive
|
|
888
892
|
}
|
|
889
893
|
),
|
|
890
|
-
(
|
|
894
|
+
(d = a()) == null ? void 0 : d.map((l) => /* @__PURE__ */ jsx(
|
|
891
895
|
Block,
|
|
892
896
|
{
|
|
893
|
-
block:
|
|
897
|
+
block: l,
|
|
894
898
|
registeredComponents: e.registeredComponents,
|
|
895
899
|
linkComponent: e.linkComponent,
|
|
896
900
|
context: e.context
|
|
897
901
|
},
|
|
898
|
-
|
|
902
|
+
l.id
|
|
899
903
|
))
|
|
900
904
|
]
|
|
901
905
|
}
|
|
@@ -926,67 +930,70 @@ function Blocks(e) {
|
|
|
926
930
|
}
|
|
927
931
|
);
|
|
928
932
|
}
|
|
933
|
+
const getColumnsClass = (e) => `builder-columns ${e}-breakpoints`;
|
|
929
934
|
function Columns(e) {
|
|
930
|
-
var
|
|
931
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", r = function(
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
desktopStyle: b
|
|
940
|
-
}) {
|
|
941
|
-
return o === "tablet" ? l : b;
|
|
935
|
+
var p, v;
|
|
936
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", r = function(h) {
|
|
937
|
+
return h.link ? e.builderLinkComponent || "a" : "div";
|
|
938
|
+
}, i = function(h) {
|
|
939
|
+
var y;
|
|
940
|
+
return ((y = n[h]) == null ? void 0 : y.width) || 100 / n.length;
|
|
941
|
+
}, a = function(h) {
|
|
942
|
+
const y = t * (n.length - 1) / n.length;
|
|
943
|
+
return `calc(${i(h)}% - ${y}px)`;
|
|
942
944
|
}, s = function({
|
|
943
|
-
stackedStyle:
|
|
944
|
-
desktopStyle:
|
|
945
|
+
stackedStyle: h,
|
|
946
|
+
desktopStyle: y
|
|
947
|
+
}) {
|
|
948
|
+
return o === "tablet" ? h : y;
|
|
949
|
+
}, c = function({
|
|
950
|
+
stackedStyle: h,
|
|
951
|
+
desktopStyle: y
|
|
945
952
|
}) {
|
|
946
|
-
return o === "never" ?
|
|
947
|
-
},
|
|
953
|
+
return o === "never" ? y : h;
|
|
954
|
+
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", f = function() {
|
|
948
955
|
return {
|
|
949
|
-
"--flex-dir":
|
|
950
|
-
"--flex-dir-tablet":
|
|
951
|
-
stackedStyle:
|
|
956
|
+
"--flex-dir": d,
|
|
957
|
+
"--flex-dir-tablet": s({
|
|
958
|
+
stackedStyle: d,
|
|
952
959
|
desktopStyle: "row"
|
|
953
960
|
})
|
|
954
961
|
};
|
|
955
|
-
},
|
|
956
|
-
const
|
|
962
|
+
}, l = function(h) {
|
|
963
|
+
const y = h === 0 ? 0 : t, S = a(h), C = `${y}px`, I = "100%", x = 0;
|
|
957
964
|
return {
|
|
958
965
|
...{
|
|
959
966
|
display: "flex",
|
|
960
967
|
flexDirection: "column",
|
|
961
968
|
alignItems: "stretch"
|
|
962
969
|
},
|
|
963
|
-
width:
|
|
964
|
-
["marginLeft"]:
|
|
965
|
-
"--column-width-mobile":
|
|
966
|
-
stackedStyle:
|
|
967
|
-
desktopStyle: p
|
|
968
|
-
}),
|
|
969
|
-
"--column-margin-left-mobile": s({
|
|
970
|
-
stackedStyle: y,
|
|
970
|
+
width: S,
|
|
971
|
+
["marginLeft"]: C,
|
|
972
|
+
"--column-width-mobile": c({
|
|
973
|
+
stackedStyle: I,
|
|
971
974
|
desktopStyle: S
|
|
972
975
|
}),
|
|
973
|
-
"--column-
|
|
974
|
-
stackedStyle:
|
|
975
|
-
desktopStyle:
|
|
976
|
+
"--column-margin-left-mobile": c({
|
|
977
|
+
stackedStyle: x,
|
|
978
|
+
desktopStyle: C
|
|
976
979
|
}),
|
|
977
|
-
"--column-
|
|
978
|
-
stackedStyle:
|
|
980
|
+
"--column-width-tablet": s({
|
|
981
|
+
stackedStyle: I,
|
|
979
982
|
desktopStyle: S
|
|
983
|
+
}),
|
|
984
|
+
"--column-margin-left-tablet": s({
|
|
985
|
+
stackedStyle: x,
|
|
986
|
+
desktopStyle: C
|
|
980
987
|
})
|
|
981
988
|
};
|
|
982
|
-
},
|
|
983
|
-
var
|
|
989
|
+
}, u = function(h) {
|
|
990
|
+
var S, C;
|
|
984
991
|
return getSizesForBreakpoints(
|
|
985
|
-
((
|
|
986
|
-
)[
|
|
987
|
-
},
|
|
992
|
+
((C = (S = e.builderContext.content) == null ? void 0 : S.meta) == null ? void 0 : C.breakpoints) || {}
|
|
993
|
+
)[h].max;
|
|
994
|
+
}, g = function() {
|
|
988
995
|
return `
|
|
989
|
-
@media (max-width: ${
|
|
996
|
+
@media (max-width: ${u("medium")}px) {
|
|
990
997
|
.${e.builderBlock.id}-breakpoints {
|
|
991
998
|
flex-direction: var(--flex-dir-tablet);
|
|
992
999
|
align-items: stretch;
|
|
@@ -998,7 +1005,7 @@ function Columns(e) {
|
|
|
998
1005
|
}
|
|
999
1006
|
}
|
|
1000
1007
|
|
|
1001
|
-
@media (max-width: ${
|
|
1008
|
+
@media (max-width: ${u("small")}px) {
|
|
1002
1009
|
.${e.builderBlock.id}-breakpoints {
|
|
1003
1010
|
flex-direction: var(--flex-dir);
|
|
1004
1011
|
align-items: stretch;
|
|
@@ -1010,31 +1017,33 @@ function Columns(e) {
|
|
|
1010
1017
|
}
|
|
1011
1018
|
},
|
|
1012
1019
|
`;
|
|
1020
|
+
}, b = function(h, y) {
|
|
1021
|
+
return {
|
|
1022
|
+
...h.link ? {
|
|
1023
|
+
href: h.link
|
|
1024
|
+
} : {},
|
|
1025
|
+
[getClassPropName()]: "builder-column",
|
|
1026
|
+
style: mapStyleObjToStrIfNeeded(l(y))
|
|
1027
|
+
};
|
|
1013
1028
|
};
|
|
1014
1029
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1015
1030
|
/* @__PURE__ */ jsxs(
|
|
1016
1031
|
"div",
|
|
1017
1032
|
{
|
|
1018
|
-
className:
|
|
1019
|
-
style:
|
|
1033
|
+
className: getColumnsClass((p = e.builderBlock) == null ? void 0 : p.id) + " div-2651dce4",
|
|
1034
|
+
style: f(),
|
|
1020
1035
|
children: [
|
|
1021
|
-
/* @__PURE__ */ jsx(InlinedStyles, { id: "builderio-columns", styles:
|
|
1022
|
-
(
|
|
1036
|
+
/* @__PURE__ */ jsx(InlinedStyles, { id: "builderio-columns", styles: g() }),
|
|
1037
|
+
(v = e.columns) == null ? void 0 : v.map((m, h) => /* @__PURE__ */ jsx(
|
|
1023
1038
|
DynamicRenderer,
|
|
1024
1039
|
{
|
|
1025
|
-
TagName: m
|
|
1040
|
+
TagName: r(m),
|
|
1026
1041
|
actionAttributes: {},
|
|
1027
|
-
attributes:
|
|
1028
|
-
...m.link ? {
|
|
1029
|
-
href: m.link
|
|
1030
|
-
} : {},
|
|
1031
|
-
[getClassPropName()]: "builder-column",
|
|
1032
|
-
style: mapStyleObjToStrIfNeeded(g(l))
|
|
1033
|
-
},
|
|
1042
|
+
attributes: b(m, h),
|
|
1034
1043
|
children: /* @__PURE__ */ jsx(
|
|
1035
1044
|
Blocks,
|
|
1036
1045
|
{
|
|
1037
|
-
path: `component.options.columns.${
|
|
1046
|
+
path: `component.options.columns.${h}.blocks`,
|
|
1038
1047
|
parent: e.builderBlock.id,
|
|
1039
1048
|
styleProp: {
|
|
1040
1049
|
flexGrow: "1"
|
|
@@ -1046,12 +1055,12 @@ function Columns(e) {
|
|
|
1046
1055
|
}
|
|
1047
1056
|
)
|
|
1048
1057
|
},
|
|
1049
|
-
|
|
1058
|
+
h
|
|
1050
1059
|
))
|
|
1051
1060
|
]
|
|
1052
1061
|
}
|
|
1053
1062
|
),
|
|
1054
|
-
/* @__PURE__ */ jsx("style", { children: `.div-
|
|
1063
|
+
/* @__PURE__ */ jsx("style", { children: `.div-2651dce4 {
|
|
1055
1064
|
display: flex;
|
|
1056
1065
|
line-height: normal;
|
|
1057
1066
|
}` })
|
|
@@ -1483,15 +1492,15 @@ const getTopLevelDomain = (e) => {
|
|
|
1483
1492
|
onChange: (e) => {
|
|
1484
1493
|
e.delete("srcset"), e.delete("noWebp");
|
|
1485
1494
|
function n(a, s = 6e4) {
|
|
1486
|
-
return new Promise((c,
|
|
1487
|
-
const
|
|
1488
|
-
let
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
},
|
|
1492
|
-
console.warn("Image load failed",
|
|
1493
|
-
}),
|
|
1494
|
-
|
|
1495
|
+
return new Promise((c, d) => {
|
|
1496
|
+
const f = document.createElement("img");
|
|
1497
|
+
let l = !1;
|
|
1498
|
+
f.onload = () => {
|
|
1499
|
+
l = !0, c(f);
|
|
1500
|
+
}, f.addEventListener("error", (u) => {
|
|
1501
|
+
console.warn("Image load failed", u.error), d(u.error);
|
|
1502
|
+
}), f.src = a, setTimeout(() => {
|
|
1503
|
+
l || d(new Error("Image load timed out"));
|
|
1495
1504
|
}, s);
|
|
1496
1505
|
});
|
|
1497
1506
|
}
|
|
@@ -2078,40 +2087,40 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
2078
2087
|
enrich: a,
|
|
2079
2088
|
locale: s,
|
|
2080
2089
|
apiVersion: c = DEFAULT_API_VERSION,
|
|
2081
|
-
fields:
|
|
2082
|
-
omit:
|
|
2083
|
-
offset:
|
|
2084
|
-
cacheSeconds:
|
|
2085
|
-
staleCacheSeconds:
|
|
2086
|
-
sort:
|
|
2087
|
-
includeUnpublished:
|
|
2090
|
+
fields: d,
|
|
2091
|
+
omit: f,
|
|
2092
|
+
offset: l,
|
|
2093
|
+
cacheSeconds: u,
|
|
2094
|
+
staleCacheSeconds: g,
|
|
2095
|
+
sort: b,
|
|
2096
|
+
includeUnpublished: p
|
|
2088
2097
|
} = e;
|
|
2089
2098
|
if (!i)
|
|
2090
2099
|
throw new Error("Missing API key");
|
|
2091
2100
|
if (!["v3"].includes(c))
|
|
2092
2101
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);
|
|
2093
|
-
const
|
|
2094
|
-
if (
|
|
2095
|
-
const
|
|
2096
|
-
sort:
|
|
2102
|
+
const v = t !== 1, m = new URL(`https://cdn.builder.io/api/${c}/content/${r}`);
|
|
2103
|
+
if (m.searchParams.set("apiKey", i), m.searchParams.set("limit", String(t)), m.searchParams.set("noTraverse", String(v)), m.searchParams.set("includeRefs", String(!0)), s && m.searchParams.set("locale", s), a && m.searchParams.set("enrich", String(a)), m.searchParams.set("omit", f || "meta.componentsUsed"), d && m.searchParams.set("fields", d), Number.isFinite(l) && l > -1 && m.searchParams.set("offset", String(Math.floor(l))), typeof p == "boolean" && m.searchParams.set("includeUnpublished", String(p)), u && isPositiveNumber(u) && m.searchParams.set("cacheSeconds", String(u)), g && isPositiveNumber(g) && m.searchParams.set("staleCacheSeconds", String(g)), b) {
|
|
2104
|
+
const S = flatten({
|
|
2105
|
+
sort: b
|
|
2097
2106
|
});
|
|
2098
|
-
for (const
|
|
2099
|
-
|
|
2107
|
+
for (const C in S)
|
|
2108
|
+
m.searchParams.set(C, JSON.stringify(S[C]));
|
|
2100
2109
|
}
|
|
2101
|
-
const
|
|
2110
|
+
const h = {
|
|
2102
2111
|
...getBuilderSearchParamsFromWindow(),
|
|
2103
2112
|
...normalizeSearchParams(e.options || {})
|
|
2104
|
-
},
|
|
2105
|
-
for (const
|
|
2106
|
-
|
|
2107
|
-
if (n &&
|
|
2108
|
-
const
|
|
2113
|
+
}, y = flatten(h);
|
|
2114
|
+
for (const S in y)
|
|
2115
|
+
m.searchParams.set(S, String(y[S]));
|
|
2116
|
+
if (n && m.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
2117
|
+
const S = flatten({
|
|
2109
2118
|
query: o
|
|
2110
2119
|
});
|
|
2111
|
-
for (const
|
|
2112
|
-
|
|
2120
|
+
for (const C in S)
|
|
2121
|
+
m.searchParams.set(C, JSON.stringify(S[C]));
|
|
2113
2122
|
}
|
|
2114
|
-
return
|
|
2123
|
+
return m;
|
|
2115
2124
|
}, checkContentHasResults = (e) => "results" in e;
|
|
2116
2125
|
async function fetchOneEntry(e) {
|
|
2117
2126
|
const t = await fetchEntries({
|
|
@@ -2353,7 +2362,7 @@ function isFromTrustedHost(e, t) {
|
|
|
2353
2362
|
const n = new URL(t.origin), o = n.hostname;
|
|
2354
2363
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
2355
2364
|
}
|
|
2356
|
-
const SDK_VERSION = "0.14.
|
|
2365
|
+
const SDK_VERSION = "0.14.20", registry = {};
|
|
2357
2366
|
function register(e, t) {
|
|
2358
2367
|
let n = registry[e];
|
|
2359
2368
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -2423,33 +2432,33 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2423
2432
|
if (r != null && r.type)
|
|
2424
2433
|
switch (r.type) {
|
|
2425
2434
|
case "builder.evaluate": {
|
|
2426
|
-
const s = r.data.text, c = r.data.arguments || [],
|
|
2427
|
-
let
|
|
2435
|
+
const s = r.data.text, c = r.data.arguments || [], d = r.data.id, f = new Function(s);
|
|
2436
|
+
let l, u = null;
|
|
2428
2437
|
try {
|
|
2429
|
-
|
|
2430
|
-
} catch (
|
|
2431
|
-
|
|
2438
|
+
l = f.apply(null, c);
|
|
2439
|
+
} catch (g) {
|
|
2440
|
+
u = g;
|
|
2432
2441
|
}
|
|
2433
|
-
|
|
2442
|
+
u ? (i = window.parent) == null || i.postMessage({
|
|
2434
2443
|
type: "builder.evaluateError",
|
|
2435
2444
|
data: {
|
|
2436
|
-
id:
|
|
2437
|
-
error:
|
|
2445
|
+
id: d,
|
|
2446
|
+
error: u.message
|
|
2438
2447
|
}
|
|
2439
|
-
}, "*") :
|
|
2440
|
-
var
|
|
2441
|
-
(
|
|
2448
|
+
}, "*") : l && typeof l.then == "function" ? l.then((g) => {
|
|
2449
|
+
var b;
|
|
2450
|
+
(b = window.parent) == null || b.postMessage({
|
|
2442
2451
|
type: "builder.evaluateResult",
|
|
2443
2452
|
data: {
|
|
2444
|
-
id:
|
|
2445
|
-
result:
|
|
2453
|
+
id: d,
|
|
2454
|
+
result: g
|
|
2446
2455
|
}
|
|
2447
2456
|
}, "*");
|
|
2448
2457
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
2449
2458
|
type: "builder.evaluateResult",
|
|
2450
2459
|
data: {
|
|
2451
|
-
result:
|
|
2452
|
-
id:
|
|
2460
|
+
result: l,
|
|
2461
|
+
id: d
|
|
2453
2462
|
}
|
|
2454
2463
|
}, "*");
|
|
2455
2464
|
break;
|
|
@@ -2552,7 +2561,7 @@ font-weight: ${a};
|
|
|
2552
2561
|
text-align: inherit;
|
|
2553
2562
|
font-family: inherit;
|
|
2554
2563
|
}
|
|
2555
|
-
`, getDefaultStyles = (e) => e ? "" : DEFAULT_STYLES
|
|
2564
|
+
`, getDefaultStyles = (e) => e ? "" : DEFAULT_STYLES, getWrapperClassName = (e) => `variant-${e}`;
|
|
2556
2565
|
function ContentStyles(e) {
|
|
2557
2566
|
const t = `
|
|
2558
2567
|
${getCss({
|
|
@@ -2595,7 +2604,7 @@ const getRootStateInitialValue = ({
|
|
|
2595
2604
|
meta: e == null ? void 0 : e.meta
|
|
2596
2605
|
} : void 0;
|
|
2597
2606
|
function ContentComponent(e) {
|
|
2598
|
-
var r, i, a, s, c,
|
|
2607
|
+
var r, i, a, s, c, d, f, l, u;
|
|
2599
2608
|
const t = getUpdateVariantVisibilityScript({
|
|
2600
2609
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2601
2610
|
variationId: (r = e.content) == null ? void 0 : r.testVariationId,
|
|
@@ -2605,11 +2614,11 @@ function ContentComponent(e) {
|
|
|
2605
2614
|
...getDefaultRegisteredComponents(),
|
|
2606
2615
|
...e.customComponents || []
|
|
2607
2616
|
].reduce(
|
|
2608
|
-
(
|
|
2609
|
-
...
|
|
2610
|
-
[
|
|
2611
|
-
component:
|
|
2612
|
-
...serializeComponentInfo(
|
|
2617
|
+
(g, { component: b, ...p }) => ({
|
|
2618
|
+
...g,
|
|
2619
|
+
[p.name]: {
|
|
2620
|
+
component: b,
|
|
2621
|
+
...serializeComponentInfo(p)
|
|
2613
2622
|
}
|
|
2614
2623
|
}),
|
|
2615
2624
|
{}
|
|
@@ -2632,9 +2641,9 @@ function ContentComponent(e) {
|
|
|
2632
2641
|
...getDefaultRegisteredComponents(),
|
|
2633
2642
|
...e.customComponents || []
|
|
2634
2643
|
].reduce(
|
|
2635
|
-
(
|
|
2636
|
-
...
|
|
2637
|
-
[
|
|
2644
|
+
(g, { component: b, ...p }) => ({
|
|
2645
|
+
...g,
|
|
2646
|
+
[p.name]: serializeComponentInfo(p)
|
|
2638
2647
|
}),
|
|
2639
2648
|
{}
|
|
2640
2649
|
),
|
|
@@ -2673,13 +2682,13 @@ function ContentComponent(e) {
|
|
|
2673
2682
|
isNestedRender: e.isNestedRender,
|
|
2674
2683
|
contentId: (a = o.content) == null ? void 0 : a.id,
|
|
2675
2684
|
cssCode: (c = (s = o.content) == null ? void 0 : s.data) == null ? void 0 : c.cssCode,
|
|
2676
|
-
customFonts: (
|
|
2685
|
+
customFonts: (f = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : f.customFonts
|
|
2677
2686
|
}
|
|
2678
2687
|
),
|
|
2679
2688
|
/* @__PURE__ */ jsx(
|
|
2680
2689
|
Blocks,
|
|
2681
2690
|
{
|
|
2682
|
-
blocks: (
|
|
2691
|
+
blocks: (u = (l = o.content) == null ? void 0 : l.data) == null ? void 0 : u.blocks,
|
|
2683
2692
|
context: o,
|
|
2684
2693
|
registeredComponents: n,
|
|
2685
2694
|
linkComponent: e.linkComponent
|
|
@@ -2810,20 +2819,24 @@ const fetchSymbolContent = async ({
|
|
|
2810
2819
|
});
|
|
2811
2820
|
};
|
|
2812
2821
|
async function Symbol$1(e) {
|
|
2813
|
-
var
|
|
2822
|
+
var i, a, s, c, d;
|
|
2814
2823
|
const t = function() {
|
|
2815
|
-
|
|
2824
|
+
return "div";
|
|
2825
|
+
}, n = function() {
|
|
2826
|
+
return "div";
|
|
2827
|
+
}, o = function() {
|
|
2828
|
+
var l, u;
|
|
2816
2829
|
return [
|
|
2817
2830
|
e.attributes[getClassPropName()],
|
|
2818
2831
|
"builder-symbol",
|
|
2819
|
-
(
|
|
2820
|
-
(
|
|
2832
|
+
(l = e.symbol) != null && l.inline ? "builder-inline-symbol" : void 0,
|
|
2833
|
+
(u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2821
2834
|
].filter(Boolean).join(" ");
|
|
2822
|
-
},
|
|
2835
|
+
}, r = ((i = e.symbol) == null ? void 0 : i.content) || await fetchSymbolContent({
|
|
2823
2836
|
symbol: e.symbol,
|
|
2824
2837
|
builderContextValue: e.builderContext
|
|
2825
2838
|
});
|
|
2826
|
-
return /* @__PURE__ */ jsx("div", { ...e.attributes, className:
|
|
2839
|
+
return /* @__PURE__ */ jsx("div", { ...e.attributes, className: o(), children: /* @__PURE__ */ jsx(
|
|
2827
2840
|
ContentVariants,
|
|
2828
2841
|
{
|
|
2829
2842
|
isNestedRender: !0,
|
|
@@ -2831,19 +2844,19 @@ async function Symbol$1(e) {
|
|
|
2831
2844
|
apiKey: e.builderContext.apiKey,
|
|
2832
2845
|
context: {
|
|
2833
2846
|
...e.builderContext.context,
|
|
2834
|
-
symbolId: (
|
|
2847
|
+
symbolId: (a = e.builderBlock) == null ? void 0 : a.id
|
|
2835
2848
|
},
|
|
2836
2849
|
customComponents: Object.values(e.builderComponents),
|
|
2837
2850
|
data: {
|
|
2838
|
-
...(
|
|
2851
|
+
...(s = e.symbol) == null ? void 0 : s.data,
|
|
2839
2852
|
...e.builderContext.localState,
|
|
2840
|
-
...(
|
|
2853
|
+
...(c = r == null ? void 0 : r.data) == null ? void 0 : c.state
|
|
2841
2854
|
},
|
|
2842
|
-
model: (
|
|
2843
|
-
content:
|
|
2855
|
+
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
2856
|
+
content: r,
|
|
2844
2857
|
linkComponent: e.builderLinkComponent,
|
|
2845
|
-
blocksWrapper:
|
|
2846
|
-
contentWrapper:
|
|
2858
|
+
blocksWrapper: t(),
|
|
2859
|
+
contentWrapper: n()
|
|
2847
2860
|
}
|
|
2848
2861
|
) });
|
|
2849
2862
|
}
|
|
@@ -2879,13 +2892,14 @@ const fetchBuilderProps = async (e) => {
|
|
|
2879
2892
|
};
|
|
2880
2893
|
};
|
|
2881
2894
|
export {
|
|
2882
|
-
|
|
2895
|
+
getBuilderSearchParams as A,
|
|
2883
2896
|
Blocks as B,
|
|
2884
2897
|
Columns as C,
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2898
|
+
track as D,
|
|
2899
|
+
subscribeToEditor as E,
|
|
2900
|
+
fetchBuilderProps as F,
|
|
2901
|
+
_processContentResult as G,
|
|
2902
|
+
fetchEntries as H,
|
|
2889
2903
|
Symbol$1 as S,
|
|
2890
2904
|
Text as T,
|
|
2891
2905
|
_track as _,
|
|
@@ -2899,20 +2913,20 @@ export {
|
|
|
2899
2913
|
getDefaultCanTrack as h,
|
|
2900
2914
|
isEmptyElement as i,
|
|
2901
2915
|
isPreviewing as j,
|
|
2902
|
-
|
|
2916
|
+
getWrapperClassName as k,
|
|
2903
2917
|
logger as l,
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2918
|
+
createEditorListener as m,
|
|
2919
|
+
evaluate as n,
|
|
2920
|
+
getInteractionPropertiesForEvent as o,
|
|
2921
|
+
fetch$1 as p,
|
|
2922
|
+
fastClone as q,
|
|
2909
2923
|
registerInsertMenu as r,
|
|
2910
2924
|
setupBrowserForEditing as s,
|
|
2911
2925
|
triggerAnimation as t,
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2926
|
+
createRegisterComponentMessage as u,
|
|
2927
|
+
fetchOneEntry as v,
|
|
2928
|
+
init as w,
|
|
2929
|
+
ContentVariants as x,
|
|
2930
|
+
register as y,
|
|
2931
|
+
setEditorSettings as z
|
|
2918
2932
|
};
|