@builder.io/sdk-vue 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/block-styles-Mn6wJduZ.cjs +1 -0
- package/lib/browser/{block-styles-cVSrkWog.js → block-styles-sZJR1URf.js} +14 -13
- package/lib/browser/{block-wrapper-maIbj8Gi.js → block-wrapper-ody6Sxkr.js} +3 -3
- package/lib/browser/{block-wrapper-WsC3tXV8.cjs → block-wrapper-qFFX6RFF.cjs} +1 -1
- package/lib/browser/{component-ref-da6lIO9c.cjs → component-ref-DSNF4azA.cjs} +1 -1
- package/lib/browser/{component-ref-1N_Kijok.js → component-ref-rf4-wS3o.js} +2 -2
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/browser/components/content/components/styles.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/inlined-script.vue.d.ts +3 -0
- package/lib/browser/components/inlined-styles.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder.context.d.ts +1 -0
- package/lib/browser/context/types.d.ts +1 -0
- package/lib/browser/{get-block-properties-AuDiFohY.js → get-block-properties-O0W_2V2s.js} +1 -1
- package/lib/browser/{get-block-properties-0QNsXkZI.cjs → get-block-properties-trq7EGpq.cjs} +1 -1
- package/lib/browser/{index-pDvo-fub.js → index---sv1Dmc.js} +67 -50
- package/lib/browser/index-5K25vfnv.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-nP-Etgd7.js → repeated-block-4hDqPbdf.js} +2 -2
- package/lib/browser/{repeated-block-Z2UnXIU-.cjs → repeated-block-LqvC87RV.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-props.d.ts +3 -0
- package/lib/edge/{block-styles--vY4nPqp.js → block-styles-QLPVQ54j.js} +14 -13
- package/lib/edge/block-styles-VkVzS7vd.cjs +1 -0
- package/lib/{node/block-wrapper-TveOxTSb.cjs → edge/block-wrapper-C3QWzorc.cjs} +1 -1
- package/lib/edge/{block-wrapper-JdVK1HVZ.js → block-wrapper-Lrmvcvj2.js} +3 -3
- package/lib/{node/component-ref-KnwCIp0k.js → edge/component-ref-BzjW_J7Z.js} +2 -2
- package/lib/{node/component-ref-N8Z1onkW.cjs → edge/component-ref-_MrpnWQq.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/edge/components/content/components/styles.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/inlined-script.vue.d.ts +3 -0
- package/lib/edge/components/inlined-styles.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder.context.d.ts +1 -0
- package/lib/edge/context/types.d.ts +1 -0
- package/lib/edge/{get-block-properties-hYo7UjjZ.js → get-block-properties-YDq-FuAs.js} +1 -1
- package/lib/edge/{get-block-properties-dww-G4lx.cjs → get-block-properties-ZdU2gihP.cjs} +1 -1
- package/lib/edge/{index-OtE_7PIE.js → index-8mGnZrt9.js} +185 -168
- package/lib/edge/{index-lFidbDeW.cjs → index-tYqLns-6.cjs} +18 -18
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-IMXruThl.cjs → repeated-block-IOMTx4Ek.cjs} +1 -1
- package/lib/edge/{repeated-block-vPgWRa-A.js → repeated-block-c9Qq8PaK.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-props.d.ts +3 -0
- package/lib/node/block-styles-GqJTbD8X.cjs +1 -0
- package/lib/node/{block-styles-JjLwXWt4.js → block-styles-Tyg1fV88.js} +14 -13
- package/lib/{edge/block-wrapper-szOQNDWW.cjs → node/block-wrapper-0rr8eTCE.cjs} +1 -1
- package/lib/node/{block-wrapper--XSKGCL-.js → block-wrapper-iBhEa5rI.js} +3 -3
- package/lib/{edge/component-ref-Ffo8HUWI.js → node/component-ref-FN9Rzqu_.js} +2 -2
- package/lib/{edge/component-ref-7HkRGS_l.cjs → node/component-ref-j2PWej8h.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/node/components/content/components/styles.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/inlined-script.vue.d.ts +3 -0
- package/lib/node/components/inlined-styles.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder.context.d.ts +1 -0
- package/lib/node/context/types.d.ts +1 -0
- package/lib/node/{get-block-properties-Xr5L4Okr.js → get-block-properties-HOAtHaKD.js} +1 -1
- package/lib/node/{get-block-properties-inIHDjNu.cjs → get-block-properties-NZJwLalB.cjs} +1 -1
- package/lib/node/{index-EVLuO1iu.js → index-AtsvJZco.js} +273 -256
- package/lib/node/index-_k1NN43c.cjs +213 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-Co8byFSc.cjs → repeated-block-Smn39W6t.cjs} +1 -1
- package/lib/node/{repeated-block-gAw64HdW.js → repeated-block-ztDvgKZz.js} +2 -2
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-props.d.ts +3 -0
- package/package.json +1 -1
- package/lib/browser/block-styles-fmMk_gc8.cjs +0 -1
- package/lib/browser/index-7PcQ3One.cjs +0 -166
- package/lib/edge/block-styles-UnZvcuhz.cjs +0 -1
- package/lib/node/block-styles-houtGRpT.cjs +0 -1
- package/lib/node/index-QFbjU7Zd.cjs +0 -213
|
@@ -111,7 +111,8 @@ const qo = /* @__PURE__ */ V(Ho, [["render", Ko]]), zo = Symbol(), mn = {
|
|
|
111
111
|
componentInfos: {},
|
|
112
112
|
inheritedStyles: {},
|
|
113
113
|
BlocksWrapper: "div",
|
|
114
|
-
BlocksWrapperProps: {}
|
|
114
|
+
BlocksWrapperProps: {},
|
|
115
|
+
nonce: ""
|
|
115
116
|
},
|
|
116
117
|
key: zo
|
|
117
118
|
}, Go = Symbol(), Br = {
|
|
@@ -131,24 +132,24 @@ const Pt = "[Builder.io]: ", se = {
|
|
|
131
132
|
warn: (...e) => console.warn(Pt, ...e),
|
|
132
133
|
debug: (...e) => console.debug(Pt, ...e)
|
|
133
134
|
};
|
|
134
|
-
function
|
|
135
|
+
function X() {
|
|
135
136
|
return typeof window < "u" && typeof document < "u";
|
|
136
137
|
}
|
|
137
|
-
const
|
|
138
|
+
const Xo = (e) => {
|
|
138
139
|
const t = {};
|
|
139
140
|
return e.forEach((n, r) => {
|
|
140
141
|
t[r] = n;
|
|
141
142
|
}), t;
|
|
142
|
-
}, Nr = (e) => e instanceof URLSearchParams ?
|
|
143
|
-
function
|
|
144
|
-
return
|
|
143
|
+
}, Nr = (e) => e instanceof URLSearchParams ? Xo(e) : e, Vr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
144
|
+
function Yo() {
|
|
145
|
+
return X() && window.self !== window.top;
|
|
145
146
|
}
|
|
146
147
|
function le(e) {
|
|
147
|
-
return
|
|
148
|
+
return Yo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
148
149
|
Vr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
149
150
|
}
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
151
|
+
const _o = () => {
|
|
152
|
+
if (X()) {
|
|
152
153
|
const e = new URL(location.href);
|
|
153
154
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
154
155
|
} else
|
|
@@ -173,7 +174,7 @@ const Yo = () => {
|
|
|
173
174
|
any() {
|
|
174
175
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || fe === "reactNative";
|
|
175
176
|
}
|
|
176
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
177
|
+
}, n = e.match(/Tablet|iPad/i), r = _o();
|
|
177
178
|
return {
|
|
178
179
|
urlPath: r == null ? void 0 : r.pathname,
|
|
179
180
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -193,8 +194,8 @@ const Yo = () => {
|
|
|
193
194
|
event: n
|
|
194
195
|
}), Qo = () => ({
|
|
195
196
|
isEditing: le(),
|
|
196
|
-
isBrowser:
|
|
197
|
-
isServer: !
|
|
197
|
+
isBrowser: X(),
|
|
198
|
+
isServer: !X(),
|
|
198
199
|
getUserAttributes: () => Ur()
|
|
199
200
|
}), ei = (e, {
|
|
200
201
|
isExpression: t = !0
|
|
@@ -458,7 +459,7 @@ var B, ni = function(e) {
|
|
|
458
459
|
if (s ? d = H + 1 : H = d, A.C && (zt = new i()), s)
|
|
459
460
|
return C();
|
|
460
461
|
if (d >= Fe)
|
|
461
|
-
return a(
|
|
462
|
+
return a(Yt);
|
|
462
463
|
if (s = b.charCodeAt(d), n(s) || s === 92)
|
|
463
464
|
return N();
|
|
464
465
|
if (m(s) === !1) {
|
|
@@ -488,7 +489,7 @@ var B, ni = function(e) {
|
|
|
488
489
|
}
|
|
489
490
|
++d;
|
|
490
491
|
}
|
|
491
|
-
s = b.slice(c, d), ++d, (l =
|
|
492
|
+
s = b.slice(c, d), ++d, (l = Y()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
492
493
|
try {
|
|
493
494
|
var I = new RegExp(s, l);
|
|
494
495
|
} catch (K) {
|
|
@@ -514,7 +515,7 @@ var B, ni = function(e) {
|
|
|
514
515
|
function Q(s) {
|
|
515
516
|
return s = O(16, s), s === null && r(H, "Bad character escape sequence"), s;
|
|
516
517
|
}
|
|
517
|
-
function
|
|
518
|
+
function Y() {
|
|
518
519
|
Le = !1;
|
|
519
520
|
for (var s, l = !0, c = d; ; ) {
|
|
520
521
|
var f = b.charCodeAt(d);
|
|
@@ -531,11 +532,11 @@ var B, ni = function(e) {
|
|
|
531
532
|
return Le ? s : b.slice(c, d);
|
|
532
533
|
}
|
|
533
534
|
function N() {
|
|
534
|
-
var s =
|
|
535
|
+
var s = Y(), l = Me;
|
|
535
536
|
!Le && Po(s) && (l = ko[s]), a(l, s);
|
|
536
537
|
}
|
|
537
538
|
function R() {
|
|
538
|
-
Jt = H, $e = De,
|
|
539
|
+
Jt = H, $e = De, Xt = Gt, v();
|
|
539
540
|
}
|
|
540
541
|
function xe(s) {
|
|
541
542
|
if (oe = s, d = H, A.C)
|
|
@@ -559,7 +560,7 @@ var B, ni = function(e) {
|
|
|
559
560
|
return l.start = s.start, A.C && (l.X = new Re(), l.X.start = s.X.start), A.Xa && (l.j = [s.j[0], 0]), l;
|
|
560
561
|
}
|
|
561
562
|
function x(s, l) {
|
|
562
|
-
return s.type = l, s.end = $e, A.C && (s.X.end =
|
|
563
|
+
return s.type = l, s.end = $e, A.C && (s.X.end = Xt), A.Xa && (s.j[1] = $e), s;
|
|
563
564
|
}
|
|
564
565
|
function Ft(s) {
|
|
565
566
|
return s.type === "ExpressionStatement" && s.la.type === "Literal" && s.la.value === "use strict";
|
|
@@ -568,7 +569,7 @@ var B, ni = function(e) {
|
|
|
568
569
|
return E === s ? (R(), !0) : !1;
|
|
569
570
|
}
|
|
570
571
|
function wt() {
|
|
571
|
-
return !A.fc && (E ===
|
|
572
|
+
return !A.fc && (E === Yt || E === We || At.test(b.slice($e, H)));
|
|
572
573
|
}
|
|
573
574
|
function Ne() {
|
|
574
575
|
D(be) || wt() || me();
|
|
@@ -586,10 +587,10 @@ var B, ni = function(e) {
|
|
|
586
587
|
(E === pr || E === Ue && ae === "/=") && v(!0);
|
|
587
588
|
var s = E, l = G();
|
|
588
589
|
switch (s) {
|
|
589
|
-
case
|
|
590
|
+
case _t:
|
|
590
591
|
case zn:
|
|
591
592
|
R();
|
|
592
|
-
var c = s ===
|
|
593
|
+
var c = s === _t;
|
|
593
594
|
D(be) || wt() ? l.label = null : E !== Me ? me() : (l.label = ge(), Ne());
|
|
594
595
|
for (var f = 0; f < L.length; ++f) {
|
|
595
596
|
var I = L[f];
|
|
@@ -599,36 +600,36 @@ var B, ni = function(e) {
|
|
|
599
600
|
return f === L.length && r(l.start, "Unsyntactic " + s.l), x(l, c ? "BreakStatement" : "ContinueStatement");
|
|
600
601
|
case Gn:
|
|
601
602
|
return R(), Ne(), x(l, "DebuggerStatement");
|
|
602
|
-
case
|
|
603
|
-
return R(), L.push(sn), l.body = ue(), L.pop(), W(nn), l.test =
|
|
603
|
+
case Xn:
|
|
604
|
+
return R(), L.push(sn), l.body = ue(), L.pop(), W(nn), l.test = Ye(), Ne(), x(l, "DoWhileStatement");
|
|
604
605
|
case Zn:
|
|
605
|
-
return R(), L.push(sn), W(ve), E === be ? Dt(l, null) : E === tn ? (s = G(), R(), Ln(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && D(xt) ? Wn(l, s) : Dt(l, s)) : (s =
|
|
606
|
+
return R(), L.push(sn), W(ve), E === be ? Dt(l, null) : E === tn ? (s = G(), R(), Ln(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && D(xt) ? Wn(l, s) : Dt(l, s)) : (s = _(!1, !0), D(xt) ? (Tt(s), Wn(l, s)) : Dt(l, s));
|
|
606
607
|
case Qt:
|
|
607
608
|
return R(), Ht(l, !0);
|
|
608
609
|
case Qn:
|
|
609
|
-
return R(), l.test =
|
|
610
|
+
return R(), l.test = Ye(), l.da = ue(), l.alternate = D(Yn) ? ue() : null, x(l, "IfStatement");
|
|
610
611
|
case er:
|
|
611
|
-
return et || A.Ib || r(H, "'return' outside of function"), R(), D(be) || wt() ? l.K = null : (l.K =
|
|
612
|
+
return et || A.Ib || r(H, "'return' outside of function"), R(), D(be) || wt() ? l.K = null : (l.K = _(), Ne()), x(l, "ReturnStatement");
|
|
612
613
|
case en:
|
|
613
|
-
for (R(), l.Qb =
|
|
614
|
-
E === Zt || E === Jn ? (s = E === Zt, f && x(f, "SwitchCase"), l.tb.push(f = G()), f.da = [], R(), s ? f.test =
|
|
614
|
+
for (R(), l.Qb = Ye(), l.tb = [], W(nt), L.push(Bo); E !== We; )
|
|
615
|
+
E === Zt || E === Jn ? (s = E === Zt, f && x(f, "SwitchCase"), l.tb.push(f = G()), f.da = [], R(), s ? f.test = _() : (c && r(Jt, "Multiple default clauses"), c = !0, f.test = null), W(rt)) : (f || me(), f.da.push(ue()));
|
|
615
616
|
return f && x(f, "SwitchCase"), R(), L.pop(), x(l, "SwitchStatement");
|
|
616
617
|
case tr:
|
|
617
|
-
return R(), At.test(b.slice($e, H)) && r($e, "Illegal newline after throw"), l.K =
|
|
618
|
+
return R(), At.test(b.slice($e, H)) && r($e, "Illegal newline after throw"), l.K = _(), Ne(), x(l, "ThrowStatement");
|
|
618
619
|
case nr:
|
|
619
|
-
return R(), l.block =
|
|
620
|
+
return R(), l.block = _e(), l.Ea = null, E === qn && (s = G(), R(), W(ve), s.Ua = ge(), oe && Rt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), W(de), s.body = _e(), l.Ea = x(s, "CatchClause")), l.fb = D(_n) ? _e() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
620
621
|
case tn:
|
|
621
622
|
return R(), Ln(l), Ne(), x(l, "VariableDeclaration");
|
|
622
623
|
case nn:
|
|
623
|
-
return R(), l.test =
|
|
624
|
+
return R(), l.test = Ye(), L.push(sn), l.body = ue(), L.pop(), x(l, "WhileStatement");
|
|
624
625
|
case rr:
|
|
625
|
-
return oe && r(H, "'with' in strict mode"), R(), l.object =
|
|
626
|
+
return oe && r(H, "'with' in strict mode"), R(), l.object = Ye(), l.body = ue(), x(l, "WithStatement");
|
|
626
627
|
case nt:
|
|
627
|
-
return
|
|
628
|
+
return _e();
|
|
628
629
|
case be:
|
|
629
630
|
return R(), x(l, "EmptyStatement");
|
|
630
631
|
default:
|
|
631
|
-
if (c = ae, I =
|
|
632
|
+
if (c = ae, I = _(), s === Me && I.type === "Identifier" && D(rt)) {
|
|
632
633
|
for (f = 0; f < L.length; ++f)
|
|
633
634
|
L[f].name === c && r(I.start, "Label '" + c + "' is already declared");
|
|
634
635
|
return L.push({
|
|
@@ -639,12 +640,12 @@ var B, ni = function(e) {
|
|
|
639
640
|
return l.la = I, Ne(), x(l, "ExpressionStatement");
|
|
640
641
|
}
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
+
function Ye() {
|
|
643
644
|
W(ve);
|
|
644
|
-
var s =
|
|
645
|
+
var s = _();
|
|
645
646
|
return W(de), s;
|
|
646
647
|
}
|
|
647
|
-
function
|
|
648
|
+
function _e(s) {
|
|
648
649
|
var l = G(), c = !0, f = !1;
|
|
649
650
|
for (l.body = [], W(nt); !D(We); ) {
|
|
650
651
|
var I = ue();
|
|
@@ -657,19 +658,19 @@ var B, ni = function(e) {
|
|
|
657
658
|
return f && !K && xe(!1), x(l, "BlockStatement");
|
|
658
659
|
}
|
|
659
660
|
function Dt(s, l) {
|
|
660
|
-
return s.ua = l, W(be), s.test = E === be ? null :
|
|
661
|
+
return s.ua = l, W(be), s.test = E === be ? null : _(), W(be), s.update = E === de ? null : _(), W(de), s.body = ue(), L.pop(), x(s, "ForStatement");
|
|
661
662
|
}
|
|
662
663
|
function Wn(s, l) {
|
|
663
|
-
return s.left = l, s.right =
|
|
664
|
+
return s.left = l, s.right = _(), W(de), s.body = ue(), L.pop(), x(s, "ForInStatement");
|
|
664
665
|
}
|
|
665
666
|
function Ln(s, l) {
|
|
666
667
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
667
668
|
var c = G();
|
|
668
|
-
if (c.id = ge(), oe && Rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = D(dr) ?
|
|
669
|
+
if (c.id = ge(), oe && Rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = D(dr) ? _(!0, l) : null, s.fa.push(x(c, "VariableDeclarator")), !D(Pe))
|
|
669
670
|
break;
|
|
670
671
|
}
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
+
function _(s, l) {
|
|
673
674
|
var c = Mt(l);
|
|
674
675
|
if (!s && E === Pe) {
|
|
675
676
|
for (s = Ae(c), s.xb = [c]; D(Pe); )
|
|
@@ -682,7 +683,7 @@ var B, ni = function(e) {
|
|
|
682
683
|
var l = Wt(Lt(), -1, s);
|
|
683
684
|
if (D(cr)) {
|
|
684
685
|
var c = Ae(l);
|
|
685
|
-
c.test = l, c.da =
|
|
686
|
+
c.test = l, c.da = _(!0), W(rt), c.alternate = _(!0, s), l = x(c, "ConditionalExpression");
|
|
686
687
|
}
|
|
687
688
|
return E.Cb ? (c = Ae(l), c.operator = ae, c.left = l, R(), c.right = Mt(s), Tt(l), x(c, "AssignmentExpression")) : l;
|
|
688
689
|
}
|
|
@@ -708,7 +709,7 @@ var B, ni = function(e) {
|
|
|
708
709
|
var c = Ae(s);
|
|
709
710
|
return c.object = s, c.Wa = ge(!0), c.bb = !1, Ze(x(c, "MemberExpression"), l);
|
|
710
711
|
}
|
|
711
|
-
return D(rn) ? (c = Ae(s), c.object = s, c.Wa =
|
|
712
|
+
return D(rn) ? (c = Ae(s), c.object = s, c.Wa = _(), c.bb = !0, W(on), Ze(x(c, "MemberExpression"), l)) : !l && D(ve) ? (c = Ae(s), c.callee = s, c.arguments = Kt(de, !1), Ze(x(c, "CallExpression"), l)) : s;
|
|
712
713
|
}
|
|
713
714
|
function Et() {
|
|
714
715
|
switch (E) {
|
|
@@ -729,7 +730,7 @@ var B, ni = function(e) {
|
|
|
729
730
|
s = zt;
|
|
730
731
|
var l = H;
|
|
731
732
|
R();
|
|
732
|
-
var c =
|
|
733
|
+
var c = _();
|
|
733
734
|
return c.start = l, c.end = De, A.C && (c.X.start = s, c.X.end = Gt), A.Xa && (c.j = [l, De]), W(de), c;
|
|
734
735
|
case rn:
|
|
735
736
|
return s = G(), R(), s.elements = Kt(on, !0, !0), x(s, "ArrayExpression");
|
|
@@ -743,7 +744,7 @@ var B, ni = function(e) {
|
|
|
743
744
|
key: E === tt || E === It ? Et() : ge(!0)
|
|
744
745
|
}, I = !1;
|
|
745
746
|
if (D(rt)) {
|
|
746
|
-
f.value =
|
|
747
|
+
f.value = _(!0);
|
|
747
748
|
var K = f.kind = "init";
|
|
748
749
|
} else
|
|
749
750
|
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? me() : (I = c = !0, K = f.kind = f.key.name, f.key = E === tt || E === It ? Et() : ge(!0), E !== ve && me(), f.value = Ht(G(), !1));
|
|
@@ -772,7 +773,7 @@ var B, ni = function(e) {
|
|
|
772
773
|
c ? c = !1 : W(Pe), s.oa.push(ge());
|
|
773
774
|
c = et;
|
|
774
775
|
var f = L;
|
|
775
|
-
if (et = !0, L = [], s.body =
|
|
776
|
+
if (et = !0, L = [], s.body = _e(!0), et = c, L = f, oe || s.body.body.length && Ft(s.body.body[0])) {
|
|
776
777
|
for (c = s.id ? -1 : 0; c < s.oa.length; ++c)
|
|
777
778
|
if (f = 0 > c ? s.id : s.oa[c], (gr(f.name) || Rt(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c)
|
|
778
779
|
for (var I = 0; I < c; ++I)
|
|
@@ -786,7 +787,7 @@ var B, ni = function(e) {
|
|
|
786
787
|
I = !1;
|
|
787
788
|
else if (W(Pe), l && A.sb && D(s))
|
|
788
789
|
break;
|
|
789
|
-
f.push(c && E === Pe ? null :
|
|
790
|
+
f.push(c && E === Pe ? null : _(!0));
|
|
790
791
|
}
|
|
791
792
|
return f;
|
|
792
793
|
}
|
|
@@ -800,7 +801,7 @@ var B, ni = function(e) {
|
|
|
800
801
|
b = String(s), Fe = b.length, A = l || {};
|
|
801
802
|
for (var c in Hn)
|
|
802
803
|
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = Hn[c]);
|
|
803
|
-
for (qt = A.sourceFile, Ve = 1, d = ye = 0, Qe = !0, p(), c = A.dc, Jt = $e = d, A.C && (
|
|
804
|
+
for (qt = A.sourceFile, Ve = 1, d = ye = 0, Qe = !0, p(), c = A.dc, Jt = $e = d, A.C && (Xt = new i()), et = oe = !1, L = [], v(), s = c || G(), l = !0, c || (s.body = []); E !== Yt; )
|
|
804
805
|
c = ue(), s.body.push(c), l && Ft(c) && xe(!0), l = !1;
|
|
805
806
|
return x(s, "Program");
|
|
806
807
|
};
|
|
@@ -815,7 +816,7 @@ var B, ni = function(e) {
|
|
|
815
816
|
dc: null,
|
|
816
817
|
sourceFile: null,
|
|
817
818
|
vb: null
|
|
818
|
-
}, d = 0, H = 0, De = 0, zt, Gt, E, ae, Qe, Ve, ye, Jt = 0, $e = 0,
|
|
819
|
+
}, d = 0, H = 0, De = 0, zt, Gt, E, ae, Qe, Ve, ye, Jt = 0, $e = 0, Xt, et, L, oe, bo = [], tt = {
|
|
819
820
|
type: "num"
|
|
820
821
|
}, Kn = {
|
|
821
822
|
type: "regexp"
|
|
@@ -823,9 +824,9 @@ var B, ni = function(e) {
|
|
|
823
824
|
type: "string"
|
|
824
825
|
}, Me = {
|
|
825
826
|
type: "name"
|
|
826
|
-
}, Xt = {
|
|
827
|
-
type: "eof"
|
|
828
827
|
}, Yt = {
|
|
828
|
+
type: "eof"
|
|
829
|
+
}, _t = {
|
|
829
830
|
l: "break"
|
|
830
831
|
}, Zt = {
|
|
831
832
|
l: "case",
|
|
@@ -838,13 +839,13 @@ var B, ni = function(e) {
|
|
|
838
839
|
l: "debugger"
|
|
839
840
|
}, Jn = {
|
|
840
841
|
l: "default"
|
|
841
|
-
},
|
|
842
|
+
}, Xn = {
|
|
842
843
|
l: "do",
|
|
843
844
|
W: !0
|
|
844
|
-
},
|
|
845
|
+
}, Yn = {
|
|
845
846
|
l: "else",
|
|
846
847
|
m: !0
|
|
847
|
-
},
|
|
848
|
+
}, _n = {
|
|
848
849
|
l: "finally"
|
|
849
850
|
}, Zn = {
|
|
850
851
|
l: "for",
|
|
@@ -889,15 +890,15 @@ var B, ni = function(e) {
|
|
|
889
890
|
L: 7,
|
|
890
891
|
m: !0
|
|
891
892
|
}, ko = {
|
|
892
|
-
break:
|
|
893
|
+
break: _t,
|
|
893
894
|
case: Zt,
|
|
894
895
|
catch: qn,
|
|
895
896
|
continue: zn,
|
|
896
897
|
debugger: Gn,
|
|
897
898
|
default: Jn,
|
|
898
|
-
do:
|
|
899
|
-
else:
|
|
900
|
-
finally:
|
|
899
|
+
do: Xn,
|
|
900
|
+
else: Yn,
|
|
901
|
+
finally: _n,
|
|
901
902
|
for: Zn,
|
|
902
903
|
function: Qt,
|
|
903
904
|
if: Qn,
|
|
@@ -2688,9 +2689,9 @@ const vi = (e) => e.split(`
|
|
|
2688
2689
|
context: t,
|
|
2689
2690
|
event: n,
|
|
2690
2691
|
state: u
|
|
2691
|
-
}), m = p.map(([
|
|
2692
|
-
const N = wr(
|
|
2693
|
-
return `var ${
|
|
2692
|
+
}), m = p.map(([Y]) => {
|
|
2693
|
+
const N = wr(Y);
|
|
2694
|
+
return `var ${Y} = ${N} === undefined ? undefined : JSON.parse(${N});`;
|
|
2694
2695
|
}).join(`
|
|
2695
2696
|
`), v = vi(a);
|
|
2696
2697
|
if (v === "") {
|
|
@@ -2704,14 +2705,14 @@ function theFunction() {
|
|
|
2704
2705
|
${v}
|
|
2705
2706
|
}
|
|
2706
2707
|
theFunction();
|
|
2707
|
-
`, C = (
|
|
2708
|
-
const R = wn(u,
|
|
2708
|
+
`, C = (Y, N) => {
|
|
2709
|
+
const R = wn(u, Y, N);
|
|
2709
2710
|
i == null || i(R);
|
|
2710
|
-
}, O = function(
|
|
2711
|
+
}, O = function(Y, N) {
|
|
2711
2712
|
p.forEach(([R, xe]) => {
|
|
2712
2713
|
const re = JSON.stringify(xe);
|
|
2713
|
-
|
|
2714
|
-
}),
|
|
2714
|
+
Y.setProperty(N, wr(R), re);
|
|
2715
|
+
}), Y.setProperty(N, "setRootState", Y.createNativeFunction(C));
|
|
2715
2716
|
}, P = new g(h, O);
|
|
2716
2717
|
return P.run(), P.pseudoToNative(P.value);
|
|
2717
2718
|
}, Be = (e) => e != null;
|
|
@@ -2725,7 +2726,7 @@ const Si = () => {
|
|
|
2725
2726
|
return !1;
|
|
2726
2727
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2727
2728
|
return e && t && !n ? (se.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2728
|
-
}, Ci = (e) =>
|
|
2729
|
+
}, Ci = (e) => X() || Si() ? ti(e) : bi(e), ke = class ke {
|
|
2729
2730
|
static getCacheKey(t) {
|
|
2730
2731
|
return JSON.stringify({
|
|
2731
2732
|
...t,
|
|
@@ -2935,10 +2936,10 @@ function xi(e) {
|
|
|
2935
2936
|
}), i();
|
|
2936
2937
|
});
|
|
2937
2938
|
}
|
|
2938
|
-
const
|
|
2939
|
+
const Xr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2939
2940
|
if (typeof r == "string")
|
|
2940
2941
|
return `${Nn(n)}: ${r};`;
|
|
2941
|
-
}).filter(Be), Ri = (e) =>
|
|
2942
|
+
}).filter(Be), Ri = (e) => Xr(e).join(`
|
|
2942
2943
|
`), fu = ({
|
|
2943
2944
|
mediaQuery: e,
|
|
2944
2945
|
className: t,
|
|
@@ -2959,18 +2960,18 @@ function Ai({
|
|
|
2959
2960
|
const mu = ({
|
|
2960
2961
|
block: e,
|
|
2961
2962
|
context: t
|
|
2962
|
-
}) =>
|
|
2963
|
+
}) => Yr(Ai({
|
|
2963
2964
|
style: e.style || {},
|
|
2964
2965
|
context: t,
|
|
2965
2966
|
block: e
|
|
2966
2967
|
}));
|
|
2967
|
-
function
|
|
2968
|
+
function Yr(e) {
|
|
2968
2969
|
switch (fe) {
|
|
2969
2970
|
case "svelte":
|
|
2970
2971
|
case "vue":
|
|
2971
2972
|
case "solid":
|
|
2972
2973
|
case "angular":
|
|
2973
|
-
return
|
|
2974
|
+
return Xr(e).join(" ");
|
|
2974
2975
|
case "qwik":
|
|
2975
2976
|
case "reactNative":
|
|
2976
2977
|
case "react":
|
|
@@ -3054,27 +3055,27 @@ const $i = ({
|
|
|
3054
3055
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
3055
3056
|
builderContext: t
|
|
3056
3057
|
} : {};
|
|
3057
|
-
}, Vi = () => Promise.resolve().then(() =>
|
|
3058
|
+
}, Vi = () => Promise.resolve().then(() => Yi).then((e) => e.default).catch((e) => {
|
|
3058
3059
|
throw console.error(
|
|
3059
3060
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3060
3061
|
e
|
|
3061
3062
|
), e;
|
|
3062
|
-
}), Ui = () => import("./block-styles
|
|
3063
|
+
}), Ui = () => import("./block-styles-QLPVQ54j.js").then((e) => e.default).catch((e) => {
|
|
3063
3064
|
throw console.error(
|
|
3064
3065
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3065
3066
|
e
|
|
3066
3067
|
), e;
|
|
3067
|
-
}), Fi = () => import("./block-wrapper-
|
|
3068
|
+
}), Fi = () => import("./block-wrapper-Lrmvcvj2.js").then((e) => e.default).catch((e) => {
|
|
3068
3069
|
throw console.error(
|
|
3069
3070
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3070
3071
|
e
|
|
3071
3072
|
), e;
|
|
3072
|
-
}), Di = () => import("./component-ref-
|
|
3073
|
+
}), Di = () => import("./component-ref-BzjW_J7Z.js").then((e) => e.default).catch((e) => {
|
|
3073
3074
|
throw console.error(
|
|
3074
3075
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3075
3076
|
e
|
|
3076
3077
|
), e;
|
|
3077
|
-
}), Mi = () => import("./repeated-block-
|
|
3078
|
+
}), Mi = () => import("./repeated-block-c9Qq8PaK.js").then((e) => e.default).catch((e) => {
|
|
3078
3079
|
throw console.error(
|
|
3079
3080
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3080
3081
|
e
|
|
@@ -3324,28 +3325,29 @@ function Gi(e, t, n, r, o, i) {
|
|
|
3324
3325
|
_: 1
|
|
3325
3326
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3326
3327
|
}
|
|
3327
|
-
const
|
|
3328
|
+
const Xe = /* @__PURE__ */ V(zi, [["render", Gi]]), Ji = j({
|
|
3328
3329
|
name: "dynamic-div",
|
|
3329
3330
|
props: []
|
|
3330
3331
|
});
|
|
3331
|
-
function
|
|
3332
|
+
function Xi(e, t, n, r, o, i) {
|
|
3332
3333
|
return y(), T("div", null, [
|
|
3333
3334
|
pe(e.$slots, "default")
|
|
3334
3335
|
]);
|
|
3335
3336
|
}
|
|
3336
|
-
const Ct = /* @__PURE__ */ V(Ji, [["render",
|
|
3337
|
+
const Ct = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3337
3338
|
__proto__: null,
|
|
3338
3339
|
default: Ct
|
|
3339
3340
|
}, Symbol.toStringTag, { value: "Module" })), Un = j({
|
|
3340
3341
|
render() {
|
|
3341
3342
|
return jr("style", {
|
|
3342
3343
|
innerHTML: this.styles,
|
|
3343
|
-
"data-id": this.id
|
|
3344
|
+
"data-id": this.id,
|
|
3345
|
+
nonce: this.nonce
|
|
3344
3346
|
});
|
|
3345
3347
|
},
|
|
3346
3348
|
name: "inlined-styles",
|
|
3347
|
-
props: ["styles", "id"]
|
|
3348
|
-
}),
|
|
3349
|
+
props: ["styles", "id", "nonce"]
|
|
3350
|
+
}), _r = {
|
|
3349
3351
|
small: {
|
|
3350
3352
|
min: 320,
|
|
3351
3353
|
default: 321,
|
|
@@ -3361,11 +3363,11 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", _i]]), Xi = /* @__PURE__ */ Object.
|
|
|
3361
3363
|
default: 991,
|
|
3362
3364
|
max: 1200
|
|
3363
3365
|
}
|
|
3364
|
-
}, yu = (e, t =
|
|
3366
|
+
}, yu = (e, t = _r) => `@media (max-width: ${t[e].max}px)`, _i = ({
|
|
3365
3367
|
small: e,
|
|
3366
3368
|
medium: t
|
|
3367
3369
|
}) => {
|
|
3368
|
-
const n = St(
|
|
3370
|
+
const n = St(_r);
|
|
3369
3371
|
if (!e || !t)
|
|
3370
3372
|
return n;
|
|
3371
3373
|
const r = Math.floor(e / 2);
|
|
@@ -3392,7 +3394,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", _i]]), Xi = /* @__PURE__ */ Object.
|
|
|
3392
3394
|
components: {
|
|
3393
3395
|
InlinedStyles: Un,
|
|
3394
3396
|
DynamicRenderer: Cn,
|
|
3395
|
-
Blocks:
|
|
3397
|
+
Blocks: Xe,
|
|
3396
3398
|
DynamicDiv: Ct
|
|
3397
3399
|
},
|
|
3398
3400
|
props: [
|
|
@@ -3478,7 +3480,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", _i]]), Xi = /* @__PURE__ */ Object.
|
|
|
3478
3480
|
},
|
|
3479
3481
|
getWidthForBreakpointSize(e) {
|
|
3480
3482
|
var n, r;
|
|
3481
|
-
return
|
|
3483
|
+
return _i(
|
|
3482
3484
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
3483
3485
|
)[e].max;
|
|
3484
3486
|
},
|
|
@@ -3515,7 +3517,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", _i]]), Xi = /* @__PURE__ */ Object.
|
|
|
3515
3517
|
href: e.link
|
|
3516
3518
|
} : {},
|
|
3517
3519
|
[jt()]: "builder-column",
|
|
3518
|
-
style:
|
|
3520
|
+
style: Yr(this.columnCssVars(t))
|
|
3519
3521
|
};
|
|
3520
3522
|
}
|
|
3521
3523
|
}
|
|
@@ -3530,8 +3532,9 @@ function es(e, t, n, r, o, i) {
|
|
|
3530
3532
|
e.TARGET !== "reactNative" ? (y(), F(a, {
|
|
3531
3533
|
key: 0,
|
|
3532
3534
|
id: "builderio-columns",
|
|
3533
|
-
styles: e.columnsStyles()
|
|
3534
|
-
|
|
3535
|
+
styles: e.columnsStyles(),
|
|
3536
|
+
nonce: e.builderContext.nonce
|
|
3537
|
+
}, null, 8, ["styles", "nonce"])) : M("", !0),
|
|
3535
3538
|
(y(!0), T(Z, null, Ee(e.columns, (v, h) => (y(), F(p, {
|
|
3536
3539
|
key: h,
|
|
3537
3540
|
TagName: e.getTagName(v),
|
|
@@ -3555,7 +3558,7 @@ function es(e, t, n, r, o, i) {
|
|
|
3555
3558
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
3556
3559
|
], 16);
|
|
3557
3560
|
}
|
|
3558
|
-
const ts = /* @__PURE__ */ V(Qi, [["render", es], ["__scopeId", "data-v-
|
|
3561
|
+
const ts = /* @__PURE__ */ V(Qi, [["render", es], ["__scopeId", "data-v-975347d5"]]), ns = j({
|
|
3559
3562
|
name: "builder-fragment-component",
|
|
3560
3563
|
props: []
|
|
3561
3564
|
});
|
|
@@ -3620,12 +3623,14 @@ const as = j({
|
|
|
3620
3623
|
// images, otherwise you can supply this prop manually
|
|
3621
3624
|
!(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
|
|
3622
3625
|
return this.srcset;
|
|
3623
|
-
if (this.
|
|
3624
|
-
if (
|
|
3625
|
-
|
|
3626
|
-
|
|
3626
|
+
if (!this.noWebp) {
|
|
3627
|
+
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
3628
|
+
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
3629
|
+
return console.debug("Removed given srcset"), cn(t);
|
|
3630
|
+
} else if (this.image && !this.srcset)
|
|
3631
|
+
return cn(t);
|
|
3627
3632
|
return cn(t);
|
|
3628
|
-
|
|
3633
|
+
}
|
|
3629
3634
|
},
|
|
3630
3635
|
webpSrcSet() {
|
|
3631
3636
|
var e;
|
|
@@ -3686,7 +3691,7 @@ function ps(e, t, n, r, o, i) {
|
|
|
3686
3691
|
])) : M("", !0)
|
|
3687
3692
|
], 64);
|
|
3688
3693
|
}
|
|
3689
|
-
const ds = /* @__PURE__ */ V(as, [["render", ps], ["__scopeId", "data-v-
|
|
3694
|
+
const ds = /* @__PURE__ */ V(as, [["render", ps], ["__scopeId", "data-v-ce62b8d6"]]), hs = j({
|
|
3690
3695
|
name: "builder-section-component",
|
|
3691
3696
|
props: ["attributes", "maxWidth"],
|
|
3692
3697
|
data() {
|
|
@@ -3732,7 +3737,7 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
3732
3737
|
value: t,
|
|
3733
3738
|
expires: n
|
|
3734
3739
|
}) => {
|
|
3735
|
-
const o = (
|
|
3740
|
+
const o = (X() ? location.protocol === "https:" : !0) ? vs : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...i, ["path", "/"], ["domain", gs(window.location.hostname)], ...o];
|
|
3736
3741
|
return ys(a);
|
|
3737
3742
|
}, eo = async ({
|
|
3738
3743
|
name: e,
|
|
@@ -3972,7 +3977,7 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
3972
3977
|
}
|
|
3973
3978
|
}, Rs = (e) => e.toString(), As = j({
|
|
3974
3979
|
name: "builder-accordion",
|
|
3975
|
-
components: { Blocks:
|
|
3980
|
+
components: { Blocks: Xe },
|
|
3976
3981
|
props: [
|
|
3977
3982
|
"grid",
|
|
3978
3983
|
"oneAtATime",
|
|
@@ -4523,7 +4528,7 @@ const Os = /* @__PURE__ */ V(As, [["render", Ps]]), js = {
|
|
|
4523
4528
|
}
|
|
4524
4529
|
}, Ds = j({
|
|
4525
4530
|
name: "builder-slot",
|
|
4526
|
-
components: { Blocks:
|
|
4531
|
+
components: { Blocks: Xe },
|
|
4527
4532
|
props: ["builderContext", "name"]
|
|
4528
4533
|
});
|
|
4529
4534
|
function Ms(e, t, n, r, o, i) {
|
|
@@ -4727,7 +4732,7 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4727
4732
|
}
|
|
4728
4733
|
}, Ks = j({
|
|
4729
4734
|
name: "builder-tabs",
|
|
4730
|
-
components: { Blocks:
|
|
4735
|
+
components: { Blocks: Xe },
|
|
4731
4736
|
props: [
|
|
4732
4737
|
"defaultActiveTab",
|
|
4733
4738
|
"tabs",
|
|
@@ -4793,7 +4798,7 @@ function Gs(e, t, n, r, o, i) {
|
|
|
4793
4798
|
])) : M("", !0)
|
|
4794
4799
|
]);
|
|
4795
4800
|
}
|
|
4796
|
-
const Js = /* @__PURE__ */ V(Ks, [["render", Gs]]),
|
|
4801
|
+
const Js = /* @__PURE__ */ V(Ks, [["render", Gs]]), Xs = {
|
|
4797
4802
|
shouldReceiveBuilderProps: {
|
|
4798
4803
|
builderBlock: !1
|
|
4799
4804
|
},
|
|
@@ -4814,10 +4819,10 @@ const Js = /* @__PURE__ */ V(Ks, [["render", Gs]]), _s = {
|
|
|
4814
4819
|
height: "auto",
|
|
4815
4820
|
textAlign: "center"
|
|
4816
4821
|
}
|
|
4817
|
-
},
|
|
4822
|
+
}, Ys = j({
|
|
4818
4823
|
name: "builder-text",
|
|
4819
4824
|
props: ["text"]
|
|
4820
|
-
}),
|
|
4825
|
+
}), _s = ["innerHTML"];
|
|
4821
4826
|
function Zs(e, t, n, r, o, i) {
|
|
4822
4827
|
var a;
|
|
4823
4828
|
return y(), T("div", {
|
|
@@ -4826,9 +4831,9 @@ function Zs(e, t, n, r, o, i) {
|
|
|
4826
4831
|
style: {
|
|
4827
4832
|
outline: "none"
|
|
4828
4833
|
}
|
|
4829
|
-
}, null, 8,
|
|
4834
|
+
}, null, 8, _s);
|
|
4830
4835
|
}
|
|
4831
|
-
const Qs = /* @__PURE__ */ V(
|
|
4836
|
+
const Qs = /* @__PURE__ */ V(Ys, [["render", Zs]]), ea = {
|
|
4832
4837
|
name: "Custom Code",
|
|
4833
4838
|
static: !0,
|
|
4834
4839
|
requiredPermissions: ["editCode"],
|
|
@@ -5202,7 +5207,7 @@ const pa = /* @__PURE__ */ V(la, [["render", ca]]), da = {
|
|
|
5202
5207
|
return r === void 0 || r === e ? n : r;
|
|
5203
5208
|
}, ga = j({
|
|
5204
5209
|
name: "builder-form-component",
|
|
5205
|
-
components: { Block: Vn, Blocks:
|
|
5210
|
+
components: { Block: Vn, Blocks: Xe },
|
|
5206
5211
|
props: [
|
|
5207
5212
|
"builderContext",
|
|
5208
5213
|
"previewState",
|
|
@@ -5806,7 +5811,7 @@ const qa = /* @__PURE__ */ V(La, [["render", Ka]]), za = {
|
|
|
5806
5811
|
}
|
|
5807
5812
|
}), Ja = { style: {
|
|
5808
5813
|
position: "relative"
|
|
5809
|
-
} },
|
|
5814
|
+
} }, Xa = ["preload", "src", "poster"], Ya = ["src"], _a = {
|
|
5810
5815
|
key: 1,
|
|
5811
5816
|
style: {
|
|
5812
5817
|
display: "flex",
|
|
@@ -5854,8 +5859,8 @@ function Qa(e, t, n, r, o, i) {
|
|
|
5854
5859
|
key: 0,
|
|
5855
5860
|
type: "video/mp4",
|
|
5856
5861
|
src: e.video
|
|
5857
|
-
}, null, 8,
|
|
5858
|
-
], 16,
|
|
5862
|
+
}, null, 8, Ya))
|
|
5863
|
+
], 16, Xa),
|
|
5859
5864
|
e.aspectRatio && !(e.fitContent && ((p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length)) ? (y(), T("div", {
|
|
5860
5865
|
key: 0,
|
|
5861
5866
|
style: Oe({
|
|
@@ -5865,7 +5870,7 @@ function Qa(e, t, n, r, o, i) {
|
|
|
5865
5870
|
fontSize: "0px"
|
|
5866
5871
|
})
|
|
5867
5872
|
}, null, 4)) : M("", !0),
|
|
5868
|
-
(v = (m = e.builderBlock) == null ? void 0 : m.children) != null && v.length && e.fitContent ? (y(), T("div",
|
|
5873
|
+
(v = (m = e.builderBlock) == null ? void 0 : m.children) != null && v.length && e.fitContent ? (y(), T("div", _a, [
|
|
5869
5874
|
pe(e.$slots, "default")
|
|
5870
5875
|
])) : M("", !0),
|
|
5871
5876
|
(C = (h = e.builderBlock) == null ? void 0 : h.children) != null && C.length && !e.fitContent ? (y(), T("div", Za, [
|
|
@@ -5923,7 +5928,7 @@ const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
|
5923
5928
|
...Ls
|
|
5924
5929
|
}, {
|
|
5925
5930
|
component: Qs,
|
|
5926
|
-
...
|
|
5931
|
+
...Xs
|
|
5927
5932
|
}, {
|
|
5928
5933
|
component: Js,
|
|
5929
5934
|
...Hs
|
|
@@ -6057,11 +6062,12 @@ const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
|
6057
6062
|
render() {
|
|
6058
6063
|
return jr("script", {
|
|
6059
6064
|
innerHTML: this.scriptStr,
|
|
6060
|
-
"data-id": this.id
|
|
6065
|
+
"data-id": this.id,
|
|
6066
|
+
nonce: this.nonce
|
|
6061
6067
|
});
|
|
6062
6068
|
},
|
|
6063
6069
|
name: "inlined-script",
|
|
6064
|
-
props: ["scriptStr", "id"]
|
|
6070
|
+
props: ["scriptStr", "id", "nonce"]
|
|
6065
6071
|
});
|
|
6066
6072
|
function dl() {
|
|
6067
6073
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
@@ -6104,7 +6110,7 @@ const fl = "v3", Ir = "builder.", ml = "options.", co = (e) => {
|
|
|
6104
6110
|
}
|
|
6105
6111
|
}), n;
|
|
6106
6112
|
}, gl = () => {
|
|
6107
|
-
if (!
|
|
6113
|
+
if (!X())
|
|
6108
6114
|
return {};
|
|
6109
6115
|
const e = new URLSearchParams(window.location.search);
|
|
6110
6116
|
return co(e);
|
|
@@ -6130,8 +6136,8 @@ const fl = "v3", Ir = "builder.", ml = "options.", co = (e) => {
|
|
|
6130
6136
|
throw new Error("Missing API key");
|
|
6131
6137
|
if (!["v3"].includes(p))
|
|
6132
6138
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
6133
|
-
const
|
|
6134
|
-
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(
|
|
6139
|
+
const Y = t !== 1, N = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
6140
|
+
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(Y)), N.searchParams.set("includeRefs", String(!0)), u && N.searchParams.set("locale", u), a && N.searchParams.set("enrich", String(a)), N.searchParams.set("omit", v || "meta.componentsUsed"), m && N.searchParams.set("fields", m), Number.isFinite(h) && h > -1 && N.searchParams.set("offset", String(Math.floor(h))), typeof Q == "boolean" && N.searchParams.set("includeUnpublished", String(Q)), C && xr(C) && N.searchParams.set("cacheSeconds", String(C)), O && xr(O) && N.searchParams.set("staleCacheSeconds", String(O)), P) {
|
|
6135
6141
|
const re = kn({
|
|
6136
6142
|
sort: P
|
|
6137
6143
|
});
|
|
@@ -6165,7 +6171,7 @@ const vl = async (e) => {
|
|
|
6165
6171
|
return await (await (e.fetch ?? lo)(t.href, e.fetchOptions)).json();
|
|
6166
6172
|
}, bl = async (e, t, n = Dn(e)) => {
|
|
6167
6173
|
const r = vt(e.canTrack);
|
|
6168
|
-
if (n.search.includes("preview="), !r || !(
|
|
6174
|
+
if (n.search.includes("preview="), !r || !(X() || fe === "reactNative"))
|
|
6169
6175
|
return t.results;
|
|
6170
6176
|
try {
|
|
6171
6177
|
const o = [];
|
|
@@ -6193,7 +6199,7 @@ async function kl(e) {
|
|
|
6193
6199
|
}
|
|
6194
6200
|
}
|
|
6195
6201
|
function Sl(e) {
|
|
6196
|
-
const t = e || (
|
|
6202
|
+
const t = e || (X() ? window.location.search : void 0);
|
|
6197
6203
|
return t ? Vr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
6198
6204
|
}
|
|
6199
6205
|
function Cl() {
|
|
@@ -6230,7 +6236,7 @@ const ho = "builderSessionId", wl = async ({
|
|
|
6230
6236
|
name: ho,
|
|
6231
6237
|
value: e,
|
|
6232
6238
|
canTrack: t
|
|
6233
|
-
}), fo = () =>
|
|
6239
|
+
}), fo = () => X() && typeof localStorage < "u" ? localStorage : void 0, Il = ({
|
|
6234
6240
|
key: e,
|
|
6235
6241
|
canTrack: t
|
|
6236
6242
|
}) => {
|
|
@@ -6320,7 +6326,7 @@ async function Sn(e) {
|
|
|
6320
6326
|
se.error("Missing API key for track call. Please provide your API key.");
|
|
6321
6327
|
return;
|
|
6322
6328
|
}
|
|
6323
|
-
if (e.canTrack && !le() && (
|
|
6329
|
+
if (e.canTrack && !le() && (X() || fe === "reactNative"))
|
|
6324
6330
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
6325
6331
|
method: "POST",
|
|
6326
6332
|
body: JSON.stringify({
|
|
@@ -6387,10 +6393,10 @@ function go(e, t) {
|
|
|
6387
6393
|
const n = new URL(t.origin), r = n.hostname;
|
|
6388
6394
|
return (e || Vl).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
6389
6395
|
}
|
|
6390
|
-
const Ul = "2.0.
|
|
6396
|
+
const Ul = "2.0.2", $r = {};
|
|
6391
6397
|
function Fl(e, t) {
|
|
6392
6398
|
let n = $r[e];
|
|
6393
|
-
if (n || (n = $r[e] = []), n.push(t),
|
|
6399
|
+
if (n || (n = $r[e] = []), n.push(t), X()) {
|
|
6394
6400
|
const r = {
|
|
6395
6401
|
type: "builder.register",
|
|
6396
6402
|
data: {
|
|
@@ -6431,7 +6437,7 @@ const Dl = () => {
|
|
|
6431
6437
|
let Pr = !1;
|
|
6432
6438
|
const yo = (e = {}) => {
|
|
6433
6439
|
var t, n;
|
|
6434
|
-
Pr || (Pr = !0,
|
|
6440
|
+
Pr || (Pr = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
6435
6441
|
type: "builder.sdkInfo",
|
|
6436
6442
|
data: {
|
|
6437
6443
|
target: fe,
|
|
@@ -6517,7 +6523,7 @@ const yo = (e = {}) => {
|
|
|
6517
6523
|
}
|
|
6518
6524
|
}
|
|
6519
6525
|
}, bu = (e, t, n) => {
|
|
6520
|
-
if (!
|
|
6526
|
+
if (!X)
|
|
6521
6527
|
return se.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
6522
6528
|
};
|
|
6523
6529
|
yo();
|
|
@@ -6623,7 +6629,7 @@ font-weight: ${a};
|
|
|
6623
6629
|
mounted() {
|
|
6624
6630
|
(() => {
|
|
6625
6631
|
var n, r;
|
|
6626
|
-
if (
|
|
6632
|
+
if (X()) {
|
|
6627
6633
|
if (le() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6628
6634
|
new CustomEvent("initeditingbldr")
|
|
6629
6635
|
), this.builderContextSignal.content && vt(this.canTrack)) {
|
|
@@ -6687,7 +6693,7 @@ font-weight: ${a};
|
|
|
6687
6693
|
}
|
|
6688
6694
|
},
|
|
6689
6695
|
unmounted() {
|
|
6690
|
-
|
|
6696
|
+
X() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
6691
6697
|
"builder:component:stateChangeListenerActivated",
|
|
6692
6698
|
this.emitStateUpdate
|
|
6693
6699
|
));
|
|
@@ -6912,10 +6918,10 @@ function Gl(e, t, n, r, o, i) {
|
|
|
6912
6918
|
_: 3
|
|
6913
6919
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : M("", !0);
|
|
6914
6920
|
}
|
|
6915
|
-
const Jl = /* @__PURE__ */ V(zl, [["render", Gl]]),
|
|
6921
|
+
const Jl = /* @__PURE__ */ V(zl, [["render", Gl]]), Xl = j({
|
|
6916
6922
|
name: "content-styles",
|
|
6917
6923
|
components: { InlinedStyles: Un },
|
|
6918
|
-
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
6924
|
+
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
6919
6925
|
data() {
|
|
6920
6926
|
return {
|
|
6921
6927
|
injectedStyles: `
|
|
@@ -6931,14 +6937,15 @@ ${Kl(this.isNestedRender)}
|
|
|
6931
6937
|
};
|
|
6932
6938
|
}
|
|
6933
6939
|
});
|
|
6934
|
-
function
|
|
6940
|
+
function Yl(e, t, n, r, o, i) {
|
|
6935
6941
|
const a = U("InlinedStyles");
|
|
6936
6942
|
return y(), F(a, {
|
|
6937
6943
|
id: "builderio-content",
|
|
6938
|
-
styles: e.injectedStyles
|
|
6939
|
-
|
|
6944
|
+
styles: e.injectedStyles,
|
|
6945
|
+
nonce: e.nonce
|
|
6946
|
+
}, null, 8, ["styles", "nonce"]);
|
|
6940
6947
|
}
|
|
6941
|
-
const
|
|
6948
|
+
const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
6942
6949
|
content: e,
|
|
6943
6950
|
data: t,
|
|
6944
6951
|
locale: n
|
|
@@ -6970,13 +6977,14 @@ const Yl = /* @__PURE__ */ V(_l, [["render", Xl]]), Zl = ({
|
|
|
6970
6977
|
components: {
|
|
6971
6978
|
EnableEditor: Jl,
|
|
6972
6979
|
InlinedScript: ao,
|
|
6973
|
-
ContentStyles:
|
|
6974
|
-
Blocks:
|
|
6980
|
+
ContentStyles: _l,
|
|
6981
|
+
Blocks: Xe,
|
|
6975
6982
|
DynamicDiv: Ct
|
|
6976
6983
|
},
|
|
6977
6984
|
props: [
|
|
6978
6985
|
"content",
|
|
6979
6986
|
"customComponents",
|
|
6987
|
+
"model",
|
|
6980
6988
|
"data",
|
|
6981
6989
|
"locale",
|
|
6982
6990
|
"context",
|
|
@@ -6985,7 +6993,7 @@ const Yl = /* @__PURE__ */ V(_l, [["render", Xl]]), Zl = ({
|
|
|
6985
6993
|
"apiVersion",
|
|
6986
6994
|
"blocksWrapper",
|
|
6987
6995
|
"blocksWrapperProps",
|
|
6988
|
-
"
|
|
6996
|
+
"nonce",
|
|
6989
6997
|
"enrich",
|
|
6990
6998
|
"showContent",
|
|
6991
6999
|
"contentWrapper",
|
|
@@ -6996,7 +7004,7 @@ const Yl = /* @__PURE__ */ V(_l, [["render", Xl]]), Zl = ({
|
|
|
6996
7004
|
"linkComponent"
|
|
6997
7005
|
],
|
|
6998
7006
|
data() {
|
|
6999
|
-
var e, t;
|
|
7007
|
+
var e, t, n, r;
|
|
7000
7008
|
return {
|
|
7001
7009
|
scriptStr: pl({
|
|
7002
7010
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -7006,13 +7014,13 @@ const Yl = /* @__PURE__ */ V(_l, [["render", Xl]]), Zl = ({
|
|
|
7006
7014
|
}),
|
|
7007
7015
|
registeredComponents: [
|
|
7008
7016
|
...Er(),
|
|
7009
|
-
...this.customComponents || []
|
|
7017
|
+
...((n = this.customComponents) == null ? void 0 : n.filter(({ models: o }) => !(o != null && o.length) || !this.model ? !0 : o.includes(this.model))) || []
|
|
7010
7018
|
].reduce(
|
|
7011
|
-
(
|
|
7012
|
-
...
|
|
7013
|
-
[
|
|
7014
|
-
component: eu(
|
|
7015
|
-
...bn(
|
|
7019
|
+
(o, { component: i, ...a }) => ({
|
|
7020
|
+
...o,
|
|
7021
|
+
[a.name]: {
|
|
7022
|
+
component: eu(i),
|
|
7023
|
+
...bn(a)
|
|
7016
7024
|
}
|
|
7017
7025
|
}),
|
|
7018
7026
|
{}
|
|
@@ -7035,17 +7043,18 @@ const Yl = /* @__PURE__ */ V(_l, [["render", Xl]]), Zl = ({
|
|
|
7035
7043
|
apiVersion: this.apiVersion,
|
|
7036
7044
|
componentInfos: [
|
|
7037
7045
|
...Er(),
|
|
7038
|
-
...this.customComponents || []
|
|
7046
|
+
...((r = this.customComponents) == null ? void 0 : r.filter(({ models: o }) => !(o != null && o.length) || !this.model ? !0 : o.includes(this.model))) || []
|
|
7039
7047
|
].reduce(
|
|
7040
|
-
(
|
|
7041
|
-
...
|
|
7042
|
-
[
|
|
7048
|
+
(o, { component: i, ...a }) => ({
|
|
7049
|
+
...o,
|
|
7050
|
+
[a.name]: bn(a)
|
|
7043
7051
|
}),
|
|
7044
7052
|
{}
|
|
7045
7053
|
),
|
|
7046
7054
|
inheritedStyles: {},
|
|
7047
7055
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
7048
|
-
BlocksWrapperProps: this.blocksWrapperProps || {}
|
|
7056
|
+
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
7057
|
+
nonce: this.nonce || ""
|
|
7049
7058
|
},
|
|
7050
7059
|
TARGET: fe
|
|
7051
7060
|
};
|
|
@@ -7067,6 +7076,7 @@ const Yl = /* @__PURE__ */ V(_l, [["render", Xl]]), Zl = ({
|
|
|
7067
7076
|
function nu(e, t, n, r, o, i) {
|
|
7068
7077
|
const a = U("InlinedScript"), u = U("ContentStyles"), p = U("Blocks"), m = U("EnableEditor");
|
|
7069
7078
|
return y(), F(m, z({
|
|
7079
|
+
nonce: e.nonce,
|
|
7070
7080
|
content: e.content,
|
|
7071
7081
|
data: e.data,
|
|
7072
7082
|
model: e.model,
|
|
@@ -7082,22 +7092,24 @@ function nu(e, t, n, r, o, i) {
|
|
|
7082
7092
|
trustedHosts: e.trustedHosts
|
|
7083
7093
|
}, {}), {
|
|
7084
7094
|
default: Te(() => {
|
|
7085
|
-
var v, h, C, O, P, Q,
|
|
7095
|
+
var v, h, C, O, P, Q, Y;
|
|
7086
7096
|
return [
|
|
7087
7097
|
e.isSsrAbTest ? (y(), F(a, {
|
|
7088
7098
|
key: 0,
|
|
7089
7099
|
id: "builderio-variant-visibility",
|
|
7090
|
-
scriptStr: e.scriptStr
|
|
7091
|
-
|
|
7100
|
+
scriptStr: e.scriptStr,
|
|
7101
|
+
nonce: e.nonce || ""
|
|
7102
|
+
}, null, 8, ["scriptStr", "nonce"])) : M("", !0),
|
|
7092
7103
|
e.TARGET !== "reactNative" ? (y(), F(u, {
|
|
7093
7104
|
key: 1,
|
|
7105
|
+
nonce: e.nonce || "",
|
|
7094
7106
|
isNestedRender: e.isNestedRender,
|
|
7095
7107
|
contentId: (v = e.builderContextSignal.content) == null ? void 0 : v.id,
|
|
7096
7108
|
cssCode: (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.cssCode,
|
|
7097
7109
|
customFonts: (P = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : P.customFonts
|
|
7098
|
-
}, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : M("", !0),
|
|
7110
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : M("", !0),
|
|
7099
7111
|
ie(p, {
|
|
7100
|
-
blocks: (
|
|
7112
|
+
blocks: (Y = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : Y.blocks,
|
|
7101
7113
|
context: e.builderContextSignal,
|
|
7102
7114
|
registeredComponents: e.registeredComponents,
|
|
7103
7115
|
linkComponent: e.linkComponent
|
|
@@ -7105,7 +7117,7 @@ function nu(e, t, n, r, o, i) {
|
|
|
7105
7117
|
];
|
|
7106
7118
|
}),
|
|
7107
7119
|
_: 1
|
|
7108
|
-
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
7120
|
+
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
7109
7121
|
}
|
|
7110
7122
|
const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
|
|
7111
7123
|
name: "content-variants",
|
|
@@ -7118,6 +7130,7 @@ const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
|
|
|
7118
7130
|
"canTrack",
|
|
7119
7131
|
"content",
|
|
7120
7132
|
"isNestedRender",
|
|
7133
|
+
"nonce",
|
|
7121
7134
|
"model",
|
|
7122
7135
|
"data",
|
|
7123
7136
|
"context",
|
|
@@ -7146,8 +7159,6 @@ const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
|
|
|
7146
7159
|
},
|
|
7147
7160
|
mounted() {
|
|
7148
7161
|
},
|
|
7149
|
-
updated() {
|
|
7150
|
-
},
|
|
7151
7162
|
computed: {
|
|
7152
7163
|
updateCookieAndStylesScriptStr() {
|
|
7153
7164
|
var e;
|
|
@@ -7180,20 +7191,24 @@ function iu(e, t, n, r, o, i) {
|
|
|
7180
7191
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(), F(a, {
|
|
7181
7192
|
key: 0,
|
|
7182
7193
|
id: "builderio-init-variants-fns",
|
|
7183
|
-
scriptStr: e.getInitVariantsFnsScriptString()
|
|
7184
|
-
|
|
7194
|
+
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
7195
|
+
nonce: e.nonce || ""
|
|
7196
|
+
}, null, 8, ["scriptStr", "nonce"])) : M("", !0),
|
|
7185
7197
|
e.shouldRenderVariants ? (y(), T(Z, { key: 1 }, [
|
|
7186
7198
|
ie(u, {
|
|
7187
7199
|
id: "builderio-variants",
|
|
7188
|
-
styles: e.hideVariantsStyleString
|
|
7189
|
-
|
|
7200
|
+
styles: e.hideVariantsStyleString,
|
|
7201
|
+
nonce: e.nonce || ""
|
|
7202
|
+
}, null, 8, ["styles", "nonce"]),
|
|
7190
7203
|
ie(a, {
|
|
7191
7204
|
id: "builderio-variants-visibility",
|
|
7192
|
-
scriptStr: e.updateCookieAndStylesScriptStr
|
|
7193
|
-
|
|
7205
|
+
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
7206
|
+
nonce: e.nonce || ""
|
|
7207
|
+
}, null, 8, ["scriptStr", "nonce"]),
|
|
7194
7208
|
(y(!0), T(Z, null, Ee(e.getVariants(e.content), (m, v) => (y(), F(p, {
|
|
7195
7209
|
key: m.testVariationId,
|
|
7196
7210
|
isNestedRender: e.isNestedRender,
|
|
7211
|
+
nonce: e.nonce,
|
|
7197
7212
|
content: m,
|
|
7198
7213
|
showContent: !1,
|
|
7199
7214
|
model: e.model,
|
|
@@ -7212,9 +7227,10 @@ function iu(e, t, n, r, o, i) {
|
|
|
7212
7227
|
contentWrapper: e.contentWrapper,
|
|
7213
7228
|
contentWrapperProps: e.contentWrapperProps,
|
|
7214
7229
|
trustedHosts: e.trustedHosts
|
|
7215
|
-
}, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
7230
|
+
}, null, 8, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
7216
7231
|
], 64)) : M("", !0),
|
|
7217
7232
|
ie(p, z({
|
|
7233
|
+
nonce: e.nonce,
|
|
7218
7234
|
isNestedRender: e.isNestedRender,
|
|
7219
7235
|
content: e.defaultContent,
|
|
7220
7236
|
showContent: !0,
|
|
@@ -7236,7 +7252,7 @@ function iu(e, t, n, r, o, i) {
|
|
|
7236
7252
|
trustedHosts: e.trustedHosts
|
|
7237
7253
|
}, {
|
|
7238
7254
|
key: e.shouldRenderVariants.toString()
|
|
7239
|
-
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7255
|
+
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7240
7256
|
], 64);
|
|
7241
7257
|
}
|
|
7242
7258
|
const su = /* @__PURE__ */ V(ou, [["render", iu]]), au = async ({
|
|
@@ -7322,6 +7338,7 @@ function uu(e, t, n, r, o, i) {
|
|
|
7322
7338
|
const a = U("ContentVariants");
|
|
7323
7339
|
return y(), T("div", z({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
7324
7340
|
ie(a, {
|
|
7341
|
+
nonce: e.builderContext.nonce,
|
|
7325
7342
|
isNestedRender: !0,
|
|
7326
7343
|
apiVersion: e.builderContext.apiVersion,
|
|
7327
7344
|
apiKey: e.builderContext.apiKey,
|
|
@@ -7341,12 +7358,12 @@ function uu(e, t, n, r, o, i) {
|
|
|
7341
7358
|
linkComponent: e.builderLinkComponent,
|
|
7342
7359
|
blocksWrapper: e.blocksWrapper,
|
|
7343
7360
|
contentWrapper: e.contentWrapper
|
|
7344
|
-
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7361
|
+
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7345
7362
|
], 16);
|
|
7346
7363
|
}
|
|
7347
7364
|
const cu = /* @__PURE__ */ V(lu, [["render", uu]]), Or = {};
|
|
7348
7365
|
function ku(e) {
|
|
7349
|
-
if (
|
|
7366
|
+
if (X()) {
|
|
7350
7367
|
Object.assign(Or, e);
|
|
7351
7368
|
const t = {
|
|
7352
7369
|
type: "builder.settingsChange",
|
|
@@ -7389,7 +7406,7 @@ export {
|
|
|
7389
7406
|
fe as T,
|
|
7390
7407
|
el as V,
|
|
7391
7408
|
Un as _,
|
|
7392
|
-
|
|
7409
|
+
_i as a,
|
|
7393
7410
|
fu as b,
|
|
7394
7411
|
Be as c,
|
|
7395
7412
|
yu as d,
|
|
@@ -7403,7 +7420,7 @@ export {
|
|
|
7403
7420
|
qo as l,
|
|
7404
7421
|
cu as m,
|
|
7405
7422
|
Qs as n,
|
|
7406
|
-
|
|
7423
|
+
Xe as o,
|
|
7407
7424
|
su as p,
|
|
7408
7425
|
le as q,
|
|
7409
7426
|
Sl as r,
|