@builder.io/sdk-vue 1.0.33 → 1.0.36
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/{block-styles-kerUOxgY.js → block-styles-QmmLdzpW.js} +1 -1
- package/lib/browser/{block-styles-gUk9Dzsc.cjs → block-styles-pw_R2yQt.cjs} +1 -1
- package/lib/browser/{block-wrapper-LzC9qaC1.js → block-wrapper-26flngEX.js} +3 -3
- package/lib/browser/{block-wrapper-9bcXRjoR.cjs → block-wrapper-ym7Obdn5.cjs} +1 -1
- package/lib/browser/blocks/form/select/select.vue.d.ts +4 -0
- package/lib/browser/blocks/form/textarea/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/textarea/textarea.vue.d.ts +37 -0
- package/lib/browser/{component-ref-owFZRdew.cjs → component-ref-EJE0BMsw.cjs} +1 -1
- package/lib/browser/{component-ref-xImJQvWl.js → component-ref-f6HeLjzo.js} +2 -2
- package/lib/browser/constants/sdk-name.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/extract-css-var-default-value.d.ts +1 -0
- package/lib/browser/{get-block-properties-yh_xBxaD.js → get-block-properties-bRGCHXAl.js} +1 -1
- package/lib/browser/{get-block-properties-eZL93-0B.cjs → get-block-properties-jhRwh2eR.cjs} +1 -1
- package/lib/browser/{index-WgX1kltZ.cjs → index-B7uwco2M.cjs} +17 -17
- package/lib/browser/{index-Qkz0NE0g.js → index-NLkfEtPh.js} +351 -285
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-WWW34QbC.cjs → repeated-block-9SersTny.cjs} +1 -1
- package/lib/browser/{repeated-block-H8xyyPjB.js → repeated-block-By1JKWmB.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles-fnG6a8X5.js → block-styles-Jd0r8FSA.js} +1 -1
- package/lib/edge/{block-styles-A3nahRJN.cjs → block-styles-_fSdBubU.cjs} +1 -1
- package/lib/{node/block-wrapper-f_jOXgFb.cjs → edge/block-wrapper-A5vScnuu.cjs} +1 -1
- package/lib/edge/{block-wrapper-LdQsnZfv.js → block-wrapper-MRpzh8OH.js} +3 -3
- package/lib/edge/blocks/form/select/select.vue.d.ts +4 -0
- package/lib/edge/blocks/form/textarea/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/textarea/textarea.vue.d.ts +37 -0
- package/lib/{node/component-ref-sD6hZef-.js → edge/component-ref-LJrom_Hw.js} +2 -2
- package/lib/{node/component-ref-U-cvIdGq.cjs → edge/component-ref-t-ZqciWS.cjs} +1 -1
- package/lib/edge/constants/sdk-name.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/extract-css-var-default-value.d.ts +1 -0
- package/lib/edge/{get-block-properties-mGQrxPHc.js → get-block-properties-RUv19U0D.js} +1 -1
- package/lib/edge/{get-block-properties-iZMwLeIw.cjs → get-block-properties-mYCrAhpB.cjs} +1 -1
- package/lib/edge/{index-UdOhGo7m.cjs → index-ZhWTg6tN.cjs} +29 -29
- package/lib/edge/{index-cYhIjhO_.js → index-fmKlzhOA.js} +692 -626
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-j3EbhJD1.cjs → repeated-block-fT6ciF3Y.cjs} +1 -1
- package/lib/edge/{repeated-block-NzAuZ0hs.js → repeated-block-zMex8Hyo.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles-T7p84HtL.cjs → block-styles-PnZ5sEmM.cjs} +1 -1
- package/lib/node/{block-styles-S-Dwi4TP.js → block-styles-ekBqqSDD.js} +1 -1
- package/lib/node/{block-wrapper-6iynCx74.js → block-wrapper-FGDcViUJ.js} +3 -3
- package/lib/{edge/block-wrapper-HpEpqD6-.cjs → node/block-wrapper-VDAcUhC-.cjs} +1 -1
- package/lib/node/blocks/form/select/select.vue.d.ts +4 -0
- package/lib/node/blocks/form/textarea/component-info.d.ts +2 -0
- package/lib/node/blocks/form/textarea/textarea.vue.d.ts +37 -0
- package/lib/{edge/component-ref-WDeHhHcD.js → node/component-ref-Au-JxCpz.js} +2 -2
- package/lib/{edge/component-ref-WKjLqN2Y.cjs → node/component-ref-XxfgsVAO.cjs} +1 -1
- package/lib/node/constants/sdk-name.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/extract-css-var-default-value.d.ts +1 -0
- package/lib/node/{get-block-properties-9-2o1ACI.cjs → get-block-properties-H2mLG2ne.cjs} +1 -1
- package/lib/node/{get-block-properties-ZsDn1lB0.js → get-block-properties-WCuExDS0.js} +1 -1
- package/lib/node/{index-zQlrqnEY.js → index-2FruHdw_.js} +216 -140
- package/lib/node/{index-BvctNQ8U.cjs → index-waRiX7LZ.cjs} +12 -12
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-5Jpy-5o9.cjs → repeated-block-6pZDOeM_.cjs} +1 -1
- package/lib/node/{repeated-block-xt9V5Mgm.js → repeated-block-pn4OjL31.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/blocks/textarea/component-info.d.ts +0 -2
- package/lib/edge/blocks/textarea/component-info.d.ts +0 -2
- package/lib/node/blocks/textarea/component-info.d.ts +0 -2
- /package/lib/browser/blocks/{textarea → form/textarea}/index.d.ts +0 -0
- /package/lib/edge/blocks/{textarea → form/textarea}/index.d.ts +0 -0
- /package/lib/node/blocks/{textarea → form/textarea}/index.d.ts +0 -0
|
@@ -2,9 +2,9 @@ var pt = Object.defineProperty;
|
|
|
2
2
|
var mt = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var oe = (e, t, n) => (mt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import "./style.css";
|
|
5
|
-
import { defineComponent as f, openBlock as d, createElementBlock as
|
|
5
|
+
import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as x, resolveComponent as g, createTextVNode as ht, toDisplayString as ne, defineAsyncComponent as H, createVNode as R, renderList as N, createCommentVNode as S, h as xe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ft } from "vue";
|
|
6
6
|
const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
|
|
7
|
-
function
|
|
7
|
+
function A(e = {}, t, n) {
|
|
8
8
|
const o = {};
|
|
9
9
|
for (const r in e) {
|
|
10
10
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -27,21 +27,21 @@ const yt = f({
|
|
|
27
27
|
return n;
|
|
28
28
|
};
|
|
29
29
|
function kt(e, t, n, o, r, s) {
|
|
30
|
-
return e.isEmptyElement(e.TagName) ? (d(), k(K(e.TagName),
|
|
31
|
-
typeof e.TagName == "string" ? (d(), k(K(e.TagName),
|
|
32
|
-
default:
|
|
33
|
-
|
|
30
|
+
return e.isEmptyElement(e.TagName) ? (d(), k(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (d(), p(I, { key: 0 }, [
|
|
31
|
+
typeof e.TagName == "string" ? (d(), k(K(e.TagName), C({ key: 0 }, e.attributes, P(e.actionAttributes)), {
|
|
32
|
+
default: W(() => [
|
|
33
|
+
x(e.$slots, "default")
|
|
34
34
|
]),
|
|
35
35
|
_: 3
|
|
36
|
-
}, 16)) : (d(), k(K(e.TagName),
|
|
37
|
-
default:
|
|
38
|
-
|
|
36
|
+
}, 16)) : (d(), k(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), {
|
|
37
|
+
default: W(() => [
|
|
38
|
+
x(e.$slots, "default")
|
|
39
39
|
]),
|
|
40
40
|
_: 3
|
|
41
41
|
}, 16))
|
|
42
42
|
], 64));
|
|
43
43
|
}
|
|
44
|
-
const me = /* @__PURE__ */ b(yt, [["render", kt]]),
|
|
44
|
+
const me = /* @__PURE__ */ b(yt, [["render", kt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
45
|
__proto__: null,
|
|
46
46
|
default: me
|
|
47
47
|
}, Symbol.toStringTag, { value: "Module" })), $ = "vue", ee = () => {
|
|
@@ -68,12 +68,12 @@ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Ts = /* @__PURE__ */ Object.
|
|
|
68
68
|
"text"
|
|
69
69
|
],
|
|
70
70
|
data() {
|
|
71
|
-
return { filterAttrs:
|
|
71
|
+
return { filterAttrs: A };
|
|
72
72
|
},
|
|
73
73
|
methods: {
|
|
74
74
|
attrs() {
|
|
75
75
|
return {
|
|
76
|
-
...
|
|
76
|
+
...A(this.attributes, "v-on:", !1),
|
|
77
77
|
[ee()]: `${this.link ? "" : "builder-button"} ${this.attributes[ee()] || ""}`,
|
|
78
78
|
...this.link ? {
|
|
79
79
|
href: this.link,
|
|
@@ -93,7 +93,7 @@ function vt(e, t, n, o, r, s) {
|
|
|
93
93
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
94
94
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
96
|
+
default: W(() => [
|
|
97
97
|
ht(ne(e.text), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
@@ -256,7 +256,7 @@ const Wt = () => {
|
|
|
256
256
|
return !1;
|
|
257
257
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
258
258
|
return e && t && !n ? (B.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;
|
|
259
|
-
}, Nt = (e) => (T() || Wt(), ve(e)),
|
|
259
|
+
}, Nt = (e) => (T() || Wt(), ve(e)), V = class V {
|
|
260
260
|
static getCacheKey(t) {
|
|
261
261
|
return JSON.stringify({
|
|
262
262
|
...t,
|
|
@@ -266,16 +266,16 @@ const Wt = () => {
|
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
static getCachedValue(t) {
|
|
269
|
-
return
|
|
269
|
+
return V.cache.get(t);
|
|
270
270
|
}
|
|
271
271
|
static setCachedValue(t, n) {
|
|
272
|
-
|
|
272
|
+
V.cache.size > 20 && V.cache.delete(V.cache.keys().next().value), V.cache.set(t, {
|
|
273
273
|
value: n
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
|
-
oe(
|
|
278
|
-
let L =
|
|
277
|
+
oe(V, "cacheLimit", 20), oe(V, "cache", /* @__PURE__ */ new Map());
|
|
278
|
+
let L = V;
|
|
279
279
|
function te({
|
|
280
280
|
code: e,
|
|
281
281
|
context: t,
|
|
@@ -456,8 +456,8 @@ function Lt(e) {
|
|
|
456
456
|
leading: !1
|
|
457
457
|
});
|
|
458
458
|
function l(h) {
|
|
459
|
-
const c = h.getBoundingClientRect(),
|
|
460
|
-
return c.bottom > y && c.top <
|
|
459
|
+
const c = h.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
|
|
460
|
+
return c.bottom > y && c.top < m - y;
|
|
461
461
|
}
|
|
462
462
|
const a = e.steps[0].styles;
|
|
463
463
|
function u() {
|
|
@@ -475,7 +475,7 @@ const je = (e) => Object.entries(e).map(([n, o]) => {
|
|
|
475
475
|
if (typeof o == "string")
|
|
476
476
|
return `${he(n)}: ${o};`;
|
|
477
477
|
}).filter(U), Mt = (e) => je(e).join(`
|
|
478
|
-
`),
|
|
478
|
+
`), Ps = ({
|
|
479
479
|
mediaQuery: e,
|
|
480
480
|
className: t,
|
|
481
481
|
styles: n
|
|
@@ -492,7 +492,7 @@ function jt({
|
|
|
492
492
|
}) {
|
|
493
493
|
return e;
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const xs = ({
|
|
496
496
|
block: e,
|
|
497
497
|
context: t
|
|
498
498
|
}) => He(jt({
|
|
@@ -583,22 +583,22 @@ const Ht = ({
|
|
|
583
583
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
584
584
|
e
|
|
585
585
|
), e;
|
|
586
|
-
}), Qt = () => import("./block-styles-
|
|
586
|
+
}), Qt = () => import("./block-styles-QmmLdzpW.js").then((e) => e.default).catch((e) => {
|
|
587
587
|
throw console.error(
|
|
588
588
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
589
589
|
e
|
|
590
590
|
), e;
|
|
591
|
-
}), Xt = () => import("./block-wrapper-
|
|
591
|
+
}), Xt = () => import("./block-wrapper-26flngEX.js").then((e) => e.default).catch((e) => {
|
|
592
592
|
throw console.error(
|
|
593
593
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
594
594
|
e
|
|
595
595
|
), e;
|
|
596
|
-
}), Zt = () => import("./component-ref-
|
|
596
|
+
}), Zt = () => import("./component-ref-f6HeLjzo.js").then((e) => e.default).catch((e) => {
|
|
597
597
|
throw console.error(
|
|
598
598
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
599
599
|
e
|
|
600
600
|
), e;
|
|
601
|
-
}), _t = () => import("./repeated-block-
|
|
601
|
+
}), _t = () => import("./repeated-block-By1JKWmB.js").then((e) => e.default).catch((e) => {
|
|
602
602
|
throw console.error(
|
|
603
603
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
604
604
|
e
|
|
@@ -690,7 +690,7 @@ const Ht = ({
|
|
|
690
690
|
function tn(e, t, n, o, r, s) {
|
|
691
691
|
var c;
|
|
692
692
|
const i = g("BlockStyles"), l = g("ComponentRef"), a = g("Block", !0), u = g("BlockWrapper"), h = g("RepeatedBlock");
|
|
693
|
-
return e.canShowBlock ? (d(),
|
|
693
|
+
return e.canShowBlock ? (d(), p(I, { key: 0 }, [
|
|
694
694
|
R(i, {
|
|
695
695
|
block: e.block,
|
|
696
696
|
context: e.context
|
|
@@ -706,11 +706,11 @@ function tn(e, t, n, o, r, s) {
|
|
|
706
706
|
builderBlock: e.componentRefProps.builderBlock,
|
|
707
707
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
708
708
|
isInteractive: e.componentRefProps.isInteractive
|
|
709
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(),
|
|
710
|
-
e.repeatItem ? (d(!0),
|
|
709
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p(I, { key: 0 }, [
|
|
710
|
+
e.repeatItem ? (d(!0), p(I, { key: 1 }, N(e.repeatItem, (m, v) => (d(), k(h, {
|
|
711
711
|
key: v,
|
|
712
|
-
repeatContext:
|
|
713
|
-
block:
|
|
712
|
+
repeatContext: m.context,
|
|
713
|
+
block: m.block,
|
|
714
714
|
registeredComponents: e.registeredComponents,
|
|
715
715
|
linkComponent: e.linkComponent
|
|
716
716
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(u, {
|
|
@@ -719,7 +719,7 @@ function tn(e, t, n, o, r, s) {
|
|
|
719
719
|
block: e.processedBlock,
|
|
720
720
|
context: e.context
|
|
721
721
|
}, {
|
|
722
|
-
default:
|
|
722
|
+
default: W(() => [
|
|
723
723
|
R(l, {
|
|
724
724
|
componentRef: e.componentRefProps.componentRef,
|
|
725
725
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -731,9 +731,9 @@ function tn(e, t, n, o, r, s) {
|
|
|
731
731
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
732
732
|
isInteractive: e.componentRefProps.isInteractive
|
|
733
733
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
734
|
-
(d(!0),
|
|
735
|
-
key:
|
|
736
|
-
block:
|
|
734
|
+
(d(!0), p(I, null, N(e.childrenWithoutParentComponent, (m, v) => (d(), k(a, {
|
|
735
|
+
key: m.id,
|
|
736
|
+
block: m,
|
|
737
737
|
registeredComponents: e.registeredComponents,
|
|
738
738
|
linkComponent: e.linkComponent,
|
|
739
739
|
context: e.context
|
|
@@ -744,7 +744,7 @@ function tn(e, t, n, o, r, s) {
|
|
|
744
744
|
], 64))
|
|
745
745
|
], 64)) : S("", !0);
|
|
746
746
|
}
|
|
747
|
-
const fe = /* @__PURE__ */ b(en, [["render", tn]]),
|
|
747
|
+
const fe = /* @__PURE__ */ b(en, [["render", tn]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
748
748
|
__proto__: null,
|
|
749
749
|
default: fe
|
|
750
750
|
}, Symbol.toStringTag, { value: "Module" })), nn = f({
|
|
@@ -793,8 +793,8 @@ const fe = /* @__PURE__ */ b(en, [["render", tn]]), Rs = /* @__PURE__ */ Object.
|
|
|
793
793
|
}
|
|
794
794
|
});
|
|
795
795
|
function on(e, t, n, o, r, s) {
|
|
796
|
-
return d(), k(K(e.BlocksWrapper),
|
|
797
|
-
class: e.className + " component-
|
|
796
|
+
return d(), k(K(e.BlocksWrapper), C({
|
|
797
|
+
class: e.className + " component-178o76acnws",
|
|
798
798
|
"builder-path": e.path,
|
|
799
799
|
"builder-parent-id": e.parent,
|
|
800
800
|
style: e.styleProp,
|
|
@@ -802,13 +802,13 @@ function on(e, t, n, o, r, s) {
|
|
|
802
802
|
onMouseEnter: (i) => e.onMouseEnter(),
|
|
803
803
|
onKeyPress: (i) => e.onClick()
|
|
804
804
|
}, { ...e.BlocksWrapperProps }), {
|
|
805
|
-
default:
|
|
806
|
-
|
|
805
|
+
default: W(() => [
|
|
806
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
807
807
|
]),
|
|
808
808
|
_: 3
|
|
809
809
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
810
810
|
}
|
|
811
|
-
const rn = /* @__PURE__ */ b(nn, [["render", on], ["__scopeId", "data-v-
|
|
811
|
+
const rn = /* @__PURE__ */ b(nn, [["render", on], ["__scopeId", "data-v-a5b13ef9"]]), sn = f({
|
|
812
812
|
name: "builder-blocks",
|
|
813
813
|
components: { BlocksWrapper: rn, Block: fe },
|
|
814
814
|
props: [
|
|
@@ -836,8 +836,8 @@ function an(e, t, n, o, r, s) {
|
|
|
836
836
|
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
|
|
837
837
|
BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
838
838
|
}, {
|
|
839
|
-
default:
|
|
840
|
-
e.blocks ? (d(!0),
|
|
839
|
+
default: W(() => [
|
|
840
|
+
e.blocks ? (d(!0), p(I, { key: 0 }, N(e.blocks, (h, c) => (d(), k(i, {
|
|
841
841
|
key: h.id,
|
|
842
842
|
block: h,
|
|
843
843
|
linkComponent: e.linkComponent,
|
|
@@ -853,8 +853,8 @@ const M = /* @__PURE__ */ b(sn, [["render", an]]), ln = f({
|
|
|
853
853
|
props: []
|
|
854
854
|
});
|
|
855
855
|
function cn(e, t, n, o, r, s) {
|
|
856
|
-
return d(),
|
|
857
|
-
|
|
856
|
+
return d(), p("div", null, [
|
|
857
|
+
x(e.$slots, "default")
|
|
858
858
|
]);
|
|
859
859
|
}
|
|
860
860
|
const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -885,7 +885,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
885
885
|
default: 991,
|
|
886
886
|
max: 1200
|
|
887
887
|
}
|
|
888
|
-
},
|
|
888
|
+
}, Vs = (e, t = Ke) => `@media (max-width: ${t[e].max}px)`, un = ({
|
|
889
889
|
small: e,
|
|
890
890
|
medium: t
|
|
891
891
|
}) => {
|
|
@@ -1047,7 +1047,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
1047
1047
|
function hn(e, t, n, o, r, s) {
|
|
1048
1048
|
var u;
|
|
1049
1049
|
const i = g("InlinedStyles"), l = g("Blocks"), a = g("DynamicRenderer");
|
|
1050
|
-
return d(),
|
|
1050
|
+
return d(), p("div", C({
|
|
1051
1051
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
|
|
1052
1052
|
style: e.columnsCssVars()
|
|
1053
1053
|
}, {}), [
|
|
@@ -1056,13 +1056,13 @@ function hn(e, t, n, o, r, s) {
|
|
|
1056
1056
|
id: "builderio-columns",
|
|
1057
1057
|
styles: e.columnsStyles()
|
|
1058
1058
|
}, null, 8, ["styles"])) : S("", !0),
|
|
1059
|
-
(d(!0),
|
|
1059
|
+
(d(!0), p(I, null, N(e.columns, (h, c) => (d(), k(a, {
|
|
1060
1060
|
key: c,
|
|
1061
1061
|
TagName: e.getTagName(h),
|
|
1062
1062
|
actionAttributes: {},
|
|
1063
1063
|
attributes: e.getAttributes(h, c)
|
|
1064
1064
|
}, {
|
|
1065
|
-
default:
|
|
1065
|
+
default: W(() => [
|
|
1066
1066
|
R(l, {
|
|
1067
1067
|
path: `component.options.columns.${c}.blocks`,
|
|
1068
1068
|
parent: e.builderBlock.id,
|
|
@@ -1084,8 +1084,8 @@ const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-27a4dde0
|
|
|
1084
1084
|
props: []
|
|
1085
1085
|
});
|
|
1086
1086
|
function gn(e, t, n, o, r, s) {
|
|
1087
|
-
return d(),
|
|
1088
|
-
|
|
1087
|
+
return d(), p("span", null, [
|
|
1088
|
+
x(e.$slots, "default")
|
|
1089
1089
|
]);
|
|
1090
1090
|
}
|
|
1091
1091
|
const yn = /* @__PURE__ */ b(bn, [["render", gn]]);
|
|
@@ -1172,9 +1172,9 @@ const vn = f({
|
|
|
1172
1172
|
};
|
|
1173
1173
|
function In(e, t, n, o, r, s) {
|
|
1174
1174
|
var i, l, a, u, h, c;
|
|
1175
|
-
return d(),
|
|
1175
|
+
return d(), p(I, null, [
|
|
1176
1176
|
z("picture", null, [
|
|
1177
|
-
e.webpSrcSet ? (d(),
|
|
1177
|
+
e.webpSrcSet ? (d(), p("source", {
|
|
1178
1178
|
key: 0,
|
|
1179
1179
|
type: "image/webp",
|
|
1180
1180
|
srcset: e.webpSrcSet
|
|
@@ -1197,16 +1197,16 @@ function In(e, t, n, o, r, s) {
|
|
|
1197
1197
|
sizes: e.sizes
|
|
1198
1198
|
}, null, 14, wn)
|
|
1199
1199
|
]),
|
|
1200
|
-
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (d(),
|
|
1200
|
+
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (d(), p("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
1202
|
class: "builder-image-sizer div-1pl23ac79ld",
|
|
1203
1203
|
style: D({
|
|
1204
1204
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1205
1205
|
})
|
|
1206
1206
|
}, null, 4)) : S("", !0),
|
|
1207
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1208
|
-
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(),
|
|
1209
|
-
|
|
1207
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1208
|
+
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), p("div", Tn, [
|
|
1209
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
1210
1210
|
])) : S("", !0)
|
|
1211
1211
|
], 64);
|
|
1212
1212
|
}
|
|
@@ -1214,11 +1214,11 @@ const $n = /* @__PURE__ */ b(vn, [["render", In], ["__scopeId", "data-v-0d528855
|
|
|
1214
1214
|
name: "builder-section-component",
|
|
1215
1215
|
props: ["attributes", "maxWidth"],
|
|
1216
1216
|
data() {
|
|
1217
|
-
return { filterAttrs:
|
|
1217
|
+
return { filterAttrs: A };
|
|
1218
1218
|
}
|
|
1219
1219
|
});
|
|
1220
1220
|
function En(e, t, n, o, r, s) {
|
|
1221
|
-
return d(),
|
|
1221
|
+
return d(), p("section", C({
|
|
1222
1222
|
style: {
|
|
1223
1223
|
width: "100%",
|
|
1224
1224
|
alignSelf: "stretch",
|
|
@@ -1231,8 +1231,8 @@ function En(e, t, n, o, r, s) {
|
|
|
1231
1231
|
marginLeft: "auto",
|
|
1232
1232
|
marginRight: "auto"
|
|
1233
1233
|
}
|
|
1234
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1235
|
-
|
|
1234
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1235
|
+
x(e.$slots, "default")
|
|
1236
1236
|
], 16);
|
|
1237
1237
|
}
|
|
1238
1238
|
const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
|
|
@@ -1586,11 +1586,11 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
|
|
|
1586
1586
|
}), Kn = ["data-index", "onClick"];
|
|
1587
1587
|
function qn(e, t, n, o, r, s) {
|
|
1588
1588
|
const i = g("Blocks");
|
|
1589
|
-
return d(),
|
|
1589
|
+
return d(), p("div", {
|
|
1590
1590
|
class: "builder-accordion",
|
|
1591
1591
|
style: D(e.accordionStyles)
|
|
1592
1592
|
}, [
|
|
1593
|
-
(d(!0),
|
|
1593
|
+
(d(!0), p(I, null, N(e.items, (l, a) => (d(), p(I, { key: a }, [
|
|
1594
1594
|
z("div", {
|
|
1595
1595
|
class: J(e.getAccordionTitleClassName(a)),
|
|
1596
1596
|
style: D({
|
|
@@ -1610,7 +1610,7 @@ function qn(e, t, n, o, r, s) {
|
|
|
1610
1610
|
linkComponent: e.builderLinkComponent
|
|
1611
1611
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
1612
1612
|
], 14, Kn),
|
|
1613
|
-
e.open.includes(a) ? (d(),
|
|
1613
|
+
e.open.includes(a) ? (d(), p("div", {
|
|
1614
1614
|
key: 0,
|
|
1615
1615
|
class: J(e.getAccordionDetailClassName(a)),
|
|
1616
1616
|
style: D(e.accordionDetailStyles)
|
|
@@ -1882,7 +1882,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
1882
1882
|
name: "image",
|
|
1883
1883
|
type: "file",
|
|
1884
1884
|
bubble: !0,
|
|
1885
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
1885
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
|
|
1886
1886
|
required: !0,
|
|
1887
1887
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1888
1888
|
onChange: (e) => {
|
|
@@ -1893,8 +1893,8 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
1893
1893
|
let c = !1;
|
|
1894
1894
|
h.onload = () => {
|
|
1895
1895
|
c = !0, a(h);
|
|
1896
|
-
}, h.addEventListener("error", (
|
|
1897
|
-
console.warn("Image load failed",
|
|
1896
|
+
}, h.addEventListener("error", (m) => {
|
|
1897
|
+
console.warn("Image load failed", m.error), u(m.error);
|
|
1898
1898
|
}), h.src = i, setTimeout(() => {
|
|
1899
1899
|
c || u(new Error("Image load timed out"));
|
|
1900
1900
|
}, l);
|
|
@@ -2032,7 +2032,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
2032
2032
|
function eo(e, t, n, o, r, s) {
|
|
2033
2033
|
var l, a, u;
|
|
2034
2034
|
const i = g("Blocks");
|
|
2035
|
-
return d(),
|
|
2035
|
+
return d(), p("div", C(
|
|
2036
2036
|
{ style: {
|
|
2037
2037
|
pointerEvents: "auto"
|
|
2038
2038
|
} },
|
|
@@ -2244,7 +2244,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
|
|
|
2244
2244
|
}), so = ["onClick"], io = { key: 0 };
|
|
2245
2245
|
function ao(e, t, n, o, r, s) {
|
|
2246
2246
|
const i = g("Blocks");
|
|
2247
|
-
return d(),
|
|
2247
|
+
return d(), p("div", null, [
|
|
2248
2248
|
z("div", {
|
|
2249
2249
|
class: "builder-tabs-wrap",
|
|
2250
2250
|
style: D({
|
|
@@ -2254,7 +2254,7 @@ function ao(e, t, n, o, r, s) {
|
|
|
2254
2254
|
overflow: "auto"
|
|
2255
2255
|
})
|
|
2256
2256
|
}, [
|
|
2257
|
-
(d(!0),
|
|
2257
|
+
(d(!0), p(I, null, N(e.tabs, (l, a) => (d(), p("span", {
|
|
2258
2258
|
key: a,
|
|
2259
2259
|
class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2260
2260
|
style: D({
|
|
@@ -2272,7 +2272,7 @@ function ao(e, t, n, o, r, s) {
|
|
|
2272
2272
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2273
2273
|
], 14, so))), 128))
|
|
2274
2274
|
], 4),
|
|
2275
|
-
e.activeTabContent(e.activeTab) ? (d(),
|
|
2275
|
+
e.activeTabContent(e.activeTab) ? (d(), p("div", io, [
|
|
2276
2276
|
R(i, {
|
|
2277
2277
|
parent: e.builderBlock.id,
|
|
2278
2278
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -2308,7 +2308,7 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
|
2308
2308
|
}), po = ["innerHTML"];
|
|
2309
2309
|
function mo(e, t, n, o, r, s) {
|
|
2310
2310
|
var i;
|
|
2311
|
-
return d(),
|
|
2311
|
+
return d(), p("div", {
|
|
2312
2312
|
class: "builder-text",
|
|
2313
2313
|
innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
|
|
2314
2314
|
style: {
|
|
@@ -2374,7 +2374,7 @@ const ho = /* @__PURE__ */ b(uo, [["render", mo]]), fo = {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
}), go = ["innerHTML"];
|
|
2376
2376
|
function yo(e, t, n, o, r, s) {
|
|
2377
|
-
return d(),
|
|
2377
|
+
return d(), p("div", {
|
|
2378
2378
|
ref: "elementRef",
|
|
2379
2379
|
class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2380
2380
|
innerHTML: e.code
|
|
@@ -2391,13 +2391,16 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), So = {
|
|
|
2391
2391
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
2392
2392
|
onChange: (e) => {
|
|
2393
2393
|
const t = e.get("url");
|
|
2394
|
-
if (t)
|
|
2395
|
-
|
|
2394
|
+
if (t) {
|
|
2395
|
+
e.set("content", "Loading...");
|
|
2396
|
+
const n = _iframelyApiKey;
|
|
2397
|
+
return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((o) => o.json()).then((o) => {
|
|
2396
2398
|
e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
|
|
2397
2399
|
}).catch((o) => {
|
|
2398
2400
|
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
2399
2401
|
});
|
|
2400
|
-
|
|
2402
|
+
} else
|
|
2403
|
+
e.delete("content");
|
|
2401
2404
|
}
|
|
2402
2405
|
}, {
|
|
2403
2406
|
name: "content",
|
|
@@ -2449,7 +2452,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), So = {
|
|
|
2449
2452
|
}
|
|
2450
2453
|
}), To = ["innerHTML"];
|
|
2451
2454
|
function Io(e, t, n, o, r, s) {
|
|
2452
|
-
return d(),
|
|
2455
|
+
return d(), p("div", {
|
|
2453
2456
|
class: "builder-embed",
|
|
2454
2457
|
ref: "elem",
|
|
2455
2458
|
innerHTML: e.content
|
|
@@ -2723,7 +2726,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2723
2726
|
formState: "unsubmitted",
|
|
2724
2727
|
responseData: null,
|
|
2725
2728
|
formErrorMessage: "",
|
|
2726
|
-
filterAttrs:
|
|
2729
|
+
filterAttrs: A
|
|
2727
2730
|
};
|
|
2728
2731
|
},
|
|
2729
2732
|
methods: {
|
|
@@ -2752,27 +2755,27 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2752
2755
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
2753
2756
|
let s;
|
|
2754
2757
|
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
|
|
2755
|
-
let
|
|
2758
|
+
let m;
|
|
2756
2759
|
const v = c.name;
|
|
2757
2760
|
if (c instanceof HTMLInputElement)
|
|
2758
2761
|
if (c.type === "radio") {
|
|
2759
2762
|
if (c.checked)
|
|
2760
|
-
return
|
|
2763
|
+
return m = c.name, {
|
|
2761
2764
|
key: v,
|
|
2762
|
-
value:
|
|
2765
|
+
value: m
|
|
2763
2766
|
};
|
|
2764
2767
|
} else if (c.type === "checkbox")
|
|
2765
|
-
|
|
2768
|
+
m = c.checked;
|
|
2766
2769
|
else if (c.type === "number" || c.type === "range") {
|
|
2767
2770
|
const y = c.valueAsNumber;
|
|
2768
|
-
isNaN(y) || (
|
|
2771
|
+
isNaN(y) || (m = y);
|
|
2769
2772
|
} else
|
|
2770
|
-
c.type === "file" ?
|
|
2773
|
+
c.type === "file" ? m = c.files : m = c.value;
|
|
2771
2774
|
else
|
|
2772
|
-
|
|
2775
|
+
m = c.value;
|
|
2773
2776
|
return {
|
|
2774
2777
|
key: v,
|
|
2775
|
-
value:
|
|
2778
|
+
value: m
|
|
2776
2779
|
};
|
|
2777
2780
|
});
|
|
2778
2781
|
let a = this.contentType;
|
|
@@ -2782,8 +2785,8 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2782
2785
|
s = i;
|
|
2783
2786
|
else {
|
|
2784
2787
|
const c = {};
|
|
2785
|
-
Array.from(l).forEach(({ value:
|
|
2786
|
-
Oe(c, v,
|
|
2788
|
+
Array.from(l).forEach(({ value: m, key: v }) => {
|
|
2789
|
+
Oe(c, v, m);
|
|
2787
2790
|
}), s = JSON.stringify(c);
|
|
2788
2791
|
}
|
|
2789
2792
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -2807,19 +2810,19 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2807
2810
|
}
|
|
2808
2811
|
).then(
|
|
2809
2812
|
async (c) => {
|
|
2810
|
-
let
|
|
2813
|
+
let m;
|
|
2811
2814
|
const v = c.headers.get("content-type");
|
|
2812
|
-
if (v && v.indexOf("application/json") !== -1 ?
|
|
2813
|
-
let y = Po(
|
|
2815
|
+
if (v && v.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok && this.errorMessagePath) {
|
|
2816
|
+
let y = Po(m, this.errorMessagePath);
|
|
2814
2817
|
y && (typeof y != "string" && (y = JSON.stringify(y)), this.formErrorMessage = y, this.mergeNewRootState({
|
|
2815
2818
|
formErrorMessage: y
|
|
2816
2819
|
}));
|
|
2817
2820
|
}
|
|
2818
|
-
if (this.responseData =
|
|
2821
|
+
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
2819
2822
|
const y = new CustomEvent("submit:success", {
|
|
2820
2823
|
detail: {
|
|
2821
2824
|
res: c,
|
|
2822
|
-
body:
|
|
2825
|
+
body: m
|
|
2823
2826
|
}
|
|
2824
2827
|
});
|
|
2825
2828
|
if (this.$refs.formRef) {
|
|
@@ -2840,12 +2843,12 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2840
2843
|
}
|
|
2841
2844
|
},
|
|
2842
2845
|
(c) => {
|
|
2843
|
-
const
|
|
2846
|
+
const m = new CustomEvent("submit:error", {
|
|
2844
2847
|
detail: {
|
|
2845
2848
|
error: c
|
|
2846
2849
|
}
|
|
2847
2850
|
});
|
|
2848
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
2851
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented) || (this.responseData = c, this.formState = "error");
|
|
2849
2852
|
}
|
|
2850
2853
|
);
|
|
2851
2854
|
}
|
|
@@ -2853,20 +2856,20 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2853
2856
|
}
|
|
2854
2857
|
}), Ao = ["validate", "action", "method", "name"], Vo = {
|
|
2855
2858
|
key: 3,
|
|
2856
|
-
class: "builder-form-error-text pre-
|
|
2859
|
+
class: "builder-form-error-text pre-3i4ezorcfhi"
|
|
2857
2860
|
};
|
|
2858
2861
|
function Wo(e, t, n, o, r, s) {
|
|
2859
2862
|
var a;
|
|
2860
2863
|
const i = g("Block"), l = g("Blocks");
|
|
2861
|
-
return d(),
|
|
2864
|
+
return d(), p("form", C({
|
|
2862
2865
|
validate: e.validate,
|
|
2863
2866
|
ref: "formRef",
|
|
2864
2867
|
action: !e.sendWithJs && e.action,
|
|
2865
2868
|
method: e.method,
|
|
2866
2869
|
name: e.name,
|
|
2867
2870
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
2868
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
2869
|
-
e.builderBlock && e.builderBlock.children ? (d(!0),
|
|
2871
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2872
|
+
e.builderBlock && e.builderBlock.children ? (d(!0), p(I, { key: 0 }, N((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(i, {
|
|
2870
2873
|
key: `form-block-${e.idx}`,
|
|
2871
2874
|
block: u,
|
|
2872
2875
|
context: e.builderContext,
|
|
@@ -2885,7 +2888,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2885
2888
|
blocks: e.sendingMessage,
|
|
2886
2889
|
context: e.builderContext
|
|
2887
2890
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
2888
|
-
e.submissionState() === "error" && e.responseData ? (d(),
|
|
2891
|
+
e.submissionState() === "error" && e.responseData ? (d(), p("pre", Vo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
2889
2892
|
e.submissionState() === "success" ? (d(), k(l, {
|
|
2890
2893
|
key: 4,
|
|
2891
2894
|
path: "successMessage",
|
|
@@ -2894,7 +2897,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2894
2897
|
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
2895
2898
|
], 16, Ao);
|
|
2896
2899
|
}
|
|
2897
|
-
const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-
|
|
2900
|
+
const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7"]]), Fo = {
|
|
2898
2901
|
name: "Form:Input",
|
|
2899
2902
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2900
2903
|
inputs: [
|
|
@@ -2957,11 +2960,11 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-6e18f21b
|
|
|
2957
2960
|
"required"
|
|
2958
2961
|
],
|
|
2959
2962
|
data() {
|
|
2960
|
-
return { isEditing: E, filterAttrs:
|
|
2963
|
+
return { isEditing: E, filterAttrs: A };
|
|
2961
2964
|
}
|
|
2962
2965
|
}), Do = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
2963
2966
|
function Uo(e, t, n, o, r, s) {
|
|
2964
|
-
return d(),
|
|
2967
|
+
return d(), p("input", C({
|
|
2965
2968
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2966
2969
|
placeholder: e.placeholder,
|
|
2967
2970
|
type: e.type,
|
|
@@ -2969,7 +2972,7 @@ function Uo(e, t, n, o, r, s) {
|
|
|
2969
2972
|
value: e.value,
|
|
2970
2973
|
defaultValue: e.defaultValue,
|
|
2971
2974
|
required: e.required
|
|
2972
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2975
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Do);
|
|
2973
2976
|
}
|
|
2974
2977
|
const Lo = /* @__PURE__ */ b(Oo, [["render", Uo]]), Mo = {
|
|
2975
2978
|
name: "Form:Select",
|
|
@@ -3015,19 +3018,20 @@ const Lo = /* @__PURE__ */ b(Oo, [["render", Uo]]), Mo = {
|
|
|
3015
3018
|
noWrap: !0
|
|
3016
3019
|
}, jo = f({
|
|
3017
3020
|
name: "builder-select-component",
|
|
3018
|
-
props: ["attributes", "value", "defaultValue", "name", "options"],
|
|
3021
|
+
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3019
3022
|
data() {
|
|
3020
|
-
return { isEditing: E, filterAttrs:
|
|
3023
|
+
return { isEditing: E, filterAttrs: A };
|
|
3021
3024
|
}
|
|
3022
|
-
}), Ho = ["value", "defaultValue", "name"], Ko = ["value"];
|
|
3025
|
+
}), Ho = ["value", "defaultValue", "name", "required"], Ko = ["value"];
|
|
3023
3026
|
function qo(e, t, n, o, r, s) {
|
|
3024
|
-
return d(),
|
|
3027
|
+
return d(), p("select", C({
|
|
3025
3028
|
value: e.value,
|
|
3026
3029
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3027
3030
|
defaultValue: e.defaultValue,
|
|
3028
|
-
name: e.name
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
+
name: e.name,
|
|
3032
|
+
required: e.required
|
|
3033
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3034
|
+
(d(!0), p(I, null, N(e.options, (i, l) => (d(), p("option", {
|
|
3031
3035
|
key: `${i.name}-${l}`,
|
|
3032
3036
|
value: i.value
|
|
3033
3037
|
}, ne(i.name || i.value), 9, Ko))), 128))
|
|
@@ -3062,13 +3066,72 @@ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
|
|
|
3062
3066
|
name: "builder-submit-button",
|
|
3063
3067
|
props: ["attributes", "text"],
|
|
3064
3068
|
data() {
|
|
3065
|
-
return { filterAttrs:
|
|
3069
|
+
return { filterAttrs: A };
|
|
3066
3070
|
}
|
|
3067
3071
|
});
|
|
3068
3072
|
function Yo(e, t, n, o, r, s) {
|
|
3069
|
-
return d(),
|
|
3073
|
+
return d(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
|
|
3070
3074
|
}
|
|
3071
3075
|
const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
|
|
3076
|
+
name: "Form:TextArea",
|
|
3077
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3078
|
+
inputs: [{
|
|
3079
|
+
advanced: !0,
|
|
3080
|
+
name: "value",
|
|
3081
|
+
type: "string"
|
|
3082
|
+
}, {
|
|
3083
|
+
name: "name",
|
|
3084
|
+
type: "string",
|
|
3085
|
+
required: !0,
|
|
3086
|
+
helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
|
|
3087
|
+
}, {
|
|
3088
|
+
name: "defaultValue",
|
|
3089
|
+
type: "string"
|
|
3090
|
+
}, {
|
|
3091
|
+
name: "placeholder",
|
|
3092
|
+
type: "string",
|
|
3093
|
+
defaultValue: "Hello there"
|
|
3094
|
+
}, {
|
|
3095
|
+
name: "required",
|
|
3096
|
+
type: "boolean",
|
|
3097
|
+
defaultValue: !1
|
|
3098
|
+
}],
|
|
3099
|
+
defaultStyles: {
|
|
3100
|
+
paddingTop: "10px",
|
|
3101
|
+
paddingBottom: "10px",
|
|
3102
|
+
paddingLeft: "10px",
|
|
3103
|
+
paddingRight: "10px",
|
|
3104
|
+
borderRadius: "3px",
|
|
3105
|
+
borderWidth: "1px",
|
|
3106
|
+
borderStyle: "solid",
|
|
3107
|
+
borderColor: "#ccc"
|
|
3108
|
+
},
|
|
3109
|
+
static: !0,
|
|
3110
|
+
noWrap: !0
|
|
3111
|
+
}, Zo = f({
|
|
3112
|
+
name: "builder-textarea",
|
|
3113
|
+
props: [
|
|
3114
|
+
"attributes",
|
|
3115
|
+
"placeholder",
|
|
3116
|
+
"name",
|
|
3117
|
+
"value",
|
|
3118
|
+
"defaultValue",
|
|
3119
|
+
"required"
|
|
3120
|
+
],
|
|
3121
|
+
data() {
|
|
3122
|
+
return { filterAttrs: A };
|
|
3123
|
+
}
|
|
3124
|
+
}), _o = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3125
|
+
function er(e, t, n, o, r, s) {
|
|
3126
|
+
return d(), p("textarea", C({
|
|
3127
|
+
placeholder: e.placeholder,
|
|
3128
|
+
name: e.name,
|
|
3129
|
+
value: e.value,
|
|
3130
|
+
defaultValue: e.defaultValue,
|
|
3131
|
+
required: e.required
|
|
3132
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _o);
|
|
3133
|
+
}
|
|
3134
|
+
const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
|
|
3072
3135
|
// friendlyName?
|
|
3073
3136
|
name: "Raw:Img",
|
|
3074
3137
|
hideFromInsertMenu: !0,
|
|
@@ -3082,7 +3145,7 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
|
|
|
3082
3145
|
}],
|
|
3083
3146
|
noWrap: !0,
|
|
3084
3147
|
static: !0
|
|
3085
|
-
},
|
|
3148
|
+
}, or = f({
|
|
3086
3149
|
name: "builder-img-component",
|
|
3087
3150
|
props: [
|
|
3088
3151
|
"backgroundSize",
|
|
@@ -3093,11 +3156,11 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
|
|
|
3093
3156
|
"attributes"
|
|
3094
3157
|
],
|
|
3095
3158
|
data() {
|
|
3096
|
-
return { isEditing: E, filterAttrs:
|
|
3159
|
+
return { isEditing: E, filterAttrs: A };
|
|
3097
3160
|
}
|
|
3098
|
-
}),
|
|
3099
|
-
function
|
|
3100
|
-
return d(),
|
|
3161
|
+
}), rr = ["alt", "src"];
|
|
3162
|
+
function sr(e, t, n, o, r, s) {
|
|
3163
|
+
return d(), p("img", C({
|
|
3101
3164
|
style: {
|
|
3102
3165
|
objectFit: e.backgroundSize || "cover",
|
|
3103
3166
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -3105,9 +3168,9 @@ function er(e, t, n, o, r, s) {
|
|
|
3105
3168
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3106
3169
|
alt: e.altText,
|
|
3107
3170
|
src: e.imgSrc || e.image
|
|
3108
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3171
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, rr);
|
|
3109
3172
|
}
|
|
3110
|
-
const
|
|
3173
|
+
const ir = /* @__PURE__ */ b(or, [["render", sr]]), ar = {
|
|
3111
3174
|
name: "Video",
|
|
3112
3175
|
canHaveChildren: !0,
|
|
3113
3176
|
defaultStyles: {
|
|
@@ -3188,7 +3251,7 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
|
|
|
3188
3251
|
defaultValue: !0,
|
|
3189
3252
|
advanced: !0
|
|
3190
3253
|
}]
|
|
3191
|
-
},
|
|
3254
|
+
}, lr = f({
|
|
3192
3255
|
name: "builder-video",
|
|
3193
3256
|
props: [
|
|
3194
3257
|
"autoPlay",
|
|
@@ -3233,16 +3296,16 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
|
|
|
3233
3296
|
};
|
|
3234
3297
|
}
|
|
3235
3298
|
}
|
|
3236
|
-
}),
|
|
3299
|
+
}), cr = { style: {
|
|
3237
3300
|
position: "relative"
|
|
3238
|
-
} },
|
|
3301
|
+
} }, dr = ["preload", "src", "poster"], ur = ["src"], pr = {
|
|
3239
3302
|
key: 1,
|
|
3240
3303
|
style: {
|
|
3241
3304
|
display: "flex",
|
|
3242
3305
|
flexDirection: "column",
|
|
3243
3306
|
alignItems: "stretch"
|
|
3244
3307
|
}
|
|
3245
|
-
},
|
|
3308
|
+
}, mr = {
|
|
3246
3309
|
key: 2,
|
|
3247
3310
|
style: {
|
|
3248
3311
|
pointerEvents: "none",
|
|
@@ -3256,10 +3319,10 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
|
|
|
3256
3319
|
height: "100%"
|
|
3257
3320
|
}
|
|
3258
3321
|
};
|
|
3259
|
-
function
|
|
3260
|
-
var i, l, a, u, h, c,
|
|
3261
|
-
return d(),
|
|
3262
|
-
z("video",
|
|
3322
|
+
function hr(e, t, n, o, r, s) {
|
|
3323
|
+
var i, l, a, u, h, c, m;
|
|
3324
|
+
return d(), p("div", cr, [
|
|
3325
|
+
z("video", C({
|
|
3263
3326
|
class: "builder-video",
|
|
3264
3327
|
preload: e.preload || "metadata",
|
|
3265
3328
|
style: {
|
|
@@ -3279,13 +3342,13 @@ function cr(e, t, n, o, r, s) {
|
|
|
3279
3342
|
src: e.video || "no-src",
|
|
3280
3343
|
poster: e.posterImage
|
|
3281
3344
|
}, e.spreadProps), [
|
|
3282
|
-
e.lazyLoad ? S("", !0) : (d(),
|
|
3345
|
+
e.lazyLoad ? S("", !0) : (d(), p("source", {
|
|
3283
3346
|
key: 0,
|
|
3284
3347
|
type: "video/mp4",
|
|
3285
3348
|
src: e.video
|
|
3286
|
-
}, null, 8,
|
|
3287
|
-
], 16,
|
|
3288
|
-
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(),
|
|
3349
|
+
}, null, 8, ur))
|
|
3350
|
+
], 16, dr),
|
|
3351
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), p("div", {
|
|
3289
3352
|
key: 0,
|
|
3290
3353
|
style: D({
|
|
3291
3354
|
width: "100%",
|
|
@@ -3294,15 +3357,15 @@ function cr(e, t, n, o, r, s) {
|
|
|
3294
3357
|
fontSize: "0px"
|
|
3295
3358
|
})
|
|
3296
3359
|
}, null, 4)) : S("", !0),
|
|
3297
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(),
|
|
3298
|
-
|
|
3360
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), p("div", pr, [
|
|
3361
|
+
x(e.$slots, "default")
|
|
3299
3362
|
])) : S("", !0),
|
|
3300
|
-
(
|
|
3301
|
-
|
|
3363
|
+
(m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && !e.fitContent ? (d(), p("div", mr, [
|
|
3364
|
+
x(e.$slots, "default")
|
|
3302
3365
|
])) : S("", !0)
|
|
3303
3366
|
]);
|
|
3304
3367
|
}
|
|
3305
|
-
const
|
|
3368
|
+
const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
|
|
3306
3369
|
component: ko,
|
|
3307
3370
|
...fo
|
|
3308
3371
|
}, {
|
|
@@ -3324,8 +3387,11 @@ const dr = /* @__PURE__ */ b(or, [["render", cr]]), ur = () => [{
|
|
|
3324
3387
|
component: tr,
|
|
3325
3388
|
...Xo
|
|
3326
3389
|
}, {
|
|
3327
|
-
component:
|
|
3390
|
+
component: ir,
|
|
3328
3391
|
...nr
|
|
3392
|
+
}, {
|
|
3393
|
+
component: fr,
|
|
3394
|
+
...ar
|
|
3329
3395
|
}], we = () => [{
|
|
3330
3396
|
component: Ct,
|
|
3331
3397
|
...Jn
|
|
@@ -3345,7 +3411,7 @@ const dr = /* @__PURE__ */ b(or, [["render", cr]]), ur = () => [{
|
|
|
3345
3411
|
component: to,
|
|
3346
3412
|
...Zn
|
|
3347
3413
|
}, {
|
|
3348
|
-
component:
|
|
3414
|
+
component: Is,
|
|
3349
3415
|
...no
|
|
3350
3416
|
}, {
|
|
3351
3417
|
component: ho,
|
|
@@ -3356,22 +3422,22 @@ const dr = /* @__PURE__ */ b(or, [["render", cr]]), ur = () => [{
|
|
|
3356
3422
|
}, {
|
|
3357
3423
|
component: zn,
|
|
3358
3424
|
...Mn
|
|
3359
|
-
}, ...
|
|
3425
|
+
}, ...br()], gr = (e) => ({
|
|
3360
3426
|
type: "builder.registerComponent",
|
|
3361
3427
|
data: de(e)
|
|
3362
|
-
}),
|
|
3428
|
+
}), yr = (e) => {
|
|
3363
3429
|
const t = e.toString().trim();
|
|
3364
3430
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
3365
|
-
},
|
|
3431
|
+
}, kr = (e) => typeof e == "function" ? yr(e) : Y(e), de = ({
|
|
3366
3432
|
inputs: e,
|
|
3367
3433
|
...t
|
|
3368
3434
|
}) => ({
|
|
3369
3435
|
...Y(t),
|
|
3370
3436
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
3371
3437
|
...o,
|
|
3372
|
-
[r]:
|
|
3438
|
+
[r]: kr(s)
|
|
3373
3439
|
}), {}))
|
|
3374
|
-
}),
|
|
3440
|
+
}), Sr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3375
3441
|
function getAndSetVariantId() {
|
|
3376
3442
|
function setCookie(name, value, days) {
|
|
3377
3443
|
let expires = '';
|
|
@@ -3427,7 +3493,7 @@ const dr = /* @__PURE__ */ b(or, [["render", cr]]), ur = () => [{
|
|
|
3427
3493
|
}).join('');
|
|
3428
3494
|
styleEl.innerHTML = newStyleStr;
|
|
3429
3495
|
}
|
|
3430
|
-
}`,
|
|
3496
|
+
}`, vr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3431
3497
|
if (!navigator.cookieEnabled) {
|
|
3432
3498
|
return;
|
|
3433
3499
|
}
|
|
@@ -3465,16 +3531,16 @@ const dr = /* @__PURE__ */ b(or, [["render", cr]]), ur = () => [{
|
|
|
3465
3531
|
...t,
|
|
3466
3532
|
testVariationId: t.id,
|
|
3467
3533
|
id: e == null ? void 0 : e.id
|
|
3468
|
-
})),
|
|
3534
|
+
})), Cr = ({
|
|
3469
3535
|
canTrack: e,
|
|
3470
3536
|
content: t
|
|
3471
|
-
}) => !(!(_(t).length > 0) || !e),
|
|
3472
|
-
window.${Xe} = ${
|
|
3473
|
-
window.${Ze} = ${
|
|
3474
|
-
`,
|
|
3537
|
+
}) => !(!(_(t).length > 0) || !e), wr = (e) => e === "react" || e === "reactNative", _e = wr($), Tr = () => `
|
|
3538
|
+
window.${Xe} = ${Sr}
|
|
3539
|
+
window.${Ze} = ${vr}
|
|
3540
|
+
`, Ir = (e, t) => `
|
|
3475
3541
|
window.${Xe}(
|
|
3476
3542
|
"${t}",${JSON.stringify(e)}, ${_e}
|
|
3477
|
-
)`,
|
|
3543
|
+
)`, $r = ({
|
|
3478
3544
|
contentId: e,
|
|
3479
3545
|
variationId: t
|
|
3480
3546
|
}) => `window.${Ze}(
|
|
@@ -3489,17 +3555,17 @@ const dr = /* @__PURE__ */ b(or, [["render", cr]]), ur = () => [{
|
|
|
3489
3555
|
name: "inlined-script",
|
|
3490
3556
|
props: ["scriptStr", "id"]
|
|
3491
3557
|
});
|
|
3492
|
-
function
|
|
3558
|
+
function Rr() {
|
|
3493
3559
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
3494
3560
|
}
|
|
3495
|
-
function
|
|
3496
|
-
const e =
|
|
3561
|
+
function Er() {
|
|
3562
|
+
const e = Rr().fetch;
|
|
3497
3563
|
if (typeof e > "u")
|
|
3498
3564
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
3499
3565
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
3500
3566
|
return e;
|
|
3501
3567
|
}
|
|
3502
|
-
const tt =
|
|
3568
|
+
const tt = Er();
|
|
3503
3569
|
function ue(e, t = null, n = ".") {
|
|
3504
3570
|
return Object.keys(e).reduce((o, r) => {
|
|
3505
3571
|
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
@@ -3519,17 +3585,17 @@ function nt(e, t, n = {}) {
|
|
|
3519
3585
|
}
|
|
3520
3586
|
return n;
|
|
3521
3587
|
}
|
|
3522
|
-
const
|
|
3588
|
+
const Br = "v3", Te = "builder.", Pr = "options.", ot = (e) => {
|
|
3523
3589
|
if (!e)
|
|
3524
3590
|
return {};
|
|
3525
3591
|
const t = Ve(e), n = {};
|
|
3526
3592
|
return Object.keys(t).forEach((o) => {
|
|
3527
3593
|
if (o.startsWith(Te)) {
|
|
3528
|
-
const r = o.replace(Te, "").replace(
|
|
3594
|
+
const r = o.replace(Te, "").replace(Pr, "");
|
|
3529
3595
|
n[r] = t[o];
|
|
3530
3596
|
}
|
|
3531
3597
|
}), n;
|
|
3532
|
-
},
|
|
3598
|
+
}, xr = () => {
|
|
3533
3599
|
if (!T())
|
|
3534
3600
|
return {};
|
|
3535
3601
|
const e = new URLSearchParams(window.location.search);
|
|
@@ -3543,11 +3609,11 @@ const Tr = "v3", Te = "builder.", Ir = "options.", ot = (e) => {
|
|
|
3543
3609
|
apiKey: s,
|
|
3544
3610
|
enrich: i,
|
|
3545
3611
|
locale: l,
|
|
3546
|
-
apiVersion: a =
|
|
3612
|
+
apiVersion: a = Br,
|
|
3547
3613
|
fields: u,
|
|
3548
3614
|
omit: h,
|
|
3549
3615
|
offset: c,
|
|
3550
|
-
cacheSeconds:
|
|
3616
|
+
cacheSeconds: m,
|
|
3551
3617
|
staleCacheSeconds: v,
|
|
3552
3618
|
sort: y,
|
|
3553
3619
|
includeUnpublished: F
|
|
@@ -3556,40 +3622,40 @@ const Tr = "v3", Te = "builder.", Ir = "options.", ot = (e) => {
|
|
|
3556
3622
|
throw new Error("Missing API key");
|
|
3557
3623
|
if (!["v3"].includes(a))
|
|
3558
3624
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
3559
|
-
const X = t !== 1,
|
|
3560
|
-
if (
|
|
3625
|
+
const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
3626
|
+
if (w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), m && Ie(m) && w.searchParams.set("cacheSeconds", String(m)), v && Ie(v) && w.searchParams.set("staleCacheSeconds", String(v)), y) {
|
|
3561
3627
|
const O = ue({
|
|
3562
3628
|
sort: y
|
|
3563
3629
|
});
|
|
3564
3630
|
for (const j in O)
|
|
3565
|
-
|
|
3631
|
+
w.searchParams.set(j, JSON.stringify(O[j]));
|
|
3566
3632
|
}
|
|
3567
3633
|
const ut = {
|
|
3568
|
-
|
|
3634
|
+
...xr(),
|
|
3569
3635
|
...Ve(e.options || {})
|
|
3570
3636
|
}, Se = ue(ut);
|
|
3571
3637
|
for (const O in Se)
|
|
3572
|
-
|
|
3573
|
-
if (n &&
|
|
3638
|
+
w.searchParams.set(O, String(Se[O]));
|
|
3639
|
+
if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
3574
3640
|
const O = nt({
|
|
3575
3641
|
query: o
|
|
3576
3642
|
});
|
|
3577
3643
|
for (const j in O)
|
|
3578
|
-
|
|
3644
|
+
w.searchParams.set(j, JSON.stringify(O[j]));
|
|
3579
3645
|
}
|
|
3580
|
-
return
|
|
3581
|
-
},
|
|
3646
|
+
return w;
|
|
3647
|
+
}, Ar = (e) => "results" in e;
|
|
3582
3648
|
async function ke(e) {
|
|
3583
|
-
const t = await
|
|
3649
|
+
const t = await Nr({
|
|
3584
3650
|
...e,
|
|
3585
3651
|
limit: 1
|
|
3586
3652
|
});
|
|
3587
3653
|
return t && t[0] || null;
|
|
3588
3654
|
}
|
|
3589
|
-
const
|
|
3655
|
+
const Vr = async (e) => {
|
|
3590
3656
|
const t = ye(e);
|
|
3591
3657
|
return await (await (e.fetch ?? tt)(t.href, e.fetchOptions)).json();
|
|
3592
|
-
},
|
|
3658
|
+
}, Wr = async (e, t, n = ye(e)) => {
|
|
3593
3659
|
const o = G(e.canTrack);
|
|
3594
3660
|
if (n.search.includes("preview="), !o || !(T() || $ === "reactNative"))
|
|
3595
3661
|
return t.results;
|
|
@@ -3606,10 +3672,10 @@ const Er = async (e) => {
|
|
|
3606
3672
|
}
|
|
3607
3673
|
return t.results;
|
|
3608
3674
|
};
|
|
3609
|
-
async function
|
|
3675
|
+
async function Nr(e) {
|
|
3610
3676
|
try {
|
|
3611
|
-
const t = ye(e), n = await
|
|
3612
|
-
return
|
|
3677
|
+
const t = ye(e), n = await Vr(e);
|
|
3678
|
+
return Ar(n) ? Wr(e, n) : (B.error("Error fetching data. ", {
|
|
3613
3679
|
url: t,
|
|
3614
3680
|
content: n,
|
|
3615
3681
|
options: e
|
|
@@ -3618,20 +3684,20 @@ async function Pr(e) {
|
|
|
3618
3684
|
return B.error("Error fetching data. ", t), null;
|
|
3619
3685
|
}
|
|
3620
3686
|
}
|
|
3621
|
-
function
|
|
3687
|
+
function Fr(e) {
|
|
3622
3688
|
const t = e || (T() ? window.location.search : void 0);
|
|
3623
3689
|
return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3624
3690
|
}
|
|
3625
|
-
function
|
|
3691
|
+
function Or() {
|
|
3626
3692
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
3627
3693
|
const t = Math.random() * 16 | 0;
|
|
3628
3694
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
3629
3695
|
});
|
|
3630
3696
|
}
|
|
3631
3697
|
function rt() {
|
|
3632
|
-
return
|
|
3698
|
+
return Or().replace(/-/g, "");
|
|
3633
3699
|
}
|
|
3634
|
-
const st = "builderSessionId",
|
|
3700
|
+
const st = "builderSessionId", Dr = async ({
|
|
3635
3701
|
canTrack: e
|
|
3636
3702
|
}) => {
|
|
3637
3703
|
if (!e)
|
|
@@ -3643,20 +3709,20 @@ const st = "builderSessionId", Vr = async ({
|
|
|
3643
3709
|
if (U(t))
|
|
3644
3710
|
return t;
|
|
3645
3711
|
{
|
|
3646
|
-
const n =
|
|
3647
|
-
return
|
|
3712
|
+
const n = Ur();
|
|
3713
|
+
return Lr({
|
|
3648
3714
|
id: n,
|
|
3649
3715
|
canTrack: e
|
|
3650
3716
|
}), n;
|
|
3651
3717
|
}
|
|
3652
|
-
},
|
|
3718
|
+
}, Ur = () => rt(), Lr = ({
|
|
3653
3719
|
id: e,
|
|
3654
3720
|
canTrack: t
|
|
3655
3721
|
}) => Je({
|
|
3656
3722
|
name: st,
|
|
3657
3723
|
value: e,
|
|
3658
3724
|
canTrack: t
|
|
3659
|
-
}), it = () => T() && typeof localStorage < "u" ? localStorage : void 0,
|
|
3725
|
+
}), it = () => T() && typeof localStorage < "u" ? localStorage : void 0, Mr = ({
|
|
3660
3726
|
key: e,
|
|
3661
3727
|
canTrack: t
|
|
3662
3728
|
}) => {
|
|
@@ -3667,7 +3733,7 @@ const st = "builderSessionId", Vr = async ({
|
|
|
3667
3733
|
console.debug("[LocalStorage] GET error: ", o);
|
|
3668
3734
|
return;
|
|
3669
3735
|
}
|
|
3670
|
-
},
|
|
3736
|
+
}, jr = ({
|
|
3671
3737
|
key: e,
|
|
3672
3738
|
canTrack: t,
|
|
3673
3739
|
value: n
|
|
@@ -3678,32 +3744,32 @@ const st = "builderSessionId", Vr = async ({
|
|
|
3678
3744
|
} catch (r) {
|
|
3679
3745
|
console.debug("[LocalStorage] SET error: ", r);
|
|
3680
3746
|
}
|
|
3681
|
-
}, at = "builderVisitorId",
|
|
3747
|
+
}, at = "builderVisitorId", Hr = ({
|
|
3682
3748
|
canTrack: e
|
|
3683
3749
|
}) => {
|
|
3684
3750
|
if (!e)
|
|
3685
3751
|
return;
|
|
3686
|
-
const t =
|
|
3752
|
+
const t = Mr({
|
|
3687
3753
|
key: at,
|
|
3688
3754
|
canTrack: e
|
|
3689
3755
|
});
|
|
3690
3756
|
if (U(t))
|
|
3691
3757
|
return t;
|
|
3692
3758
|
{
|
|
3693
|
-
const n =
|
|
3694
|
-
return
|
|
3759
|
+
const n = Kr();
|
|
3760
|
+
return qr({
|
|
3695
3761
|
id: n,
|
|
3696
3762
|
canTrack: e
|
|
3697
3763
|
}), n;
|
|
3698
3764
|
}
|
|
3699
|
-
},
|
|
3765
|
+
}, Kr = () => rt(), qr = ({
|
|
3700
3766
|
id: e,
|
|
3701
3767
|
canTrack: t
|
|
3702
|
-
}) =>
|
|
3768
|
+
}) => jr({
|
|
3703
3769
|
key: at,
|
|
3704
3770
|
value: e,
|
|
3705
3771
|
canTrack: t
|
|
3706
|
-
}),
|
|
3772
|
+
}), zr = async ({
|
|
3707
3773
|
canTrack: e
|
|
3708
3774
|
}) => {
|
|
3709
3775
|
if (!e)
|
|
@@ -3711,16 +3777,16 @@ const st = "builderSessionId", Vr = async ({
|
|
|
3711
3777
|
visitorId: void 0,
|
|
3712
3778
|
sessionId: void 0
|
|
3713
3779
|
};
|
|
3714
|
-
const t = await
|
|
3780
|
+
const t = await Dr({
|
|
3715
3781
|
canTrack: e
|
|
3716
|
-
}), n =
|
|
3782
|
+
}), n = Hr({
|
|
3717
3783
|
canTrack: e
|
|
3718
3784
|
});
|
|
3719
3785
|
return {
|
|
3720
3786
|
sessionId: t,
|
|
3721
3787
|
visitorId: n
|
|
3722
3788
|
};
|
|
3723
|
-
},
|
|
3789
|
+
}, Jr = async ({
|
|
3724
3790
|
type: e,
|
|
3725
3791
|
canTrack: t,
|
|
3726
3792
|
apiKey: n,
|
|
@@ -3734,7 +3800,7 @@ const st = "builderSessionId", Vr = async ({
|
|
|
3734
3800
|
url: location.href,
|
|
3735
3801
|
...o
|
|
3736
3802
|
},
|
|
3737
|
-
...await
|
|
3803
|
+
...await zr({
|
|
3738
3804
|
canTrack: t
|
|
3739
3805
|
}),
|
|
3740
3806
|
userAttributes: Ne(),
|
|
@@ -3750,7 +3816,7 @@ async function pe(e) {
|
|
|
3750
3816
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
3751
3817
|
method: "POST",
|
|
3752
3818
|
body: JSON.stringify({
|
|
3753
|
-
events: [await
|
|
3819
|
+
events: [await Jr(e)]
|
|
3754
3820
|
}),
|
|
3755
3821
|
headers: {
|
|
3756
3822
|
"content-type": "application/json"
|
|
@@ -3760,14 +3826,14 @@ async function pe(e) {
|
|
|
3760
3826
|
console.error("Failed to track: ", t);
|
|
3761
3827
|
});
|
|
3762
3828
|
}
|
|
3763
|
-
const
|
|
3829
|
+
const Ws = (e) => pe({
|
|
3764
3830
|
...e,
|
|
3765
3831
|
canTrack: !0
|
|
3766
3832
|
});
|
|
3767
3833
|
function $e(e) {
|
|
3768
3834
|
return Math.round(e * 1e3) / 1e3;
|
|
3769
3835
|
}
|
|
3770
|
-
const
|
|
3836
|
+
const Gr = (e, t, n = !0) => {
|
|
3771
3837
|
if (!(e instanceof HTMLElement))
|
|
3772
3838
|
return null;
|
|
3773
3839
|
let o = n ? e : e.parentElement;
|
|
@@ -3778,7 +3844,7 @@ const Hr = (e, t, n = !0) => {
|
|
|
3778
3844
|
return o;
|
|
3779
3845
|
} while (o = o.parentElement);
|
|
3780
3846
|
return null;
|
|
3781
|
-
},
|
|
3847
|
+
}, Yr = (e) => Gr(e, (t) => {
|
|
3782
3848
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3783
3849
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3784
3850
|
}), Re = ({
|
|
@@ -3790,8 +3856,8 @@ const Hr = (e, t, n = !0) => {
|
|
|
3790
3856
|
x: s,
|
|
3791
3857
|
y: i
|
|
3792
3858
|
};
|
|
3793
|
-
},
|
|
3794
|
-
const t = e.target, n = t &&
|
|
3859
|
+
}, Qr = (e) => {
|
|
3860
|
+
const t = e.target, n = t && Yr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3795
3861
|
return {
|
|
3796
3862
|
targetBuilderElement: o || void 0,
|
|
3797
3863
|
metadata: {
|
|
@@ -3806,15 +3872,15 @@ const Hr = (e, t, n = !0) => {
|
|
|
3806
3872
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
3807
3873
|
}
|
|
3808
3874
|
};
|
|
3809
|
-
},
|
|
3875
|
+
}, Xr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3810
3876
|
function lt(e, t) {
|
|
3811
3877
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
3812
3878
|
return !1;
|
|
3813
3879
|
const n = new URL(t.origin), o = n.hostname;
|
|
3814
|
-
return (e ||
|
|
3880
|
+
return (e || Xr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3815
3881
|
}
|
|
3816
|
-
const
|
|
3817
|
-
function
|
|
3882
|
+
const Zr = "1.0.36", Ee = {};
|
|
3883
|
+
function _r(e, t) {
|
|
3818
3884
|
let n = Ee[e];
|
|
3819
3885
|
if (n || (n = Ee[e] = []), n.push(t), T()) {
|
|
3820
3886
|
const o = {
|
|
@@ -3831,8 +3897,8 @@ function Gr(e, t) {
|
|
|
3831
3897
|
}
|
|
3832
3898
|
}
|
|
3833
3899
|
}
|
|
3834
|
-
const
|
|
3835
|
-
|
|
3900
|
+
const es = () => {
|
|
3901
|
+
_r("insertMenu", {
|
|
3836
3902
|
name: "_default",
|
|
3837
3903
|
default: !0,
|
|
3838
3904
|
items: [{
|
|
@@ -3861,7 +3927,7 @@ const ct = (e = {}) => {
|
|
|
3861
3927
|
type: "builder.sdkInfo",
|
|
3862
3928
|
data: {
|
|
3863
3929
|
target: $,
|
|
3864
|
-
version:
|
|
3930
|
+
version: Zr,
|
|
3865
3931
|
supportsPatchUpdates: !1,
|
|
3866
3932
|
// Supports builder-model="..." attribute which is needed to
|
|
3867
3933
|
// scope our '+ add block' button styling
|
|
@@ -3884,17 +3950,17 @@ const ct = (e = {}) => {
|
|
|
3884
3950
|
switch (r.type) {
|
|
3885
3951
|
case "builder.evaluate": {
|
|
3886
3952
|
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
|
|
3887
|
-
let c,
|
|
3953
|
+
let c, m = null;
|
|
3888
3954
|
try {
|
|
3889
3955
|
c = h.apply(null, a);
|
|
3890
3956
|
} catch (v) {
|
|
3891
|
-
|
|
3957
|
+
m = v;
|
|
3892
3958
|
}
|
|
3893
|
-
|
|
3959
|
+
m ? (s = window.parent) == null || s.postMessage({
|
|
3894
3960
|
type: "builder.evaluateError",
|
|
3895
3961
|
data: {
|
|
3896
3962
|
id: u,
|
|
3897
|
-
error:
|
|
3963
|
+
error: m.message
|
|
3898
3964
|
}
|
|
3899
3965
|
}, "*") : c && typeof c.then == "function" ? c.then((v) => {
|
|
3900
3966
|
var y;
|
|
@@ -3942,7 +4008,7 @@ const ct = (e = {}) => {
|
|
|
3942
4008
|
break;
|
|
3943
4009
|
}
|
|
3944
4010
|
}
|
|
3945
|
-
},
|
|
4011
|
+
}, Ns = (e, t, n) => {
|
|
3946
4012
|
if (!T)
|
|
3947
4013
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3948
4014
|
};
|
|
@@ -3961,7 +4027,7 @@ const ct = (e = {}) => {
|
|
|
3961
4027
|
return window.addEventListener("message", o), () => {
|
|
3962
4028
|
window.removeEventListener("message", o);
|
|
3963
4029
|
};
|
|
3964
|
-
},
|
|
4030
|
+
}, ts = (e) => {
|
|
3965
4031
|
var s;
|
|
3966
4032
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
|
|
3967
4033
|
let r = "";
|
|
@@ -3987,15 +4053,15 @@ font-weight: ${i};
|
|
|
3987
4053
|
`.trim());
|
|
3988
4054
|
}
|
|
3989
4055
|
return r;
|
|
3990
|
-
},
|
|
4056
|
+
}, ns = ({
|
|
3991
4057
|
customFonts: e
|
|
3992
4058
|
}) => {
|
|
3993
4059
|
var t;
|
|
3994
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3995
|
-
},
|
|
4060
|
+
return ((t = e == null ? void 0 : e.map((n) => ts(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4061
|
+
}, os = ({
|
|
3996
4062
|
cssCode: e,
|
|
3997
4063
|
contentId: t
|
|
3998
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4064
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", rs = `
|
|
3999
4065
|
.builder-button {
|
|
4000
4066
|
all: unset;
|
|
4001
4067
|
}
|
|
@@ -4012,7 +4078,7 @@ font-weight: ${i};
|
|
|
4012
4078
|
text-align: inherit;
|
|
4013
4079
|
font-family: inherit;
|
|
4014
4080
|
}
|
|
4015
|
-
`,
|
|
4081
|
+
`, ss = (e) => e ? "" : rs, is = (e) => `variant-${e}`, as = f({
|
|
4016
4082
|
name: "enable-editor",
|
|
4017
4083
|
components: { DynamicDiv: Q },
|
|
4018
4084
|
props: [
|
|
@@ -4037,7 +4103,7 @@ font-weight: ${i};
|
|
|
4037
4103
|
httpReqsPending: {},
|
|
4038
4104
|
clicked: !1,
|
|
4039
4105
|
builderContext: ce,
|
|
4040
|
-
getWrapperClassName:
|
|
4106
|
+
getWrapperClassName: is
|
|
4041
4107
|
};
|
|
4042
4108
|
},
|
|
4043
4109
|
provide() {
|
|
@@ -4062,7 +4128,7 @@ font-weight: ${i};
|
|
|
4062
4128
|
variationId: s !== i ? s : void 0
|
|
4063
4129
|
});
|
|
4064
4130
|
}
|
|
4065
|
-
|
|
4131
|
+
Fr() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4066
4132
|
new CustomEvent("initpreviewingbldr")
|
|
4067
4133
|
);
|
|
4068
4134
|
}
|
|
@@ -4232,7 +4298,7 @@ font-weight: ${i};
|
|
|
4232
4298
|
contentId: r,
|
|
4233
4299
|
apiKey: this.apiKey,
|
|
4234
4300
|
variationId: o !== r ? o : void 0,
|
|
4235
|
-
...
|
|
4301
|
+
...Qr(e),
|
|
4236
4302
|
unique: !this.clicked
|
|
4237
4303
|
});
|
|
4238
4304
|
}
|
|
@@ -4285,7 +4351,7 @@ font-weight: ${i};
|
|
|
4285
4351
|
);
|
|
4286
4352
|
},
|
|
4287
4353
|
elementRef_onIniteditingbldr(e) {
|
|
4288
|
-
window.addEventListener("message", this.processMessage),
|
|
4354
|
+
window.addEventListener("message", this.processMessage), es(), ct({
|
|
4289
4355
|
...this.locale ? {
|
|
4290
4356
|
locale: this.locale
|
|
4291
4357
|
} : {},
|
|
@@ -4299,7 +4365,7 @@ font-weight: ${i};
|
|
|
4299
4365
|
this.builderContextSignal.componentInfos
|
|
4300
4366
|
).forEach((t) => {
|
|
4301
4367
|
var o;
|
|
4302
|
-
const n =
|
|
4368
|
+
const n = gr(t);
|
|
4303
4369
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4304
4370
|
}), window.addEventListener(
|
|
4305
4371
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4320,9 +4386,9 @@ font-weight: ${i};
|
|
|
4320
4386
|
}
|
|
4321
4387
|
}
|
|
4322
4388
|
});
|
|
4323
|
-
function
|
|
4389
|
+
function ls(e, t, n, o, r, s) {
|
|
4324
4390
|
var i, l, a;
|
|
4325
|
-
return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper),
|
|
4391
|
+
return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper), C({
|
|
4326
4392
|
key: 0,
|
|
4327
4393
|
ref: "elementRef",
|
|
4328
4394
|
onClick: (u) => e.onClick(u),
|
|
@@ -4332,39 +4398,39 @@ function os(e, t, n, o, r, s) {
|
|
|
4332
4398
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
4333
4399
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4334
4400
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4335
|
-
default:
|
|
4336
|
-
|
|
4401
|
+
default: W(() => [
|
|
4402
|
+
x(e.$slots, "default")
|
|
4337
4403
|
]),
|
|
4338
4404
|
_: 3
|
|
4339
4405
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4340
4406
|
}
|
|
4341
|
-
const
|
|
4407
|
+
const cs = /* @__PURE__ */ b(as, [["render", ls]]), ds = f({
|
|
4342
4408
|
name: "content-styles",
|
|
4343
4409
|
components: { InlinedStyles: be },
|
|
4344
4410
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
4345
4411
|
data() {
|
|
4346
4412
|
return {
|
|
4347
4413
|
injectedStyles: `
|
|
4348
|
-
${
|
|
4414
|
+
${os({
|
|
4349
4415
|
cssCode: this.cssCode,
|
|
4350
4416
|
contentId: this.contentId
|
|
4351
4417
|
})}
|
|
4352
|
-
${
|
|
4418
|
+
${ns({
|
|
4353
4419
|
customFonts: this.customFonts
|
|
4354
4420
|
})}
|
|
4355
|
-
${
|
|
4421
|
+
${ss(this.isNestedRender)}
|
|
4356
4422
|
`.trim()
|
|
4357
4423
|
};
|
|
4358
4424
|
}
|
|
4359
4425
|
});
|
|
4360
|
-
function
|
|
4426
|
+
function us(e, t, n, o, r, s) {
|
|
4361
4427
|
const i = g("InlinedStyles");
|
|
4362
4428
|
return d(), k(i, {
|
|
4363
4429
|
id: "builderio-content",
|
|
4364
4430
|
styles: e.injectedStyles
|
|
4365
4431
|
}, null, 8, ["styles"]);
|
|
4366
4432
|
}
|
|
4367
|
-
const
|
|
4433
|
+
const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
|
|
4368
4434
|
content: e,
|
|
4369
4435
|
data: t,
|
|
4370
4436
|
locale: n
|
|
@@ -4381,7 +4447,7 @@ const as = /* @__PURE__ */ b(ss, [["render", is]]), ls = ({
|
|
|
4381
4447
|
locale: n
|
|
4382
4448
|
} : {}
|
|
4383
4449
|
};
|
|
4384
|
-
},
|
|
4450
|
+
}, hs = ({
|
|
4385
4451
|
content: e,
|
|
4386
4452
|
data: t
|
|
4387
4453
|
}) => e ? {
|
|
@@ -4391,12 +4457,12 @@ const as = /* @__PURE__ */ b(ss, [["render", is]]), ls = ({
|
|
|
4391
4457
|
...t
|
|
4392
4458
|
},
|
|
4393
4459
|
meta: e == null ? void 0 : e.meta
|
|
4394
|
-
} : void 0,
|
|
4460
|
+
} : void 0, fs = ft, bs = f({
|
|
4395
4461
|
name: "content-component",
|
|
4396
4462
|
components: {
|
|
4397
|
-
EnableEditor:
|
|
4463
|
+
EnableEditor: cs,
|
|
4398
4464
|
InlinedScript: et,
|
|
4399
|
-
ContentStyles:
|
|
4465
|
+
ContentStyles: ps,
|
|
4400
4466
|
Blocks: M,
|
|
4401
4467
|
DynamicDiv: Q
|
|
4402
4468
|
},
|
|
@@ -4424,7 +4490,7 @@ const as = /* @__PURE__ */ b(ss, [["render", is]]), ls = ({
|
|
|
4424
4490
|
data() {
|
|
4425
4491
|
var e, t;
|
|
4426
4492
|
return {
|
|
4427
|
-
scriptStr:
|
|
4493
|
+
scriptStr: $r({
|
|
4428
4494
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4429
4495
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4430
4496
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4437,19 +4503,19 @@ const as = /* @__PURE__ */ b(ss, [["render", is]]), ls = ({
|
|
|
4437
4503
|
(n, { component: o, ...r }) => ({
|
|
4438
4504
|
...n,
|
|
4439
4505
|
[r.name]: {
|
|
4440
|
-
component:
|
|
4506
|
+
component: fs(o),
|
|
4441
4507
|
...de(r)
|
|
4442
4508
|
}
|
|
4443
4509
|
}),
|
|
4444
4510
|
{}
|
|
4445
4511
|
),
|
|
4446
4512
|
builderContextSignal: {
|
|
4447
|
-
content:
|
|
4513
|
+
content: hs({
|
|
4448
4514
|
content: this.content,
|
|
4449
4515
|
data: this.data
|
|
4450
4516
|
}),
|
|
4451
4517
|
localState: void 0,
|
|
4452
|
-
rootState:
|
|
4518
|
+
rootState: ms({
|
|
4453
4519
|
content: this.content,
|
|
4454
4520
|
data: this.data,
|
|
4455
4521
|
locale: this.locale
|
|
@@ -4490,9 +4556,9 @@ const as = /* @__PURE__ */ b(ss, [["render", is]]), ls = ({
|
|
|
4490
4556
|
}
|
|
4491
4557
|
}
|
|
4492
4558
|
});
|
|
4493
|
-
function
|
|
4559
|
+
function gs(e, t, n, o, r, s) {
|
|
4494
4560
|
const i = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
|
|
4495
|
-
return d(), k(u,
|
|
4561
|
+
return d(), k(u, C({
|
|
4496
4562
|
content: e.content,
|
|
4497
4563
|
data: e.data,
|
|
4498
4564
|
model: e.model,
|
|
@@ -4507,8 +4573,8 @@ function ps(e, t, n, o, r, s) {
|
|
|
4507
4573
|
contentWrapperProps: e.contentWrapperProps,
|
|
4508
4574
|
trustedHosts: e.trustedHosts
|
|
4509
4575
|
}, {}), {
|
|
4510
|
-
default:
|
|
4511
|
-
var h, c,
|
|
4576
|
+
default: W(() => {
|
|
4577
|
+
var h, c, m, v, y, F, X;
|
|
4512
4578
|
return [
|
|
4513
4579
|
e.isSsrAbTest ? (d(), k(i, {
|
|
4514
4580
|
key: 0,
|
|
@@ -4519,7 +4585,7 @@ function ps(e, t, n, o, r, s) {
|
|
|
4519
4585
|
key: 1,
|
|
4520
4586
|
isNestedRender: e.isNestedRender,
|
|
4521
4587
|
contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
|
|
4522
|
-
cssCode: (
|
|
4588
|
+
cssCode: (m = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
4523
4589
|
customFonts: (y = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : y.customFonts
|
|
4524
4590
|
}, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4525
4591
|
R(a, {
|
|
@@ -4533,12 +4599,12 @@ function ps(e, t, n, o, r, s) {
|
|
|
4533
4599
|
_: 1
|
|
4534
4600
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
4535
4601
|
}
|
|
4536
|
-
const
|
|
4602
|
+
const ys = /* @__PURE__ */ b(bs, [["render", gs]]), ks = f({
|
|
4537
4603
|
name: "content-variants",
|
|
4538
4604
|
components: {
|
|
4539
4605
|
InlinedScript: et,
|
|
4540
4606
|
InlinedStyles: be,
|
|
4541
|
-
ContentComponent:
|
|
4607
|
+
ContentComponent: ys
|
|
4542
4608
|
},
|
|
4543
4609
|
props: [
|
|
4544
4610
|
"canTrack",
|
|
@@ -4561,12 +4627,12 @@ const ms = /* @__PURE__ */ b(us, [["render", ps]]), hs = f({
|
|
|
4561
4627
|
],
|
|
4562
4628
|
data() {
|
|
4563
4629
|
return {
|
|
4564
|
-
shouldRenderVariants:
|
|
4630
|
+
shouldRenderVariants: Cr({
|
|
4565
4631
|
canTrack: G(this.canTrack),
|
|
4566
4632
|
content: this.content
|
|
4567
4633
|
}),
|
|
4568
4634
|
TARGET: $,
|
|
4569
|
-
getInitVariantsFnsScriptString:
|
|
4635
|
+
getInitVariantsFnsScriptString: Tr,
|
|
4570
4636
|
getVariants: _
|
|
4571
4637
|
};
|
|
4572
4638
|
},
|
|
@@ -4575,7 +4641,7 @@ const ms = /* @__PURE__ */ b(us, [["render", ps]]), hs = f({
|
|
|
4575
4641
|
computed: {
|
|
4576
4642
|
updateCookieAndStylesScriptStr() {
|
|
4577
4643
|
var e;
|
|
4578
|
-
return
|
|
4644
|
+
return Ir(
|
|
4579
4645
|
_(this.content).map((t) => ({
|
|
4580
4646
|
id: t.testVariationId,
|
|
4581
4647
|
testRatio: t.testRatio
|
|
@@ -4598,15 +4664,15 @@ const ms = /* @__PURE__ */ b(us, [["render", ps]]), hs = f({
|
|
|
4598
4664
|
}
|
|
4599
4665
|
}
|
|
4600
4666
|
});
|
|
4601
|
-
function
|
|
4667
|
+
function Ss(e, t, n, o, r, s) {
|
|
4602
4668
|
const i = g("InlinedScript"), l = g("InlinedStyles"), a = g("ContentComponent");
|
|
4603
|
-
return d(),
|
|
4669
|
+
return d(), p(I, null, [
|
|
4604
4670
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(i, {
|
|
4605
4671
|
key: 0,
|
|
4606
4672
|
id: "builderio-init-variants-fns",
|
|
4607
4673
|
scriptStr: e.getInitVariantsFnsScriptString()
|
|
4608
4674
|
}, null, 8, ["scriptStr"])) : S("", !0),
|
|
4609
|
-
e.shouldRenderVariants ? (d(),
|
|
4675
|
+
e.shouldRenderVariants ? (d(), p(I, { key: 1 }, [
|
|
4610
4676
|
R(l, {
|
|
4611
4677
|
id: "builderio-variants",
|
|
4612
4678
|
styles: e.hideVariantsStyleString
|
|
@@ -4615,7 +4681,7 @@ function fs(e, t, n, o, r, s) {
|
|
|
4615
4681
|
id: "builderio-variants-visibility",
|
|
4616
4682
|
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4617
4683
|
}, null, 8, ["scriptStr"]),
|
|
4618
|
-
(d(!0),
|
|
4684
|
+
(d(!0), p(I, null, N(e.getVariants(e.content), (u, h) => (d(), k(a, {
|
|
4619
4685
|
key: u.testVariationId,
|
|
4620
4686
|
isNestedRender: e.isNestedRender,
|
|
4621
4687
|
content: u,
|
|
@@ -4638,7 +4704,7 @@ function fs(e, t, n, o, r, s) {
|
|
|
4638
4704
|
trustedHosts: e.trustedHosts
|
|
4639
4705
|
}, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4640
4706
|
], 64)) : S("", !0),
|
|
4641
|
-
R(a,
|
|
4707
|
+
R(a, C({
|
|
4642
4708
|
isNestedRender: e.isNestedRender,
|
|
4643
4709
|
content: e.defaultContent,
|
|
4644
4710
|
showContent: !0,
|
|
@@ -4663,7 +4729,7 @@ function fs(e, t, n, o, r, s) {
|
|
|
4663
4729
|
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4664
4730
|
], 64);
|
|
4665
4731
|
}
|
|
4666
|
-
const
|
|
4732
|
+
const vs = /* @__PURE__ */ b(ks, [["render", Ss]]), Cs = async ({
|
|
4667
4733
|
builderContextValue: e,
|
|
4668
4734
|
symbol: t
|
|
4669
4735
|
}) => {
|
|
@@ -4681,9 +4747,9 @@ const bs = /* @__PURE__ */ b(hs, [["render", fs]]), gs = async ({
|
|
|
4681
4747
|
}).catch((n) => {
|
|
4682
4748
|
B.error("Could not fetch symbol content: ", n);
|
|
4683
4749
|
});
|
|
4684
|
-
},
|
|
4750
|
+
}, ws = f({
|
|
4685
4751
|
name: "builder-symbol",
|
|
4686
|
-
components: { ContentVariants:
|
|
4752
|
+
components: { ContentVariants: vs, DynamicDiv: Q },
|
|
4687
4753
|
props: [
|
|
4688
4754
|
"symbol",
|
|
4689
4755
|
"attributes",
|
|
@@ -4695,7 +4761,7 @@ const bs = /* @__PURE__ */ b(hs, [["render", fs]]), gs = async ({
|
|
|
4695
4761
|
],
|
|
4696
4762
|
data() {
|
|
4697
4763
|
var e;
|
|
4698
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
4764
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
|
|
4699
4765
|
},
|
|
4700
4766
|
mounted() {
|
|
4701
4767
|
this.setContent();
|
|
@@ -4732,7 +4798,7 @@ const bs = /* @__PURE__ */ b(hs, [["render", fs]]), gs = async ({
|
|
|
4732
4798
|
},
|
|
4733
4799
|
methods: {
|
|
4734
4800
|
setContent() {
|
|
4735
|
-
this.contentToUse ||
|
|
4801
|
+
this.contentToUse || Cs({
|
|
4736
4802
|
symbol: this.symbol,
|
|
4737
4803
|
builderContextValue: this.builderContext
|
|
4738
4804
|
}).then((e) => {
|
|
@@ -4741,10 +4807,10 @@ const bs = /* @__PURE__ */ b(hs, [["render", fs]]), gs = async ({
|
|
|
4741
4807
|
}
|
|
4742
4808
|
}
|
|
4743
4809
|
});
|
|
4744
|
-
function
|
|
4810
|
+
function Ts(e, t, n, o, r, s) {
|
|
4745
4811
|
var l, a, u, h, c;
|
|
4746
4812
|
const i = g("ContentVariants");
|
|
4747
|
-
return d(),
|
|
4813
|
+
return d(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4748
4814
|
R(i, {
|
|
4749
4815
|
isNestedRender: !0,
|
|
4750
4816
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4768,8 +4834,8 @@ function ks(e, t, n, o, r, s) {
|
|
|
4768
4834
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4769
4835
|
], 16);
|
|
4770
4836
|
}
|
|
4771
|
-
const
|
|
4772
|
-
function
|
|
4837
|
+
const Is = /* @__PURE__ */ b(ws, [["render", Ts]]), Pe = {};
|
|
4838
|
+
function Fs(e) {
|
|
4773
4839
|
if (T()) {
|
|
4774
4840
|
Object.assign(Pe, e);
|
|
4775
4841
|
const t = {
|
|
@@ -4779,7 +4845,7 @@ function xs(e) {
|
|
|
4779
4845
|
parent.postMessage(t, "*");
|
|
4780
4846
|
}
|
|
4781
4847
|
}
|
|
4782
|
-
const
|
|
4848
|
+
const Os = async (e) => {
|
|
4783
4849
|
var o, r, s;
|
|
4784
4850
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
4785
4851
|
...e,
|
|
@@ -4800,43 +4866,43 @@ const As = async (e) => {
|
|
|
4800
4866
|
};
|
|
4801
4867
|
};
|
|
4802
4868
|
export {
|
|
4803
|
-
|
|
4869
|
+
Wr as A,
|
|
4804
4870
|
fe as B,
|
|
4805
4871
|
fn as C,
|
|
4806
|
-
|
|
4872
|
+
Nr as D,
|
|
4807
4873
|
ke as E,
|
|
4808
4874
|
yn as F,
|
|
4809
|
-
|
|
4810
|
-
|
|
4875
|
+
Bs as G,
|
|
4876
|
+
As as H,
|
|
4811
4877
|
$n as I,
|
|
4812
4878
|
Bn as S,
|
|
4813
4879
|
$ as T,
|
|
4814
|
-
|
|
4880
|
+
fr as V,
|
|
4815
4881
|
be as _,
|
|
4816
4882
|
un as a,
|
|
4817
|
-
|
|
4883
|
+
Ps as b,
|
|
4818
4884
|
U as c,
|
|
4819
|
-
|
|
4885
|
+
Vs as d,
|
|
4820
4886
|
he as e,
|
|
4821
4887
|
b as f,
|
|
4822
4888
|
De as g,
|
|
4823
4889
|
te as h,
|
|
4824
|
-
|
|
4890
|
+
xs as i,
|
|
4825
4891
|
ee as j,
|
|
4826
4892
|
ce as k,
|
|
4827
4893
|
Ct as l,
|
|
4828
|
-
|
|
4894
|
+
Is as m,
|
|
4829
4895
|
ho as n,
|
|
4830
4896
|
M as o,
|
|
4831
|
-
|
|
4897
|
+
vs as p,
|
|
4832
4898
|
E as q,
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4899
|
+
Fr as r,
|
|
4900
|
+
gr as s,
|
|
4901
|
+
_r as t,
|
|
4902
|
+
Fs as u,
|
|
4837
4903
|
ot as v,
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4904
|
+
fs as w,
|
|
4905
|
+
Ws as x,
|
|
4906
|
+
Ns as y,
|
|
4907
|
+
Os as z
|
|
4842
4908
|
};
|