@builder.io/sdk-vue 0.1.15 → 0.1.16
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/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.64f7ab0b.cjs → block-styles.083832a5.cjs} +1 -1
- package/packages/_vue2/dist/{block-styles.63856bc4.js → block-styles.c935448f.js} +3 -3
- package/packages/_vue2/dist/{css.ae8c605c.cjs → css.125be5c3.cjs} +1 -1
- package/packages/_vue2/dist/{css.58be3b1a.js → css.67faf460.js} +1 -1
- package/packages/_vue2/dist/{index.2ec605d6.js → index.15db69ec.js} +90 -62
- package/packages/_vue2/dist/{index.d36a8d30.cjs → index.5d490ae1.cjs} +4 -4
- package/packages/_vue2/dist/{render-block.9c575fe4.js → render-block.68937b99.js} +8 -7
- package/packages/_vue2/dist/{render-block.27d74903.cjs → render-block.ff5b481d.cjs} +2 -2
- package/packages/_vue2/dist/{render-component.f02e22b8.js → render-component.4c69d70d.js} +3 -3
- package/packages/_vue2/dist/{render-component.eb68da75.cjs → render-component.dfd75a2e.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.6d7b4bcd.cjs → render-inlined-styles.0013a71a.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.aae44017.js → render-inlined-styles.d5d4ae0d.js} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.50a69f24.cjs → render-repeated-block.bf521eab.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.15c3e138.js → render-repeated-block.e5408f18.js} +2 -2
- package/packages/_vue2/dist/{render-styles.168164da.js → render-styles.107ba326.js} +2 -2
- package/packages/_vue2/dist/{render-styles.ae738d07.cjs → render-styles.1fad2590.cjs} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +13 -11
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +9 -9
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +10 -9
- package/packages/_vue2/dist/src/context/types.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +5 -5
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.d483335e.cjs → block-styles.2a45708e.cjs} +1 -1
- package/packages/_vue3/dist/{block-styles.6a927af3.js → block-styles.a6b0fdfd.js} +3 -3
- package/packages/_vue3/dist/{css.0e8cdb1f.cjs → css.23dfb27d.cjs} +1 -1
- package/packages/_vue3/dist/{css.33422e4d.js → css.d614b61b.js} +1 -1
- package/packages/_vue3/dist/index.60a69463.cjs +29 -0
- package/packages/_vue3/dist/{index.0f89dc70.js → index.8e00fba7.js} +97 -69
- package/packages/_vue3/dist/render-block.5d56e77f.cjs +3 -0
- package/packages/_vue3/dist/{render-block.b58d92f6.js → render-block.96a49d1c.js} +68 -46
- package/packages/_vue3/dist/render-component.17648f34.cjs +1 -0
- package/packages/_vue3/dist/render-component.b2532a6b.js +26 -0
- package/packages/_vue3/dist/{render-inlined-styles.4a3bac4e.js → render-inlined-styles.4cf0869f.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.d509e95b.cjs → render-inlined-styles.553ae14b.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.56e41ffd.js → render-repeated-block.37707927.js} +4 -4
- package/packages/_vue3/dist/render-repeated-block.57e71440.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.a82e2999.js → render-styles.17630af3.js} +2 -2
- package/packages/_vue3/dist/{render-styles.ca6a6289.cjs → render-styles.ecbf096b.cjs} +5 -5
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +13 -11
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +18 -9
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +10 -9
- package/packages/_vue3/dist/src/context/types.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +5 -5
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue3/dist/index.461c31d1.cjs +0 -29
- package/packages/_vue3/dist/render-block.25c9ee7e.cjs +0 -3
- package/packages/_vue3/dist/render-component.34e84d86.js +0 -42
- package/packages/_vue3/dist/render-component.741e326a.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.ea827f2f.cjs +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.5d490ae1.cjs"),o=require("./css.125be5c3.cjs"),h=()=>Promise.resolve().then(()=>require("./render-inlined-styles.0013a71a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",e),e}),y={name:"block-styles",components:{RenderInlinedStyles:h},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{useBlock(){return o.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return t.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:t.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var a;const e=this.useBlock.responsiveStyles,s=this.context.content,n=t.getSizesForBreakpoints(((a=s==null?void 0:s.meta)==null?void 0:a.breakpoints)||{}),l=e==null?void 0:e.large,r=e==null?void 0:e.medium,i=e==null?void 0:e.small,c=this.useBlock.id,d=l?o.createCssClass({className:c,styles:l}):"",u=r?o.createCssClass({className:c,styles:r,mediaQuery:t.getMaxWidthQueryForSize("medium",n)}):"",m=i?o.createCssClass({className:c,styles:i,mediaQuery:t.getMaxWidthQueryForSize("small",n)}):"";return[d,u,m].join(" ")}}};var k=function(){var s=this,n=s._self._c;return s.TARGET!=="reactNative"&&s.css&&s.canShowBlock?n("render-inlined-styles",{attrs:{styles:s.css}}):s._e()},S=[],p=t.normalizeComponent(y,k,S,!1,null,null,null,null);const _=p.exports;exports.default=_;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as k, c as i, g as p, a as u, n as y } from "./index.
|
|
2
|
-
import { g as _, c as o } from "./css.
|
|
3
|
-
const S = () => import("./render-inlined-styles.
|
|
1
|
+
import { T as k, c as i, g as p, a as u, n as y } from "./index.15db69ec.js";
|
|
2
|
+
import { g as _, c as o } from "./css.67faf460.js";
|
|
3
|
+
const S = () => import("./render-inlined-styles.d5d4ae0d.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
|
|
6
6
|
e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("./index.
|
|
1
|
+
"use strict";const i=require("./index.5d490ae1.cjs"),l=(e,t,r)=>{if(Object(e)!==e)return e;const s=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return s.slice(0,-1).reduce((n,o,c)=>Object(n[o])===n[o]?n[o]:n[o]=Math.abs(Number(s[c+1]))>>0===+s[c+1]?[]:{},e)[s[s.length-1]]=r,e};const d=({block:e,context:t,state:r})=>{if(!e.bindings)return e;const s=i.fastClone(e),n={...s,properties:{...s.properties},actions:{...s.actions}};for(const o in e.bindings){const c=e.bindings[o],u=i.evaluate({code:c,state:r,context:t});l(n,o,u)}return n};function f({block:e,context:t,shouldEvaluateBindings:r,state:s}){const n=e;return r?d({block:n,state:s,context:t}):n}const p=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),a=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${p(r)}: ${s};`}).filter(i.checkIsDefined),g=e=>a(e).join(`
|
|
2
2
|
`),C=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
3
|
${g(r)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -14,6 +14,15 @@ const G = {
|
|
|
14
14
|
}),
|
|
15
15
|
{}
|
|
16
16
|
);
|
|
17
|
+
},
|
|
18
|
+
_classStringToObject(t) {
|
|
19
|
+
const e = {};
|
|
20
|
+
if (typeof t != "string")
|
|
21
|
+
return e;
|
|
22
|
+
const n = t.trim().split(/\s+/);
|
|
23
|
+
for (const o of n)
|
|
24
|
+
e[o] = !0;
|
|
25
|
+
return e;
|
|
17
26
|
}
|
|
18
27
|
}
|
|
19
28
|
};
|
|
@@ -46,14 +55,16 @@ function h(t, e, n, o, s, r, i, l) {
|
|
|
46
55
|
}
|
|
47
56
|
var J = function() {
|
|
48
57
|
var e = this, n = e._self._c;
|
|
49
|
-
return e.link ? n("a", e._g(e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._g(e._b({
|
|
58
|
+
return e.link ? n("a", e._g(e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._g(e._b({ class: e._classStringToObject(
|
|
59
|
+
e.attributes.class + " button-2fnk003dqad"
|
|
60
|
+
) }, "button", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]);
|
|
50
61
|
}, X = [], Y = /* @__PURE__ */ h(
|
|
51
62
|
G,
|
|
52
63
|
J,
|
|
53
64
|
X,
|
|
54
65
|
!1,
|
|
55
66
|
null,
|
|
56
|
-
"
|
|
67
|
+
"65a02987",
|
|
57
68
|
null,
|
|
58
69
|
null
|
|
59
70
|
);
|
|
@@ -113,7 +124,7 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
113
124
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
114
125
|
t
|
|
115
126
|
), t;
|
|
116
|
-
}), ne = () => import("./render-inlined-styles.
|
|
127
|
+
}), ne = () => import("./render-inlined-styles.d5d4ae0d.js").then((t) => t.default).catch((t) => {
|
|
117
128
|
throw console.error(
|
|
118
129
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
119
130
|
t
|
|
@@ -190,10 +201,16 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
190
201
|
const e = this.gutterSize * (this.cols.length - 1) / this.cols.length;
|
|
191
202
|
return `calc(${this.getWidth(t)}% - ${e}px)`;
|
|
192
203
|
},
|
|
193
|
-
getTabletStyle({
|
|
204
|
+
getTabletStyle({
|
|
205
|
+
stackedStyle: t,
|
|
206
|
+
desktopStyle: e
|
|
207
|
+
}) {
|
|
194
208
|
return this.stackAt === "tablet" ? t : e;
|
|
195
209
|
},
|
|
196
|
-
getMobileStyle({
|
|
210
|
+
getMobileStyle({
|
|
211
|
+
stackedStyle: t,
|
|
212
|
+
desktopStyle: e
|
|
213
|
+
}) {
|
|
197
214
|
return this.stackAt === "never" ? e : t;
|
|
198
215
|
},
|
|
199
216
|
columnCssVars(t) {
|
|
@@ -256,7 +273,7 @@ var se = function() {
|
|
|
256
273
|
re,
|
|
257
274
|
!1,
|
|
258
275
|
null,
|
|
259
|
-
"
|
|
276
|
+
"2bb878ea",
|
|
260
277
|
null,
|
|
261
278
|
null
|
|
262
279
|
);
|
|
@@ -384,7 +401,7 @@ var ge = function() {
|
|
|
384
401
|
be,
|
|
385
402
|
!1,
|
|
386
403
|
null,
|
|
387
|
-
"
|
|
404
|
+
"b5206874",
|
|
388
405
|
null,
|
|
389
406
|
null
|
|
390
407
|
);
|
|
@@ -398,12 +415,12 @@ function _e() {
|
|
|
398
415
|
function g() {
|
|
399
416
|
return _e() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
400
417
|
}
|
|
401
|
-
const xe = () => import("./block-styles.
|
|
418
|
+
const xe = () => import("./block-styles.c935448f.js").then((t) => t.default).catch((t) => {
|
|
402
419
|
throw console.error(
|
|
403
420
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
404
421
|
t
|
|
405
422
|
), t;
|
|
406
|
-
}), ke = () => import("./render-block.
|
|
423
|
+
}), ke = () => import("./render-block.68937b99.js").then((t) => t.default).catch((t) => {
|
|
407
424
|
throw console.error(
|
|
408
425
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
409
426
|
t
|
|
@@ -478,14 +495,14 @@ var Ce = function() {
|
|
|
478
495
|
we,
|
|
479
496
|
!1,
|
|
480
497
|
null,
|
|
481
|
-
"
|
|
498
|
+
"57df98d3",
|
|
482
499
|
null,
|
|
483
500
|
null
|
|
484
501
|
);
|
|
485
|
-
const
|
|
502
|
+
const Te = Re.exports, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
486
503
|
__proto__: null,
|
|
487
|
-
default:
|
|
488
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
504
|
+
default: Te
|
|
505
|
+
}, Symbol.toStringTag, { value: "Module" })), Ie = {
|
|
489
506
|
name: "Core:Button",
|
|
490
507
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
491
508
|
defaultStyles: {
|
|
@@ -1019,7 +1036,7 @@ function Me() {
|
|
|
1019
1036
|
), new Error("Builder SDK could not find a global `fetch` function");
|
|
1020
1037
|
return t;
|
|
1021
1038
|
}
|
|
1022
|
-
const B = Me(), b = (t) => t != null,
|
|
1039
|
+
const B = Me(), b = (t) => t != null, Ne = (t) => {
|
|
1023
1040
|
if (t === "localhost" || t === "127.0.0.1")
|
|
1024
1041
|
return t;
|
|
1025
1042
|
const e = t.split(".");
|
|
@@ -1035,7 +1052,7 @@ const B = Me(), b = (t) => t != null, Le = (t) => {
|
|
|
1035
1052
|
console.debug("[COOKIE] GET error: ", o);
|
|
1036
1053
|
return;
|
|
1037
1054
|
}
|
|
1038
|
-
},
|
|
1055
|
+
}, Le = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).filter(b).join("; "), ze = [
|
|
1039
1056
|
["secure", ""],
|
|
1040
1057
|
["SameSite", "None"]
|
|
1041
1058
|
], Ke = ({
|
|
@@ -1047,10 +1064,10 @@ const B = Me(), b = (t) => t != null, Le = (t) => {
|
|
|
1047
1064
|
[t, e],
|
|
1048
1065
|
...r,
|
|
1049
1066
|
["path", "/"],
|
|
1050
|
-
["domain",
|
|
1067
|
+
["domain", Ne(window.location.hostname)],
|
|
1051
1068
|
...s
|
|
1052
1069
|
];
|
|
1053
|
-
return
|
|
1070
|
+
return Le(i);
|
|
1054
1071
|
}, W = async ({
|
|
1055
1072
|
name: t,
|
|
1056
1073
|
value: e,
|
|
@@ -1085,7 +1102,7 @@ const B = Me(), b = (t) => t != null, Le = (t) => {
|
|
|
1085
1102
|
return r;
|
|
1086
1103
|
}
|
|
1087
1104
|
return t;
|
|
1088
|
-
},
|
|
1105
|
+
}, T = ({
|
|
1089
1106
|
item: t,
|
|
1090
1107
|
testGroupId: e
|
|
1091
1108
|
}) => {
|
|
@@ -1105,7 +1122,7 @@ const B = Me(), b = (t) => t != null, Le = (t) => {
|
|
|
1105
1122
|
const n = await De({
|
|
1106
1123
|
canTrack: e,
|
|
1107
1124
|
contentId: t.id
|
|
1108
|
-
}), o = n ?
|
|
1125
|
+
}), o = n ? T({ item: t, testGroupId: n }) : void 0;
|
|
1109
1126
|
if (o)
|
|
1110
1127
|
return o;
|
|
1111
1128
|
{
|
|
@@ -1119,7 +1136,7 @@ const B = Me(), b = (t) => t != null, Le = (t) => {
|
|
|
1119
1136
|
canTrack: e
|
|
1120
1137
|
}).catch((r) => {
|
|
1121
1138
|
console.error("could not store A/B test variation: ", r);
|
|
1122
|
-
}),
|
|
1139
|
+
}), T({ item: t, testGroupId: s });
|
|
1123
1140
|
}
|
|
1124
1141
|
}, Ye = async ({
|
|
1125
1142
|
item: t,
|
|
@@ -1140,7 +1157,7 @@ function S(t, e = null, n = ".") {
|
|
|
1140
1157
|
].every(Boolean) ? { ...o, ...S(r, i, n) } : { ...o, [i]: r };
|
|
1141
1158
|
}, {});
|
|
1142
1159
|
}
|
|
1143
|
-
const
|
|
1160
|
+
const I = "builder.", Qe = "options.", Ze = (t) => {
|
|
1144
1161
|
const e = {};
|
|
1145
1162
|
return t.forEach((n, o) => {
|
|
1146
1163
|
e[o] = n;
|
|
@@ -1148,10 +1165,10 @@ const T = "builder.", Qe = "options.", Ze = (t) => {
|
|
|
1148
1165
|
}, et = (t) => {
|
|
1149
1166
|
if (!t)
|
|
1150
1167
|
return {};
|
|
1151
|
-
const e =
|
|
1168
|
+
const e = N(t), n = {};
|
|
1152
1169
|
return Object.keys(e).forEach((o) => {
|
|
1153
|
-
if (o.startsWith(
|
|
1154
|
-
const s = o.replace(
|
|
1170
|
+
if (o.startsWith(I)) {
|
|
1171
|
+
const s = o.replace(I, "").replace(Qe, "");
|
|
1155
1172
|
n[s] = e[o];
|
|
1156
1173
|
}
|
|
1157
1174
|
}), n;
|
|
@@ -1160,7 +1177,7 @@ const T = "builder.", Qe = "options.", Ze = (t) => {
|
|
|
1160
1177
|
return {};
|
|
1161
1178
|
const t = new URLSearchParams(window.location.search);
|
|
1162
1179
|
return et(t);
|
|
1163
|
-
},
|
|
1180
|
+
}, N = (t) => t instanceof URLSearchParams ? Ze(t) : t, nt = (t) => {
|
|
1164
1181
|
const {
|
|
1165
1182
|
limit: e = 30,
|
|
1166
1183
|
userAttributes: n,
|
|
@@ -1182,7 +1199,7 @@ const T = "builder.", Qe = "options.", Ze = (t) => {
|
|
|
1182
1199
|
`https://cdn.builder.io/api/${c}/content/${r}?apiKey=${i}&limit=${e}&noTraverse=${s}&includeRefs=${l}${a ? `&locale=${a}` : ""}`
|
|
1183
1200
|
), m = {
|
|
1184
1201
|
...tt(),
|
|
1185
|
-
...
|
|
1202
|
+
...N(t.options || {})
|
|
1186
1203
|
}, u = S(m);
|
|
1187
1204
|
for (const f in u)
|
|
1188
1205
|
d.searchParams.set(f, String(u[f]));
|
|
@@ -1193,14 +1210,22 @@ const T = "builder.", Qe = "options.", Ze = (t) => {
|
|
|
1193
1210
|
}
|
|
1194
1211
|
return d;
|
|
1195
1212
|
};
|
|
1196
|
-
async function
|
|
1197
|
-
|
|
1213
|
+
async function L(t) {
|
|
1214
|
+
const e = await ot({ ...t, limit: 1 });
|
|
1215
|
+
return "results" in e && (e == null ? void 0 : e.results[0]) || null;
|
|
1198
1216
|
}
|
|
1199
1217
|
async function ot(t) {
|
|
1200
|
-
const e = nt(t), o = await (await B(e.href)).json()
|
|
1201
|
-
if (
|
|
1202
|
-
|
|
1203
|
-
|
|
1218
|
+
const e = nt(t), o = await (await B(e.href)).json();
|
|
1219
|
+
if ("status" in o && !("results" in o))
|
|
1220
|
+
return console.error("[Builder.io]: Error fetching data. ", o, t), o;
|
|
1221
|
+
const s = t.canTrack !== !1;
|
|
1222
|
+
try {
|
|
1223
|
+
if (s && Array.isArray(o.results))
|
|
1224
|
+
for (const r of o.results)
|
|
1225
|
+
await Ye({ item: r, canTrack: s });
|
|
1226
|
+
} catch (r) {
|
|
1227
|
+
console.error("[Builder.io]: Could not setup A/B testing. ", r);
|
|
1228
|
+
}
|
|
1204
1229
|
return o;
|
|
1205
1230
|
}
|
|
1206
1231
|
const st = () => Promise.resolve().then(() => Sn).then((t) => t.default).catch((t) => {
|
|
@@ -1248,7 +1273,7 @@ const st = () => Promise.resolve().then(() => Sn).then((t) => t.default).catch((
|
|
|
1248
1273
|
methods: {
|
|
1249
1274
|
fetchContent() {
|
|
1250
1275
|
var t, e;
|
|
1251
|
-
!this.contentToUse && ((t = this.symbol) == null ? void 0 : t.model) && ((e = this.builderContext) == null ? void 0 : e.apiKey) &&
|
|
1276
|
+
!this.contentToUse && ((t = this.symbol) == null ? void 0 : t.model) && ((e = this.builderContext) == null ? void 0 : e.apiKey) && L({
|
|
1252
1277
|
model: this.symbol.model,
|
|
1253
1278
|
apiKey: this.builderContext.apiKey,
|
|
1254
1279
|
apiVersion: this.builderContext.apiVersion,
|
|
@@ -1595,17 +1620,17 @@ const xt = _t.exports, kt = {
|
|
|
1595
1620
|
var Rt = function() {
|
|
1596
1621
|
var e = this, n = e._self._c;
|
|
1597
1622
|
return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
1598
|
-
},
|
|
1623
|
+
}, Tt = [], It = /* @__PURE__ */ h(
|
|
1599
1624
|
wt,
|
|
1600
1625
|
Rt,
|
|
1601
|
-
|
|
1626
|
+
Tt,
|
|
1602
1627
|
!1,
|
|
1603
1628
|
null,
|
|
1604
1629
|
null,
|
|
1605
1630
|
null,
|
|
1606
1631
|
null
|
|
1607
1632
|
);
|
|
1608
|
-
const $t =
|
|
1633
|
+
const $t = It.exports, Et = {
|
|
1609
1634
|
name: "builder-img-component",
|
|
1610
1635
|
props: [
|
|
1611
1636
|
"backgroundSize",
|
|
@@ -1728,7 +1753,7 @@ var Bt = function() {
|
|
|
1728
1753
|
null,
|
|
1729
1754
|
null
|
|
1730
1755
|
);
|
|
1731
|
-
const Mt = Wt.exports,
|
|
1756
|
+
const Mt = Wt.exports, Nt = {
|
|
1732
1757
|
name: "Custom Code",
|
|
1733
1758
|
static: !0,
|
|
1734
1759
|
requiredPermissions: ["editCode"],
|
|
@@ -1754,10 +1779,10 @@ const Mt = Wt.exports, Lt = {
|
|
|
1754
1779
|
advanced: !0
|
|
1755
1780
|
}
|
|
1756
1781
|
]
|
|
1757
|
-
},
|
|
1758
|
-
{ component: Q, ...
|
|
1782
|
+
}, Lt = () => [
|
|
1783
|
+
{ component: Q, ...Ie },
|
|
1759
1784
|
{ component: ae, ...$e },
|
|
1760
|
-
{ component: Mt, ...
|
|
1785
|
+
{ component: Mt, ...Nt },
|
|
1761
1786
|
{ component: $t, ...kt },
|
|
1762
1787
|
{ component: pe, ...Ee },
|
|
1763
1788
|
{ component: ve, ...Ae },
|
|
@@ -2148,7 +2173,7 @@ const un = (t, e, n = !0) => {
|
|
|
2148
2173
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
2149
2174
|
t
|
|
2150
2175
|
), t;
|
|
2151
|
-
}), bn = () => import("./render-styles.
|
|
2176
|
+
}), bn = () => import("./render-styles.107ba326.js").then((t) => t.default).catch((t) => {
|
|
2152
2177
|
throw console.error(
|
|
2153
2178
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
2154
2179
|
t
|
|
@@ -2187,7 +2212,7 @@ const un = (t, e, n = !0) => {
|
|
|
2187
2212
|
locale: this.locale
|
|
2188
2213
|
}),
|
|
2189
2214
|
allRegisteredComponents: [
|
|
2190
|
-
...
|
|
2215
|
+
...Lt(),
|
|
2191
2216
|
...z,
|
|
2192
2217
|
...this.customComponents || []
|
|
2193
2218
|
].reduce(
|
|
@@ -2228,13 +2253,13 @@ const un = (t, e, n = !0) => {
|
|
|
2228
2253
|
...this.includeRefs ? {
|
|
2229
2254
|
includeRefs: this.includeRefs
|
|
2230
2255
|
} : {}
|
|
2231
|
-
}), Object.values(
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
2256
|
+
}), Object.values(
|
|
2257
|
+
this.allRegisteredComponents
|
|
2258
|
+
).forEach((n) => {
|
|
2259
|
+
var s;
|
|
2260
|
+
const o = Kt(n);
|
|
2261
|
+
(s = window.parent) == null || s.postMessage(o, "*");
|
|
2262
|
+
}), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
2238
2263
|
"builder:component:stateChangeListenerActivated",
|
|
2239
2264
|
this.emitStateUpdate
|
|
2240
2265
|
)), this.useContent) {
|
|
@@ -2249,7 +2274,7 @@ const un = (t, e, n = !0) => {
|
|
|
2249
2274
|
}
|
|
2250
2275
|
if (zt()) {
|
|
2251
2276
|
const n = new URL(location.href).searchParams, o = n.get("builder.preview"), s = n.get("apiKey") || n.get("builder.space");
|
|
2252
|
-
o === this.model && s === this.apiKey &&
|
|
2277
|
+
o === this.model && s === this.apiKey && L({
|
|
2253
2278
|
model: this.model,
|
|
2254
2279
|
apiKey: this.apiKey,
|
|
2255
2280
|
apiVersion: this.apiVersion
|
|
@@ -2409,7 +2434,7 @@ const un = (t, e, n = !0) => {
|
|
|
2409
2434
|
};
|
|
2410
2435
|
this.setContextState(o);
|
|
2411
2436
|
}).catch((n) => {
|
|
2412
|
-
console.
|
|
2437
|
+
console.error("error fetching dynamic data", t, n);
|
|
2413
2438
|
});
|
|
2414
2439
|
},
|
|
2415
2440
|
runHttpRequests() {
|
|
@@ -2427,14 +2452,17 @@ const un = (t, e, n = !0) => {
|
|
|
2427
2452
|
},
|
|
2428
2453
|
emitStateUpdate() {
|
|
2429
2454
|
g() && window.dispatchEvent(
|
|
2430
|
-
new CustomEvent(
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2455
|
+
new CustomEvent(
|
|
2456
|
+
"builder:component:stateChange",
|
|
2457
|
+
{
|
|
2458
|
+
detail: {
|
|
2459
|
+
state: this.contentState,
|
|
2460
|
+
ref: {
|
|
2461
|
+
name: this.model
|
|
2462
|
+
}
|
|
2435
2463
|
}
|
|
2436
2464
|
}
|
|
2437
|
-
|
|
2465
|
+
)
|
|
2438
2466
|
);
|
|
2439
2467
|
}
|
|
2440
2468
|
}
|
|
@@ -2459,7 +2487,7 @@ const kn = xn.exports, Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
|
|
|
2459
2487
|
__proto__: null,
|
|
2460
2488
|
default: kn
|
|
2461
2489
|
}, Symbol.toStringTag, { value: "Module" })), P = {};
|
|
2462
|
-
function
|
|
2490
|
+
function Tn(t) {
|
|
2463
2491
|
if (p()) {
|
|
2464
2492
|
Object.assign(P, t);
|
|
2465
2493
|
const e = {
|
|
@@ -2493,13 +2521,13 @@ export {
|
|
|
2493
2521
|
h as n,
|
|
2494
2522
|
Kt as o,
|
|
2495
2523
|
ln as p,
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2524
|
+
L as q,
|
|
2525
|
+
Te as r,
|
|
2526
|
+
Tn as s,
|
|
2499
2527
|
Rn as t,
|
|
2500
2528
|
ot as u,
|
|
2501
2529
|
Ze as v,
|
|
2502
2530
|
et as w,
|
|
2503
2531
|
tt as x,
|
|
2504
|
-
|
|
2532
|
+
N as y
|
|
2505
2533
|
};
|