@builder.io/sdk-vue 0.12.4 → 0.12.5
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.53c7f508.js → block-styles.4b421b83.js} +1 -1
- package/lib/browser/{block-styles.02ba52b2.cjs → block-styles.a73376ed.cjs} +1 -1
- package/lib/browser/{block-wrapper.9fa9b402.cjs → block-wrapper.531592ac.cjs} +1 -1
- package/lib/browser/{block-wrapper.eee0672a.js → block-wrapper.68a2b10b.js} +3 -3
- package/lib/browser/{component-ref.7152f073.cjs → component-ref.a006af2a.cjs} +1 -1
- package/lib/browser/{component-ref.413e00a0.js → component-ref.aeb58ed2.js} +2 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- package/lib/browser/{get-block-properties.977a77b8.js → get-block-properties.c632735e.js} +1 -1
- package/lib/browser/{get-block-properties.af78bde3.cjs → get-block-properties.cb447ec3.cjs} +1 -1
- package/lib/browser/{index.50f38496.cjs → index.6d8f74eb.cjs} +18 -18
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/{index.125c730f.js → index.dae5ffb2.js} +320 -309
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block.0c50662b.cjs → repeated-block.19e40e3c.cjs} +1 -1
- package/lib/browser/{repeated-block.bc26d02d.js → repeated-block.1daedcf0.js} +2 -2
- package/lib/edge/{block-styles.a5af3df2.cjs → block-styles.d6a137a2.cjs} +1 -1
- package/lib/edge/{block-styles.fee0d2aa.js → block-styles.ff4e7cca.js} +1 -1
- package/lib/edge/{block-wrapper.6bdfca76.cjs → block-wrapper.7680c30d.cjs} +1 -1
- package/lib/edge/{block-wrapper.637d7df2.js → block-wrapper.e888bded.js} +3 -3
- package/lib/edge/{component-ref.41811af5.js → component-ref.0085cff9.js} +2 -2
- package/lib/edge/{component-ref.369810a4.cjs → component-ref.b8948e48.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- package/lib/edge/{get-block-properties.d9e1b7db.js → get-block-properties.72a3dc12.js} +1 -1
- package/lib/{node/get-block-properties.4076202f.cjs → edge/get-block-properties.d45ba61d.cjs} +1 -1
- package/lib/edge/{index.202adcba.cjs → index.0a0c8c92.cjs} +26 -26
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/{index.0e671c32.js → index.e6d5cab7.js} +403 -392
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block.05059f8a.cjs → repeated-block.05f807ba.cjs} +1 -1
- package/lib/edge/{repeated-block.f8d5be9a.js → repeated-block.2b5cb112.js} +2 -2
- package/lib/node/{block-styles.c9083d49.cjs → block-styles.29394399.cjs} +1 -1
- package/lib/node/{block-styles.bb5f14b0.js → block-styles.ca6e546f.js} +1 -1
- package/lib/node/{block-wrapper.7aa2ef9c.js → block-wrapper.2d100320.js} +3 -3
- package/lib/node/{block-wrapper.7d82a700.cjs → block-wrapper.475ef393.cjs} +1 -1
- package/lib/node/{component-ref.32bc874a.js → component-ref.8ce368f0.js} +2 -2
- package/lib/node/{component-ref.3748ed2f.cjs → component-ref.e97c8def.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- package/lib/node/{get-block-properties.4e3171b7.js → get-block-properties.617528c9.js} +1 -1
- package/lib/{edge/get-block-properties.8c9ec377.cjs → node/get-block-properties.8f5406b6.cjs} +1 -1
- package/lib/node/{index.0d7a2ca2.js → index.a0eb0257.js} +170 -159
- package/lib/node/{index.a0856b34.cjs → index.c1e6d3e4.cjs} +4 -4
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block.05cbf677.js → repeated-block.7e31abfb.js} +2 -2
- package/lib/node/{repeated-block.d07e6280.cjs → repeated-block.c8bbbf33.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as h, openBlock as d, createElementBlock as p, Fragment as
|
|
2
|
+
import { defineComponent as h, openBlock as d, createElementBlock as p, Fragment as $, createBlock as k, resolveDynamicComponent as U, mergeProps as S, toHandlers as N, withCtx as B, renderSlot as T, resolveComponent as b, createTextVNode as Ye, toDisplayString as Qe, defineAsyncComponent as M, createVNode as E, renderList as F, createCommentVNode as y, h as ve, createElementVNode as Q, normalizeStyle as X, normalizeClass as Ce, markRaw as Xe } from "vue";
|
|
3
3
|
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
4
4
|
function q(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -24,13 +24,13 @@ const tt = h({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function nt(e, t, n, o, r, i) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), k(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), k(
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), k(U(e.TagName), S({ key: 1 }, e.attributes, N(e.actionAttributes)), null, 16)) : (d(), p($, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), k(U(e.TagName), S({ key: 0 }, e.attributes, N(e.actionAttributes)), {
|
|
29
29
|
default: B(() => [
|
|
30
30
|
T(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), k(
|
|
33
|
+
}, 16)) : (d(), k(U(e.TagName), S({ key: 1 }, e.attributes, N(e.actionAttributes)), {
|
|
34
34
|
default: B(() => [
|
|
35
35
|
T(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,7 +38,7 @@ function nt(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const ne = /* @__PURE__ */ f(tt, [["render", nt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/dynamic-renderer/dynamic-renderer.vue"]]),
|
|
41
|
+
const ne = /* @__PURE__ */ f(tt, [["render", nt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/dynamic-renderer/dynamic-renderer.vue"]]), ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: ne
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), R = "vue", oe = () => {
|
|
@@ -118,7 +118,7 @@ function lt(e) {
|
|
|
118
118
|
builderBlock: e
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
const j = "[Builder.io]: ",
|
|
121
|
+
const j = "[Builder.io]: ", w = {
|
|
122
122
|
log: (...e) => console.log(j, ...e),
|
|
123
123
|
error: (...e) => console.error(j, ...e),
|
|
124
124
|
warn: (...e) => console.warn(j, ...e),
|
|
@@ -212,7 +212,18 @@ function ft(e, t, n) {
|
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const W = (e) => e != null;
|
|
216
|
+
function bt() {
|
|
217
|
+
var e;
|
|
218
|
+
return typeof process < "u" && W((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
219
|
+
}
|
|
220
|
+
const gt = () => {
|
|
221
|
+
var o;
|
|
222
|
+
if (!bt())
|
|
223
|
+
return !1;
|
|
224
|
+
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
225
|
+
return e && t && !n ? (w.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
226
|
+
}, kt = (e) => (v() || gt(), ce(e));
|
|
216
227
|
function z({
|
|
217
228
|
code: e,
|
|
218
229
|
context: t,
|
|
@@ -223,7 +234,7 @@ function z({
|
|
|
223
234
|
isExpression: s = !0
|
|
224
235
|
}) {
|
|
225
236
|
if (e === "") {
|
|
226
|
-
|
|
237
|
+
w.warn("Skipping evaluation of empty code block.");
|
|
227
238
|
return;
|
|
228
239
|
}
|
|
229
240
|
const a = {
|
|
@@ -238,21 +249,21 @@ function z({
|
|
|
238
249
|
localState: n
|
|
239
250
|
};
|
|
240
251
|
try {
|
|
241
|
-
return
|
|
252
|
+
return kt(a);
|
|
242
253
|
} catch (l) {
|
|
243
|
-
|
|
254
|
+
w.error("Failed code evaluation: " + l.message, {
|
|
244
255
|
code: e
|
|
245
256
|
});
|
|
246
257
|
return;
|
|
247
258
|
}
|
|
248
259
|
}
|
|
249
|
-
const H = (e) => JSON.parse(JSON.stringify(e)),
|
|
260
|
+
const H = (e) => JSON.parse(JSON.stringify(e)), yt = (e, t, n) => {
|
|
250
261
|
if (Object(e) !== e)
|
|
251
262
|
return e;
|
|
252
263
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
253
264
|
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;
|
|
254
265
|
};
|
|
255
|
-
const
|
|
266
|
+
const vt = ({
|
|
256
267
|
block: e,
|
|
257
268
|
context: t,
|
|
258
269
|
localState: n,
|
|
@@ -278,7 +289,7 @@ const kt = ({
|
|
|
278
289
|
rootSetState: r,
|
|
279
290
|
context: t
|
|
280
291
|
});
|
|
281
|
-
|
|
292
|
+
yt(s, a, c);
|
|
282
293
|
}
|
|
283
294
|
return s;
|
|
284
295
|
};
|
|
@@ -291,7 +302,7 @@ function Ie({
|
|
|
291
302
|
rootSetState: i
|
|
292
303
|
}) {
|
|
293
304
|
const s = e;
|
|
294
|
-
return n ?
|
|
305
|
+
return n ? vt({
|
|
295
306
|
block: s,
|
|
296
307
|
localState: o,
|
|
297
308
|
rootState: r,
|
|
@@ -299,31 +310,31 @@ function Ie({
|
|
|
299
310
|
context: t
|
|
300
311
|
}) : s;
|
|
301
312
|
}
|
|
302
|
-
const
|
|
313
|
+
const Ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), $e = (e) => Object.entries(e).map(([n, o]) => {
|
|
303
314
|
if (typeof o == "string")
|
|
304
|
-
return `${
|
|
305
|
-
}).filter(W),
|
|
306
|
-
`),
|
|
315
|
+
return `${Ct(n)}: ${o};`;
|
|
316
|
+
}).filter(W), St = (e) => $e(e).join(`
|
|
317
|
+
`), pr = ({
|
|
307
318
|
mediaQuery: e,
|
|
308
319
|
className: t,
|
|
309
320
|
styles: n
|
|
310
321
|
}) => {
|
|
311
322
|
const o = `.${t} {
|
|
312
|
-
${
|
|
323
|
+
${St(n)}
|
|
313
324
|
}`;
|
|
314
325
|
return e ? `${e} {
|
|
315
326
|
${o}
|
|
316
327
|
}` : o;
|
|
317
328
|
};
|
|
318
|
-
function
|
|
329
|
+
function wt({
|
|
319
330
|
style: e
|
|
320
331
|
}) {
|
|
321
332
|
return e;
|
|
322
333
|
}
|
|
323
|
-
const
|
|
334
|
+
const mr = ({
|
|
324
335
|
block: e,
|
|
325
336
|
context: t
|
|
326
|
-
}) => Re(
|
|
337
|
+
}) => Re(wt({
|
|
327
338
|
style: e.style || {},
|
|
328
339
|
context: t,
|
|
329
340
|
block: e
|
|
@@ -341,7 +352,7 @@ function Re(e) {
|
|
|
341
352
|
return e;
|
|
342
353
|
}
|
|
343
354
|
}
|
|
344
|
-
const
|
|
355
|
+
const It = ({
|
|
345
356
|
block: e,
|
|
346
357
|
context: t,
|
|
347
358
|
registeredComponents: n
|
|
@@ -363,7 +374,7 @@ const St = ({
|
|
|
363
374
|
console.warn(`
|
|
364
375
|
Could not find a registered component named "${o}".
|
|
365
376
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
366
|
-
},
|
|
377
|
+
}, $t = ({
|
|
367
378
|
block: e,
|
|
368
379
|
context: t
|
|
369
380
|
}) => {
|
|
@@ -396,33 +407,33 @@ const St = ({
|
|
|
396
407
|
},
|
|
397
408
|
block: o
|
|
398
409
|
}));
|
|
399
|
-
},
|
|
410
|
+
}, Rt = () => import("./block-styles.4b421b83.js").then((e) => e.default).catch((e) => {
|
|
400
411
|
throw console.error(
|
|
401
412
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
402
413
|
e
|
|
403
414
|
), e;
|
|
404
|
-
}),
|
|
415
|
+
}), Tt = () => import("./block-wrapper.68a2b10b.js").then((e) => e.default).catch((e) => {
|
|
405
416
|
throw console.error(
|
|
406
417
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
407
418
|
e
|
|
408
419
|
), e;
|
|
409
|
-
}),
|
|
420
|
+
}), Pt = () => import("./component-ref.aeb58ed2.js").then((e) => e.default).catch((e) => {
|
|
410
421
|
throw console.error(
|
|
411
422
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
412
423
|
e
|
|
413
424
|
), e;
|
|
414
|
-
}),
|
|
425
|
+
}), Et = () => import("./repeated-block.1daedcf0.js").then((e) => e.default).catch((e) => {
|
|
415
426
|
throw console.error(
|
|
416
427
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
417
428
|
e
|
|
418
429
|
), e;
|
|
419
|
-
}),
|
|
430
|
+
}), At = h({
|
|
420
431
|
name: "block",
|
|
421
432
|
components: {
|
|
422
|
-
BlockStyles: M(
|
|
423
|
-
ComponentRef: M(
|
|
424
|
-
RepeatedBlock: M(
|
|
425
|
-
BlockWrapper: M(
|
|
433
|
+
BlockStyles: M(Rt),
|
|
434
|
+
ComponentRef: M(Pt),
|
|
435
|
+
RepeatedBlock: M(Et),
|
|
436
|
+
BlockWrapper: M(Tt)
|
|
426
437
|
},
|
|
427
438
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
428
439
|
data() {
|
|
@@ -430,14 +441,14 @@ const St = ({
|
|
|
430
441
|
},
|
|
431
442
|
computed: {
|
|
432
443
|
blockComponent() {
|
|
433
|
-
return
|
|
444
|
+
return It({
|
|
434
445
|
block: this.block,
|
|
435
446
|
context: this.context,
|
|
436
447
|
registeredComponents: this.registeredComponents
|
|
437
448
|
});
|
|
438
449
|
},
|
|
439
450
|
repeatItem() {
|
|
440
|
-
return
|
|
451
|
+
return $t({
|
|
441
452
|
block: this.block,
|
|
442
453
|
context: this.context
|
|
443
454
|
});
|
|
@@ -493,10 +504,10 @@ const St = ({
|
|
|
493
504
|
}
|
|
494
505
|
}
|
|
495
506
|
});
|
|
496
|
-
function
|
|
507
|
+
function Bt(e, t, n, o, r, i) {
|
|
497
508
|
var m;
|
|
498
509
|
const s = b("block-styles"), a = b("component-ref"), l = b("block", !0), c = b("block-wrapper"), u = b("repeated-block");
|
|
499
|
-
return e.canShowBlock ? (d(), p(
|
|
510
|
+
return e.canShowBlock ? (d(), p($, { key: 0 }, [
|
|
500
511
|
E(s, {
|
|
501
512
|
block: e.block,
|
|
502
513
|
context: e.context
|
|
@@ -512,8 +523,8 @@ function Et(e, t, n, o, r, i) {
|
|
|
512
523
|
builderBlock: e.componentRefProps.builderBlock,
|
|
513
524
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
514
525
|
isInteractive: e.componentRefProps.isInteractive
|
|
515
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p(
|
|
516
|
-
e.repeatItem ? (d(!0), p(
|
|
526
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p($, { key: 0 }, [
|
|
527
|
+
e.repeatItem ? (d(!0), p($, { key: 1 }, F(e.repeatItem, (g, C) => (d(), k(u, {
|
|
517
528
|
key: C,
|
|
518
529
|
repeatContext: g.context,
|
|
519
530
|
block: g.block,
|
|
@@ -538,7 +549,7 @@ function Et(e, t, n, o, r, i) {
|
|
|
538
549
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
539
550
|
isInteractive: e.componentRefProps.isInteractive
|
|
540
551
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
541
|
-
(d(!0), p(
|
|
552
|
+
(d(!0), p($, null, F(e.childrenWithoutParentComponent, (g, C) => (d(), k(l, {
|
|
542
553
|
key: g.id,
|
|
543
554
|
block: g,
|
|
544
555
|
context: e.childrenContext,
|
|
@@ -551,10 +562,10 @@ function Et(e, t, n, o, r, i) {
|
|
|
551
562
|
], 64))
|
|
552
563
|
], 64)) : y("v-if", !0);
|
|
553
564
|
}
|
|
554
|
-
const Te = /* @__PURE__ */ f(
|
|
565
|
+
const Te = /* @__PURE__ */ f(At, [["render", Bt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
555
566
|
__proto__: null,
|
|
556
567
|
default: Te
|
|
557
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
568
|
+
}, Symbol.toStringTag, { value: "Module" })), xt = h({
|
|
558
569
|
name: "builder-blocks-wrapper",
|
|
559
570
|
props: [
|
|
560
571
|
"BlocksWrapper",
|
|
@@ -599,8 +610,8 @@ const Te = /* @__PURE__ */ f(Pt, [["render", Et], ["__file", "/home/runner/work/
|
|
|
599
610
|
}
|
|
600
611
|
}
|
|
601
612
|
});
|
|
602
|
-
function
|
|
603
|
-
return d(), k(
|
|
613
|
+
function Wt(e, t, n, o, r, i) {
|
|
614
|
+
return d(), k(U(e.BlocksWrapper), S({
|
|
604
615
|
class: e.className + " component-1k2igrjdg3x",
|
|
605
616
|
"builder-path": e.path,
|
|
606
617
|
"builder-parent-id": e.parent,
|
|
@@ -615,9 +626,9 @@ function Bt(e, t, n, o, r, i) {
|
|
|
615
626
|
_: 3
|
|
616
627
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
617
628
|
}
|
|
618
|
-
const
|
|
629
|
+
const Vt = /* @__PURE__ */ f(xt, [["render", Wt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), Nt = h({
|
|
619
630
|
name: "builder-blocks",
|
|
620
|
-
components: { BlocksWrapper:
|
|
631
|
+
components: { BlocksWrapper: Vt, Block: Te },
|
|
621
632
|
props: [
|
|
622
633
|
"blocks",
|
|
623
634
|
"parent",
|
|
@@ -632,7 +643,7 @@ const xt = /* @__PURE__ */ f(At, [["render", Bt], ["__scopeId", "data-v-1f8aab9f
|
|
|
632
643
|
componentsContext: Se.key
|
|
633
644
|
}
|
|
634
645
|
});
|
|
635
|
-
function
|
|
646
|
+
function Ot(e, t, n, o, r, i) {
|
|
636
647
|
var l, c;
|
|
637
648
|
const s = b("block"), a = b("blocks-wrapper");
|
|
638
649
|
return d(), k(a, {
|
|
@@ -644,7 +655,7 @@ function Vt(e, t, n, o, r, i) {
|
|
|
644
655
|
BlocksWrapperProps: (c = e.context) == null ? void 0 : c.BlocksWrapperProps
|
|
645
656
|
}, {
|
|
646
657
|
default: B(() => [
|
|
647
|
-
e.blocks ? (d(!0), p(
|
|
658
|
+
e.blocks ? (d(!0), p($, { key: 0 }, F(e.blocks, (u, m) => (d(), k(s, {
|
|
648
659
|
key: u.id,
|
|
649
660
|
block: u,
|
|
650
661
|
linkComponent: e.linkComponent,
|
|
@@ -655,13 +666,13 @@ function Vt(e, t, n, o, r, i) {
|
|
|
655
666
|
_: 1
|
|
656
667
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
657
668
|
}
|
|
658
|
-
const G = /* @__PURE__ */ f(
|
|
669
|
+
const G = /* @__PURE__ */ f(Nt, [["render", Ot], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), _t = h({
|
|
659
670
|
render() {
|
|
660
671
|
return ve("style", { id: this.id, innerHTML: this.styles });
|
|
661
672
|
},
|
|
662
673
|
name: "inlined-styles",
|
|
663
674
|
props: ["styles", "id"]
|
|
664
|
-
}), re = /* @__PURE__ */ f(
|
|
675
|
+
}), re = /* @__PURE__ */ f(_t, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), Pe = {
|
|
665
676
|
small: {
|
|
666
677
|
min: 320,
|
|
667
678
|
default: 321,
|
|
@@ -677,7 +688,7 @@ const G = /* @__PURE__ */ f(Wt, [["render", Vt], ["__file", "/home/runner/work/b
|
|
|
677
688
|
default: 991,
|
|
678
689
|
max: 1200
|
|
679
690
|
}
|
|
680
|
-
},
|
|
691
|
+
}, fr = (e, t = Pe) => `@media (max-width: ${t[e].max}px)`, Ut = ({
|
|
681
692
|
small: e,
|
|
682
693
|
medium: t
|
|
683
694
|
}) => {
|
|
@@ -702,7 +713,7 @@ const G = /* @__PURE__ */ f(Wt, [["render", Vt], ["__file", "/home/runner/work/b
|
|
|
702
713
|
min: i,
|
|
703
714
|
default: i + 1
|
|
704
715
|
}, n;
|
|
705
|
-
},
|
|
716
|
+
}, Ft = h({
|
|
706
717
|
name: "builder-columns",
|
|
707
718
|
components: {
|
|
708
719
|
InlinedStyles: re,
|
|
@@ -820,13 +831,13 @@ const G = /* @__PURE__ */ f(Wt, [["render", Vt], ["__file", "/home/runner/work/b
|
|
|
820
831
|
},
|
|
821
832
|
getWidthForBreakpointSize(e) {
|
|
822
833
|
var n, o;
|
|
823
|
-
return
|
|
834
|
+
return Ut(
|
|
824
835
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
825
836
|
)[e].max;
|
|
826
837
|
}
|
|
827
838
|
}
|
|
828
839
|
});
|
|
829
|
-
function
|
|
840
|
+
function Lt(e, t, n, o, r, i) {
|
|
830
841
|
const s = b("inlined-styles"), a = b("blocks"), l = b("dynamic-renderer");
|
|
831
842
|
return d(), p("div", S({
|
|
832
843
|
class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
|
|
@@ -836,7 +847,7 @@ function Ot(e, t, n, o, r, i) {
|
|
|
836
847
|
key: 0,
|
|
837
848
|
styles: e.columnsStyles
|
|
838
849
|
}, null, 8, ["styles"])) : y("v-if", !0),
|
|
839
|
-
(d(!0), p(
|
|
850
|
+
(d(!0), p($, null, F(e.columns, (c, u) => (d(), k(l, {
|
|
840
851
|
key: u,
|
|
841
852
|
TagName: c.link ? e.builderLinkComponent || "a" : "div",
|
|
842
853
|
actionAttributes: {},
|
|
@@ -865,24 +876,24 @@ function Ot(e, t, n, o, r, i) {
|
|
|
865
876
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
866
877
|
], 16);
|
|
867
878
|
}
|
|
868
|
-
const
|
|
879
|
+
const Ht = /* @__PURE__ */ f(Ft, [["render", Lt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), Mt = h({
|
|
869
880
|
name: "builder-fragment-component",
|
|
870
881
|
props: []
|
|
871
882
|
});
|
|
872
|
-
function
|
|
883
|
+
function jt(e, t, n, o, r, i) {
|
|
873
884
|
return d(), p("span", null, [
|
|
874
885
|
T(e.$slots, "default")
|
|
875
886
|
]);
|
|
876
887
|
}
|
|
877
|
-
const
|
|
888
|
+
const Dt = /* @__PURE__ */ f(Mt, [["render", jt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
|
|
878
889
|
function de(e) {
|
|
879
890
|
return e.replace(/http(s)?:/, "");
|
|
880
891
|
}
|
|
881
|
-
function
|
|
892
|
+
function Kt(e = "", t, n) {
|
|
882
893
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
883
894
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
884
895
|
}
|
|
885
|
-
function
|
|
896
|
+
function zt(e, t) {
|
|
886
897
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
887
898
|
return e;
|
|
888
899
|
if (t === "master")
|
|
@@ -901,11 +912,11 @@ function Y(e) {
|
|
|
901
912
|
if (e.match(/builder\.io/)) {
|
|
902
913
|
let n = e;
|
|
903
914
|
const o = Number(e.split("?width=")[1]);
|
|
904
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
915
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Kt(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
905
916
|
}
|
|
906
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
917
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [zt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
907
918
|
}
|
|
908
|
-
const
|
|
919
|
+
const qt = h({
|
|
909
920
|
name: "builder-image",
|
|
910
921
|
props: [
|
|
911
922
|
"image",
|
|
@@ -950,19 +961,19 @@ const Kt = h({
|
|
|
950
961
|
}
|
|
951
962
|
}
|
|
952
963
|
});
|
|
953
|
-
const
|
|
964
|
+
const Gt = ["srcset"], Jt = ["alt", "role", "src", "srcset", "sizes"], Yt = {
|
|
954
965
|
key: 2,
|
|
955
966
|
class: "div-1be3j8m9ewb-2"
|
|
956
967
|
};
|
|
957
|
-
function
|
|
968
|
+
function Qt(e, t, n, o, r, i) {
|
|
958
969
|
var s, a, l, c;
|
|
959
|
-
return d(), p(
|
|
970
|
+
return d(), p($, null, [
|
|
960
971
|
Q("picture", null, [
|
|
961
972
|
e.webpSrcSet ? (d(), p("source", {
|
|
962
973
|
key: 0,
|
|
963
974
|
type: "image/webp",
|
|
964
975
|
srcset: e.webpSrcSet
|
|
965
|
-
}, null, 8,
|
|
976
|
+
}, null, 8, Gt)) : y("v-if", !0),
|
|
966
977
|
Q("img", {
|
|
967
978
|
loading: "lazy",
|
|
968
979
|
alt: e.altText,
|
|
@@ -978,7 +989,7 @@ function Jt(e, t, n, o, r, i) {
|
|
|
978
989
|
src: e.image,
|
|
979
990
|
srcset: e.srcSetToUse,
|
|
980
991
|
sizes: e.sizes
|
|
981
|
-
}, null, 14,
|
|
992
|
+
}, null, 14, Jt)
|
|
982
993
|
]),
|
|
983
994
|
e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
|
|
984
995
|
key: 0,
|
|
@@ -988,19 +999,19 @@ function Jt(e, t, n, o, r, i) {
|
|
|
988
999
|
})
|
|
989
1000
|
}, null, 4)) : y("v-if", !0),
|
|
990
1001
|
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? T(e.$slots, "default", { key: 1 }, void 0, !0) : y("v-if", !0),
|
|
991
|
-
!e.fitContent && e.$slots.default ? (d(), p("div",
|
|
1002
|
+
!e.fitContent && e.$slots.default ? (d(), p("div", Yt, [
|
|
992
1003
|
T(e.$slots, "default", {}, void 0, !0)
|
|
993
1004
|
])) : y("v-if", !0)
|
|
994
1005
|
], 64);
|
|
995
1006
|
}
|
|
996
|
-
const
|
|
1007
|
+
const Xt = /* @__PURE__ */ f(qt, [["render", Qt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), Zt = h({
|
|
997
1008
|
name: "builder-section-component",
|
|
998
1009
|
props: ["attributes", "maxWidth"],
|
|
999
1010
|
data() {
|
|
1000
1011
|
return { filterAttrs: q };
|
|
1001
1012
|
}
|
|
1002
1013
|
});
|
|
1003
|
-
function
|
|
1014
|
+
function en(e, t, n, o, r, i) {
|
|
1004
1015
|
return d(), p("section", S({
|
|
1005
1016
|
style: {
|
|
1006
1017
|
width: "100%",
|
|
@@ -1018,7 +1029,7 @@ function Xt(e, t, n, o, r, i) {
|
|
|
1018
1029
|
T(e.$slots, "default")
|
|
1019
1030
|
], 16);
|
|
1020
1031
|
}
|
|
1021
|
-
const
|
|
1032
|
+
const tn = /* @__PURE__ */ f(Zt, [["render", en], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), nn = (e) => {
|
|
1022
1033
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1023
1034
|
return e;
|
|
1024
1035
|
const t = e.split(".");
|
|
@@ -1031,16 +1042,16 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1031
1042
|
try {
|
|
1032
1043
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
1033
1044
|
} catch (o) {
|
|
1034
|
-
|
|
1045
|
+
w.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1035
1046
|
return;
|
|
1036
1047
|
}
|
|
1037
|
-
}, Ae = async (e) => Ee(e),
|
|
1048
|
+
}, Ae = async (e) => Ee(e), on = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(W).join("; "), rn = [["secure", ""], ["SameSite", "None"]], sn = ({
|
|
1038
1049
|
name: e,
|
|
1039
1050
|
value: t,
|
|
1040
1051
|
expires: n
|
|
1041
1052
|
}) => {
|
|
1042
|
-
const r = (v() ? location.protocol === "https:" : !0) ?
|
|
1043
|
-
return
|
|
1053
|
+
const r = (v() ? location.protocol === "https:" : !0) ? rn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", nn(window.location.hostname)], ...r];
|
|
1054
|
+
return on(s);
|
|
1044
1055
|
}, Be = async ({
|
|
1045
1056
|
name: e,
|
|
1046
1057
|
value: t,
|
|
@@ -1050,33 +1061,33 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1050
1061
|
try {
|
|
1051
1062
|
if (!o)
|
|
1052
1063
|
return;
|
|
1053
|
-
const r =
|
|
1064
|
+
const r = sn({
|
|
1054
1065
|
name: e,
|
|
1055
1066
|
value: t,
|
|
1056
1067
|
expires: n
|
|
1057
1068
|
});
|
|
1058
1069
|
document.cookie = r;
|
|
1059
1070
|
} catch (r) {
|
|
1060
|
-
|
|
1071
|
+
w.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
1061
1072
|
}
|
|
1062
|
-
},
|
|
1073
|
+
}, an = "builder.tests", ie = (e) => `${an}.${e}`, ln = ({
|
|
1063
1074
|
contentId: e
|
|
1064
1075
|
}) => Ae({
|
|
1065
1076
|
name: ie(e),
|
|
1066
1077
|
canTrack: !0
|
|
1067
|
-
}),
|
|
1078
|
+
}), cn = ({
|
|
1068
1079
|
contentId: e
|
|
1069
1080
|
}) => Ee({
|
|
1070
1081
|
name: ie(e),
|
|
1071
1082
|
canTrack: !0
|
|
1072
|
-
}),
|
|
1083
|
+
}), dn = ({
|
|
1073
1084
|
contentId: e,
|
|
1074
1085
|
value: t
|
|
1075
1086
|
}) => Be({
|
|
1076
1087
|
name: ie(e),
|
|
1077
1088
|
value: t,
|
|
1078
1089
|
canTrack: !0
|
|
1079
|
-
}), xe = (e) => W(e.id) && W(e.variations) && Object.keys(e.variations).length > 0,
|
|
1090
|
+
}), xe = (e) => W(e.id) && W(e.variations) && Object.keys(e.variations).length > 0, un = ({
|
|
1080
1091
|
id: e,
|
|
1081
1092
|
variations: t
|
|
1082
1093
|
}) => {
|
|
@@ -1090,12 +1101,12 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1090
1101
|
}
|
|
1091
1102
|
return e;
|
|
1092
1103
|
}, We = (e) => {
|
|
1093
|
-
const t =
|
|
1094
|
-
return
|
|
1104
|
+
const t = un(e);
|
|
1105
|
+
return dn({
|
|
1095
1106
|
contentId: e.id,
|
|
1096
1107
|
value: t
|
|
1097
1108
|
}).catch((n) => {
|
|
1098
|
-
|
|
1109
|
+
w.error("could not store A/B test variation: ", n);
|
|
1099
1110
|
}), t;
|
|
1100
1111
|
}, Ve = ({
|
|
1101
1112
|
item: e,
|
|
@@ -1110,7 +1121,7 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1110
1121
|
testVariationId: n.id,
|
|
1111
1122
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
1112
1123
|
};
|
|
1113
|
-
},
|
|
1124
|
+
}, pn = ({
|
|
1114
1125
|
item: e,
|
|
1115
1126
|
canTrack: t
|
|
1116
1127
|
}) => {
|
|
@@ -1120,7 +1131,7 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1120
1131
|
return;
|
|
1121
1132
|
if (!xe(e))
|
|
1122
1133
|
return e;
|
|
1123
|
-
const n =
|
|
1134
|
+
const n = cn({
|
|
1124
1135
|
contentId: e.id
|
|
1125
1136
|
}) || We({
|
|
1126
1137
|
variations: e.variations,
|
|
@@ -1133,13 +1144,13 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1133
1144
|
...e,
|
|
1134
1145
|
...o
|
|
1135
1146
|
};
|
|
1136
|
-
},
|
|
1147
|
+
}, mn = async ({
|
|
1137
1148
|
item: e,
|
|
1138
1149
|
canTrack: t
|
|
1139
1150
|
}) => {
|
|
1140
1151
|
if (!t || !xe(e))
|
|
1141
1152
|
return e;
|
|
1142
|
-
const o = await
|
|
1153
|
+
const o = await ln({
|
|
1143
1154
|
contentId: e.id
|
|
1144
1155
|
}) || We({
|
|
1145
1156
|
variations: e.variations,
|
|
@@ -1152,7 +1163,7 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1152
1163
|
...e,
|
|
1153
1164
|
...r
|
|
1154
1165
|
};
|
|
1155
|
-
}, L = (e) => W(e) ? e : !0,
|
|
1166
|
+
}, L = (e) => W(e) ? e : !0, hn = {
|
|
1156
1167
|
name: "Core:Button",
|
|
1157
1168
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1158
1169
|
defaultStyles: {
|
|
@@ -1184,7 +1195,7 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1184
1195
|
}],
|
|
1185
1196
|
static: !0,
|
|
1186
1197
|
noWrap: !0
|
|
1187
|
-
},
|
|
1198
|
+
}, fn = {
|
|
1188
1199
|
name: "Columns",
|
|
1189
1200
|
isRSC: !0,
|
|
1190
1201
|
inputs: [{
|
|
@@ -1384,7 +1395,7 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1384
1395
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1385
1396
|
advanced: !0
|
|
1386
1397
|
}]
|
|
1387
|
-
},
|
|
1398
|
+
}, bn = {
|
|
1388
1399
|
name: "Custom Code",
|
|
1389
1400
|
static: !0,
|
|
1390
1401
|
requiredPermissions: ["editCode"],
|
|
@@ -1406,7 +1417,7 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1406
1417
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1407
1418
|
advanced: !0
|
|
1408
1419
|
}]
|
|
1409
|
-
},
|
|
1420
|
+
}, gn = h({
|
|
1410
1421
|
name: "builder-custom-code",
|
|
1411
1422
|
props: ["replaceNodes", "code"],
|
|
1412
1423
|
data() {
|
|
@@ -1440,15 +1451,15 @@ const Zt = /* @__PURE__ */ f(Qt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1440
1451
|
}
|
|
1441
1452
|
}
|
|
1442
1453
|
}
|
|
1443
|
-
}),
|
|
1444
|
-
function
|
|
1454
|
+
}), kn = ["innerHTML"];
|
|
1455
|
+
function yn(e, t, n, o, r, i) {
|
|
1445
1456
|
return d(), p("div", {
|
|
1446
1457
|
ref: "elementRef",
|
|
1447
1458
|
class: Ce("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
1448
1459
|
innerHTML: e.code
|
|
1449
|
-
}, null, 10,
|
|
1460
|
+
}, null, 10, kn);
|
|
1450
1461
|
}
|
|
1451
|
-
const
|
|
1462
|
+
const vn = /* @__PURE__ */ f(gn, [["render", yn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), Cn = {
|
|
1452
1463
|
name: "Embed",
|
|
1453
1464
|
static: !0,
|
|
1454
1465
|
inputs: [{
|
|
@@ -1473,7 +1484,7 @@ const kn = /* @__PURE__ */ f(fn, [["render", gn], ["__file", "/home/runner/work/
|
|
|
1473
1484
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1474
1485
|
hideFromUI: !0
|
|
1475
1486
|
}]
|
|
1476
|
-
},
|
|
1487
|
+
}, Sn = ["text/javascript", "application/javascript", "application/ecmascript"], wn = (e) => Sn.includes(e.type), In = h({
|
|
1477
1488
|
name: "builder-embed",
|
|
1478
1489
|
props: ["content"],
|
|
1479
1490
|
data() {
|
|
@@ -1506,7 +1517,7 @@ const kn = /* @__PURE__ */ f(fn, [["render", gn], ["__file", "/home/runner/work/
|
|
|
1506
1517
|
this.scriptsInserted.push(n.src);
|
|
1507
1518
|
const o = document.createElement("script");
|
|
1508
1519
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1509
|
-
} else if (
|
|
1520
|
+
} else if (wn(n) && !this.scriptsRun.includes(n.innerText))
|
|
1510
1521
|
try {
|
|
1511
1522
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1512
1523
|
} catch (o) {
|
|
@@ -1515,21 +1526,21 @@ const kn = /* @__PURE__ */ f(fn, [["render", gn], ["__file", "/home/runner/work/
|
|
|
1515
1526
|
}
|
|
1516
1527
|
}
|
|
1517
1528
|
}
|
|
1518
|
-
}),
|
|
1519
|
-
function
|
|
1529
|
+
}), $n = ["innerHTML"];
|
|
1530
|
+
function Rn(e, t, n, o, r, i) {
|
|
1520
1531
|
return d(), p("div", {
|
|
1521
1532
|
class: "builder-embed",
|
|
1522
1533
|
ref: "elem",
|
|
1523
1534
|
innerHTML: e.content
|
|
1524
|
-
}, null, 8,
|
|
1535
|
+
}, null, 8, $n);
|
|
1525
1536
|
}
|
|
1526
|
-
const
|
|
1537
|
+
const Tn = /* @__PURE__ */ f(In, [["render", Rn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), Pn = {
|
|
1527
1538
|
name: "Fragment",
|
|
1528
1539
|
static: !0,
|
|
1529
1540
|
hidden: !0,
|
|
1530
1541
|
canHaveChildren: !0,
|
|
1531
1542
|
noWrap: !0
|
|
1532
|
-
},
|
|
1543
|
+
}, En = {
|
|
1533
1544
|
name: "Image",
|
|
1534
1545
|
static: !0,
|
|
1535
1546
|
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",
|
|
@@ -1629,7 +1640,7 @@ const $n = /* @__PURE__ */ f(Sn, [["render", In], ["__file", "/home/runner/work/
|
|
|
1629
1640
|
advanced: !0,
|
|
1630
1641
|
defaultValue: 0.7041
|
|
1631
1642
|
}]
|
|
1632
|
-
},
|
|
1643
|
+
}, An = {
|
|
1633
1644
|
name: "Raw:Img",
|
|
1634
1645
|
hideFromInsertMenu: !0,
|
|
1635
1646
|
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",
|
|
@@ -1642,7 +1653,7 @@ const $n = /* @__PURE__ */ f(Sn, [["render", In], ["__file", "/home/runner/work/
|
|
|
1642
1653
|
}],
|
|
1643
1654
|
noWrap: !0,
|
|
1644
1655
|
static: !0
|
|
1645
|
-
},
|
|
1656
|
+
}, Bn = h({
|
|
1646
1657
|
name: "builder-img-component",
|
|
1647
1658
|
props: [
|
|
1648
1659
|
"backgroundSize",
|
|
@@ -1655,8 +1666,8 @@ const $n = /* @__PURE__ */ f(Sn, [["render", In], ["__file", "/home/runner/work/
|
|
|
1655
1666
|
data() {
|
|
1656
1667
|
return { isEditing: A, filterAttrs: q };
|
|
1657
1668
|
}
|
|
1658
|
-
}),
|
|
1659
|
-
function
|
|
1669
|
+
}), xn = ["alt", "src"];
|
|
1670
|
+
function Wn(e, t, n, o, r, i) {
|
|
1660
1671
|
return d(), p("img", S({
|
|
1661
1672
|
style: {
|
|
1662
1673
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -1665,9 +1676,9 @@ function Bn(e, t, n, o, r, i) {
|
|
|
1665
1676
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1666
1677
|
alt: e.altText,
|
|
1667
1678
|
src: e.imgSrc || e.image
|
|
1668
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
1679
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, xn);
|
|
1669
1680
|
}
|
|
1670
|
-
const
|
|
1681
|
+
const Vn = /* @__PURE__ */ f(Bn, [["render", Wn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), Nn = {
|
|
1671
1682
|
name: "Core:Section",
|
|
1672
1683
|
static: !0,
|
|
1673
1684
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1706,7 +1717,7 @@ const xn = /* @__PURE__ */ f(En, [["render", Bn], ["__file", "/home/runner/work/
|
|
|
1706
1717
|
}
|
|
1707
1718
|
}
|
|
1708
1719
|
}]
|
|
1709
|
-
},
|
|
1720
|
+
}, On = {
|
|
1710
1721
|
name: "Slot",
|
|
1711
1722
|
isRSC: !0,
|
|
1712
1723
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1718,12 +1729,12 @@ const xn = /* @__PURE__ */ f(En, [["render", Bn], ["__file", "/home/runner/work/
|
|
|
1718
1729
|
required: !0,
|
|
1719
1730
|
defaultValue: "children"
|
|
1720
1731
|
}]
|
|
1721
|
-
},
|
|
1732
|
+
}, _n = h({
|
|
1722
1733
|
name: "builder-slot",
|
|
1723
1734
|
components: { Blocks: G },
|
|
1724
1735
|
props: ["builderContext", "name"]
|
|
1725
1736
|
});
|
|
1726
|
-
function
|
|
1737
|
+
function Un(e, t, n, o, r, i) {
|
|
1727
1738
|
var a, l, c;
|
|
1728
1739
|
const s = b("blocks");
|
|
1729
1740
|
return d(), p("div", S(
|
|
@@ -1742,7 +1753,7 @@ function _n(e, t, n, o, r, i) {
|
|
|
1742
1753
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1743
1754
|
], 16);
|
|
1744
1755
|
}
|
|
1745
|
-
const
|
|
1756
|
+
const Fn = /* @__PURE__ */ f(_n, [["render", Un], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/slot/slot.vue"]]), Ln = {
|
|
1746
1757
|
name: "Symbol",
|
|
1747
1758
|
noWrap: !0,
|
|
1748
1759
|
static: !0,
|
|
@@ -1775,7 +1786,7 @@ const Un = /* @__PURE__ */ f(Nn, [["render", _n], ["__file", "/home/runner/work/
|
|
|
1775
1786
|
hideFromUI: !0,
|
|
1776
1787
|
type: "boolean"
|
|
1777
1788
|
}]
|
|
1778
|
-
},
|
|
1789
|
+
}, Hn = {
|
|
1779
1790
|
name: "Text",
|
|
1780
1791
|
static: !0,
|
|
1781
1792
|
isRSC: !0,
|
|
@@ -1793,11 +1804,11 @@ const Un = /* @__PURE__ */ f(Nn, [["render", _n], ["__file", "/home/runner/work/
|
|
|
1793
1804
|
height: "auto",
|
|
1794
1805
|
textAlign: "center"
|
|
1795
1806
|
}
|
|
1796
|
-
},
|
|
1807
|
+
}, Mn = h({
|
|
1797
1808
|
name: "builder-text",
|
|
1798
1809
|
props: ["text"]
|
|
1799
|
-
}),
|
|
1800
|
-
function
|
|
1810
|
+
}), jn = ["innerHTML"];
|
|
1811
|
+
function Dn(e, t, n, o, r, i) {
|
|
1801
1812
|
var s;
|
|
1802
1813
|
return d(), p("div", {
|
|
1803
1814
|
class: "builder-text",
|
|
@@ -1805,9 +1816,9 @@ function Mn(e, t, n, o, r, i) {
|
|
|
1805
1816
|
style: {
|
|
1806
1817
|
outline: "none"
|
|
1807
1818
|
}
|
|
1808
|
-
}, null, 8,
|
|
1819
|
+
}, null, 8, jn);
|
|
1809
1820
|
}
|
|
1810
|
-
const
|
|
1821
|
+
const Kn = /* @__PURE__ */ f(Mn, [["render", Dn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), zn = {
|
|
1811
1822
|
name: "Video",
|
|
1812
1823
|
canHaveChildren: !0,
|
|
1813
1824
|
defaultStyles: {
|
|
@@ -1888,7 +1899,7 @@ const jn = /* @__PURE__ */ f(Ln, [["render", Mn], ["__file", "/home/runner/work/
|
|
|
1888
1899
|
defaultValue: !0,
|
|
1889
1900
|
advanced: !0
|
|
1890
1901
|
}]
|
|
1891
|
-
},
|
|
1902
|
+
}, qn = h({
|
|
1892
1903
|
name: "builder-video",
|
|
1893
1904
|
props: [
|
|
1894
1905
|
"autoPlay",
|
|
@@ -1933,16 +1944,16 @@ const jn = /* @__PURE__ */ f(Ln, [["render", Mn], ["__file", "/home/runner/work/
|
|
|
1933
1944
|
};
|
|
1934
1945
|
}
|
|
1935
1946
|
}
|
|
1936
|
-
}),
|
|
1947
|
+
}), Gn = { style: {
|
|
1937
1948
|
position: "relative"
|
|
1938
|
-
} },
|
|
1949
|
+
} }, Jn = ["preload", "src", "poster"], Yn = ["src"], Qn = {
|
|
1939
1950
|
key: 1,
|
|
1940
1951
|
style: {
|
|
1941
1952
|
display: "flex",
|
|
1942
1953
|
flexDirection: "column",
|
|
1943
1954
|
alignItems: "stretch"
|
|
1944
1955
|
}
|
|
1945
|
-
},
|
|
1956
|
+
}, Xn = {
|
|
1946
1957
|
key: 2,
|
|
1947
1958
|
style: {
|
|
1948
1959
|
pointerEvents: "none",
|
|
@@ -1956,9 +1967,9 @@ const jn = /* @__PURE__ */ f(Ln, [["render", Mn], ["__file", "/home/runner/work/
|
|
|
1956
1967
|
height: "100%"
|
|
1957
1968
|
}
|
|
1958
1969
|
};
|
|
1959
|
-
function
|
|
1970
|
+
function Zn(e, t, n, o, r, i) {
|
|
1960
1971
|
var s, a, l, c, u, m, g;
|
|
1961
|
-
return d(), p("div",
|
|
1972
|
+
return d(), p("div", Gn, [
|
|
1962
1973
|
Q("video", S({
|
|
1963
1974
|
class: "builder-video",
|
|
1964
1975
|
preload: e.preload || "metadata",
|
|
@@ -1981,8 +1992,8 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1981
1992
|
key: 0,
|
|
1982
1993
|
type: "video/mp4",
|
|
1983
1994
|
src: e.video
|
|
1984
|
-
}, null, 8,
|
|
1985
|
-
], 16,
|
|
1995
|
+
}, null, 8, Yn))
|
|
1996
|
+
], 16, Jn),
|
|
1986
1997
|
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(), p("div", {
|
|
1987
1998
|
key: 0,
|
|
1988
1999
|
style: X({
|
|
@@ -1992,66 +2003,66 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1992
2003
|
fontSize: "0px"
|
|
1993
2004
|
})
|
|
1994
2005
|
}, null, 4)) : y("v-if", !0),
|
|
1995
|
-
((u = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : u.length) && e.fitContent ? (d(), p("div",
|
|
2006
|
+
((u = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : u.length) && e.fitContent ? (d(), p("div", Qn, [
|
|
1996
2007
|
T(e.$slots, "default")
|
|
1997
2008
|
])) : y("v-if", !0),
|
|
1998
|
-
((g = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : g.length) && !e.fitContent ? (d(), p("div",
|
|
2009
|
+
((g = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : g.length) && !e.fitContent ? (d(), p("div", Xn, [
|
|
1999
2010
|
T(e.$slots, "default")
|
|
2000
2011
|
])) : y("v-if", !0)
|
|
2001
2012
|
]);
|
|
2002
2013
|
}
|
|
2003
|
-
const
|
|
2014
|
+
const eo = /* @__PURE__ */ f(qn, [["render", Zn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), ue = () => [{
|
|
2004
2015
|
component: it,
|
|
2005
|
-
...pn
|
|
2006
|
-
}, {
|
|
2007
|
-
component: Ft,
|
|
2008
|
-
...mn
|
|
2009
|
-
}, {
|
|
2010
|
-
component: kn,
|
|
2011
2016
|
...hn
|
|
2012
2017
|
}, {
|
|
2013
|
-
component:
|
|
2014
|
-
...
|
|
2018
|
+
component: Ht,
|
|
2019
|
+
...fn
|
|
2015
2020
|
}, {
|
|
2016
|
-
component:
|
|
2017
|
-
...
|
|
2021
|
+
component: vn,
|
|
2022
|
+
...bn
|
|
2018
2023
|
}, {
|
|
2019
|
-
component:
|
|
2020
|
-
...
|
|
2024
|
+
component: Tn,
|
|
2025
|
+
...Cn
|
|
2021
2026
|
}, {
|
|
2022
|
-
component:
|
|
2027
|
+
component: Dt,
|
|
2023
2028
|
...Pn
|
|
2024
2029
|
}, {
|
|
2025
|
-
component:
|
|
2026
|
-
...
|
|
2030
|
+
component: Xt,
|
|
2031
|
+
...En
|
|
2027
2032
|
}, {
|
|
2028
|
-
component:
|
|
2029
|
-
...
|
|
2033
|
+
component: Vn,
|
|
2034
|
+
...An
|
|
2030
2035
|
}, {
|
|
2031
|
-
component:
|
|
2032
|
-
...
|
|
2036
|
+
component: tn,
|
|
2037
|
+
...Nn
|
|
2033
2038
|
}, {
|
|
2034
|
-
component:
|
|
2035
|
-
...
|
|
2039
|
+
component: lr,
|
|
2040
|
+
...Ln
|
|
2036
2041
|
}, {
|
|
2037
|
-
component:
|
|
2038
|
-
...
|
|
2039
|
-
}
|
|
2042
|
+
component: Kn,
|
|
2043
|
+
...Hn
|
|
2044
|
+
}, {
|
|
2045
|
+
component: eo,
|
|
2046
|
+
...zn
|
|
2047
|
+
}, {
|
|
2048
|
+
component: Fn,
|
|
2049
|
+
...On
|
|
2050
|
+
}], pe = [], to = (e) => ({
|
|
2040
2051
|
type: "builder.registerComponent",
|
|
2041
2052
|
data: ee(e)
|
|
2042
|
-
}),
|
|
2053
|
+
}), no = (e) => {
|
|
2043
2054
|
const t = e.toString().trim();
|
|
2044
2055
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2045
|
-
},
|
|
2056
|
+
}, oo = (e) => typeof e == "function" ? no(e) : H(e), ee = ({
|
|
2046
2057
|
inputs: e,
|
|
2047
2058
|
...t
|
|
2048
2059
|
}) => ({
|
|
2049
2060
|
...H(t),
|
|
2050
2061
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
|
|
2051
2062
|
...o,
|
|
2052
|
-
[r]:
|
|
2063
|
+
[r]: oo(i)
|
|
2053
2064
|
}), {}))
|
|
2054
|
-
}),
|
|
2065
|
+
}), ro = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2055
2066
|
function getAndSetVariantId() {
|
|
2056
2067
|
function setCookie(name, value, days) {
|
|
2057
2068
|
let expires = '';
|
|
@@ -2107,7 +2118,7 @@ const Xn = /* @__PURE__ */ f(Kn, [["render", Qn], ["__file", "/home/runner/work/
|
|
|
2107
2118
|
}).join('');
|
|
2108
2119
|
styleEl.innerHTML = newStyleStr;
|
|
2109
2120
|
}
|
|
2110
|
-
}`,
|
|
2121
|
+
}`, io = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2111
2122
|
if (!navigator.cookieEnabled) {
|
|
2112
2123
|
return;
|
|
2113
2124
|
}
|
|
@@ -2141,42 +2152,42 @@ const Xn = /* @__PURE__ */ f(Kn, [["render", Qn], ["__file", "/home/runner/work/
|
|
|
2141
2152
|
thisScriptEl?.remove();
|
|
2142
2153
|
}
|
|
2143
2154
|
return;
|
|
2144
|
-
}`, Ne = "builderIoAbTest",
|
|
2155
|
+
}`, Ne = "builderIoAbTest", Oe = "builderIoRenderContent", D = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2145
2156
|
...t,
|
|
2146
2157
|
testVariationId: t.id,
|
|
2147
2158
|
id: e == null ? void 0 : e.id
|
|
2148
|
-
})),
|
|
2159
|
+
})), so = ({
|
|
2149
2160
|
canTrack: e,
|
|
2150
2161
|
content: t
|
|
2151
|
-
}) => !(!(D(t).length > 0) || !e),
|
|
2152
|
-
window.${Ne} = ${
|
|
2153
|
-
window.${
|
|
2154
|
-
`,
|
|
2162
|
+
}) => !(!(D(t).length > 0) || !e), ao = (e) => e === "react" || e === "reactNative", _e = ao(R), lo = () => `
|
|
2163
|
+
window.${Ne} = ${ro}
|
|
2164
|
+
window.${Oe} = ${io}
|
|
2165
|
+
`, co = (e, t) => `
|
|
2155
2166
|
window.${Ne}(
|
|
2156
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2157
|
-
)`,
|
|
2167
|
+
"${t}",${JSON.stringify(e)}, ${_e}
|
|
2168
|
+
)`, uo = ({
|
|
2158
2169
|
contentId: e,
|
|
2159
2170
|
variationId: t
|
|
2160
|
-
}) => `window.${
|
|
2161
|
-
"${t}", "${e}", ${
|
|
2162
|
-
)`,
|
|
2171
|
+
}) => `window.${Oe}(
|
|
2172
|
+
"${t}", "${e}", ${_e}
|
|
2173
|
+
)`, po = h({
|
|
2163
2174
|
render() {
|
|
2164
2175
|
return ve("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2165
2176
|
},
|
|
2166
2177
|
name: "inlined-script",
|
|
2167
2178
|
props: ["scriptStr", "id"]
|
|
2168
|
-
}),
|
|
2169
|
-
function
|
|
2179
|
+
}), Ue = /* @__PURE__ */ f(po, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
|
|
2180
|
+
function mo() {
|
|
2170
2181
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2171
2182
|
}
|
|
2172
|
-
function
|
|
2173
|
-
const e =
|
|
2183
|
+
function ho() {
|
|
2184
|
+
const e = mo().fetch;
|
|
2174
2185
|
if (typeof e > "u")
|
|
2175
2186
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2176
2187
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2177
2188
|
return e;
|
|
2178
2189
|
}
|
|
2179
|
-
const Fe =
|
|
2190
|
+
const Fe = ho();
|
|
2180
2191
|
function K(e, t = null, n = ".") {
|
|
2181
2192
|
return Object.keys(e).reduce((o, r) => {
|
|
2182
2193
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -2189,7 +2200,7 @@ function K(e, t = null, n = ".") {
|
|
|
2189
2200
|
};
|
|
2190
2201
|
}, {});
|
|
2191
2202
|
}
|
|
2192
|
-
const
|
|
2203
|
+
const fo = "v3", me = "builder.", bo = "options.", go = (e) => {
|
|
2193
2204
|
const t = {};
|
|
2194
2205
|
return e.forEach((n, o) => {
|
|
2195
2206
|
t[o] = n;
|
|
@@ -2200,16 +2211,16 @@ const mo = "v3", me = "builder.", ho = "options.", fo = (e) => {
|
|
|
2200
2211
|
const t = He(e), n = {};
|
|
2201
2212
|
return Object.keys(t).forEach((o) => {
|
|
2202
2213
|
if (o.startsWith(me)) {
|
|
2203
|
-
const r = o.replace(me, "").replace(
|
|
2214
|
+
const r = o.replace(me, "").replace(bo, "");
|
|
2204
2215
|
n[r] = t[o];
|
|
2205
2216
|
}
|
|
2206
2217
|
}), n;
|
|
2207
|
-
},
|
|
2218
|
+
}, ko = () => {
|
|
2208
2219
|
if (!v())
|
|
2209
2220
|
return {};
|
|
2210
2221
|
const e = new URLSearchParams(window.location.search);
|
|
2211
2222
|
return Le(e);
|
|
2212
|
-
}, He = (e) => e instanceof URLSearchParams ?
|
|
2223
|
+
}, He = (e) => e instanceof URLSearchParams ? go(e) : e, he = (e) => typeof e == "number" && !isNaN(e) && e >= 0, se = (e) => {
|
|
2213
2224
|
let {
|
|
2214
2225
|
noTraverse: t = !1
|
|
2215
2226
|
} = e;
|
|
@@ -2222,13 +2233,13 @@ const mo = "v3", me = "builder.", ho = "options.", fo = (e) => {
|
|
|
2222
2233
|
includeRefs: a = !0,
|
|
2223
2234
|
enrich: l,
|
|
2224
2235
|
locale: c,
|
|
2225
|
-
apiVersion: u =
|
|
2236
|
+
apiVersion: u = fo,
|
|
2226
2237
|
fields: m,
|
|
2227
2238
|
omit: g,
|
|
2228
2239
|
offset: C,
|
|
2229
2240
|
cacheSeconds: P,
|
|
2230
2241
|
staleCacheSeconds: V,
|
|
2231
|
-
sort:
|
|
2242
|
+
sort: O,
|
|
2232
2243
|
includeUnpublished: ae
|
|
2233
2244
|
} = e;
|
|
2234
2245
|
if (!s)
|
|
@@ -2236,29 +2247,29 @@ const mo = "v3", me = "builder.", ho = "options.", fo = (e) => {
|
|
|
2236
2247
|
if (!["v2", "v3"].includes(u))
|
|
2237
2248
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
2238
2249
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2239
|
-
const
|
|
2240
|
-
if (
|
|
2250
|
+
const I = new URL(`https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2251
|
+
if (I.searchParams.set("omit", g || "meta.componentsUsed"), m && I.searchParams.set("fields", m), Number.isFinite(C) && C > -1 && I.searchParams.set("offset", String(Math.floor(C))), typeof ae == "boolean" && I.searchParams.set("includeUnpublished", String(ae)), P && he(P) && I.searchParams.set("cacheSeconds", String(P)), V && he(V) && I.searchParams.set("staleCacheSeconds", String(V)), O) {
|
|
2241
2252
|
const x = K({
|
|
2242
|
-
sort:
|
|
2253
|
+
sort: O
|
|
2243
2254
|
});
|
|
2244
|
-
for (const
|
|
2245
|
-
|
|
2255
|
+
for (const _ in x)
|
|
2256
|
+
I.searchParams.set(_, JSON.stringify(x[_]));
|
|
2246
2257
|
}
|
|
2247
2258
|
const Je = {
|
|
2248
|
-
...
|
|
2259
|
+
...ko(),
|
|
2249
2260
|
...He(e.options || {})
|
|
2250
2261
|
}, le = K(Je);
|
|
2251
2262
|
for (const x in le)
|
|
2252
|
-
|
|
2253
|
-
if (o &&
|
|
2263
|
+
I.searchParams.set(x, String(le[x]));
|
|
2264
|
+
if (o && I.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
2254
2265
|
const x = K({
|
|
2255
2266
|
query: r
|
|
2256
2267
|
});
|
|
2257
|
-
for (const
|
|
2258
|
-
|
|
2268
|
+
for (const _ in x)
|
|
2269
|
+
I.searchParams.set(_, JSON.stringify(x[_]));
|
|
2259
2270
|
}
|
|
2260
|
-
return
|
|
2261
|
-
},
|
|
2271
|
+
return I;
|
|
2272
|
+
}, yo = (e) => "results" in e;
|
|
2262
2273
|
async function J(e) {
|
|
2263
2274
|
const t = await Me({
|
|
2264
2275
|
...e,
|
|
@@ -2266,56 +2277,56 @@ async function J(e) {
|
|
|
2266
2277
|
});
|
|
2267
2278
|
return t && t[0] || null;
|
|
2268
2279
|
}
|
|
2269
|
-
const
|
|
2280
|
+
const br = J, vo = async (e) => {
|
|
2270
2281
|
const t = se(e);
|
|
2271
2282
|
return await (await Fe(t.href)).json();
|
|
2272
|
-
},
|
|
2283
|
+
}, Co = async (e, t, n = se(e)) => {
|
|
2273
2284
|
const o = L(e.canTrack);
|
|
2274
2285
|
if (n.search.includes("preview="), !o || !(v() || R === "reactNative"))
|
|
2275
2286
|
return t.results;
|
|
2276
2287
|
try {
|
|
2277
2288
|
const r = [];
|
|
2278
2289
|
for (const i of t.results)
|
|
2279
|
-
r.push(await
|
|
2290
|
+
r.push(await mn({
|
|
2280
2291
|
item: i,
|
|
2281
2292
|
canTrack: o
|
|
2282
2293
|
}));
|
|
2283
2294
|
t.results = r;
|
|
2284
2295
|
} catch (r) {
|
|
2285
|
-
|
|
2296
|
+
w.error("Could not process A/B tests. ", r);
|
|
2286
2297
|
}
|
|
2287
2298
|
return t.results;
|
|
2288
2299
|
};
|
|
2289
2300
|
async function Me(e) {
|
|
2290
2301
|
try {
|
|
2291
|
-
const t = se(e), n = await
|
|
2292
|
-
return
|
|
2302
|
+
const t = se(e), n = await vo(e);
|
|
2303
|
+
return yo(n) ? Co(e, n) : (w.error("Error fetching data. ", {
|
|
2293
2304
|
url: t,
|
|
2294
2305
|
content: n,
|
|
2295
2306
|
options: e
|
|
2296
2307
|
}), null);
|
|
2297
2308
|
} catch (t) {
|
|
2298
|
-
return
|
|
2309
|
+
return w.error("Error fetching data. ", t), null;
|
|
2299
2310
|
}
|
|
2300
2311
|
}
|
|
2301
|
-
const
|
|
2312
|
+
const gr = Me, So = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
2302
2313
|
function je(e, t) {
|
|
2303
2314
|
const n = new URL(t.origin), o = n.hostname;
|
|
2304
|
-
return (e ||
|
|
2315
|
+
return (e || So).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
2305
2316
|
}
|
|
2306
|
-
function
|
|
2317
|
+
function wo() {
|
|
2307
2318
|
return !v() || A() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2308
2319
|
}
|
|
2309
|
-
function
|
|
2320
|
+
function Io() {
|
|
2310
2321
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2311
2322
|
const t = Math.random() * 16 | 0;
|
|
2312
2323
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2313
2324
|
});
|
|
2314
2325
|
}
|
|
2315
2326
|
function De() {
|
|
2316
|
-
return
|
|
2327
|
+
return Io().replace(/-/g, "");
|
|
2317
2328
|
}
|
|
2318
|
-
const Ke = "builderSessionId",
|
|
2329
|
+
const Ke = "builderSessionId", $o = async ({
|
|
2319
2330
|
canTrack: e
|
|
2320
2331
|
}) => {
|
|
2321
2332
|
if (!e)
|
|
@@ -2327,20 +2338,20 @@ const Ke = "builderSessionId", wo = async ({
|
|
|
2327
2338
|
if (W(t))
|
|
2328
2339
|
return t;
|
|
2329
2340
|
{
|
|
2330
|
-
const n =
|
|
2331
|
-
return
|
|
2341
|
+
const n = Ro();
|
|
2342
|
+
return To({
|
|
2332
2343
|
id: n,
|
|
2333
2344
|
canTrack: e
|
|
2334
2345
|
}), n;
|
|
2335
2346
|
}
|
|
2336
|
-
},
|
|
2347
|
+
}, Ro = () => De(), To = ({
|
|
2337
2348
|
id: e,
|
|
2338
2349
|
canTrack: t
|
|
2339
2350
|
}) => Be({
|
|
2340
2351
|
name: Ke,
|
|
2341
2352
|
value: e,
|
|
2342
2353
|
canTrack: t
|
|
2343
|
-
}), ze = () => v() && typeof localStorage < "u" ? localStorage : void 0,
|
|
2354
|
+
}), ze = () => v() && typeof localStorage < "u" ? localStorage : void 0, Po = ({
|
|
2344
2355
|
key: e,
|
|
2345
2356
|
canTrack: t
|
|
2346
2357
|
}) => {
|
|
@@ -2351,7 +2362,7 @@ const Ke = "builderSessionId", wo = async ({
|
|
|
2351
2362
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2352
2363
|
return;
|
|
2353
2364
|
}
|
|
2354
|
-
},
|
|
2365
|
+
}, Eo = ({
|
|
2355
2366
|
key: e,
|
|
2356
2367
|
canTrack: t,
|
|
2357
2368
|
value: n
|
|
@@ -2362,32 +2373,32 @@ const Ke = "builderSessionId", wo = async ({
|
|
|
2362
2373
|
} catch (r) {
|
|
2363
2374
|
console.debug("[LocalStorage] SET error: ", r);
|
|
2364
2375
|
}
|
|
2365
|
-
}, qe = "builderVisitorId",
|
|
2376
|
+
}, qe = "builderVisitorId", Ao = ({
|
|
2366
2377
|
canTrack: e
|
|
2367
2378
|
}) => {
|
|
2368
2379
|
if (!e)
|
|
2369
2380
|
return;
|
|
2370
|
-
const t =
|
|
2381
|
+
const t = Po({
|
|
2371
2382
|
key: qe,
|
|
2372
2383
|
canTrack: e
|
|
2373
2384
|
});
|
|
2374
2385
|
if (W(t))
|
|
2375
2386
|
return t;
|
|
2376
2387
|
{
|
|
2377
|
-
const n =
|
|
2378
|
-
return
|
|
2388
|
+
const n = Bo();
|
|
2389
|
+
return xo({
|
|
2379
2390
|
id: n,
|
|
2380
2391
|
canTrack: e
|
|
2381
2392
|
}), n;
|
|
2382
2393
|
}
|
|
2383
|
-
},
|
|
2394
|
+
}, Bo = () => De(), xo = ({
|
|
2384
2395
|
id: e,
|
|
2385
2396
|
canTrack: t
|
|
2386
|
-
}) =>
|
|
2397
|
+
}) => Eo({
|
|
2387
2398
|
key: qe,
|
|
2388
2399
|
value: e,
|
|
2389
2400
|
canTrack: t
|
|
2390
|
-
}),
|
|
2401
|
+
}), Wo = async ({
|
|
2391
2402
|
canTrack: e
|
|
2392
2403
|
}) => {
|
|
2393
2404
|
if (!e)
|
|
@@ -2395,16 +2406,16 @@ const Ke = "builderSessionId", wo = async ({
|
|
|
2395
2406
|
visitorId: void 0,
|
|
2396
2407
|
sessionId: void 0
|
|
2397
2408
|
};
|
|
2398
|
-
const t = await
|
|
2409
|
+
const t = await $o({
|
|
2399
2410
|
canTrack: e
|
|
2400
|
-
}), n =
|
|
2411
|
+
}), n = Ao({
|
|
2401
2412
|
canTrack: e
|
|
2402
2413
|
});
|
|
2403
2414
|
return {
|
|
2404
2415
|
sessionId: t,
|
|
2405
2416
|
visitorId: n
|
|
2406
2417
|
};
|
|
2407
|
-
},
|
|
2418
|
+
}, Vo = async ({
|
|
2408
2419
|
type: e,
|
|
2409
2420
|
canTrack: t,
|
|
2410
2421
|
apiKey: n,
|
|
@@ -2418,7 +2429,7 @@ const Ke = "builderSessionId", wo = async ({
|
|
|
2418
2429
|
url: location.href,
|
|
2419
2430
|
...o
|
|
2420
2431
|
},
|
|
2421
|
-
...await
|
|
2432
|
+
...await Wo({
|
|
2422
2433
|
canTrack: t
|
|
2423
2434
|
}),
|
|
2424
2435
|
userAttributes: we(),
|
|
@@ -2427,14 +2438,14 @@ const Ke = "builderSessionId", wo = async ({
|
|
|
2427
2438
|
});
|
|
2428
2439
|
async function te(e) {
|
|
2429
2440
|
if (!e.apiKey) {
|
|
2430
|
-
|
|
2441
|
+
w.error("Missing API key for track call. Please provide your API key.");
|
|
2431
2442
|
return;
|
|
2432
2443
|
}
|
|
2433
2444
|
if (!!e.canTrack && !A() && !!(v() || R === "reactNative"))
|
|
2434
2445
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2435
2446
|
method: "POST",
|
|
2436
2447
|
body: JSON.stringify({
|
|
2437
|
-
events: [await
|
|
2448
|
+
events: [await Vo(e)]
|
|
2438
2449
|
}),
|
|
2439
2450
|
headers: {
|
|
2440
2451
|
"content-type": "application/json"
|
|
@@ -2444,14 +2455,14 @@ async function te(e) {
|
|
|
2444
2455
|
console.error("Failed to track: ", t);
|
|
2445
2456
|
});
|
|
2446
2457
|
}
|
|
2447
|
-
const
|
|
2458
|
+
const kr = (e) => te({
|
|
2448
2459
|
...e,
|
|
2449
2460
|
canTrack: !0
|
|
2450
2461
|
});
|
|
2451
2462
|
function fe(e) {
|
|
2452
2463
|
return Math.round(e * 1e3) / 1e3;
|
|
2453
2464
|
}
|
|
2454
|
-
const
|
|
2465
|
+
const No = (e, t, n = !0) => {
|
|
2455
2466
|
if (!(e instanceof HTMLElement))
|
|
2456
2467
|
return null;
|
|
2457
2468
|
let o = n ? e : e.parentElement;
|
|
@@ -2462,7 +2473,7 @@ const Wo = (e, t, n = !0) => {
|
|
|
2462
2473
|
return o;
|
|
2463
2474
|
} while (o = o.parentElement);
|
|
2464
2475
|
return null;
|
|
2465
|
-
},
|
|
2476
|
+
}, Oo = (e) => No(e, (t) => {
|
|
2466
2477
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2467
2478
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2468
2479
|
}), be = ({
|
|
@@ -2474,8 +2485,8 @@ const Wo = (e, t, n = !0) => {
|
|
|
2474
2485
|
x: i,
|
|
2475
2486
|
y: s
|
|
2476
2487
|
};
|
|
2477
|
-
},
|
|
2478
|
-
const t = e.target, n = t &&
|
|
2488
|
+
}, _o = (e) => {
|
|
2489
|
+
const t = e.target, n = t && Oo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2479
2490
|
return {
|
|
2480
2491
|
targetBuilderElement: o || void 0,
|
|
2481
2492
|
metadata: {
|
|
@@ -2490,8 +2501,8 @@ const Wo = (e, t, n = !0) => {
|
|
|
2490
2501
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2491
2502
|
}
|
|
2492
2503
|
};
|
|
2493
|
-
},
|
|
2494
|
-
function
|
|
2504
|
+
}, Uo = "0.12.5", ge = {};
|
|
2505
|
+
function Fo(e, t) {
|
|
2495
2506
|
let n = ge[e];
|
|
2496
2507
|
if (n || (n = ge[e] = []), n.push(t), v()) {
|
|
2497
2508
|
const o = {
|
|
@@ -2508,8 +2519,8 @@ function Uo(e, t) {
|
|
|
2508
2519
|
}
|
|
2509
2520
|
}
|
|
2510
2521
|
}
|
|
2511
|
-
const
|
|
2512
|
-
|
|
2522
|
+
const Lo = () => {
|
|
2523
|
+
Fo("insertMenu", {
|
|
2513
2524
|
name: "_default",
|
|
2514
2525
|
default: !0,
|
|
2515
2526
|
items: [{
|
|
@@ -2532,13 +2543,13 @@ const Oo = () => {
|
|
|
2532
2543
|
});
|
|
2533
2544
|
};
|
|
2534
2545
|
let ke = !1;
|
|
2535
|
-
const
|
|
2546
|
+
const Ho = (e = {}) => {
|
|
2536
2547
|
var t, n;
|
|
2537
2548
|
ke || (ke = !0, v() && ((t = window.parent) == null || t.postMessage({
|
|
2538
2549
|
type: "builder.sdkInfo",
|
|
2539
2550
|
data: {
|
|
2540
2551
|
target: R,
|
|
2541
|
-
version:
|
|
2552
|
+
version: Uo,
|
|
2542
2553
|
supportsPatchUpdates: !1,
|
|
2543
2554
|
supportsAddBlockScoping: !0,
|
|
2544
2555
|
supportsCustomBreakpoints: !0
|
|
@@ -2591,7 +2602,7 @@ const Fo = (e = {}) => {
|
|
|
2591
2602
|
}
|
|
2592
2603
|
}
|
|
2593
2604
|
})));
|
|
2594
|
-
},
|
|
2605
|
+
}, Mo = h({
|
|
2595
2606
|
name: "enable-editor",
|
|
2596
2607
|
props: [
|
|
2597
2608
|
"builderContextSignal",
|
|
@@ -2643,12 +2654,12 @@ const Fo = (e = {}) => {
|
|
|
2643
2654
|
variationId: i !== s ? i : void 0
|
|
2644
2655
|
});
|
|
2645
2656
|
}
|
|
2646
|
-
|
|
2657
|
+
wo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2647
2658
|
new CustomEvent("initpreviewingbldr")
|
|
2648
2659
|
);
|
|
2649
2660
|
}
|
|
2650
2661
|
})(), (() => {
|
|
2651
|
-
this.apiKey ||
|
|
2662
|
+
this.apiKey || w.error(
|
|
2652
2663
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2653
2664
|
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
2654
2665
|
})();
|
|
@@ -2813,7 +2824,7 @@ const Fo = (e = {}) => {
|
|
|
2813
2824
|
contentId: r,
|
|
2814
2825
|
apiKey: this.apiKey,
|
|
2815
2826
|
variationId: o !== r ? o : void 0,
|
|
2816
|
-
...
|
|
2827
|
+
..._o(e),
|
|
2817
2828
|
unique: !this.clicked
|
|
2818
2829
|
});
|
|
2819
2830
|
}
|
|
@@ -2872,7 +2883,7 @@ const Fo = (e = {}) => {
|
|
|
2872
2883
|
);
|
|
2873
2884
|
},
|
|
2874
2885
|
elementRef_onIniteditingbldr(e) {
|
|
2875
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
2886
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Lo(), Ho({
|
|
2876
2887
|
...this.locale ? {
|
|
2877
2888
|
locale: this.locale
|
|
2878
2889
|
} : {},
|
|
@@ -2889,7 +2900,7 @@ const Fo = (e = {}) => {
|
|
|
2889
2900
|
this.builderContextSignal.componentInfos
|
|
2890
2901
|
).forEach((t) => {
|
|
2891
2902
|
var o;
|
|
2892
|
-
const n =
|
|
2903
|
+
const n = to(t);
|
|
2893
2904
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
2894
2905
|
}), window.addEventListener(
|
|
2895
2906
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2910,9 +2921,9 @@ const Fo = (e = {}) => {
|
|
|
2910
2921
|
}
|
|
2911
2922
|
}
|
|
2912
2923
|
});
|
|
2913
|
-
function
|
|
2924
|
+
function jo(e, t, n, o, r, i) {
|
|
2914
2925
|
var s, a, l;
|
|
2915
|
-
return e.builderContextSignal.content ? (d(), k(
|
|
2926
|
+
return e.builderContextSignal.content ? (d(), k(U(e.ContentWrapper), S({
|
|
2916
2927
|
key: e.forceReRenderCount,
|
|
2917
2928
|
ref: "elementRef",
|
|
2918
2929
|
onClick: (c) => e.onClick(c),
|
|
@@ -2934,7 +2945,7 @@ function Ho(e, t, n, o, r, i) {
|
|
|
2934
2945
|
_: 3
|
|
2935
2946
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : y("v-if", !0);
|
|
2936
2947
|
}
|
|
2937
|
-
const
|
|
2948
|
+
const Do = /* @__PURE__ */ f(Mo, [["render", jo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), Ko = (e) => {
|
|
2938
2949
|
var i, s;
|
|
2939
2950
|
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;
|
|
2940
2951
|
let r = "";
|
|
@@ -2960,26 +2971,26 @@ font-weight: ${a};
|
|
|
2960
2971
|
`.trim());
|
|
2961
2972
|
}
|
|
2962
2973
|
return r;
|
|
2963
|
-
},
|
|
2974
|
+
}, zo = ({
|
|
2964
2975
|
customFonts: e
|
|
2965
2976
|
}) => {
|
|
2966
2977
|
var t;
|
|
2967
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2968
|
-
},
|
|
2978
|
+
return ((t = e == null ? void 0 : e.map((n) => Ko(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2979
|
+
}, qo = ({
|
|
2969
2980
|
cssCode: e,
|
|
2970
2981
|
contentId: t
|
|
2971
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2982
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Go = h({
|
|
2972
2983
|
name: "content-styles",
|
|
2973
2984
|
components: { InlinedStyles: re },
|
|
2974
2985
|
props: ["cssCode", "contentId", "customFonts"],
|
|
2975
2986
|
data() {
|
|
2976
2987
|
return {
|
|
2977
2988
|
injectedStyles: `
|
|
2978
|
-
${
|
|
2989
|
+
${qo({
|
|
2979
2990
|
cssCode: this.cssCode,
|
|
2980
2991
|
contentId: this.contentId
|
|
2981
2992
|
})}
|
|
2982
|
-
${
|
|
2993
|
+
${zo({
|
|
2983
2994
|
customFonts: this.customFonts
|
|
2984
2995
|
})}
|
|
2985
2996
|
|
|
@@ -3003,11 +3014,11 @@ ${Do({
|
|
|
3003
3014
|
};
|
|
3004
3015
|
}
|
|
3005
3016
|
});
|
|
3006
|
-
function
|
|
3017
|
+
function Jo(e, t, n, o, r, i) {
|
|
3007
3018
|
const s = b("inlined-styles");
|
|
3008
3019
|
return d(), k(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
3009
3020
|
}
|
|
3010
|
-
const
|
|
3021
|
+
const Yo = /* @__PURE__ */ f(Go, [["render", Jo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), Qo = ({
|
|
3011
3022
|
content: e,
|
|
3012
3023
|
data: t,
|
|
3013
3024
|
locale: n
|
|
@@ -3024,7 +3035,7 @@ const Go = /* @__PURE__ */ f(zo, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3024
3035
|
locale: n
|
|
3025
3036
|
} : {}
|
|
3026
3037
|
};
|
|
3027
|
-
},
|
|
3038
|
+
}, Xo = ({
|
|
3028
3039
|
content: e,
|
|
3029
3040
|
data: t
|
|
3030
3041
|
}) => e ? {
|
|
@@ -3034,12 +3045,12 @@ const Go = /* @__PURE__ */ f(zo, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3034
3045
|
...t
|
|
3035
3046
|
},
|
|
3036
3047
|
meta: e == null ? void 0 : e.meta
|
|
3037
|
-
} : void 0,
|
|
3048
|
+
} : void 0, Zo = Xe, er = h({
|
|
3038
3049
|
name: "content-component",
|
|
3039
3050
|
components: {
|
|
3040
|
-
EnableEditor:
|
|
3041
|
-
InlinedScript:
|
|
3042
|
-
ContentStyles:
|
|
3051
|
+
EnableEditor: Do,
|
|
3052
|
+
InlinedScript: Ue,
|
|
3053
|
+
ContentStyles: Yo,
|
|
3043
3054
|
Blocks: G
|
|
3044
3055
|
},
|
|
3045
3056
|
props: [
|
|
@@ -3066,7 +3077,7 @@ const Go = /* @__PURE__ */ f(zo, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3066
3077
|
data() {
|
|
3067
3078
|
var e, t;
|
|
3068
3079
|
return {
|
|
3069
|
-
scriptStr:
|
|
3080
|
+
scriptStr: uo({
|
|
3070
3081
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
3071
3082
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
3072
3083
|
}),
|
|
@@ -3078,19 +3089,19 @@ const Go = /* @__PURE__ */ f(zo, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3078
3089
|
(n, { component: o, ...r }) => ({
|
|
3079
3090
|
...n,
|
|
3080
3091
|
[r.name]: {
|
|
3081
|
-
component:
|
|
3092
|
+
component: Zo(o),
|
|
3082
3093
|
...ee(r)
|
|
3083
3094
|
}
|
|
3084
3095
|
}),
|
|
3085
3096
|
{}
|
|
3086
3097
|
),
|
|
3087
3098
|
builderContextSignal: {
|
|
3088
|
-
content:
|
|
3099
|
+
content: Xo({
|
|
3089
3100
|
content: this.content,
|
|
3090
3101
|
data: this.data
|
|
3091
3102
|
}),
|
|
3092
3103
|
localState: void 0,
|
|
3093
|
-
rootState:
|
|
3104
|
+
rootState: Qo({
|
|
3094
3105
|
content: this.content,
|
|
3095
3106
|
data: this.data,
|
|
3096
3107
|
locale: this.locale
|
|
@@ -3131,7 +3142,7 @@ const Go = /* @__PURE__ */ f(zo, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3131
3142
|
}
|
|
3132
3143
|
}
|
|
3133
3144
|
});
|
|
3134
|
-
function
|
|
3145
|
+
function tr(e, t, n, o, r, i) {
|
|
3135
3146
|
const s = b("inlined-script"), a = b("content-styles"), l = b("blocks"), c = b("enable-editor");
|
|
3136
3147
|
return d(), k(c, S({
|
|
3137
3148
|
content: e.content,
|
|
@@ -3151,7 +3162,7 @@ function Zo(e, t, n, o, r, i) {
|
|
|
3151
3162
|
trustedHosts: e.trustedHosts
|
|
3152
3163
|
}, {}), {
|
|
3153
3164
|
default: B(() => {
|
|
3154
|
-
var u, m, g, C, P, V,
|
|
3165
|
+
var u, m, g, C, P, V, O;
|
|
3155
3166
|
return [
|
|
3156
3167
|
e.isSsrAbTest ? (d(), k(s, {
|
|
3157
3168
|
key: 0,
|
|
@@ -3164,7 +3175,7 @@ function Zo(e, t, n, o, r, i) {
|
|
|
3164
3175
|
customFonts: (P = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : P.customFonts
|
|
3165
3176
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : y("v-if", !0),
|
|
3166
3177
|
E(l, {
|
|
3167
|
-
blocks: (
|
|
3178
|
+
blocks: (O = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : O.blocks,
|
|
3168
3179
|
context: e.builderContextSignal,
|
|
3169
3180
|
registeredComponents: e.registeredComponents,
|
|
3170
3181
|
linkComponent: e.linkComponent
|
|
@@ -3174,12 +3185,12 @@ function Zo(e, t, n, o, r, i) {
|
|
|
3174
3185
|
_: 1
|
|
3175
3186
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
3176
3187
|
}
|
|
3177
|
-
const
|
|
3188
|
+
const nr = /* @__PURE__ */ f(er, [["render", tr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), or = h({
|
|
3178
3189
|
name: "content-variants",
|
|
3179
3190
|
components: {
|
|
3180
|
-
InlinedScript:
|
|
3191
|
+
InlinedScript: Ue,
|
|
3181
3192
|
InlinedStyles: re,
|
|
3182
|
-
ContentComponent:
|
|
3193
|
+
ContentComponent: nr
|
|
3183
3194
|
},
|
|
3184
3195
|
props: [
|
|
3185
3196
|
"canTrack",
|
|
@@ -3203,12 +3214,12 @@ const er = /* @__PURE__ */ f(Xo, [["render", Zo], ["__file", "/home/runner/work/
|
|
|
3203
3214
|
],
|
|
3204
3215
|
data() {
|
|
3205
3216
|
return {
|
|
3206
|
-
shouldRenderVariants:
|
|
3217
|
+
shouldRenderVariants: so({
|
|
3207
3218
|
canTrack: L(this.canTrack),
|
|
3208
3219
|
content: this.content
|
|
3209
3220
|
}),
|
|
3210
3221
|
TARGET: R,
|
|
3211
|
-
getScriptString:
|
|
3222
|
+
getScriptString: lo,
|
|
3212
3223
|
getVariants: D
|
|
3213
3224
|
};
|
|
3214
3225
|
},
|
|
@@ -3218,7 +3229,7 @@ const er = /* @__PURE__ */ f(Xo, [["render", Zo], ["__file", "/home/runner/work/
|
|
|
3218
3229
|
computed: {
|
|
3219
3230
|
updateCookieAndStylesScriptStr() {
|
|
3220
3231
|
var e;
|
|
3221
|
-
return
|
|
3232
|
+
return co(
|
|
3222
3233
|
D(this.content).map((t) => ({
|
|
3223
3234
|
id: t.testVariationId,
|
|
3224
3235
|
testRatio: t.testRatio
|
|
@@ -3234,28 +3245,28 @@ const er = /* @__PURE__ */ f(Xo, [["render", Zo], ["__file", "/home/runner/work/
|
|
|
3234
3245
|
return this.shouldRenderVariants ? {
|
|
3235
3246
|
...this.content,
|
|
3236
3247
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3237
|
-
} :
|
|
3248
|
+
} : pn({
|
|
3238
3249
|
item: this.content,
|
|
3239
3250
|
canTrack: L(this.canTrack)
|
|
3240
3251
|
});
|
|
3241
3252
|
}
|
|
3242
3253
|
}
|
|
3243
3254
|
});
|
|
3244
|
-
function
|
|
3255
|
+
function rr(e, t, n, o, r, i) {
|
|
3245
3256
|
var c;
|
|
3246
3257
|
const s = b("inlined-script"), a = b("inlined-styles"), l = b("content-component");
|
|
3247
|
-
return d(), p(
|
|
3258
|
+
return d(), p($, null, [
|
|
3248
3259
|
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
3249
3260
|
key: 0,
|
|
3250
3261
|
scriptStr: e.getScriptString()
|
|
3251
3262
|
}, null, 8, ["scriptStr"])) : y("v-if", !0),
|
|
3252
|
-
e.shouldRenderVariants ? (d(), p(
|
|
3263
|
+
e.shouldRenderVariants ? (d(), p($, { key: 1 }, [
|
|
3253
3264
|
E(a, {
|
|
3254
3265
|
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3255
3266
|
styles: e.hideVariantsStyleString
|
|
3256
3267
|
}, null, 8, ["id", "styles"]),
|
|
3257
3268
|
E(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3258
|
-
(d(!0), p(
|
|
3269
|
+
(d(!0), p($, null, F(e.getVariants(e.content), (u, m) => (d(), k(l, {
|
|
3259
3270
|
key: u.testVariationId,
|
|
3260
3271
|
content: u,
|
|
3261
3272
|
showContent: !1,
|
|
@@ -3303,7 +3314,7 @@ function nr(e, t, n, o, r, i) {
|
|
|
3303
3314
|
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
3304
3315
|
], 64);
|
|
3305
3316
|
}
|
|
3306
|
-
const Ge = /* @__PURE__ */ f(
|
|
3317
|
+
const Ge = /* @__PURE__ */ f(or, [["render", rr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), ir = async ({
|
|
3307
3318
|
builderContextValue: e,
|
|
3308
3319
|
symbol: t
|
|
3309
3320
|
}) => {
|
|
@@ -3318,9 +3329,9 @@ const Ge = /* @__PURE__ */ f(tr, [["render", nr], ["__file", "/home/runner/work/
|
|
|
3318
3329
|
}
|
|
3319
3330
|
}
|
|
3320
3331
|
}).catch((n) => {
|
|
3321
|
-
|
|
3332
|
+
w.error("Could not fetch symbol content: ", n);
|
|
3322
3333
|
});
|
|
3323
|
-
},
|
|
3334
|
+
}, sr = h({
|
|
3324
3335
|
name: "builder-symbol",
|
|
3325
3336
|
components: { ContentVariants: Ge },
|
|
3326
3337
|
props: [
|
|
@@ -3366,7 +3377,7 @@ const Ge = /* @__PURE__ */ f(tr, [["render", nr], ["__file", "/home/runner/work/
|
|
|
3366
3377
|
},
|
|
3367
3378
|
methods: {
|
|
3368
3379
|
setContent() {
|
|
3369
|
-
this.contentToUse ||
|
|
3380
|
+
this.contentToUse || ir({
|
|
3370
3381
|
symbol: this.symbol,
|
|
3371
3382
|
builderContextValue: this.builderContext
|
|
3372
3383
|
}).then((e) => {
|
|
@@ -3375,7 +3386,7 @@ const Ge = /* @__PURE__ */ f(tr, [["render", nr], ["__file", "/home/runner/work/
|
|
|
3375
3386
|
}
|
|
3376
3387
|
}
|
|
3377
3388
|
});
|
|
3378
|
-
function
|
|
3389
|
+
function ar(e, t, n, o, r, i) {
|
|
3379
3390
|
var a, l, c, u, m;
|
|
3380
3391
|
const s = b("content-variants");
|
|
3381
3392
|
return d(), p("div", S({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -3399,8 +3410,8 @@ function ir(e, t, n, o, r, i) {
|
|
|
3399
3410
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
3400
3411
|
], 16);
|
|
3401
3412
|
}
|
|
3402
|
-
const
|
|
3403
|
-
function
|
|
3413
|
+
const lr = /* @__PURE__ */ f(sr, [["render", ar], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), yr = G, vr = Ge, ye = {};
|
|
3414
|
+
function Cr(e) {
|
|
3404
3415
|
if (v()) {
|
|
3405
3416
|
Object.assign(ye, e);
|
|
3406
3417
|
const t = {
|
|
@@ -3410,7 +3421,7 @@ function yr(e) {
|
|
|
3410
3421
|
parent.postMessage(t, "*");
|
|
3411
3422
|
}
|
|
3412
3423
|
}
|
|
3413
|
-
const
|
|
3424
|
+
const Sr = async (e) => {
|
|
3414
3425
|
var o, r, i;
|
|
3415
3426
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
3416
3427
|
...e,
|
|
@@ -3431,45 +3442,45 @@ const vr = async (e) => {
|
|
|
3431
3442
|
};
|
|
3432
3443
|
};
|
|
3433
3444
|
export {
|
|
3434
|
-
|
|
3445
|
+
br as A,
|
|
3435
3446
|
Te as B,
|
|
3436
3447
|
Ge as C,
|
|
3437
3448
|
Le as D,
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3449
|
+
kr as E,
|
|
3450
|
+
Dt as F,
|
|
3451
|
+
Sr as G,
|
|
3452
|
+
ur as H,
|
|
3442
3453
|
re as I,
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3454
|
+
hr as J,
|
|
3455
|
+
yr as R,
|
|
3456
|
+
tn as S,
|
|
3446
3457
|
R as T,
|
|
3447
|
-
|
|
3458
|
+
eo as V,
|
|
3448
3459
|
f as _,
|
|
3449
|
-
|
|
3450
|
-
|
|
3460
|
+
Ut as a,
|
|
3461
|
+
pr as b,
|
|
3451
3462
|
W as c,
|
|
3452
|
-
|
|
3463
|
+
fr as d,
|
|
3453
3464
|
z as e,
|
|
3454
|
-
|
|
3465
|
+
mr as f,
|
|
3455
3466
|
Ie as g,
|
|
3456
3467
|
oe as h,
|
|
3457
3468
|
Z as i,
|
|
3458
3469
|
G as j,
|
|
3459
|
-
|
|
3470
|
+
vr as k,
|
|
3460
3471
|
it as l,
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3472
|
+
Ht as m,
|
|
3473
|
+
Xt as n,
|
|
3474
|
+
lr as o,
|
|
3475
|
+
Kn as p,
|
|
3465
3476
|
A as q,
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3477
|
+
wo as r,
|
|
3478
|
+
to as s,
|
|
3479
|
+
Fo as t,
|
|
3480
|
+
Cr as u,
|
|
3481
|
+
Co as v,
|
|
3482
|
+
Zo as w,
|
|
3472
3483
|
Me as x,
|
|
3473
3484
|
J as y,
|
|
3474
|
-
|
|
3485
|
+
gr as z
|
|
3475
3486
|
};
|