@builder.io/sdk-vue 2.0.31 → 3.0.0
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-zzvk2NgH.cjs → awaiter-XqdWIlSd.cjs} +1 -1
- package/lib/browser/{awaiter-CBFYn8Rc.js → awaiter-pA1AuJSn.js} +1 -1
- package/lib/browser/{block-styles-eG8aHEnR.cjs → block-styles-i6cpfJgi.cjs} +1 -1
- package/lib/browser/{block-styles-1TjUGG0M.js → block-styles-ytvCIXMJ.js} +1 -1
- package/lib/browser/{block-wrapper-t1YyB3qf.cjs → block-wrapper-4Ddr9Ro1.cjs} +1 -1
- package/lib/browser/{block-wrapper-mHstZCm3.js → block-wrapper-UdxI8OCZ.js} +3 -3
- package/lib/browser/{component-ref-4iD2JOXe.cjs → component-ref-1UbPu9gf.cjs} +1 -1
- package/lib/browser/{component-ref-SiTniDkf.js → component-ref-CKlhzm4D.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/index.d.ts +1 -1
- package/lib/browser/{get-block-properties-WnxZnXsK.js → get-block-properties-C5uVrmU3.js} +1 -1
- package/lib/browser/{get-block-properties-qCNopliW.cjs → get-block-properties-pUTK7jyd.cjs} +1 -1
- package/lib/browser/{index-EOpyZR3_.cjs → index-N0sk5VKQ.cjs} +3 -3
- package/lib/browser/{index-nG43II0w.js → index-tDGIvfSj.js} +50 -52
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-WkFOmnw-.js → repeated-block-9RoptQEu.js} +2 -2
- package/lib/browser/{repeated-block-Zrynel2G.cjs → repeated-block-h7zSwvTu.cjs} +1 -1
- package/lib/edge/{awaiter-tqyHYP24.cjs → awaiter-V9rb_a7Q.cjs} +1 -1
- package/lib/edge/{awaiter-ETIQ3Y1O.js → awaiter-yLbJL6E0.js} +1 -1
- package/lib/edge/{block-styles-xeGiE5b9.js → block-styles-8rJVuUSs.js} +1 -1
- package/lib/edge/{block-styles-UFZvXK12.cjs → block-styles-ZvyyqPxg.cjs} +1 -1
- package/lib/edge/{block-wrapper-rWfNhUAl.js → block-wrapper-jr4gy0mp.js} +3 -3
- package/lib/edge/{block-wrapper-Kx9lGbVC.cjs → block-wrapper-m7_ZegT7.cjs} +1 -1
- package/lib/edge/{component-ref-jL8V5feH.cjs → component-ref-_qPvv-Qb.cjs} +1 -1
- package/lib/edge/{component-ref-2gTfqFWa.js → component-ref-uZEXLaN7.js} +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/index.d.ts +1 -1
- package/lib/edge/{get-block-properties-U4aZTxWN.cjs → get-block-properties-4gxUIMch.cjs} +1 -1
- package/lib/edge/{get-block-properties-rSB9DXAm.js → get-block-properties-IQuU2YJ7.js} +1 -1
- package/lib/edge/{index-1wQww2g6.cjs → index-LY5CDeZs.cjs} +12 -12
- package/lib/edge/{index-61CJkECh.js → index-Qfd4FC6c.js} +66 -68
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-z6QgHzWM.cjs → edge/repeated-block-48-vVIqv.cjs} +1 -1
- package/lib/edge/{repeated-block-sibYzFQC.js → repeated-block-J3gmF8cW.js} +2 -2
- package/lib/node/{awaiter-YeTQ3hOV.cjs → awaiter-pBLgVddK.cjs} +1 -1
- package/lib/node/{awaiter--0e1RmdV.js → awaiter-yHq7zte0.js} +1 -1
- package/lib/node/{block-styles-OsL48K76.cjs → block-styles-JKmWb0f1.cjs} +1 -1
- package/lib/node/{block-styles-mmmG5Zvb.js → block-styles-UKsSQRSe.js} +1 -1
- package/lib/node/{block-wrapper-6FrZVnI8.js → block-wrapper-Ql9JBZTu.js} +3 -3
- package/lib/node/{block-wrapper-hK9iEXhq.cjs → block-wrapper-UkD5beND.cjs} +1 -1
- package/lib/node/{component-ref-u2wfD4PU.js → component-ref-GQuqlfCd.js} +3 -3
- package/lib/node/{component-ref-yN1A7uFk.cjs → component-ref-KSw6L492.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/index.d.ts +1 -1
- package/lib/node/{get-block-properties-EkNcjp0K.cjs → get-block-properties-RPZW1-a0.cjs} +1 -1
- package/lib/node/{get-block-properties-QhUhlrxy.js → get-block-properties-y-gYAn-I.js} +1 -1
- package/lib/node/{index-GJHkrBmN.js → index-5bUk_uLu.js} +66 -68
- package/lib/node/{index-EBQK2Vx-.cjs → index-W6CSiGOt.cjs} +3 -3
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-h-cU9AMQ.js → repeated-block-_Z2mgv3f.js} +2 -2
- package/lib/{edge/repeated-block-YThkmdHp.cjs → node/repeated-block-sc5a_YJK.cjs} +1 -1
- package/package.json +1 -1
|
@@ -14,5 +14,5 @@ export declare const _processContentResult: (options: GetContentOptions, content
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a paginated array of entries that match the given options.
|
|
16
16
|
*/
|
|
17
|
-
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]
|
|
17
|
+
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
|
|
18
18
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),s=require("./index-
|
|
1
|
+
"use strict";const c=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),s=require("./index-W6CSiGOt.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function u(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=i(o);if(e.stripPrefix)switch(c.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(a,e)}return t}function d({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:s.getStyle({block:e,context:t}),[s.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return d({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as n } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
2
|
-
import { e as c, f as i, h as l } from "./index-
|
|
2
|
+
import { e as c, f as i, h as l } from "./index-5bUk_uLu.js";
|
|
3
3
|
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as w, createBlock as y, resolveDynamicComponent as j, mergeProps as C, toHandlers as
|
|
2
|
-
import { T as
|
|
1
|
+
import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as w, createBlock as y, resolveDynamicComponent as j, mergeProps as C, toHandlers as B, withCtx as N, renderSlot as x, resolveComponent as k, createTextVNode as ut, toDisplayString as ee, defineAsyncComponent as M, createVNode as $, renderList as V, createCommentVNode as v, h as Be, createElementVNode as q, normalizeStyle as D, normalizeClass as z, markRaw as pt } from "vue";
|
|
2
|
+
import { T as E, g as mt, f as ht, i as R, s as ft, r as bt, p as gt, a as yt, l as A, b as xe, c as ue, d as kt, n as Ae, e as L, h as P, j as vt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
3
3
|
const St = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ct = (e) => typeof e == "string" && St.has(e.toLowerCase());
|
|
4
4
|
function W(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -24,15 +24,15 @@ const Tt = b({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function wt(e, t, n, o, r, i) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (c(), y(j(e.TagName), C({ key: 1 }, e.attributes,
|
|
28
|
-
typeof e.TagName == "string" ? (c(), y(j(e.TagName), C({ key: 0 }, e.attributes,
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (c(), y(j(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (c(), p(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (c(), y(j(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
|
|
29
29
|
default: N(() => [
|
|
30
|
-
|
|
30
|
+
x(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (c(), y(j(e.TagName), C({ key: 1 }, e.attributes,
|
|
33
|
+
}, 16)) : (c(), y(j(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
|
|
34
34
|
default: N(() => [
|
|
35
|
-
|
|
35
|
+
x(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
@@ -42,7 +42,7 @@ const pe = /* @__PURE__ */ g(Tt, [["render", wt]]), Bs = /* @__PURE__ */ Object.
|
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: pe
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), Z = () => {
|
|
45
|
-
switch (
|
|
45
|
+
switch (E) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -190,7 +190,7 @@ function J({
|
|
|
190
190
|
try {
|
|
191
191
|
return Vt(a);
|
|
192
192
|
} catch (u) {
|
|
193
|
-
|
|
193
|
+
A.error("Failed code evaluation: " + u.message, {
|
|
194
194
|
code: e
|
|
195
195
|
});
|
|
196
196
|
return;
|
|
@@ -208,7 +208,7 @@ function le(e) {
|
|
|
208
208
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = le(e[n]));
|
|
209
209
|
return t;
|
|
210
210
|
}
|
|
211
|
-
const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
211
|
+
const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Ot = (e) => {
|
|
212
212
|
if (Dt) {
|
|
213
213
|
const t = ue(e);
|
|
214
214
|
return {
|
|
@@ -332,8 +332,8 @@ const Te = "builder.", qt = "options.", Ne = (e) => {
|
|
|
332
332
|
return {};
|
|
333
333
|
const e = new URLSearchParams(window.location.search);
|
|
334
334
|
return Ne(e);
|
|
335
|
-
}, Fe = "
|
|
336
|
-
"X-Builder-SDK":
|
|
335
|
+
}, Fe = "3.0.0", De = () => ({
|
|
336
|
+
"X-Builder-SDK": E,
|
|
337
337
|
"X-Builder-SDK-GEN": "2",
|
|
338
338
|
"X-Builder-SDK-Version": Fe
|
|
339
339
|
}), Gt = (e) => {
|
|
@@ -349,7 +349,7 @@ const Te = "builder.", qt = "options.", Ne = (e) => {
|
|
|
349
349
|
try {
|
|
350
350
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
351
351
|
} catch (o) {
|
|
352
|
-
|
|
352
|
+
A.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
355
|
}, Le = async (e) => Oe(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), Yt = [["secure", ""], ["SameSite", "None"]], Xt = ({
|
|
@@ -375,7 +375,7 @@ const Te = "builder.", qt = "options.", Ne = (e) => {
|
|
|
375
375
|
});
|
|
376
376
|
document.cookie = r;
|
|
377
377
|
} catch (r) {
|
|
378
|
-
|
|
378
|
+
A.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
381
|
function Qt() {
|
|
@@ -462,7 +462,7 @@ const Me = "builderSessionId", Zt = async ({
|
|
|
462
462
|
});
|
|
463
463
|
function me(e) {
|
|
464
464
|
var t;
|
|
465
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
465
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && A.log(e);
|
|
466
466
|
}
|
|
467
467
|
const an = async ({
|
|
468
468
|
canTrack: e
|
|
@@ -507,10 +507,10 @@ async function ce({
|
|
|
507
507
|
...t
|
|
508
508
|
}) {
|
|
509
509
|
if (!t.apiKey) {
|
|
510
|
-
|
|
510
|
+
A.error("Missing API key for track call. Please provide your API key.");
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
|
-
if (!t.canTrack ||
|
|
513
|
+
if (!t.canTrack || P() || !(R() || E === "reactNative"))
|
|
514
514
|
return;
|
|
515
515
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
516
516
|
return me(o), fetch(o, {
|
|
@@ -566,7 +566,7 @@ const ze = (e = {}) => {
|
|
|
566
566
|
we || (we = !0, R() && ((t = window.parent) == null || t.postMessage({
|
|
567
567
|
type: "builder.sdkInfo",
|
|
568
568
|
data: {
|
|
569
|
-
target:
|
|
569
|
+
target: E,
|
|
570
570
|
version: Fe,
|
|
571
571
|
supportsPatchUpdates: !1,
|
|
572
572
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -650,7 +650,7 @@ const ze = (e = {}) => {
|
|
|
650
650
|
}
|
|
651
651
|
}, Vs = (e, t, n) => {
|
|
652
652
|
if (!R)
|
|
653
|
-
return
|
|
653
|
+
return A.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
654
654
|
};
|
|
655
655
|
ze();
|
|
656
656
|
const o = Ge({
|
|
@@ -703,7 +703,7 @@ const ze = (e = {}) => {
|
|
|
703
703
|
contentId: e.id,
|
|
704
704
|
value: t
|
|
705
705
|
}).catch((n) => {
|
|
706
|
-
|
|
706
|
+
A.error("could not store A/B test variation: ", n);
|
|
707
707
|
}), t;
|
|
708
708
|
}, Xe = ({
|
|
709
709
|
item: e,
|
|
@@ -863,7 +863,7 @@ const Tn = async (e) => {
|
|
|
863
863
|
return await (await n(t.href, o)).json();
|
|
864
864
|
}, wn = async (e, t, n = fe(e)) => {
|
|
865
865
|
const o = G(e.canTrack);
|
|
866
|
-
if (n.search.includes("preview="), !o || !(R() ||
|
|
866
|
+
if (n.search.includes("preview="), !o || !(R() || E === "reactNative"))
|
|
867
867
|
return t.results;
|
|
868
868
|
try {
|
|
869
869
|
const r = [];
|
|
@@ -874,21 +874,19 @@ const Tn = async (e) => {
|
|
|
874
874
|
}));
|
|
875
875
|
t.results = r;
|
|
876
876
|
} catch (r) {
|
|
877
|
-
|
|
877
|
+
A.error("Could not process A/B tests. ", r);
|
|
878
878
|
}
|
|
879
879
|
return t.results;
|
|
880
880
|
};
|
|
881
881
|
async function In(e) {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
882
|
+
const t = fe(e), n = await Tn(e);
|
|
883
|
+
if (!Cn(n))
|
|
884
|
+
throw A.error("Error fetching data. ", {
|
|
885
885
|
url: t,
|
|
886
886
|
content: n,
|
|
887
887
|
options: e
|
|
888
|
-
}),
|
|
889
|
-
|
|
890
|
-
return E.error("Error fetching data. ", t), null;
|
|
891
|
-
}
|
|
888
|
+
}), n;
|
|
889
|
+
return wn(e, n);
|
|
892
890
|
}
|
|
893
891
|
const Ws = async (e) => {
|
|
894
892
|
var o, r, i;
|
|
@@ -1038,7 +1036,7 @@ const Fs = ({
|
|
|
1038
1036
|
block: e
|
|
1039
1037
|
}));
|
|
1040
1038
|
function nt(e) {
|
|
1041
|
-
switch (
|
|
1039
|
+
switch (E) {
|
|
1042
1040
|
case "svelte":
|
|
1043
1041
|
case "vue":
|
|
1044
1042
|
case "solid":
|
|
@@ -1123,22 +1121,22 @@ const An = ({
|
|
|
1123
1121
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1124
1122
|
e
|
|
1125
1123
|
), e;
|
|
1126
|
-
}), Ln = () => import("./block-styles-
|
|
1124
|
+
}), Ln = () => import("./block-styles-UKsSQRSe.js").then((e) => e.default).catch((e) => {
|
|
1127
1125
|
throw console.error(
|
|
1128
1126
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1129
1127
|
e
|
|
1130
1128
|
), e;
|
|
1131
|
-
}), Un = () => import("./block-wrapper-
|
|
1129
|
+
}), Un = () => import("./block-wrapper-Ql9JBZTu.js").then((e) => e.default).catch((e) => {
|
|
1132
1130
|
throw console.error(
|
|
1133
1131
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1134
1132
|
e
|
|
1135
1133
|
), e;
|
|
1136
|
-
}), Hn = () => import("./component-ref-
|
|
1134
|
+
}), Hn = () => import("./component-ref-GQuqlfCd.js").then((e) => e.default).catch((e) => {
|
|
1137
1135
|
throw console.error(
|
|
1138
1136
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1139
1137
|
e
|
|
1140
1138
|
), e;
|
|
1141
|
-
}), Mn = () => import("./repeated-block-
|
|
1139
|
+
}), Mn = () => import("./repeated-block-_Z2mgv3f.js").then((e) => e.default).catch((e) => {
|
|
1142
1140
|
throw console.error(
|
|
1143
1141
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1144
1142
|
e
|
|
@@ -1231,7 +1229,7 @@ const An = ({
|
|
|
1231
1229
|
registeredComponents: this.registeredComponents,
|
|
1232
1230
|
builderBlock: this.processedBlock,
|
|
1233
1231
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1234
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1232
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && E === "rsc")
|
|
1235
1233
|
};
|
|
1236
1234
|
}
|
|
1237
1235
|
}
|
|
@@ -1336,7 +1334,7 @@ const ye = /* @__PURE__ */ g(jn, [["render", Kn]]), Ds = /* @__PURE__ */ Object.
|
|
|
1336
1334
|
methods: {
|
|
1337
1335
|
onClick() {
|
|
1338
1336
|
var e, t;
|
|
1339
|
-
|
|
1337
|
+
P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1340
1338
|
{
|
|
1341
1339
|
type: "builder.clickEmptyBlocks",
|
|
1342
1340
|
data: {
|
|
@@ -1349,7 +1347,7 @@ const ye = /* @__PURE__ */ g(jn, [["render", Kn]]), Ds = /* @__PURE__ */ Object.
|
|
|
1349
1347
|
},
|
|
1350
1348
|
onMouseEnter() {
|
|
1351
1349
|
var e, t;
|
|
1352
|
-
|
|
1350
|
+
P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1353
1351
|
{
|
|
1354
1352
|
type: "builder.hoverEmptyBlocks",
|
|
1355
1353
|
data: {
|
|
@@ -1374,7 +1372,7 @@ function zn(e, t, n, o, r, i) {
|
|
|
1374
1372
|
onKeyPress: (s) => e.onClick()
|
|
1375
1373
|
}, { ...e.BlocksWrapperProps }), {
|
|
1376
1374
|
default: N(() => [
|
|
1377
|
-
|
|
1375
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
1378
1376
|
]),
|
|
1379
1377
|
_: 3
|
|
1380
1378
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
@@ -1430,7 +1428,7 @@ const U = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = b({
|
|
|
1430
1428
|
});
|
|
1431
1429
|
function Qn(e, t, n, o, r, i) {
|
|
1432
1430
|
return c(), p("div", null, [
|
|
1433
|
-
|
|
1431
|
+
x(e.$slots, "default")
|
|
1434
1432
|
]);
|
|
1435
1433
|
}
|
|
1436
1434
|
const Y = /* @__PURE__ */ g(Xn, [["render", Qn]]), Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1507,7 +1505,7 @@ const Y = /* @__PURE__ */ g(Xn, [["render", Qn]]), Zn = /* @__PURE__ */ Object.f
|
|
|
1507
1505
|
"builderComponents"
|
|
1508
1506
|
],
|
|
1509
1507
|
data() {
|
|
1510
|
-
return { TARGET:
|
|
1508
|
+
return { TARGET: E, getColumnsClass: eo };
|
|
1511
1509
|
},
|
|
1512
1510
|
computed: {
|
|
1513
1511
|
gutterSize() {
|
|
@@ -1671,7 +1669,7 @@ const oo = /* @__PURE__ */ g(to, [["render", no], ["__scopeId", "data-v-3354f136
|
|
|
1671
1669
|
});
|
|
1672
1670
|
function so(e, t, n, o, r, i) {
|
|
1673
1671
|
return c(), p("span", null, [
|
|
1674
|
-
|
|
1672
|
+
x(e.$slots, "default")
|
|
1675
1673
|
]);
|
|
1676
1674
|
}
|
|
1677
1675
|
const io = /* @__PURE__ */ g(ro, [["render", so]]);
|
|
@@ -1794,9 +1792,9 @@ function ho(e, t, n, o, r, i) {
|
|
|
1794
1792
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1795
1793
|
})
|
|
1796
1794
|
}, null, 4)) : v("", !0),
|
|
1797
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1795
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
|
|
1798
1796
|
!e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", mo, [
|
|
1799
|
-
|
|
1797
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
1800
1798
|
])) : v("", !0)
|
|
1801
1799
|
], 64);
|
|
1802
1800
|
}
|
|
@@ -1821,8 +1819,8 @@ function go(e, t, n, o, r, i) {
|
|
|
1821
1819
|
marginLeft: "auto",
|
|
1822
1820
|
marginRight: "auto"
|
|
1823
1821
|
}
|
|
1824
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1825
|
-
|
|
1822
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1823
|
+
x(e.$slots, "default")
|
|
1826
1824
|
], 16);
|
|
1827
1825
|
}
|
|
1828
1826
|
const yo = /* @__PURE__ */ g(bo, [["render", go]]), oe = {
|
|
@@ -3245,7 +3243,7 @@ const or = /* @__PURE__ */ g(er, [["render", nr]]), rr = {
|
|
|
3245
3243
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
3246
3244
|
},
|
|
3247
3245
|
submissionState() {
|
|
3248
|
-
return
|
|
3246
|
+
return P() && this.previewState || this.formState;
|
|
3249
3247
|
},
|
|
3250
3248
|
onSubmit(e) {
|
|
3251
3249
|
var n;
|
|
@@ -3371,7 +3369,7 @@ function dr(e, t, n, o, r, i) {
|
|
|
3371
3369
|
method: e.method,
|
|
3372
3370
|
name: e.name,
|
|
3373
3371
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3374
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3372
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3375
3373
|
e.builderBlock && e.builderBlock.children ? (c(!0), p(w, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(s, {
|
|
3376
3374
|
key: `form-block-${e.idx}`,
|
|
3377
3375
|
block: u,
|
|
@@ -3463,7 +3461,7 @@ const ur = /* @__PURE__ */ g(ar, [["render", dr], ["__scopeId", "data-v-cd94d6c1
|
|
|
3463
3461
|
"required"
|
|
3464
3462
|
],
|
|
3465
3463
|
data() {
|
|
3466
|
-
return { isEditing:
|
|
3464
|
+
return { isEditing: P, filterAttrs: W };
|
|
3467
3465
|
}
|
|
3468
3466
|
}), hr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3469
3467
|
function fr(e, t, n, o, r, i) {
|
|
@@ -3475,7 +3473,7 @@ function fr(e, t, n, o, r, i) {
|
|
|
3475
3473
|
value: e.value,
|
|
3476
3474
|
defaultValue: e.defaultValue,
|
|
3477
3475
|
required: e.required
|
|
3478
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3476
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, hr);
|
|
3479
3477
|
}
|
|
3480
3478
|
const br = /* @__PURE__ */ g(mr, [["render", fr]]), gr = {
|
|
3481
3479
|
name: "Form:Select",
|
|
@@ -3523,7 +3521,7 @@ const br = /* @__PURE__ */ g(mr, [["render", fr]]), gr = {
|
|
|
3523
3521
|
name: "builder-select-component",
|
|
3524
3522
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3525
3523
|
data() {
|
|
3526
|
-
return { isEditing:
|
|
3524
|
+
return { isEditing: P, filterAttrs: W };
|
|
3527
3525
|
}
|
|
3528
3526
|
}), kr = ["value", "defaultValue", "name", "required"], vr = ["value"];
|
|
3529
3527
|
function Sr(e, t, n, o, r, i) {
|
|
@@ -3533,7 +3531,7 @@ function Sr(e, t, n, o, r, i) {
|
|
|
3533
3531
|
defaultValue: e.defaultValue,
|
|
3534
3532
|
name: e.name,
|
|
3535
3533
|
required: e.required
|
|
3536
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3534
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3537
3535
|
(c(!0), p(w, null, V(e.options, (s, l) => (c(), p("option", {
|
|
3538
3536
|
key: `${s.name}-${l}`,
|
|
3539
3537
|
value: s.value
|
|
@@ -3573,7 +3571,7 @@ const Cr = /* @__PURE__ */ g(yr, [["render", Sr]]), Tr = {
|
|
|
3573
3571
|
}
|
|
3574
3572
|
});
|
|
3575
3573
|
function Ir(e, t, n, o, r, i) {
|
|
3576
|
-
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3574
|
+
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
|
|
3577
3575
|
}
|
|
3578
3576
|
const $r = /* @__PURE__ */ g(wr, [["render", Ir]]), Rr = {
|
|
3579
3577
|
name: "Form:TextArea",
|
|
@@ -3632,7 +3630,7 @@ function Br(e, t, n, o, r, i) {
|
|
|
3632
3630
|
value: e.value,
|
|
3633
3631
|
defaultValue: e.defaultValue,
|
|
3634
3632
|
required: e.required
|
|
3635
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3633
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pr);
|
|
3636
3634
|
}
|
|
3637
3635
|
const xr = /* @__PURE__ */ g(Er, [["render", Br]]), Ar = {
|
|
3638
3636
|
// friendlyName?
|
|
@@ -3659,7 +3657,7 @@ const xr = /* @__PURE__ */ g(Er, [["render", Br]]), Ar = {
|
|
|
3659
3657
|
"attributes"
|
|
3660
3658
|
],
|
|
3661
3659
|
data() {
|
|
3662
|
-
return { isEditing:
|
|
3660
|
+
return { isEditing: P, filterAttrs: W };
|
|
3663
3661
|
}
|
|
3664
3662
|
}), Wr = ["alt", "src"];
|
|
3665
3663
|
function Nr(e, t, n, o, r, i) {
|
|
@@ -3671,7 +3669,7 @@ function Nr(e, t, n, o, r, i) {
|
|
|
3671
3669
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3672
3670
|
alt: e.altText,
|
|
3673
3671
|
src: e.imgSrc || e.image
|
|
3674
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3672
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Wr);
|
|
3675
3673
|
}
|
|
3676
3674
|
const Fr = /* @__PURE__ */ g(Vr, [["render", Nr]]), Dr = {
|
|
3677
3675
|
name: "Video",
|
|
@@ -3864,10 +3862,10 @@ function Kr(e, t, n, o, r, i) {
|
|
|
3864
3862
|
})
|
|
3865
3863
|
}, null, 4)) : v("", !0),
|
|
3866
3864
|
(m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", Mr, [
|
|
3867
|
-
|
|
3865
|
+
x(e.$slots, "default")
|
|
3868
3866
|
])) : v("", !0),
|
|
3869
3867
|
(d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", jr, [
|
|
3870
|
-
|
|
3868
|
+
x(e.$slots, "default")
|
|
3871
3869
|
])) : v("", !0)
|
|
3872
3870
|
]);
|
|
3873
3871
|
}
|
|
@@ -4025,7 +4023,7 @@ const qr = /* @__PURE__ */ g(Or, [["render", Kr]]), zr = () => [{
|
|
|
4025
4023
|
})), Yr = ({
|
|
4026
4024
|
canTrack: e,
|
|
4027
4025
|
content: t
|
|
4028
|
-
}) => !(!(Q(t).length > 0) || !e), Xr = (e) => e === "react" || e === "reactNative", it = Xr(
|
|
4026
|
+
}) => !(!(Q(t).length > 0) || !e), Xr = (e) => e === "react" || e === "reactNative", it = Xr(E), Qr = () => `
|
|
4029
4027
|
window.${rt} = ${Gr}
|
|
4030
4028
|
window.${st} = ${Jr}
|
|
4031
4029
|
`, Zr = (e, t) => `
|
|
@@ -4182,7 +4180,7 @@ font-weight: ${s};
|
|
|
4182
4180
|
mounted() {
|
|
4183
4181
|
var e, t;
|
|
4184
4182
|
if (R()) {
|
|
4185
|
-
if (
|
|
4183
|
+
if (P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4186
4184
|
new CustomEvent("initeditingbldr")
|
|
4187
4185
|
), this.builderContextSignal.content && G(this.canTrack)) {
|
|
4188
4186
|
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
|
|
@@ -4195,7 +4193,7 @@ font-weight: ${s};
|
|
|
4195
4193
|
variationId: o !== r ? o : void 0
|
|
4196
4194
|
});
|
|
4197
4195
|
}
|
|
4198
|
-
Ht() && !
|
|
4196
|
+
Ht() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4199
4197
|
new CustomEvent("initpreviewingbldr")
|
|
4200
4198
|
);
|
|
4201
4199
|
}
|
|
@@ -4332,7 +4330,7 @@ font-weight: ${s};
|
|
|
4332
4330
|
var t, n;
|
|
4333
4331
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
4334
4332
|
Object.entries(e).forEach(([o, r]) => {
|
|
4335
|
-
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
4333
|
+
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !P())
|
|
4336
4334
|
return;
|
|
4337
4335
|
this.httpReqsPending[o] = !0;
|
|
4338
4336
|
const i = r.replace(
|
|
@@ -4359,7 +4357,7 @@ font-weight: ${s};
|
|
|
4359
4357
|
});
|
|
4360
4358
|
},
|
|
4361
4359
|
emitStateUpdate() {
|
|
4362
|
-
|
|
4360
|
+
P() && window.dispatchEvent(
|
|
4363
4361
|
new CustomEvent(
|
|
4364
4362
|
"builder:component:stateChange",
|
|
4365
4363
|
{
|
|
@@ -4422,7 +4420,7 @@ function ds(e, t, n, o, r, i) {
|
|
|
4422
4420
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4423
4421
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4424
4422
|
default: N(() => [
|
|
4425
|
-
|
|
4423
|
+
x(e.$slots, "default")
|
|
4426
4424
|
]),
|
|
4427
4425
|
_: 3
|
|
4428
4426
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
|
|
@@ -4566,7 +4564,7 @@ const hs = /* @__PURE__ */ g(ps, [["render", ms]]), fs = ({
|
|
|
4566
4564
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4567
4565
|
nonce: this.nonce || ""
|
|
4568
4566
|
},
|
|
4569
|
-
TARGET:
|
|
4567
|
+
TARGET: E
|
|
4570
4568
|
};
|
|
4571
4569
|
},
|
|
4572
4570
|
provide() {
|
|
@@ -4579,7 +4577,7 @@ const hs = /* @__PURE__ */ g(ps, [["render", ms]]), fs = ({
|
|
|
4579
4577
|
},
|
|
4580
4578
|
created() {
|
|
4581
4579
|
var t, n;
|
|
4582
|
-
this.apiKey ||
|
|
4580
|
+
this.apiKey || A.error(
|
|
4583
4581
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4584
4582
|
);
|
|
4585
4583
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -4682,7 +4680,7 @@ const vs = /* @__PURE__ */ g(ys, [["render", ks]]), Ss = b({
|
|
|
4682
4680
|
canTrack: G(this.canTrack),
|
|
4683
4681
|
content: this.content
|
|
4684
4682
|
}),
|
|
4685
|
-
TARGET:
|
|
4683
|
+
TARGET: E,
|
|
4686
4684
|
getInitVariantsFnsScriptString: Qr,
|
|
4687
4685
|
getVariants: Q
|
|
4688
4686
|
};
|
|
@@ -4803,7 +4801,7 @@ const Ts = /* @__PURE__ */ g(Ss, [["render", Cs]]), ws = async ({
|
|
|
4803
4801
|
}
|
|
4804
4802
|
}
|
|
4805
4803
|
}).catch((n) => {
|
|
4806
|
-
|
|
4804
|
+
A.error("Could not fetch symbol content: ", n);
|
|
4807
4805
|
});
|
|
4808
4806
|
}, Is = b({
|
|
4809
4807
|
name: "builder-symbol",
|
|
@@ -4868,7 +4866,7 @@ const Ts = /* @__PURE__ */ g(Ss, [["render", Cs]]), ws = async ({
|
|
|
4868
4866
|
function $s(e, t, n, o, r, i) {
|
|
4869
4867
|
var l, a, u, m, h;
|
|
4870
4868
|
const s = k("ContentVariants");
|
|
4871
|
-
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4869
|
+
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4872
4870
|
$(s, {
|
|
4873
4871
|
nonce: e.builderContext.nonce,
|
|
4874
4872
|
isNestedRender: !0,
|