@builder.io/sdk-vue 0.5.6-0 → 0.5.6
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 +9 -20
- package/packages/_vue2/dist/block-styles.ac28ad89.js +78 -0
- package/packages/_vue2/dist/block-styles.d7a0bd18.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.4020c35e.cjs +1 -0
- package/packages/_vue2/dist/{block-wrapper-f852f3a4.js → block-wrapper.877d598e.js} +16 -19
- package/packages/_vue2/dist/block.03f6b1f1.cjs +3 -0
- package/packages/_vue2/dist/block.4db8867b.js +179 -0
- package/packages/_vue2/dist/{blocks-wrapper-87a5ef9b.cjs → blocks-wrapper.69dad1d3.cjs} +1 -1
- package/packages/_vue2/dist/{blocks-wrapper-98241c68.js → blocks-wrapper.88129f1c.js} +6 -6
- package/packages/_vue2/dist/component-ref.5beb6576.cjs +1 -0
- package/packages/_vue2/dist/{component-ref-47d34951.js → component-ref.ae6b00e2.js} +21 -29
- package/packages/_vue2/dist/content.4429d811.cjs +1 -0
- package/packages/_vue2/dist/{content-ab735937.js → content.d83d212f.js} +19 -36
- package/packages/_vue2/dist/{css-8b11bb6e.js → css.e33adaf0.js} +1 -1
- package/packages/_vue2/dist/{css-03a9ebe6.cjs → css.ec4684cd.cjs} +1 -1
- package/packages/_vue2/dist/{enable-editor-2d8d86f8.js → enable-editor.2a84c36c.js} +29 -35
- package/packages/_vue2/dist/enable-editor.7bbb8293.cjs +1 -0
- package/packages/_vue2/dist/evaluate.15b2ed56.js +79 -0
- package/packages/_vue2/dist/evaluate.eba0e0f9.cjs +4 -0
- package/packages/_vue2/dist/get-block-actions.1973b4d5.cjs +1 -0
- package/packages/_vue2/dist/get-block-actions.db2ac618.js +36 -0
- package/packages/_vue2/dist/{get-block-properties-f778ef2a.js → get-block-properties.322d544d.js} +2 -2
- package/packages/_vue2/dist/get-block-properties.ef1464fb.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.9d4edbee.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.c9980195.js +53 -0
- package/packages/_vue2/dist/index.0c5f9582.cjs +32 -0
- package/packages/_vue2/dist/{index-a089abc3.js → index.fc359faf.js} +173 -201
- package/packages/_vue2/dist/{inlined-script-5ac8fff7.js → inlined-script.1b247526.js} +1 -1
- package/packages/_vue2/dist/{inlined-script-73ce088c.cjs → inlined-script.3e92a79e.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-styles-3a327fbd.js → inlined-styles.32485f82.js} +1 -1
- package/packages/_vue2/dist/inlined-styles.f9ade1ef.cjs +1 -0
- package/packages/_vue2/dist/interactive-element.21050a26.cjs +1 -0
- package/packages/_vue2/dist/{interactive-element-2aec4d6f.js → interactive-element.c8119384.js} +10 -12
- package/packages/{_vue3/dist/non-node-runtime.45773de4.js → _vue2/dist/non-node-runtime.84ddb11a.js} +64 -62
- package/packages/_vue2/dist/non-node-runtime.ddd24d83.cjs +21 -0
- package/packages/_vue2/dist/{repeated-block-a0f25ac2.js → repeated-block.4fbd3217.js} +6 -6
- package/packages/_vue2/dist/repeated-block.f4f2b4be.cjs +1 -0
- package/packages/_vue2/dist/sdk.cjs +1 -0
- package/packages/_vue2/dist/sdk.js +29 -0
- package/packages/_vue2/dist/set.87eb0329.cjs +1 -0
- package/packages/_vue2/dist/set.b219ab0e.js +9 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +2 -5
- package/packages/_vue2/dist/src/components/block/block.vue.d.ts +4 -2
- package/packages/_vue2/dist/src/components/block/components/block-styles.vue.d.ts +0 -5
- package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +0 -3
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +2 -3
- package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +0 -5
- package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +8 -9
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +0 -1
- package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +0 -2
- package/packages/_vue2/dist/src/components/content-variants/content-variants.vue.d.ts +0 -3
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +7 -6
- package/packages/{_vue3/dist/src/functions/evaluate/node-runtime → _vue2/dist/src/functions/evaluate/non-node-runtime}/index.d.ts +2 -2
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +11 -0
- package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +3 -3
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -2
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +3 -3
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +3 -5
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +1 -1
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +3 -9
- package/packages/_vue2/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/src/types/builder-props.d.ts +3 -15
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue2/dist/{styles-183aeb6b.js → styles.29f558ce.js} +18 -18
- package/packages/_vue2/dist/{styles-6e2cbe10.cjs → styles.b060113b.cjs} +5 -5
- package/packages/_vue3/dist/{block-wrapper.5ca35adf.js → block-wrapper.0604faad.js} +2 -2
- package/packages/_vue3/dist/{block-wrapper.500b81ef.cjs → block-wrapper.759209a2.cjs} +1 -1
- package/packages/_vue3/dist/{component-ref.5764cdf2.js → component-ref.72a8476f.js} +2 -2
- package/packages/_vue3/dist/{component-ref.67d028bc.cjs → component-ref.cc553de5.cjs} +1 -1
- package/packages/_vue3/dist/{get-block-actions.0f635805.js → get-block-actions.0fc3b0b7.js} +1 -1
- package/packages/_vue3/dist/{get-block-actions.20d51d99.cjs → get-block-actions.b8fe4107.cjs} +1 -1
- package/packages/_vue3/dist/index.1bb7374b.cjs +72 -0
- package/packages/_vue3/dist/{index.f5a3101b.js → index.ebaa8c07.js} +521 -549
- package/packages/_vue3/dist/non-node-runtime.b16cf7b9.js +2476 -0
- package/packages/_vue3/dist/{non-node-runtime.c8fc465e.cjs → non-node-runtime.d7d010c9.cjs} +9 -9
- package/packages/_vue3/dist/{repeated-block.8ca9be30.cjs → repeated-block.115e1f66.cjs} +1 -1
- package/packages/_vue3/dist/{repeated-block.238616b4.js → repeated-block.ee20f5f0.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/evaluate/acorn-interpreter.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +5 -1
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
- package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +11 -0
- package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +3 -3
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +1 -1
- package/packages/_vue3/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/block-12099f71.js +0 -189
- package/packages/_vue2/dist/block-246063be.cjs +0 -3
- package/packages/_vue2/dist/block-styles-9360f05a.cjs +0 -1
- package/packages/_vue2/dist/block-styles-cfdd1b51.js +0 -79
- package/packages/_vue2/dist/block-wrapper-857a5d4f.cjs +0 -1
- package/packages/_vue2/dist/component-ref-b891d36b.cjs +0 -1
- package/packages/_vue2/dist/content-043dd197.cjs +0 -1
- package/packages/_vue2/dist/enable-editor-04399d8f.cjs +0 -1
- package/packages/_vue2/dist/evaluate-6a213bca.cjs +0 -1
- package/packages/_vue2/dist/evaluate-c9d68bff.js +0 -76
- package/packages/_vue2/dist/get-block-actions-2b1bc20b.cjs +0 -1
- package/packages/_vue2/dist/get-block-actions-75e52f20.js +0 -36
- package/packages/_vue2/dist/get-block-properties-0e241c2c.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block-41399170.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block-940605b2.js +0 -46
- package/packages/_vue2/dist/helpers-327ed263.js +0 -16
- package/packages/_vue2/dist/helpers-4efe31ac.cjs +0 -1
- package/packages/_vue2/dist/index-537704ba.cjs +0 -1
- package/packages/_vue2/dist/index-c1c356f8.cjs +0 -32
- package/packages/_vue2/dist/index-cc904f8c.js +0 -10
- package/packages/_vue2/dist/inlined-styles-1d50f193.cjs +0 -1
- package/packages/_vue2/dist/interactive-element-67792031.cjs +0 -1
- package/packages/_vue2/dist/main.cjs +0 -1
- package/packages/_vue2/dist/main.js +0 -29
- package/packages/_vue2/dist/node-runtime-25e8d976.js +0 -93
- package/packages/_vue2/dist/node-runtime-5a567c42.cjs +0 -39
- package/packages/_vue2/dist/repeated-block-5eb2f7c6.cjs +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue2/dist/src/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/packages/_vue3/dist/index.0db0f592.cjs +0 -69
- package/packages/_vue3/dist/node-runtime.ba895a23.cjs +0 -39
- package/packages/_vue3/dist/node-runtime.dc2f1f18.js +0 -93
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue3/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- /package/packages/_vue2/dist/{index.d.ts → sdk.d.ts} +0 -0
- /package/packages/{_vue3/dist/src/functions/evaluate/non-node-runtime → _vue2/dist/src/functions/evaluate}/acorn-interpreter.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
function
|
|
1
|
+
import { defineComponent as b } from "vue";
|
|
2
|
+
function A(e = {}, t, n) {
|
|
3
3
|
const o = {};
|
|
4
4
|
for (const r in e) {
|
|
5
5
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -9,11 +9,11 @@ function E(e = {}, t, n) {
|
|
|
9
9
|
}
|
|
10
10
|
return o;
|
|
11
11
|
}
|
|
12
|
-
const st =
|
|
12
|
+
const st = b({
|
|
13
13
|
name: "builder-button",
|
|
14
14
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
15
15
|
data() {
|
|
16
|
-
return { filterAttrs:
|
|
16
|
+
return { filterAttrs: A };
|
|
17
17
|
},
|
|
18
18
|
methods: {
|
|
19
19
|
_classStringToObject(e) {
|
|
@@ -27,14 +27,12 @@ const st = g({
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function g(e, t, n, o, r, s, i, u) {
|
|
31
31
|
var a = typeof e == "function" ? e.options : e;
|
|
32
32
|
t && (a.render = t, a.staticRenderFns = n, a._compiled = !0), o && (a.functional = !0), s && (a._scopeId = "data-v-" + s);
|
|
33
33
|
var d;
|
|
34
34
|
if (i ? (d = function(c) {
|
|
35
|
-
c = c ||
|
|
36
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
37
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), r && r.call(this, c), c && c._registeredComponents && c._registeredComponents.add(i);
|
|
35
|
+
c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), r && r.call(this, c), c && c._registeredComponents && c._registeredComponents.add(i);
|
|
38
36
|
}, a._ssrRegister = d) : r && (d = u ? function() {
|
|
39
37
|
r.call(
|
|
40
38
|
this,
|
|
@@ -59,7 +57,7 @@ function y(e, t, n, o, r, s, i, u) {
|
|
|
59
57
|
var it = function() {
|
|
60
58
|
var t = this, n = t._self._c;
|
|
61
59
|
return t._self._setupProxy, t.link ? n("a", t._g(t._b({ attrs: { role: "button", href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0 } }, "a", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]) : n("button", t._g(t._b({ class: t._classStringToObject(t.attributes.class + " button-2fnk003dqad"), style: t.attributes.style }, "button", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]);
|
|
62
|
-
}, at = [], ct = /* @__PURE__ */
|
|
60
|
+
}, at = [], ct = /* @__PURE__ */ g(
|
|
63
61
|
st,
|
|
64
62
|
it,
|
|
65
63
|
at,
|
|
@@ -69,7 +67,7 @@ var it = function() {
|
|
|
69
67
|
null,
|
|
70
68
|
null
|
|
71
69
|
);
|
|
72
|
-
const
|
|
70
|
+
const nn = ct.exports, P = (e) => JSON.parse(JSON.stringify(e)), U = {
|
|
73
71
|
small: {
|
|
74
72
|
min: 320,
|
|
75
73
|
default: 321,
|
|
@@ -85,11 +83,11 @@ const on = ct.exports, A = (e) => JSON.parse(JSON.stringify(e)), U = {
|
|
|
85
83
|
default: 991,
|
|
86
84
|
max: 1200
|
|
87
85
|
}
|
|
88
|
-
},
|
|
86
|
+
}, on = (e, t = U) => `@media (max-width: ${t[e].max}px)`, lt = ({
|
|
89
87
|
small: e,
|
|
90
88
|
medium: t
|
|
91
89
|
}) => {
|
|
92
|
-
const n =
|
|
90
|
+
const n = P(U);
|
|
93
91
|
if (!e || !t)
|
|
94
92
|
return n;
|
|
95
93
|
const o = Math.floor(e / 2);
|
|
@@ -107,7 +105,6 @@ const on = ct.exports, A = (e) => JSON.parse(JSON.stringify(e)), U = {
|
|
|
107
105
|
const s = n.medium.max + 1;
|
|
108
106
|
return n.large = {
|
|
109
107
|
max: 2e3,
|
|
110
|
-
// TODO: decide upper limit
|
|
111
108
|
min: s,
|
|
112
109
|
default: s + 1
|
|
113
110
|
}, n;
|
|
@@ -116,12 +113,12 @@ const on = ct.exports, A = (e) => JSON.parse(JSON.stringify(e)), U = {
|
|
|
116
113
|
"Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",
|
|
117
114
|
e
|
|
118
115
|
), e;
|
|
119
|
-
}), dt = () => import("./inlined-styles
|
|
116
|
+
}), dt = () => import("./inlined-styles.32485f82.js").then((e) => e.default).catch((e) => {
|
|
120
117
|
throw console.error(
|
|
121
118
|
"Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",
|
|
122
119
|
e
|
|
123
120
|
), e;
|
|
124
|
-
}), mt =
|
|
121
|
+
}), mt = b({
|
|
125
122
|
name: "builder-columns",
|
|
126
123
|
components: { "inlined-styles": dt, blocks: ut },
|
|
127
124
|
props: [
|
|
@@ -132,8 +129,7 @@ const on = ct.exports, A = (e) => JSON.parse(JSON.stringify(e)), U = {
|
|
|
132
129
|
"reverseColumnsWhenStacked",
|
|
133
130
|
"builderContext",
|
|
134
131
|
"builderBlock",
|
|
135
|
-
"builderComponents"
|
|
136
|
-
"builderServerExecutor"
|
|
132
|
+
"builderComponents"
|
|
137
133
|
],
|
|
138
134
|
data() {
|
|
139
135
|
return {
|
|
@@ -250,26 +246,26 @@ var pt = function() {
|
|
|
250
246
|
), style: t.columnsCssVars }, "div", {}, !1), [t.TARGET !== "reactNative" ? [n("inlined-styles", { attrs: { styles: t.columnsStyles } })] : t._e(), t._l(t.columns, function(o, r) {
|
|
251
247
|
return n("div", t._b({ key: r, staticClass: "builder-column div-t9spj7joih-2", style: t.columnCssVars(r) }, "div", {}, !1), [n("blocks", { attrs: { blocks: o.blocks, path: `component.options.columns.${r}.blocks`, parent: t.builderBlock.id, styleProp: {
|
|
252
248
|
flexGrow: "1"
|
|
253
|
-
}, context: t.builderContext,
|
|
249
|
+
}, context: t.builderContext, registeredComponents: t.builderComponents } })], 1);
|
|
254
250
|
})], 2);
|
|
255
|
-
}, ft = [], ht = /* @__PURE__ */
|
|
251
|
+
}, ft = [], ht = /* @__PURE__ */ g(
|
|
256
252
|
mt,
|
|
257
253
|
pt,
|
|
258
254
|
ft,
|
|
259
255
|
!1,
|
|
260
256
|
null,
|
|
261
|
-
"
|
|
257
|
+
"b1c2e5e0",
|
|
262
258
|
null,
|
|
263
259
|
null
|
|
264
260
|
);
|
|
265
|
-
const
|
|
261
|
+
const rn = ht.exports, _t = b({
|
|
266
262
|
name: "builder-fragment-component",
|
|
267
263
|
props: []
|
|
268
264
|
});
|
|
269
265
|
var bt = function() {
|
|
270
266
|
var t = this, n = t._self._c;
|
|
271
267
|
return t._self._setupProxy, n("span", [t._t("default")], 2);
|
|
272
|
-
}, gt = [], yt = /* @__PURE__ */
|
|
268
|
+
}, gt = [], yt = /* @__PURE__ */ g(
|
|
273
269
|
_t,
|
|
274
270
|
bt,
|
|
275
271
|
gt,
|
|
@@ -279,7 +275,7 @@ var bt = function() {
|
|
|
279
275
|
null,
|
|
280
276
|
null
|
|
281
277
|
);
|
|
282
|
-
const
|
|
278
|
+
const sn = yt.exports;
|
|
283
279
|
function B(e) {
|
|
284
280
|
return e.replace(/http(s)?:/, "");
|
|
285
281
|
}
|
|
@@ -310,7 +306,7 @@ function T(e) {
|
|
|
310
306
|
}
|
|
311
307
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [St(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
312
308
|
}
|
|
313
|
-
const kt =
|
|
309
|
+
const kt = b({
|
|
314
310
|
name: "builder-image",
|
|
315
311
|
props: [
|
|
316
312
|
"image",
|
|
@@ -330,11 +326,9 @@ const kt = g({
|
|
|
330
326
|
srcSetToUse() {
|
|
331
327
|
var n;
|
|
332
328
|
const t = this.image || this.src;
|
|
333
|
-
if (!t ||
|
|
334
|
-
// images, otherwise you can supply this prop manually
|
|
335
|
-
!(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
|
|
329
|
+
if (!t || !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
|
|
336
330
|
return this.srcset;
|
|
337
|
-
if (this.srcset && ((n = this.image)
|
|
331
|
+
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
338
332
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
339
333
|
return console.debug("Removed given srcset"), T(t);
|
|
340
334
|
} else if (this.image && !this.srcset)
|
|
@@ -343,7 +337,7 @@ const kt = g({
|
|
|
343
337
|
},
|
|
344
338
|
webpSrcSet() {
|
|
345
339
|
var e;
|
|
346
|
-
return (e = this.srcSetToUse)
|
|
340
|
+
return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
347
341
|
},
|
|
348
342
|
aspectRatioCss() {
|
|
349
343
|
const e = {
|
|
@@ -377,10 +371,10 @@ var xt = function() {
|
|
|
377
371
|
objectPosition: t.backgroundPosition || "center",
|
|
378
372
|
objectFit: t.backgroundSize || "cover",
|
|
379
373
|
...t.aspectRatioCss
|
|
380
|
-
}, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !((r = (o = t.builderBlock) == null ? void 0 : o.children)
|
|
374
|
+
}, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !(((r = (o = t.builderBlock) == null ? void 0 : o.children) == null ? void 0 : r.length) && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
|
|
381
375
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
382
|
-
} })] : t._e(), (i = (s = t.builderBlock) == null ? void 0 : s.children)
|
|
383
|
-
}, wt = [], Ct = /* @__PURE__ */
|
|
376
|
+
} })] : t._e(), ((i = (s = t.builderBlock) == null ? void 0 : s.children) == null ? void 0 : i.length) && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.$slots.default ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [t._t("default")], 2)] : t._e()], 2);
|
|
377
|
+
}, wt = [], Ct = /* @__PURE__ */ g(
|
|
384
378
|
kt,
|
|
385
379
|
xt,
|
|
386
380
|
wt,
|
|
@@ -390,11 +384,11 @@ var xt = function() {
|
|
|
390
384
|
null,
|
|
391
385
|
null
|
|
392
386
|
);
|
|
393
|
-
const
|
|
387
|
+
const an = Ct.exports, $t = b({
|
|
394
388
|
name: "builder-section-component",
|
|
395
389
|
props: ["attributes", "maxWidth"],
|
|
396
390
|
data() {
|
|
397
|
-
return { filterAttrs:
|
|
391
|
+
return { filterAttrs: A };
|
|
398
392
|
}
|
|
399
393
|
});
|
|
400
394
|
var Tt = function() {
|
|
@@ -411,7 +405,7 @@ var Tt = function() {
|
|
|
411
405
|
marginLeft: "auto",
|
|
412
406
|
marginRight: "auto"
|
|
413
407
|
} }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
|
|
414
|
-
}, It = [], Rt = /* @__PURE__ */
|
|
408
|
+
}, It = [], Rt = /* @__PURE__ */ g(
|
|
415
409
|
$t,
|
|
416
410
|
Tt,
|
|
417
411
|
It,
|
|
@@ -421,18 +415,17 @@ var Tt = function() {
|
|
|
421
415
|
null,
|
|
422
416
|
null
|
|
423
417
|
);
|
|
424
|
-
const
|
|
418
|
+
const cn = Rt.exports, C = "[Builder.io]: ", v = {
|
|
425
419
|
log: (...e) => console.log(C, ...e),
|
|
426
420
|
error: (...e) => console.error(C, ...e),
|
|
427
421
|
warn: (...e) => console.warn(C, ...e),
|
|
428
422
|
debug: (...e) => console.debug(C, ...e)
|
|
429
|
-
},
|
|
423
|
+
}, At = async ({
|
|
430
424
|
builderContextValue: e,
|
|
431
425
|
symbol: t
|
|
432
426
|
}) => {
|
|
433
|
-
if (t
|
|
434
|
-
|
|
435
|
-
return O({
|
|
427
|
+
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
428
|
+
return E({
|
|
436
429
|
model: t.model,
|
|
437
430
|
apiKey: e.apiKey,
|
|
438
431
|
apiVersion: e.apiVersion,
|
|
@@ -444,14 +437,14 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
|
|
|
444
437
|
}).catch((n) => {
|
|
445
438
|
v.error("Could not fetch symbol content: ", n);
|
|
446
439
|
});
|
|
447
|
-
},
|
|
440
|
+
}, Pt = () => Promise.resolve().then(() => $e).then((e) => e.default).catch((e) => {
|
|
448
441
|
throw console.error(
|
|
449
442
|
"Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
|
|
450
443
|
e
|
|
451
444
|
), e;
|
|
452
|
-
}),
|
|
445
|
+
}), Vt = b({
|
|
453
446
|
name: "builder-symbol",
|
|
454
|
-
components: { "content-variants":
|
|
447
|
+
components: { "content-variants": Pt },
|
|
455
448
|
props: [
|
|
456
449
|
"js",
|
|
457
450
|
"attributes",
|
|
@@ -462,7 +455,7 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
|
|
|
462
455
|
],
|
|
463
456
|
data() {
|
|
464
457
|
var e;
|
|
465
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
458
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
|
|
466
459
|
},
|
|
467
460
|
mounted() {
|
|
468
461
|
this.setContent();
|
|
@@ -482,7 +475,7 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
|
|
|
482
475
|
...Object.keys(this.attributes.class),
|
|
483
476
|
"builder-symbol",
|
|
484
477
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
485
|
-
(t = this.symbol)
|
|
478
|
+
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
486
479
|
].filter(Boolean).join(" ");
|
|
487
480
|
},
|
|
488
481
|
onUpdateHook0() {
|
|
@@ -493,7 +486,7 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
|
|
|
493
486
|
},
|
|
494
487
|
methods: {
|
|
495
488
|
setContent() {
|
|
496
|
-
this.contentToUse ||
|
|
489
|
+
this.contentToUse || At({
|
|
497
490
|
symbol: this.symbol,
|
|
498
491
|
builderContextValue: this.builderContext
|
|
499
492
|
}).then((e) => {
|
|
@@ -511,7 +504,7 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
|
|
|
511
504
|
}
|
|
512
505
|
}
|
|
513
506
|
});
|
|
514
|
-
var
|
|
507
|
+
var Ot = function() {
|
|
515
508
|
var o, r, s, i;
|
|
516
509
|
var t = this, n = t._self._c;
|
|
517
510
|
return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className) }, "div", { ...t.filterAttrs(t.attributes, "v-on:", !1) }, !1), t.filterAttrs(t.attributes, "v-on:", !0)), [n("content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderComponents), data: {
|
|
@@ -519,17 +512,17 @@ var Vt = function() {
|
|
|
519
512
|
...t.builderContext.localState,
|
|
520
513
|
...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
|
|
521
514
|
}, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
|
|
522
|
-
},
|
|
523
|
-
Pt,
|
|
515
|
+
}, Et = [], Bt = /* @__PURE__ */ g(
|
|
524
516
|
Vt,
|
|
525
517
|
Ot,
|
|
518
|
+
Et,
|
|
526
519
|
!1,
|
|
527
520
|
null,
|
|
528
521
|
null,
|
|
529
522
|
null,
|
|
530
523
|
null
|
|
531
524
|
);
|
|
532
|
-
const
|
|
525
|
+
const ln = Bt.exports, jt = b({
|
|
533
526
|
name: "builder-text",
|
|
534
527
|
props: ["text"]
|
|
535
528
|
});
|
|
@@ -539,7 +532,7 @@ var Nt = function() {
|
|
|
539
532
|
return t._self._setupProxy, n("span", t._b({ staticClass: "builder-text", style: {
|
|
540
533
|
outline: "none"
|
|
541
534
|
}, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } }, "span", {}, !1));
|
|
542
|
-
}, Ft = [], Ut = /* @__PURE__ */
|
|
535
|
+
}, Ft = [], Ut = /* @__PURE__ */ g(
|
|
543
536
|
jt,
|
|
544
537
|
Nt,
|
|
545
538
|
Ft,
|
|
@@ -549,7 +542,7 @@ var Nt = function() {
|
|
|
549
542
|
null,
|
|
550
543
|
null
|
|
551
544
|
);
|
|
552
|
-
const
|
|
545
|
+
const un = Ut.exports, Mt = b({
|
|
553
546
|
name: "builder-video",
|
|
554
547
|
props: [
|
|
555
548
|
"autoPlay",
|
|
@@ -592,7 +585,7 @@ const dn = Ut.exports, Lt = g({
|
|
|
592
585
|
}
|
|
593
586
|
}
|
|
594
587
|
});
|
|
595
|
-
var
|
|
588
|
+
var Wt = function() {
|
|
596
589
|
var o;
|
|
597
590
|
var t = this, n = t._self._c;
|
|
598
591
|
return t._self._setupProxy, n("video", t._b({ style: {
|
|
@@ -601,21 +594,19 @@ var Mt = function() {
|
|
|
601
594
|
...(o = t.attributes) == null ? void 0 : o.style,
|
|
602
595
|
objectFit: t.fit,
|
|
603
596
|
objectPosition: t.position,
|
|
604
|
-
// Hack to get object fit to work as expected and
|
|
605
|
-
// not have the video overflow
|
|
606
597
|
borderRadius: 1
|
|
607
598
|
}, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
|
|
608
|
-
},
|
|
609
|
-
Lt,
|
|
599
|
+
}, Kt = [], Lt = /* @__PURE__ */ g(
|
|
610
600
|
Mt,
|
|
611
601
|
Wt,
|
|
602
|
+
Kt,
|
|
612
603
|
!1,
|
|
613
604
|
null,
|
|
614
605
|
null,
|
|
615
606
|
null,
|
|
616
607
|
null
|
|
617
608
|
);
|
|
618
|
-
const
|
|
609
|
+
const dn = Lt.exports, zt = Symbol(), Gt = {
|
|
619
610
|
Builder: {
|
|
620
611
|
content: null,
|
|
621
612
|
context: {},
|
|
@@ -632,22 +623,22 @@ const mn = Kt.exports, zt = Symbol(), Gt = {
|
|
|
632
623
|
}, Dt = Symbol(), Ht = {
|
|
633
624
|
Components: { registeredComponents: {} },
|
|
634
625
|
key: Dt
|
|
635
|
-
}, Jt = () => import("./block-styles
|
|
626
|
+
}, Jt = () => import("./block-styles.ac28ad89.js").then((e) => e.default).catch((e) => {
|
|
636
627
|
throw console.error(
|
|
637
628
|
"Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
|
|
638
629
|
e
|
|
639
630
|
), e;
|
|
640
|
-
}), Xt = () => import("./block
|
|
631
|
+
}), Xt = () => import("./block.4db8867b.js").then((e) => e.default).catch((e) => {
|
|
641
632
|
throw console.error(
|
|
642
633
|
"Error while attempting to dynamically import component Block at ../block/block.vue",
|
|
643
634
|
e
|
|
644
635
|
), e;
|
|
645
|
-
}), qt = () => import("./blocks-wrapper
|
|
636
|
+
}), qt = () => import("./blocks-wrapper.88129f1c.js").then((e) => e.default).catch((e) => {
|
|
646
637
|
throw console.error(
|
|
647
638
|
"Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
|
|
648
639
|
e
|
|
649
640
|
), e;
|
|
650
|
-
}), Qt =
|
|
641
|
+
}), Qt = b({
|
|
651
642
|
name: "builder-blocks",
|
|
652
643
|
components: {
|
|
653
644
|
"blocks-wrapper": qt,
|
|
@@ -659,9 +650,8 @@ const mn = Kt.exports, zt = Symbol(), Gt = {
|
|
|
659
650
|
"parent",
|
|
660
651
|
"path",
|
|
661
652
|
"styleProp",
|
|
662
|
-
"serverExecutor",
|
|
663
653
|
"context",
|
|
664
|
-
"
|
|
654
|
+
"registeredComponents"
|
|
665
655
|
],
|
|
666
656
|
inject: {
|
|
667
657
|
builderContext: Gt.key,
|
|
@@ -671,12 +661,11 @@ const mn = Kt.exports, zt = Symbol(), Gt = {
|
|
|
671
661
|
var Yt = function() {
|
|
672
662
|
var t = this, n = t._self._c;
|
|
673
663
|
return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp } }, [t.blocks ? t._l(t.blocks, function(o, r) {
|
|
674
|
-
return n("block", { key: "render-block-" + o.id, attrs: { block: o,
|
|
664
|
+
return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
|
|
675
665
|
}) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
|
|
676
|
-
|
|
677
|
-
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, serverExecutor: t.serverExecutor, context: ((s = t.context) == null ? void 0 : s.value) || t.builderContext } });
|
|
666
|
+
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context || t.builderContext } });
|
|
678
667
|
}) : t._e()], 2);
|
|
679
|
-
}, Zt = [], te = /* @__PURE__ */
|
|
668
|
+
}, Zt = [], te = /* @__PURE__ */ g(
|
|
680
669
|
Qt,
|
|
681
670
|
Yt,
|
|
682
671
|
Zt,
|
|
@@ -686,11 +675,11 @@ var Yt = function() {
|
|
|
686
675
|
null,
|
|
687
676
|
null
|
|
688
677
|
);
|
|
689
|
-
const
|
|
678
|
+
const M = te.exports, ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
690
679
|
__proto__: null,
|
|
691
|
-
default:
|
|
680
|
+
default: M
|
|
692
681
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
693
|
-
function
|
|
682
|
+
function y() {
|
|
694
683
|
return typeof window < "u" && typeof document < "u";
|
|
695
684
|
}
|
|
696
685
|
const $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
@@ -704,22 +693,22 @@ const $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t
|
|
|
704
693
|
function oe(e, t, n) {
|
|
705
694
|
var i;
|
|
706
695
|
function o() {
|
|
707
|
-
function u(l,
|
|
696
|
+
function u(l, h, S) {
|
|
708
697
|
let k = "";
|
|
709
698
|
if (S) {
|
|
710
|
-
const
|
|
711
|
-
|
|
699
|
+
const _ = new Date();
|
|
700
|
+
_.setTime(_.getTime() + S * 24 * 60 * 60 * 1e3), k = "; expires=" + _.toUTCString();
|
|
712
701
|
}
|
|
713
|
-
document.cookie = l + "=" + (
|
|
702
|
+
document.cookie = l + "=" + (h || "") + k + "; path=/; Secure; SameSite=None";
|
|
714
703
|
}
|
|
715
704
|
function a(l) {
|
|
716
|
-
const
|
|
705
|
+
const h = l + "=", S = document.cookie.split(";");
|
|
717
706
|
for (let k = 0; k < S.length; k++) {
|
|
718
|
-
let
|
|
719
|
-
for (;
|
|
720
|
-
|
|
721
|
-
if (
|
|
722
|
-
return
|
|
707
|
+
let _ = S[k];
|
|
708
|
+
for (; _.charAt(0) === " "; )
|
|
709
|
+
_ = _.substring(1, _.length);
|
|
710
|
+
if (_.indexOf(h) === 0)
|
|
711
|
+
return _.substring(h.length, _.length);
|
|
723
712
|
}
|
|
724
713
|
return null;
|
|
725
714
|
}
|
|
@@ -729,9 +718,9 @@ function oe(e, t, n) {
|
|
|
729
718
|
let c = 0;
|
|
730
719
|
const m = Math.random();
|
|
731
720
|
for (let l = 0; l < t.length; l++) {
|
|
732
|
-
const
|
|
721
|
+
const h = t[l], S = h.testRatio;
|
|
733
722
|
if (c += S, m < c)
|
|
734
|
-
return u(d,
|
|
723
|
+
return u(d, h.id), h.id;
|
|
735
724
|
}
|
|
736
725
|
return u(d, e), e;
|
|
737
726
|
}
|
|
@@ -773,18 +762,18 @@ function re(e, t, n) {
|
|
|
773
762
|
return;
|
|
774
763
|
}
|
|
775
764
|
}
|
|
776
|
-
const se = (e) => e === "react" || e === "reactNative",
|
|
765
|
+
const se = (e) => e === "react" || e === "reactNative", W = se(w), K = "builderIoAbTest", L = "builderIoRenderContent", ie = () => {
|
|
777
766
|
const e = oe.toString().replace(/\s+/g, " "), t = re.toString().replace(/\s+/g, " ");
|
|
778
767
|
return `
|
|
779
|
-
window.${
|
|
780
|
-
window.${
|
|
768
|
+
window.${K} = ${e}
|
|
769
|
+
window.${L} = ${t}
|
|
781
770
|
`;
|
|
782
771
|
}, ae = (e, t) => `
|
|
783
|
-
window.${
|
|
772
|
+
window.${K}("${t}",${JSON.stringify(e)}, ${W})`, mn = ({
|
|
784
773
|
contentId: e,
|
|
785
774
|
variationId: t
|
|
786
775
|
}) => `
|
|
787
|
-
window.${
|
|
776
|
+
window.${L}("${t}", "${e}", ${W})`, x = (e) => e != null, I = (e) => x(e) ? e : !0, ce = (e) => {
|
|
788
777
|
if (e === "localhost" || e === "127.0.0.1")
|
|
789
778
|
return e;
|
|
790
779
|
const t = e.split(".");
|
|
@@ -805,7 +794,7 @@ const se = (e) => e === "react" || e === "reactNative", M = se(w), W = "builderI
|
|
|
805
794
|
value: t,
|
|
806
795
|
expires: n
|
|
807
796
|
}) => {
|
|
808
|
-
const r = (
|
|
797
|
+
const r = (y() ? location.protocol === "https:" : !0) ? ue : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", ce(window.location.hostname)], ...r];
|
|
809
798
|
return le(i);
|
|
810
799
|
}, D = async ({
|
|
811
800
|
name: e,
|
|
@@ -825,21 +814,21 @@ const se = (e) => e === "react" || e === "reactNative", M = se(w), W = "builderI
|
|
|
825
814
|
} catch (r) {
|
|
826
815
|
v.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
827
816
|
}
|
|
828
|
-
}, me = "builder.tests",
|
|
817
|
+
}, me = "builder.tests", V = (e) => `${me}.${e}`, pe = ({
|
|
829
818
|
contentId: e
|
|
830
819
|
}) => G({
|
|
831
|
-
name:
|
|
820
|
+
name: V(e),
|
|
832
821
|
canTrack: !0
|
|
833
822
|
}), fe = ({
|
|
834
823
|
contentId: e
|
|
835
824
|
}) => z({
|
|
836
|
-
name:
|
|
825
|
+
name: V(e),
|
|
837
826
|
canTrack: !0
|
|
838
827
|
}), he = ({
|
|
839
828
|
contentId: e,
|
|
840
829
|
value: t
|
|
841
830
|
}) => D({
|
|
842
|
-
name:
|
|
831
|
+
name: V(e),
|
|
843
832
|
value: t,
|
|
844
833
|
canTrack: !0
|
|
845
834
|
}), H = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, _e = ({
|
|
@@ -868,8 +857,7 @@ const se = (e) => e === "react" || e === "reactNative", M = se(w), W = "builderI
|
|
|
868
857
|
testGroupId: t
|
|
869
858
|
}) => {
|
|
870
859
|
const n = e.variations[t];
|
|
871
|
-
return t === e.id ||
|
|
872
|
-
!n ? {
|
|
860
|
+
return t === e.id || !n ? {
|
|
873
861
|
testVariationId: e.id,
|
|
874
862
|
testVariationName: "Default"
|
|
875
863
|
} : {
|
|
@@ -919,22 +907,22 @@ const se = (e) => e === "react" || e === "reactNative", M = se(w), W = "builderI
|
|
|
919
907
|
...e,
|
|
920
908
|
...r
|
|
921
909
|
};
|
|
922
|
-
}, ye = () => import("./content
|
|
910
|
+
}, ye = () => import("./content.d83d212f.js").then((e) => e.default).catch((e) => {
|
|
923
911
|
throw console.error(
|
|
924
912
|
"Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
|
|
925
913
|
e
|
|
926
914
|
), e;
|
|
927
|
-
}), ve = () => import("./inlined-styles
|
|
915
|
+
}), ve = () => import("./inlined-styles.32485f82.js").then((e) => e.default).catch((e) => {
|
|
928
916
|
throw console.error(
|
|
929
917
|
"Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
|
|
930
918
|
e
|
|
931
919
|
), e;
|
|
932
|
-
}), Se = () => import("./inlined-script
|
|
920
|
+
}), Se = () => import("./inlined-script.1b247526.js").then((e) => e.default).catch((e) => {
|
|
933
921
|
throw console.error(
|
|
934
922
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
935
923
|
e
|
|
936
924
|
), e;
|
|
937
|
-
}), ke =
|
|
925
|
+
}), ke = b({
|
|
938
926
|
name: "content-variants",
|
|
939
927
|
components: {
|
|
940
928
|
"inlined-script": Se,
|
|
@@ -953,8 +941,7 @@ const se = (e) => e === "react" || e === "reactNative", M = se(w), W = "builderI
|
|
|
953
941
|
"customComponents",
|
|
954
942
|
"locale",
|
|
955
943
|
"includeRefs",
|
|
956
|
-
"enrich"
|
|
957
|
-
"serverExecutor"
|
|
944
|
+
"enrich"
|
|
958
945
|
],
|
|
959
946
|
data() {
|
|
960
947
|
return {
|
|
@@ -1000,11 +987,11 @@ var xe = function() {
|
|
|
1000
987
|
var o, r;
|
|
1001
988
|
var t = this, n = t._self._c;
|
|
1002
989
|
return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(o = t.content) == null ? void 0 : o.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.variantScriptStr } }), t._l(t.getVariants(t.content), function(s, i) {
|
|
1003
|
-
return n("content-component", { key: s.testVariationId, attrs: { content: s, showContent: !1, classNameProp: void 0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants
|
|
1004
|
-
})] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, classNameProp: `variant-${(r = t.content) == null ? void 0 : r.id}`, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants
|
|
990
|
+
return n("content-component", { key: s.testVariationId, attrs: { content: s, showContent: !1, classNameProp: void 0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } });
|
|
991
|
+
})] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, classNameProp: `variant-${(r = t.content) == null ? void 0 : r.id}`, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "content-component", {
|
|
1005
992
|
key: t.shouldRenderVariants.toString()
|
|
1006
993
|
}, !1))], 2);
|
|
1007
|
-
}, we = [], Ce = /* @__PURE__ */
|
|
994
|
+
}, we = [], Ce = /* @__PURE__ */ g(
|
|
1008
995
|
ke,
|
|
1009
996
|
xe,
|
|
1010
997
|
we,
|
|
@@ -1017,35 +1004,35 @@ var xe = function() {
|
|
|
1017
1004
|
const q = Ce.exports, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1018
1005
|
__proto__: null,
|
|
1019
1006
|
default: q
|
|
1020
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1007
|
+
}, Symbol.toStringTag, { value: "Module" })), pn = M, fn = q;
|
|
1021
1008
|
function Te() {
|
|
1022
|
-
return
|
|
1009
|
+
return y() && window.self !== window.top;
|
|
1023
1010
|
}
|
|
1024
1011
|
function Q() {
|
|
1025
1012
|
return Te() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1026
1013
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return !
|
|
1014
|
+
function hn() {
|
|
1015
|
+
return !y() || Q() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1029
1016
|
}
|
|
1030
|
-
const
|
|
1017
|
+
const _n = [], bn = (e) => ({
|
|
1031
1018
|
type: "builder.registerComponent",
|
|
1032
1019
|
data: e
|
|
1033
1020
|
}), Ie = (e) => {
|
|
1034
1021
|
const t = e.toString().trim();
|
|
1035
1022
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1036
|
-
}, Re = (e) => typeof e == "function" ? Ie(e) :
|
|
1023
|
+
}, Re = (e) => typeof e == "function" ? Ie(e) : P(e), gn = ({
|
|
1037
1024
|
inputs: e,
|
|
1038
1025
|
...t
|
|
1039
1026
|
}) => ({
|
|
1040
|
-
...
|
|
1027
|
+
...P(t),
|
|
1041
1028
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
1042
1029
|
...o,
|
|
1043
1030
|
[r]: Re(s)
|
|
1044
1031
|
}), {}))
|
|
1045
1032
|
}), j = {};
|
|
1046
|
-
function
|
|
1033
|
+
function yn(e, t) {
|
|
1047
1034
|
let n = j[e];
|
|
1048
|
-
if (n || (n = j[e] = []), n.push(t),
|
|
1035
|
+
if (n || (n = j[e] = []), n.push(t), y()) {
|
|
1049
1036
|
const o = {
|
|
1050
1037
|
type: "builder.register",
|
|
1051
1038
|
data: {
|
|
@@ -1061,8 +1048,8 @@ function vn(e, t) {
|
|
|
1061
1048
|
}
|
|
1062
1049
|
}
|
|
1063
1050
|
const N = {};
|
|
1064
|
-
function
|
|
1065
|
-
if (
|
|
1051
|
+
function vn(e) {
|
|
1052
|
+
if (y()) {
|
|
1066
1053
|
Object.assign(N, e);
|
|
1067
1054
|
const t = {
|
|
1068
1055
|
type: "builder.settingsChange",
|
|
@@ -1071,17 +1058,17 @@ function Sn(e) {
|
|
|
1071
1058
|
parent.postMessage(t, "*");
|
|
1072
1059
|
}
|
|
1073
1060
|
}
|
|
1074
|
-
function
|
|
1061
|
+
function Ae() {
|
|
1075
1062
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1076
1063
|
}
|
|
1077
|
-
function
|
|
1078
|
-
const e =
|
|
1064
|
+
function Pe() {
|
|
1065
|
+
const e = Ae().fetch;
|
|
1079
1066
|
if (typeof e > "u")
|
|
1080
1067
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1081
1068
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1082
1069
|
return e;
|
|
1083
1070
|
}
|
|
1084
|
-
const
|
|
1071
|
+
const Ve = Pe();
|
|
1085
1072
|
function R(e, t = null, n = ".") {
|
|
1086
1073
|
return Object.keys(e).reduce((o, r) => {
|
|
1087
1074
|
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
@@ -1094,7 +1081,7 @@ function R(e, t = null, n = ".") {
|
|
|
1094
1081
|
};
|
|
1095
1082
|
}, {});
|
|
1096
1083
|
}
|
|
1097
|
-
const F = "builder.",
|
|
1084
|
+
const F = "builder.", Oe = "options.", Ee = (e) => {
|
|
1098
1085
|
const t = {};
|
|
1099
1086
|
return e.forEach((n, o) => {
|
|
1100
1087
|
t[o] = n;
|
|
@@ -1105,16 +1092,16 @@ const F = "builder.", Ve = "options.", Oe = (e) => {
|
|
|
1105
1092
|
const t = Z(e), n = {};
|
|
1106
1093
|
return Object.keys(t).forEach((o) => {
|
|
1107
1094
|
if (o.startsWith(F)) {
|
|
1108
|
-
const r = o.replace(F, "").replace(
|
|
1095
|
+
const r = o.replace(F, "").replace(Oe, "");
|
|
1109
1096
|
n[r] = t[o];
|
|
1110
1097
|
}
|
|
1111
1098
|
}), n;
|
|
1112
1099
|
}, Be = () => {
|
|
1113
|
-
if (!
|
|
1100
|
+
if (!y())
|
|
1114
1101
|
return {};
|
|
1115
1102
|
const e = new URLSearchParams(window.location.search);
|
|
1116
1103
|
return Y(e);
|
|
1117
|
-
}, Z = (e) => e instanceof URLSearchParams ?
|
|
1104
|
+
}, Z = (e) => e instanceof URLSearchParams ? Ee(e) : e, je = "v3", O = (e) => {
|
|
1118
1105
|
const {
|
|
1119
1106
|
limit: t = 30,
|
|
1120
1107
|
userAttributes: n,
|
|
@@ -1141,24 +1128,24 @@ const F = "builder.", Ve = "options.", Oe = (e) => {
|
|
|
1141
1128
|
const l = R({
|
|
1142
1129
|
query: o
|
|
1143
1130
|
});
|
|
1144
|
-
for (const
|
|
1145
|
-
f.searchParams.set(
|
|
1131
|
+
for (const h in l)
|
|
1132
|
+
f.searchParams.set(h, JSON.stringify(l[h]));
|
|
1146
1133
|
}
|
|
1147
1134
|
return f;
|
|
1148
1135
|
}, Ne = (e) => "results" in e;
|
|
1149
|
-
async function
|
|
1136
|
+
async function E(e) {
|
|
1150
1137
|
const t = await tt({
|
|
1151
1138
|
...e,
|
|
1152
1139
|
limit: 1
|
|
1153
1140
|
});
|
|
1154
1141
|
return t && t.results[0] || null;
|
|
1155
1142
|
}
|
|
1156
|
-
const
|
|
1157
|
-
const t =
|
|
1158
|
-
return await (await
|
|
1159
|
-
}, Ue = async (e, t, n =
|
|
1143
|
+
const Sn = E, Fe = async (e) => {
|
|
1144
|
+
const t = O(e);
|
|
1145
|
+
return await (await Ve(t.href)).json();
|
|
1146
|
+
}, Ue = async (e, t, n = O(e)) => {
|
|
1160
1147
|
const o = I(e.canTrack);
|
|
1161
|
-
if (n.search.includes("preview="), !o || !(
|
|
1148
|
+
if (n.search.includes("preview="), !o || !(y() || w === "reactNative"))
|
|
1162
1149
|
return t;
|
|
1163
1150
|
try {
|
|
1164
1151
|
const r = [];
|
|
@@ -1175,7 +1162,7 @@ const kn = O, Fe = async (e) => {
|
|
|
1175
1162
|
};
|
|
1176
1163
|
async function tt(e) {
|
|
1177
1164
|
try {
|
|
1178
|
-
const t =
|
|
1165
|
+
const t = O(e), n = await Fe(e);
|
|
1179
1166
|
return Ne(n) ? Ue(e, n) : (v.error("Error fetching data. ", {
|
|
1180
1167
|
url: t,
|
|
1181
1168
|
content: n,
|
|
@@ -1185,17 +1172,17 @@ async function tt(e) {
|
|
|
1185
1172
|
return v.error("Error fetching data. ", t), null;
|
|
1186
1173
|
}
|
|
1187
1174
|
}
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1175
|
+
const kn = tt;
|
|
1176
|
+
function Me() {
|
|
1190
1177
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1191
1178
|
const t = Math.random() * 16 | 0;
|
|
1192
1179
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
1193
1180
|
});
|
|
1194
1181
|
}
|
|
1195
1182
|
function et() {
|
|
1196
|
-
return
|
|
1183
|
+
return Me().replace(/-/g, "");
|
|
1197
1184
|
}
|
|
1198
|
-
const nt = "builderSessionId",
|
|
1185
|
+
const nt = "builderSessionId", We = async ({
|
|
1199
1186
|
canTrack: e
|
|
1200
1187
|
}) => {
|
|
1201
1188
|
if (!e)
|
|
@@ -1207,20 +1194,20 @@ const nt = "builderSessionId", Me = async ({
|
|
|
1207
1194
|
if (x(t))
|
|
1208
1195
|
return t;
|
|
1209
1196
|
{
|
|
1210
|
-
const n =
|
|
1211
|
-
return
|
|
1197
|
+
const n = Ke();
|
|
1198
|
+
return Le({
|
|
1212
1199
|
id: n,
|
|
1213
1200
|
canTrack: e
|
|
1214
1201
|
}), n;
|
|
1215
1202
|
}
|
|
1216
|
-
},
|
|
1203
|
+
}, Ke = () => et(), Le = ({
|
|
1217
1204
|
id: e,
|
|
1218
1205
|
canTrack: t
|
|
1219
1206
|
}) => D({
|
|
1220
1207
|
name: nt,
|
|
1221
1208
|
value: e,
|
|
1222
1209
|
canTrack: t
|
|
1223
|
-
}), ot = () =>
|
|
1210
|
+
}), ot = () => y() && typeof localStorage < "u" ? localStorage : void 0, ze = ({
|
|
1224
1211
|
key: e,
|
|
1225
1212
|
canTrack: t
|
|
1226
1213
|
}) => {
|
|
@@ -1268,7 +1255,7 @@ const nt = "builderSessionId", Me = async ({
|
|
|
1268
1255
|
value: e,
|
|
1269
1256
|
canTrack: t
|
|
1270
1257
|
}), Xe = () => {
|
|
1271
|
-
if (
|
|
1258
|
+
if (y()) {
|
|
1272
1259
|
const e = new URL(location.href);
|
|
1273
1260
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
1274
1261
|
} else
|
|
@@ -1307,7 +1294,7 @@ const nt = "builderSessionId", Me = async ({
|
|
|
1307
1294
|
visitorId: void 0,
|
|
1308
1295
|
sessionId: void 0
|
|
1309
1296
|
};
|
|
1310
|
-
const t = await
|
|
1297
|
+
const t = await We({
|
|
1311
1298
|
canTrack: e
|
|
1312
1299
|
}), n = De({
|
|
1313
1300
|
canTrack: e
|
|
@@ -1342,7 +1329,7 @@ async function tn(e) {
|
|
|
1342
1329
|
v.error("Missing API key for track call. Please provide your API key.");
|
|
1343
1330
|
return;
|
|
1344
1331
|
}
|
|
1345
|
-
if (e.canTrack && !Q() && (
|
|
1332
|
+
if (!!e.canTrack && !Q() && !!(y() || w === "reactNative"))
|
|
1346
1333
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
1347
1334
|
method: "POST",
|
|
1348
1335
|
body: JSON.stringify({
|
|
@@ -1356,20 +1343,12 @@ async function tn(e) {
|
|
|
1356
1343
|
console.error("Failed to track: ", t);
|
|
1357
1344
|
});
|
|
1358
1345
|
}
|
|
1359
|
-
const
|
|
1346
|
+
const xn = (e) => tn({
|
|
1360
1347
|
...e,
|
|
1361
1348
|
canTrack: !0
|
|
1362
|
-
})
|
|
1363
|
-
|
|
1364
|
-
const e = ()
|
|
1365
|
-
var t;
|
|
1366
|
-
return typeof process < "u" && ((t = process == null ? void 0 : process.versions) == null ? void 0 : t.node);
|
|
1367
|
-
};
|
|
1368
|
-
return !h() && !e();
|
|
1369
|
-
}
|
|
1370
|
-
const Cn = async (e) => {
|
|
1371
|
-
var r, s, i;
|
|
1372
|
-
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
|
|
1349
|
+
}), wn = async (e) => {
|
|
1350
|
+
var o, r, s;
|
|
1351
|
+
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1373
1352
|
...e,
|
|
1374
1353
|
apiKey: e.apiKey,
|
|
1375
1354
|
model: e.model || "page",
|
|
@@ -1379,62 +1358,55 @@ const Cn = async (e) => {
|
|
|
1379
1358
|
urlPath: t
|
|
1380
1359
|
} : {}
|
|
1381
1360
|
},
|
|
1382
|
-
options: Y(
|
|
1383
|
-
e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options
|
|
1384
|
-
)
|
|
1361
|
+
options: Y(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
1385
1362
|
};
|
|
1386
|
-
|
|
1387
|
-
const o = h() ? void 0 : en() ? (await import("./index-cc904f8c.js")).evaluator : (await import("./index-cc904f8c.js")).evaluator;
|
|
1388
|
-
return console.log("yeeh 2", o), {
|
|
1363
|
+
return {
|
|
1389
1364
|
apiKey: n.apiKey,
|
|
1390
1365
|
model: n.model,
|
|
1391
|
-
content: await
|
|
1392
|
-
serverExecutor: o
|
|
1366
|
+
content: await E(n)
|
|
1393
1367
|
};
|
|
1394
1368
|
};
|
|
1395
1369
|
export {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
fn as R,
|
|
1410
|
-
ln as S,
|
|
1370
|
+
Y as A,
|
|
1371
|
+
nn as B,
|
|
1372
|
+
rn as C,
|
|
1373
|
+
xn as D,
|
|
1374
|
+
wn as E,
|
|
1375
|
+
sn as F,
|
|
1376
|
+
M as G,
|
|
1377
|
+
q as H,
|
|
1378
|
+
an as I,
|
|
1379
|
+
fn as J,
|
|
1380
|
+
ee as K,
|
|
1381
|
+
pn as R,
|
|
1382
|
+
cn as S,
|
|
1411
1383
|
w as T,
|
|
1412
|
-
|
|
1384
|
+
dn as V,
|
|
1413
1385
|
tn as _,
|
|
1414
|
-
|
|
1415
|
-
|
|
1386
|
+
on as a,
|
|
1387
|
+
Q as b,
|
|
1416
1388
|
x as c,
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1389
|
+
A as d,
|
|
1390
|
+
ln as e,
|
|
1391
|
+
P as f,
|
|
1420
1392
|
lt as g,
|
|
1421
1393
|
un as h,
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1394
|
+
y as i,
|
|
1395
|
+
mn as j,
|
|
1396
|
+
_n as k,
|
|
1425
1397
|
v as l,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1398
|
+
Ht as m,
|
|
1399
|
+
g as n,
|
|
1400
|
+
Gt as o,
|
|
1401
|
+
hn as p,
|
|
1402
|
+
E as q,
|
|
1403
|
+
yn as r,
|
|
1404
|
+
gn as s,
|
|
1405
|
+
Ve as t,
|
|
1406
|
+
bn as u,
|
|
1407
|
+
vn as v,
|
|
1408
|
+
tt as w,
|
|
1409
|
+
kn as x,
|
|
1410
|
+
Sn as y,
|
|
1411
|
+
Ue as z
|
|
1440
1412
|
};
|