@builder.io/sdk-vue 0.12.1 → 0.12.3
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.15daad04.js → block-styles.8d24c282.js} +2 -2
- package/lib/browser/{block-styles.0a1c13cc.cjs → block-styles.a0585e05.cjs} +1 -1
- package/lib/browser/block-wrapper.68d48f7a.cjs +1 -0
- package/lib/browser/block-wrapper.c5dfbc00.js +45 -0
- package/lib/browser/blocks/button/button.vue.d.ts +1 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/browser/blocks/image/image.vue.d.ts +1 -3
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/browser/{component-ref.408ec744.js → component-ref.c3fbfacf.js} +3 -3
- package/lib/browser/{component-ref.35876089.cjs → component-ref.d00ee381.cjs} +1 -1
- package/lib/browser/components/block/block.helpers.d.ts +0 -1
- package/lib/browser/components/block/block.vue.d.ts +0 -1
- package/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/browser/components/content/content.vue.d.ts +3 -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/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{css.56c01a0f.cjs → css.33017a13.cjs} +1 -1
- package/lib/browser/{css.e56cc923.js → css.c99b7535.js} +1 -1
- package/lib/browser/dynamic-renderer.72e99722.js +29 -0
- package/lib/browser/dynamic-renderer.e95e3678.cjs +1 -0
- package/lib/browser/functions/get-block-properties.d.ts +6 -1
- package/lib/browser/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/browser/functions/transform-block-properties.d.ts +7 -5
- package/lib/browser/{get-block-actions.5749164d.js → get-block-actions.351bce86.js} +21 -30
- package/lib/browser/get-block-actions.d7726c65.cjs +1 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/browser/{index.1c3cd66d.js → index.62a4dd7e.js} +445 -513
- package/lib/browser/index.8856c30a.cjs +160 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block.3aa48114.js → repeated-block.610c249f.js} +2 -2
- package/lib/browser/{repeated-block.f3af0b09.cjs → repeated-block.d31def44.cjs} +1 -1
- package/lib/browser/scripts/init-editing.d.ts +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles.baf84624.js → block-styles.4feb92ca.js} +2 -2
- package/lib/edge/{block-styles.1d36e17e.cjs → block-styles.573b7b1b.cjs} +1 -1
- package/lib/edge/block-wrapper.8fa7315b.cjs +1 -0
- package/lib/edge/block-wrapper.94c267ab.js +44 -0
- package/lib/edge/blocks/button/button.vue.d.ts +1 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/edge/blocks/image/image.vue.d.ts +1 -3
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/edge/{component-ref.b38c0a17.cjs → component-ref.25ff38ac.cjs} +1 -1
- package/lib/edge/{component-ref.a0bf7c30.js → component-ref.c15b3af0.js} +3 -3
- package/lib/edge/components/block/block.helpers.d.ts +0 -1
- package/lib/edge/components/block/block.vue.d.ts +0 -1
- package/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/edge/components/content/content.vue.d.ts +3 -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/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/css.43e589b6.js → edge/css.d221cd8e.js} +1 -1
- package/lib/{node/css.b8f02dce.cjs → edge/css.ec6fd2a5.cjs} +1 -1
- package/lib/edge/dynamic-renderer.47f81bbb.js +28 -0
- package/lib/edge/dynamic-renderer.7abdc573.cjs +1 -0
- package/lib/edge/functions/get-block-properties.d.ts +6 -1
- package/lib/edge/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/edge/functions/transform-block-properties.d.ts +7 -5
- package/lib/edge/get-block-actions.4687c8f3.js +75 -0
- package/lib/edge/get-block-actions.ec83f582.cjs +1 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/edge/{index.7f2747c7.cjs → index.5778aa26.cjs} +27 -23
- package/lib/edge/{index.d2eea20b.js → index.6b56947b.js} +755 -823
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block.d802e6a0.cjs → repeated-block.29e381f4.cjs} +1 -1
- package/lib/edge/{repeated-block.d2e0b56c.js → repeated-block.76408127.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +1 -0
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles.544d0fa5.cjs → block-styles.35531025.cjs} +1 -1
- package/lib/node/{block-styles.9378e041.js → block-styles.b73795eb.js} +2 -2
- package/lib/node/block-wrapper.047cda0b.cjs +1 -0
- package/lib/node/block-wrapper.8dcfcfa1.js +45 -0
- package/lib/node/blocks/button/button.vue.d.ts +1 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/node/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/node/blocks/image/image.vue.d.ts +1 -3
- package/lib/node/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/node/{component-ref.36955ca9.cjs → component-ref.4ba40051.cjs} +1 -1
- package/lib/node/{component-ref.85cf8aff.js → component-ref.e6e92c8d.js} +3 -3
- package/lib/node/components/block/block.helpers.d.ts +0 -1
- package/lib/node/components/block/block.vue.d.ts +0 -1
- package/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/node/components/content/content.vue.d.ts +3 -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/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/css.817ffaca.cjs → node/css.a76e2f77.cjs} +1 -1
- package/lib/{edge/css.c9cd980b.js → node/css.ed4d90da.js} +1 -1
- package/lib/node/dynamic-renderer.beba4cd5.cjs +1 -0
- package/lib/node/dynamic-renderer.e6ce0b70.js +29 -0
- package/lib/node/functions/get-block-properties.d.ts +6 -1
- package/lib/node/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/node/functions/transform-block-properties.d.ts +7 -5
- package/lib/node/get-block-actions.5e56d085.js +75 -0
- package/lib/node/get-block-actions.899ffab6.cjs +1 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/node/{index.73c9ec13.js → index.48b1738e.js} +83 -150
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.f4ffe7ae.cjs +200 -0
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block.182fc93f.cjs → repeated-block.a42031b0.cjs} +1 -1
- package/lib/node/{repeated-block.6972ade9.js → repeated-block.cc0857ed.js} +2 -2
- package/lib/node/scripts/init-editing.d.ts +1 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-wrapper.3372ead3.cjs +0 -1
- package/lib/browser/block-wrapper.684870c2.js +0 -56
- package/lib/browser/get-block-actions.786a0830.cjs +0 -1
- package/lib/browser/index.caecdbca.cjs +0 -156
- package/lib/edge/block-wrapper.c2e6a717.js +0 -55
- package/lib/edge/block-wrapper.e35eb0ba.cjs +0 -1
- package/lib/edge/get-block-actions.59e642f2.js +0 -84
- package/lib/edge/get-block-actions.c4334ce2.cjs +0 -1
- package/lib/node/block-wrapper.20c333af.js +0 -56
- package/lib/node/block-wrapper.498bd360.cjs +0 -1
- package/lib/node/get-block-actions.9542f4f9.js +0 -84
- package/lib/node/get-block-actions.c427b339.cjs +0 -1
- package/lib/node/index.52366dfd.cjs +0 -196
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as h, openBlock as d, createElementBlock as
|
|
2
|
+
import { defineComponent as h, openBlock as d, createElementBlock as u, mergeProps as C, toHandlers as U, toDisplayString as se, defineAsyncComponent as L, resolveComponent as g, Fragment as $, createVNode as T, createBlock as v, withCtx as O, renderList as F, createCommentVNode as k, resolveDynamicComponent as ke, renderSlot as B, h as ye, createElementVNode as Y, normalizeStyle as Q, normalizeClass as ve, markRaw as qe } from "vue";
|
|
3
3
|
function z(e = {}, t, n) {
|
|
4
4
|
const o = {};
|
|
5
5
|
for (const r in e) {
|
|
@@ -10,43 +10,32 @@ function z(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Ge = h({
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
17
17
|
return { filterAttrs: z };
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
_classStringToObject(e) {
|
|
21
|
-
const t = {};
|
|
22
|
-
if (typeof e != "string")
|
|
23
|
-
return t;
|
|
24
|
-
const n = e.trim().split(/\s+/);
|
|
25
|
-
for (const o of n)
|
|
26
|
-
t[o] = !0;
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
18
|
}
|
|
30
|
-
})
|
|
31
|
-
const f = (e, t) => {
|
|
19
|
+
}), f = (e, t) => {
|
|
32
20
|
const n = e.__vccOpts || e;
|
|
33
21
|
for (const [o, r] of t)
|
|
34
22
|
n[o] = r;
|
|
35
23
|
return n;
|
|
36
|
-
},
|
|
37
|
-
function
|
|
38
|
-
return e.link ? (d(),
|
|
24
|
+
}, Je = ["href", "target"];
|
|
25
|
+
function Ye(e, t, n, o, r, i) {
|
|
26
|
+
return e.link ? (d(), u("a", C({
|
|
39
27
|
key: 0,
|
|
40
28
|
href: e.link,
|
|
41
29
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
42
30
|
role: "button"
|
|
43
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
31
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17, Je)) : (d(), u("button", C({
|
|
44
32
|
key: 1,
|
|
45
|
-
|
|
46
|
-
class: e.
|
|
47
|
-
|
|
33
|
+
role: "button",
|
|
34
|
+
class: `builder-button ${e.attributes.class}`,
|
|
35
|
+
style: e.attributes.style
|
|
36
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17));
|
|
48
37
|
}
|
|
49
|
-
const
|
|
38
|
+
const Qe = /* @__PURE__ */ f(Ge, [["render", Ye], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), Xe = Symbol(), X = {
|
|
50
39
|
Builder: {
|
|
51
40
|
content: null,
|
|
52
41
|
context: {},
|
|
@@ -61,12 +50,12 @@ const Ye = /* @__PURE__ */ f(qe, [["render", Je], ["__scopeId", "data-v-becdf225
|
|
|
61
50
|
BlocksWrapper: "div",
|
|
62
51
|
BlocksWrapperProps: {}
|
|
63
52
|
},
|
|
64
|
-
key: Qe
|
|
65
|
-
}, Xe = Symbol(), Se = {
|
|
66
|
-
Components: { registeredComponents: {} },
|
|
67
53
|
key: Xe
|
|
54
|
+
}, Ze = Symbol(), Se = {
|
|
55
|
+
Components: { registeredComponents: {} },
|
|
56
|
+
key: Ze
|
|
68
57
|
};
|
|
69
|
-
function
|
|
58
|
+
function et(e) {
|
|
70
59
|
var t;
|
|
71
60
|
return {
|
|
72
61
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -74,29 +63,29 @@ function Ze(e) {
|
|
|
74
63
|
builderBlock: e
|
|
75
64
|
};
|
|
76
65
|
}
|
|
77
|
-
const
|
|
78
|
-
log: (...e) => console.log(
|
|
79
|
-
error: (...e) => console.error(
|
|
80
|
-
warn: (...e) => console.warn(
|
|
81
|
-
debug: (...e) => console.debug(
|
|
66
|
+
const P = "vue", A = (e) => e != null, M = "[Builder.io]: ", I = {
|
|
67
|
+
log: (...e) => console.log(M, ...e),
|
|
68
|
+
error: (...e) => console.error(M, ...e),
|
|
69
|
+
warn: (...e) => console.warn(M, ...e),
|
|
70
|
+
debug: (...e) => console.debug(M, ...e)
|
|
82
71
|
};
|
|
83
|
-
function
|
|
72
|
+
function y() {
|
|
84
73
|
return typeof window < "u" && typeof document < "u";
|
|
85
74
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
75
|
+
function tt() {
|
|
76
|
+
return y() && window.self !== window.top;
|
|
88
77
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
78
|
+
function x() {
|
|
79
|
+
return tt() && (P === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
|
|
91
80
|
}
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
81
|
+
const nt = () => {
|
|
82
|
+
if (y()) {
|
|
94
83
|
const e = new URL(location.href);
|
|
95
84
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
96
85
|
} else
|
|
97
86
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
98
|
-
},
|
|
99
|
-
const e =
|
|
87
|
+
}, ot = () => typeof navigator == "object" && navigator.userAgent || "", Ce = () => {
|
|
88
|
+
const e = ot(), t = {
|
|
100
89
|
Android() {
|
|
101
90
|
return e.match(/Android/i);
|
|
102
91
|
},
|
|
@@ -113,15 +102,15 @@ const tt = () => {
|
|
|
113
102
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
114
103
|
},
|
|
115
104
|
any() {
|
|
116
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
105
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || P === "reactNative";
|
|
117
106
|
}
|
|
118
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
107
|
+
}, n = e.match(/Tablet|iPad/i), o = nt();
|
|
119
108
|
return {
|
|
120
109
|
urlPath: o == null ? void 0 : o.pathname,
|
|
121
110
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
122
111
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
123
112
|
};
|
|
124
|
-
},
|
|
113
|
+
}, rt = ({
|
|
125
114
|
builder: e,
|
|
126
115
|
context: t,
|
|
127
116
|
event: n,
|
|
@@ -132,12 +121,12 @@ const tt = () => {
|
|
|
132
121
|
builder: e,
|
|
133
122
|
context: t,
|
|
134
123
|
event: n
|
|
135
|
-
}),
|
|
136
|
-
isEditing:
|
|
137
|
-
isBrowser:
|
|
138
|
-
isServer: !
|
|
124
|
+
}), it = () => ({
|
|
125
|
+
isEditing: x(),
|
|
126
|
+
isBrowser: y(),
|
|
127
|
+
isServer: !y(),
|
|
139
128
|
getUserAttributes: () => Ce()
|
|
140
|
-
}),
|
|
129
|
+
}), st = (e, {
|
|
141
130
|
isExpression: t = !0
|
|
142
131
|
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ae = ({
|
|
143
132
|
code: e,
|
|
@@ -148,15 +137,15 @@ const tt = () => {
|
|
|
148
137
|
rootSetState: i,
|
|
149
138
|
rootState: s
|
|
150
139
|
}) => {
|
|
151
|
-
const a =
|
|
140
|
+
const a = rt({
|
|
152
141
|
builder: t,
|
|
153
142
|
context: n,
|
|
154
143
|
event: o,
|
|
155
|
-
state:
|
|
144
|
+
state: at(s, r, i)
|
|
156
145
|
});
|
|
157
146
|
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
158
147
|
};
|
|
159
|
-
function
|
|
148
|
+
function at(e, t, n) {
|
|
160
149
|
if (e === t)
|
|
161
150
|
throw new Error("rootState === localState");
|
|
162
151
|
return new Proxy(e, {
|
|
@@ -168,7 +157,7 @@ function st(e, t, n) {
|
|
|
168
157
|
}
|
|
169
158
|
});
|
|
170
159
|
}
|
|
171
|
-
const
|
|
160
|
+
const lt = (e) => (y(), ae(e));
|
|
172
161
|
function K({
|
|
173
162
|
code: e,
|
|
174
163
|
context: t,
|
|
@@ -183,10 +172,10 @@ function K({
|
|
|
183
172
|
return;
|
|
184
173
|
}
|
|
185
174
|
const a = {
|
|
186
|
-
code:
|
|
175
|
+
code: st(e, {
|
|
187
176
|
isExpression: s
|
|
188
177
|
}),
|
|
189
|
-
builder:
|
|
178
|
+
builder: it(),
|
|
190
179
|
context: t,
|
|
191
180
|
event: i,
|
|
192
181
|
rootSetState: r,
|
|
@@ -194,7 +183,7 @@ function K({
|
|
|
194
183
|
localState: n
|
|
195
184
|
};
|
|
196
185
|
try {
|
|
197
|
-
return
|
|
186
|
+
return lt(a);
|
|
198
187
|
} catch (l) {
|
|
199
188
|
I.error("Failed code evaluation: " + l.message, {
|
|
200
189
|
code: e
|
|
@@ -202,13 +191,13 @@ function K({
|
|
|
202
191
|
return;
|
|
203
192
|
}
|
|
204
193
|
}
|
|
205
|
-
const
|
|
194
|
+
const H = (e) => JSON.parse(JSON.stringify(e)), ct = (e, t, n) => {
|
|
206
195
|
if (Object(e) !== e)
|
|
207
196
|
return e;
|
|
208
197
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
209
198
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
210
199
|
};
|
|
211
|
-
const
|
|
200
|
+
const dt = ({
|
|
212
201
|
block: e,
|
|
213
202
|
context: t,
|
|
214
203
|
localState: n,
|
|
@@ -217,7 +206,7 @@ const ct = ({
|
|
|
217
206
|
}) => {
|
|
218
207
|
if (!e.bindings)
|
|
219
208
|
return e;
|
|
220
|
-
const i =
|
|
209
|
+
const i = H(e), s = {
|
|
221
210
|
...i,
|
|
222
211
|
properties: {
|
|
223
212
|
...i.properties
|
|
@@ -234,7 +223,7 @@ const ct = ({
|
|
|
234
223
|
rootSetState: r,
|
|
235
224
|
context: t
|
|
236
225
|
});
|
|
237
|
-
|
|
226
|
+
ct(s, a, c);
|
|
238
227
|
}
|
|
239
228
|
return s;
|
|
240
229
|
};
|
|
@@ -247,7 +236,7 @@ function we({
|
|
|
247
236
|
rootSetState: i
|
|
248
237
|
}) {
|
|
249
238
|
const s = e;
|
|
250
|
-
return n ?
|
|
239
|
+
return n ? dt({
|
|
251
240
|
block: s,
|
|
252
241
|
localState: o,
|
|
253
242
|
rootState: r,
|
|
@@ -255,7 +244,7 @@ function we({
|
|
|
255
244
|
context: t
|
|
256
245
|
}) : s;
|
|
257
246
|
}
|
|
258
|
-
const
|
|
247
|
+
const ut = ({
|
|
259
248
|
block: e,
|
|
260
249
|
context: t,
|
|
261
250
|
registeredComponents: n
|
|
@@ -277,7 +266,7 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
277
266
|
console.warn(`
|
|
278
267
|
Could not find a registered component named "${o}".
|
|
279
268
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
280
|
-
},
|
|
269
|
+
}, pt = ({
|
|
281
270
|
block: e,
|
|
282
271
|
context: t
|
|
283
272
|
}) => {
|
|
@@ -310,48 +299,48 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
310
299
|
},
|
|
311
300
|
block: o
|
|
312
301
|
}));
|
|
313
|
-
},
|
|
302
|
+
}, mt = () => import("./block-styles.8d24c282.js").then((e) => e.default).catch((e) => {
|
|
314
303
|
throw console.error(
|
|
315
304
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
316
305
|
e
|
|
317
306
|
), e;
|
|
318
|
-
}),
|
|
307
|
+
}), ht = () => import("./block-wrapper.c5dfbc00.js").then((e) => e.default).catch((e) => {
|
|
319
308
|
throw console.error(
|
|
320
309
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
321
310
|
e
|
|
322
311
|
), e;
|
|
323
|
-
}),
|
|
312
|
+
}), ft = () => import("./component-ref.c3fbfacf.js").then((e) => e.default).catch((e) => {
|
|
324
313
|
throw console.error(
|
|
325
314
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
326
315
|
e
|
|
327
316
|
), e;
|
|
328
|
-
}),
|
|
317
|
+
}), bt = () => import("./repeated-block.610c249f.js").then((e) => e.default).catch((e) => {
|
|
329
318
|
throw console.error(
|
|
330
319
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
331
320
|
e
|
|
332
321
|
), e;
|
|
333
|
-
}),
|
|
322
|
+
}), gt = h({
|
|
334
323
|
name: "block",
|
|
335
324
|
components: {
|
|
336
|
-
BlockStyles:
|
|
337
|
-
ComponentRef:
|
|
338
|
-
|
|
339
|
-
|
|
325
|
+
BlockStyles: L(mt),
|
|
326
|
+
ComponentRef: L(ft),
|
|
327
|
+
RepeatedBlock: L(bt),
|
|
328
|
+
BlockWrapper: L(ht)
|
|
340
329
|
},
|
|
341
330
|
props: ["block", "context", "registeredComponents"],
|
|
342
331
|
data() {
|
|
343
|
-
return { childrenContext: this.context
|
|
332
|
+
return { childrenContext: this.context };
|
|
344
333
|
},
|
|
345
334
|
computed: {
|
|
346
335
|
blockComponent() {
|
|
347
|
-
return
|
|
336
|
+
return ut({
|
|
348
337
|
block: this.block,
|
|
349
338
|
context: this.context,
|
|
350
339
|
registeredComponents: this.registeredComponents
|
|
351
340
|
});
|
|
352
341
|
},
|
|
353
342
|
repeatItem() {
|
|
354
|
-
return
|
|
343
|
+
return pt({
|
|
355
344
|
block: this.block,
|
|
356
345
|
context: this.context
|
|
357
346
|
});
|
|
@@ -387,7 +376,7 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
387
376
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
388
377
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
389
378
|
componentOptions: {
|
|
390
|
-
...
|
|
379
|
+
...et(this.processedBlock),
|
|
391
380
|
builderContext: this.context,
|
|
392
381
|
...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
|
|
393
382
|
builderComponents: this.registeredComponents
|
|
@@ -402,15 +391,15 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
402
391
|
}
|
|
403
392
|
}
|
|
404
393
|
});
|
|
405
|
-
function
|
|
394
|
+
function kt(e, t, n, o, r, i) {
|
|
406
395
|
var m;
|
|
407
|
-
const s = g("block-styles"), a = g("
|
|
408
|
-
return e.canShowBlock ? (d(),
|
|
409
|
-
|
|
396
|
+
const s = g("block-styles"), a = g("component-ref"), l = g("block", !0), c = g("block-wrapper"), p = g("repeated-block");
|
|
397
|
+
return e.canShowBlock ? (d(), u($, { key: 0 }, [
|
|
398
|
+
T(s, {
|
|
410
399
|
block: e.block,
|
|
411
400
|
context: e.context
|
|
412
401
|
}, null, 8, ["block", "context"]),
|
|
413
|
-
(m = e.blockComponent) != null && m.noWrap ? (d(),
|
|
402
|
+
(m = e.blockComponent) != null && m.noWrap ? (d(), v(a, {
|
|
414
403
|
key: 1,
|
|
415
404
|
componentRef: e.componentRefProps.componentRef,
|
|
416
405
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -420,29 +409,20 @@ function yt(e, t, n, o, r, i) {
|
|
|
420
409
|
builderBlock: e.componentRefProps.builderBlock,
|
|
421
410
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
422
411
|
isInteractive: e.componentRefProps.isInteractive
|
|
423
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(),
|
|
424
|
-
e.
|
|
425
|
-
key:
|
|
426
|
-
Wrapper: e.Tag,
|
|
427
|
-
block: e.processedBlock,
|
|
428
|
-
context: e.context,
|
|
429
|
-
hasChildren: !1
|
|
430
|
-
}, null, 8, ["Wrapper", "block", "context"])) : k("v-if", !0),
|
|
431
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p($, { key: 1 }, N(e.repeatItem, (b, C) => (d(), y(l, {
|
|
432
|
-
key: C,
|
|
412
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), u($, { key: 0 }, [
|
|
413
|
+
e.repeatItem ? (d(!0), u($, { key: 1 }, F(e.repeatItem, (b, S) => (d(), v(p, {
|
|
414
|
+
key: S,
|
|
433
415
|
repeatContext: b.context,
|
|
434
416
|
block: b.block,
|
|
435
417
|
registeredComponents: e.registeredComponents
|
|
436
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) :
|
|
437
|
-
|
|
438
|
-
key: 2,
|
|
418
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : (d(), v(c, {
|
|
419
|
+
key: 0,
|
|
439
420
|
Wrapper: e.Tag,
|
|
440
421
|
block: e.processedBlock,
|
|
441
|
-
context: e.context
|
|
442
|
-
hasChildren: !0
|
|
422
|
+
context: e.context
|
|
443
423
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
|
|
424
|
+
default: O(() => [
|
|
425
|
+
T(a, {
|
|
446
426
|
componentRef: e.componentRefProps.componentRef,
|
|
447
427
|
componentOptions: e.componentRefProps.componentOptions,
|
|
448
428
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -452,7 +432,7 @@ function yt(e, t, n, o, r, i) {
|
|
|
452
432
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
453
433
|
isInteractive: e.componentRefProps.isInteractive
|
|
454
434
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
455
|
-
(d(!0),
|
|
435
|
+
(d(!0), u($, null, F(e.childrenWithoutParentComponent, (b, S) => (d(), v(l, {
|
|
456
436
|
key: b.id,
|
|
457
437
|
block: b,
|
|
458
438
|
context: e.childrenContext,
|
|
@@ -460,14 +440,14 @@ function yt(e, t, n, o, r, i) {
|
|
|
460
440
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128))
|
|
461
441
|
]),
|
|
462
442
|
_: 1
|
|
463
|
-
}, 8, ["Wrapper", "block", "context"]))
|
|
443
|
+
}, 8, ["Wrapper", "block", "context"]))
|
|
464
444
|
], 64))
|
|
465
445
|
], 64)) : k("v-if", !0);
|
|
466
446
|
}
|
|
467
|
-
const Ie = /* @__PURE__ */ f(
|
|
447
|
+
const Ie = /* @__PURE__ */ f(gt, [["render", kt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
468
448
|
__proto__: null,
|
|
469
449
|
default: Ie
|
|
470
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
450
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = h({
|
|
471
451
|
name: "builder-blocks-wrapper",
|
|
472
452
|
props: [
|
|
473
453
|
"BlocksWrapper",
|
|
@@ -486,7 +466,7 @@ const Ie = /* @__PURE__ */ f(kt, [["render", yt], ["__file", "/home/runner/work/
|
|
|
486
466
|
methods: {
|
|
487
467
|
onClick() {
|
|
488
468
|
var e, t;
|
|
489
|
-
|
|
469
|
+
x() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
490
470
|
{
|
|
491
471
|
type: "builder.clickEmptyBlocks",
|
|
492
472
|
data: {
|
|
@@ -499,7 +479,7 @@ const Ie = /* @__PURE__ */ f(kt, [["render", yt], ["__file", "/home/runner/work/
|
|
|
499
479
|
},
|
|
500
480
|
onMouseEnter() {
|
|
501
481
|
var e, t;
|
|
502
|
-
|
|
482
|
+
x() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
503
483
|
{
|
|
504
484
|
type: "builder.hoverEmptyBlocks",
|
|
505
485
|
data: {
|
|
@@ -509,21 +489,12 @@ const Ie = /* @__PURE__ */ f(kt, [["render", yt], ["__file", "/home/runner/work/
|
|
|
509
489
|
},
|
|
510
490
|
"*"
|
|
511
491
|
));
|
|
512
|
-
},
|
|
513
|
-
_classStringToObject(e) {
|
|
514
|
-
const t = {};
|
|
515
|
-
if (typeof e != "string")
|
|
516
|
-
return t;
|
|
517
|
-
const n = e.trim().split(/\s+/);
|
|
518
|
-
for (const o of n)
|
|
519
|
-
t[o] = !0;
|
|
520
|
-
return t;
|
|
521
492
|
}
|
|
522
493
|
}
|
|
523
494
|
});
|
|
524
|
-
function
|
|
525
|
-
return d(),
|
|
526
|
-
class: e.
|
|
495
|
+
function vt(e, t, n, o, r, i) {
|
|
496
|
+
return d(), v(ke(e.BlocksWrapper), C({
|
|
497
|
+
class: e.className + " component-1k2igrjdg3x",
|
|
527
498
|
"builder-path": e.path,
|
|
528
499
|
"builder-parent-id": e.parent,
|
|
529
500
|
style: e.styleProp,
|
|
@@ -531,15 +502,15 @@ function St(e, t, n, o, r, i) {
|
|
|
531
502
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
532
503
|
onKeyPress: (s) => e.onClick()
|
|
533
504
|
}, { ...e.BlocksWrapperProps }), {
|
|
534
|
-
default:
|
|
535
|
-
|
|
505
|
+
default: O(() => [
|
|
506
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
536
507
|
]),
|
|
537
508
|
_: 3
|
|
538
509
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
539
510
|
}
|
|
540
|
-
const
|
|
511
|
+
const St = /* @__PURE__ */ f(yt, [["render", vt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), Ct = h({
|
|
541
512
|
name: "builder-blocks",
|
|
542
|
-
components: { BlocksWrapper:
|
|
513
|
+
components: { BlocksWrapper: St, Block: Ie },
|
|
543
514
|
props: [
|
|
544
515
|
"blocks",
|
|
545
516
|
"parent",
|
|
@@ -553,10 +524,10 @@ const Ct = /* @__PURE__ */ f(vt, [["render", St], ["__scopeId", "data-v-1f8aab9f
|
|
|
553
524
|
componentsContext: Se.key
|
|
554
525
|
}
|
|
555
526
|
});
|
|
556
|
-
function
|
|
527
|
+
function wt(e, t, n, o, r, i) {
|
|
557
528
|
var l, c;
|
|
558
529
|
const s = g("block"), a = g("blocks-wrapper");
|
|
559
|
-
return d(),
|
|
530
|
+
return d(), v(a, {
|
|
560
531
|
blocks: e.blocks,
|
|
561
532
|
parent: e.parent,
|
|
562
533
|
path: e.path,
|
|
@@ -564,10 +535,10 @@ function It(e, t, n, o, r, i) {
|
|
|
564
535
|
BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
|
|
565
536
|
BlocksWrapperProps: (c = e.context) == null ? void 0 : c.BlocksWrapperProps
|
|
566
537
|
}, {
|
|
567
|
-
default:
|
|
568
|
-
e.blocks ? (d(!0),
|
|
569
|
-
key:
|
|
570
|
-
block:
|
|
538
|
+
default: O(() => [
|
|
539
|
+
e.blocks ? (d(!0), u($, { key: 0 }, F(e.blocks, (p, m) => (d(), v(s, {
|
|
540
|
+
key: p.id,
|
|
541
|
+
block: p,
|
|
571
542
|
context: e.context || e.builderContext,
|
|
572
543
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
573
544
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : k("v-if", !0)
|
|
@@ -575,13 +546,13 @@ function It(e, t, n, o, r, i) {
|
|
|
575
546
|
_: 1
|
|
576
547
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
577
548
|
}
|
|
578
|
-
const q = /* @__PURE__ */ f(
|
|
549
|
+
const q = /* @__PURE__ */ f(Ct, [["render", wt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), It = h({
|
|
579
550
|
render() {
|
|
580
551
|
return ye("style", { id: this.id, innerHTML: this.styles });
|
|
581
552
|
},
|
|
582
553
|
name: "inlined-styles",
|
|
583
554
|
props: ["styles", "id"]
|
|
584
|
-
}), te = /* @__PURE__ */ f(
|
|
555
|
+
}), te = /* @__PURE__ */ f(It, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), $e = {
|
|
585
556
|
small: {
|
|
586
557
|
min: 320,
|
|
587
558
|
default: 321,
|
|
@@ -597,11 +568,11 @@ const q = /* @__PURE__ */ f(wt, [["render", It], ["__file", "/home/runner/work/b
|
|
|
597
568
|
default: 991,
|
|
598
569
|
max: 1200
|
|
599
570
|
}
|
|
600
|
-
}, Zo = (e, t = $e) => `@media (max-width: ${t[e].max}px)`,
|
|
571
|
+
}, Zo = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, $t = ({
|
|
601
572
|
small: e,
|
|
602
573
|
medium: t
|
|
603
574
|
}) => {
|
|
604
|
-
const n =
|
|
575
|
+
const n = H($e);
|
|
605
576
|
if (!e || !t)
|
|
606
577
|
return n;
|
|
607
578
|
const o = Math.floor(e / 2);
|
|
@@ -622,7 +593,7 @@ const q = /* @__PURE__ */ f(wt, [["render", It], ["__file", "/home/runner/work/b
|
|
|
622
593
|
min: i,
|
|
623
594
|
default: i + 1
|
|
624
595
|
}, n;
|
|
625
|
-
},
|
|
596
|
+
}, Rt = h({
|
|
626
597
|
name: "builder-columns",
|
|
627
598
|
components: { InlinedStyles: te, Blocks: q },
|
|
628
599
|
props: [
|
|
@@ -641,7 +612,7 @@ const q = /* @__PURE__ */ f(wt, [["render", It], ["__file", "/home/runner/work/b
|
|
|
641
612
|
cols: this.columns || [],
|
|
642
613
|
stackAt: this.stackColumnsAt || "tablet",
|
|
643
614
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
644
|
-
TARGET:
|
|
615
|
+
TARGET: P
|
|
645
616
|
};
|
|
646
617
|
},
|
|
647
618
|
computed: {
|
|
@@ -728,39 +699,28 @@ const q = /* @__PURE__ */ f(wt, [["render", It], ["__file", "/home/runner/work/b
|
|
|
728
699
|
},
|
|
729
700
|
getWidthForBreakpointSize(e) {
|
|
730
701
|
var n, o;
|
|
731
|
-
return
|
|
702
|
+
return $t(
|
|
732
703
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
733
704
|
)[e].max;
|
|
734
|
-
},
|
|
735
|
-
_classStringToObject(e) {
|
|
736
|
-
const t = {};
|
|
737
|
-
if (typeof e != "string")
|
|
738
|
-
return t;
|
|
739
|
-
const n = e.trim().split(/\s+/);
|
|
740
|
-
for (const o of n)
|
|
741
|
-
t[o] = !0;
|
|
742
|
-
return t;
|
|
743
705
|
}
|
|
744
706
|
}
|
|
745
707
|
});
|
|
746
|
-
function
|
|
708
|
+
function Tt(e, t, n, o, r, i) {
|
|
747
709
|
const s = g("inlined-styles"), a = g("blocks");
|
|
748
|
-
return d(),
|
|
749
|
-
class: e.
|
|
750
|
-
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
751
|
-
),
|
|
710
|
+
return d(), u("div", C({
|
|
711
|
+
class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
|
|
752
712
|
style: e.columnsCssVars
|
|
753
713
|
}, {}), [
|
|
754
|
-
e.TARGET !== "reactNative" ? (d(),
|
|
714
|
+
e.TARGET !== "reactNative" ? (d(), v(s, {
|
|
755
715
|
key: 0,
|
|
756
716
|
styles: e.columnsStyles
|
|
757
717
|
}, null, 8, ["styles"])) : k("v-if", !0),
|
|
758
|
-
(d(!0),
|
|
718
|
+
(d(!0), u($, null, F(e.columns, (l, c) => (d(), u("div", C({
|
|
759
719
|
key: c,
|
|
760
720
|
class: "builder-column div-16nol0lwi20-2",
|
|
761
721
|
style: e.columnCssVars(c)
|
|
762
722
|
}, {}), [
|
|
763
|
-
|
|
723
|
+
T(a, {
|
|
764
724
|
path: `component.options.columns.${c}.blocks`,
|
|
765
725
|
parent: e.builderBlock.id,
|
|
766
726
|
styleProp: {
|
|
@@ -773,24 +733,24 @@ function Et(e, t, n, o, r, i) {
|
|
|
773
733
|
], 16))), 128))
|
|
774
734
|
], 16);
|
|
775
735
|
}
|
|
776
|
-
const
|
|
736
|
+
const xt = /* @__PURE__ */ f(Rt, [["render", Tt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), Pt = h({
|
|
777
737
|
name: "builder-fragment-component",
|
|
778
738
|
props: []
|
|
779
739
|
});
|
|
780
|
-
function
|
|
781
|
-
return d(),
|
|
782
|
-
|
|
740
|
+
function Et(e, t, n, o, r, i) {
|
|
741
|
+
return d(), u("span", null, [
|
|
742
|
+
B(e.$slots, "default")
|
|
783
743
|
]);
|
|
784
744
|
}
|
|
785
|
-
const
|
|
745
|
+
const Bt = /* @__PURE__ */ f(Pt, [["render", Et], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
|
|
786
746
|
function le(e) {
|
|
787
747
|
return e.replace(/http(s)?:/, "");
|
|
788
748
|
}
|
|
789
|
-
function
|
|
749
|
+
function Wt(e = "", t, n) {
|
|
790
750
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
791
751
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
792
752
|
}
|
|
793
|
-
function
|
|
753
|
+
function At(e, t) {
|
|
794
754
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
795
755
|
return e;
|
|
796
756
|
if (t === "master")
|
|
@@ -809,11 +769,11 @@ function J(e) {
|
|
|
809
769
|
if (e.match(/builder\.io/)) {
|
|
810
770
|
let n = e;
|
|
811
771
|
const o = Number(e.split("?width=")[1]);
|
|
812
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
772
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Wt(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
813
773
|
}
|
|
814
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
774
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [At(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
815
775
|
}
|
|
816
|
-
const
|
|
776
|
+
const Vt = h({
|
|
817
777
|
name: "builder-image",
|
|
818
778
|
props: [
|
|
819
779
|
"image",
|
|
@@ -856,32 +816,21 @@ const _t = h({
|
|
|
856
816
|
};
|
|
857
817
|
return this.aspectRatio ? e : void 0;
|
|
858
818
|
}
|
|
859
|
-
},
|
|
860
|
-
methods: {
|
|
861
|
-
_classStringToObject(e) {
|
|
862
|
-
const t = {};
|
|
863
|
-
if (typeof e != "string")
|
|
864
|
-
return t;
|
|
865
|
-
const n = e.trim().split(/\s+/);
|
|
866
|
-
for (const o of n)
|
|
867
|
-
t[o] = !0;
|
|
868
|
-
return t;
|
|
869
|
-
}
|
|
870
819
|
}
|
|
871
820
|
});
|
|
872
|
-
const
|
|
821
|
+
const _t = ["srcset"], Ut = ["alt", "role", "src", "srcset", "sizes"], Ft = {
|
|
873
822
|
key: 2,
|
|
874
823
|
class: "div-1be3j8m9ewb-2"
|
|
875
824
|
};
|
|
876
|
-
function
|
|
825
|
+
function Nt(e, t, n, o, r, i) {
|
|
877
826
|
var s, a, l, c;
|
|
878
|
-
return d(),
|
|
827
|
+
return d(), u($, null, [
|
|
879
828
|
Y("picture", null, [
|
|
880
|
-
e.webpSrcSet ? (d(),
|
|
829
|
+
e.webpSrcSet ? (d(), u("source", {
|
|
881
830
|
key: 0,
|
|
882
831
|
type: "image/webp",
|
|
883
832
|
srcset: e.webpSrcSet
|
|
884
|
-
}, null, 8,
|
|
833
|
+
}, null, 8, _t)) : k("v-if", !0),
|
|
885
834
|
Y("img", {
|
|
886
835
|
loading: "lazy",
|
|
887
836
|
alt: e.altText,
|
|
@@ -892,29 +841,27 @@ function jt(e, t, n, o, r, i) {
|
|
|
892
841
|
...e.aspectRatioCss
|
|
893
842
|
}),
|
|
894
843
|
class: ve(
|
|
895
|
-
e.
|
|
896
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
897
|
-
)
|
|
844
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
898
845
|
),
|
|
899
846
|
src: e.image,
|
|
900
847
|
srcset: e.srcSetToUse,
|
|
901
848
|
sizes: e.sizes
|
|
902
|
-
}, null, 14,
|
|
849
|
+
}, null, 14, Ut)
|
|
903
850
|
]),
|
|
904
|
-
e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(),
|
|
851
|
+
e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), u("div", {
|
|
905
852
|
key: 0,
|
|
906
853
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
907
854
|
style: Q({
|
|
908
855
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
909
856
|
})
|
|
910
857
|
}, null, 4)) : k("v-if", !0),
|
|
911
|
-
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ?
|
|
912
|
-
!e.fitContent && e.$slots.default ? (d(),
|
|
913
|
-
|
|
858
|
+
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : k("v-if", !0),
|
|
859
|
+
!e.fitContent && e.$slots.default ? (d(), u("div", Ft, [
|
|
860
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
914
861
|
])) : k("v-if", !0)
|
|
915
862
|
], 64);
|
|
916
863
|
}
|
|
917
|
-
const
|
|
864
|
+
const Ot = /* @__PURE__ */ f(Vt, [["render", Nt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), Ht = h({
|
|
918
865
|
name: "builder-section-component",
|
|
919
866
|
props: ["attributes", "maxWidth"],
|
|
920
867
|
data() {
|
|
@@ -922,7 +869,7 @@ const Ft = /* @__PURE__ */ f(_t, [["render", jt], ["__scopeId", "data-v-58ca75d1
|
|
|
922
869
|
}
|
|
923
870
|
});
|
|
924
871
|
function Lt(e, t, n, o, r, i) {
|
|
925
|
-
return d(),
|
|
872
|
+
return d(), u("section", C({
|
|
926
873
|
style: {
|
|
927
874
|
width: "100%",
|
|
928
875
|
alignSelf: "stretch",
|
|
@@ -935,11 +882,11 @@ function Lt(e, t, n, o, r, i) {
|
|
|
935
882
|
marginLeft: "auto",
|
|
936
883
|
marginRight: "auto"
|
|
937
884
|
}
|
|
938
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
939
|
-
|
|
885
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
886
|
+
B(e.$slots, "default")
|
|
940
887
|
], 16);
|
|
941
888
|
}
|
|
942
|
-
const
|
|
889
|
+
const Mt = /* @__PURE__ */ f(Ht, [["render", Lt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), jt = (e) => {
|
|
943
890
|
if (e === "localhost" || e === "127.0.0.1")
|
|
944
891
|
return e;
|
|
945
892
|
const t = e.split(".");
|
|
@@ -955,14 +902,14 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
955
902
|
I.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
956
903
|
return;
|
|
957
904
|
}
|
|
958
|
-
}, Te = async (e) => Re(e),
|
|
905
|
+
}, Te = async (e) => Re(e), Dt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(A).join("; "), Kt = [["secure", ""], ["SameSite", "None"]], zt = ({
|
|
959
906
|
name: e,
|
|
960
907
|
value: t,
|
|
961
908
|
expires: n
|
|
962
909
|
}) => {
|
|
963
|
-
const r = (
|
|
964
|
-
return
|
|
965
|
-
},
|
|
910
|
+
const r = (y() ? location.protocol === "https:" : !0) ? Kt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", jt(window.location.hostname)], ...r];
|
|
911
|
+
return Dt(s);
|
|
912
|
+
}, xe = async ({
|
|
966
913
|
name: e,
|
|
967
914
|
value: t,
|
|
968
915
|
expires: n,
|
|
@@ -971,7 +918,7 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
971
918
|
try {
|
|
972
919
|
if (!o)
|
|
973
920
|
return;
|
|
974
|
-
const r =
|
|
921
|
+
const r = zt({
|
|
975
922
|
name: e,
|
|
976
923
|
value: t,
|
|
977
924
|
expires: n
|
|
@@ -980,24 +927,24 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
980
927
|
} catch (r) {
|
|
981
928
|
I.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
982
929
|
}
|
|
983
|
-
},
|
|
930
|
+
}, qt = "builder.tests", ne = (e) => `${qt}.${e}`, Gt = ({
|
|
984
931
|
contentId: e
|
|
985
932
|
}) => Te({
|
|
986
933
|
name: ne(e),
|
|
987
934
|
canTrack: !0
|
|
988
|
-
}),
|
|
935
|
+
}), Jt = ({
|
|
989
936
|
contentId: e
|
|
990
937
|
}) => Re({
|
|
991
938
|
name: ne(e),
|
|
992
939
|
canTrack: !0
|
|
993
|
-
}),
|
|
940
|
+
}), Yt = ({
|
|
994
941
|
contentId: e,
|
|
995
942
|
value: t
|
|
996
|
-
}) =>
|
|
943
|
+
}) => xe({
|
|
997
944
|
name: ne(e),
|
|
998
945
|
value: t,
|
|
999
946
|
canTrack: !0
|
|
1000
|
-
}), Pe = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0,
|
|
947
|
+
}), Pe = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0, Qt = ({
|
|
1001
948
|
id: e,
|
|
1002
949
|
variations: t
|
|
1003
950
|
}) => {
|
|
@@ -1010,9 +957,9 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1010
957
|
return i;
|
|
1011
958
|
}
|
|
1012
959
|
return e;
|
|
1013
|
-
},
|
|
1014
|
-
const t =
|
|
1015
|
-
return
|
|
960
|
+
}, Ee = (e) => {
|
|
961
|
+
const t = Qt(e);
|
|
962
|
+
return Yt({
|
|
1016
963
|
contentId: e.id,
|
|
1017
964
|
value: t
|
|
1018
965
|
}).catch((n) => {
|
|
@@ -1031,7 +978,7 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1031
978
|
testVariationId: n.id,
|
|
1032
979
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
1033
980
|
};
|
|
1034
|
-
},
|
|
981
|
+
}, Xt = ({
|
|
1035
982
|
item: e,
|
|
1036
983
|
canTrack: t
|
|
1037
984
|
}) => {
|
|
@@ -1041,9 +988,9 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1041
988
|
return;
|
|
1042
989
|
if (!Pe(e))
|
|
1043
990
|
return e;
|
|
1044
|
-
const n =
|
|
991
|
+
const n = Jt({
|
|
1045
992
|
contentId: e.id
|
|
1046
|
-
}) ||
|
|
993
|
+
}) || Ee({
|
|
1047
994
|
variations: e.variations,
|
|
1048
995
|
id: e.id
|
|
1049
996
|
}), o = Be({
|
|
@@ -1054,15 +1001,15 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1054
1001
|
...e,
|
|
1055
1002
|
...o
|
|
1056
1003
|
};
|
|
1057
|
-
},
|
|
1004
|
+
}, Zt = async ({
|
|
1058
1005
|
item: e,
|
|
1059
1006
|
canTrack: t
|
|
1060
1007
|
}) => {
|
|
1061
1008
|
if (!t || !Pe(e))
|
|
1062
1009
|
return e;
|
|
1063
|
-
const o = await
|
|
1010
|
+
const o = await Gt({
|
|
1064
1011
|
contentId: e.id
|
|
1065
|
-
}) ||
|
|
1012
|
+
}) || Ee({
|
|
1066
1013
|
variations: e.variations,
|
|
1067
1014
|
id: e.id
|
|
1068
1015
|
}), r = Be({
|
|
@@ -1073,7 +1020,7 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1073
1020
|
...e,
|
|
1074
1021
|
...r
|
|
1075
1022
|
};
|
|
1076
|
-
},
|
|
1023
|
+
}, N = (e) => A(e) ? e : !0, en = {
|
|
1077
1024
|
name: "Core:Button",
|
|
1078
1025
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1079
1026
|
defaultStyles: {
|
|
@@ -1105,7 +1052,7 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1105
1052
|
}],
|
|
1106
1053
|
static: !0,
|
|
1107
1054
|
noWrap: !0
|
|
1108
|
-
},
|
|
1055
|
+
}, tn = {
|
|
1109
1056
|
name: "Columns",
|
|
1110
1057
|
isRSC: !0,
|
|
1111
1058
|
inputs: [{
|
|
@@ -1305,7 +1252,7 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1305
1252
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1306
1253
|
advanced: !0
|
|
1307
1254
|
}]
|
|
1308
|
-
},
|
|
1255
|
+
}, nn = {
|
|
1309
1256
|
name: "Custom Code",
|
|
1310
1257
|
static: !0,
|
|
1311
1258
|
requiredPermissions: ["editCode"],
|
|
@@ -1327,7 +1274,7 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1327
1274
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1328
1275
|
advanced: !0
|
|
1329
1276
|
}]
|
|
1330
|
-
},
|
|
1277
|
+
}, on = h({
|
|
1331
1278
|
name: "builder-custom-code",
|
|
1332
1279
|
props: ["replaceNodes", "code"],
|
|
1333
1280
|
data() {
|
|
@@ -1360,31 +1307,16 @@ const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1360
1307
|
}
|
|
1361
1308
|
}
|
|
1362
1309
|
}
|
|
1363
|
-
},
|
|
1364
|
-
methods: {
|
|
1365
|
-
_classStringToObject(e) {
|
|
1366
|
-
const t = {};
|
|
1367
|
-
if (typeof e != "string")
|
|
1368
|
-
return t;
|
|
1369
|
-
const n = e.trim().split(/\s+/);
|
|
1370
|
-
for (const o of n)
|
|
1371
|
-
t[o] = !0;
|
|
1372
|
-
return t;
|
|
1373
|
-
}
|
|
1374
1310
|
}
|
|
1375
|
-
}),
|
|
1376
|
-
function
|
|
1377
|
-
return d(),
|
|
1311
|
+
}), rn = ["innerHTML"];
|
|
1312
|
+
function sn(e, t, n, o, r, i) {
|
|
1313
|
+
return d(), u("div", {
|
|
1378
1314
|
ref: "elementRef",
|
|
1379
|
-
class: ve(
|
|
1380
|
-
e._classStringToObject(
|
|
1381
|
-
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1382
|
-
)
|
|
1383
|
-
),
|
|
1315
|
+
class: ve("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
1384
1316
|
innerHTML: e.code
|
|
1385
|
-
}, null, 10,
|
|
1317
|
+
}, null, 10, rn);
|
|
1386
1318
|
}
|
|
1387
|
-
const
|
|
1319
|
+
const an = /* @__PURE__ */ f(on, [["render", sn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), ln = {
|
|
1388
1320
|
name: "Embed",
|
|
1389
1321
|
static: !0,
|
|
1390
1322
|
inputs: [{
|
|
@@ -1409,7 +1341,7 @@ const ln = /* @__PURE__ */ f(rn, [["render", an], ["__file", "/home/runner/work/
|
|
|
1409
1341
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1410
1342
|
hideFromUI: !0
|
|
1411
1343
|
}]
|
|
1412
|
-
},
|
|
1344
|
+
}, cn = ["text/javascript", "application/javascript", "application/ecmascript"], dn = (e) => cn.includes(e.type), un = h({
|
|
1413
1345
|
name: "builder-embed",
|
|
1414
1346
|
props: ["content"],
|
|
1415
1347
|
data() {
|
|
@@ -1442,7 +1374,7 @@ const ln = /* @__PURE__ */ f(rn, [["render", an], ["__file", "/home/runner/work/
|
|
|
1442
1374
|
this.scriptsInserted.push(n.src);
|
|
1443
1375
|
const o = document.createElement("script");
|
|
1444
1376
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1445
|
-
} else if (
|
|
1377
|
+
} else if (dn(n) && !this.scriptsRun.includes(n.innerText))
|
|
1446
1378
|
try {
|
|
1447
1379
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1448
1380
|
} catch (o) {
|
|
@@ -1451,21 +1383,21 @@ const ln = /* @__PURE__ */ f(rn, [["render", an], ["__file", "/home/runner/work/
|
|
|
1451
1383
|
}
|
|
1452
1384
|
}
|
|
1453
1385
|
}
|
|
1454
|
-
}),
|
|
1455
|
-
function
|
|
1456
|
-
return d(),
|
|
1386
|
+
}), pn = ["innerHTML"];
|
|
1387
|
+
function mn(e, t, n, o, r, i) {
|
|
1388
|
+
return d(), u("div", {
|
|
1457
1389
|
class: "builder-embed",
|
|
1458
1390
|
ref: "elem",
|
|
1459
1391
|
innerHTML: e.content
|
|
1460
|
-
}, null, 8,
|
|
1392
|
+
}, null, 8, pn);
|
|
1461
1393
|
}
|
|
1462
|
-
const
|
|
1394
|
+
const hn = /* @__PURE__ */ f(un, [["render", mn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), fn = {
|
|
1463
1395
|
name: "Fragment",
|
|
1464
1396
|
static: !0,
|
|
1465
1397
|
hidden: !0,
|
|
1466
1398
|
canHaveChildren: !0,
|
|
1467
1399
|
noWrap: !0
|
|
1468
|
-
},
|
|
1400
|
+
}, bn = {
|
|
1469
1401
|
name: "Image",
|
|
1470
1402
|
static: !0,
|
|
1471
1403
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1487,13 +1419,13 @@ const fn = /* @__PURE__ */ f(pn, [["render", hn], ["__file", "/home/runner/work/
|
|
|
1487
1419
|
e.delete("srcset"), e.delete("noWebp");
|
|
1488
1420
|
function n(s, a = 6e4) {
|
|
1489
1421
|
return new Promise((l, c) => {
|
|
1490
|
-
const
|
|
1422
|
+
const p = document.createElement("img");
|
|
1491
1423
|
let m = !1;
|
|
1492
|
-
|
|
1493
|
-
m = !0, l(
|
|
1494
|
-
},
|
|
1424
|
+
p.onload = () => {
|
|
1425
|
+
m = !0, l(p);
|
|
1426
|
+
}, p.addEventListener("error", (b) => {
|
|
1495
1427
|
console.warn("Image load failed", b.error), c(b.error);
|
|
1496
|
-
}),
|
|
1428
|
+
}), p.src = s, setTimeout(() => {
|
|
1497
1429
|
m || c(new Error("Image load timed out"));
|
|
1498
1430
|
}, a);
|
|
1499
1431
|
});
|
|
@@ -1565,7 +1497,7 @@ const fn = /* @__PURE__ */ f(pn, [["render", hn], ["__file", "/home/runner/work/
|
|
|
1565
1497
|
advanced: !0,
|
|
1566
1498
|
defaultValue: 0.7041
|
|
1567
1499
|
}]
|
|
1568
|
-
},
|
|
1500
|
+
}, gn = {
|
|
1569
1501
|
name: "Raw:Img",
|
|
1570
1502
|
hideFromInsertMenu: !0,
|
|
1571
1503
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1578,7 +1510,7 @@ const fn = /* @__PURE__ */ f(pn, [["render", hn], ["__file", "/home/runner/work/
|
|
|
1578
1510
|
}],
|
|
1579
1511
|
noWrap: !0,
|
|
1580
1512
|
static: !0
|
|
1581
|
-
},
|
|
1513
|
+
}, kn = h({
|
|
1582
1514
|
name: "builder-img-component",
|
|
1583
1515
|
props: [
|
|
1584
1516
|
"backgroundSize",
|
|
@@ -1589,11 +1521,11 @@ const fn = /* @__PURE__ */ f(pn, [["render", hn], ["__file", "/home/runner/work/
|
|
|
1589
1521
|
"attributes"
|
|
1590
1522
|
],
|
|
1591
1523
|
data() {
|
|
1592
|
-
return { isEditing:
|
|
1524
|
+
return { isEditing: x, filterAttrs: z };
|
|
1593
1525
|
}
|
|
1594
|
-
}),
|
|
1595
|
-
function
|
|
1596
|
-
return d(),
|
|
1526
|
+
}), yn = ["alt", "src"];
|
|
1527
|
+
function vn(e, t, n, o, r, i) {
|
|
1528
|
+
return d(), u("img", C({
|
|
1597
1529
|
style: {
|
|
1598
1530
|
objectFit: e.backgroundSize || "cover",
|
|
1599
1531
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -1601,9 +1533,9 @@ function Sn(e, t, n, o, r, i) {
|
|
|
1601
1533
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1602
1534
|
alt: e.altText,
|
|
1603
1535
|
src: e.imgSrc || e.image
|
|
1604
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1536
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, yn);
|
|
1605
1537
|
}
|
|
1606
|
-
const
|
|
1538
|
+
const Sn = /* @__PURE__ */ f(kn, [["render", vn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), Cn = {
|
|
1607
1539
|
name: "Core:Section",
|
|
1608
1540
|
static: !0,
|
|
1609
1541
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1642,7 +1574,7 @@ const Cn = /* @__PURE__ */ f(yn, [["render", Sn], ["__file", "/home/runner/work/
|
|
|
1642
1574
|
}
|
|
1643
1575
|
}
|
|
1644
1576
|
}]
|
|
1645
|
-
},
|
|
1577
|
+
}, wn = {
|
|
1646
1578
|
name: "Slot",
|
|
1647
1579
|
isRSC: !0,
|
|
1648
1580
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1654,15 +1586,15 @@ const Cn = /* @__PURE__ */ f(yn, [["render", Sn], ["__file", "/home/runner/work/
|
|
|
1654
1586
|
required: !0,
|
|
1655
1587
|
defaultValue: "children"
|
|
1656
1588
|
}]
|
|
1657
|
-
},
|
|
1589
|
+
}, In = h({
|
|
1658
1590
|
name: "builder-slot",
|
|
1659
1591
|
components: { Blocks: q },
|
|
1660
1592
|
props: ["builderContext", "name"]
|
|
1661
1593
|
});
|
|
1662
|
-
function
|
|
1594
|
+
function $n(e, t, n, o, r, i) {
|
|
1663
1595
|
var a, l, c;
|
|
1664
1596
|
const s = g("blocks");
|
|
1665
|
-
return d(),
|
|
1597
|
+
return d(), u("div", C(
|
|
1666
1598
|
{ style: {
|
|
1667
1599
|
pointerEvents: "auto"
|
|
1668
1600
|
} },
|
|
@@ -1670,7 +1602,7 @@ function Rn(e, t, n, o, r, i) {
|
|
|
1670
1602
|
"builder-slot": e.name
|
|
1671
1603
|
}
|
|
1672
1604
|
), [
|
|
1673
|
-
|
|
1605
|
+
T(s, {
|
|
1674
1606
|
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
1675
1607
|
path: `symbol.data.${e.name}`,
|
|
1676
1608
|
context: e.builderContext,
|
|
@@ -1678,7 +1610,7 @@ function Rn(e, t, n, o, r, i) {
|
|
|
1678
1610
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1679
1611
|
], 16);
|
|
1680
1612
|
}
|
|
1681
|
-
const
|
|
1613
|
+
const Rn = /* @__PURE__ */ f(In, [["render", $n], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/slot/slot.vue"]]), Tn = {
|
|
1682
1614
|
name: "Symbol",
|
|
1683
1615
|
noWrap: !0,
|
|
1684
1616
|
static: !0,
|
|
@@ -1711,7 +1643,7 @@ const Tn = /* @__PURE__ */ f($n, [["render", Rn], ["__file", "/home/runner/work/
|
|
|
1711
1643
|
hideFromUI: !0,
|
|
1712
1644
|
type: "boolean"
|
|
1713
1645
|
}]
|
|
1714
|
-
},
|
|
1646
|
+
}, xn = {
|
|
1715
1647
|
name: "Text",
|
|
1716
1648
|
static: !0,
|
|
1717
1649
|
isRSC: !0,
|
|
@@ -1729,21 +1661,21 @@ const Tn = /* @__PURE__ */ f($n, [["render", Rn], ["__file", "/home/runner/work/
|
|
|
1729
1661
|
height: "auto",
|
|
1730
1662
|
textAlign: "center"
|
|
1731
1663
|
}
|
|
1732
|
-
},
|
|
1664
|
+
}, Pn = h({
|
|
1733
1665
|
name: "builder-text",
|
|
1734
1666
|
props: ["text"]
|
|
1735
|
-
}),
|
|
1736
|
-
function
|
|
1667
|
+
}), En = ["innerHTML"];
|
|
1668
|
+
function Bn(e, t, n, o, r, i) {
|
|
1737
1669
|
var s;
|
|
1738
|
-
return d(),
|
|
1670
|
+
return d(), u("div", {
|
|
1739
1671
|
class: "builder-text",
|
|
1740
1672
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
1741
1673
|
style: {
|
|
1742
1674
|
outline: "none"
|
|
1743
1675
|
}
|
|
1744
|
-
}, null, 8,
|
|
1676
|
+
}, null, 8, En);
|
|
1745
1677
|
}
|
|
1746
|
-
const
|
|
1678
|
+
const Wn = /* @__PURE__ */ f(Pn, [["render", Bn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), An = {
|
|
1747
1679
|
name: "Video",
|
|
1748
1680
|
canHaveChildren: !0,
|
|
1749
1681
|
defaultStyles: {
|
|
@@ -1824,7 +1756,7 @@ const An = /* @__PURE__ */ f(xn, [["render", Wn], ["__file", "/home/runner/work/
|
|
|
1824
1756
|
defaultValue: !0,
|
|
1825
1757
|
advanced: !0
|
|
1826
1758
|
}]
|
|
1827
|
-
},
|
|
1759
|
+
}, Vn = h({
|
|
1828
1760
|
name: "builder-video",
|
|
1829
1761
|
props: [
|
|
1830
1762
|
"autoPlay",
|
|
@@ -1869,16 +1801,16 @@ const An = /* @__PURE__ */ f(xn, [["render", Wn], ["__file", "/home/runner/work/
|
|
|
1869
1801
|
};
|
|
1870
1802
|
}
|
|
1871
1803
|
}
|
|
1872
|
-
}),
|
|
1804
|
+
}), _n = { style: {
|
|
1873
1805
|
position: "relative"
|
|
1874
|
-
} },
|
|
1806
|
+
} }, Un = ["preload", "src", "poster"], Fn = ["src"], Nn = {
|
|
1875
1807
|
key: 1,
|
|
1876
1808
|
style: {
|
|
1877
1809
|
display: "flex",
|
|
1878
1810
|
flexDirection: "column",
|
|
1879
1811
|
alignItems: "stretch"
|
|
1880
1812
|
}
|
|
1881
|
-
},
|
|
1813
|
+
}, On = {
|
|
1882
1814
|
key: 2,
|
|
1883
1815
|
style: {
|
|
1884
1816
|
pointerEvents: "none",
|
|
@@ -1892,10 +1824,10 @@ const An = /* @__PURE__ */ f(xn, [["render", Wn], ["__file", "/home/runner/work/
|
|
|
1892
1824
|
height: "100%"
|
|
1893
1825
|
}
|
|
1894
1826
|
};
|
|
1895
|
-
function
|
|
1896
|
-
var s, a, l, c,
|
|
1897
|
-
return d(),
|
|
1898
|
-
Y("video",
|
|
1827
|
+
function Hn(e, t, n, o, r, i) {
|
|
1828
|
+
var s, a, l, c, p, m, b;
|
|
1829
|
+
return d(), u("div", _n, [
|
|
1830
|
+
Y("video", C({
|
|
1899
1831
|
class: "builder-video",
|
|
1900
1832
|
preload: e.preload || "metadata",
|
|
1901
1833
|
style: {
|
|
@@ -1913,13 +1845,13 @@ function Mn(e, t, n, o, r, i) {
|
|
|
1913
1845
|
src: e.video || "no-src",
|
|
1914
1846
|
poster: e.posterImage
|
|
1915
1847
|
}, e.spreadProps), [
|
|
1916
|
-
e.lazyLoad ? k("v-if", !0) : (d(),
|
|
1848
|
+
e.lazyLoad ? k("v-if", !0) : (d(), u("source", {
|
|
1917
1849
|
key: 0,
|
|
1918
1850
|
type: "video/mp4",
|
|
1919
1851
|
src: e.video
|
|
1920
|
-
}, null, 8,
|
|
1921
|
-
], 16,
|
|
1922
|
-
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(),
|
|
1852
|
+
}, null, 8, Fn))
|
|
1853
|
+
], 16, Un),
|
|
1854
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(), u("div", {
|
|
1923
1855
|
key: 0,
|
|
1924
1856
|
style: Q({
|
|
1925
1857
|
width: "100%",
|
|
@@ -1928,66 +1860,66 @@ function Mn(e, t, n, o, r, i) {
|
|
|
1928
1860
|
fontSize: "0px"
|
|
1929
1861
|
})
|
|
1930
1862
|
}, null, 4)) : k("v-if", !0),
|
|
1931
|
-
((
|
|
1932
|
-
|
|
1863
|
+
((p = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : p.length) && e.fitContent ? (d(), u("div", Nn, [
|
|
1864
|
+
B(e.$slots, "default")
|
|
1933
1865
|
])) : k("v-if", !0),
|
|
1934
|
-
((b = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : b.length) && !e.fitContent ? (d(),
|
|
1935
|
-
|
|
1866
|
+
((b = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : b.length) && !e.fitContent ? (d(), u("div", On, [
|
|
1867
|
+
B(e.$slots, "default")
|
|
1936
1868
|
])) : k("v-if", !0)
|
|
1937
1869
|
]);
|
|
1938
1870
|
}
|
|
1939
|
-
const Ln = /* @__PURE__ */ f(
|
|
1940
|
-
component:
|
|
1871
|
+
const Ln = /* @__PURE__ */ f(Vn, [["render", Hn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), ce = () => [{
|
|
1872
|
+
component: Qe,
|
|
1873
|
+
...en
|
|
1874
|
+
}, {
|
|
1875
|
+
component: xt,
|
|
1941
1876
|
...tn
|
|
1942
1877
|
}, {
|
|
1943
|
-
component:
|
|
1878
|
+
component: an,
|
|
1944
1879
|
...nn
|
|
1945
1880
|
}, {
|
|
1946
|
-
component:
|
|
1947
|
-
...
|
|
1881
|
+
component: hn,
|
|
1882
|
+
...ln
|
|
1948
1883
|
}, {
|
|
1949
|
-
component:
|
|
1950
|
-
...
|
|
1884
|
+
component: Bt,
|
|
1885
|
+
...fn
|
|
1951
1886
|
}, {
|
|
1952
|
-
component:
|
|
1887
|
+
component: Ot,
|
|
1953
1888
|
...bn
|
|
1954
1889
|
}, {
|
|
1955
|
-
component:
|
|
1890
|
+
component: Sn,
|
|
1956
1891
|
...gn
|
|
1957
1892
|
}, {
|
|
1958
|
-
component:
|
|
1959
|
-
...
|
|
1960
|
-
}, {
|
|
1961
|
-
component: Ht,
|
|
1962
|
-
...wn
|
|
1893
|
+
component: Mt,
|
|
1894
|
+
...Cn
|
|
1963
1895
|
}, {
|
|
1964
1896
|
component: Jo,
|
|
1965
|
-
...
|
|
1897
|
+
...Tn
|
|
1966
1898
|
}, {
|
|
1967
|
-
component:
|
|
1968
|
-
...
|
|
1899
|
+
component: Wn,
|
|
1900
|
+
...xn
|
|
1969
1901
|
}, {
|
|
1970
1902
|
component: Ln,
|
|
1971
|
-
...
|
|
1903
|
+
...An
|
|
1972
1904
|
}, {
|
|
1973
|
-
component:
|
|
1974
|
-
...
|
|
1975
|
-
}], de = [],
|
|
1905
|
+
component: Rn,
|
|
1906
|
+
...wn
|
|
1907
|
+
}], de = [], Mn = (e) => ({
|
|
1976
1908
|
type: "builder.registerComponent",
|
|
1977
1909
|
data: Z(e)
|
|
1978
|
-
}),
|
|
1910
|
+
}), jn = (e) => {
|
|
1979
1911
|
const t = e.toString().trim();
|
|
1980
1912
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1981
|
-
},
|
|
1913
|
+
}, Dn = (e) => typeof e == "function" ? jn(e) : H(e), Z = ({
|
|
1982
1914
|
inputs: e,
|
|
1983
1915
|
...t
|
|
1984
1916
|
}) => ({
|
|
1985
|
-
...
|
|
1917
|
+
...H(t),
|
|
1986
1918
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
|
|
1987
1919
|
...o,
|
|
1988
|
-
[r]:
|
|
1920
|
+
[r]: Dn(i)
|
|
1989
1921
|
}), {}))
|
|
1990
|
-
}),
|
|
1922
|
+
}), Kn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1991
1923
|
function getAndSetVariantId() {
|
|
1992
1924
|
function setCookie(name, value, days) {
|
|
1993
1925
|
let expires = '';
|
|
@@ -2043,7 +1975,7 @@ const Ln = /* @__PURE__ */ f(_n, [["render", Mn], ["__file", "/home/runner/work/
|
|
|
2043
1975
|
}).join('');
|
|
2044
1976
|
styleEl.innerHTML = newStyleStr;
|
|
2045
1977
|
}
|
|
2046
|
-
}`,
|
|
1978
|
+
}`, zn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2047
1979
|
if (!navigator.cookieEnabled) {
|
|
2048
1980
|
return;
|
|
2049
1981
|
}
|
|
@@ -2077,42 +2009,42 @@ const Ln = /* @__PURE__ */ f(_n, [["render", Mn], ["__file", "/home/runner/work/
|
|
|
2077
2009
|
thisScriptEl?.remove();
|
|
2078
2010
|
}
|
|
2079
2011
|
return;
|
|
2080
|
-
}`, We = "builderIoAbTest", Ae = "builderIoRenderContent",
|
|
2012
|
+
}`, We = "builderIoAbTest", Ae = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2081
2013
|
...t,
|
|
2082
2014
|
testVariationId: t.id,
|
|
2083
2015
|
id: e == null ? void 0 : e.id
|
|
2084
|
-
})),
|
|
2016
|
+
})), qn = ({
|
|
2085
2017
|
canTrack: e,
|
|
2086
2018
|
content: t
|
|
2087
|
-
}) => !(!(
|
|
2088
|
-
window.${We} = ${
|
|
2089
|
-
window.${Ae} = ${
|
|
2090
|
-
`,
|
|
2019
|
+
}) => !(!(j(t).length > 0) || !e), Gn = (e) => e === "react" || e === "reactNative", Ve = Gn(P), Jn = () => `
|
|
2020
|
+
window.${We} = ${Kn}
|
|
2021
|
+
window.${Ae} = ${zn}
|
|
2022
|
+
`, Yn = (e, t) => `
|
|
2091
2023
|
window.${We}(
|
|
2092
2024
|
"${t}",${JSON.stringify(e)}, ${Ve}
|
|
2093
|
-
)`,
|
|
2025
|
+
)`, Qn = ({
|
|
2094
2026
|
contentId: e,
|
|
2095
2027
|
variationId: t
|
|
2096
2028
|
}) => `window.${Ae}(
|
|
2097
2029
|
"${t}", "${e}", ${Ve}
|
|
2098
|
-
)`,
|
|
2030
|
+
)`, Xn = h({
|
|
2099
2031
|
render() {
|
|
2100
2032
|
return ye("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2101
2033
|
},
|
|
2102
2034
|
name: "inlined-script",
|
|
2103
2035
|
props: ["scriptStr", "id"]
|
|
2104
|
-
}), _e = /* @__PURE__ */ f(
|
|
2105
|
-
function
|
|
2036
|
+
}), _e = /* @__PURE__ */ f(Xn, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
|
|
2037
|
+
function Zn() {
|
|
2106
2038
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2107
2039
|
}
|
|
2108
|
-
function
|
|
2109
|
-
const e =
|
|
2040
|
+
function eo() {
|
|
2041
|
+
const e = Zn().fetch;
|
|
2110
2042
|
if (typeof e > "u")
|
|
2111
2043
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2112
2044
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2113
2045
|
return e;
|
|
2114
2046
|
}
|
|
2115
|
-
const
|
|
2047
|
+
const Ue = eo();
|
|
2116
2048
|
function D(e, t = null, n = ".") {
|
|
2117
2049
|
return Object.keys(e).reduce((o, r) => {
|
|
2118
2050
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -2125,27 +2057,27 @@ function D(e, t = null, n = ".") {
|
|
|
2125
2057
|
};
|
|
2126
2058
|
}, {});
|
|
2127
2059
|
}
|
|
2128
|
-
const
|
|
2060
|
+
const to = "v3", ue = "builder.", no = "options.", oo = (e) => {
|
|
2129
2061
|
const t = {};
|
|
2130
2062
|
return e.forEach((n, o) => {
|
|
2131
2063
|
t[o] = n;
|
|
2132
2064
|
}), t;
|
|
2133
|
-
},
|
|
2065
|
+
}, Fe = (e) => {
|
|
2134
2066
|
if (!e)
|
|
2135
2067
|
return {};
|
|
2136
|
-
const t =
|
|
2068
|
+
const t = Ne(e), n = {};
|
|
2137
2069
|
return Object.keys(t).forEach((o) => {
|
|
2138
2070
|
if (o.startsWith(ue)) {
|
|
2139
|
-
const r = o.replace(ue, "").replace(
|
|
2071
|
+
const r = o.replace(ue, "").replace(no, "");
|
|
2140
2072
|
n[r] = t[o];
|
|
2141
2073
|
}
|
|
2142
2074
|
}), n;
|
|
2143
|
-
},
|
|
2144
|
-
if (!
|
|
2075
|
+
}, ro = () => {
|
|
2076
|
+
if (!y())
|
|
2145
2077
|
return {};
|
|
2146
2078
|
const e = new URLSearchParams(window.location.search);
|
|
2147
|
-
return
|
|
2148
|
-
},
|
|
2079
|
+
return Fe(e);
|
|
2080
|
+
}, Ne = (e) => e instanceof URLSearchParams ? oo(e) : e, pe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, oe = (e) => {
|
|
2149
2081
|
let {
|
|
2150
2082
|
noTraverse: t = !1
|
|
2151
2083
|
} = e;
|
|
@@ -2158,61 +2090,61 @@ const no = "v3", ue = "builder.", oo = "options.", ro = (e) => {
|
|
|
2158
2090
|
includeRefs: a = !0,
|
|
2159
2091
|
enrich: l,
|
|
2160
2092
|
locale: c,
|
|
2161
|
-
apiVersion:
|
|
2093
|
+
apiVersion: p = to,
|
|
2162
2094
|
fields: m,
|
|
2163
2095
|
omit: b,
|
|
2164
|
-
offset:
|
|
2165
|
-
cacheSeconds:
|
|
2096
|
+
offset: S,
|
|
2097
|
+
cacheSeconds: R,
|
|
2166
2098
|
staleCacheSeconds: W,
|
|
2167
2099
|
sort: V,
|
|
2168
2100
|
includeUnpublished: re
|
|
2169
2101
|
} = e;
|
|
2170
2102
|
if (!s)
|
|
2171
2103
|
throw new Error("Missing API key");
|
|
2172
|
-
if (!["v2", "v3"].includes(
|
|
2173
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
2104
|
+
if (!["v2", "v3"].includes(p))
|
|
2105
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${p}'`);
|
|
2174
2106
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2175
|
-
const w = new URL(`https://cdn.builder.io/api/${
|
|
2176
|
-
if (w.searchParams.set("omit", b || "meta.componentsUsed"), m && w.searchParams.set("fields", m), Number.isFinite(
|
|
2177
|
-
const
|
|
2107
|
+
const w = new URL(`https://cdn.builder.io/api/${p}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2108
|
+
if (w.searchParams.set("omit", b || "meta.componentsUsed"), m && w.searchParams.set("fields", m), Number.isFinite(S) && S > -1 && w.searchParams.set("offset", String(Math.floor(S))), typeof re == "boolean" && w.searchParams.set("includeUnpublished", String(re)), R && pe(R) && w.searchParams.set("cacheSeconds", String(R)), W && pe(W) && w.searchParams.set("staleCacheSeconds", String(W)), V) {
|
|
2109
|
+
const E = D({
|
|
2178
2110
|
sort: V
|
|
2179
2111
|
});
|
|
2180
|
-
for (const _ in
|
|
2181
|
-
w.searchParams.set(_, JSON.stringify(
|
|
2112
|
+
for (const _ in E)
|
|
2113
|
+
w.searchParams.set(_, JSON.stringify(E[_]));
|
|
2182
2114
|
}
|
|
2183
|
-
const
|
|
2184
|
-
...
|
|
2185
|
-
...
|
|
2186
|
-
}, ie = D(
|
|
2187
|
-
for (const
|
|
2188
|
-
w.searchParams.set(
|
|
2115
|
+
const ze = {
|
|
2116
|
+
...ro(),
|
|
2117
|
+
...Ne(e.options || {})
|
|
2118
|
+
}, ie = D(ze);
|
|
2119
|
+
for (const E in ie)
|
|
2120
|
+
w.searchParams.set(E, String(ie[E]));
|
|
2189
2121
|
if (o && w.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
2190
|
-
const
|
|
2122
|
+
const E = D({
|
|
2191
2123
|
query: r
|
|
2192
2124
|
});
|
|
2193
|
-
for (const _ in
|
|
2194
|
-
w.searchParams.set(_, JSON.stringify(
|
|
2125
|
+
for (const _ in E)
|
|
2126
|
+
w.searchParams.set(_, JSON.stringify(E[_]));
|
|
2195
2127
|
}
|
|
2196
2128
|
return w;
|
|
2197
|
-
},
|
|
2129
|
+
}, io = (e) => "results" in e;
|
|
2198
2130
|
async function G(e) {
|
|
2199
|
-
const t = await
|
|
2131
|
+
const t = await Oe({
|
|
2200
2132
|
...e,
|
|
2201
2133
|
limit: 1
|
|
2202
2134
|
});
|
|
2203
2135
|
return t && t[0] || null;
|
|
2204
2136
|
}
|
|
2205
|
-
const er = G,
|
|
2137
|
+
const er = G, so = async (e) => {
|
|
2206
2138
|
const t = oe(e);
|
|
2207
|
-
return await (await
|
|
2208
|
-
},
|
|
2209
|
-
const o =
|
|
2210
|
-
if (n.search.includes("preview="), !o || !(
|
|
2139
|
+
return await (await Ue(t.href)).json();
|
|
2140
|
+
}, ao = async (e, t, n = oe(e)) => {
|
|
2141
|
+
const o = N(e.canTrack);
|
|
2142
|
+
if (n.search.includes("preview="), !o || !(y() || P === "reactNative"))
|
|
2211
2143
|
return t.results;
|
|
2212
2144
|
try {
|
|
2213
2145
|
const r = [];
|
|
2214
2146
|
for (const i of t.results)
|
|
2215
|
-
r.push(await
|
|
2147
|
+
r.push(await Zt({
|
|
2216
2148
|
item: i,
|
|
2217
2149
|
canTrack: o
|
|
2218
2150
|
}));
|
|
@@ -2222,10 +2154,10 @@ const er = G, ao = async (e) => {
|
|
|
2222
2154
|
}
|
|
2223
2155
|
return t.results;
|
|
2224
2156
|
};
|
|
2225
|
-
async function
|
|
2157
|
+
async function Oe(e) {
|
|
2226
2158
|
try {
|
|
2227
|
-
const t = oe(e), n = await
|
|
2228
|
-
return
|
|
2159
|
+
const t = oe(e), n = await so(e);
|
|
2160
|
+
return io(n) ? ao(e, n) : (I.error("Error fetching data. ", {
|
|
2229
2161
|
url: t,
|
|
2230
2162
|
content: n,
|
|
2231
2163
|
options: e
|
|
@@ -2234,9 +2166,13 @@ async function je(e) {
|
|
|
2234
2166
|
return I.error("Error fetching data. ", t), null;
|
|
2235
2167
|
}
|
|
2236
2168
|
}
|
|
2237
|
-
const tr =
|
|
2169
|
+
const tr = Oe, lo = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
2170
|
+
function He(e, t) {
|
|
2171
|
+
const n = new URL(t.origin), o = n.hostname;
|
|
2172
|
+
return (e || lo).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
2173
|
+
}
|
|
2238
2174
|
function co() {
|
|
2239
|
-
return !
|
|
2175
|
+
return !y() || x() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2240
2176
|
}
|
|
2241
2177
|
function uo() {
|
|
2242
2178
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
@@ -2244,7 +2180,7 @@ function uo() {
|
|
|
2244
2180
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2245
2181
|
});
|
|
2246
2182
|
}
|
|
2247
|
-
function
|
|
2183
|
+
function Le() {
|
|
2248
2184
|
return uo().replace(/-/g, "");
|
|
2249
2185
|
}
|
|
2250
2186
|
const Me = "builderSessionId", po = async ({
|
|
@@ -2265,20 +2201,20 @@ const Me = "builderSessionId", po = async ({
|
|
|
2265
2201
|
canTrack: e
|
|
2266
2202
|
}), n;
|
|
2267
2203
|
}
|
|
2268
|
-
}, mo = () =>
|
|
2204
|
+
}, mo = () => Le(), ho = ({
|
|
2269
2205
|
id: e,
|
|
2270
2206
|
canTrack: t
|
|
2271
|
-
}) =>
|
|
2207
|
+
}) => xe({
|
|
2272
2208
|
name: Me,
|
|
2273
2209
|
value: e,
|
|
2274
2210
|
canTrack: t
|
|
2275
|
-
}),
|
|
2211
|
+
}), je = () => y() && typeof localStorage < "u" ? localStorage : void 0, fo = ({
|
|
2276
2212
|
key: e,
|
|
2277
2213
|
canTrack: t
|
|
2278
2214
|
}) => {
|
|
2279
2215
|
var n;
|
|
2280
2216
|
try {
|
|
2281
|
-
return t ? (n =
|
|
2217
|
+
return t ? (n = je()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2282
2218
|
} catch (o) {
|
|
2283
2219
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2284
2220
|
return;
|
|
@@ -2290,17 +2226,17 @@ const Me = "builderSessionId", po = async ({
|
|
|
2290
2226
|
}) => {
|
|
2291
2227
|
var o;
|
|
2292
2228
|
try {
|
|
2293
|
-
t && ((o =
|
|
2229
|
+
t && ((o = je()) == null || o.setItem(e, n));
|
|
2294
2230
|
} catch (r) {
|
|
2295
2231
|
console.debug("[LocalStorage] SET error: ", r);
|
|
2296
2232
|
}
|
|
2297
|
-
},
|
|
2233
|
+
}, De = "builderVisitorId", go = ({
|
|
2298
2234
|
canTrack: e
|
|
2299
2235
|
}) => {
|
|
2300
2236
|
if (!e)
|
|
2301
2237
|
return;
|
|
2302
2238
|
const t = fo({
|
|
2303
|
-
key:
|
|
2239
|
+
key: De,
|
|
2304
2240
|
canTrack: e
|
|
2305
2241
|
});
|
|
2306
2242
|
if (A(t))
|
|
@@ -2312,11 +2248,11 @@ const Me = "builderSessionId", po = async ({
|
|
|
2312
2248
|
canTrack: e
|
|
2313
2249
|
}), n;
|
|
2314
2250
|
}
|
|
2315
|
-
}, ko = () =>
|
|
2251
|
+
}, ko = () => Le(), yo = ({
|
|
2316
2252
|
id: e,
|
|
2317
2253
|
canTrack: t
|
|
2318
2254
|
}) => bo({
|
|
2319
|
-
key:
|
|
2255
|
+
key: De,
|
|
2320
2256
|
value: e,
|
|
2321
2257
|
canTrack: t
|
|
2322
2258
|
}), vo = async ({
|
|
@@ -2362,7 +2298,7 @@ async function ee(e) {
|
|
|
2362
2298
|
I.error("Missing API key for track call. Please provide your API key.");
|
|
2363
2299
|
return;
|
|
2364
2300
|
}
|
|
2365
|
-
if (!!e.canTrack && !
|
|
2301
|
+
if (!!e.canTrack && !x() && !!(y() || P === "reactNative"))
|
|
2366
2302
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2367
2303
|
method: "POST",
|
|
2368
2304
|
body: JSON.stringify({
|
|
@@ -2422,10 +2358,10 @@ const Co = (e, t, n = !0) => {
|
|
|
2422
2358
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2423
2359
|
}
|
|
2424
2360
|
};
|
|
2425
|
-
}, $o = "0.12.
|
|
2361
|
+
}, $o = "0.12.3", fe = {};
|
|
2426
2362
|
function Ro(e, t) {
|
|
2427
2363
|
let n = fe[e];
|
|
2428
|
-
if (n || (n = fe[e] = []), n.push(t),
|
|
2364
|
+
if (n || (n = fe[e] = []), n.push(t), y()) {
|
|
2429
2365
|
const o = {
|
|
2430
2366
|
type: "builder.register",
|
|
2431
2367
|
data: {
|
|
@@ -2464,12 +2400,12 @@ const To = () => {
|
|
|
2464
2400
|
});
|
|
2465
2401
|
};
|
|
2466
2402
|
let be = !1;
|
|
2467
|
-
const
|
|
2403
|
+
const xo = (e = {}) => {
|
|
2468
2404
|
var t, n;
|
|
2469
|
-
be || (be = !0,
|
|
2405
|
+
be || (be = !0, y() && ((t = window.parent) == null || t.postMessage({
|
|
2470
2406
|
type: "builder.sdkInfo",
|
|
2471
2407
|
data: {
|
|
2472
|
-
target:
|
|
2408
|
+
target: P,
|
|
2473
2409
|
version: $o,
|
|
2474
2410
|
supportsPatchUpdates: !1,
|
|
2475
2411
|
supportsAddBlockScoping: !0,
|
|
@@ -2480,40 +2416,43 @@ const Eo = (e = {}) => {
|
|
|
2480
2416
|
data: {
|
|
2481
2417
|
options: e
|
|
2482
2418
|
}
|
|
2483
|
-
}, "*"), window.addEventListener("message", ({
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2419
|
+
}, "*"), window.addEventListener("message", (o) => {
|
|
2420
|
+
var i, s;
|
|
2421
|
+
if (!He(e.trustedHosts, o))
|
|
2422
|
+
return;
|
|
2423
|
+
const {
|
|
2424
|
+
data: r
|
|
2425
|
+
} = o;
|
|
2426
|
+
if (!!(r != null && r.type))
|
|
2427
|
+
switch (r.type) {
|
|
2489
2428
|
case "builder.evaluate": {
|
|
2490
|
-
const
|
|
2491
|
-
let
|
|
2429
|
+
const a = r.data.text, l = r.data.arguments || [], c = r.data.id, p = new Function(a);
|
|
2430
|
+
let m, b = null;
|
|
2492
2431
|
try {
|
|
2493
|
-
|
|
2494
|
-
} catch (
|
|
2495
|
-
|
|
2432
|
+
m = p.apply(null, l);
|
|
2433
|
+
} catch (S) {
|
|
2434
|
+
b = S;
|
|
2496
2435
|
}
|
|
2497
|
-
|
|
2436
|
+
b ? (i = window.parent) == null || i.postMessage({
|
|
2498
2437
|
type: "builder.evaluateError",
|
|
2499
2438
|
data: {
|
|
2500
|
-
id:
|
|
2501
|
-
error:
|
|
2439
|
+
id: c,
|
|
2440
|
+
error: b.message
|
|
2502
2441
|
}
|
|
2503
|
-
}, "*") :
|
|
2504
|
-
var
|
|
2505
|
-
(
|
|
2442
|
+
}, "*") : m && typeof m.then == "function" ? m.then((S) => {
|
|
2443
|
+
var R;
|
|
2444
|
+
(R = window.parent) == null || R.postMessage({
|
|
2506
2445
|
type: "builder.evaluateResult",
|
|
2507
2446
|
data: {
|
|
2508
|
-
id:
|
|
2509
|
-
result:
|
|
2447
|
+
id: c,
|
|
2448
|
+
result: S
|
|
2510
2449
|
}
|
|
2511
2450
|
}, "*");
|
|
2512
|
-
}).catch(console.error) : (
|
|
2451
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
2513
2452
|
type: "builder.evaluateResult",
|
|
2514
2453
|
data: {
|
|
2515
|
-
result:
|
|
2516
|
-
id:
|
|
2454
|
+
result: m,
|
|
2455
|
+
id: c
|
|
2517
2456
|
}
|
|
2518
2457
|
}, "*");
|
|
2519
2458
|
break;
|
|
@@ -2525,6 +2464,7 @@ const Eo = (e = {}) => {
|
|
|
2525
2464
|
props: [
|
|
2526
2465
|
"builderContextSignal",
|
|
2527
2466
|
"contentWrapper",
|
|
2467
|
+
"trustedHosts",
|
|
2528
2468
|
"model",
|
|
2529
2469
|
"context",
|
|
2530
2470
|
"canTrack",
|
|
@@ -2558,10 +2498,10 @@ const Eo = (e = {}) => {
|
|
|
2558
2498
|
mounted() {
|
|
2559
2499
|
(() => {
|
|
2560
2500
|
var n, o;
|
|
2561
|
-
if (
|
|
2562
|
-
if (
|
|
2501
|
+
if (y()) {
|
|
2502
|
+
if (x() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2563
2503
|
new CustomEvent("initeditingbldr")
|
|
2564
|
-
), this.builderContextSignal.content &&
|
|
2504
|
+
), this.builderContextSignal.content && N(this.canTrack)) {
|
|
2565
2505
|
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
2566
2506
|
ee({
|
|
2567
2507
|
type: "impression",
|
|
@@ -2624,7 +2564,7 @@ const Eo = (e = {}) => {
|
|
|
2624
2564
|
}
|
|
2625
2565
|
},
|
|
2626
2566
|
unmounted() {
|
|
2627
|
-
|
|
2567
|
+
y() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2628
2568
|
"builder:component:stateChangeListenerActivated",
|
|
2629
2569
|
this.emitStateUpdate
|
|
2630
2570
|
));
|
|
@@ -2697,6 +2637,8 @@ const Eo = (e = {}) => {
|
|
|
2697
2637
|
},
|
|
2698
2638
|
processMessage(e) {
|
|
2699
2639
|
var n;
|
|
2640
|
+
if (!He(this.trustedHosts, e))
|
|
2641
|
+
return;
|
|
2700
2642
|
const { data: t } = e;
|
|
2701
2643
|
if (t)
|
|
2702
2644
|
switch (t.type) {
|
|
@@ -2735,7 +2677,7 @@ const Eo = (e = {}) => {
|
|
|
2735
2677
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2736
2678
|
ee({
|
|
2737
2679
|
type: "click",
|
|
2738
|
-
canTrack:
|
|
2680
|
+
canTrack: N(this.canTrack),
|
|
2739
2681
|
contentId: r,
|
|
2740
2682
|
apiKey: this.apiKey,
|
|
2741
2683
|
variationId: o !== r ? o : void 0,
|
|
@@ -2758,7 +2700,7 @@ const Eo = (e = {}) => {
|
|
|
2758
2700
|
);
|
|
2759
2701
|
},
|
|
2760
2702
|
handleRequest({ url: e, key: t }) {
|
|
2761
|
-
|
|
2703
|
+
Ue(e).then((n) => n.json()).then((n) => {
|
|
2762
2704
|
var r, i;
|
|
2763
2705
|
const o = {
|
|
2764
2706
|
...this.builderContextSignal.rootState,
|
|
@@ -2773,7 +2715,7 @@ const Eo = (e = {}) => {
|
|
|
2773
2715
|
var t, n, o;
|
|
2774
2716
|
const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2775
2717
|
Object.entries(e).forEach(([r, i]) => {
|
|
2776
|
-
if (i && (!this.httpReqsData[r] ||
|
|
2718
|
+
if (i && (!this.httpReqsData[r] || x())) {
|
|
2777
2719
|
const s = this.evalExpression(i);
|
|
2778
2720
|
this.handleRequest({
|
|
2779
2721
|
url: s,
|
|
@@ -2783,12 +2725,12 @@ const Eo = (e = {}) => {
|
|
|
2783
2725
|
});
|
|
2784
2726
|
},
|
|
2785
2727
|
emitStateUpdate() {
|
|
2786
|
-
|
|
2728
|
+
x() && window.dispatchEvent(
|
|
2787
2729
|
new CustomEvent(
|
|
2788
2730
|
"builder:component:stateChange",
|
|
2789
2731
|
{
|
|
2790
2732
|
detail: {
|
|
2791
|
-
state:
|
|
2733
|
+
state: H(this.builderContextSignal.rootState),
|
|
2792
2734
|
ref: {
|
|
2793
2735
|
name: this.model
|
|
2794
2736
|
}
|
|
@@ -2798,7 +2740,7 @@ const Eo = (e = {}) => {
|
|
|
2798
2740
|
);
|
|
2799
2741
|
},
|
|
2800
2742
|
elementRef_onIniteditingbldr(e) {
|
|
2801
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), To(),
|
|
2743
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), To(), xo({
|
|
2802
2744
|
...this.locale ? {
|
|
2803
2745
|
locale: this.locale
|
|
2804
2746
|
} : {},
|
|
@@ -2807,12 +2749,15 @@ const Eo = (e = {}) => {
|
|
|
2807
2749
|
} : {},
|
|
2808
2750
|
...this.enrich ? {
|
|
2809
2751
|
enrich: this.enrich
|
|
2752
|
+
} : {},
|
|
2753
|
+
...this.trustedHosts ? {
|
|
2754
|
+
trustedHosts: this.trustedHosts
|
|
2810
2755
|
} : {}
|
|
2811
2756
|
}), Object.values(
|
|
2812
2757
|
this.builderContextSignal.componentInfos
|
|
2813
2758
|
).forEach((t) => {
|
|
2814
2759
|
var o;
|
|
2815
|
-
const n =
|
|
2760
|
+
const n = Mn(t);
|
|
2816
2761
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
2817
2762
|
}), window.addEventListener(
|
|
2818
2763
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2830,29 +2775,18 @@ const Eo = (e = {}) => {
|
|
|
2830
2775
|
}).then((i) => {
|
|
2831
2776
|
i && this.mergeNewContent(i);
|
|
2832
2777
|
});
|
|
2833
|
-
},
|
|
2834
|
-
_classStringToObject(e) {
|
|
2835
|
-
const t = {};
|
|
2836
|
-
if (typeof e != "string")
|
|
2837
|
-
return t;
|
|
2838
|
-
const n = e.trim().split(/\s+/);
|
|
2839
|
-
for (const o of n)
|
|
2840
|
-
t[o] = !0;
|
|
2841
|
-
return t;
|
|
2842
2778
|
}
|
|
2843
2779
|
}
|
|
2844
2780
|
});
|
|
2845
|
-
function
|
|
2781
|
+
function Eo(e, t, n, o, r, i) {
|
|
2846
2782
|
var s, a, l;
|
|
2847
|
-
return e.builderContextSignal.content ? (d(),
|
|
2783
|
+
return e.builderContextSignal.content ? (d(), v(ke(e.ContentWrapper), C({
|
|
2848
2784
|
key: e.forceReRenderCount,
|
|
2849
2785
|
ref: "elementRef",
|
|
2850
2786
|
onClick: (c) => e.onClick(c),
|
|
2851
2787
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
2852
2788
|
"builder-model": e.model,
|
|
2853
|
-
class: e.
|
|
2854
|
-
`variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`
|
|
2855
|
-
),
|
|
2789
|
+
class: `variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`,
|
|
2856
2790
|
onIniteditingbldr: (c) => e.elementRef_onIniteditingbldr(c),
|
|
2857
2791
|
onInitpreviewingbldr: (c) => e.elementRef_onInitpreviewingbldr(c)
|
|
2858
2792
|
}, {
|
|
@@ -2862,13 +2796,13 @@ function xo(e, t, n, o, r, i) {
|
|
|
2862
2796
|
},
|
|
2863
2797
|
...e.contentWrapperProps
|
|
2864
2798
|
}), {
|
|
2865
|
-
default:
|
|
2866
|
-
|
|
2799
|
+
default: O(() => [
|
|
2800
|
+
B(e.$slots, "default")
|
|
2867
2801
|
]),
|
|
2868
2802
|
_: 3
|
|
2869
2803
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : k("v-if", !0);
|
|
2870
2804
|
}
|
|
2871
|
-
const Bo = /* @__PURE__ */ f(Po, [["render",
|
|
2805
|
+
const Bo = /* @__PURE__ */ f(Po, [["render", Eo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), Wo = (e) => {
|
|
2872
2806
|
var i, s;
|
|
2873
2807
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (s = e.fileUrl) != null ? s : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
|
|
2874
2808
|
let r = "";
|
|
@@ -2917,6 +2851,10 @@ ${Ao({
|
|
|
2917
2851
|
customFonts: this.customFonts
|
|
2918
2852
|
})}
|
|
2919
2853
|
|
|
2854
|
+
.builder-button {
|
|
2855
|
+
all: unset;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2920
2858
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
2921
2859
|
margin: 0;
|
|
2922
2860
|
}
|
|
@@ -2933,11 +2871,11 @@ ${Ao({
|
|
|
2933
2871
|
};
|
|
2934
2872
|
}
|
|
2935
2873
|
});
|
|
2936
|
-
function
|
|
2874
|
+
function Uo(e, t, n, o, r, i) {
|
|
2937
2875
|
const s = g("inlined-styles");
|
|
2938
|
-
return d(),
|
|
2876
|
+
return d(), v(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
2939
2877
|
}
|
|
2940
|
-
const
|
|
2878
|
+
const Fo = /* @__PURE__ */ f(_o, [["render", Uo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), No = ({
|
|
2941
2879
|
content: e,
|
|
2942
2880
|
data: t,
|
|
2943
2881
|
locale: n
|
|
@@ -2954,7 +2892,7 @@ const No = /* @__PURE__ */ f(_o, [["render", Oo], ["__file", "/home/runner/work/
|
|
|
2954
2892
|
locale: n
|
|
2955
2893
|
} : {}
|
|
2956
2894
|
};
|
|
2957
|
-
},
|
|
2895
|
+
}, Oo = ({
|
|
2958
2896
|
content: e,
|
|
2959
2897
|
data: t
|
|
2960
2898
|
}) => e ? {
|
|
@@ -2964,12 +2902,12 @@ const No = /* @__PURE__ */ f(_o, [["render", Oo], ["__file", "/home/runner/work/
|
|
|
2964
2902
|
...t
|
|
2965
2903
|
},
|
|
2966
2904
|
meta: e == null ? void 0 : e.meta
|
|
2967
|
-
} : void 0,
|
|
2905
|
+
} : void 0, Ho = qe, Lo = h({
|
|
2968
2906
|
name: "content-component",
|
|
2969
2907
|
components: {
|
|
2970
2908
|
EnableEditor: Bo,
|
|
2971
2909
|
InlinedScript: _e,
|
|
2972
|
-
ContentStyles:
|
|
2910
|
+
ContentStyles: Fo,
|
|
2973
2911
|
Blocks: q
|
|
2974
2912
|
},
|
|
2975
2913
|
props: [
|
|
@@ -2989,12 +2927,13 @@ const No = /* @__PURE__ */ f(_o, [["render", Oo], ["__file", "/home/runner/work/
|
|
|
2989
2927
|
"showContent",
|
|
2990
2928
|
"contentWrapper",
|
|
2991
2929
|
"contentWrapperProps",
|
|
2930
|
+
"trustedHosts",
|
|
2992
2931
|
"isSsrAbTest"
|
|
2993
2932
|
],
|
|
2994
2933
|
data() {
|
|
2995
2934
|
var e, t;
|
|
2996
2935
|
return {
|
|
2997
|
-
scriptStr:
|
|
2936
|
+
scriptStr: Qn({
|
|
2998
2937
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
2999
2938
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
3000
2939
|
}),
|
|
@@ -3006,19 +2945,19 @@ const No = /* @__PURE__ */ f(_o, [["render", Oo], ["__file", "/home/runner/work/
|
|
|
3006
2945
|
(n, { component: o, ...r }) => ({
|
|
3007
2946
|
...n,
|
|
3008
2947
|
[r.name]: {
|
|
3009
|
-
component:
|
|
2948
|
+
component: Ho(o),
|
|
3010
2949
|
...Z(r)
|
|
3011
2950
|
}
|
|
3012
2951
|
}),
|
|
3013
2952
|
{}
|
|
3014
2953
|
),
|
|
3015
2954
|
builderContextSignal: {
|
|
3016
|
-
content:
|
|
2955
|
+
content: Oo({
|
|
3017
2956
|
content: this.content,
|
|
3018
2957
|
data: this.data
|
|
3019
2958
|
}),
|
|
3020
2959
|
localState: void 0,
|
|
3021
|
-
rootState:
|
|
2960
|
+
rootState: No({
|
|
3022
2961
|
content: this.content,
|
|
3023
2962
|
data: this.data,
|
|
3024
2963
|
locale: this.locale
|
|
@@ -3042,7 +2981,7 @@ const No = /* @__PURE__ */ f(_o, [["render", Oo], ["__file", "/home/runner/work/
|
|
|
3042
2981
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
3043
2982
|
BlocksWrapperProps: this.blocksWrapperProps || {}
|
|
3044
2983
|
},
|
|
3045
|
-
TARGET:
|
|
2984
|
+
TARGET: P
|
|
3046
2985
|
};
|
|
3047
2986
|
},
|
|
3048
2987
|
provide() {
|
|
@@ -3059,9 +2998,9 @@ const No = /* @__PURE__ */ f(_o, [["render", Oo], ["__file", "/home/runner/work/
|
|
|
3059
2998
|
}
|
|
3060
2999
|
}
|
|
3061
3000
|
});
|
|
3062
|
-
function
|
|
3001
|
+
function Mo(e, t, n, o, r, i) {
|
|
3063
3002
|
const s = g("inlined-script"), a = g("content-styles"), l = g("blocks"), c = g("enable-editor");
|
|
3064
|
-
return d(),
|
|
3003
|
+
return d(), v(c, C({
|
|
3065
3004
|
content: e.content,
|
|
3066
3005
|
data: e.data,
|
|
3067
3006
|
model: e.model,
|
|
@@ -3074,22 +3013,23 @@ function Lo(e, t, n, o, r, i) {
|
|
|
3074
3013
|
showContent: e.showContent,
|
|
3075
3014
|
builderContextSignal: e.builderContextSignal,
|
|
3076
3015
|
contentWrapper: e.contentWrapper,
|
|
3077
|
-
contentWrapperProps: e.contentWrapperProps
|
|
3016
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
3017
|
+
trustedHosts: e.trustedHosts
|
|
3078
3018
|
}, {}), {
|
|
3079
|
-
default:
|
|
3080
|
-
var
|
|
3019
|
+
default: O(() => {
|
|
3020
|
+
var p, m, b, S, R, W, V;
|
|
3081
3021
|
return [
|
|
3082
|
-
e.isSsrAbTest ? (d(),
|
|
3022
|
+
e.isSsrAbTest ? (d(), v(s, {
|
|
3083
3023
|
key: 0,
|
|
3084
3024
|
scriptStr: e.scriptStr
|
|
3085
3025
|
}, null, 8, ["scriptStr"])) : k("v-if", !0),
|
|
3086
|
-
e.TARGET !== "reactNative" ? (d(),
|
|
3026
|
+
e.TARGET !== "reactNative" ? (d(), v(a, {
|
|
3087
3027
|
key: 1,
|
|
3088
|
-
contentId: (
|
|
3028
|
+
contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3089
3029
|
cssCode: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.cssCode,
|
|
3090
|
-
customFonts: (
|
|
3030
|
+
customFonts: (R = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : R.customFonts
|
|
3091
3031
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : k("v-if", !0),
|
|
3092
|
-
|
|
3032
|
+
T(l, {
|
|
3093
3033
|
blocks: (V = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : V.blocks,
|
|
3094
3034
|
context: e.builderContextSignal,
|
|
3095
3035
|
registeredComponents: e.registeredComponents
|
|
@@ -3097,14 +3037,14 @@ function Lo(e, t, n, o, r, i) {
|
|
|
3097
3037
|
];
|
|
3098
3038
|
}),
|
|
3099
3039
|
_: 1
|
|
3100
|
-
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
|
|
3040
|
+
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
3101
3041
|
}
|
|
3102
|
-
const
|
|
3042
|
+
const jo = /* @__PURE__ */ f(Lo, [["render", Mo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Do = h({
|
|
3103
3043
|
name: "content-variants",
|
|
3104
3044
|
components: {
|
|
3105
3045
|
InlinedScript: _e,
|
|
3106
3046
|
InlinedStyles: te,
|
|
3107
|
-
ContentComponent:
|
|
3047
|
+
ContentComponent: jo
|
|
3108
3048
|
},
|
|
3109
3049
|
props: [
|
|
3110
3050
|
"canTrack",
|
|
@@ -3122,17 +3062,18 @@ const Ho = /* @__PURE__ */ f(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
3122
3062
|
"blocksWrapper",
|
|
3123
3063
|
"blocksWrapperProps",
|
|
3124
3064
|
"contentWrapper",
|
|
3125
|
-
"contentWrapperProps"
|
|
3065
|
+
"contentWrapperProps",
|
|
3066
|
+
"trustedHosts"
|
|
3126
3067
|
],
|
|
3127
3068
|
data() {
|
|
3128
3069
|
return {
|
|
3129
|
-
shouldRenderVariants:
|
|
3130
|
-
canTrack:
|
|
3070
|
+
shouldRenderVariants: qn({
|
|
3071
|
+
canTrack: N(this.canTrack),
|
|
3131
3072
|
content: this.content
|
|
3132
3073
|
}),
|
|
3133
|
-
TARGET:
|
|
3134
|
-
getScriptString:
|
|
3135
|
-
getVariants:
|
|
3074
|
+
TARGET: P,
|
|
3075
|
+
getScriptString: Jn,
|
|
3076
|
+
getVariants: j
|
|
3136
3077
|
};
|
|
3137
3078
|
},
|
|
3138
3079
|
mounted() {
|
|
@@ -3141,8 +3082,8 @@ const Ho = /* @__PURE__ */ f(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
3141
3082
|
computed: {
|
|
3142
3083
|
updateCookieAndStylesScriptStr() {
|
|
3143
3084
|
var e;
|
|
3144
|
-
return
|
|
3145
|
-
|
|
3085
|
+
return Yn(
|
|
3086
|
+
j(this.content).map((t) => ({
|
|
3146
3087
|
id: t.testVariationId,
|
|
3147
3088
|
testRatio: t.testRatio
|
|
3148
3089
|
})),
|
|
@@ -3150,16 +3091,16 @@ const Ho = /* @__PURE__ */ f(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
3150
3091
|
);
|
|
3151
3092
|
},
|
|
3152
3093
|
hideVariantsStyleString() {
|
|
3153
|
-
return
|
|
3094
|
+
return j(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
3154
3095
|
},
|
|
3155
3096
|
defaultContent() {
|
|
3156
3097
|
var e;
|
|
3157
3098
|
return this.shouldRenderVariants ? {
|
|
3158
3099
|
...this.content,
|
|
3159
3100
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3160
|
-
} :
|
|
3101
|
+
} : Xt({
|
|
3161
3102
|
item: this.content,
|
|
3162
|
-
canTrack:
|
|
3103
|
+
canTrack: N(this.canTrack)
|
|
3163
3104
|
});
|
|
3164
3105
|
}
|
|
3165
3106
|
}
|
|
@@ -3167,20 +3108,20 @@ const Ho = /* @__PURE__ */ f(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
3167
3108
|
function Ko(e, t, n, o, r, i) {
|
|
3168
3109
|
var c;
|
|
3169
3110
|
const s = g("inlined-script"), a = g("inlined-styles"), l = g("content-component");
|
|
3170
|
-
return d(),
|
|
3171
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(),
|
|
3111
|
+
return d(), u($, null, [
|
|
3112
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), v(s, {
|
|
3172
3113
|
key: 0,
|
|
3173
3114
|
scriptStr: e.getScriptString()
|
|
3174
3115
|
}, null, 8, ["scriptStr"])) : k("v-if", !0),
|
|
3175
|
-
e.shouldRenderVariants ? (d(),
|
|
3176
|
-
|
|
3116
|
+
e.shouldRenderVariants ? (d(), u($, { key: 1 }, [
|
|
3117
|
+
T(a, {
|
|
3177
3118
|
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3178
3119
|
styles: e.hideVariantsStyleString
|
|
3179
3120
|
}, null, 8, ["id", "styles"]),
|
|
3180
|
-
|
|
3181
|
-
(d(!0),
|
|
3182
|
-
key:
|
|
3183
|
-
content:
|
|
3121
|
+
T(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3122
|
+
(d(!0), u($, null, F(e.getVariants(e.content), (p, m) => (d(), v(l, {
|
|
3123
|
+
key: p.testVariationId,
|
|
3124
|
+
content: p,
|
|
3184
3125
|
showContent: !1,
|
|
3185
3126
|
model: e.model,
|
|
3186
3127
|
data: e.data,
|
|
@@ -3196,10 +3137,11 @@ function Ko(e, t, n, o, r, i) {
|
|
|
3196
3137
|
blocksWrapper: e.blocksWrapper,
|
|
3197
3138
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
3198
3139
|
contentWrapper: e.contentWrapper,
|
|
3199
|
-
contentWrapperProps: e.contentWrapperProps
|
|
3200
|
-
|
|
3140
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
3141
|
+
trustedHosts: e.trustedHosts
|
|
3142
|
+
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
3201
3143
|
], 64)) : k("v-if", !0),
|
|
3202
|
-
|
|
3144
|
+
T(l, C({
|
|
3203
3145
|
content: e.defaultContent,
|
|
3204
3146
|
showContent: !0,
|
|
3205
3147
|
model: e.model,
|
|
@@ -3216,13 +3158,14 @@ function Ko(e, t, n, o, r, i) {
|
|
|
3216
3158
|
blocksWrapper: e.blocksWrapper,
|
|
3217
3159
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
3218
3160
|
contentWrapper: e.contentWrapper,
|
|
3219
|
-
contentWrapperProps: e.contentWrapperProps
|
|
3161
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
3162
|
+
trustedHosts: e.trustedHosts
|
|
3220
3163
|
}, {
|
|
3221
3164
|
key: e.shouldRenderVariants.toString()
|
|
3222
|
-
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"])
|
|
3165
|
+
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
3223
3166
|
], 64);
|
|
3224
3167
|
}
|
|
3225
|
-
const
|
|
3168
|
+
const Ke = /* @__PURE__ */ f(Do, [["render", Ko], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), zo = async ({
|
|
3226
3169
|
builderContextValue: e,
|
|
3227
3170
|
symbol: t
|
|
3228
3171
|
}) => {
|
|
@@ -3241,7 +3184,7 @@ const De = /* @__PURE__ */ f(Do, [["render", Ko], ["__file", "/home/runner/work/
|
|
|
3241
3184
|
});
|
|
3242
3185
|
}, qo = h({
|
|
3243
3186
|
name: "builder-symbol",
|
|
3244
|
-
components: { ContentVariants:
|
|
3187
|
+
components: { ContentVariants: Ke },
|
|
3245
3188
|
props: [
|
|
3246
3189
|
"js",
|
|
3247
3190
|
"attributes",
|
|
@@ -3270,7 +3213,7 @@ const De = /* @__PURE__ */ f(Do, [["render", Ko], ["__file", "/home/runner/work/
|
|
|
3270
3213
|
className() {
|
|
3271
3214
|
var e, t;
|
|
3272
3215
|
return [
|
|
3273
|
-
|
|
3216
|
+
this.attributes.class,
|
|
3274
3217
|
"builder-symbol",
|
|
3275
3218
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
3276
3219
|
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -3290,25 +3233,14 @@ const De = /* @__PURE__ */ f(Do, [["render", Ko], ["__file", "/home/runner/work/
|
|
|
3290
3233
|
}).then((e) => {
|
|
3291
3234
|
e && (this.contentToUse = e);
|
|
3292
3235
|
});
|
|
3293
|
-
},
|
|
3294
|
-
_classStringToObject(e) {
|
|
3295
|
-
const t = {};
|
|
3296
|
-
if (typeof e != "string")
|
|
3297
|
-
return t;
|
|
3298
|
-
const n = e.trim().split(/\s+/);
|
|
3299
|
-
for (const o of n)
|
|
3300
|
-
t[o] = !0;
|
|
3301
|
-
return t;
|
|
3302
3236
|
}
|
|
3303
3237
|
}
|
|
3304
3238
|
});
|
|
3305
3239
|
function Go(e, t, n, o, r, i) {
|
|
3306
|
-
var a, l, c,
|
|
3240
|
+
var a, l, c, p, m;
|
|
3307
3241
|
const s = g("content-variants");
|
|
3308
|
-
return d(),
|
|
3309
|
-
|
|
3310
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3311
|
-
R(s, {
|
|
3242
|
+
return d(), u("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3243
|
+
T(s, {
|
|
3312
3244
|
__isNestedRender: !0,
|
|
3313
3245
|
apiVersion: e.builderContext.apiVersion,
|
|
3314
3246
|
apiKey: e.builderContext.apiKey,
|
|
@@ -3320,16 +3252,16 @@ function Go(e, t, n, o, r, i) {
|
|
|
3320
3252
|
data: {
|
|
3321
3253
|
...(l = e.symbol) == null ? void 0 : l.data,
|
|
3322
3254
|
...e.builderContext.localState,
|
|
3323
|
-
...(
|
|
3255
|
+
...(p = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : p.state
|
|
3324
3256
|
},
|
|
3325
3257
|
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
3326
3258
|
content: e.contentToUse
|
|
3327
3259
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3328
3260
|
], 16);
|
|
3329
3261
|
}
|
|
3330
|
-
const Jo = /* @__PURE__ */ f(qo, [["render", Go], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), or = q, rr =
|
|
3262
|
+
const Jo = /* @__PURE__ */ f(qo, [["render", Go], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), or = q, rr = Ke, ge = {};
|
|
3331
3263
|
function ir(e) {
|
|
3332
|
-
if (
|
|
3264
|
+
if (y()) {
|
|
3333
3265
|
Object.assign(ge, e);
|
|
3334
3266
|
const t = {
|
|
3335
3267
|
type: "builder.settingsChange",
|
|
@@ -3350,7 +3282,7 @@ const sr = async (e) => {
|
|
|
3350
3282
|
urlPath: t
|
|
3351
3283
|
} : {}
|
|
3352
3284
|
},
|
|
3353
|
-
options:
|
|
3285
|
+
options: Fe(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3354
3286
|
};
|
|
3355
3287
|
return {
|
|
3356
3288
|
apiKey: n.apiKey,
|
|
@@ -3361,16 +3293,16 @@ const sr = async (e) => {
|
|
|
3361
3293
|
export {
|
|
3362
3294
|
sr as A,
|
|
3363
3295
|
Ie as B,
|
|
3364
|
-
|
|
3296
|
+
Ke as C,
|
|
3365
3297
|
Xo as D,
|
|
3366
|
-
|
|
3298
|
+
Bt as F,
|
|
3367
3299
|
te as I,
|
|
3368
3300
|
or as R,
|
|
3369
|
-
|
|
3370
|
-
|
|
3301
|
+
Mt as S,
|
|
3302
|
+
P as T,
|
|
3371
3303
|
Ln as V,
|
|
3372
3304
|
f as _,
|
|
3373
|
-
|
|
3305
|
+
$t as a,
|
|
3374
3306
|
Zo as b,
|
|
3375
3307
|
A as c,
|
|
3376
3308
|
X as d,
|
|
@@ -3378,22 +3310,22 @@ export {
|
|
|
3378
3310
|
q as f,
|
|
3379
3311
|
we as g,
|
|
3380
3312
|
rr as h,
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3313
|
+
Qe as i,
|
|
3314
|
+
xt as j,
|
|
3315
|
+
Ot as k,
|
|
3384
3316
|
Jo as l,
|
|
3385
|
-
|
|
3386
|
-
|
|
3317
|
+
Wn as m,
|
|
3318
|
+
x as n,
|
|
3387
3319
|
co as o,
|
|
3388
|
-
|
|
3389
|
-
|
|
3320
|
+
Mn as p,
|
|
3321
|
+
ao as q,
|
|
3390
3322
|
Ro as r,
|
|
3391
3323
|
ir as s,
|
|
3392
|
-
|
|
3324
|
+
Oe as t,
|
|
3393
3325
|
G as u,
|
|
3394
3326
|
tr as v,
|
|
3395
|
-
|
|
3327
|
+
Ho as w,
|
|
3396
3328
|
er as x,
|
|
3397
|
-
|
|
3329
|
+
Fe as y,
|
|
3398
3330
|
nr as z
|
|
3399
3331
|
};
|