@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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as
|
|
1
|
+
import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as T, createBlock as k, resolveDynamicComponent as j, mergeProps as C, toHandlers as E, withCtx as W, renderSlot as P, resolveComponent as v, createTextVNode as rt, toDisplayString as _, defineAsyncComponent as M, createVNode as I, renderList as A, createCommentVNode as S, h as Re, createElementVNode as K, normalizeStyle as O, normalizeClass as q, markRaw as it } from "vue";
|
|
2
2
|
import { T as x, g as st, f as at, i as $, s as lt, r as ct, p as dt, a as ut, l as B, b as Ee, c as ce, d as pt, n as Pe, e as D, h as R, j as mt } from "./should-force-browser-runtime-in-node-o45oecPI.js";
|
|
3
3
|
const ht = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ft = (e) => typeof e == "string" && ht.has(e.toLowerCase());
|
|
4
4
|
function V(e = {}, t, n) {
|
|
@@ -24,13 +24,13 @@ const bt = f({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function gt(e, t, n, o, r, s) {
|
|
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, E(e.actionAttributes)), null, 16)) : (d(), m(T, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), k(j(e.TagName), C({ key: 0 }, e.attributes, E(e.actionAttributes)), {
|
|
29
29
|
default: W(() => [
|
|
30
30
|
P(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (
|
|
33
|
+
}, 16)) : (d(), k(j(e.TagName), C({ key: 1 }, e.attributes, E(e.actionAttributes)), {
|
|
34
34
|
default: W(() => [
|
|
35
35
|
P(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -84,8 +84,8 @@ const de = /* @__PURE__ */ b(bt, [["render", gt]]), wi = /* @__PURE__ */ Object.
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
function kt(e, t, n, o, r, s) {
|
|
87
|
-
const i =
|
|
88
|
-
return
|
|
87
|
+
const i = v("DynamicRenderer");
|
|
88
|
+
return d(), k(i, {
|
|
89
89
|
attributes: e.attrs(),
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
@@ -522,7 +522,7 @@ function Ue(e, t) {
|
|
|
522
522
|
const n = new URL(t.origin), o = n.hostname;
|
|
523
523
|
return (e || tn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
524
524
|
}
|
|
525
|
-
const nn = "2.0.
|
|
525
|
+
const nn = "2.0.24", on = () => {
|
|
526
526
|
Ot("insertMenu", {
|
|
527
527
|
name: "_default",
|
|
528
528
|
default: !0,
|
|
@@ -575,11 +575,11 @@ const Me = (e = {}) => {
|
|
|
575
575
|
switch (r.type) {
|
|
576
576
|
case "builder.evaluate": {
|
|
577
577
|
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
|
|
578
|
-
let
|
|
578
|
+
let c, p = null;
|
|
579
579
|
try {
|
|
580
|
-
|
|
581
|
-
} catch (
|
|
582
|
-
p =
|
|
580
|
+
c = h.apply(null, a);
|
|
581
|
+
} catch (y) {
|
|
582
|
+
p = y;
|
|
583
583
|
}
|
|
584
584
|
p ? (s = window.parent) == null || s.postMessage({
|
|
585
585
|
type: "builder.evaluateError",
|
|
@@ -587,19 +587,19 @@ const Me = (e = {}) => {
|
|
|
587
587
|
id: u,
|
|
588
588
|
error: p.message
|
|
589
589
|
}
|
|
590
|
-
}, "*") :
|
|
591
|
-
var
|
|
592
|
-
(
|
|
590
|
+
}, "*") : c && typeof c.then == "function" ? c.then((y) => {
|
|
591
|
+
var g;
|
|
592
|
+
(g = window.parent) == null || g.postMessage({
|
|
593
593
|
type: "builder.evaluateResult",
|
|
594
594
|
data: {
|
|
595
595
|
id: u,
|
|
596
|
-
result:
|
|
596
|
+
result: y
|
|
597
597
|
}
|
|
598
598
|
}, "*");
|
|
599
599
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
600
600
|
type: "builder.evaluateResult",
|
|
601
601
|
data: {
|
|
602
|
-
result:
|
|
602
|
+
result: c,
|
|
603
603
|
id: u
|
|
604
604
|
}
|
|
605
605
|
}, "*");
|
|
@@ -789,10 +789,10 @@ const fn = "v3", Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (
|
|
|
789
789
|
apiVersion: a = fn,
|
|
790
790
|
fields: u,
|
|
791
791
|
omit: h,
|
|
792
|
-
offset:
|
|
792
|
+
offset: c,
|
|
793
793
|
cacheSeconds: p,
|
|
794
|
-
staleCacheSeconds:
|
|
795
|
-
sort:
|
|
794
|
+
staleCacheSeconds: y,
|
|
795
|
+
sort: g,
|
|
796
796
|
includeUnpublished: N
|
|
797
797
|
} = e;
|
|
798
798
|
if (!s)
|
|
@@ -800,9 +800,9 @@ const fn = "v3", Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (
|
|
|
800
800
|
if (!["v3"].includes(a))
|
|
801
801
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
802
802
|
const Y = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
803
|
-
if (w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(Y)), 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(
|
|
803
|
+
if (w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(Y)), 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 N == "boolean" && w.searchParams.set("includeUnpublished", String(N)), p && Ce(p) && w.searchParams.set("cacheSeconds", String(p)), y && Ce(y) && w.searchParams.set("staleCacheSeconds", String(y)), g) {
|
|
804
804
|
const F = le({
|
|
805
|
-
sort:
|
|
805
|
+
sort: g
|
|
806
806
|
});
|
|
807
807
|
for (const U in F)
|
|
808
808
|
w.searchParams.set(U, JSON.stringify(F[U]));
|
|
@@ -964,8 +964,8 @@ function Tn(e) {
|
|
|
964
964
|
leading: !1
|
|
965
965
|
});
|
|
966
966
|
function l(h) {
|
|
967
|
-
const
|
|
968
|
-
return
|
|
967
|
+
const c = h.getBoundingClientRect(), p = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * p;
|
|
968
|
+
return c.bottom > g && c.top < p - g;
|
|
969
969
|
}
|
|
970
970
|
const a = e.steps[0].styles;
|
|
971
971
|
function u() {
|
|
@@ -1094,22 +1094,22 @@ const $n = ({
|
|
|
1094
1094
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1095
1095
|
e
|
|
1096
1096
|
), e;
|
|
1097
|
-
}), Vn = () => import("./block-styles-
|
|
1097
|
+
}), Vn = () => import("./block-styles-quUqeiHV.js").then((e) => e.default).catch((e) => {
|
|
1098
1098
|
throw console.error(
|
|
1099
1099
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1100
1100
|
e
|
|
1101
1101
|
), e;
|
|
1102
|
-
}), Wn = () => import("./block-wrapper-
|
|
1102
|
+
}), Wn = () => import("./block-wrapper-1t5eBFHt.js").then((e) => e.default).catch((e) => {
|
|
1103
1103
|
throw console.error(
|
|
1104
1104
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1105
1105
|
e
|
|
1106
1106
|
), e;
|
|
1107
|
-
}), Nn = () => import("./component-ref-
|
|
1107
|
+
}), Nn = () => import("./component-ref-Aiwer6jd.js").then((e) => e.default).catch((e) => {
|
|
1108
1108
|
throw console.error(
|
|
1109
1109
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1110
1110
|
e
|
|
1111
1111
|
), e;
|
|
1112
|
-
}), Fn = () => import("./repeated-block-
|
|
1112
|
+
}), Fn = () => import("./repeated-block-n_E2nVxY.js").then((e) => e.default).catch((e) => {
|
|
1113
1113
|
throw console.error(
|
|
1114
1114
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1115
1115
|
e
|
|
@@ -1208,21 +1208,21 @@ const $n = ({
|
|
|
1208
1208
|
}
|
|
1209
1209
|
});
|
|
1210
1210
|
function Dn(e, t, n, o, r, s) {
|
|
1211
|
-
var
|
|
1212
|
-
const i =
|
|
1213
|
-
return e.canShowBlock ? (
|
|
1211
|
+
var c;
|
|
1212
|
+
const i = v("BlockStyles"), l = v("ComponentRef"), a = v("Block", !0), u = v("BlockWrapper"), h = v("RepeatedBlock");
|
|
1213
|
+
return e.canShowBlock ? (d(), m(T, { key: 0 }, [
|
|
1214
1214
|
I(i, {
|
|
1215
1215
|
block: e.processedBlock,
|
|
1216
1216
|
context: e.context
|
|
1217
1217
|
}, null, 8, ["block", "context"]),
|
|
1218
|
-
(
|
|
1219
|
-
e.repeatItem ? (
|
|
1220
|
-
key:
|
|
1218
|
+
(c = e.blockComponent) != null && c.noWrap ? (d(), m(T, { key: 1 }, [
|
|
1219
|
+
e.repeatItem ? (d(!0), m(T, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
|
|
1220
|
+
key: y,
|
|
1221
1221
|
repeatContext: p.context,
|
|
1222
1222
|
block: p.block,
|
|
1223
1223
|
registeredComponents: e.registeredComponents,
|
|
1224
1224
|
linkComponent: e.linkComponent
|
|
1225
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1225
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(l, {
|
|
1226
1226
|
key: 0,
|
|
1227
1227
|
componentRef: e.componentRefProps.componentRef,
|
|
1228
1228
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1234,14 +1234,14 @@ function Dn(e, t, n, o, r, s) {
|
|
|
1234
1234
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1235
1235
|
isInteractive: e.componentRefProps.isInteractive
|
|
1236
1236
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1237
|
-
], 64)) : (
|
|
1238
|
-
e.repeatItem ? (
|
|
1239
|
-
key:
|
|
1237
|
+
], 64)) : (d(), m(T, { key: 0 }, [
|
|
1238
|
+
e.repeatItem ? (d(!0), m(T, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
|
|
1239
|
+
key: y,
|
|
1240
1240
|
repeatContext: p.context,
|
|
1241
1241
|
block: p.block,
|
|
1242
1242
|
registeredComponents: e.registeredComponents,
|
|
1243
1243
|
linkComponent: e.linkComponent
|
|
1244
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1244
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(u, {
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
Wrapper: e.Tag,
|
|
1247
1247
|
block: e.processedBlock,
|
|
@@ -1259,7 +1259,7 @@ function Dn(e, t, n, o, r, s) {
|
|
|
1259
1259
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1260
1260
|
isInteractive: e.componentRefProps.isInteractive
|
|
1261
1261
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1262
|
-
(
|
|
1262
|
+
(d(!0), m(T, null, A(e.childrenWithoutParentComponent, (p, y) => (d(), k(a, {
|
|
1263
1263
|
key: p.id,
|
|
1264
1264
|
block: p,
|
|
1265
1265
|
registeredComponents: e.registeredComponents,
|
|
@@ -1279,6 +1279,7 @@ const fe = /* @__PURE__ */ b(On, [["render", Dn]]), xi = /* @__PURE__ */ Object.
|
|
|
1279
1279
|
name: "builder-blocks-wrapper",
|
|
1280
1280
|
props: [
|
|
1281
1281
|
"blocks",
|
|
1282
|
+
"classNameProp",
|
|
1282
1283
|
"parent",
|
|
1283
1284
|
"path",
|
|
1284
1285
|
"styleProp",
|
|
@@ -1290,7 +1291,11 @@ const fe = /* @__PURE__ */ b(On, [["render", Dn]]), xi = /* @__PURE__ */ Object.
|
|
|
1290
1291
|
computed: {
|
|
1291
1292
|
className() {
|
|
1292
1293
|
var e;
|
|
1293
|
-
return
|
|
1294
|
+
return [
|
|
1295
|
+
"builder-blocks",
|
|
1296
|
+
(e = this.blocks) != null && e.length ? "" : "no-blocks",
|
|
1297
|
+
this.classNameProp
|
|
1298
|
+
].filter(Boolean).join(" ");
|
|
1294
1299
|
}
|
|
1295
1300
|
},
|
|
1296
1301
|
methods: {
|
|
@@ -1323,7 +1328,7 @@ const fe = /* @__PURE__ */ b(On, [["render", Dn]]), xi = /* @__PURE__ */ Object.
|
|
|
1323
1328
|
}
|
|
1324
1329
|
});
|
|
1325
1330
|
function Un(e, t, n, o, r, s) {
|
|
1326
|
-
return
|
|
1331
|
+
return d(), k(j(e.BlocksWrapper), C({
|
|
1327
1332
|
ref: "blocksWrapperRef",
|
|
1328
1333
|
class: e.className + " component-1k2igrjdg3x",
|
|
1329
1334
|
"builder-path": e.path,
|
|
@@ -1339,7 +1344,7 @@ function Un(e, t, n, o, r, s) {
|
|
|
1339
1344
|
_: 3
|
|
1340
1345
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1341
1346
|
}
|
|
1342
|
-
const Mn = /* @__PURE__ */ b(Ln, [["render", Un], ["__scopeId", "data-v-
|
|
1347
|
+
const Mn = /* @__PURE__ */ b(Ln, [["render", Un], ["__scopeId", "data-v-e241e088"]]), jn = f({
|
|
1343
1348
|
name: "builder-blocks",
|
|
1344
1349
|
components: { BlocksWrapper: Mn, Block: fe },
|
|
1345
1350
|
props: [
|
|
@@ -1347,6 +1352,7 @@ const Mn = /* @__PURE__ */ b(Ln, [["render", Un], ["__scopeId", "data-v-162df12b
|
|
|
1347
1352
|
"parent",
|
|
1348
1353
|
"path",
|
|
1349
1354
|
"styleProp",
|
|
1355
|
+
"className",
|
|
1350
1356
|
"context",
|
|
1351
1357
|
"linkComponent",
|
|
1352
1358
|
"registeredComponents"
|
|
@@ -1357,34 +1363,38 @@ const Mn = /* @__PURE__ */ b(Ln, [["render", Un], ["__scopeId", "data-v-162df12b
|
|
|
1357
1363
|
}
|
|
1358
1364
|
});
|
|
1359
1365
|
function Hn(e, t, n, o, r, s) {
|
|
1360
|
-
var a, u;
|
|
1361
|
-
const i =
|
|
1362
|
-
return
|
|
1366
|
+
var a, u, h, c;
|
|
1367
|
+
const i = v("Block"), l = v("BlocksWrapper");
|
|
1368
|
+
return d(), k(l, {
|
|
1363
1369
|
blocks: e.blocks,
|
|
1364
1370
|
parent: e.parent,
|
|
1365
1371
|
path: e.path,
|
|
1366
1372
|
styleProp: e.styleProp,
|
|
1367
|
-
|
|
1368
|
-
|
|
1373
|
+
classNameProp: e.className,
|
|
1374
|
+
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
|
|
1375
|
+
BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((c = e.builderContext) == null ? void 0 : c.BlocksWrapperProps)
|
|
1369
1376
|
}, {
|
|
1370
1377
|
default: W(() => [
|
|
1371
|
-
e.blocks ? (
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
+
e.blocks ? (d(!0), m(T, { key: 0 }, A(e.blocks, (p, y) => {
|
|
1379
|
+
var g;
|
|
1380
|
+
return d(), k(i, {
|
|
1381
|
+
key: p.id,
|
|
1382
|
+
block: p,
|
|
1383
|
+
linkComponent: e.linkComponent,
|
|
1384
|
+
context: e.context || e.builderContext,
|
|
1385
|
+
registeredComponents: e.registeredComponents || ((g = e.componentsContext) == null ? void 0 : g.registeredComponents)
|
|
1386
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1387
|
+
}), 128)) : S("", !0)
|
|
1378
1388
|
]),
|
|
1379
1389
|
_: 1
|
|
1380
|
-
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1390
|
+
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1381
1391
|
}
|
|
1382
1392
|
const L = /* @__PURE__ */ b(jn, [["render", Hn]]), Kn = f({
|
|
1383
1393
|
name: "dynamic-div",
|
|
1384
1394
|
props: []
|
|
1385
1395
|
});
|
|
1386
1396
|
function qn(e, t, n, o, r, s) {
|
|
1387
|
-
return
|
|
1397
|
+
return d(), m("div", null, [
|
|
1388
1398
|
P(e.$slots, "default")
|
|
1389
1399
|
]);
|
|
1390
1400
|
}
|
|
@@ -1579,26 +1589,26 @@ const G = /* @__PURE__ */ b(Kn, [["render", qn]]), zn = /* @__PURE__ */ Object.f
|
|
|
1579
1589
|
});
|
|
1580
1590
|
function Xn(e, t, n, o, r, s) {
|
|
1581
1591
|
var u;
|
|
1582
|
-
const i =
|
|
1583
|
-
return
|
|
1592
|
+
const i = v("InlinedStyles"), l = v("Blocks"), a = v("DynamicRenderer");
|
|
1593
|
+
return d(), m("div", C({
|
|
1584
1594
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1585
1595
|
style: e.columnsCssVars()
|
|
1586
1596
|
}, {}), [
|
|
1587
|
-
e.TARGET !== "reactNative" ? (
|
|
1597
|
+
e.TARGET !== "reactNative" ? (d(), k(i, {
|
|
1588
1598
|
key: 0,
|
|
1589
1599
|
id: "builderio-columns",
|
|
1590
1600
|
styles: e.columnsStyles(),
|
|
1591
1601
|
nonce: e.builderContext.nonce
|
|
1592
1602
|
}, null, 8, ["styles", "nonce"])) : S("", !0),
|
|
1593
|
-
(
|
|
1594
|
-
key:
|
|
1603
|
+
(d(!0), m(T, null, A(e.columns, (h, c) => (d(), k(a, {
|
|
1604
|
+
key: c,
|
|
1595
1605
|
TagName: e.getTagName(h),
|
|
1596
1606
|
actionAttributes: {},
|
|
1597
|
-
attributes: e.getAttributes(h,
|
|
1607
|
+
attributes: e.getAttributes(h, c)
|
|
1598
1608
|
}, {
|
|
1599
1609
|
default: W(() => [
|
|
1600
1610
|
I(l, {
|
|
1601
|
-
path: `component.options.columns.${
|
|
1611
|
+
path: `component.options.columns.${c}.blocks`,
|
|
1602
1612
|
parent: e.builderBlock.id,
|
|
1603
1613
|
styleProp: {
|
|
1604
1614
|
flexGrow: "1"
|
|
@@ -1618,7 +1628,7 @@ const Qn = /* @__PURE__ */ b(Yn, [["render", Xn], ["__scopeId", "data-v-adc066fc
|
|
|
1618
1628
|
props: []
|
|
1619
1629
|
});
|
|
1620
1630
|
function _n(e, t, n, o, r, s) {
|
|
1621
|
-
return
|
|
1631
|
+
return d(), m("span", null, [
|
|
1622
1632
|
P(e.$slots, "default")
|
|
1623
1633
|
]);
|
|
1624
1634
|
}
|
|
@@ -1709,10 +1719,10 @@ const oo = f({
|
|
|
1709
1719
|
class: "div-29wpyomtntv-2"
|
|
1710
1720
|
};
|
|
1711
1721
|
function ao(e, t, n, o, r, s) {
|
|
1712
|
-
var i, l, a, u, h,
|
|
1713
|
-
return
|
|
1722
|
+
var i, l, a, u, h, c;
|
|
1723
|
+
return d(), m(T, null, [
|
|
1714
1724
|
K("picture", null, [
|
|
1715
|
-
e.webpSrcSet ? (
|
|
1725
|
+
e.webpSrcSet ? (d(), m("source", {
|
|
1716
1726
|
key: 0,
|
|
1717
1727
|
type: "image/webp",
|
|
1718
1728
|
srcset: e.webpSrcSet
|
|
@@ -1735,7 +1745,7 @@ function ao(e, t, n, o, r, s) {
|
|
|
1735
1745
|
sizes: e.sizes
|
|
1736
1746
|
}, null, 14, io)
|
|
1737
1747
|
]),
|
|
1738
|
-
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (
|
|
1748
|
+
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (d(), m("div", {
|
|
1739
1749
|
key: 0,
|
|
1740
1750
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1741
1751
|
style: O({
|
|
@@ -1743,7 +1753,7 @@ function ao(e, t, n, o, r, s) {
|
|
|
1743
1753
|
})
|
|
1744
1754
|
}, null, 4)) : S("", !0),
|
|
1745
1755
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1746
|
-
!e.fitContent && ((
|
|
1756
|
+
!e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div", so, [
|
|
1747
1757
|
P(e.$slots, "default", {}, void 0, !0)
|
|
1748
1758
|
])) : S("", !0)
|
|
1749
1759
|
], 64);
|
|
@@ -1756,7 +1766,7 @@ const lo = /* @__PURE__ */ b(oo, [["render", ao], ["__scopeId", "data-v-77f8a6c4
|
|
|
1756
1766
|
}
|
|
1757
1767
|
});
|
|
1758
1768
|
function uo(e, t, n, o, r, s) {
|
|
1759
|
-
return
|
|
1769
|
+
return d(), m("section", C({
|
|
1760
1770
|
style: {
|
|
1761
1771
|
width: "100%",
|
|
1762
1772
|
alignSelf: "stretch",
|
|
@@ -1994,12 +2004,12 @@ const po = /* @__PURE__ */ b(co, [["render", uo]]), te = {
|
|
|
1994
2004
|
}
|
|
1995
2005
|
}), bo = ["data-index", "onClick"];
|
|
1996
2006
|
function go(e, t, n, o, r, s) {
|
|
1997
|
-
const i =
|
|
1998
|
-
return
|
|
2007
|
+
const i = v("Blocks");
|
|
2008
|
+
return d(), m("div", {
|
|
1999
2009
|
class: "builder-accordion",
|
|
2000
2010
|
style: O(e.accordionStyles)
|
|
2001
2011
|
}, [
|
|
2002
|
-
(
|
|
2012
|
+
(d(!0), m(T, null, A(e.items, (l, a) => (d(), m(T, { key: a }, [
|
|
2003
2013
|
K("div", {
|
|
2004
2014
|
class: q(e.getAccordionTitleClassName(a)),
|
|
2005
2015
|
style: O({
|
|
@@ -2019,7 +2029,7 @@ function go(e, t, n, o, r, s) {
|
|
|
2019
2029
|
linkComponent: e.builderLinkComponent
|
|
2020
2030
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2021
2031
|
], 14, bo),
|
|
2022
|
-
e.open.includes(a) ? (
|
|
2032
|
+
e.open.includes(a) ? (d(), m("div", {
|
|
2023
2033
|
key: 0,
|
|
2024
2034
|
class: q(e.getAccordionDetailClassName(a)),
|
|
2025
2035
|
style: O(e.accordionDetailStyles)
|
|
@@ -2308,13 +2318,13 @@ const yo = /* @__PURE__ */ b(fo, [["render", go]]), ko = {
|
|
|
2308
2318
|
function n(i, l = 6e4) {
|
|
2309
2319
|
return new Promise((a, u) => {
|
|
2310
2320
|
const h = document.createElement("img");
|
|
2311
|
-
let
|
|
2321
|
+
let c = !1;
|
|
2312
2322
|
h.onload = () => {
|
|
2313
|
-
|
|
2323
|
+
c = !0, a(h);
|
|
2314
2324
|
}, h.addEventListener("error", (p) => {
|
|
2315
2325
|
console.warn("Image load failed", p.error), u(p.error);
|
|
2316
2326
|
}), h.src = i, setTimeout(() => {
|
|
2317
|
-
|
|
2327
|
+
c || u(new Error("Image load timed out"));
|
|
2318
2328
|
}, l);
|
|
2319
2329
|
});
|
|
2320
2330
|
}
|
|
@@ -2456,8 +2466,8 @@ const yo = /* @__PURE__ */ b(fo, [["render", go]]), ko = {
|
|
|
2456
2466
|
});
|
|
2457
2467
|
function $o(e, t, n, o, r, s) {
|
|
2458
2468
|
var l, a, u;
|
|
2459
|
-
const i =
|
|
2460
|
-
return
|
|
2469
|
+
const i = v("Blocks");
|
|
2470
|
+
return d(), m("div", C(
|
|
2461
2471
|
{ style: {
|
|
2462
2472
|
pointerEvents: "auto"
|
|
2463
2473
|
} },
|
|
@@ -2681,8 +2691,8 @@ const Ro = /* @__PURE__ */ b(Io, [["render", $o]]), Eo = {
|
|
|
2681
2691
|
}
|
|
2682
2692
|
}), xo = ["onClick"], Ao = { key: 0 };
|
|
2683
2693
|
function Vo(e, t, n, o, r, s) {
|
|
2684
|
-
const i =
|
|
2685
|
-
return
|
|
2694
|
+
const i = v("Blocks");
|
|
2695
|
+
return d(), m("div", null, [
|
|
2686
2696
|
K("div", {
|
|
2687
2697
|
class: "builder-tabs-wrap",
|
|
2688
2698
|
style: O({
|
|
@@ -2692,7 +2702,7 @@ function Vo(e, t, n, o, r, s) {
|
|
|
2692
2702
|
overflow: "auto"
|
|
2693
2703
|
})
|
|
2694
2704
|
}, [
|
|
2695
|
-
(
|
|
2705
|
+
(d(!0), m(T, null, A(e.tabs, (l, a) => (d(), m("span", {
|
|
2696
2706
|
key: a,
|
|
2697
2707
|
class: q(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2698
2708
|
style: O({
|
|
@@ -2710,7 +2720,7 @@ function Vo(e, t, n, o, r, s) {
|
|
|
2710
2720
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2711
2721
|
], 14, xo))), 128))
|
|
2712
2722
|
], 4),
|
|
2713
|
-
e.activeTabContent(e.activeTab) ? (
|
|
2723
|
+
e.activeTabContent(e.activeTab) ? (d(), m("div", Ao, [
|
|
2714
2724
|
I(i, {
|
|
2715
2725
|
parent: e.builderBlock.id,
|
|
2716
2726
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -2770,7 +2780,7 @@ const Wo = /* @__PURE__ */ b(Bo, [["render", Vo]]), No = {
|
|
|
2770
2780
|
}
|
|
2771
2781
|
}), Oo = ["innerHTML"];
|
|
2772
2782
|
function Do(e, t, n, o, r, s) {
|
|
2773
|
-
return
|
|
2783
|
+
return d(), m("div", {
|
|
2774
2784
|
class: "builder-text",
|
|
2775
2785
|
innerHTML: e.processedText,
|
|
2776
2786
|
style: {
|
|
@@ -2836,7 +2846,7 @@ const Lo = /* @__PURE__ */ b(Fo, [["render", Do]]), Uo = {
|
|
|
2836
2846
|
}
|
|
2837
2847
|
}), jo = ["innerHTML"];
|
|
2838
2848
|
function Ho(e, t, n, o, r, s) {
|
|
2839
|
-
return
|
|
2849
|
+
return d(), m("div", {
|
|
2840
2850
|
ref: "elementRef",
|
|
2841
2851
|
class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2842
2852
|
innerHTML: e.code
|
|
@@ -2901,7 +2911,7 @@ const Ko = /* @__PURE__ */ b(Mo, [["render", Ho]]), qo = {
|
|
|
2901
2911
|
}
|
|
2902
2912
|
}), Yo = ["innerHTML"];
|
|
2903
2913
|
function Xo(e, t, n, o, r, s) {
|
|
2904
|
-
return
|
|
2914
|
+
return d(), m("div", {
|
|
2905
2915
|
class: "builder-embed",
|
|
2906
2916
|
ref: "elem",
|
|
2907
2917
|
innerHTML: e.content
|
|
@@ -3206,40 +3216,40 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Xo]]), Zo = {
|
|
|
3206
3216
|
e.preventDefault();
|
|
3207
3217
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3208
3218
|
let s;
|
|
3209
|
-
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((
|
|
3219
|
+
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
|
|
3210
3220
|
let p;
|
|
3211
|
-
const
|
|
3212
|
-
if (
|
|
3213
|
-
if (
|
|
3214
|
-
if (
|
|
3215
|
-
return p =
|
|
3216
|
-
key:
|
|
3221
|
+
const y = c.name;
|
|
3222
|
+
if (c instanceof HTMLInputElement)
|
|
3223
|
+
if (c.type === "radio") {
|
|
3224
|
+
if (c.checked)
|
|
3225
|
+
return p = c.name, {
|
|
3226
|
+
key: y,
|
|
3217
3227
|
value: p
|
|
3218
3228
|
};
|
|
3219
|
-
} else if (
|
|
3220
|
-
p =
|
|
3221
|
-
else if (
|
|
3222
|
-
const
|
|
3223
|
-
isNaN(
|
|
3229
|
+
} else if (c.type === "checkbox")
|
|
3230
|
+
p = c.checked;
|
|
3231
|
+
else if (c.type === "number" || c.type === "range") {
|
|
3232
|
+
const g = c.valueAsNumber;
|
|
3233
|
+
isNaN(g) || (p = g);
|
|
3224
3234
|
} else
|
|
3225
|
-
|
|
3235
|
+
c.type === "file" ? p = c.files : p = c.value;
|
|
3226
3236
|
else
|
|
3227
|
-
p =
|
|
3237
|
+
p = c.value;
|
|
3228
3238
|
return {
|
|
3229
|
-
key:
|
|
3239
|
+
key: y,
|
|
3230
3240
|
value: p
|
|
3231
3241
|
};
|
|
3232
3242
|
});
|
|
3233
3243
|
let a = this.contentType;
|
|
3234
|
-
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value:
|
|
3235
|
-
(
|
|
3244
|
+
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
|
|
3245
|
+
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
|
|
3236
3246
|
}), a !== "application/json")
|
|
3237
3247
|
s = i;
|
|
3238
3248
|
else {
|
|
3239
|
-
const
|
|
3240
|
-
Array.from(l).forEach(({ value: p, key:
|
|
3241
|
-
Ee(
|
|
3242
|
-
}), s = JSON.stringify(
|
|
3249
|
+
const c = {};
|
|
3250
|
+
Array.from(l).forEach(({ value: p, key: y }) => {
|
|
3251
|
+
Ee(c, y, p);
|
|
3252
|
+
}), s = JSON.stringify(c);
|
|
3243
3253
|
}
|
|
3244
3254
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
3245
3255
|
const u = new CustomEvent("presubmit", {
|
|
@@ -3261,24 +3271,24 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Xo]]), Zo = {
|
|
|
3261
3271
|
method: this.method || "post"
|
|
3262
3272
|
}
|
|
3263
3273
|
).then(
|
|
3264
|
-
async (
|
|
3274
|
+
async (c) => {
|
|
3265
3275
|
let p;
|
|
3266
|
-
const
|
|
3267
|
-
if (
|
|
3268
|
-
let
|
|
3269
|
-
|
|
3270
|
-
formErrorMessage:
|
|
3276
|
+
const y = c.headers.get("content-type");
|
|
3277
|
+
if (y && y.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
|
|
3278
|
+
let g = xe(p, this.errorMessagePath);
|
|
3279
|
+
g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
|
|
3280
|
+
formErrorMessage: g
|
|
3271
3281
|
}));
|
|
3272
3282
|
}
|
|
3273
|
-
if (this.responseData = p, this.formState =
|
|
3274
|
-
const
|
|
3283
|
+
if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
3284
|
+
const g = new CustomEvent("submit:success", {
|
|
3275
3285
|
detail: {
|
|
3276
|
-
res:
|
|
3286
|
+
res: c,
|
|
3277
3287
|
body: p
|
|
3278
3288
|
}
|
|
3279
3289
|
});
|
|
3280
3290
|
if (this.$refs.formRef) {
|
|
3281
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
3291
|
+
if (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented)
|
|
3282
3292
|
return;
|
|
3283
3293
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
3284
3294
|
}
|
|
@@ -3294,13 +3304,13 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Xo]]), Zo = {
|
|
|
3294
3304
|
location.href = this.successUrl;
|
|
3295
3305
|
}
|
|
3296
3306
|
},
|
|
3297
|
-
(
|
|
3307
|
+
(c) => {
|
|
3298
3308
|
const p = new CustomEvent("submit:error", {
|
|
3299
3309
|
detail: {
|
|
3300
|
-
error:
|
|
3310
|
+
error: c
|
|
3301
3311
|
}
|
|
3302
3312
|
});
|
|
3303
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData =
|
|
3313
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = c, this.formState = "error");
|
|
3304
3314
|
}
|
|
3305
3315
|
);
|
|
3306
3316
|
}
|
|
@@ -3312,8 +3322,8 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Xo]]), Zo = {
|
|
|
3312
3322
|
};
|
|
3313
3323
|
function rr(e, t, n, o, r, s) {
|
|
3314
3324
|
var a;
|
|
3315
|
-
const i =
|
|
3316
|
-
return
|
|
3325
|
+
const i = v("Block"), l = v("Blocks");
|
|
3326
|
+
return d(), m("form", C({
|
|
3317
3327
|
validate: e.validate,
|
|
3318
3328
|
ref: "formRef",
|
|
3319
3329
|
action: !e.sendWithJs && e.action,
|
|
@@ -3321,27 +3331,27 @@ function rr(e, t, n, o, r, s) {
|
|
|
3321
3331
|
name: e.name,
|
|
3322
3332
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3323
3333
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3324
|
-
e.builderBlock && e.builderBlock.children ? (
|
|
3334
|
+
e.builderBlock && e.builderBlock.children ? (d(!0), m(T, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(i, {
|
|
3325
3335
|
key: `form-block-${e.idx}`,
|
|
3326
3336
|
block: u,
|
|
3327
3337
|
context: e.builderContext,
|
|
3328
3338
|
registeredComponents: e.builderComponents,
|
|
3329
3339
|
linkComponent: e.builderLinkComponent
|
|
3330
3340
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
|
|
3331
|
-
e.submissionState() === "error" ? (
|
|
3341
|
+
e.submissionState() === "error" ? (d(), k(l, {
|
|
3332
3342
|
key: 1,
|
|
3333
3343
|
path: "errorMessage",
|
|
3334
3344
|
blocks: e.errorMessage,
|
|
3335
3345
|
context: e.builderContext
|
|
3336
3346
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3337
|
-
e.submissionState() === "sending" ? (
|
|
3347
|
+
e.submissionState() === "sending" ? (d(), k(l, {
|
|
3338
3348
|
key: 2,
|
|
3339
3349
|
path: "sendingMessage",
|
|
3340
3350
|
blocks: e.sendingMessage,
|
|
3341
3351
|
context: e.builderContext
|
|
3342
3352
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3343
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
3344
|
-
e.submissionState() === "success" ? (
|
|
3353
|
+
e.submissionState() === "error" && e.responseData ? (d(), m("pre", or, _(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3354
|
+
e.submissionState() === "success" ? (d(), k(l, {
|
|
3345
3355
|
key: 4,
|
|
3346
3356
|
path: "successMessage",
|
|
3347
3357
|
blocks: e.successMessage,
|
|
@@ -3416,7 +3426,7 @@ const ir = /* @__PURE__ */ b(tr, [["render", rr], ["__scopeId", "data-v-6e18f21b
|
|
|
3416
3426
|
}
|
|
3417
3427
|
}), lr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3418
3428
|
function cr(e, t, n, o, r, s) {
|
|
3419
|
-
return
|
|
3429
|
+
return d(), m("input", C({
|
|
3420
3430
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3421
3431
|
placeholder: e.placeholder,
|
|
3422
3432
|
type: e.type,
|
|
@@ -3476,14 +3486,14 @@ const dr = /* @__PURE__ */ b(ar, [["render", cr]]), ur = {
|
|
|
3476
3486
|
}
|
|
3477
3487
|
}), mr = ["value", "defaultValue", "name", "required"], hr = ["value"];
|
|
3478
3488
|
function fr(e, t, n, o, r, s) {
|
|
3479
|
-
return
|
|
3489
|
+
return d(), m("select", C({
|
|
3480
3490
|
value: e.value,
|
|
3481
3491
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3482
3492
|
defaultValue: e.defaultValue,
|
|
3483
3493
|
name: e.name,
|
|
3484
3494
|
required: e.required
|
|
3485
3495
|
}, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3486
|
-
(
|
|
3496
|
+
(d(!0), m(T, null, A(e.options, (i, l) => (d(), m("option", {
|
|
3487
3497
|
key: `${i.name}-${l}`,
|
|
3488
3498
|
value: i.value
|
|
3489
3499
|
}, _(i.name || i.value), 9, hr))), 128))
|
|
@@ -3522,7 +3532,7 @@ const br = /* @__PURE__ */ b(pr, [["render", fr]]), gr = {
|
|
|
3522
3532
|
}
|
|
3523
3533
|
});
|
|
3524
3534
|
function kr(e, t, n, o, r, s) {
|
|
3525
|
-
return
|
|
3535
|
+
return d(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), _(e.text), 17);
|
|
3526
3536
|
}
|
|
3527
3537
|
const vr = /* @__PURE__ */ b(yr, [["render", kr]]), Sr = {
|
|
3528
3538
|
name: "Form:TextArea",
|
|
@@ -3575,7 +3585,7 @@ const vr = /* @__PURE__ */ b(yr, [["render", kr]]), Sr = {
|
|
|
3575
3585
|
}
|
|
3576
3586
|
}), Tr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3577
3587
|
function wr(e, t, n, o, r, s) {
|
|
3578
|
-
return
|
|
3588
|
+
return d(), m("textarea", C({
|
|
3579
3589
|
placeholder: e.placeholder,
|
|
3580
3590
|
name: e.name,
|
|
3581
3591
|
value: e.value,
|
|
@@ -3612,7 +3622,7 @@ const Ir = /* @__PURE__ */ b(Cr, [["render", wr]]), $r = {
|
|
|
3612
3622
|
}
|
|
3613
3623
|
}), Er = ["alt", "src"];
|
|
3614
3624
|
function Pr(e, t, n, o, r, s) {
|
|
3615
|
-
return
|
|
3625
|
+
return d(), m("img", C({
|
|
3616
3626
|
style: {
|
|
3617
3627
|
objectFit: e.backgroundSize || "cover",
|
|
3618
3628
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -3775,8 +3785,8 @@ const Br = /* @__PURE__ */ b(Rr, [["render", Pr]]), xr = {
|
|
|
3775
3785
|
}
|
|
3776
3786
|
};
|
|
3777
3787
|
function Dr(e, t, n, o, r, s) {
|
|
3778
|
-
var i, l, a, u, h,
|
|
3779
|
-
return
|
|
3788
|
+
var i, l, a, u, h, c, p;
|
|
3789
|
+
return d(), m("div", Vr, [
|
|
3780
3790
|
K("video", C({
|
|
3781
3791
|
class: "builder-video",
|
|
3782
3792
|
preload: e.preload || "metadata",
|
|
@@ -3797,13 +3807,13 @@ function Dr(e, t, n, o, r, s) {
|
|
|
3797
3807
|
src: e.video || "no-src",
|
|
3798
3808
|
poster: e.posterImage
|
|
3799
3809
|
}, e.spreadProps), [
|
|
3800
|
-
e.lazyLoad ? S("", !0) : (
|
|
3810
|
+
e.lazyLoad ? S("", !0) : (d(), m("source", {
|
|
3801
3811
|
key: 0,
|
|
3802
3812
|
type: "video/mp4",
|
|
3803
3813
|
src: e.video
|
|
3804
3814
|
}, null, 8, Nr))
|
|
3805
3815
|
], 16, Wr),
|
|
3806
|
-
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (
|
|
3816
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), m("div", {
|
|
3807
3817
|
key: 0,
|
|
3808
3818
|
style: O({
|
|
3809
3819
|
width: "100%",
|
|
@@ -3812,10 +3822,10 @@ function Dr(e, t, n, o, r, s) {
|
|
|
3812
3822
|
fontSize: "0px"
|
|
3813
3823
|
})
|
|
3814
3824
|
}, null, 4)) : S("", !0),
|
|
3815
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (
|
|
3825
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div", Fr, [
|
|
3816
3826
|
P(e.$slots, "default")
|
|
3817
3827
|
])) : S("", !0),
|
|
3818
|
-
(p = (
|
|
3828
|
+
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div", Or, [
|
|
3819
3829
|
P(e.$slots, "default")
|
|
3820
3830
|
])) : S("", !0)
|
|
3821
3831
|
]);
|
|
@@ -4356,7 +4366,7 @@ font-weight: ${i};
|
|
|
4356
4366
|
});
|
|
4357
4367
|
function ri(e, t, n, o, r, s) {
|
|
4358
4368
|
var i, l, a;
|
|
4359
|
-
return e.builderContextSignal.content ? (
|
|
4369
|
+
return e.builderContextSignal.content ? (d(), k(j(e.ContentWrapper), C({
|
|
4360
4370
|
key: 0,
|
|
4361
4371
|
ref: "elementRef",
|
|
4362
4372
|
onClick: (u) => e.onClick(u),
|
|
@@ -4392,8 +4402,8 @@ ${ti(this.isNestedRender)}
|
|
|
4392
4402
|
}
|
|
4393
4403
|
});
|
|
4394
4404
|
function ai(e, t, n, o, r, s) {
|
|
4395
|
-
const i =
|
|
4396
|
-
return
|
|
4405
|
+
const i = v("InlinedStyles");
|
|
4406
|
+
return d(), k(i, {
|
|
4397
4407
|
id: "builderio-content",
|
|
4398
4408
|
styles: e.injectedStyles,
|
|
4399
4409
|
nonce: e.nonce
|
|
@@ -4545,8 +4555,8 @@ const li = /* @__PURE__ */ b(si, [["render", ai]]), ci = ({
|
|
|
4545
4555
|
}
|
|
4546
4556
|
});
|
|
4547
4557
|
function mi(e, t, n, o, r, s) {
|
|
4548
|
-
const i =
|
|
4549
|
-
return
|
|
4558
|
+
const i = v("InlinedScript"), l = v("ContentStyles"), a = v("Blocks"), u = v("EnableEditor");
|
|
4559
|
+
return d(), k(u, C({
|
|
4550
4560
|
nonce: e.nonce,
|
|
4551
4561
|
content: e.content,
|
|
4552
4562
|
data: e.data,
|
|
@@ -4563,21 +4573,21 @@ function mi(e, t, n, o, r, s) {
|
|
|
4563
4573
|
trustedHosts: e.trustedHosts
|
|
4564
4574
|
}, {}), {
|
|
4565
4575
|
default: W(() => {
|
|
4566
|
-
var h,
|
|
4576
|
+
var h, c, p, y, g, N, Y;
|
|
4567
4577
|
return [
|
|
4568
|
-
e.isSsrAbTest ? (
|
|
4578
|
+
e.isSsrAbTest ? (d(), k(i, {
|
|
4569
4579
|
key: 0,
|
|
4570
4580
|
id: "builderio-variant-visibility",
|
|
4571
4581
|
scriptStr: e.scriptStr,
|
|
4572
4582
|
nonce: e.nonce || ""
|
|
4573
4583
|
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4574
|
-
e.TARGET !== "reactNative" ? (
|
|
4584
|
+
e.TARGET !== "reactNative" ? (d(), k(l, {
|
|
4575
4585
|
key: 1,
|
|
4576
4586
|
nonce: e.nonce || "",
|
|
4577
4587
|
isNestedRender: e.isNestedRender,
|
|
4578
4588
|
contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
|
|
4579
|
-
cssCode: (p = (
|
|
4580
|
-
customFonts: (
|
|
4589
|
+
cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
|
|
4590
|
+
customFonts: (g = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : g.customFonts
|
|
4581
4591
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4582
4592
|
I(a, {
|
|
4583
4593
|
blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
|
|
@@ -4657,15 +4667,15 @@ const hi = /* @__PURE__ */ b(pi, [["render", mi]]), fi = f({
|
|
|
4657
4667
|
}
|
|
4658
4668
|
});
|
|
4659
4669
|
function bi(e, t, n, o, r, s) {
|
|
4660
|
-
const i =
|
|
4661
|
-
return
|
|
4662
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (
|
|
4670
|
+
const i = v("InlinedScript"), l = v("InlinedStyles"), a = v("ContentComponent");
|
|
4671
|
+
return d(), m(T, null, [
|
|
4672
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(i, {
|
|
4663
4673
|
key: 0,
|
|
4664
4674
|
id: "builderio-init-variants-fns",
|
|
4665
4675
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4666
4676
|
nonce: e.nonce || ""
|
|
4667
4677
|
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4668
|
-
e.shouldRenderVariants ? (
|
|
4678
|
+
e.shouldRenderVariants ? (d(), m(T, { key: 1 }, [
|
|
4669
4679
|
I(l, {
|
|
4670
4680
|
id: "builderio-variants",
|
|
4671
4681
|
styles: e.hideVariantsStyleString,
|
|
@@ -4676,7 +4686,7 @@ function bi(e, t, n, o, r, s) {
|
|
|
4676
4686
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4677
4687
|
nonce: e.nonce || ""
|
|
4678
4688
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4679
|
-
(
|
|
4689
|
+
(d(!0), m(T, null, A(e.getVariants(e.content), (u, h) => (d(), k(a, C({
|
|
4680
4690
|
key: u.testVariationId,
|
|
4681
4691
|
isNestedRender: e.isNestedRender,
|
|
4682
4692
|
nonce: e.nonce,
|
|
@@ -4805,9 +4815,9 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = async ({
|
|
|
4805
4815
|
}
|
|
4806
4816
|
});
|
|
4807
4817
|
function vi(e, t, n, o, r, s) {
|
|
4808
|
-
var l, a, u, h,
|
|
4809
|
-
const i =
|
|
4810
|
-
return
|
|
4818
|
+
var l, a, u, h, c;
|
|
4819
|
+
const i = v("ContentVariants");
|
|
4820
|
+
return d(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4811
4821
|
I(i, {
|
|
4812
4822
|
nonce: e.builderContext.nonce,
|
|
4813
4823
|
isNestedRender: !0,
|
|
@@ -4824,7 +4834,7 @@ function vi(e, t, n, o, r, s) {
|
|
|
4824
4834
|
...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
|
|
4825
4835
|
},
|
|
4826
4836
|
canTrack: e.builderContext.canTrack,
|
|
4827
|
-
model: (
|
|
4837
|
+
model: (c = e.symbol) == null ? void 0 : c.model,
|
|
4828
4838
|
content: e.contentToUse,
|
|
4829
4839
|
linkComponent: e.builderLinkComponent,
|
|
4830
4840
|
blocksWrapper: e.blocksWrapper,
|