@builder.io/sdk-vue 2.0.23 → 2.0.24
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/{awaiter-u5PXGRLo.js → awaiter-J3HUxkGi.js} +1 -1
- package/lib/browser/{awaiter-G_oIEuat.cjs → awaiter-g25f4_3R.cjs} +1 -1
- package/lib/browser/{block-styles-wK6lFE9B.js → block-styles-TEcZV6HE.js} +1 -1
- package/lib/browser/{block-styles-HMeGutPn.cjs → block-styles-grUICPvP.cjs} +1 -1
- package/lib/browser/{block-wrapper-yu-xkfE4.cjs → block-wrapper-29DvN0g9.cjs} +1 -1
- package/lib/browser/{block-wrapper-MKu8n7U7.js → block-wrapper-FeIbV4lJ.js} +3 -3
- package/lib/browser/{component-ref-qjYaeP3w.cjs → component-ref-0BQRfKsS.cjs} +1 -1
- package/lib/browser/{component-ref-78k364NZ.js → component-ref-XOiYQaEV.js} +3 -3
- package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +4 -0
- package/lib/browser/components/blocks/blocks.types.d.ts +2 -1
- package/lib/browser/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-GhSltgo5.cjs → get-block-properties-9fNXyxXS.cjs} +1 -1
- package/lib/browser/{get-block-properties-XqXSwZFG.js → get-block-properties-AbQ4_DbB.js} +1 -1
- package/lib/browser/{index-seWAP4vy.js → index-VkKzZMwZ.js} +168 -158
- package/lib/browser/{index-CtUCszME.cjs → index-eo1_2KG1.cjs} +5 -5
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-Bx7DKHbW.cjs → repeated-block-3wAFgYUP.cjs} +1 -1
- package/lib/browser/{repeated-block-8i7afs5q.js → repeated-block-rRkup9T9.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-QMFq6Byd.js → awaiter-bswCddmn.js} +1 -1
- package/lib/edge/{awaiter-PIsCfK7c.cjs → awaiter-z-FdxR2q.cjs} +1 -1
- package/lib/edge/{block-styles-AHO5DXSi.cjs → block-styles-RI6klyct.cjs} +1 -1
- package/lib/edge/{block-styles-U4E7ZMFT.js → block-styles-_Y6pfvRo.js} +1 -1
- package/lib/edge/{block-wrapper-NqtVmoR7.js → block-wrapper-RoXrtNnJ.js} +3 -3
- package/lib/edge/{block-wrapper-OPLSNoIA.cjs → block-wrapper-oxJp7Q7d.cjs} +1 -1
- package/lib/edge/{component-ref-IUycKXa3.js → component-ref-CvZ3PHsD.js} +3 -3
- package/lib/edge/{component-ref-xq2wlUSE.cjs → component-ref-K5NE0GO1.cjs} +1 -1
- package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +4 -0
- package/lib/edge/components/blocks/blocks.types.d.ts +2 -1
- package/lib/edge/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-mO8Gxq92.js → get-block-properties-WJ04QqT6.js} +1 -1
- package/lib/edge/{get-block-properties-byaSZogH.cjs → get-block-properties-kxJh9lLa.cjs} +1 -1
- package/lib/edge/{index-N7pU-PUB.cjs → index-PB_wCbdz.cjs} +12 -12
- package/lib/edge/{index-iOFRbVWh.js → index-UNfETa4b.js} +370 -360
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-bNufaRuJ.js → repeated-block-3sTRvL3l.js} +2 -2
- package/lib/{node/repeated-block-lp57jnam.cjs → edge/repeated-block-JWTG1SGC.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-IQFut22y.js → awaiter--0M8C3yH.js} +1 -1
- package/lib/node/{awaiter-H1oynBsE.cjs → awaiter-JHWYv1Aa.cjs} +1 -1
- package/lib/node/{block-styles-RuFPwMXh.cjs → block-styles-6tPiAmBz.cjs} +1 -1
- package/lib/node/{block-styles-VnxJDeth.js → block-styles-quUqeiHV.js} +1 -1
- package/lib/node/{block-wrapper-0QkyDUi8.js → block-wrapper-1t5eBFHt.js} +3 -3
- package/lib/node/{block-wrapper-Rdrsg2md.cjs → block-wrapper-RW0Dijwl.cjs} +1 -1
- package/lib/node/{component-ref-ykrv8SqH.js → component-ref-Aiwer6jd.js} +3 -3
- package/lib/node/{component-ref-zfHcvc9C.cjs → component-ref-VImBkRlv.cjs} +1 -1
- package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +4 -0
- package/lib/node/components/blocks/blocks.types.d.ts +2 -1
- package/lib/node/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-vdmQ9Xzy.js → get-block-properties-iMgsO_St.js} +1 -1
- package/lib/node/{get-block-properties-hwulPF6s.cjs → get-block-properties-l9MvlM58.cjs} +1 -1
- package/lib/node/{index-kUJl6uPe.cjs → index-ncxt02LY.cjs} +5 -5
- package/lib/node/{index-Iiftot2Q.js → index-vY7Ih1wu.js} +168 -158
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-ZzGKcGjr.cjs → node/repeated-block-1bi9_70I.cjs} +1 -1
- package/lib/node/{repeated-block-3sBOF_Jy.js → repeated-block-n_E2nVxY.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as f, openBlock as
|
|
2
|
+
import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as w, createBlock as k, resolveDynamicComponent as j, mergeProps as C, toHandlers as B, withCtx as W, renderSlot as x, resolveComponent as v, createTextVNode as ct, toDisplayString as ee, defineAsyncComponent as M, createVNode as $, renderList as A, createCommentVNode as S, h as Pe, createElementVNode as K, normalizeStyle as F, normalizeClass as q, markRaw as dt } from "vue";
|
|
3
3
|
const ut = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), pt = (e) => typeof e == "string" && ut.has(e.toLowerCase());
|
|
4
4
|
function V(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -24,13 +24,13 @@ const mt = f({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function ht(e, t, n, o, r, i) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (
|
|
28
|
-
typeof e.TagName == "string" ? (
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), k(j(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (d(), m(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), k(j(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
|
|
29
29
|
default: W(() => [
|
|
30
30
|
x(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (
|
|
33
|
+
}, 16)) : (d(), k(j(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
|
|
34
34
|
default: W(() => [
|
|
35
35
|
x(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -84,8 +84,8 @@ const de = /* @__PURE__ */ b(mt, [["render", ht]]), Pi = /* @__PURE__ */ Object.
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
function bt(e, t, n, o, r, i) {
|
|
87
|
-
const s =
|
|
88
|
-
return
|
|
87
|
+
const s = v("DynamicRenderer");
|
|
88
|
+
return d(), k(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
@@ -640,7 +640,7 @@ function qe(e, t) {
|
|
|
640
640
|
const n = new URL(t.origin), o = n.hostname;
|
|
641
641
|
return (e || an).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
642
642
|
}
|
|
643
|
-
const ln = "2.0.
|
|
643
|
+
const ln = "2.0.24", cn = () => {
|
|
644
644
|
jt("insertMenu", {
|
|
645
645
|
name: "_default",
|
|
646
646
|
default: !0,
|
|
@@ -693,11 +693,11 @@ const ze = (e = {}) => {
|
|
|
693
693
|
switch (r.type) {
|
|
694
694
|
case "builder.evaluate": {
|
|
695
695
|
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
|
|
696
|
-
let
|
|
696
|
+
let c, p = null;
|
|
697
697
|
try {
|
|
698
|
-
|
|
699
|
-
} catch (
|
|
700
|
-
p =
|
|
698
|
+
c = h.apply(null, a);
|
|
699
|
+
} catch (y) {
|
|
700
|
+
p = y;
|
|
701
701
|
}
|
|
702
702
|
p ? (i = window.parent) == null || i.postMessage({
|
|
703
703
|
type: "builder.evaluateError",
|
|
@@ -705,19 +705,19 @@ const ze = (e = {}) => {
|
|
|
705
705
|
id: u,
|
|
706
706
|
error: p.message
|
|
707
707
|
}
|
|
708
|
-
}, "*") :
|
|
709
|
-
var
|
|
710
|
-
(
|
|
708
|
+
}, "*") : c && typeof c.then == "function" ? c.then((y) => {
|
|
709
|
+
var g;
|
|
710
|
+
(g = window.parent) == null || g.postMessage({
|
|
711
711
|
type: "builder.evaluateResult",
|
|
712
712
|
data: {
|
|
713
713
|
id: u,
|
|
714
|
-
result:
|
|
714
|
+
result: y
|
|
715
715
|
}
|
|
716
716
|
}, "*");
|
|
717
717
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
718
718
|
type: "builder.evaluateResult",
|
|
719
719
|
data: {
|
|
720
|
-
result:
|
|
720
|
+
result: c,
|
|
721
721
|
id: u
|
|
722
722
|
}
|
|
723
723
|
}, "*");
|
|
@@ -907,10 +907,10 @@ const vn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (
|
|
|
907
907
|
apiVersion: a = vn,
|
|
908
908
|
fields: u,
|
|
909
909
|
omit: h,
|
|
910
|
-
offset:
|
|
910
|
+
offset: c,
|
|
911
911
|
cacheSeconds: p,
|
|
912
|
-
staleCacheSeconds:
|
|
913
|
-
sort:
|
|
912
|
+
staleCacheSeconds: y,
|
|
913
|
+
sort: g,
|
|
914
914
|
includeUnpublished: N
|
|
915
915
|
} = e;
|
|
916
916
|
if (!i)
|
|
@@ -918,9 +918,9 @@ const vn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (
|
|
|
918
918
|
if (!["v3"].includes(a))
|
|
919
919
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
920
920
|
const Y = t !== 1, T = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
921
|
-
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", h || "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(
|
|
921
|
+
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", h || "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && T.searchParams.set("offset", String(Math.floor(c))), typeof N == "boolean" && T.searchParams.set("includeUnpublished", String(N)), p && Te(p) && T.searchParams.set("cacheSeconds", String(p)), y && Te(y) && T.searchParams.set("staleCacheSeconds", String(y)), g) {
|
|
922
922
|
const O = ce({
|
|
923
|
-
sort:
|
|
923
|
+
sort: g
|
|
924
924
|
});
|
|
925
925
|
for (const U in O)
|
|
926
926
|
T.searchParams.set(U, JSON.stringify(O[U]));
|
|
@@ -1082,8 +1082,8 @@ function En(e) {
|
|
|
1082
1082
|
leading: !1
|
|
1083
1083
|
});
|
|
1084
1084
|
function l(h) {
|
|
1085
|
-
const
|
|
1086
|
-
return
|
|
1085
|
+
const c = h.getBoundingClientRect(), p = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * p;
|
|
1086
|
+
return c.bottom > g && c.top < p - g;
|
|
1087
1087
|
}
|
|
1088
1088
|
const a = e.steps[0].styles;
|
|
1089
1089
|
function u() {
|
|
@@ -1212,22 +1212,22 @@ const xn = ({
|
|
|
1212
1212
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1213
1213
|
e
|
|
1214
1214
|
), e;
|
|
1215
|
-
}), Dn = () => import("./block-styles-
|
|
1215
|
+
}), Dn = () => import("./block-styles-TEcZV6HE.js").then((e) => e.default).catch((e) => {
|
|
1216
1216
|
throw console.error(
|
|
1217
1217
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1218
1218
|
e
|
|
1219
1219
|
), e;
|
|
1220
|
-
}), Ln = () => import("./block-wrapper-
|
|
1220
|
+
}), Ln = () => import("./block-wrapper-FeIbV4lJ.js").then((e) => e.default).catch((e) => {
|
|
1221
1221
|
throw console.error(
|
|
1222
1222
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1223
1223
|
e
|
|
1224
1224
|
), e;
|
|
1225
|
-
}), Un = () => import("./component-ref-
|
|
1225
|
+
}), Un = () => import("./component-ref-XOiYQaEV.js").then((e) => e.default).catch((e) => {
|
|
1226
1226
|
throw console.error(
|
|
1227
1227
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1228
1228
|
e
|
|
1229
1229
|
), e;
|
|
1230
|
-
}), Mn = () => import("./repeated-block-
|
|
1230
|
+
}), Mn = () => import("./repeated-block-rRkup9T9.js").then((e) => e.default).catch((e) => {
|
|
1231
1231
|
throw console.error(
|
|
1232
1232
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1233
1233
|
e
|
|
@@ -1326,21 +1326,21 @@ const xn = ({
|
|
|
1326
1326
|
}
|
|
1327
1327
|
});
|
|
1328
1328
|
function Hn(e, t, n, o, r, i) {
|
|
1329
|
-
var
|
|
1330
|
-
const s =
|
|
1331
|
-
return e.canShowBlock ? (
|
|
1329
|
+
var c;
|
|
1330
|
+
const s = v("BlockStyles"), l = v("ComponentRef"), a = v("Block", !0), u = v("BlockWrapper"), h = v("RepeatedBlock");
|
|
1331
|
+
return e.canShowBlock ? (d(), m(w, { key: 0 }, [
|
|
1332
1332
|
$(s, {
|
|
1333
1333
|
block: e.processedBlock,
|
|
1334
1334
|
context: e.context
|
|
1335
1335
|
}, null, 8, ["block", "context"]),
|
|
1336
|
-
(
|
|
1337
|
-
e.repeatItem ? (
|
|
1338
|
-
key:
|
|
1336
|
+
(c = e.blockComponent) != null && c.noWrap ? (d(), m(w, { key: 1 }, [
|
|
1337
|
+
e.repeatItem ? (d(!0), m(w, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
|
|
1338
|
+
key: y,
|
|
1339
1339
|
repeatContext: p.context,
|
|
1340
1340
|
block: p.block,
|
|
1341
1341
|
registeredComponents: e.registeredComponents,
|
|
1342
1342
|
linkComponent: e.linkComponent
|
|
1343
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1343
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(l, {
|
|
1344
1344
|
key: 0,
|
|
1345
1345
|
componentRef: e.componentRefProps.componentRef,
|
|
1346
1346
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1352,14 +1352,14 @@ function Hn(e, t, n, o, r, i) {
|
|
|
1352
1352
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1353
1353
|
isInteractive: e.componentRefProps.isInteractive
|
|
1354
1354
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1355
|
-
], 64)) : (
|
|
1356
|
-
e.repeatItem ? (
|
|
1357
|
-
key:
|
|
1355
|
+
], 64)) : (d(), m(w, { key: 0 }, [
|
|
1356
|
+
e.repeatItem ? (d(!0), m(w, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
|
|
1357
|
+
key: y,
|
|
1358
1358
|
repeatContext: p.context,
|
|
1359
1359
|
block: p.block,
|
|
1360
1360
|
registeredComponents: e.registeredComponents,
|
|
1361
1361
|
linkComponent: e.linkComponent
|
|
1362
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1362
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(u, {
|
|
1363
1363
|
key: 0,
|
|
1364
1364
|
Wrapper: e.Tag,
|
|
1365
1365
|
block: e.processedBlock,
|
|
@@ -1377,7 +1377,7 @@ function Hn(e, t, n, o, r, i) {
|
|
|
1377
1377
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1378
1378
|
isInteractive: e.componentRefProps.isInteractive
|
|
1379
1379
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1380
|
-
(
|
|
1380
|
+
(d(!0), m(w, null, A(e.childrenWithoutParentComponent, (p, y) => (d(), k(a, {
|
|
1381
1381
|
key: p.id,
|
|
1382
1382
|
block: p,
|
|
1383
1383
|
registeredComponents: e.registeredComponents,
|
|
@@ -1397,6 +1397,7 @@ const be = /* @__PURE__ */ b(jn, [["render", Hn]]), Oi = /* @__PURE__ */ Object.
|
|
|
1397
1397
|
name: "builder-blocks-wrapper",
|
|
1398
1398
|
props: [
|
|
1399
1399
|
"blocks",
|
|
1400
|
+
"classNameProp",
|
|
1400
1401
|
"parent",
|
|
1401
1402
|
"path",
|
|
1402
1403
|
"styleProp",
|
|
@@ -1408,7 +1409,11 @@ const be = /* @__PURE__ */ b(jn, [["render", Hn]]), Oi = /* @__PURE__ */ Object.
|
|
|
1408
1409
|
computed: {
|
|
1409
1410
|
className() {
|
|
1410
1411
|
var e;
|
|
1411
|
-
return
|
|
1412
|
+
return [
|
|
1413
|
+
"builder-blocks",
|
|
1414
|
+
(e = this.blocks) != null && e.length ? "" : "no-blocks",
|
|
1415
|
+
this.classNameProp
|
|
1416
|
+
].filter(Boolean).join(" ");
|
|
1412
1417
|
}
|
|
1413
1418
|
},
|
|
1414
1419
|
methods: {
|
|
@@ -1441,7 +1446,7 @@ const be = /* @__PURE__ */ b(jn, [["render", Hn]]), Oi = /* @__PURE__ */ Object.
|
|
|
1441
1446
|
}
|
|
1442
1447
|
});
|
|
1443
1448
|
function qn(e, t, n, o, r, i) {
|
|
1444
|
-
return
|
|
1449
|
+
return d(), k(j(e.BlocksWrapper), C({
|
|
1445
1450
|
ref: "blocksWrapperRef",
|
|
1446
1451
|
class: e.className + " component-1k2igrjdg3x",
|
|
1447
1452
|
"builder-path": e.path,
|
|
@@ -1457,7 +1462,7 @@ function qn(e, t, n, o, r, i) {
|
|
|
1457
1462
|
_: 3
|
|
1458
1463
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1459
1464
|
}
|
|
1460
|
-
const zn = /* @__PURE__ */ b(Kn, [["render", qn], ["__scopeId", "data-v-
|
|
1465
|
+
const zn = /* @__PURE__ */ b(Kn, [["render", qn], ["__scopeId", "data-v-e241e088"]]), Jn = f({
|
|
1461
1466
|
name: "builder-blocks",
|
|
1462
1467
|
components: { BlocksWrapper: zn, Block: be },
|
|
1463
1468
|
props: [
|
|
@@ -1465,6 +1470,7 @@ const zn = /* @__PURE__ */ b(Kn, [["render", qn], ["__scopeId", "data-v-162df12b
|
|
|
1465
1470
|
"parent",
|
|
1466
1471
|
"path",
|
|
1467
1472
|
"styleProp",
|
|
1473
|
+
"className",
|
|
1468
1474
|
"context",
|
|
1469
1475
|
"linkComponent",
|
|
1470
1476
|
"registeredComponents"
|
|
@@ -1475,34 +1481,38 @@ const zn = /* @__PURE__ */ b(Kn, [["render", qn], ["__scopeId", "data-v-162df12b
|
|
|
1475
1481
|
}
|
|
1476
1482
|
});
|
|
1477
1483
|
function Gn(e, t, n, o, r, i) {
|
|
1478
|
-
var a, u;
|
|
1479
|
-
const s =
|
|
1480
|
-
return
|
|
1484
|
+
var a, u, h, c;
|
|
1485
|
+
const s = v("Block"), l = v("BlocksWrapper");
|
|
1486
|
+
return d(), k(l, {
|
|
1481
1487
|
blocks: e.blocks,
|
|
1482
1488
|
parent: e.parent,
|
|
1483
1489
|
path: e.path,
|
|
1484
1490
|
styleProp: e.styleProp,
|
|
1485
|
-
|
|
1486
|
-
|
|
1491
|
+
classNameProp: e.className,
|
|
1492
|
+
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
|
|
1493
|
+
BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((c = e.builderContext) == null ? void 0 : c.BlocksWrapperProps)
|
|
1487
1494
|
}, {
|
|
1488
1495
|
default: W(() => [
|
|
1489
|
-
e.blocks ? (
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
+
e.blocks ? (d(!0), m(w, { key: 0 }, A(e.blocks, (p, y) => {
|
|
1497
|
+
var g;
|
|
1498
|
+
return d(), k(s, {
|
|
1499
|
+
key: p.id,
|
|
1500
|
+
block: p,
|
|
1501
|
+
linkComponent: e.linkComponent,
|
|
1502
|
+
context: e.context || e.builderContext,
|
|
1503
|
+
registeredComponents: e.registeredComponents || ((g = e.componentsContext) == null ? void 0 : g.registeredComponents)
|
|
1504
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1505
|
+
}), 128)) : S("", !0)
|
|
1496
1506
|
]),
|
|
1497
1507
|
_: 1
|
|
1498
|
-
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1508
|
+
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1499
1509
|
}
|
|
1500
1510
|
const L = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = f({
|
|
1501
1511
|
name: "dynamic-div",
|
|
1502
1512
|
props: []
|
|
1503
1513
|
});
|
|
1504
1514
|
function Xn(e, t, n, o, r, i) {
|
|
1505
|
-
return
|
|
1515
|
+
return d(), m("div", null, [
|
|
1506
1516
|
x(e.$slots, "default")
|
|
1507
1517
|
]);
|
|
1508
1518
|
}
|
|
@@ -1697,26 +1707,26 @@ const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.f
|
|
|
1697
1707
|
});
|
|
1698
1708
|
function to(e, t, n, o, r, i) {
|
|
1699
1709
|
var u;
|
|
1700
|
-
const s =
|
|
1701
|
-
return
|
|
1710
|
+
const s = v("InlinedStyles"), l = v("Blocks"), a = v("DynamicRenderer");
|
|
1711
|
+
return d(), m("div", C({
|
|
1702
1712
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1703
1713
|
style: e.columnsCssVars()
|
|
1704
1714
|
}, {}), [
|
|
1705
|
-
e.TARGET !== "reactNative" ? (
|
|
1715
|
+
e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
1706
1716
|
key: 0,
|
|
1707
1717
|
id: "builderio-columns",
|
|
1708
1718
|
styles: e.columnsStyles(),
|
|
1709
1719
|
nonce: e.builderContext.nonce
|
|
1710
1720
|
}, null, 8, ["styles", "nonce"])) : S("", !0),
|
|
1711
|
-
(
|
|
1712
|
-
key:
|
|
1721
|
+
(d(!0), m(w, null, A(e.columns, (h, c) => (d(), k(a, {
|
|
1722
|
+
key: c,
|
|
1713
1723
|
TagName: e.getTagName(h),
|
|
1714
1724
|
actionAttributes: {},
|
|
1715
|
-
attributes: e.getAttributes(h,
|
|
1725
|
+
attributes: e.getAttributes(h, c)
|
|
1716
1726
|
}, {
|
|
1717
1727
|
default: W(() => [
|
|
1718
1728
|
$(l, {
|
|
1719
|
-
path: `component.options.columns.${
|
|
1729
|
+
path: `component.options.columns.${c}.blocks`,
|
|
1720
1730
|
parent: e.builderBlock.id,
|
|
1721
1731
|
styleProp: {
|
|
1722
1732
|
flexGrow: "1"
|
|
@@ -1736,7 +1746,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to], ["__scopeId", "data-v-adc066fc
|
|
|
1736
1746
|
props: []
|
|
1737
1747
|
});
|
|
1738
1748
|
function ro(e, t, n, o, r, i) {
|
|
1739
|
-
return
|
|
1749
|
+
return d(), m("span", null, [
|
|
1740
1750
|
x(e.$slots, "default")
|
|
1741
1751
|
]);
|
|
1742
1752
|
}
|
|
@@ -1827,10 +1837,10 @@ const lo = f({
|
|
|
1827
1837
|
class: "div-29wpyomtntv-2"
|
|
1828
1838
|
};
|
|
1829
1839
|
function mo(e, t, n, o, r, i) {
|
|
1830
|
-
var s, l, a, u, h,
|
|
1831
|
-
return
|
|
1840
|
+
var s, l, a, u, h, c;
|
|
1841
|
+
return d(), m(w, null, [
|
|
1832
1842
|
K("picture", null, [
|
|
1833
|
-
e.webpSrcSet ? (
|
|
1843
|
+
e.webpSrcSet ? (d(), m("source", {
|
|
1834
1844
|
key: 0,
|
|
1835
1845
|
type: "image/webp",
|
|
1836
1846
|
srcset: e.webpSrcSet
|
|
@@ -1853,7 +1863,7 @@ function mo(e, t, n, o, r, i) {
|
|
|
1853
1863
|
sizes: e.sizes
|
|
1854
1864
|
}, null, 14, uo)
|
|
1855
1865
|
]),
|
|
1856
|
-
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (
|
|
1866
|
+
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), m("div", {
|
|
1857
1867
|
key: 0,
|
|
1858
1868
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1859
1869
|
style: F({
|
|
@@ -1861,7 +1871,7 @@ function mo(e, t, n, o, r, i) {
|
|
|
1861
1871
|
})
|
|
1862
1872
|
}, null, 4)) : S("", !0),
|
|
1863
1873
|
(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),
|
|
1864
|
-
!e.fitContent && ((
|
|
1874
|
+
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div", po, [
|
|
1865
1875
|
x(e.$slots, "default", {}, void 0, !0)
|
|
1866
1876
|
])) : S("", !0)
|
|
1867
1877
|
], 64);
|
|
@@ -1874,7 +1884,7 @@ const ho = /* @__PURE__ */ b(lo, [["render", mo], ["__scopeId", "data-v-77f8a6c4
|
|
|
1874
1884
|
}
|
|
1875
1885
|
});
|
|
1876
1886
|
function bo(e, t, n, o, r, i) {
|
|
1877
|
-
return
|
|
1887
|
+
return d(), m("section", C({
|
|
1878
1888
|
style: {
|
|
1879
1889
|
width: "100%",
|
|
1880
1890
|
alignSelf: "stretch",
|
|
@@ -2112,12 +2122,12 @@ const go = /* @__PURE__ */ b(fo, [["render", bo]]), ne = {
|
|
|
2112
2122
|
}
|
|
2113
2123
|
}), So = ["data-index", "onClick"];
|
|
2114
2124
|
function Co(e, t, n, o, r, i) {
|
|
2115
|
-
const s =
|
|
2116
|
-
return
|
|
2125
|
+
const s = v("Blocks");
|
|
2126
|
+
return d(), m("div", {
|
|
2117
2127
|
class: "builder-accordion",
|
|
2118
2128
|
style: F(e.accordionStyles)
|
|
2119
2129
|
}, [
|
|
2120
|
-
(
|
|
2130
|
+
(d(!0), m(w, null, A(e.items, (l, a) => (d(), m(w, { key: a }, [
|
|
2121
2131
|
K("div", {
|
|
2122
2132
|
class: q(e.getAccordionTitleClassName(a)),
|
|
2123
2133
|
style: F({
|
|
@@ -2137,7 +2147,7 @@ function Co(e, t, n, o, r, i) {
|
|
|
2137
2147
|
linkComponent: e.builderLinkComponent
|
|
2138
2148
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2139
2149
|
], 14, So),
|
|
2140
|
-
e.open.includes(a) ? (
|
|
2150
|
+
e.open.includes(a) ? (d(), m("div", {
|
|
2141
2151
|
key: 0,
|
|
2142
2152
|
class: q(e.getAccordionDetailClassName(a)),
|
|
2143
2153
|
style: F(e.accordionDetailStyles)
|
|
@@ -2426,13 +2436,13 @@ const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
|
2426
2436
|
function n(s, l = 6e4) {
|
|
2427
2437
|
return new Promise((a, u) => {
|
|
2428
2438
|
const h = document.createElement("img");
|
|
2429
|
-
let
|
|
2439
|
+
let c = !1;
|
|
2430
2440
|
h.onload = () => {
|
|
2431
|
-
|
|
2441
|
+
c = !0, a(h);
|
|
2432
2442
|
}, h.addEventListener("error", (p) => {
|
|
2433
2443
|
console.warn("Image load failed", p.error), u(p.error);
|
|
2434
2444
|
}), h.src = s, setTimeout(() => {
|
|
2435
|
-
|
|
2445
|
+
c || u(new Error("Image load timed out"));
|
|
2436
2446
|
}, l);
|
|
2437
2447
|
});
|
|
2438
2448
|
}
|
|
@@ -2574,8 +2584,8 @@ const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
|
2574
2584
|
});
|
|
2575
2585
|
function xo(e, t, n, o, r, i) {
|
|
2576
2586
|
var l, a, u;
|
|
2577
|
-
const s =
|
|
2578
|
-
return
|
|
2587
|
+
const s = v("Blocks");
|
|
2588
|
+
return d(), m("div", C(
|
|
2579
2589
|
{ style: {
|
|
2580
2590
|
pointerEvents: "auto"
|
|
2581
2591
|
} },
|
|
@@ -2799,8 +2809,8 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", xo]]), Vo = {
|
|
|
2799
2809
|
}
|
|
2800
2810
|
}), Oo = ["onClick"], Fo = { key: 0 };
|
|
2801
2811
|
function Do(e, t, n, o, r, i) {
|
|
2802
|
-
const s =
|
|
2803
|
-
return
|
|
2812
|
+
const s = v("Blocks");
|
|
2813
|
+
return d(), m("div", null, [
|
|
2804
2814
|
K("div", {
|
|
2805
2815
|
class: "builder-tabs-wrap",
|
|
2806
2816
|
style: F({
|
|
@@ -2810,7 +2820,7 @@ function Do(e, t, n, o, r, i) {
|
|
|
2810
2820
|
overflow: "auto"
|
|
2811
2821
|
})
|
|
2812
2822
|
}, [
|
|
2813
|
-
(
|
|
2823
|
+
(d(!0), m(w, null, A(e.tabs, (l, a) => (d(), m("span", {
|
|
2814
2824
|
key: a,
|
|
2815
2825
|
class: q(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2816
2826
|
style: F({
|
|
@@ -2828,7 +2838,7 @@ function Do(e, t, n, o, r, i) {
|
|
|
2828
2838
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2829
2839
|
], 14, Oo))), 128))
|
|
2830
2840
|
], 4),
|
|
2831
|
-
e.activeTabContent(e.activeTab) ? (
|
|
2841
|
+
e.activeTabContent(e.activeTab) ? (d(), m("div", Fo, [
|
|
2832
2842
|
$(s, {
|
|
2833
2843
|
parent: e.builderBlock.id,
|
|
2834
2844
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -2888,7 +2898,7 @@ const Lo = /* @__PURE__ */ b(No, [["render", Do]]), Uo = {
|
|
|
2888
2898
|
}
|
|
2889
2899
|
}), jo = ["innerHTML"];
|
|
2890
2900
|
function Ho(e, t, n, o, r, i) {
|
|
2891
|
-
return
|
|
2901
|
+
return d(), m("div", {
|
|
2892
2902
|
class: "builder-text",
|
|
2893
2903
|
innerHTML: e.processedText,
|
|
2894
2904
|
style: {
|
|
@@ -2954,7 +2964,7 @@ const Ko = /* @__PURE__ */ b(Mo, [["render", Ho]]), qo = {
|
|
|
2954
2964
|
}
|
|
2955
2965
|
}), Jo = ["innerHTML"];
|
|
2956
2966
|
function Go(e, t, n, o, r, i) {
|
|
2957
|
-
return
|
|
2967
|
+
return d(), m("div", {
|
|
2958
2968
|
ref: "elementRef",
|
|
2959
2969
|
class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2960
2970
|
innerHTML: e.code
|
|
@@ -3019,7 +3029,7 @@ const Yo = /* @__PURE__ */ b(zo, [["render", Go]]), Xo = {
|
|
|
3019
3029
|
}
|
|
3020
3030
|
}), er = ["innerHTML"];
|
|
3021
3031
|
function tr(e, t, n, o, r, i) {
|
|
3022
|
-
return
|
|
3032
|
+
return d(), m("div", {
|
|
3023
3033
|
class: "builder-embed",
|
|
3024
3034
|
ref: "elem",
|
|
3025
3035
|
innerHTML: e.content
|
|
@@ -3324,40 +3334,40 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3324
3334
|
e.preventDefault();
|
|
3325
3335
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3326
3336
|
let i;
|
|
3327
|
-
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((
|
|
3337
|
+
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
|
|
3328
3338
|
let p;
|
|
3329
|
-
const
|
|
3330
|
-
if (
|
|
3331
|
-
if (
|
|
3332
|
-
if (
|
|
3333
|
-
return p =
|
|
3334
|
-
key:
|
|
3339
|
+
const y = c.name;
|
|
3340
|
+
if (c instanceof HTMLInputElement)
|
|
3341
|
+
if (c.type === "radio") {
|
|
3342
|
+
if (c.checked)
|
|
3343
|
+
return p = c.name, {
|
|
3344
|
+
key: y,
|
|
3335
3345
|
value: p
|
|
3336
3346
|
};
|
|
3337
|
-
} else if (
|
|
3338
|
-
p =
|
|
3339
|
-
else if (
|
|
3340
|
-
const
|
|
3341
|
-
isNaN(
|
|
3347
|
+
} else if (c.type === "checkbox")
|
|
3348
|
+
p = c.checked;
|
|
3349
|
+
else if (c.type === "number" || c.type === "range") {
|
|
3350
|
+
const g = c.valueAsNumber;
|
|
3351
|
+
isNaN(g) || (p = g);
|
|
3342
3352
|
} else
|
|
3343
|
-
|
|
3353
|
+
c.type === "file" ? p = c.files : p = c.value;
|
|
3344
3354
|
else
|
|
3345
|
-
p =
|
|
3355
|
+
p = c.value;
|
|
3346
3356
|
return {
|
|
3347
|
-
key:
|
|
3357
|
+
key: y,
|
|
3348
3358
|
value: p
|
|
3349
3359
|
};
|
|
3350
3360
|
});
|
|
3351
3361
|
let a = this.contentType;
|
|
3352
|
-
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value:
|
|
3353
|
-
(
|
|
3362
|
+
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
|
|
3363
|
+
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
|
|
3354
3364
|
}), a !== "application/json")
|
|
3355
3365
|
i = s;
|
|
3356
3366
|
else {
|
|
3357
|
-
const
|
|
3358
|
-
Array.from(l).forEach(({ value: p, key:
|
|
3359
|
-
Oe(
|
|
3360
|
-
}), i = JSON.stringify(
|
|
3367
|
+
const c = {};
|
|
3368
|
+
Array.from(l).forEach(({ value: p, key: y }) => {
|
|
3369
|
+
Oe(c, y, p);
|
|
3370
|
+
}), i = JSON.stringify(c);
|
|
3361
3371
|
}
|
|
3362
3372
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
3363
3373
|
const u = new CustomEvent("presubmit", {
|
|
@@ -3379,24 +3389,24 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3379
3389
|
method: this.method || "post"
|
|
3380
3390
|
}
|
|
3381
3391
|
).then(
|
|
3382
|
-
async (
|
|
3392
|
+
async (c) => {
|
|
3383
3393
|
let p;
|
|
3384
|
-
const
|
|
3385
|
-
if (
|
|
3386
|
-
let
|
|
3387
|
-
|
|
3388
|
-
formErrorMessage:
|
|
3394
|
+
const y = c.headers.get("content-type");
|
|
3395
|
+
if (y && y.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
|
|
3396
|
+
let g = xe(p, this.errorMessagePath);
|
|
3397
|
+
g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
|
|
3398
|
+
formErrorMessage: g
|
|
3389
3399
|
}));
|
|
3390
3400
|
}
|
|
3391
|
-
if (this.responseData = p, this.formState =
|
|
3392
|
-
const
|
|
3401
|
+
if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
3402
|
+
const g = new CustomEvent("submit:success", {
|
|
3393
3403
|
detail: {
|
|
3394
|
-
res:
|
|
3404
|
+
res: c,
|
|
3395
3405
|
body: p
|
|
3396
3406
|
}
|
|
3397
3407
|
});
|
|
3398
3408
|
if (this.$refs.formRef) {
|
|
3399
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
3409
|
+
if (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented)
|
|
3400
3410
|
return;
|
|
3401
3411
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
3402
3412
|
}
|
|
@@ -3412,13 +3422,13 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3412
3422
|
location.href = this.successUrl;
|
|
3413
3423
|
}
|
|
3414
3424
|
},
|
|
3415
|
-
(
|
|
3425
|
+
(c) => {
|
|
3416
3426
|
const p = new CustomEvent("submit:error", {
|
|
3417
3427
|
detail: {
|
|
3418
|
-
error:
|
|
3428
|
+
error: c
|
|
3419
3429
|
}
|
|
3420
3430
|
});
|
|
3421
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData =
|
|
3431
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = c, this.formState = "error");
|
|
3422
3432
|
}
|
|
3423
3433
|
);
|
|
3424
3434
|
}
|
|
@@ -3430,8 +3440,8 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
|
3430
3440
|
};
|
|
3431
3441
|
function cr(e, t, n, o, r, i) {
|
|
3432
3442
|
var a;
|
|
3433
|
-
const s =
|
|
3434
|
-
return
|
|
3443
|
+
const s = v("Block"), l = v("Blocks");
|
|
3444
|
+
return d(), m("form", C({
|
|
3435
3445
|
validate: e.validate,
|
|
3436
3446
|
ref: "formRef",
|
|
3437
3447
|
action: !e.sendWithJs && e.action,
|
|
@@ -3439,27 +3449,27 @@ function cr(e, t, n, o, r, i) {
|
|
|
3439
3449
|
name: e.name,
|
|
3440
3450
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3441
3451
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3442
|
-
e.builderBlock && e.builderBlock.children ? (
|
|
3452
|
+
e.builderBlock && e.builderBlock.children ? (d(!0), m(w, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(s, {
|
|
3443
3453
|
key: `form-block-${e.idx}`,
|
|
3444
3454
|
block: u,
|
|
3445
3455
|
context: e.builderContext,
|
|
3446
3456
|
registeredComponents: e.builderComponents,
|
|
3447
3457
|
linkComponent: e.builderLinkComponent
|
|
3448
3458
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
|
|
3449
|
-
e.submissionState() === "error" ? (
|
|
3459
|
+
e.submissionState() === "error" ? (d(), k(l, {
|
|
3450
3460
|
key: 1,
|
|
3451
3461
|
path: "errorMessage",
|
|
3452
3462
|
blocks: e.errorMessage,
|
|
3453
3463
|
context: e.builderContext
|
|
3454
3464
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3455
|
-
e.submissionState() === "sending" ? (
|
|
3465
|
+
e.submissionState() === "sending" ? (d(), k(l, {
|
|
3456
3466
|
key: 2,
|
|
3457
3467
|
path: "sendingMessage",
|
|
3458
3468
|
blocks: e.sendingMessage,
|
|
3459
3469
|
context: e.builderContext
|
|
3460
3470
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3461
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
3462
|
-
e.submissionState() === "success" ? (
|
|
3471
|
+
e.submissionState() === "error" && e.responseData ? (d(), m("pre", lr, ee(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3472
|
+
e.submissionState() === "success" ? (d(), k(l, {
|
|
3463
3473
|
key: 4,
|
|
3464
3474
|
path: "successMessage",
|
|
3465
3475
|
blocks: e.successMessage,
|
|
@@ -3534,7 +3544,7 @@ const dr = /* @__PURE__ */ b(sr, [["render", cr], ["__scopeId", "data-v-6e18f21b
|
|
|
3534
3544
|
}
|
|
3535
3545
|
}), mr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3536
3546
|
function hr(e, t, n, o, r, i) {
|
|
3537
|
-
return
|
|
3547
|
+
return d(), m("input", C({
|
|
3538
3548
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3539
3549
|
placeholder: e.placeholder,
|
|
3540
3550
|
type: e.type,
|
|
@@ -3594,14 +3604,14 @@ const fr = /* @__PURE__ */ b(pr, [["render", hr]]), br = {
|
|
|
3594
3604
|
}
|
|
3595
3605
|
}), yr = ["value", "defaultValue", "name", "required"], kr = ["value"];
|
|
3596
3606
|
function vr(e, t, n, o, r, i) {
|
|
3597
|
-
return
|
|
3607
|
+
return d(), m("select", C({
|
|
3598
3608
|
value: e.value,
|
|
3599
3609
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3600
3610
|
defaultValue: e.defaultValue,
|
|
3601
3611
|
name: e.name,
|
|
3602
3612
|
required: e.required
|
|
3603
3613
|
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3604
|
-
(
|
|
3614
|
+
(d(!0), m(w, null, A(e.options, (s, l) => (d(), m("option", {
|
|
3605
3615
|
key: `${s.name}-${l}`,
|
|
3606
3616
|
value: s.value
|
|
3607
3617
|
}, ee(s.name || s.value), 9, kr))), 128))
|
|
@@ -3640,7 +3650,7 @@ const Sr = /* @__PURE__ */ b(gr, [["render", vr]]), Cr = {
|
|
|
3640
3650
|
}
|
|
3641
3651
|
});
|
|
3642
3652
|
function Tr(e, t, n, o, r, i) {
|
|
3643
|
-
return
|
|
3653
|
+
return d(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
|
|
3644
3654
|
}
|
|
3645
3655
|
const Ir = /* @__PURE__ */ b(wr, [["render", Tr]]), $r = {
|
|
3646
3656
|
name: "Form:TextArea",
|
|
@@ -3693,7 +3703,7 @@ const Ir = /* @__PURE__ */ b(wr, [["render", Tr]]), $r = {
|
|
|
3693
3703
|
}
|
|
3694
3704
|
}), Er = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3695
3705
|
function Pr(e, t, n, o, r, i) {
|
|
3696
|
-
return
|
|
3706
|
+
return d(), m("textarea", C({
|
|
3697
3707
|
placeholder: e.placeholder,
|
|
3698
3708
|
name: e.name,
|
|
3699
3709
|
value: e.value,
|
|
@@ -3730,7 +3740,7 @@ const Br = /* @__PURE__ */ b(Rr, [["render", Pr]]), xr = {
|
|
|
3730
3740
|
}
|
|
3731
3741
|
}), Vr = ["alt", "src"];
|
|
3732
3742
|
function Wr(e, t, n, o, r, i) {
|
|
3733
|
-
return
|
|
3743
|
+
return d(), m("img", C({
|
|
3734
3744
|
style: {
|
|
3735
3745
|
objectFit: e.backgroundSize || "cover",
|
|
3736
3746
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -3893,8 +3903,8 @@ const Nr = /* @__PURE__ */ b(Ar, [["render", Wr]]), Or = {
|
|
|
3893
3903
|
}
|
|
3894
3904
|
};
|
|
3895
3905
|
function Hr(e, t, n, o, r, i) {
|
|
3896
|
-
var s, l, a, u, h,
|
|
3897
|
-
return
|
|
3906
|
+
var s, l, a, u, h, c, p;
|
|
3907
|
+
return d(), m("div", Dr, [
|
|
3898
3908
|
K("video", C({
|
|
3899
3909
|
class: "builder-video",
|
|
3900
3910
|
preload: e.preload || "metadata",
|
|
@@ -3915,13 +3925,13 @@ function Hr(e, t, n, o, r, i) {
|
|
|
3915
3925
|
src: e.video || "no-src",
|
|
3916
3926
|
poster: e.posterImage
|
|
3917
3927
|
}, e.spreadProps), [
|
|
3918
|
-
e.lazyLoad ? S("", !0) : (
|
|
3928
|
+
e.lazyLoad ? S("", !0) : (d(), m("source", {
|
|
3919
3929
|
key: 0,
|
|
3920
3930
|
type: "video/mp4",
|
|
3921
3931
|
src: e.video
|
|
3922
3932
|
}, null, 8, Ur))
|
|
3923
3933
|
], 16, Lr),
|
|
3924
|
-
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (
|
|
3934
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), m("div", {
|
|
3925
3935
|
key: 0,
|
|
3926
3936
|
style: F({
|
|
3927
3937
|
width: "100%",
|
|
@@ -3930,10 +3940,10 @@ function Hr(e, t, n, o, r, i) {
|
|
|
3930
3940
|
fontSize: "0px"
|
|
3931
3941
|
})
|
|
3932
3942
|
}, null, 4)) : S("", !0),
|
|
3933
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (
|
|
3943
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div", Mr, [
|
|
3934
3944
|
x(e.$slots, "default")
|
|
3935
3945
|
])) : S("", !0),
|
|
3936
|
-
(p = (
|
|
3946
|
+
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div", jr, [
|
|
3937
3947
|
x(e.$slots, "default")
|
|
3938
3948
|
])) : S("", !0)
|
|
3939
3949
|
]);
|
|
@@ -4474,7 +4484,7 @@ font-weight: ${s};
|
|
|
4474
4484
|
});
|
|
4475
4485
|
function ci(e, t, n, o, r, i) {
|
|
4476
4486
|
var s, l, a;
|
|
4477
|
-
return e.builderContextSignal.content ? (
|
|
4487
|
+
return e.builderContextSignal.content ? (d(), k(j(e.ContentWrapper), C({
|
|
4478
4488
|
key: 0,
|
|
4479
4489
|
ref: "elementRef",
|
|
4480
4490
|
onClick: (u) => e.onClick(u),
|
|
@@ -4510,8 +4520,8 @@ ${si(this.isNestedRender)}
|
|
|
4510
4520
|
}
|
|
4511
4521
|
});
|
|
4512
4522
|
function pi(e, t, n, o, r, i) {
|
|
4513
|
-
const s =
|
|
4514
|
-
return
|
|
4523
|
+
const s = v("InlinedStyles");
|
|
4524
|
+
return d(), k(s, {
|
|
4515
4525
|
id: "builderio-content",
|
|
4516
4526
|
styles: e.injectedStyles,
|
|
4517
4527
|
nonce: e.nonce
|
|
@@ -4663,8 +4673,8 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
|
4663
4673
|
}
|
|
4664
4674
|
});
|
|
4665
4675
|
function yi(e, t, n, o, r, i) {
|
|
4666
|
-
const s =
|
|
4667
|
-
return
|
|
4676
|
+
const s = v("InlinedScript"), l = v("ContentStyles"), a = v("Blocks"), u = v("EnableEditor");
|
|
4677
|
+
return d(), k(u, C({
|
|
4668
4678
|
nonce: e.nonce,
|
|
4669
4679
|
content: e.content,
|
|
4670
4680
|
data: e.data,
|
|
@@ -4681,21 +4691,21 @@ function yi(e, t, n, o, r, i) {
|
|
|
4681
4691
|
trustedHosts: e.trustedHosts
|
|
4682
4692
|
}, {}), {
|
|
4683
4693
|
default: W(() => {
|
|
4684
|
-
var h,
|
|
4694
|
+
var h, c, p, y, g, N, Y;
|
|
4685
4695
|
return [
|
|
4686
|
-
e.isSsrAbTest ? (
|
|
4696
|
+
e.isSsrAbTest ? (d(), k(s, {
|
|
4687
4697
|
key: 0,
|
|
4688
4698
|
id: "builderio-variant-visibility",
|
|
4689
4699
|
scriptStr: e.scriptStr,
|
|
4690
4700
|
nonce: e.nonce || ""
|
|
4691
4701
|
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4692
|
-
e.TARGET !== "reactNative" ? (
|
|
4702
|
+
e.TARGET !== "reactNative" ? (d(), k(l, {
|
|
4693
4703
|
key: 1,
|
|
4694
4704
|
nonce: e.nonce || "",
|
|
4695
4705
|
isNestedRender: e.isNestedRender,
|
|
4696
4706
|
contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
|
|
4697
|
-
cssCode: (p = (
|
|
4698
|
-
customFonts: (
|
|
4707
|
+
cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
|
|
4708
|
+
customFonts: (g = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : g.customFonts
|
|
4699
4709
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4700
4710
|
$(a, {
|
|
4701
4711
|
blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
|
|
@@ -4775,15 +4785,15 @@ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
|
|
|
4775
4785
|
}
|
|
4776
4786
|
});
|
|
4777
4787
|
function Si(e, t, n, o, r, i) {
|
|
4778
|
-
const s =
|
|
4779
|
-
return
|
|
4780
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (
|
|
4788
|
+
const s = v("InlinedScript"), l = v("InlinedStyles"), a = v("ContentComponent");
|
|
4789
|
+
return d(), m(w, null, [
|
|
4790
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
4781
4791
|
key: 0,
|
|
4782
4792
|
id: "builderio-init-variants-fns",
|
|
4783
4793
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4784
4794
|
nonce: e.nonce || ""
|
|
4785
4795
|
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4786
|
-
e.shouldRenderVariants ? (
|
|
4796
|
+
e.shouldRenderVariants ? (d(), m(w, { key: 1 }, [
|
|
4787
4797
|
$(l, {
|
|
4788
4798
|
id: "builderio-variants",
|
|
4789
4799
|
styles: e.hideVariantsStyleString,
|
|
@@ -4794,7 +4804,7 @@ function Si(e, t, n, o, r, i) {
|
|
|
4794
4804
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4795
4805
|
nonce: e.nonce || ""
|
|
4796
4806
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4797
|
-
(
|
|
4807
|
+
(d(!0), m(w, null, A(e.getVariants(e.content), (u, h) => (d(), k(a, C({
|
|
4798
4808
|
key: u.testVariationId,
|
|
4799
4809
|
isNestedRender: e.isNestedRender,
|
|
4800
4810
|
nonce: e.nonce,
|
|
@@ -4923,9 +4933,9 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = async ({
|
|
|
4923
4933
|
}
|
|
4924
4934
|
});
|
|
4925
4935
|
function Ii(e, t, n, o, r, i) {
|
|
4926
|
-
var l, a, u, h,
|
|
4927
|
-
const s =
|
|
4928
|
-
return
|
|
4936
|
+
var l, a, u, h, c;
|
|
4937
|
+
const s = v("ContentVariants");
|
|
4938
|
+
return d(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4929
4939
|
$(s, {
|
|
4930
4940
|
nonce: e.builderContext.nonce,
|
|
4931
4941
|
isNestedRender: !0,
|
|
@@ -4942,7 +4952,7 @@ function Ii(e, t, n, o, r, i) {
|
|
|
4942
4952
|
...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
|
|
4943
4953
|
},
|
|
4944
4954
|
canTrack: e.builderContext.canTrack,
|
|
4945
|
-
model: (
|
|
4955
|
+
model: (c = e.symbol) == null ? void 0 : c.model,
|
|
4946
4956
|
content: e.contentToUse,
|
|
4947
4957
|
linkComponent: e.builderLinkComponent,
|
|
4948
4958
|
blocksWrapper: e.blocksWrapper,
|