@builder.io/sdk-vue 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.f25ea71f.cjs → block-styles.3b3ffdbf.cjs} +1 -1
- package/packages/_vue2/dist/{block-styles.d7d7aa69.js → block-styles.a206dd50.js} +3 -3
- package/packages/{_vue3/dist/get-processed-block.348e1332.js → _vue2/dist/get-processed-block.34a63cf8.js} +1 -1
- package/packages/{_vue3/dist/get-processed-block.49919209.cjs → _vue2/dist/get-processed-block.c3bfda4f.cjs} +1 -1
- package/packages/_vue2/dist/{index.ea6d5c33.js → index.e8dd60dc.js} +338 -340
- package/packages/_vue2/dist/index.ffa2cf17.cjs +30 -0
- package/packages/_vue2/dist/{render-block.8a810b21.cjs → render-block.065c34a7.cjs} +2 -2
- package/packages/_vue2/dist/{render-block.68538b72.js → render-block.fd86fb8a.js} +5 -5
- package/packages/_vue2/dist/{render-component.fa85c266.cjs → render-component.933ccff1.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.d5a06a9f.js → render-component.f953c827.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.32e2a109.js → render-inlined-styles.9195825e.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.c58a27b9.cjs → render-inlined-styles.fee45ae3.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.9563405f.cjs → render-repeated-block.7f32ee89.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.c577be97.js → render-repeated-block.9721be56.js} +2 -2
- package/packages/_vue2/dist/render-styles.7f8fcf1c.cjs +31 -0
- package/packages/_vue2/dist/render-styles.c4b6de30.js +86 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-content/render-content.types.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +1 -1
- package/packages/_vue2/dist/src/context/types.d.ts +4 -4
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +2 -2
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/track/index.d.ts +2 -2
- package/packages/_vue2/dist/src/functions/track/interaction.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/nullable.d.ts +1 -1
- package/packages/_vue2/dist/src/types/builder-block.d.ts +1 -1
- package/packages/_vue2/dist/src/types/can-track.d.ts +1 -1
- package/packages/_vue2/dist/src/types/components.d.ts +1 -1
- package/packages/_vue2/dist/src/types/deep-partial.d.ts +1 -1
- package/packages/_vue2/dist/src/types/element.d.ts +1 -1
- package/packages/_vue2/dist/src/types/typescript.d.ts +3 -3
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.8ee7887b.cjs → block-styles.6603a147.cjs} +1 -1
- package/packages/_vue3/dist/{block-styles.b74d2b45.js → block-styles.ccb131cb.js} +3 -3
- package/packages/{_vue2/dist/get-processed-block.d3c744f7.cjs → _vue3/dist/get-processed-block.956c12d9.cjs} +1 -1
- package/packages/{_vue2/dist/get-processed-block.ef627078.js → _vue3/dist/get-processed-block.c6dad91c.js} +1 -1
- package/packages/_vue3/dist/index.a4af8d34.cjs +30 -0
- package/packages/_vue3/dist/{index.5773f262.js → index.e6017963.js} +333 -334
- package/packages/_vue3/dist/{render-block.f48dafa3.js → render-block.433cd92c.js} +5 -5
- package/packages/_vue3/dist/{render-block.1021bf96.cjs → render-block.7d476a41.cjs} +2 -2
- package/packages/_vue3/dist/{render-component.f152b6e4.cjs → render-component.44ee48cd.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.2ae850d5.js → render-component.54264dc4.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.da7419c9.js → render-inlined-styles.4a982631.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.9dd02e33.cjs → render-inlined-styles.9d6df3cd.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.58283c8b.cjs → render-repeated-block.0ea95b83.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.0c8d0906.js → render-repeated-block.87f57d29.js} +2 -2
- package/packages/_vue3/dist/render-styles.04b3dbe6.js +80 -0
- package/packages/_vue3/dist/render-styles.830f02aa.cjs +31 -0
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-content/render-content.types.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +1 -1
- package/packages/_vue3/dist/src/context/types.d.ts +4 -4
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +2 -2
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/track/index.d.ts +2 -2
- package/packages/_vue3/dist/src/functions/track/interaction.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/nullable.d.ts +1 -1
- package/packages/_vue3/dist/src/types/builder-block.d.ts +1 -1
- package/packages/_vue3/dist/src/types/can-track.d.ts +1 -1
- package/packages/_vue3/dist/src/types/components.d.ts +1 -1
- package/packages/_vue3/dist/src/types/deep-partial.d.ts +1 -1
- package/packages/_vue3/dist/src/types/element.d.ts +1 -1
- package/packages/_vue3/dist/src/types/typescript.d.ts +3 -3
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/index.bef62fde.cjs +0 -30
- package/packages/_vue2/dist/render-styles.1c71bf0a.cjs +0 -18
- package/packages/_vue2/dist/render-styles.31ad9a17.js +0 -73
- package/packages/_vue3/dist/index.4f68e6f8.cjs +0 -30
- package/packages/_vue3/dist/render-styles.90022a69.cjs +0 -18
- package/packages/_vue3/dist/render-styles.fc3b8b2e.js +0 -67
|
@@ -1,102 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
function p() {
|
|
3
|
-
return typeof window < "u" && typeof document < "u";
|
|
4
|
-
}
|
|
5
|
-
const T = {};
|
|
6
|
-
function J(t, e) {
|
|
7
|
-
let n = T[t];
|
|
8
|
-
if (n || (n = T[t] = []), n.push(e), p()) {
|
|
9
|
-
const o = {
|
|
10
|
-
type: "builder.register",
|
|
11
|
-
data: {
|
|
12
|
-
type: t,
|
|
13
|
-
info: e
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
try {
|
|
17
|
-
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
18
|
-
} catch (s) {
|
|
19
|
-
console.debug("Could not postmessage", s);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const X = () => {
|
|
24
|
-
J("insertMenu", {
|
|
25
|
-
name: "_default",
|
|
26
|
-
default: !0,
|
|
27
|
-
items: [
|
|
28
|
-
{ name: "Box" },
|
|
29
|
-
{ name: "Text" },
|
|
30
|
-
{ name: "Image" },
|
|
31
|
-
{ name: "Columns" },
|
|
32
|
-
{ name: "Core:Section" },
|
|
33
|
-
{ name: "Core:Button" },
|
|
34
|
-
{ name: "Embed" },
|
|
35
|
-
{ name: "Custom Code" }
|
|
36
|
-
]
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
let I = !1;
|
|
40
|
-
const Y = (t = {}) => {
|
|
41
|
-
var e, n;
|
|
42
|
-
I || (I = !0, p() && ((e = window.parent) == null || e.postMessage(
|
|
43
|
-
{
|
|
44
|
-
type: "builder.sdkInfo",
|
|
45
|
-
data: {
|
|
46
|
-
target: v,
|
|
47
|
-
supportsPatchUpdates: !1,
|
|
48
|
-
supportsAddBlockScoping: !0,
|
|
49
|
-
supportsCustomBreakpoints: !0
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"*"
|
|
53
|
-
), (n = window.parent) == null || n.postMessage(
|
|
54
|
-
{
|
|
55
|
-
type: "builder.updateContent",
|
|
56
|
-
data: {
|
|
57
|
-
options: t
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"*"
|
|
61
|
-
), window.addEventListener("message", ({ data: o }) => {
|
|
62
|
-
var s, r;
|
|
63
|
-
if (!!(o != null && o.type))
|
|
64
|
-
switch (o.type) {
|
|
65
|
-
case "builder.evaluate": {
|
|
66
|
-
const i = o.data.text, l = o.data.arguments || [], a = o.data.id, c = new Function(i);
|
|
67
|
-
let d, m = null;
|
|
68
|
-
try {
|
|
69
|
-
d = c.apply(null, l);
|
|
70
|
-
} catch (u) {
|
|
71
|
-
m = u;
|
|
72
|
-
}
|
|
73
|
-
m ? (s = window.parent) == null || s.postMessage(
|
|
74
|
-
{
|
|
75
|
-
type: "builder.evaluateError",
|
|
76
|
-
data: { id: a, error: m.message }
|
|
77
|
-
},
|
|
78
|
-
"*"
|
|
79
|
-
) : d && typeof d.then == "function" ? d.then((u) => {
|
|
80
|
-
var g;
|
|
81
|
-
(g = window.parent) == null || g.postMessage(
|
|
82
|
-
{
|
|
83
|
-
type: "builder.evaluateResult",
|
|
84
|
-
data: { id: a, result: u }
|
|
85
|
-
},
|
|
86
|
-
"*"
|
|
87
|
-
);
|
|
88
|
-
}).catch(console.error) : (r = window.parent) == null || r.postMessage(
|
|
89
|
-
{
|
|
90
|
-
type: "builder.evaluateResult",
|
|
91
|
-
data: { result: d, id: a }
|
|
92
|
-
},
|
|
93
|
-
"*"
|
|
94
|
-
);
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
})));
|
|
99
|
-
}, Q = {
|
|
1
|
+
const J = {
|
|
100
2
|
name: "builder-button",
|
|
101
3
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
102
4
|
methods: {
|
|
@@ -130,8 +32,8 @@ function f(t, e, n, o, s, r, i, l) {
|
|
|
130
32
|
if (a.functional) {
|
|
131
33
|
a._injectStyles = c;
|
|
132
34
|
var d = a.render;
|
|
133
|
-
a.render = function(g,
|
|
134
|
-
return c.call(
|
|
35
|
+
a.render = function(g, T) {
|
|
36
|
+
return c.call(T), d(g, T);
|
|
135
37
|
};
|
|
136
38
|
} else {
|
|
137
39
|
var m = a.beforeCreate;
|
|
@@ -142,20 +44,20 @@ function f(t, e, n, o, s, r, i, l) {
|
|
|
142
44
|
options: a
|
|
143
45
|
};
|
|
144
46
|
}
|
|
145
|
-
var
|
|
47
|
+
var X = function() {
|
|
146
48
|
var e = this, n = e._self._c;
|
|
147
49
|
return e.link ? n("a", e._g(e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._g(e._b({ staticClass: "button-2fnk003dqad" }, "button", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]);
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
50
|
+
}, Y = [], Q = /* @__PURE__ */ f(
|
|
51
|
+
J,
|
|
52
|
+
X,
|
|
53
|
+
Y,
|
|
152
54
|
!1,
|
|
153
55
|
null,
|
|
154
56
|
"3e6fa42c",
|
|
155
57
|
null,
|
|
156
58
|
null
|
|
157
59
|
);
|
|
158
|
-
const
|
|
60
|
+
const Z = Q.exports, w = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
159
61
|
small: {
|
|
160
62
|
min: 320,
|
|
161
63
|
default: 321,
|
|
@@ -171,7 +73,7 @@ const ne = te.exports, w = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
|
171
73
|
default: 991,
|
|
172
74
|
max: 1200
|
|
173
75
|
}
|
|
174
|
-
},
|
|
76
|
+
}, Rn = (t, e = B) => `@media (max-width: ${e[t].max}px)`, ee = ({ small: t, medium: e }) => {
|
|
175
77
|
const n = w(B);
|
|
176
78
|
if (!t || !e)
|
|
177
79
|
return n;
|
|
@@ -193,10 +95,10 @@ const ne = te.exports, w = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
|
193
95
|
min: r,
|
|
194
96
|
default: r + 1
|
|
195
97
|
}, n;
|
|
196
|
-
},
|
|
98
|
+
}, v = "vue2", te = (t) => t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), b = (t) => t != null, ne = (t) => Object.entries(t).map(([n, o]) => {
|
|
197
99
|
if (typeof o == "string")
|
|
198
|
-
return `${
|
|
199
|
-
}).filter(b), y = (t) =>
|
|
100
|
+
return `${te(n)}: ${o};`;
|
|
101
|
+
}).filter(b), y = (t) => ne(t).join(`
|
|
200
102
|
`), In = ({
|
|
201
103
|
mediaQuery: t,
|
|
202
104
|
className: e,
|
|
@@ -208,7 +110,7 @@ const ne = te.exports, w = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
|
208
110
|
return t ? `${t} {
|
|
209
111
|
${o}
|
|
210
112
|
}` : o;
|
|
211
|
-
},
|
|
113
|
+
}, oe = Symbol(), _ = {
|
|
212
114
|
Builder: {
|
|
213
115
|
content: null,
|
|
214
116
|
context: {},
|
|
@@ -219,22 +121,22 @@ const ne = te.exports, w = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
|
219
121
|
registeredComponents: {},
|
|
220
122
|
inheritedStyles: {}
|
|
221
123
|
},
|
|
222
|
-
key:
|
|
223
|
-
},
|
|
124
|
+
key: oe
|
|
125
|
+
}, se = () => Promise.resolve().then(() => U).then((t) => t.default).catch((t) => {
|
|
224
126
|
throw console.error(
|
|
225
127
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
226
128
|
t
|
|
227
129
|
), t;
|
|
228
|
-
}),
|
|
130
|
+
}), re = () => import("./render-inlined-styles.9195825e.js").then((t) => t.default).catch((t) => {
|
|
229
131
|
throw console.error(
|
|
230
132
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
231
133
|
t
|
|
232
134
|
), t;
|
|
233
|
-
}),
|
|
135
|
+
}), ie = {
|
|
234
136
|
name: "builder-columns",
|
|
235
137
|
components: {
|
|
236
|
-
RenderInlinedStyles:
|
|
237
|
-
RenderBlocks:
|
|
138
|
+
RenderInlinedStyles: re,
|
|
139
|
+
RenderBlocks: se
|
|
238
140
|
},
|
|
239
141
|
props: [
|
|
240
142
|
"space",
|
|
@@ -341,7 +243,7 @@ const ne = te.exports, w = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
|
341
243
|
},
|
|
342
244
|
getWidthForBreakpointSize(t) {
|
|
343
245
|
var n, o;
|
|
344
|
-
return
|
|
246
|
+
return ee(
|
|
345
247
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
346
248
|
)[t].max;
|
|
347
249
|
},
|
|
@@ -356,15 +258,15 @@ const ne = te.exports, w = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
|
356
258
|
}
|
|
357
259
|
}
|
|
358
260
|
};
|
|
359
|
-
var
|
|
261
|
+
var ae = function() {
|
|
360
262
|
var e = this, n = e._self._c;
|
|
361
263
|
return n("div", { class: e._classStringToObject(
|
|
362
|
-
`builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
264
|
+
`builder-columns ${e.builderBlock.id}-breakpoints div-t9spj7joih`
|
|
363
265
|
), style: {
|
|
364
266
|
...e.TARGET === "reactNative" ? e.reactNativeColumnsStyles : {},
|
|
365
267
|
...e.columnsCssVars
|
|
366
268
|
} }, [e.TARGET !== "reactNative" ? [n("render-inlined-styles", { attrs: { styles: e.columnsStyles } })] : e._e(), e._l(e.columns, function(o, s) {
|
|
367
|
-
return n("div", { key: s, staticClass: "builder-column div-
|
|
269
|
+
return n("div", { key: s, staticClass: "builder-column div-t9spj7joih-2", style: {
|
|
368
270
|
width: e.getColumnCssWidth(s),
|
|
369
271
|
marginLeft: `${s === 0 ? 0 : e.getGutterSize()}px`,
|
|
370
272
|
...e.TARGET === "reactNative" ? e.reactNativeColumnStyles : {},
|
|
@@ -373,52 +275,52 @@ var ue = function() {
|
|
|
373
275
|
flexGrow: "1"
|
|
374
276
|
} } })], 1);
|
|
375
277
|
})], 2);
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
278
|
+
}, le = [], ce = /* @__PURE__ */ f(
|
|
279
|
+
ie,
|
|
280
|
+
ae,
|
|
281
|
+
le,
|
|
380
282
|
!1,
|
|
381
283
|
null,
|
|
382
|
-
"
|
|
284
|
+
"acc8f09b",
|
|
383
285
|
null,
|
|
384
286
|
null
|
|
385
287
|
);
|
|
386
|
-
const
|
|
288
|
+
const ue = ce.exports, de = {
|
|
387
289
|
name: "builder-fragment-component",
|
|
388
290
|
props: []
|
|
389
291
|
};
|
|
390
|
-
var
|
|
292
|
+
var me = function() {
|
|
391
293
|
var e = this, n = e._self._c;
|
|
392
294
|
return n("span", [e._t("default")], 2);
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
295
|
+
}, pe = [], fe = /* @__PURE__ */ f(
|
|
296
|
+
de,
|
|
297
|
+
me,
|
|
298
|
+
pe,
|
|
397
299
|
!1,
|
|
398
300
|
null,
|
|
399
301
|
null,
|
|
400
302
|
null,
|
|
401
303
|
null
|
|
402
304
|
);
|
|
403
|
-
const
|
|
404
|
-
function
|
|
305
|
+
const he = fe.exports;
|
|
306
|
+
function R(t) {
|
|
405
307
|
return t.replace(/http(s)?:/, "");
|
|
406
308
|
}
|
|
407
|
-
function
|
|
309
|
+
function ge(t = "", e, n) {
|
|
408
310
|
const o = new RegExp("([?&])" + e + "=.*?(&|$)", "i"), s = t.indexOf("?") !== -1 ? "&" : "?";
|
|
409
311
|
return t.match(o) ? t.replace(o, "$1" + e + "=" + encodeURIComponent(n) + "$2") : t + s + e + "=" + encodeURIComponent(n);
|
|
410
312
|
}
|
|
411
|
-
function
|
|
313
|
+
function be(t, e) {
|
|
412
314
|
if (!t || !(t != null && t.match(/cdn\.shopify\.com/)) || !e)
|
|
413
315
|
return t;
|
|
414
316
|
if (e === "master")
|
|
415
|
-
return
|
|
317
|
+
return R(t);
|
|
416
318
|
const n = t.match(
|
|
417
319
|
/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
|
|
418
320
|
);
|
|
419
321
|
if (n) {
|
|
420
322
|
const o = t.split(n[0]), s = n[3], r = e.match("x") ? e : `${e}x`;
|
|
421
|
-
return
|
|
323
|
+
return R(`${o[0]}_${r}${s}`);
|
|
422
324
|
}
|
|
423
325
|
return null;
|
|
424
326
|
}
|
|
@@ -429,11 +331,11 @@ function k(t) {
|
|
|
429
331
|
if (t.match(/builder\.io/)) {
|
|
430
332
|
let n = t;
|
|
431
333
|
const o = Number(t.split("?width=")[1]);
|
|
432
|
-
return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${
|
|
334
|
+
return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${ge(t, "width", s)} ${s}w`).concat([n]).join(", ");
|
|
433
335
|
}
|
|
434
|
-
return t.match(/cdn\.shopify\.com/) ? e.map((n) => [
|
|
336
|
+
return t.match(/cdn\.shopify\.com/) ? e.map((n) => [be(t, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([t]).join(", ") : t;
|
|
435
337
|
}
|
|
436
|
-
const
|
|
338
|
+
const ye = {
|
|
437
339
|
name: "builder-image",
|
|
438
340
|
props: [
|
|
439
341
|
"image",
|
|
@@ -489,48 +391,51 @@ const xe = {
|
|
|
489
391
|
}
|
|
490
392
|
}
|
|
491
393
|
};
|
|
492
|
-
var
|
|
394
|
+
var ve = function() {
|
|
493
395
|
var o, s, r, i;
|
|
494
396
|
var e = this, n = e._self._c;
|
|
495
397
|
return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
|
|
496
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
398
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
|
|
497
399
|
), style: {
|
|
498
400
|
objectPosition: e.backgroundPosition || "center",
|
|
499
401
|
objectFit: e.backgroundSize || "cover",
|
|
500
402
|
...e.aspectRatioCss
|
|
501
|
-
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-
|
|
403
|
+
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
|
|
502
404
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
503
|
-
} })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-
|
|
504
|
-
},
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
405
|
+
} })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [e._t("default")], 2)] : e._e()], 2);
|
|
406
|
+
}, _e = [], xe = /* @__PURE__ */ f(
|
|
407
|
+
ye,
|
|
408
|
+
ve,
|
|
409
|
+
_e,
|
|
508
410
|
!1,
|
|
509
411
|
null,
|
|
510
|
-
"
|
|
412
|
+
"d14c6f82",
|
|
511
413
|
null,
|
|
512
414
|
null
|
|
513
415
|
);
|
|
514
|
-
const
|
|
515
|
-
function
|
|
416
|
+
const ke = xe.exports;
|
|
417
|
+
function p() {
|
|
418
|
+
return typeof window < "u" && typeof document < "u";
|
|
419
|
+
}
|
|
420
|
+
function Ce() {
|
|
516
421
|
return p() && window.self !== window.top;
|
|
517
422
|
}
|
|
518
423
|
function h() {
|
|
519
|
-
return
|
|
424
|
+
return Ce() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
520
425
|
}
|
|
521
|
-
const
|
|
426
|
+
const Se = () => import("./block-styles.a206dd50.js").then((t) => t.default).catch((t) => {
|
|
522
427
|
throw console.error(
|
|
523
428
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
524
429
|
t
|
|
525
430
|
), t;
|
|
526
|
-
}),
|
|
431
|
+
}), we = () => import("./render-block.fd86fb8a.js").then((t) => t.default).catch((t) => {
|
|
527
432
|
throw console.error(
|
|
528
433
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
529
434
|
t
|
|
530
435
|
), t;
|
|
531
|
-
}),
|
|
436
|
+
}), Te = {
|
|
532
437
|
name: "render-blocks",
|
|
533
|
-
components: { RenderBlock:
|
|
438
|
+
components: { RenderBlock: we, BlockStyles: Se },
|
|
534
439
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
535
440
|
inject: {
|
|
536
441
|
builderContext: _.key
|
|
@@ -579,7 +484,7 @@ const Te = () => import("./block-styles.d7d7aa69.js").then((t) => t.default).cat
|
|
|
579
484
|
}
|
|
580
485
|
}
|
|
581
486
|
};
|
|
582
|
-
var
|
|
487
|
+
var Re = function() {
|
|
583
488
|
var e = this, n = e._self._c;
|
|
584
489
|
return n("div", { class: e._classStringToObject(e.className + " div-21azgz5avex"), style: e.styleProp, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
|
|
585
490
|
class: e.className
|
|
@@ -592,20 +497,20 @@ var Ee = function() {
|
|
|
592
497
|
}) : e._e(), e.blocks ? e._l(e.blocks, function(o, s) {
|
|
593
498
|
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
594
499
|
}) : e._e()], 2);
|
|
595
|
-
},
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
500
|
+
}, Ie = [], $e = /* @__PURE__ */ f(
|
|
501
|
+
Te,
|
|
502
|
+
Re,
|
|
503
|
+
Ie,
|
|
599
504
|
!1,
|
|
600
505
|
null,
|
|
601
506
|
"7d4553c5",
|
|
602
507
|
null,
|
|
603
508
|
null
|
|
604
509
|
);
|
|
605
|
-
const
|
|
510
|
+
const Ee = $e.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
606
511
|
__proto__: null,
|
|
607
|
-
default:
|
|
608
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
512
|
+
default: Ee
|
|
513
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = {
|
|
609
514
|
name: "Core:Button",
|
|
610
515
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
611
516
|
defaultStyles: {
|
|
@@ -644,7 +549,7 @@ const je = Fe.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
644
549
|
}, x = (t) => {
|
|
645
550
|
const e = t.toString().trim();
|
|
646
551
|
return `return (${!e.startsWith("function") && !e.startsWith("(") ? "function " : ""}${e}).apply(this, arguments)`;
|
|
647
|
-
},
|
|
552
|
+
}, Fe = {
|
|
648
553
|
name: "Columns",
|
|
649
554
|
inputs: [
|
|
650
555
|
{
|
|
@@ -868,13 +773,13 @@ const je = Fe.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
868
773
|
advanced: !0
|
|
869
774
|
}
|
|
870
775
|
]
|
|
871
|
-
},
|
|
776
|
+
}, je = {
|
|
872
777
|
name: "Fragment",
|
|
873
778
|
static: !0,
|
|
874
779
|
hidden: !0,
|
|
875
780
|
canHaveChildren: !0,
|
|
876
781
|
noWrap: !0
|
|
877
|
-
},
|
|
782
|
+
}, Oe = {
|
|
878
783
|
name: "Image",
|
|
879
784
|
static: !0,
|
|
880
785
|
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",
|
|
@@ -892,7 +797,7 @@ const je = Fe.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
892
797
|
bubble: !0,
|
|
893
798
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
894
799
|
required: !0,
|
|
895
|
-
defaultValue: "https://cdn.builder.io/api/v1/image/assets%
|
|
800
|
+
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
896
801
|
onChange: x(
|
|
897
802
|
(t) => {
|
|
898
803
|
t.delete("srcset"), t.delete("noWebp");
|
|
@@ -1001,7 +906,7 @@ const je = Fe.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
1001
906
|
defaultValue: 0.7041
|
|
1002
907
|
}
|
|
1003
908
|
]
|
|
1004
|
-
},
|
|
909
|
+
}, Pe = {
|
|
1005
910
|
name: "Core:Section",
|
|
1006
911
|
static: !0,
|
|
1007
912
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1045,7 +950,7 @@ const je = Fe.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
1045
950
|
}
|
|
1046
951
|
}
|
|
1047
952
|
]
|
|
1048
|
-
},
|
|
953
|
+
}, Be = {
|
|
1049
954
|
name: "builder-section-component",
|
|
1050
955
|
props: ["maxWidth", "attributes"],
|
|
1051
956
|
methods: {
|
|
@@ -1064,7 +969,7 @@ const je = Fe.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
1064
969
|
}
|
|
1065
970
|
}
|
|
1066
971
|
};
|
|
1067
|
-
var
|
|
972
|
+
var Ue = function() {
|
|
1068
973
|
var e = this, n = e._self._c;
|
|
1069
974
|
return n("section", e._g(e._b({ style: {
|
|
1070
975
|
width: "100%",
|
|
@@ -1078,17 +983,17 @@ var Ne = function() {
|
|
|
1078
983
|
marginLeft: "auto",
|
|
1079
984
|
marginRight: "auto"
|
|
1080
985
|
} }, "section", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._t("default")], 2);
|
|
1081
|
-
},
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
986
|
+
}, Ve = [], We = /* @__PURE__ */ f(
|
|
987
|
+
Be,
|
|
988
|
+
Ue,
|
|
989
|
+
Ve,
|
|
1085
990
|
!1,
|
|
1086
991
|
null,
|
|
1087
992
|
null,
|
|
1088
993
|
null,
|
|
1089
994
|
null
|
|
1090
995
|
);
|
|
1091
|
-
const
|
|
996
|
+
const Ne = We.exports, Le = {
|
|
1092
997
|
name: "Symbol",
|
|
1093
998
|
noWrap: !0,
|
|
1094
999
|
static: !0,
|
|
@@ -1127,11 +1032,11 @@ const ze = Me.exports, Ke = {
|
|
|
1127
1032
|
}
|
|
1128
1033
|
]
|
|
1129
1034
|
};
|
|
1130
|
-
function
|
|
1035
|
+
function Me() {
|
|
1131
1036
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1132
1037
|
}
|
|
1133
|
-
function
|
|
1134
|
-
const t =
|
|
1038
|
+
function ze() {
|
|
1039
|
+
const t = Me().fetch;
|
|
1135
1040
|
if (typeof t > "u")
|
|
1136
1041
|
throw console.warn(
|
|
1137
1042
|
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
@@ -1139,7 +1044,7 @@ function He() {
|
|
|
1139
1044
|
), new Error("Builder SDK could not find a global `fetch` function");
|
|
1140
1045
|
return t;
|
|
1141
1046
|
}
|
|
1142
|
-
const V =
|
|
1047
|
+
const V = ze(), Ke = (t) => {
|
|
1143
1048
|
if (t === "localhost" || t === "127.0.0.1")
|
|
1144
1049
|
return t;
|
|
1145
1050
|
const e = t.split(".");
|
|
@@ -1155,22 +1060,22 @@ const V = He(), qe = (t) => {
|
|
|
1155
1060
|
console.debug("[COOKIE] GET error: ", o);
|
|
1156
1061
|
return;
|
|
1157
1062
|
}
|
|
1158
|
-
},
|
|
1063
|
+
}, De = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).filter(b).join("; "), He = [
|
|
1159
1064
|
["secure", ""],
|
|
1160
1065
|
["SameSite", "None"]
|
|
1161
|
-
],
|
|
1066
|
+
], qe = ({
|
|
1162
1067
|
name: t,
|
|
1163
1068
|
value: e,
|
|
1164
1069
|
expires: n
|
|
1165
1070
|
}) => {
|
|
1166
|
-
const s = (p() ? location.protocol === "https:" : !0) ?
|
|
1071
|
+
const s = (p() ? location.protocol === "https:" : !0) ? He : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [
|
|
1167
1072
|
[t, e],
|
|
1168
1073
|
...r,
|
|
1169
1074
|
["path", "/"],
|
|
1170
|
-
["domain",
|
|
1075
|
+
["domain", Ke(window.location.hostname)],
|
|
1171
1076
|
...s
|
|
1172
1077
|
];
|
|
1173
|
-
return
|
|
1078
|
+
return De(i);
|
|
1174
1079
|
}, N = async ({
|
|
1175
1080
|
name: t,
|
|
1176
1081
|
value: e,
|
|
@@ -1180,30 +1085,32 @@ const V = He(), qe = (t) => {
|
|
|
1180
1085
|
try {
|
|
1181
1086
|
if (!o)
|
|
1182
1087
|
return;
|
|
1183
|
-
const s =
|
|
1088
|
+
const s = qe({ name: t, value: e, expires: n });
|
|
1184
1089
|
document.cookie = s;
|
|
1185
1090
|
} catch (s) {
|
|
1186
1091
|
console.warn("[COOKIE] SET error: ", s);
|
|
1187
1092
|
}
|
|
1188
|
-
},
|
|
1093
|
+
}, Ge = "builderio.variations", L = (t) => `${Ge}.${t}`, Je = ({
|
|
1189
1094
|
contentId: t,
|
|
1190
1095
|
canTrack: e
|
|
1191
|
-
}) => W({ name: L(t), canTrack: e }),
|
|
1096
|
+
}) => W({ name: L(t), canTrack: e }), Xe = ({
|
|
1192
1097
|
contentId: t,
|
|
1193
1098
|
canTrack: e,
|
|
1194
1099
|
value: n
|
|
1195
|
-
}) => N({ name: L(t), value: n, canTrack: e }),
|
|
1100
|
+
}) => N({ name: L(t), value: n, canTrack: e }), Ye = (t) => b(t.id) && b(t.variations) && Object.keys(t.variations).length > 0, Qe = ({
|
|
1196
1101
|
id: t,
|
|
1197
1102
|
variations: e
|
|
1198
1103
|
}) => {
|
|
1199
1104
|
var s;
|
|
1200
1105
|
let n = 0;
|
|
1201
1106
|
const o = Math.random();
|
|
1202
|
-
for (const r in e)
|
|
1203
|
-
|
|
1107
|
+
for (const r in e) {
|
|
1108
|
+
const i = (s = e[r]) == null ? void 0 : s.testRatio;
|
|
1109
|
+
if (n += i, o < n)
|
|
1204
1110
|
return r;
|
|
1111
|
+
}
|
|
1205
1112
|
return t;
|
|
1206
|
-
},
|
|
1113
|
+
}, I = ({
|
|
1207
1114
|
item: t,
|
|
1208
1115
|
testGroupId: e
|
|
1209
1116
|
}) => {
|
|
@@ -1216,36 +1123,36 @@ const V = He(), qe = (t) => {
|
|
|
1216
1123
|
testVariationId: n.id,
|
|
1217
1124
|
testVariationName: n.name || (n.id === t.id ? "Default" : "")
|
|
1218
1125
|
};
|
|
1219
|
-
},
|
|
1126
|
+
}, Ze = async ({
|
|
1220
1127
|
item: t,
|
|
1221
1128
|
canTrack: e
|
|
1222
1129
|
}) => {
|
|
1223
|
-
const n = await
|
|
1130
|
+
const n = await Je({
|
|
1224
1131
|
canTrack: e,
|
|
1225
1132
|
contentId: t.id
|
|
1226
|
-
}), o = n ?
|
|
1133
|
+
}), o = n ? I({ item: t, testGroupId: n }) : void 0;
|
|
1227
1134
|
if (o)
|
|
1228
1135
|
return o;
|
|
1229
1136
|
{
|
|
1230
|
-
const s =
|
|
1137
|
+
const s = Qe({
|
|
1231
1138
|
variations: t.variations,
|
|
1232
1139
|
id: t.id
|
|
1233
1140
|
});
|
|
1234
|
-
return
|
|
1141
|
+
return Xe({
|
|
1235
1142
|
contentId: t.id,
|
|
1236
1143
|
value: s,
|
|
1237
1144
|
canTrack: e
|
|
1238
1145
|
}).catch((r) => {
|
|
1239
1146
|
console.error("could not store A/B test variation: ", r);
|
|
1240
|
-
}),
|
|
1147
|
+
}), I({ item: t, testGroupId: s });
|
|
1241
1148
|
}
|
|
1242
|
-
},
|
|
1149
|
+
}, et = async ({
|
|
1243
1150
|
item: t,
|
|
1244
1151
|
canTrack: e
|
|
1245
1152
|
}) => {
|
|
1246
|
-
if (!
|
|
1153
|
+
if (!Ye(t))
|
|
1247
1154
|
return;
|
|
1248
|
-
const n = await
|
|
1155
|
+
const n = await Ze({ item: t, canTrack: e });
|
|
1249
1156
|
Object.assign(t, n);
|
|
1250
1157
|
};
|
|
1251
1158
|
function C(t, e = null, n = ".") {
|
|
@@ -1258,27 +1165,27 @@ function C(t, e = null, n = ".") {
|
|
|
1258
1165
|
].every(Boolean) ? { ...o, ...C(r, i, n) } : { ...o, [i]: r };
|
|
1259
1166
|
}, {});
|
|
1260
1167
|
}
|
|
1261
|
-
const
|
|
1168
|
+
const $ = "builder.", tt = "options.", nt = (t) => {
|
|
1262
1169
|
const e = {};
|
|
1263
1170
|
return t.forEach((n, o) => {
|
|
1264
1171
|
e[o] = n;
|
|
1265
1172
|
}), e;
|
|
1266
|
-
},
|
|
1173
|
+
}, ot = (t) => {
|
|
1267
1174
|
if (!t)
|
|
1268
1175
|
return {};
|
|
1269
1176
|
const e = M(t), n = {};
|
|
1270
1177
|
return Object.keys(e).forEach((o) => {
|
|
1271
|
-
if (o.startsWith(
|
|
1272
|
-
const s = o.replace(
|
|
1178
|
+
if (o.startsWith($)) {
|
|
1179
|
+
const s = o.replace($, "").replace(tt, "");
|
|
1273
1180
|
n[s] = e[o];
|
|
1274
1181
|
}
|
|
1275
1182
|
}), n;
|
|
1276
|
-
},
|
|
1183
|
+
}, st = () => {
|
|
1277
1184
|
if (!p())
|
|
1278
1185
|
return {};
|
|
1279
1186
|
const t = new URLSearchParams(window.location.search);
|
|
1280
|
-
return
|
|
1281
|
-
}, M = (t) => t instanceof URLSearchParams ?
|
|
1187
|
+
return ot(t);
|
|
1188
|
+
}, M = (t) => t instanceof URLSearchParams ? nt(t) : t, rt = (t) => {
|
|
1282
1189
|
const {
|
|
1283
1190
|
limit: e = 30,
|
|
1284
1191
|
userAttributes: n,
|
|
@@ -1294,7 +1201,7 @@ const A = "builder.", st = "options.", rt = (t) => {
|
|
|
1294
1201
|
const c = new URL(
|
|
1295
1202
|
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${i}&limit=${e}&noTraverse=${s}&includeRefs=${l}${a ? `&locale=${a}` : ""}`
|
|
1296
1203
|
), d = {
|
|
1297
|
-
...
|
|
1204
|
+
...st(),
|
|
1298
1205
|
...M(t.options || {})
|
|
1299
1206
|
}, m = C(d);
|
|
1300
1207
|
for (const u in m)
|
|
@@ -1307,23 +1214,23 @@ const A = "builder.", st = "options.", rt = (t) => {
|
|
|
1307
1214
|
return c;
|
|
1308
1215
|
};
|
|
1309
1216
|
async function z(t) {
|
|
1310
|
-
return (await
|
|
1217
|
+
return (await it({ ...t, limit: 1 })).results[0] || null;
|
|
1311
1218
|
}
|
|
1312
|
-
async function
|
|
1313
|
-
const e =
|
|
1219
|
+
async function it(t) {
|
|
1220
|
+
const e = rt(t), o = await (await V(e.href)).json(), s = t.canTrack !== !1;
|
|
1314
1221
|
if (s && Array.isArray(o.results))
|
|
1315
1222
|
for (const r of o.results)
|
|
1316
|
-
await
|
|
1223
|
+
await et({ item: r, canTrack: s });
|
|
1317
1224
|
return o;
|
|
1318
1225
|
}
|
|
1319
|
-
const
|
|
1226
|
+
const at = () => Promise.resolve().then(() => Tn).then((t) => t.default).catch((t) => {
|
|
1320
1227
|
throw console.error(
|
|
1321
1228
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
1322
1229
|
t
|
|
1323
1230
|
), t;
|
|
1324
|
-
}),
|
|
1231
|
+
}), lt = {
|
|
1325
1232
|
name: "builder-symbol",
|
|
1326
|
-
components: { RenderContent:
|
|
1233
|
+
components: { RenderContent: at },
|
|
1327
1234
|
props: ["attributes", "symbol", "dynamic"],
|
|
1328
1235
|
data() {
|
|
1329
1236
|
return { fetchedContent: null };
|
|
@@ -1395,7 +1302,7 @@ const ut = () => Promise.resolve().then(() => Rn).then((t) => t.default).catch((
|
|
|
1395
1302
|
}
|
|
1396
1303
|
}
|
|
1397
1304
|
};
|
|
1398
|
-
var
|
|
1305
|
+
var ct = function() {
|
|
1399
1306
|
var o, s, r, i, l;
|
|
1400
1307
|
var e = this, n = e._self._c;
|
|
1401
1308
|
return n("div", e._g(e._b({ class: e._classStringToObject(e.className), attrs: { dataSet: {
|
|
@@ -1405,17 +1312,17 @@ var mt = function() {
|
|
|
1405
1312
|
...e.builderContext.state,
|
|
1406
1313
|
...(i = (r = (s = e.symbol) == null ? void 0 : s.content) == null ? void 0 : r.data) == null ? void 0 : i.state
|
|
1407
1314
|
}, model: (l = e.symbol) == null ? void 0 : l.model, content: e.contentToUse } })], 1);
|
|
1408
|
-
},
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1315
|
+
}, ut = [], dt = /* @__PURE__ */ f(
|
|
1316
|
+
lt,
|
|
1317
|
+
ct,
|
|
1318
|
+
ut,
|
|
1412
1319
|
!1,
|
|
1413
1320
|
null,
|
|
1414
1321
|
null,
|
|
1415
1322
|
null,
|
|
1416
1323
|
null
|
|
1417
1324
|
);
|
|
1418
|
-
const
|
|
1325
|
+
const mt = dt.exports, pt = {
|
|
1419
1326
|
name: "Text",
|
|
1420
1327
|
static: !0,
|
|
1421
1328
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
@@ -1434,24 +1341,26 @@ const ht = ft.exports, gt = {
|
|
|
1434
1341
|
height: "auto",
|
|
1435
1342
|
textAlign: "center"
|
|
1436
1343
|
}
|
|
1437
|
-
},
|
|
1344
|
+
}, ft = {
|
|
1438
1345
|
name: "builder-text",
|
|
1439
1346
|
props: ["text"]
|
|
1440
1347
|
};
|
|
1441
|
-
var
|
|
1348
|
+
var ht = function() {
|
|
1442
1349
|
var e = this, n = e._self._c;
|
|
1443
|
-
return n("span", { staticClass: "builder-text",
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1350
|
+
return n("span", { staticClass: "builder-text", style: {
|
|
1351
|
+
outline: "none"
|
|
1352
|
+
}, domProps: { innerHTML: e._s(e.text) } });
|
|
1353
|
+
}, gt = [], bt = /* @__PURE__ */ f(
|
|
1354
|
+
ft,
|
|
1355
|
+
ht,
|
|
1356
|
+
gt,
|
|
1448
1357
|
!1,
|
|
1449
1358
|
null,
|
|
1450
1359
|
null,
|
|
1451
1360
|
null,
|
|
1452
1361
|
null
|
|
1453
1362
|
);
|
|
1454
|
-
const
|
|
1363
|
+
const yt = bt.exports, vt = {
|
|
1455
1364
|
name: "Video",
|
|
1456
1365
|
canHaveChildren: !0,
|
|
1457
1366
|
defaultStyles: {
|
|
@@ -1552,7 +1461,7 @@ const xt = _t.exports, kt = {
|
|
|
1552
1461
|
advanced: !0
|
|
1553
1462
|
}
|
|
1554
1463
|
]
|
|
1555
|
-
},
|
|
1464
|
+
}, _t = {
|
|
1556
1465
|
name: "builder-video",
|
|
1557
1466
|
props: [
|
|
1558
1467
|
"autoPlay",
|
|
@@ -1594,7 +1503,7 @@ const xt = _t.exports, kt = {
|
|
|
1594
1503
|
}
|
|
1595
1504
|
}
|
|
1596
1505
|
};
|
|
1597
|
-
var
|
|
1506
|
+
var xt = function() {
|
|
1598
1507
|
var o;
|
|
1599
1508
|
var e = this, n = e._self._c;
|
|
1600
1509
|
return n("video", e._b({ style: {
|
|
@@ -1605,17 +1514,17 @@ var St = function() {
|
|
|
1605
1514
|
objectPosition: e.position,
|
|
1606
1515
|
borderRadius: 1
|
|
1607
1516
|
}, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.spreadProps, !1));
|
|
1608
|
-
},
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1517
|
+
}, kt = [], Ct = /* @__PURE__ */ f(
|
|
1518
|
+
_t,
|
|
1519
|
+
xt,
|
|
1520
|
+
kt,
|
|
1612
1521
|
!1,
|
|
1613
1522
|
null,
|
|
1614
1523
|
null,
|
|
1615
1524
|
null,
|
|
1616
1525
|
null
|
|
1617
1526
|
);
|
|
1618
|
-
const
|
|
1527
|
+
const St = Ct.exports, wt = {
|
|
1619
1528
|
name: "Embed",
|
|
1620
1529
|
static: !0,
|
|
1621
1530
|
inputs: [
|
|
@@ -1650,11 +1559,11 @@ const Tt = Rt.exports, It = {
|
|
|
1650
1559
|
hideFromUI: !0
|
|
1651
1560
|
}
|
|
1652
1561
|
]
|
|
1653
|
-
},
|
|
1562
|
+
}, Tt = [
|
|
1654
1563
|
"text/javascript",
|
|
1655
1564
|
"application/javascript",
|
|
1656
1565
|
"application/ecmascript"
|
|
1657
|
-
],
|
|
1566
|
+
], Rt = (t) => Tt.includes(t.type), It = {
|
|
1658
1567
|
name: "builder-embed",
|
|
1659
1568
|
props: ["content"],
|
|
1660
1569
|
data() {
|
|
@@ -1687,7 +1596,7 @@ const Tt = Rt.exports, It = {
|
|
|
1687
1596
|
this.scriptsInserted.push(n.src);
|
|
1688
1597
|
const o = document.createElement("script");
|
|
1689
1598
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1690
|
-
} else if (
|
|
1599
|
+
} else if (Rt(n) && !this.scriptsRun.includes(n.innerText))
|
|
1691
1600
|
try {
|
|
1692
1601
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1693
1602
|
} catch (o) {
|
|
@@ -1697,20 +1606,20 @@ const Tt = Rt.exports, It = {
|
|
|
1697
1606
|
}
|
|
1698
1607
|
}
|
|
1699
1608
|
};
|
|
1700
|
-
var
|
|
1609
|
+
var $t = function() {
|
|
1701
1610
|
var e = this, n = e._self._c;
|
|
1702
1611
|
return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1612
|
+
}, Et = [], At = /* @__PURE__ */ f(
|
|
1613
|
+
It,
|
|
1614
|
+
$t,
|
|
1615
|
+
Et,
|
|
1707
1616
|
!1,
|
|
1708
1617
|
null,
|
|
1709
1618
|
null,
|
|
1710
1619
|
null,
|
|
1711
1620
|
null
|
|
1712
1621
|
);
|
|
1713
|
-
const
|
|
1622
|
+
const Ft = At.exports, jt = {
|
|
1714
1623
|
name: "builder-img-component",
|
|
1715
1624
|
props: [
|
|
1716
1625
|
"backgroundSize",
|
|
@@ -1739,23 +1648,23 @@ const Pt = Ot.exports, Bt = {
|
|
|
1739
1648
|
}
|
|
1740
1649
|
}
|
|
1741
1650
|
};
|
|
1742
|
-
var
|
|
1651
|
+
var Ot = function() {
|
|
1743
1652
|
var e = this, n = e._self._c;
|
|
1744
1653
|
return n("img", e._g(e._b({ key: e.isEditing() && e.imgSrc || "default-key", style: {
|
|
1745
1654
|
objectFit: e.backgroundSize || "cover",
|
|
1746
1655
|
objectPosition: e.backgroundPosition || "center"
|
|
1747
1656
|
}, attrs: { alt: e.altText, src: e.imgSrc || e.image } }, "img", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)));
|
|
1748
|
-
},
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1657
|
+
}, Pt = [], Bt = /* @__PURE__ */ f(
|
|
1658
|
+
jt,
|
|
1659
|
+
Ot,
|
|
1660
|
+
Pt,
|
|
1752
1661
|
!1,
|
|
1753
1662
|
null,
|
|
1754
1663
|
null,
|
|
1755
1664
|
null,
|
|
1756
1665
|
null
|
|
1757
1666
|
);
|
|
1758
|
-
const
|
|
1667
|
+
const Ut = Bt.exports, Vt = {
|
|
1759
1668
|
name: "Raw:Img",
|
|
1760
1669
|
hideFromInsertMenu: !0,
|
|
1761
1670
|
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",
|
|
@@ -1770,7 +1679,7 @@ const Nt = Wt.exports, Lt = {
|
|
|
1770
1679
|
],
|
|
1771
1680
|
noWrap: !0,
|
|
1772
1681
|
static: !0
|
|
1773
|
-
},
|
|
1682
|
+
}, Wt = {
|
|
1774
1683
|
name: "builder-custom-code",
|
|
1775
1684
|
props: ["replaceNodes", "code"],
|
|
1776
1685
|
data() {
|
|
@@ -1818,22 +1727,22 @@ const Nt = Wt.exports, Lt = {
|
|
|
1818
1727
|
}
|
|
1819
1728
|
}
|
|
1820
1729
|
};
|
|
1821
|
-
var
|
|
1730
|
+
var Nt = function() {
|
|
1822
1731
|
var e = this, n = e._self._c;
|
|
1823
1732
|
return n("div", { ref: "elem", class: e._classStringToObject(
|
|
1824
1733
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1825
1734
|
), domProps: { innerHTML: e._s(e.code) } });
|
|
1826
|
-
},
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1735
|
+
}, Lt = [], Mt = /* @__PURE__ */ f(
|
|
1736
|
+
Wt,
|
|
1737
|
+
Nt,
|
|
1738
|
+
Lt,
|
|
1830
1739
|
!1,
|
|
1831
1740
|
null,
|
|
1832
1741
|
null,
|
|
1833
1742
|
null,
|
|
1834
1743
|
null
|
|
1835
1744
|
);
|
|
1836
|
-
const
|
|
1745
|
+
const zt = Mt.exports, Kt = {
|
|
1837
1746
|
name: "Custom Code",
|
|
1838
1747
|
static: !0,
|
|
1839
1748
|
requiredPermissions: ["editCode"],
|
|
@@ -1859,20 +1768,20 @@ const Ht = Dt.exports, qt = {
|
|
|
1859
1768
|
advanced: !0
|
|
1860
1769
|
}
|
|
1861
1770
|
]
|
|
1862
|
-
},
|
|
1863
|
-
{ component:
|
|
1864
|
-
{ component:
|
|
1865
|
-
{ component:
|
|
1866
|
-
{ component:
|
|
1867
|
-
{ component:
|
|
1868
|
-
{ component:
|
|
1869
|
-
{ component:
|
|
1870
|
-
{ component:
|
|
1871
|
-
{ component:
|
|
1872
|
-
{ component:
|
|
1873
|
-
{ component:
|
|
1771
|
+
}, Dt = () => [
|
|
1772
|
+
{ component: Z, ...Ae },
|
|
1773
|
+
{ component: ue, ...Fe },
|
|
1774
|
+
{ component: zt, ...Kt },
|
|
1775
|
+
{ component: Ft, ...wt },
|
|
1776
|
+
{ component: he, ...je },
|
|
1777
|
+
{ component: ke, ...Oe },
|
|
1778
|
+
{ component: Ut, ...Vt },
|
|
1779
|
+
{ component: Ne, ...Pe },
|
|
1780
|
+
{ component: mt, ...Le },
|
|
1781
|
+
{ component: yt, ...pt },
|
|
1782
|
+
{ component: St, ...vt }
|
|
1874
1783
|
];
|
|
1875
|
-
function
|
|
1784
|
+
function E({
|
|
1876
1785
|
code: t,
|
|
1877
1786
|
context: e,
|
|
1878
1787
|
state: n,
|
|
@@ -1909,7 +1818,7 @@ function F({
|
|
|
1909
1818
|
);
|
|
1910
1819
|
}
|
|
1911
1820
|
}
|
|
1912
|
-
function
|
|
1821
|
+
function Ht() {
|
|
1913
1822
|
return !p() || h() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1914
1823
|
}
|
|
1915
1824
|
const K = [];
|
|
@@ -1918,13 +1827,13 @@ function $n(t, e) {
|
|
|
1918
1827
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1919
1828
|
), t;
|
|
1920
1829
|
}
|
|
1921
|
-
const
|
|
1830
|
+
const qt = ({
|
|
1922
1831
|
component: t,
|
|
1923
1832
|
...e
|
|
1924
1833
|
}) => ({
|
|
1925
1834
|
type: "builder.registerComponent",
|
|
1926
|
-
data:
|
|
1927
|
-
}),
|
|
1835
|
+
data: Jt(e)
|
|
1836
|
+
}), Gt = (t) => typeof t == "function" ? x(t) : w(t), Jt = ({
|
|
1928
1837
|
inputs: t,
|
|
1929
1838
|
...e
|
|
1930
1839
|
}) => ({
|
|
@@ -1933,22 +1842,22 @@ const Xt = ({
|
|
|
1933
1842
|
(n) => Object.entries(n).reduce(
|
|
1934
1843
|
(o, [s, r]) => ({
|
|
1935
1844
|
...o,
|
|
1936
|
-
[s]:
|
|
1845
|
+
[s]: Gt(r)
|
|
1937
1846
|
}),
|
|
1938
1847
|
{}
|
|
1939
1848
|
)
|
|
1940
1849
|
)
|
|
1941
1850
|
});
|
|
1942
|
-
function
|
|
1851
|
+
function Xt() {
|
|
1943
1852
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
1944
1853
|
const e = Math.random() * 16 | 0;
|
|
1945
1854
|
return (t == "x" ? e : e & 3 | 8).toString(16);
|
|
1946
1855
|
});
|
|
1947
1856
|
}
|
|
1948
1857
|
function D() {
|
|
1949
|
-
return
|
|
1858
|
+
return Xt().replace(/-/g, "");
|
|
1950
1859
|
}
|
|
1951
|
-
const H = "builderSessionId",
|
|
1860
|
+
const H = "builderSessionId", Yt = async ({
|
|
1952
1861
|
canTrack: t
|
|
1953
1862
|
}) => {
|
|
1954
1863
|
if (!t)
|
|
@@ -1960,13 +1869,13 @@ const H = "builderSessionId", en = async ({
|
|
|
1960
1869
|
if (b(e))
|
|
1961
1870
|
return e;
|
|
1962
1871
|
{
|
|
1963
|
-
const n =
|
|
1964
|
-
return
|
|
1872
|
+
const n = Qt();
|
|
1873
|
+
return Zt({ id: n, canTrack: t }), n;
|
|
1965
1874
|
}
|
|
1966
|
-
},
|
|
1875
|
+
}, Qt = () => D(), Zt = ({
|
|
1967
1876
|
id: t,
|
|
1968
1877
|
canTrack: e
|
|
1969
|
-
}) => N({ name: H, value: t, canTrack: e }), q = () => p() && typeof localStorage < "u" ? localStorage : void 0,
|
|
1878
|
+
}) => N({ name: H, value: t, canTrack: e }), q = () => p() && typeof localStorage < "u" ? localStorage : void 0, en = ({
|
|
1970
1879
|
key: t,
|
|
1971
1880
|
canTrack: e
|
|
1972
1881
|
}) => {
|
|
@@ -1977,7 +1886,7 @@ const H = "builderSessionId", en = async ({
|
|
|
1977
1886
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1978
1887
|
return;
|
|
1979
1888
|
}
|
|
1980
|
-
},
|
|
1889
|
+
}, tn = ({
|
|
1981
1890
|
key: t,
|
|
1982
1891
|
canTrack: e,
|
|
1983
1892
|
value: n
|
|
@@ -1988,34 +1897,34 @@ const H = "builderSessionId", en = async ({
|
|
|
1988
1897
|
} catch (s) {
|
|
1989
1898
|
console.debug("[LocalStorage] SET error: ", s);
|
|
1990
1899
|
}
|
|
1991
|
-
}, G = "builderVisitorId",
|
|
1900
|
+
}, G = "builderVisitorId", nn = ({ canTrack: t }) => {
|
|
1992
1901
|
if (!t)
|
|
1993
1902
|
return;
|
|
1994
|
-
const e =
|
|
1903
|
+
const e = en({
|
|
1995
1904
|
key: G,
|
|
1996
1905
|
canTrack: t
|
|
1997
1906
|
});
|
|
1998
1907
|
if (b(e))
|
|
1999
1908
|
return e;
|
|
2000
1909
|
{
|
|
2001
|
-
const n =
|
|
2002
|
-
return
|
|
1910
|
+
const n = on();
|
|
1911
|
+
return sn({ id: n, canTrack: t }), n;
|
|
2003
1912
|
}
|
|
2004
|
-
},
|
|
1913
|
+
}, on = () => D(), sn = ({
|
|
2005
1914
|
id: t,
|
|
2006
1915
|
canTrack: e
|
|
2007
|
-
}) =>
|
|
1916
|
+
}) => tn({
|
|
2008
1917
|
key: G,
|
|
2009
1918
|
value: t,
|
|
2010
1919
|
canTrack: e
|
|
2011
|
-
}),
|
|
1920
|
+
}), rn = () => {
|
|
2012
1921
|
if (p()) {
|
|
2013
1922
|
const t = new URL(location.href);
|
|
2014
1923
|
return t.pathname === "" && (t.pathname = "/"), t;
|
|
2015
1924
|
} else
|
|
2016
1925
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
2017
|
-
},
|
|
2018
|
-
const t =
|
|
1926
|
+
}, an = () => typeof navigator == "object" && navigator.userAgent || "", ln = () => {
|
|
1927
|
+
const t = an(), e = {
|
|
2019
1928
|
Android() {
|
|
2020
1929
|
return t.match(/Android/i);
|
|
2021
1930
|
},
|
|
@@ -2034,23 +1943,23 @@ const H = "builderSessionId", en = async ({
|
|
|
2034
1943
|
any() {
|
|
2035
1944
|
return e.Android() || e.BlackBerry() || e.iOS() || e.Opera() || e.Windows() || v === "reactNative";
|
|
2036
1945
|
}
|
|
2037
|
-
}, n = t.match(/Tablet|iPad/i), o =
|
|
1946
|
+
}, n = t.match(/Tablet|iPad/i), o = rn();
|
|
2038
1947
|
return {
|
|
2039
1948
|
urlPath: o == null ? void 0 : o.pathname,
|
|
2040
1949
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
2041
1950
|
device: n ? "tablet" : e.any() ? "mobile" : "desktop"
|
|
2042
1951
|
};
|
|
2043
|
-
},
|
|
1952
|
+
}, cn = async ({
|
|
2044
1953
|
canTrack: t
|
|
2045
1954
|
}) => {
|
|
2046
1955
|
if (!t)
|
|
2047
1956
|
return { visitorId: void 0, sessionId: void 0 };
|
|
2048
|
-
const e = await
|
|
1957
|
+
const e = await Yt({ canTrack: t }), n = nn({ canTrack: t });
|
|
2049
1958
|
return {
|
|
2050
1959
|
sessionId: e,
|
|
2051
1960
|
visitorId: n
|
|
2052
1961
|
};
|
|
2053
|
-
},
|
|
1962
|
+
}, un = async ({
|
|
2054
1963
|
type: t,
|
|
2055
1964
|
canTrack: e,
|
|
2056
1965
|
apiKey: n,
|
|
@@ -2064,8 +1973,8 @@ const H = "builderSessionId", en = async ({
|
|
|
2064
1973
|
url: location.href,
|
|
2065
1974
|
...o
|
|
2066
1975
|
},
|
|
2067
|
-
...await
|
|
2068
|
-
userAttributes:
|
|
1976
|
+
...await cn({ canTrack: e }),
|
|
1977
|
+
userAttributes: ln(),
|
|
2069
1978
|
ownerId: n
|
|
2070
1979
|
}
|
|
2071
1980
|
});
|
|
@@ -2080,7 +1989,7 @@ async function S(t) {
|
|
|
2080
1989
|
return fetch("https://builder.io/api/v1/track", {
|
|
2081
1990
|
method: "POST",
|
|
2082
1991
|
body: JSON.stringify({
|
|
2083
|
-
events: [await
|
|
1992
|
+
events: [await un(t)]
|
|
2084
1993
|
}),
|
|
2085
1994
|
headers: {
|
|
2086
1995
|
"content-type": "application/json"
|
|
@@ -2090,7 +1999,101 @@ async function S(t) {
|
|
|
2090
1999
|
console.error("Failed to track: ", e);
|
|
2091
2000
|
});
|
|
2092
2001
|
}
|
|
2093
|
-
const En = (t) => S({ ...t, canTrack: !0 });
|
|
2002
|
+
const En = (t) => S({ ...t, canTrack: !0 }), A = {};
|
|
2003
|
+
function dn(t, e) {
|
|
2004
|
+
let n = A[t];
|
|
2005
|
+
if (n || (n = A[t] = []), n.push(e), p()) {
|
|
2006
|
+
const o = {
|
|
2007
|
+
type: "builder.register",
|
|
2008
|
+
data: {
|
|
2009
|
+
type: t,
|
|
2010
|
+
info: e
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
try {
|
|
2014
|
+
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
2015
|
+
} catch (s) {
|
|
2016
|
+
console.debug("Could not postmessage", s);
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
const mn = () => {
|
|
2021
|
+
dn("insertMenu", {
|
|
2022
|
+
name: "_default",
|
|
2023
|
+
default: !0,
|
|
2024
|
+
items: [
|
|
2025
|
+
{ name: "Box" },
|
|
2026
|
+
{ name: "Text" },
|
|
2027
|
+
{ name: "Image" },
|
|
2028
|
+
{ name: "Columns" },
|
|
2029
|
+
{ name: "Core:Section" },
|
|
2030
|
+
{ name: "Core:Button" },
|
|
2031
|
+
{ name: "Embed" },
|
|
2032
|
+
{ name: "Custom Code" }
|
|
2033
|
+
]
|
|
2034
|
+
});
|
|
2035
|
+
};
|
|
2036
|
+
let F = !1;
|
|
2037
|
+
const pn = (t = {}) => {
|
|
2038
|
+
var e, n;
|
|
2039
|
+
F || (F = !0, p() && ((e = window.parent) == null || e.postMessage(
|
|
2040
|
+
{
|
|
2041
|
+
type: "builder.sdkInfo",
|
|
2042
|
+
data: {
|
|
2043
|
+
target: v,
|
|
2044
|
+
supportsPatchUpdates: !1,
|
|
2045
|
+
supportsAddBlockScoping: !0,
|
|
2046
|
+
supportsCustomBreakpoints: !0
|
|
2047
|
+
}
|
|
2048
|
+
},
|
|
2049
|
+
"*"
|
|
2050
|
+
), (n = window.parent) == null || n.postMessage(
|
|
2051
|
+
{
|
|
2052
|
+
type: "builder.updateContent",
|
|
2053
|
+
data: {
|
|
2054
|
+
options: t
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
"*"
|
|
2058
|
+
), window.addEventListener("message", ({ data: o }) => {
|
|
2059
|
+
var s, r;
|
|
2060
|
+
if (!!(o != null && o.type))
|
|
2061
|
+
switch (o.type) {
|
|
2062
|
+
case "builder.evaluate": {
|
|
2063
|
+
const i = o.data.text, l = o.data.arguments || [], a = o.data.id, c = new Function(i);
|
|
2064
|
+
let d, m = null;
|
|
2065
|
+
try {
|
|
2066
|
+
d = c.apply(null, l);
|
|
2067
|
+
} catch (u) {
|
|
2068
|
+
m = u;
|
|
2069
|
+
}
|
|
2070
|
+
m ? (s = window.parent) == null || s.postMessage(
|
|
2071
|
+
{
|
|
2072
|
+
type: "builder.evaluateError",
|
|
2073
|
+
data: { id: a, error: m.message }
|
|
2074
|
+
},
|
|
2075
|
+
"*"
|
|
2076
|
+
) : d && typeof d.then == "function" ? d.then((u) => {
|
|
2077
|
+
var g;
|
|
2078
|
+
(g = window.parent) == null || g.postMessage(
|
|
2079
|
+
{
|
|
2080
|
+
type: "builder.evaluateResult",
|
|
2081
|
+
data: { id: a, result: u }
|
|
2082
|
+
},
|
|
2083
|
+
"*"
|
|
2084
|
+
);
|
|
2085
|
+
}).catch(console.error) : (r = window.parent) == null || r.postMessage(
|
|
2086
|
+
{
|
|
2087
|
+
type: "builder.evaluateResult",
|
|
2088
|
+
data: { result: d, id: a }
|
|
2089
|
+
},
|
|
2090
|
+
"*"
|
|
2091
|
+
);
|
|
2092
|
+
break;
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
})));
|
|
2096
|
+
};
|
|
2094
2097
|
function j(t) {
|
|
2095
2098
|
return Math.round(t * 1e3) / 1e3;
|
|
2096
2099
|
}
|
|
@@ -2159,7 +2162,7 @@ const fn = (t, e, n = !0) => {
|
|
|
2159
2162
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
2160
2163
|
t
|
|
2161
2164
|
), t;
|
|
2162
|
-
}), _n = () => import("./render-styles.
|
|
2165
|
+
}), _n = () => import("./render-styles.c4b6de30.js").then((t) => t.default).catch((t) => {
|
|
2163
2166
|
throw console.error(
|
|
2164
2167
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
2165
2168
|
t
|
|
@@ -2197,7 +2200,7 @@ const fn = (t, e, n = !0) => {
|
|
|
2197
2200
|
locale: this.locale
|
|
2198
2201
|
}),
|
|
2199
2202
|
allRegisteredComponents: [
|
|
2200
|
-
...
|
|
2203
|
+
...Dt(),
|
|
2201
2204
|
...K,
|
|
2202
2205
|
...this.customComponents || []
|
|
2203
2206
|
].reduce(
|
|
@@ -2208,7 +2211,8 @@ const fn = (t, e, n = !0) => {
|
|
|
2208
2211
|
{}
|
|
2209
2212
|
),
|
|
2210
2213
|
httpReqsData: {},
|
|
2211
|
-
clicked: !1
|
|
2214
|
+
clicked: !1,
|
|
2215
|
+
TARGET: v
|
|
2212
2216
|
};
|
|
2213
2217
|
},
|
|
2214
2218
|
provide() {
|
|
@@ -2229,7 +2233,7 @@ const fn = (t, e, n = !0) => {
|
|
|
2229
2233
|
if (this.apiKey || console.error(
|
|
2230
2234
|
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2231
2235
|
), p()) {
|
|
2232
|
-
if (h() && (this.forceReRenderCount = this.forceReRenderCount + 1,
|
|
2236
|
+
if (h() && (this.forceReRenderCount = this.forceReRenderCount + 1, mn(), pn({
|
|
2233
2237
|
...this.locale ? {
|
|
2234
2238
|
locale: this.locale
|
|
2235
2239
|
} : {},
|
|
@@ -2239,7 +2243,7 @@ const fn = (t, e, n = !0) => {
|
|
|
2239
2243
|
}), Object.values(this.allRegisteredComponents).forEach(
|
|
2240
2244
|
(n) => {
|
|
2241
2245
|
var s;
|
|
2242
|
-
const o =
|
|
2246
|
+
const o = qt(n);
|
|
2243
2247
|
(s = window.parent) == null || s.postMessage(o, "*");
|
|
2244
2248
|
}
|
|
2245
2249
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -2255,7 +2259,7 @@ const fn = (t, e, n = !0) => {
|
|
|
2255
2259
|
variationId: n !== o ? n : void 0
|
|
2256
2260
|
});
|
|
2257
2261
|
}
|
|
2258
|
-
if (
|
|
2262
|
+
if (Ht()) {
|
|
2259
2263
|
const n = new URL(location.href).searchParams, o = n.get("builder.preview"), s = n.get("apiKey") || n.get("builder.space");
|
|
2260
2264
|
o === this.model && s === this.apiKey && z({
|
|
2261
2265
|
model: this.model,
|
|
@@ -2294,12 +2298,6 @@ const fn = (t, e, n = !0) => {
|
|
|
2294
2298
|
));
|
|
2295
2299
|
},
|
|
2296
2300
|
computed: {
|
|
2297
|
-
shouldRenderContentStyles() {
|
|
2298
|
-
var t, e, n, o, s;
|
|
2299
|
-
return Boolean(
|
|
2300
|
-
(((e = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : e.cssCode) || ((s = (o = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : o.customFonts) == null ? void 0 : s.length)) && v !== "reactNative"
|
|
2301
|
-
);
|
|
2302
|
-
},
|
|
2303
2301
|
onUpdateHook0() {
|
|
2304
2302
|
var t, e;
|
|
2305
2303
|
return {
|
|
@@ -2371,7 +2369,7 @@ const fn = (t, e, n = !0) => {
|
|
|
2371
2369
|
evaluateJsCode() {
|
|
2372
2370
|
var e, n;
|
|
2373
2371
|
const t = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode;
|
|
2374
|
-
t &&
|
|
2372
|
+
t && E({
|
|
2375
2373
|
code: t,
|
|
2376
2374
|
context: this.context || {},
|
|
2377
2375
|
state: this.contentState
|
|
@@ -2396,7 +2394,7 @@ const fn = (t, e, n = !0) => {
|
|
|
2396
2394
|
evalExpression(t) {
|
|
2397
2395
|
return t.replace(
|
|
2398
2396
|
/{{([^}]+)}}/g,
|
|
2399
|
-
(e, n) =>
|
|
2397
|
+
(e, n) => E({
|
|
2400
2398
|
code: n,
|
|
2401
2399
|
context: this.context || {},
|
|
2402
2400
|
state: this.contentState
|
|
@@ -2446,7 +2444,7 @@ var kn = function() {
|
|
|
2446
2444
|
var e = this, n = e._self._c;
|
|
2447
2445
|
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(m) {
|
|
2448
2446
|
return e.onClick(m);
|
|
2449
|
-
} } }, [e.
|
|
2447
|
+
} } }, [e.TARGET !== "reactNative" ? [n("render-content-styles", { attrs: { contentId: (s = e.useContent) == null ? void 0 : s.id, cssCode: (i = (r = e.useContent) == null ? void 0 : r.data) == null ? void 0 : i.cssCode, customFonts: (a = (l = e.useContent) == null ? void 0 : l.data) == null ? void 0 : a.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: (d = (c = e.useContent) == null ? void 0 : c.data) == null ? void 0 : d.blocks } })], 2) : e._e();
|
|
2450
2448
|
}, Cn = [], Sn = /* @__PURE__ */ f(
|
|
2451
2449
|
xn,
|
|
2452
2450
|
kn,
|
|
@@ -2457,7 +2455,7 @@ var kn = function() {
|
|
|
2457
2455
|
null,
|
|
2458
2456
|
null
|
|
2459
2457
|
);
|
|
2460
|
-
const wn = Sn.exports,
|
|
2458
|
+
const wn = Sn.exports, Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2461
2459
|
__proto__: null,
|
|
2462
2460
|
default: wn
|
|
2463
2461
|
}, Symbol.toStringTag, { value: "Module" })), P = {};
|
|
@@ -2474,36 +2472,36 @@ function An(t) {
|
|
|
2474
2472
|
export {
|
|
2475
2473
|
M as A,
|
|
2476
2474
|
_ as B,
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2475
|
+
ue as C,
|
|
2476
|
+
he as F,
|
|
2477
|
+
ke as I,
|
|
2478
|
+
Ne as S,
|
|
2481
2479
|
v as T,
|
|
2482
|
-
|
|
2480
|
+
St as V,
|
|
2483
2481
|
In as a,
|
|
2484
|
-
|
|
2482
|
+
Rn as b,
|
|
2485
2483
|
b as c,
|
|
2486
|
-
|
|
2487
|
-
|
|
2484
|
+
ne as d,
|
|
2485
|
+
E as e,
|
|
2488
2486
|
w as f,
|
|
2489
|
-
|
|
2490
|
-
|
|
2487
|
+
ee as g,
|
|
2488
|
+
Z as h,
|
|
2491
2489
|
wn as i,
|
|
2492
|
-
|
|
2493
|
-
|
|
2490
|
+
mt as j,
|
|
2491
|
+
yt as k,
|
|
2494
2492
|
h as l,
|
|
2495
|
-
|
|
2493
|
+
Ht as m,
|
|
2496
2494
|
f as n,
|
|
2497
2495
|
K as o,
|
|
2498
2496
|
$n as p,
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2497
|
+
qt as q,
|
|
2498
|
+
Ee as r,
|
|
2499
|
+
dn as s,
|
|
2502
2500
|
En as t,
|
|
2503
2501
|
An as u,
|
|
2504
2502
|
z as v,
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2503
|
+
it as w,
|
|
2504
|
+
nt as x,
|
|
2505
|
+
ot as y,
|
|
2506
|
+
st as z
|
|
2509
2507
|
};
|