@builder.io/sdk-vue 0.12.0 → 0.12.1
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.35b14799.cjs → block-styles.0a1c13cc.cjs} +1 -1
- package/lib/browser/{block-styles.705199dc.js → block-styles.15daad04.js} +2 -2
- package/lib/browser/{block-wrapper.4e8a19e6.cjs → block-wrapper.3372ead3.cjs} +1 -1
- package/lib/browser/{block-wrapper.b462eaaf.js → block-wrapper.684870c2.js} +3 -3
- package/lib/browser/blocks/slot/component-info.d.ts +2 -0
- package/lib/browser/blocks/slot/slot.vue.d.ts +19 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/browser/{component-ref.c4dc79a3.cjs → component-ref.35876089.cjs} +1 -1
- package/lib/browser/{component-ref.373859d0.js → component-ref.408ec744.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{css.ff3b3c47.cjs → css.56c01a0f.cjs} +1 -1
- package/lib/browser/{css.bc45933b.js → css.e56cc923.js} +1 -1
- package/lib/browser/{get-block-actions.9f793abc.js → get-block-actions.5749164d.js} +2 -2
- package/lib/browser/{get-block-actions.e2b622c1.cjs → get-block-actions.786a0830.cjs} +1 -1
- package/lib/browser/{index.b2192f4e.js → index.1c3cd66d.js} +351 -308
- package/lib/browser/{index.e4e8a7c1.cjs → index.caecdbca.cjs} +16 -16
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block.516df819.js → repeated-block.3aa48114.js} +2 -2
- package/lib/browser/{repeated-block.3e728032.cjs → repeated-block.f3af0b09.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles.04ffe991.cjs → block-styles.1d36e17e.cjs} +1 -1
- package/lib/edge/{block-styles.2c919966.js → block-styles.baf84624.js} +2 -2
- package/lib/edge/{block-wrapper.5dd5f319.js → block-wrapper.c2e6a717.js} +3 -3
- package/lib/edge/{block-wrapper.5b120eb2.cjs → block-wrapper.e35eb0ba.cjs} +1 -1
- package/lib/edge/blocks/slot/component-info.d.ts +2 -0
- package/lib/edge/blocks/slot/slot.vue.d.ts +19 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/edge/{component-ref.896d8976.js → component-ref.a0bf7c30.js} +3 -3
- package/lib/edge/{component-ref.76e5fc15.cjs → component-ref.b38c0a17.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/css.128c3f3b.cjs → edge/css.817ffaca.cjs} +1 -1
- package/lib/{node/css.987cdf14.js → edge/css.c9cd980b.js} +1 -1
- package/lib/{node/get-block-actions.174f5b37.js → edge/get-block-actions.59e642f2.js} +2 -2
- package/lib/{node/get-block-actions.1e94e225.cjs → edge/get-block-actions.c4334ce2.cjs} +1 -1
- package/lib/edge/{index.6fa127cd.cjs → index.7f2747c7.cjs} +21 -21
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/{index.bd9a1e3a.js → index.d2eea20b.js} +635 -592
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block.73778070.js → repeated-block.d2e0b56c.js} +2 -2
- package/lib/edge/{repeated-block.90bf8925.cjs → repeated-block.d802e6a0.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles.c7d78a55.cjs → block-styles.544d0fa5.cjs} +1 -1
- package/lib/node/{block-styles.bacba438.js → block-styles.9378e041.js} +2 -2
- package/lib/node/{block-wrapper.b2719bc2.js → block-wrapper.20c333af.js} +3 -3
- package/lib/node/{block-wrapper.2ac22d41.cjs → block-wrapper.498bd360.cjs} +1 -1
- package/lib/node/blocks/slot/component-info.d.ts +2 -0
- package/lib/node/blocks/slot/slot.vue.d.ts +19 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/node/{component-ref.6aca4585.cjs → component-ref.36955ca9.cjs} +1 -1
- package/lib/node/{component-ref.38ae9fa7.js → component-ref.85cf8aff.js} +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/css.fcf2936e.js → node/css.43e589b6.js} +1 -1
- package/lib/{edge/css.93b2ac9d.cjs → node/css.b8f02dce.cjs} +1 -1
- package/lib/{edge/get-block-actions.77aaaa7a.js → node/get-block-actions.9542f4f9.js} +2 -2
- package/lib/{edge/get-block-actions.b06babe5.cjs → node/get-block-actions.c427b339.cjs} +1 -1
- package/lib/node/{index.a26e230d.cjs → index.52366dfd.cjs} +6 -6
- package/lib/node/{index.bc7a3f49.js → index.73c9ec13.js} +132 -89
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block.ac562a4b.cjs → repeated-block.182fc93f.cjs} +1 -1
- package/lib/node/{repeated-block.2d7c2f01.js → repeated-block.6972ade9.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as h, openBlock as d, createElementBlock as p, mergeProps as S, toHandlers as O, toDisplayString as se, defineAsyncComponent as M, resolveComponent as g, Fragment as $, createVNode as R, createBlock as y, createCommentVNode as k, renderList as N, withCtx as j, resolveDynamicComponent as ke, renderSlot as x, h as ye, createElementVNode as Y, normalizeStyle as Q, normalizeClass as ve, markRaw as ze } from "vue";
|
|
3
3
|
function z(e = {}, t, n) {
|
|
4
4
|
const o = {};
|
|
5
5
|
for (const r in e) {
|
|
@@ -10,7 +10,7 @@ function z(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
12
|
}
|
|
13
|
-
const qe =
|
|
13
|
+
const qe = h({
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
@@ -28,25 +28,25 @@ const qe = f({
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const f = (e, t) => {
|
|
32
32
|
const n = e.__vccOpts || e;
|
|
33
33
|
for (const [o, r] of t)
|
|
34
34
|
n[o] = r;
|
|
35
35
|
return n;
|
|
36
36
|
}, Ge = ["href", "target"];
|
|
37
37
|
function Je(e, t, n, o, r, i) {
|
|
38
|
-
return e.link ? (d(), p("a",
|
|
38
|
+
return e.link ? (d(), p("a", S({
|
|
39
39
|
key: 0,
|
|
40
40
|
href: e.link,
|
|
41
41
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
42
42
|
role: "button"
|
|
43
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17, Ge)) : (d(), p("button",
|
|
43
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17, Ge)) : (d(), p("button", S({
|
|
44
44
|
key: 1,
|
|
45
45
|
style: e.attributes.style,
|
|
46
46
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
47
47
|
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17));
|
|
48
48
|
}
|
|
49
|
-
const Ye = /* @__PURE__ */
|
|
49
|
+
const Ye = /* @__PURE__ */ f(qe, [["render", Je], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), Qe = Symbol(), X = {
|
|
50
50
|
Builder: {
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
@@ -74,7 +74,7 @@ function Ze(e) {
|
|
|
74
74
|
builderBlock: e
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const E = "vue", A = (e) => e != null, L = "[Builder.io]: ", I = {
|
|
78
78
|
log: (...e) => console.log(L, ...e),
|
|
79
79
|
error: (...e) => console.error(L, ...e),
|
|
80
80
|
warn: (...e) => console.warn(L, ...e),
|
|
@@ -86,8 +86,8 @@ function v() {
|
|
|
86
86
|
function et() {
|
|
87
87
|
return v() && window.self !== window.top;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return et() && (
|
|
89
|
+
function T() {
|
|
90
|
+
return et() && (E === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
|
|
91
91
|
}
|
|
92
92
|
const tt = () => {
|
|
93
93
|
if (v()) {
|
|
@@ -113,7 +113,7 @@ const tt = () => {
|
|
|
113
113
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
114
114
|
},
|
|
115
115
|
any() {
|
|
116
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
116
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
|
|
117
117
|
}
|
|
118
118
|
}, n = e.match(/Tablet|iPad/i), o = tt();
|
|
119
119
|
return {
|
|
@@ -133,7 +133,7 @@ const tt = () => {
|
|
|
133
133
|
context: t,
|
|
134
134
|
event: n
|
|
135
135
|
}), rt = () => ({
|
|
136
|
-
isEditing:
|
|
136
|
+
isEditing: T(),
|
|
137
137
|
isBrowser: v(),
|
|
138
138
|
isServer: !v(),
|
|
139
139
|
getUserAttributes: () => Ce()
|
|
@@ -310,27 +310,27 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
310
310
|
},
|
|
311
311
|
block: o
|
|
312
312
|
}));
|
|
313
|
-
}, ht = () => import("./block-styles.
|
|
313
|
+
}, ht = () => import("./block-styles.15daad04.js").then((e) => e.default).catch((e) => {
|
|
314
314
|
throw console.error(
|
|
315
315
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
316
316
|
e
|
|
317
317
|
), e;
|
|
318
|
-
}), ft = () => import("./block-wrapper.
|
|
318
|
+
}), ft = () => import("./block-wrapper.684870c2.js").then((e) => e.default).catch((e) => {
|
|
319
319
|
throw console.error(
|
|
320
320
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
321
321
|
e
|
|
322
322
|
), e;
|
|
323
|
-
}), bt = () => import("./component-ref.
|
|
323
|
+
}), bt = () => import("./component-ref.408ec744.js").then((e) => e.default).catch((e) => {
|
|
324
324
|
throw console.error(
|
|
325
325
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
326
326
|
e
|
|
327
327
|
), e;
|
|
328
|
-
}), gt = () => import("./repeated-block.
|
|
328
|
+
}), gt = () => import("./repeated-block.3aa48114.js").then((e) => e.default).catch((e) => {
|
|
329
329
|
throw console.error(
|
|
330
330
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
331
331
|
e
|
|
332
332
|
), e;
|
|
333
|
-
}), kt =
|
|
333
|
+
}), kt = h({
|
|
334
334
|
name: "block",
|
|
335
335
|
components: {
|
|
336
336
|
BlockStyles: M(ht),
|
|
@@ -404,9 +404,9 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
404
404
|
});
|
|
405
405
|
function yt(e, t, n, o, r, i) {
|
|
406
406
|
var m;
|
|
407
|
-
const s =
|
|
408
|
-
return e.canShowBlock ? (d(), p(
|
|
409
|
-
|
|
407
|
+
const s = g("block-styles"), a = g("block-wrapper"), l = g("repeated-block"), c = g("component-ref"), u = g("block", !0);
|
|
408
|
+
return e.canShowBlock ? (d(), p($, { key: 0 }, [
|
|
409
|
+
R(s, {
|
|
410
410
|
block: e.block,
|
|
411
411
|
context: e.context
|
|
412
412
|
}, null, 8, ["block", "context"]),
|
|
@@ -420,20 +420,20 @@ function yt(e, t, n, o, r, i) {
|
|
|
420
420
|
builderBlock: e.componentRefProps.builderBlock,
|
|
421
421
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
422
422
|
isInteractive: e.componentRefProps.isInteractive
|
|
423
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p(
|
|
423
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p($, { key: 0 }, [
|
|
424
424
|
e.isEmptyHtmlElement(e.Tag) ? (d(), y(a, {
|
|
425
425
|
key: 0,
|
|
426
426
|
Wrapper: e.Tag,
|
|
427
427
|
block: e.processedBlock,
|
|
428
428
|
context: e.context,
|
|
429
429
|
hasChildren: !1
|
|
430
|
-
}, null, 8, ["Wrapper", "block", "context"])) :
|
|
431
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p(
|
|
432
|
-
key:
|
|
433
|
-
repeatContext:
|
|
434
|
-
block:
|
|
430
|
+
}, null, 8, ["Wrapper", "block", "context"])) : k("v-if", !0),
|
|
431
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p($, { key: 1 }, N(e.repeatItem, (b, C) => (d(), y(l, {
|
|
432
|
+
key: C,
|
|
433
|
+
repeatContext: b.context,
|
|
434
|
+
block: b.block,
|
|
435
435
|
registeredComponents: e.registeredComponents
|
|
436
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) :
|
|
436
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : k("v-if", !0),
|
|
437
437
|
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), y(a, {
|
|
438
438
|
key: 2,
|
|
439
439
|
Wrapper: e.Tag,
|
|
@@ -442,7 +442,7 @@ function yt(e, t, n, o, r, i) {
|
|
|
442
442
|
hasChildren: !0
|
|
443
443
|
}, {
|
|
444
444
|
default: j(() => [
|
|
445
|
-
|
|
445
|
+
R(c, {
|
|
446
446
|
componentRef: e.componentRefProps.componentRef,
|
|
447
447
|
componentOptions: e.componentRefProps.componentOptions,
|
|
448
448
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -452,22 +452,22 @@ function yt(e, t, n, o, r, i) {
|
|
|
452
452
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
453
453
|
isInteractive: e.componentRefProps.isInteractive
|
|
454
454
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
455
|
-
(d(!0), p(
|
|
456
|
-
key:
|
|
457
|
-
block:
|
|
455
|
+
(d(!0), p($, null, N(e.childrenWithoutParentComponent, (b, C) => (d(), y(u, {
|
|
456
|
+
key: b.id,
|
|
457
|
+
block: b,
|
|
458
458
|
context: e.childrenContext,
|
|
459
459
|
registeredComponents: e.registeredComponents
|
|
460
460
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128))
|
|
461
461
|
]),
|
|
462
462
|
_: 1
|
|
463
|
-
}, 8, ["Wrapper", "block", "context"])) :
|
|
463
|
+
}, 8, ["Wrapper", "block", "context"])) : k("v-if", !0)
|
|
464
464
|
], 64))
|
|
465
|
-
], 64)) :
|
|
465
|
+
], 64)) : k("v-if", !0);
|
|
466
466
|
}
|
|
467
|
-
const Ie = /* @__PURE__ */
|
|
467
|
+
const Ie = /* @__PURE__ */ f(kt, [["render", yt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
468
468
|
__proto__: null,
|
|
469
469
|
default: Ie
|
|
470
|
-
}, Symbol.toStringTag, { value: "Module" })), vt =
|
|
470
|
+
}, Symbol.toStringTag, { value: "Module" })), vt = h({
|
|
471
471
|
name: "builder-blocks-wrapper",
|
|
472
472
|
props: [
|
|
473
473
|
"BlocksWrapper",
|
|
@@ -486,7 +486,7 @@ const Ie = /* @__PURE__ */ b(kt, [["render", yt], ["__file", "/home/runner/work/
|
|
|
486
486
|
methods: {
|
|
487
487
|
onClick() {
|
|
488
488
|
var e, t;
|
|
489
|
-
|
|
489
|
+
T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
490
490
|
{
|
|
491
491
|
type: "builder.clickEmptyBlocks",
|
|
492
492
|
data: {
|
|
@@ -499,7 +499,7 @@ const Ie = /* @__PURE__ */ b(kt, [["render", yt], ["__file", "/home/runner/work/
|
|
|
499
499
|
},
|
|
500
500
|
onMouseEnter() {
|
|
501
501
|
var e, t;
|
|
502
|
-
|
|
502
|
+
T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
503
503
|
{
|
|
504
504
|
type: "builder.hoverEmptyBlocks",
|
|
505
505
|
data: {
|
|
@@ -522,8 +522,8 @@ const Ie = /* @__PURE__ */ b(kt, [["render", yt], ["__file", "/home/runner/work/
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
function St(e, t, n, o, r, i) {
|
|
525
|
-
return d(), y(ke(e.BlocksWrapper),
|
|
526
|
-
class: e._classStringToObject(e.className + " component-
|
|
525
|
+
return d(), y(ke(e.BlocksWrapper), S({
|
|
526
|
+
class: e._classStringToObject(e.className + " component-1k2igrjdg3x"),
|
|
527
527
|
"builder-path": e.path,
|
|
528
528
|
"builder-parent-id": e.parent,
|
|
529
529
|
style: e.styleProp,
|
|
@@ -537,7 +537,7 @@ function St(e, t, n, o, r, i) {
|
|
|
537
537
|
_: 3
|
|
538
538
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
539
539
|
}
|
|
540
|
-
const Ct = /* @__PURE__ */
|
|
540
|
+
const Ct = /* @__PURE__ */ f(vt, [["render", St], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), wt = h({
|
|
541
541
|
name: "builder-blocks",
|
|
542
542
|
components: { BlocksWrapper: Ct, Block: Ie },
|
|
543
543
|
props: [
|
|
@@ -549,13 +549,13 @@ const Ct = /* @__PURE__ */ b(vt, [["render", St], ["__scopeId", "data-v-1f8aab9f
|
|
|
549
549
|
"registeredComponents"
|
|
550
550
|
],
|
|
551
551
|
inject: {
|
|
552
|
-
builderContext:
|
|
552
|
+
builderContext: X.key,
|
|
553
553
|
componentsContext: Se.key
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
556
|
function It(e, t, n, o, r, i) {
|
|
557
557
|
var l, c;
|
|
558
|
-
const s =
|
|
558
|
+
const s = g("block"), a = g("blocks-wrapper");
|
|
559
559
|
return d(), y(a, {
|
|
560
560
|
blocks: e.blocks,
|
|
561
561
|
parent: e.parent,
|
|
@@ -565,23 +565,23 @@ function It(e, t, n, o, r, i) {
|
|
|
565
565
|
BlocksWrapperProps: (c = e.context) == null ? void 0 : c.BlocksWrapperProps
|
|
566
566
|
}, {
|
|
567
567
|
default: j(() => [
|
|
568
|
-
e.blocks ? (d(!0), p(
|
|
568
|
+
e.blocks ? (d(!0), p($, { key: 0 }, N(e.blocks, (u, m) => (d(), y(s, {
|
|
569
569
|
key: u.id,
|
|
570
570
|
block: u,
|
|
571
571
|
context: e.context || e.builderContext,
|
|
572
572
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
573
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) :
|
|
573
|
+
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : k("v-if", !0)
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
576
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
577
577
|
}
|
|
578
|
-
const
|
|
578
|
+
const q = /* @__PURE__ */ f(wt, [["render", It], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), $t = h({
|
|
579
579
|
render() {
|
|
580
580
|
return ye("style", { id: this.id, innerHTML: this.styles });
|
|
581
581
|
},
|
|
582
582
|
name: "inlined-styles",
|
|
583
583
|
props: ["styles", "id"]
|
|
584
|
-
}), te = /* @__PURE__ */
|
|
584
|
+
}), te = /* @__PURE__ */ f($t, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), $e = {
|
|
585
585
|
small: {
|
|
586
586
|
min: 320,
|
|
587
587
|
default: 321,
|
|
@@ -597,11 +597,11 @@ const ee = /* @__PURE__ */ b(wt, [["render", It], ["__file", "/home/runner/work/
|
|
|
597
597
|
default: 991,
|
|
598
598
|
max: 1200
|
|
599
599
|
}
|
|
600
|
-
},
|
|
600
|
+
}, Zo = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, Rt = ({
|
|
601
601
|
small: e,
|
|
602
602
|
medium: t
|
|
603
603
|
}) => {
|
|
604
|
-
const n = F(
|
|
604
|
+
const n = F($e);
|
|
605
605
|
if (!e || !t)
|
|
606
606
|
return n;
|
|
607
607
|
const o = Math.floor(e / 2);
|
|
@@ -622,9 +622,9 @@ const ee = /* @__PURE__ */ b(wt, [["render", It], ["__file", "/home/runner/work/
|
|
|
622
622
|
min: i,
|
|
623
623
|
default: i + 1
|
|
624
624
|
}, n;
|
|
625
|
-
}, Tt =
|
|
625
|
+
}, Tt = h({
|
|
626
626
|
name: "builder-columns",
|
|
627
|
-
components: { InlinedStyles: te, Blocks:
|
|
627
|
+
components: { InlinedStyles: te, Blocks: q },
|
|
628
628
|
props: [
|
|
629
629
|
"js",
|
|
630
630
|
"space",
|
|
@@ -641,7 +641,7 @@ const ee = /* @__PURE__ */ b(wt, [["render", It], ["__file", "/home/runner/work/
|
|
|
641
641
|
cols: this.columns || [],
|
|
642
642
|
stackAt: this.stackColumnsAt || "tablet",
|
|
643
643
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
644
|
-
TARGET:
|
|
644
|
+
TARGET: E
|
|
645
645
|
};
|
|
646
646
|
},
|
|
647
647
|
computed: {
|
|
@@ -728,7 +728,7 @@ const ee = /* @__PURE__ */ b(wt, [["render", It], ["__file", "/home/runner/work/
|
|
|
728
728
|
},
|
|
729
729
|
getWidthForBreakpointSize(e) {
|
|
730
730
|
var n, o;
|
|
731
|
-
return
|
|
731
|
+
return Rt(
|
|
732
732
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
733
733
|
)[e].max;
|
|
734
734
|
},
|
|
@@ -744,8 +744,8 @@ const ee = /* @__PURE__ */ b(wt, [["render", It], ["__file", "/home/runner/work/
|
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
746
|
function Et(e, t, n, o, r, i) {
|
|
747
|
-
const s =
|
|
748
|
-
return d(), p("div",
|
|
747
|
+
const s = g("inlined-styles"), a = g("blocks");
|
|
748
|
+
return d(), p("div", S({
|
|
749
749
|
class: e._classStringToObject(
|
|
750
750
|
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
751
751
|
),
|
|
@@ -754,13 +754,13 @@ function Et(e, t, n, o, r, i) {
|
|
|
754
754
|
e.TARGET !== "reactNative" ? (d(), y(s, {
|
|
755
755
|
key: 0,
|
|
756
756
|
styles: e.columnsStyles
|
|
757
|
-
}, null, 8, ["styles"])) :
|
|
758
|
-
(d(!0), p(
|
|
757
|
+
}, null, 8, ["styles"])) : k("v-if", !0),
|
|
758
|
+
(d(!0), p($, null, N(e.columns, (l, c) => (d(), p("div", S({
|
|
759
759
|
key: c,
|
|
760
760
|
class: "builder-column div-16nol0lwi20-2",
|
|
761
761
|
style: e.columnCssVars(c)
|
|
762
762
|
}, {}), [
|
|
763
|
-
|
|
763
|
+
R(a, {
|
|
764
764
|
path: `component.options.columns.${c}.blocks`,
|
|
765
765
|
parent: e.builderBlock.id,
|
|
766
766
|
styleProp: {
|
|
@@ -773,7 +773,7 @@ function Et(e, t, n, o, r, i) {
|
|
|
773
773
|
], 16))), 128))
|
|
774
774
|
], 16);
|
|
775
775
|
}
|
|
776
|
-
const Pt = /* @__PURE__ */
|
|
776
|
+
const Pt = /* @__PURE__ */ f(Tt, [["render", Et], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), xt = h({
|
|
777
777
|
name: "builder-fragment-component",
|
|
778
778
|
props: []
|
|
779
779
|
});
|
|
@@ -782,7 +782,7 @@ function Bt(e, t, n, o, r, i) {
|
|
|
782
782
|
x(e.$slots, "default")
|
|
783
783
|
]);
|
|
784
784
|
}
|
|
785
|
-
const Wt = /* @__PURE__ */
|
|
785
|
+
const Wt = /* @__PURE__ */ f(xt, [["render", Bt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
|
|
786
786
|
function le(e) {
|
|
787
787
|
return e.replace(/http(s)?:/, "");
|
|
788
788
|
}
|
|
@@ -802,7 +802,7 @@ function Vt(e, t) {
|
|
|
802
802
|
}
|
|
803
803
|
return null;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function J(e) {
|
|
806
806
|
if (!e)
|
|
807
807
|
return e;
|
|
808
808
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -813,7 +813,7 @@ function G(e) {
|
|
|
813
813
|
}
|
|
814
814
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
815
815
|
}
|
|
816
|
-
const _t =
|
|
816
|
+
const _t = h({
|
|
817
817
|
name: "builder-image",
|
|
818
818
|
props: [
|
|
819
819
|
"image",
|
|
@@ -837,10 +837,10 @@ const _t = f({
|
|
|
837
837
|
return this.srcset;
|
|
838
838
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
839
839
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
840
|
-
return console.debug("Removed given srcset"),
|
|
840
|
+
return console.debug("Removed given srcset"), J(t);
|
|
841
841
|
} else if (this.image && !this.srcset)
|
|
842
|
-
return
|
|
843
|
-
return
|
|
842
|
+
return J(t);
|
|
843
|
+
return J(t);
|
|
844
844
|
},
|
|
845
845
|
webpSrcSet() {
|
|
846
846
|
var e;
|
|
@@ -875,18 +875,18 @@ const Ot = ["srcset"], Nt = ["alt", "role", "src", "srcset", "sizes"], Ut = {
|
|
|
875
875
|
};
|
|
876
876
|
function jt(e, t, n, o, r, i) {
|
|
877
877
|
var s, a, l, c;
|
|
878
|
-
return d(), p(
|
|
879
|
-
|
|
878
|
+
return d(), p($, null, [
|
|
879
|
+
Y("picture", null, [
|
|
880
880
|
e.webpSrcSet ? (d(), p("source", {
|
|
881
881
|
key: 0,
|
|
882
882
|
type: "image/webp",
|
|
883
883
|
srcset: e.webpSrcSet
|
|
884
|
-
}, null, 8, Ot)) :
|
|
885
|
-
|
|
884
|
+
}, null, 8, Ot)) : k("v-if", !0),
|
|
885
|
+
Y("img", {
|
|
886
886
|
loading: "lazy",
|
|
887
887
|
alt: e.altText,
|
|
888
888
|
role: e.altText ? "presentation" : void 0,
|
|
889
|
-
style:
|
|
889
|
+
style: Q({
|
|
890
890
|
objectPosition: e.backgroundPosition || "center",
|
|
891
891
|
objectFit: e.backgroundSize || "cover",
|
|
892
892
|
...e.aspectRatioCss
|
|
@@ -904,17 +904,17 @@ function jt(e, t, n, o, r, i) {
|
|
|
904
904
|
e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
|
|
905
905
|
key: 0,
|
|
906
906
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
907
|
-
style:
|
|
907
|
+
style: Q({
|
|
908
908
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
909
909
|
})
|
|
910
|
-
}, null, 4)) :
|
|
911
|
-
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) :
|
|
910
|
+
}, null, 4)) : k("v-if", !0),
|
|
911
|
+
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : k("v-if", !0),
|
|
912
912
|
!e.fitContent && e.$slots.default ? (d(), p("div", Ut, [
|
|
913
913
|
x(e.$slots, "default", {}, void 0, !0)
|
|
914
|
-
])) :
|
|
914
|
+
])) : k("v-if", !0)
|
|
915
915
|
], 64);
|
|
916
916
|
}
|
|
917
|
-
const Ft = /* @__PURE__ */
|
|
917
|
+
const Ft = /* @__PURE__ */ f(_t, [["render", jt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), Mt = h({
|
|
918
918
|
name: "builder-section-component",
|
|
919
919
|
props: ["attributes", "maxWidth"],
|
|
920
920
|
data() {
|
|
@@ -922,7 +922,7 @@ const Ft = /* @__PURE__ */ b(_t, [["render", jt], ["__scopeId", "data-v-58ca75d1
|
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
924
|
function Lt(e, t, n, o, r, i) {
|
|
925
|
-
return d(), p("section",
|
|
925
|
+
return d(), p("section", S({
|
|
926
926
|
style: {
|
|
927
927
|
width: "100%",
|
|
928
928
|
alignSelf: "stretch",
|
|
@@ -939,12 +939,12 @@ function Lt(e, t, n, o, r, i) {
|
|
|
939
939
|
x(e.$slots, "default")
|
|
940
940
|
], 16);
|
|
941
941
|
}
|
|
942
|
-
const Ht = /* @__PURE__ */
|
|
942
|
+
const Ht = /* @__PURE__ */ f(Mt, [["render", Lt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), Dt = (e) => {
|
|
943
943
|
if (e === "localhost" || e === "127.0.0.1")
|
|
944
944
|
return e;
|
|
945
945
|
const t = e.split(".");
|
|
946
946
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
947
|
-
},
|
|
947
|
+
}, Re = ({
|
|
948
948
|
name: e,
|
|
949
949
|
canTrack: t
|
|
950
950
|
}) => {
|
|
@@ -955,7 +955,7 @@ const Ht = /* @__PURE__ */ b(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
955
955
|
I.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
|
-
}, Te = async (e) =>
|
|
958
|
+
}, Te = async (e) => Re(e), Kt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(A).join("; "), zt = [["secure", ""], ["SameSite", "None"]], qt = ({
|
|
959
959
|
name: e,
|
|
960
960
|
value: t,
|
|
961
961
|
expires: n
|
|
@@ -987,7 +987,7 @@ const Ht = /* @__PURE__ */ b(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
987
987
|
canTrack: !0
|
|
988
988
|
}), Yt = ({
|
|
989
989
|
contentId: e
|
|
990
|
-
}) =>
|
|
990
|
+
}) => Re({
|
|
991
991
|
name: ne(e),
|
|
992
992
|
canTrack: !0
|
|
993
993
|
}), Qt = ({
|
|
@@ -1327,7 +1327,7 @@ const Ht = /* @__PURE__ */ b(Mt, [["render", Lt], ["__file", "/home/runner/work/
|
|
|
1327
1327
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1328
1328
|
advanced: !0
|
|
1329
1329
|
}]
|
|
1330
|
-
}, rn =
|
|
1330
|
+
}, rn = h({
|
|
1331
1331
|
name: "builder-custom-code",
|
|
1332
1332
|
props: ["replaceNodes", "code"],
|
|
1333
1333
|
data() {
|
|
@@ -1384,7 +1384,7 @@ function an(e, t, n, o, r, i) {
|
|
|
1384
1384
|
innerHTML: e.code
|
|
1385
1385
|
}, null, 10, sn);
|
|
1386
1386
|
}
|
|
1387
|
-
const ln = /* @__PURE__ */
|
|
1387
|
+
const ln = /* @__PURE__ */ f(rn, [["render", an], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), cn = {
|
|
1388
1388
|
name: "Embed",
|
|
1389
1389
|
static: !0,
|
|
1390
1390
|
inputs: [{
|
|
@@ -1409,7 +1409,7 @@ const ln = /* @__PURE__ */ b(rn, [["render", an], ["__file", "/home/runner/work/
|
|
|
1409
1409
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1410
1410
|
hideFromUI: !0
|
|
1411
1411
|
}]
|
|
1412
|
-
}, dn = ["text/javascript", "application/javascript", "application/ecmascript"], un = (e) => dn.includes(e.type), pn =
|
|
1412
|
+
}, dn = ["text/javascript", "application/javascript", "application/ecmascript"], un = (e) => dn.includes(e.type), pn = h({
|
|
1413
1413
|
name: "builder-embed",
|
|
1414
1414
|
props: ["content"],
|
|
1415
1415
|
data() {
|
|
@@ -1459,7 +1459,7 @@ function hn(e, t, n, o, r, i) {
|
|
|
1459
1459
|
innerHTML: e.content
|
|
1460
1460
|
}, null, 8, mn);
|
|
1461
1461
|
}
|
|
1462
|
-
const fn = /* @__PURE__ */
|
|
1462
|
+
const fn = /* @__PURE__ */ f(pn, [["render", hn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), bn = {
|
|
1463
1463
|
name: "Fragment",
|
|
1464
1464
|
static: !0,
|
|
1465
1465
|
hidden: !0,
|
|
@@ -1491,8 +1491,8 @@ const fn = /* @__PURE__ */ b(pn, [["render", hn], ["__file", "/home/runner/work/
|
|
|
1491
1491
|
let m = !1;
|
|
1492
1492
|
u.onload = () => {
|
|
1493
1493
|
m = !0, l(u);
|
|
1494
|
-
}, u.addEventListener("error", (
|
|
1495
|
-
console.warn("Image load failed",
|
|
1494
|
+
}, u.addEventListener("error", (b) => {
|
|
1495
|
+
console.warn("Image load failed", b.error), c(b.error);
|
|
1496
1496
|
}), u.src = s, setTimeout(() => {
|
|
1497
1497
|
m || c(new Error("Image load timed out"));
|
|
1498
1498
|
}, a);
|
|
@@ -1578,7 +1578,7 @@ const fn = /* @__PURE__ */ b(pn, [["render", hn], ["__file", "/home/runner/work/
|
|
|
1578
1578
|
}],
|
|
1579
1579
|
noWrap: !0,
|
|
1580
1580
|
static: !0
|
|
1581
|
-
}, yn =
|
|
1581
|
+
}, yn = h({
|
|
1582
1582
|
name: "builder-img-component",
|
|
1583
1583
|
props: [
|
|
1584
1584
|
"backgroundSize",
|
|
@@ -1589,11 +1589,11 @@ const fn = /* @__PURE__ */ b(pn, [["render", hn], ["__file", "/home/runner/work/
|
|
|
1589
1589
|
"attributes"
|
|
1590
1590
|
],
|
|
1591
1591
|
data() {
|
|
1592
|
-
return { isEditing:
|
|
1592
|
+
return { isEditing: T, filterAttrs: z };
|
|
1593
1593
|
}
|
|
1594
1594
|
}), vn = ["alt", "src"];
|
|
1595
1595
|
function Sn(e, t, n, o, r, i) {
|
|
1596
|
-
return d(), p("img",
|
|
1596
|
+
return d(), p("img", S({
|
|
1597
1597
|
style: {
|
|
1598
1598
|
objectFit: e.backgroundSize || "cover",
|
|
1599
1599
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -1603,7 +1603,7 @@ function Sn(e, t, n, o, r, i) {
|
|
|
1603
1603
|
src: e.imgSrc || e.image
|
|
1604
1604
|
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, vn);
|
|
1605
1605
|
}
|
|
1606
|
-
const Cn = /* @__PURE__ */
|
|
1606
|
+
const Cn = /* @__PURE__ */ f(yn, [["render", Sn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), wn = {
|
|
1607
1607
|
name: "Core:Section",
|
|
1608
1608
|
static: !0,
|
|
1609
1609
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1643,6 +1643,42 @@ const Cn = /* @__PURE__ */ b(yn, [["render", Sn], ["__file", "/home/runner/work/
|
|
|
1643
1643
|
}
|
|
1644
1644
|
}]
|
|
1645
1645
|
}, In = {
|
|
1646
|
+
name: "Slot",
|
|
1647
|
+
isRSC: !0,
|
|
1648
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
1649
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
1650
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
1651
|
+
inputs: [{
|
|
1652
|
+
name: "name",
|
|
1653
|
+
type: "string",
|
|
1654
|
+
required: !0,
|
|
1655
|
+
defaultValue: "children"
|
|
1656
|
+
}]
|
|
1657
|
+
}, $n = h({
|
|
1658
|
+
name: "builder-slot",
|
|
1659
|
+
components: { Blocks: q },
|
|
1660
|
+
props: ["builderContext", "name"]
|
|
1661
|
+
});
|
|
1662
|
+
function Rn(e, t, n, o, r, i) {
|
|
1663
|
+
var a, l, c;
|
|
1664
|
+
const s = g("blocks");
|
|
1665
|
+
return d(), p("div", S(
|
|
1666
|
+
{ style: {
|
|
1667
|
+
pointerEvents: "auto"
|
|
1668
|
+
} },
|
|
1669
|
+
!((a = e.builderContext.context) != null && a.symbolId) && {
|
|
1670
|
+
"builder-slot": e.name
|
|
1671
|
+
}
|
|
1672
|
+
), [
|
|
1673
|
+
R(s, {
|
|
1674
|
+
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
1675
|
+
path: `symbol.data.${e.name}`,
|
|
1676
|
+
context: e.builderContext,
|
|
1677
|
+
blocks: (c = e.builderContext.rootState) == null ? void 0 : c[e.name]
|
|
1678
|
+
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1679
|
+
], 16);
|
|
1680
|
+
}
|
|
1681
|
+
const Tn = /* @__PURE__ */ f($n, [["render", Rn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/slot/slot.vue"]]), En = {
|
|
1646
1682
|
name: "Symbol",
|
|
1647
1683
|
noWrap: !0,
|
|
1648
1684
|
static: !0,
|
|
@@ -1675,7 +1711,7 @@ const Cn = /* @__PURE__ */ b(yn, [["render", Sn], ["__file", "/home/runner/work/
|
|
|
1675
1711
|
hideFromUI: !0,
|
|
1676
1712
|
type: "boolean"
|
|
1677
1713
|
}]
|
|
1678
|
-
},
|
|
1714
|
+
}, Pn = {
|
|
1679
1715
|
name: "Text",
|
|
1680
1716
|
static: !0,
|
|
1681
1717
|
isRSC: !0,
|
|
@@ -1693,11 +1729,11 @@ const Cn = /* @__PURE__ */ b(yn, [["render", Sn], ["__file", "/home/runner/work/
|
|
|
1693
1729
|
height: "auto",
|
|
1694
1730
|
textAlign: "center"
|
|
1695
1731
|
}
|
|
1696
|
-
},
|
|
1732
|
+
}, xn = h({
|
|
1697
1733
|
name: "builder-text",
|
|
1698
1734
|
props: ["text"]
|
|
1699
|
-
}),
|
|
1700
|
-
function
|
|
1735
|
+
}), Bn = ["innerHTML"];
|
|
1736
|
+
function Wn(e, t, n, o, r, i) {
|
|
1701
1737
|
var s;
|
|
1702
1738
|
return d(), p("div", {
|
|
1703
1739
|
class: "builder-text",
|
|
@@ -1705,9 +1741,9 @@ function En(e, t, n, o, r, i) {
|
|
|
1705
1741
|
style: {
|
|
1706
1742
|
outline: "none"
|
|
1707
1743
|
}
|
|
1708
|
-
}, null, 8,
|
|
1744
|
+
}, null, 8, Bn);
|
|
1709
1745
|
}
|
|
1710
|
-
const
|
|
1746
|
+
const An = /* @__PURE__ */ f(xn, [["render", Wn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), Vn = {
|
|
1711
1747
|
name: "Video",
|
|
1712
1748
|
canHaveChildren: !0,
|
|
1713
1749
|
defaultStyles: {
|
|
@@ -1788,7 +1824,7 @@ const Pn = /* @__PURE__ */ b($n, [["render", En], ["__file", "/home/runner/work/
|
|
|
1788
1824
|
defaultValue: !0,
|
|
1789
1825
|
advanced: !0
|
|
1790
1826
|
}]
|
|
1791
|
-
},
|
|
1827
|
+
}, _n = h({
|
|
1792
1828
|
name: "builder-video",
|
|
1793
1829
|
props: [
|
|
1794
1830
|
"autoPlay",
|
|
@@ -1833,16 +1869,16 @@ const Pn = /* @__PURE__ */ b($n, [["render", En], ["__file", "/home/runner/work/
|
|
|
1833
1869
|
};
|
|
1834
1870
|
}
|
|
1835
1871
|
}
|
|
1836
|
-
}),
|
|
1872
|
+
}), On = { style: {
|
|
1837
1873
|
position: "relative"
|
|
1838
|
-
} },
|
|
1874
|
+
} }, Nn = ["preload", "src", "poster"], Un = ["src"], jn = {
|
|
1839
1875
|
key: 1,
|
|
1840
1876
|
style: {
|
|
1841
1877
|
display: "flex",
|
|
1842
1878
|
flexDirection: "column",
|
|
1843
1879
|
alignItems: "stretch"
|
|
1844
1880
|
}
|
|
1845
|
-
},
|
|
1881
|
+
}, Fn = {
|
|
1846
1882
|
key: 2,
|
|
1847
1883
|
style: {
|
|
1848
1884
|
pointerEvents: "none",
|
|
@@ -1856,10 +1892,10 @@ const Pn = /* @__PURE__ */ b($n, [["render", En], ["__file", "/home/runner/work/
|
|
|
1856
1892
|
height: "100%"
|
|
1857
1893
|
}
|
|
1858
1894
|
};
|
|
1859
|
-
function
|
|
1860
|
-
var s, a, l, c, u, m,
|
|
1861
|
-
return d(), p("div",
|
|
1862
|
-
|
|
1895
|
+
function Mn(e, t, n, o, r, i) {
|
|
1896
|
+
var s, a, l, c, u, m, b;
|
|
1897
|
+
return d(), p("div", On, [
|
|
1898
|
+
Y("video", S({
|
|
1863
1899
|
class: "builder-video",
|
|
1864
1900
|
preload: e.preload || "metadata",
|
|
1865
1901
|
style: {
|
|
@@ -1877,30 +1913,30 @@ function Nn(e, t, n, o, r, i) {
|
|
|
1877
1913
|
src: e.video || "no-src",
|
|
1878
1914
|
poster: e.posterImage
|
|
1879
1915
|
}, e.spreadProps), [
|
|
1880
|
-
e.lazyLoad ?
|
|
1916
|
+
e.lazyLoad ? k("v-if", !0) : (d(), p("source", {
|
|
1881
1917
|
key: 0,
|
|
1882
1918
|
type: "video/mp4",
|
|
1883
1919
|
src: e.video
|
|
1884
|
-
}, null, 8,
|
|
1885
|
-
], 16,
|
|
1920
|
+
}, null, 8, Un))
|
|
1921
|
+
], 16, Nn),
|
|
1886
1922
|
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(), p("div", {
|
|
1887
1923
|
key: 0,
|
|
1888
|
-
style:
|
|
1924
|
+
style: Q({
|
|
1889
1925
|
width: "100%",
|
|
1890
1926
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
1891
1927
|
pointerEvents: "none",
|
|
1892
1928
|
fontSize: "0px"
|
|
1893
1929
|
})
|
|
1894
|
-
}, null, 4)) :
|
|
1895
|
-
((u = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : u.length) && e.fitContent ? (d(), p("div",
|
|
1930
|
+
}, null, 4)) : k("v-if", !0),
|
|
1931
|
+
((u = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : u.length) && e.fitContent ? (d(), p("div", jn, [
|
|
1896
1932
|
x(e.$slots, "default")
|
|
1897
|
-
])) :
|
|
1898
|
-
((
|
|
1933
|
+
])) : k("v-if", !0),
|
|
1934
|
+
((b = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : b.length) && !e.fitContent ? (d(), p("div", Fn, [
|
|
1899
1935
|
x(e.$slots, "default")
|
|
1900
|
-
])) :
|
|
1936
|
+
])) : k("v-if", !0)
|
|
1901
1937
|
]);
|
|
1902
1938
|
}
|
|
1903
|
-
const
|
|
1939
|
+
const Ln = /* @__PURE__ */ f(_n, [["render", Mn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), ce = () => [{
|
|
1904
1940
|
component: Ye,
|
|
1905
1941
|
...tn
|
|
1906
1942
|
}, {
|
|
@@ -1925,30 +1961,33 @@ const Un = /* @__PURE__ */ b(Bn, [["render", Nn], ["__file", "/home/runner/work/
|
|
|
1925
1961
|
component: Ht,
|
|
1926
1962
|
...wn
|
|
1927
1963
|
}, {
|
|
1928
|
-
component:
|
|
1929
|
-
...
|
|
1964
|
+
component: Jo,
|
|
1965
|
+
...En
|
|
1966
|
+
}, {
|
|
1967
|
+
component: An,
|
|
1968
|
+
...Pn
|
|
1930
1969
|
}, {
|
|
1931
|
-
component:
|
|
1932
|
-
...
|
|
1970
|
+
component: Ln,
|
|
1971
|
+
...Vn
|
|
1933
1972
|
}, {
|
|
1934
|
-
component:
|
|
1935
|
-
...
|
|
1936
|
-
}], de = [],
|
|
1973
|
+
component: Tn,
|
|
1974
|
+
...In
|
|
1975
|
+
}], de = [], Hn = (e) => ({
|
|
1937
1976
|
type: "builder.registerComponent",
|
|
1938
|
-
data:
|
|
1939
|
-
}),
|
|
1977
|
+
data: Z(e)
|
|
1978
|
+
}), Dn = (e) => {
|
|
1940
1979
|
const t = e.toString().trim();
|
|
1941
1980
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1942
|
-
},
|
|
1981
|
+
}, Kn = (e) => typeof e == "function" ? Dn(e) : F(e), Z = ({
|
|
1943
1982
|
inputs: e,
|
|
1944
1983
|
...t
|
|
1945
1984
|
}) => ({
|
|
1946
1985
|
...F(t),
|
|
1947
1986
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
|
|
1948
1987
|
...o,
|
|
1949
|
-
[r]:
|
|
1988
|
+
[r]: Kn(i)
|
|
1950
1989
|
}), {}))
|
|
1951
|
-
}),
|
|
1990
|
+
}), zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1952
1991
|
function getAndSetVariantId() {
|
|
1953
1992
|
function setCookie(name, value, days) {
|
|
1954
1993
|
let expires = '';
|
|
@@ -2004,7 +2043,7 @@ const Un = /* @__PURE__ */ b(Bn, [["render", Nn], ["__file", "/home/runner/work/
|
|
|
2004
2043
|
}).join('');
|
|
2005
2044
|
styleEl.innerHTML = newStyleStr;
|
|
2006
2045
|
}
|
|
2007
|
-
}`,
|
|
2046
|
+
}`, qn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2008
2047
|
if (!navigator.cookieEnabled) {
|
|
2009
2048
|
return;
|
|
2010
2049
|
}
|
|
@@ -2042,38 +2081,38 @@ const Un = /* @__PURE__ */ b(Bn, [["render", Nn], ["__file", "/home/runner/work/
|
|
|
2042
2081
|
...t,
|
|
2043
2082
|
testVariationId: t.id,
|
|
2044
2083
|
id: e == null ? void 0 : e.id
|
|
2045
|
-
})),
|
|
2084
|
+
})), Gn = ({
|
|
2046
2085
|
canTrack: e,
|
|
2047
2086
|
content: t
|
|
2048
|
-
}) => !(!(H(t).length > 0) || !e),
|
|
2049
|
-
window.${We} = ${
|
|
2050
|
-
window.${Ae} = ${
|
|
2051
|
-
`,
|
|
2087
|
+
}) => !(!(H(t).length > 0) || !e), Jn = (e) => e === "react" || e === "reactNative", Ve = Jn(E), Yn = () => `
|
|
2088
|
+
window.${We} = ${zn}
|
|
2089
|
+
window.${Ae} = ${qn}
|
|
2090
|
+
`, Qn = (e, t) => `
|
|
2052
2091
|
window.${We}(
|
|
2053
2092
|
"${t}",${JSON.stringify(e)}, ${Ve}
|
|
2054
|
-
)`,
|
|
2093
|
+
)`, Xn = ({
|
|
2055
2094
|
contentId: e,
|
|
2056
2095
|
variationId: t
|
|
2057
2096
|
}) => `window.${Ae}(
|
|
2058
2097
|
"${t}", "${e}", ${Ve}
|
|
2059
|
-
)`,
|
|
2098
|
+
)`, Zn = h({
|
|
2060
2099
|
render() {
|
|
2061
2100
|
return ye("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2062
2101
|
},
|
|
2063
2102
|
name: "inlined-script",
|
|
2064
2103
|
props: ["scriptStr", "id"]
|
|
2065
|
-
}), _e = /* @__PURE__ */
|
|
2066
|
-
function
|
|
2104
|
+
}), _e = /* @__PURE__ */ f(Zn, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
|
|
2105
|
+
function eo() {
|
|
2067
2106
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2068
2107
|
}
|
|
2069
|
-
function
|
|
2070
|
-
const e =
|
|
2108
|
+
function to() {
|
|
2109
|
+
const e = eo().fetch;
|
|
2071
2110
|
if (typeof e > "u")
|
|
2072
2111
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2073
2112
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2074
2113
|
return e;
|
|
2075
2114
|
}
|
|
2076
|
-
const Oe =
|
|
2115
|
+
const Oe = to();
|
|
2077
2116
|
function D(e, t = null, n = ".") {
|
|
2078
2117
|
return Object.keys(e).reduce((o, r) => {
|
|
2079
2118
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -2086,7 +2125,7 @@ function D(e, t = null, n = ".") {
|
|
|
2086
2125
|
};
|
|
2087
2126
|
}, {});
|
|
2088
2127
|
}
|
|
2089
|
-
const
|
|
2128
|
+
const no = "v3", ue = "builder.", oo = "options.", ro = (e) => {
|
|
2090
2129
|
const t = {};
|
|
2091
2130
|
return e.forEach((n, o) => {
|
|
2092
2131
|
t[o] = n;
|
|
@@ -2097,16 +2136,16 @@ const Xn = "v3", ue = "builder.", Zn = "options.", eo = (e) => {
|
|
|
2097
2136
|
const t = Ue(e), n = {};
|
|
2098
2137
|
return Object.keys(t).forEach((o) => {
|
|
2099
2138
|
if (o.startsWith(ue)) {
|
|
2100
|
-
const r = o.replace(ue, "").replace(
|
|
2139
|
+
const r = o.replace(ue, "").replace(oo, "");
|
|
2101
2140
|
n[r] = t[o];
|
|
2102
2141
|
}
|
|
2103
2142
|
}), n;
|
|
2104
|
-
},
|
|
2143
|
+
}, io = () => {
|
|
2105
2144
|
if (!v())
|
|
2106
2145
|
return {};
|
|
2107
2146
|
const e = new URLSearchParams(window.location.search);
|
|
2108
2147
|
return Ne(e);
|
|
2109
|
-
}, Ue = (e) => e instanceof URLSearchParams ?
|
|
2148
|
+
}, Ue = (e) => e instanceof URLSearchParams ? ro(e) : e, pe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, oe = (e) => {
|
|
2110
2149
|
let {
|
|
2111
2150
|
noTraverse: t = !1
|
|
2112
2151
|
} = e;
|
|
@@ -2119,10 +2158,10 @@ const Xn = "v3", ue = "builder.", Zn = "options.", eo = (e) => {
|
|
|
2119
2158
|
includeRefs: a = !0,
|
|
2120
2159
|
enrich: l,
|
|
2121
2160
|
locale: c,
|
|
2122
|
-
apiVersion: u =
|
|
2161
|
+
apiVersion: u = no,
|
|
2123
2162
|
fields: m,
|
|
2124
|
-
omit:
|
|
2125
|
-
offset:
|
|
2163
|
+
omit: b,
|
|
2164
|
+
offset: C,
|
|
2126
2165
|
cacheSeconds: B,
|
|
2127
2166
|
staleCacheSeconds: W,
|
|
2128
2167
|
sort: V,
|
|
@@ -2134,41 +2173,41 @@ const Xn = "v3", ue = "builder.", Zn = "options.", eo = (e) => {
|
|
|
2134
2173
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
2135
2174
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2136
2175
|
const w = new URL(`https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2137
|
-
if (w.searchParams.set("omit",
|
|
2138
|
-
const
|
|
2176
|
+
if (w.searchParams.set("omit", b || "meta.componentsUsed"), m && w.searchParams.set("fields", m), Number.isFinite(C) && C > -1 && w.searchParams.set("offset", String(Math.floor(C))), typeof re == "boolean" && w.searchParams.set("includeUnpublished", String(re)), B && pe(B) && w.searchParams.set("cacheSeconds", String(B)), W && pe(W) && w.searchParams.set("staleCacheSeconds", String(W)), V) {
|
|
2177
|
+
const P = D({
|
|
2139
2178
|
sort: V
|
|
2140
2179
|
});
|
|
2141
|
-
for (const _ in
|
|
2142
|
-
w.searchParams.set(_, JSON.stringify(
|
|
2180
|
+
for (const _ in P)
|
|
2181
|
+
w.searchParams.set(_, JSON.stringify(P[_]));
|
|
2143
2182
|
}
|
|
2144
2183
|
const Ke = {
|
|
2145
|
-
...
|
|
2184
|
+
...io(),
|
|
2146
2185
|
...Ue(e.options || {})
|
|
2147
2186
|
}, ie = D(Ke);
|
|
2148
|
-
for (const
|
|
2149
|
-
w.searchParams.set(
|
|
2187
|
+
for (const P in ie)
|
|
2188
|
+
w.searchParams.set(P, String(ie[P]));
|
|
2150
2189
|
if (o && w.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
2151
|
-
const
|
|
2190
|
+
const P = D({
|
|
2152
2191
|
query: r
|
|
2153
2192
|
});
|
|
2154
|
-
for (const _ in
|
|
2155
|
-
w.searchParams.set(_, JSON.stringify(
|
|
2193
|
+
for (const _ in P)
|
|
2194
|
+
w.searchParams.set(_, JSON.stringify(P[_]));
|
|
2156
2195
|
}
|
|
2157
2196
|
return w;
|
|
2158
|
-
},
|
|
2159
|
-
async function
|
|
2197
|
+
}, so = (e) => "results" in e;
|
|
2198
|
+
async function G(e) {
|
|
2160
2199
|
const t = await je({
|
|
2161
2200
|
...e,
|
|
2162
2201
|
limit: 1
|
|
2163
2202
|
});
|
|
2164
2203
|
return t && t[0] || null;
|
|
2165
2204
|
}
|
|
2166
|
-
const
|
|
2205
|
+
const er = G, ao = async (e) => {
|
|
2167
2206
|
const t = oe(e);
|
|
2168
2207
|
return await (await Oe(t.href)).json();
|
|
2169
|
-
},
|
|
2208
|
+
}, lo = async (e, t, n = oe(e)) => {
|
|
2170
2209
|
const o = U(e.canTrack);
|
|
2171
|
-
if (n.search.includes("preview="), !o || !(v() ||
|
|
2210
|
+
if (n.search.includes("preview="), !o || !(v() || E === "reactNative"))
|
|
2172
2211
|
return t.results;
|
|
2173
2212
|
try {
|
|
2174
2213
|
const r = [];
|
|
@@ -2185,8 +2224,8 @@ const Yo = q, oo = async (e) => {
|
|
|
2185
2224
|
};
|
|
2186
2225
|
async function je(e) {
|
|
2187
2226
|
try {
|
|
2188
|
-
const t = oe(e), n = await
|
|
2189
|
-
return
|
|
2227
|
+
const t = oe(e), n = await ao(e);
|
|
2228
|
+
return so(n) ? lo(e, n) : (I.error("Error fetching data. ", {
|
|
2190
2229
|
url: t,
|
|
2191
2230
|
content: n,
|
|
2192
2231
|
options: e
|
|
@@ -2195,20 +2234,20 @@ async function je(e) {
|
|
|
2195
2234
|
return I.error("Error fetching data. ", t), null;
|
|
2196
2235
|
}
|
|
2197
2236
|
}
|
|
2198
|
-
const
|
|
2199
|
-
function
|
|
2200
|
-
return !v() ||
|
|
2237
|
+
const tr = je;
|
|
2238
|
+
function co() {
|
|
2239
|
+
return !v() || T() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2201
2240
|
}
|
|
2202
|
-
function
|
|
2241
|
+
function uo() {
|
|
2203
2242
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2204
2243
|
const t = Math.random() * 16 | 0;
|
|
2205
2244
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2206
2245
|
});
|
|
2207
2246
|
}
|
|
2208
2247
|
function Fe() {
|
|
2209
|
-
return
|
|
2248
|
+
return uo().replace(/-/g, "");
|
|
2210
2249
|
}
|
|
2211
|
-
const Me = "builderSessionId",
|
|
2250
|
+
const Me = "builderSessionId", po = async ({
|
|
2212
2251
|
canTrack: e
|
|
2213
2252
|
}) => {
|
|
2214
2253
|
if (!e)
|
|
@@ -2220,20 +2259,20 @@ const Me = "builderSessionId", ao = async ({
|
|
|
2220
2259
|
if (A(t))
|
|
2221
2260
|
return t;
|
|
2222
2261
|
{
|
|
2223
|
-
const n =
|
|
2224
|
-
return
|
|
2262
|
+
const n = mo();
|
|
2263
|
+
return ho({
|
|
2225
2264
|
id: n,
|
|
2226
2265
|
canTrack: e
|
|
2227
2266
|
}), n;
|
|
2228
2267
|
}
|
|
2229
|
-
},
|
|
2268
|
+
}, mo = () => Fe(), ho = ({
|
|
2230
2269
|
id: e,
|
|
2231
2270
|
canTrack: t
|
|
2232
2271
|
}) => Ee({
|
|
2233
2272
|
name: Me,
|
|
2234
2273
|
value: e,
|
|
2235
2274
|
canTrack: t
|
|
2236
|
-
}), Le = () => v() && typeof localStorage < "u" ? localStorage : void 0,
|
|
2275
|
+
}), Le = () => v() && typeof localStorage < "u" ? localStorage : void 0, fo = ({
|
|
2237
2276
|
key: e,
|
|
2238
2277
|
canTrack: t
|
|
2239
2278
|
}) => {
|
|
@@ -2244,7 +2283,7 @@ const Me = "builderSessionId", ao = async ({
|
|
|
2244
2283
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2245
2284
|
return;
|
|
2246
2285
|
}
|
|
2247
|
-
},
|
|
2286
|
+
}, bo = ({
|
|
2248
2287
|
key: e,
|
|
2249
2288
|
canTrack: t,
|
|
2250
2289
|
value: n
|
|
@@ -2255,32 +2294,32 @@ const Me = "builderSessionId", ao = async ({
|
|
|
2255
2294
|
} catch (r) {
|
|
2256
2295
|
console.debug("[LocalStorage] SET error: ", r);
|
|
2257
2296
|
}
|
|
2258
|
-
}, He = "builderVisitorId",
|
|
2297
|
+
}, He = "builderVisitorId", go = ({
|
|
2259
2298
|
canTrack: e
|
|
2260
2299
|
}) => {
|
|
2261
2300
|
if (!e)
|
|
2262
2301
|
return;
|
|
2263
|
-
const t =
|
|
2302
|
+
const t = fo({
|
|
2264
2303
|
key: He,
|
|
2265
2304
|
canTrack: e
|
|
2266
2305
|
});
|
|
2267
2306
|
if (A(t))
|
|
2268
2307
|
return t;
|
|
2269
2308
|
{
|
|
2270
|
-
const n =
|
|
2271
|
-
return
|
|
2309
|
+
const n = ko();
|
|
2310
|
+
return yo({
|
|
2272
2311
|
id: n,
|
|
2273
2312
|
canTrack: e
|
|
2274
2313
|
}), n;
|
|
2275
2314
|
}
|
|
2276
|
-
},
|
|
2315
|
+
}, ko = () => Fe(), yo = ({
|
|
2277
2316
|
id: e,
|
|
2278
2317
|
canTrack: t
|
|
2279
|
-
}) =>
|
|
2318
|
+
}) => bo({
|
|
2280
2319
|
key: He,
|
|
2281
2320
|
value: e,
|
|
2282
2321
|
canTrack: t
|
|
2283
|
-
}),
|
|
2322
|
+
}), vo = async ({
|
|
2284
2323
|
canTrack: e
|
|
2285
2324
|
}) => {
|
|
2286
2325
|
if (!e)
|
|
@@ -2288,16 +2327,16 @@ const Me = "builderSessionId", ao = async ({
|
|
|
2288
2327
|
visitorId: void 0,
|
|
2289
2328
|
sessionId: void 0
|
|
2290
2329
|
};
|
|
2291
|
-
const t = await
|
|
2330
|
+
const t = await po({
|
|
2292
2331
|
canTrack: e
|
|
2293
|
-
}), n =
|
|
2332
|
+
}), n = go({
|
|
2294
2333
|
canTrack: e
|
|
2295
2334
|
});
|
|
2296
2335
|
return {
|
|
2297
2336
|
sessionId: t,
|
|
2298
2337
|
visitorId: n
|
|
2299
2338
|
};
|
|
2300
|
-
},
|
|
2339
|
+
}, So = async ({
|
|
2301
2340
|
type: e,
|
|
2302
2341
|
canTrack: t,
|
|
2303
2342
|
apiKey: n,
|
|
@@ -2311,23 +2350,23 @@ const Me = "builderSessionId", ao = async ({
|
|
|
2311
2350
|
url: location.href,
|
|
2312
2351
|
...o
|
|
2313
2352
|
},
|
|
2314
|
-
...await
|
|
2353
|
+
...await vo({
|
|
2315
2354
|
canTrack: t
|
|
2316
2355
|
}),
|
|
2317
2356
|
userAttributes: Ce(),
|
|
2318
2357
|
ownerId: n
|
|
2319
2358
|
}
|
|
2320
2359
|
});
|
|
2321
|
-
async function
|
|
2360
|
+
async function ee(e) {
|
|
2322
2361
|
if (!e.apiKey) {
|
|
2323
2362
|
I.error("Missing API key for track call. Please provide your API key.");
|
|
2324
2363
|
return;
|
|
2325
2364
|
}
|
|
2326
|
-
if (!!e.canTrack &&
|
|
2365
|
+
if (!!e.canTrack && !T() && !!(v() || E === "reactNative"))
|
|
2327
2366
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2328
2367
|
method: "POST",
|
|
2329
2368
|
body: JSON.stringify({
|
|
2330
|
-
events: [await
|
|
2369
|
+
events: [await So(e)]
|
|
2331
2370
|
}),
|
|
2332
2371
|
headers: {
|
|
2333
2372
|
"content-type": "application/json"
|
|
@@ -2337,14 +2376,14 @@ async function Z(e) {
|
|
|
2337
2376
|
console.error("Failed to track: ", t);
|
|
2338
2377
|
});
|
|
2339
2378
|
}
|
|
2340
|
-
const
|
|
2379
|
+
const nr = (e) => ee({
|
|
2341
2380
|
...e,
|
|
2342
2381
|
canTrack: !0
|
|
2343
2382
|
});
|
|
2344
2383
|
function me(e) {
|
|
2345
2384
|
return Math.round(e * 1e3) / 1e3;
|
|
2346
2385
|
}
|
|
2347
|
-
const
|
|
2386
|
+
const Co = (e, t, n = !0) => {
|
|
2348
2387
|
if (!(e instanceof HTMLElement))
|
|
2349
2388
|
return null;
|
|
2350
2389
|
let o = n ? e : e.parentElement;
|
|
@@ -2355,7 +2394,7 @@ const ko = (e, t, n = !0) => {
|
|
|
2355
2394
|
return o;
|
|
2356
2395
|
} while (o = o.parentElement);
|
|
2357
2396
|
return null;
|
|
2358
|
-
},
|
|
2397
|
+
}, wo = (e) => Co(e, (t) => {
|
|
2359
2398
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2360
2399
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2361
2400
|
}), he = ({
|
|
@@ -2367,8 +2406,8 @@ const ko = (e, t, n = !0) => {
|
|
|
2367
2406
|
x: i,
|
|
2368
2407
|
y: s
|
|
2369
2408
|
};
|
|
2370
|
-
},
|
|
2371
|
-
const t = e.target, n = t &&
|
|
2409
|
+
}, Io = (e) => {
|
|
2410
|
+
const t = e.target, n = t && wo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2372
2411
|
return {
|
|
2373
2412
|
targetBuilderElement: o || void 0,
|
|
2374
2413
|
metadata: {
|
|
@@ -2383,8 +2422,8 @@ const ko = (e, t, n = !0) => {
|
|
|
2383
2422
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2384
2423
|
}
|
|
2385
2424
|
};
|
|
2386
|
-
},
|
|
2387
|
-
function
|
|
2425
|
+
}, $o = "0.12.1", fe = {};
|
|
2426
|
+
function Ro(e, t) {
|
|
2388
2427
|
let n = fe[e];
|
|
2389
2428
|
if (n || (n = fe[e] = []), n.push(t), v()) {
|
|
2390
2429
|
const o = {
|
|
@@ -2401,8 +2440,8 @@ function Co(e, t) {
|
|
|
2401
2440
|
}
|
|
2402
2441
|
}
|
|
2403
2442
|
}
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2443
|
+
const To = () => {
|
|
2444
|
+
Ro("insertMenu", {
|
|
2406
2445
|
name: "_default",
|
|
2407
2446
|
default: !0,
|
|
2408
2447
|
items: [{
|
|
@@ -2425,13 +2464,13 @@ const wo = () => {
|
|
|
2425
2464
|
});
|
|
2426
2465
|
};
|
|
2427
2466
|
let be = !1;
|
|
2428
|
-
const
|
|
2467
|
+
const Eo = (e = {}) => {
|
|
2429
2468
|
var t, n;
|
|
2430
2469
|
be || (be = !0, v() && ((t = window.parent) == null || t.postMessage({
|
|
2431
2470
|
type: "builder.sdkInfo",
|
|
2432
2471
|
data: {
|
|
2433
|
-
target:
|
|
2434
|
-
version:
|
|
2472
|
+
target: E,
|
|
2473
|
+
version: $o,
|
|
2435
2474
|
supportsPatchUpdates: !1,
|
|
2436
2475
|
supportsAddBlockScoping: !0,
|
|
2437
2476
|
supportsCustomBreakpoints: !0
|
|
@@ -2452,8 +2491,8 @@ const Io = (e = {}) => {
|
|
|
2452
2491
|
let u, m = null;
|
|
2453
2492
|
try {
|
|
2454
2493
|
u = c.apply(null, a);
|
|
2455
|
-
} catch (
|
|
2456
|
-
m =
|
|
2494
|
+
} catch (b) {
|
|
2495
|
+
m = b;
|
|
2457
2496
|
}
|
|
2458
2497
|
m ? (r = window.parent) == null || r.postMessage({
|
|
2459
2498
|
type: "builder.evaluateError",
|
|
@@ -2461,13 +2500,13 @@ const Io = (e = {}) => {
|
|
|
2461
2500
|
id: l,
|
|
2462
2501
|
error: m.message
|
|
2463
2502
|
}
|
|
2464
|
-
}, "*") : u && typeof u.then == "function" ? u.then((
|
|
2465
|
-
var
|
|
2466
|
-
(
|
|
2503
|
+
}, "*") : u && typeof u.then == "function" ? u.then((b) => {
|
|
2504
|
+
var C;
|
|
2505
|
+
(C = window.parent) == null || C.postMessage({
|
|
2467
2506
|
type: "builder.evaluateResult",
|
|
2468
2507
|
data: {
|
|
2469
2508
|
id: l,
|
|
2470
|
-
result:
|
|
2509
|
+
result: b
|
|
2471
2510
|
}
|
|
2472
2511
|
}, "*");
|
|
2473
2512
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
@@ -2481,7 +2520,7 @@ const Io = (e = {}) => {
|
|
|
2481
2520
|
}
|
|
2482
2521
|
}
|
|
2483
2522
|
})));
|
|
2484
|
-
},
|
|
2523
|
+
}, Po = h({
|
|
2485
2524
|
name: "enable-editor",
|
|
2486
2525
|
props: [
|
|
2487
2526
|
"builderContextSignal",
|
|
@@ -2507,24 +2546,24 @@ const Io = (e = {}) => {
|
|
|
2507
2546
|
ContentWrapper: this.contentWrapper || "div",
|
|
2508
2547
|
httpReqsData: {},
|
|
2509
2548
|
clicked: !1,
|
|
2510
|
-
builderContext:
|
|
2549
|
+
builderContext: X
|
|
2511
2550
|
};
|
|
2512
2551
|
},
|
|
2513
2552
|
provide() {
|
|
2514
2553
|
const e = this;
|
|
2515
2554
|
return {
|
|
2516
|
-
[
|
|
2555
|
+
[X.key]: e.builderContextSignal
|
|
2517
2556
|
};
|
|
2518
2557
|
},
|
|
2519
2558
|
mounted() {
|
|
2520
2559
|
(() => {
|
|
2521
2560
|
var n, o;
|
|
2522
2561
|
if (v()) {
|
|
2523
|
-
if (
|
|
2562
|
+
if (T() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2524
2563
|
new CustomEvent("initeditingbldr")
|
|
2525
2564
|
), this.builderContextSignal.content && U(this.canTrack)) {
|
|
2526
2565
|
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
2527
|
-
|
|
2566
|
+
ee({
|
|
2528
2567
|
type: "impression",
|
|
2529
2568
|
canTrack: !0,
|
|
2530
2569
|
contentId: s,
|
|
@@ -2532,7 +2571,7 @@ const Io = (e = {}) => {
|
|
|
2532
2571
|
variationId: i !== s ? i : void 0
|
|
2533
2572
|
});
|
|
2534
2573
|
}
|
|
2535
|
-
|
|
2574
|
+
co() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2536
2575
|
new CustomEvent("initpreviewingbldr")
|
|
2537
2576
|
);
|
|
2538
2577
|
}
|
|
@@ -2694,13 +2733,13 @@ const Io = (e = {}) => {
|
|
|
2694
2733
|
var t, n;
|
|
2695
2734
|
if (this.builderContextSignal.content) {
|
|
2696
2735
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2697
|
-
|
|
2736
|
+
ee({
|
|
2698
2737
|
type: "click",
|
|
2699
2738
|
canTrack: U(this.canTrack),
|
|
2700
2739
|
contentId: r,
|
|
2701
2740
|
apiKey: this.apiKey,
|
|
2702
2741
|
variationId: o !== r ? o : void 0,
|
|
2703
|
-
...
|
|
2742
|
+
...Io(e),
|
|
2704
2743
|
unique: !this.clicked
|
|
2705
2744
|
});
|
|
2706
2745
|
}
|
|
@@ -2734,7 +2773,7 @@ const Io = (e = {}) => {
|
|
|
2734
2773
|
var t, n, o;
|
|
2735
2774
|
const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2736
2775
|
Object.entries(e).forEach(([r, i]) => {
|
|
2737
|
-
if (i && (!this.httpReqsData[r] ||
|
|
2776
|
+
if (i && (!this.httpReqsData[r] || T())) {
|
|
2738
2777
|
const s = this.evalExpression(i);
|
|
2739
2778
|
this.handleRequest({
|
|
2740
2779
|
url: s,
|
|
@@ -2744,7 +2783,7 @@ const Io = (e = {}) => {
|
|
|
2744
2783
|
});
|
|
2745
2784
|
},
|
|
2746
2785
|
emitStateUpdate() {
|
|
2747
|
-
|
|
2786
|
+
T() && window.dispatchEvent(
|
|
2748
2787
|
new CustomEvent(
|
|
2749
2788
|
"builder:component:stateChange",
|
|
2750
2789
|
{
|
|
@@ -2759,7 +2798,7 @@ const Io = (e = {}) => {
|
|
|
2759
2798
|
);
|
|
2760
2799
|
},
|
|
2761
2800
|
elementRef_onIniteditingbldr(e) {
|
|
2762
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
2801
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), To(), Eo({
|
|
2763
2802
|
...this.locale ? {
|
|
2764
2803
|
locale: this.locale
|
|
2765
2804
|
} : {},
|
|
@@ -2773,7 +2812,7 @@ const Io = (e = {}) => {
|
|
|
2773
2812
|
this.builderContextSignal.componentInfos
|
|
2774
2813
|
).forEach((t) => {
|
|
2775
2814
|
var o;
|
|
2776
|
-
const n =
|
|
2815
|
+
const n = Hn(t);
|
|
2777
2816
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
2778
2817
|
}), window.addEventListener(
|
|
2779
2818
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2784,7 +2823,7 @@ const Io = (e = {}) => {
|
|
|
2784
2823
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
2785
2824
|
`builder.preview.${n}`
|
|
2786
2825
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
2787
|
-
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) &&
|
|
2826
|
+
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && G({
|
|
2788
2827
|
model: this.model,
|
|
2789
2828
|
apiKey: this.apiKey,
|
|
2790
2829
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -2803,9 +2842,9 @@ const Io = (e = {}) => {
|
|
|
2803
2842
|
}
|
|
2804
2843
|
}
|
|
2805
2844
|
});
|
|
2806
|
-
function
|
|
2845
|
+
function xo(e, t, n, o, r, i) {
|
|
2807
2846
|
var s, a, l;
|
|
2808
|
-
return e.builderContextSignal.content ? (d(), y(ke(e.ContentWrapper),
|
|
2847
|
+
return e.builderContextSignal.content ? (d(), y(ke(e.ContentWrapper), S({
|
|
2809
2848
|
key: e.forceReRenderCount,
|
|
2810
2849
|
ref: "elementRef",
|
|
2811
2850
|
onClick: (c) => e.onClick(c),
|
|
@@ -2827,9 +2866,9 @@ function $o(e, t, n, o, r, i) {
|
|
|
2827
2866
|
x(e.$slots, "default")
|
|
2828
2867
|
]),
|
|
2829
2868
|
_: 3
|
|
2830
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
2869
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : k("v-if", !0);
|
|
2831
2870
|
}
|
|
2832
|
-
const
|
|
2871
|
+
const Bo = /* @__PURE__ */ f(Po, [["render", xo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), Wo = (e) => {
|
|
2833
2872
|
var i, s;
|
|
2834
2873
|
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;
|
|
2835
2874
|
let r = "";
|
|
@@ -2855,26 +2894,26 @@ font-weight: ${a};
|
|
|
2855
2894
|
`.trim());
|
|
2856
2895
|
}
|
|
2857
2896
|
return r;
|
|
2858
|
-
},
|
|
2897
|
+
}, Ao = ({
|
|
2859
2898
|
customFonts: e
|
|
2860
2899
|
}) => {
|
|
2861
2900
|
var t;
|
|
2862
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2863
|
-
},
|
|
2901
|
+
return ((t = e == null ? void 0 : e.map((n) => Wo(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2902
|
+
}, Vo = ({
|
|
2864
2903
|
cssCode: e,
|
|
2865
2904
|
contentId: t
|
|
2866
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2905
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", _o = h({
|
|
2867
2906
|
name: "content-styles",
|
|
2868
2907
|
components: { InlinedStyles: te },
|
|
2869
2908
|
props: ["cssCode", "contentId", "customFonts"],
|
|
2870
2909
|
data() {
|
|
2871
2910
|
return {
|
|
2872
2911
|
injectedStyles: `
|
|
2873
|
-
${
|
|
2912
|
+
${Vo({
|
|
2874
2913
|
cssCode: this.cssCode,
|
|
2875
2914
|
contentId: this.contentId
|
|
2876
2915
|
})}
|
|
2877
|
-
${
|
|
2916
|
+
${Ao({
|
|
2878
2917
|
customFonts: this.customFonts
|
|
2879
2918
|
})}
|
|
2880
2919
|
|
|
@@ -2894,11 +2933,11 @@ ${Po({
|
|
|
2894
2933
|
};
|
|
2895
2934
|
}
|
|
2896
2935
|
});
|
|
2897
|
-
function
|
|
2898
|
-
const s =
|
|
2936
|
+
function Oo(e, t, n, o, r, i) {
|
|
2937
|
+
const s = g("inlined-styles");
|
|
2899
2938
|
return d(), y(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
2900
2939
|
}
|
|
2901
|
-
const
|
|
2940
|
+
const No = /* @__PURE__ */ f(_o, [["render", Oo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), Uo = ({
|
|
2902
2941
|
content: e,
|
|
2903
2942
|
data: t,
|
|
2904
2943
|
locale: n
|
|
@@ -2915,7 +2954,7 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/
|
|
|
2915
2954
|
locale: n
|
|
2916
2955
|
} : {}
|
|
2917
2956
|
};
|
|
2918
|
-
},
|
|
2957
|
+
}, jo = ({
|
|
2919
2958
|
content: e,
|
|
2920
2959
|
data: t
|
|
2921
2960
|
}) => e ? {
|
|
@@ -2925,13 +2964,13 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/
|
|
|
2925
2964
|
...t
|
|
2926
2965
|
},
|
|
2927
2966
|
meta: e == null ? void 0 : e.meta
|
|
2928
|
-
} : void 0,
|
|
2967
|
+
} : void 0, Fo = ze, Mo = h({
|
|
2929
2968
|
name: "content-component",
|
|
2930
2969
|
components: {
|
|
2931
|
-
EnableEditor:
|
|
2970
|
+
EnableEditor: Bo,
|
|
2932
2971
|
InlinedScript: _e,
|
|
2933
|
-
ContentStyles:
|
|
2934
|
-
Blocks:
|
|
2972
|
+
ContentStyles: No,
|
|
2973
|
+
Blocks: q
|
|
2935
2974
|
},
|
|
2936
2975
|
props: [
|
|
2937
2976
|
"content",
|
|
@@ -2955,7 +2994,7 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/
|
|
|
2955
2994
|
data() {
|
|
2956
2995
|
var e, t;
|
|
2957
2996
|
return {
|
|
2958
|
-
scriptStr:
|
|
2997
|
+
scriptStr: Xn({
|
|
2959
2998
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
2960
2999
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
2961
3000
|
}),
|
|
@@ -2967,19 +3006,19 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/
|
|
|
2967
3006
|
(n, { component: o, ...r }) => ({
|
|
2968
3007
|
...n,
|
|
2969
3008
|
[r.name]: {
|
|
2970
|
-
component:
|
|
2971
|
-
...
|
|
3009
|
+
component: Fo(o),
|
|
3010
|
+
...Z(r)
|
|
2972
3011
|
}
|
|
2973
3012
|
}),
|
|
2974
3013
|
{}
|
|
2975
3014
|
),
|
|
2976
3015
|
builderContextSignal: {
|
|
2977
|
-
content:
|
|
3016
|
+
content: jo({
|
|
2978
3017
|
content: this.content,
|
|
2979
3018
|
data: this.data
|
|
2980
3019
|
}),
|
|
2981
3020
|
localState: void 0,
|
|
2982
|
-
rootState:
|
|
3021
|
+
rootState: Uo({
|
|
2983
3022
|
content: this.content,
|
|
2984
3023
|
data: this.data,
|
|
2985
3024
|
locale: this.locale
|
|
@@ -2995,7 +3034,7 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/
|
|
|
2995
3034
|
].reduce(
|
|
2996
3035
|
(n, { component: o, ...r }) => ({
|
|
2997
3036
|
...n,
|
|
2998
|
-
[r.name]:
|
|
3037
|
+
[r.name]: Z(r)
|
|
2999
3038
|
}),
|
|
3000
3039
|
{}
|
|
3001
3040
|
),
|
|
@@ -3003,7 +3042,7 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/
|
|
|
3003
3042
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
3004
3043
|
BlocksWrapperProps: this.blocksWrapperProps || {}
|
|
3005
3044
|
},
|
|
3006
|
-
TARGET:
|
|
3045
|
+
TARGET: E
|
|
3007
3046
|
};
|
|
3008
3047
|
},
|
|
3009
3048
|
provide() {
|
|
@@ -3020,9 +3059,9 @@ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/
|
|
|
3020
3059
|
}
|
|
3021
3060
|
}
|
|
3022
3061
|
});
|
|
3023
|
-
function
|
|
3024
|
-
const s =
|
|
3025
|
-
return d(), y(c,
|
|
3062
|
+
function Lo(e, t, n, o, r, i) {
|
|
3063
|
+
const s = g("inlined-script"), a = g("content-styles"), l = g("blocks"), c = g("enable-editor");
|
|
3064
|
+
return d(), y(c, S({
|
|
3026
3065
|
content: e.content,
|
|
3027
3066
|
data: e.data,
|
|
3028
3067
|
model: e.model,
|
|
@@ -3038,19 +3077,19 @@ function Uo(e, t, n, o, r, i) {
|
|
|
3038
3077
|
contentWrapperProps: e.contentWrapperProps
|
|
3039
3078
|
}, {}), {
|
|
3040
3079
|
default: j(() => {
|
|
3041
|
-
var u, m,
|
|
3080
|
+
var u, m, b, C, B, W, V;
|
|
3042
3081
|
return [
|
|
3043
3082
|
e.isSsrAbTest ? (d(), y(s, {
|
|
3044
3083
|
key: 0,
|
|
3045
3084
|
scriptStr: e.scriptStr
|
|
3046
|
-
}, null, 8, ["scriptStr"])) :
|
|
3085
|
+
}, null, 8, ["scriptStr"])) : k("v-if", !0),
|
|
3047
3086
|
e.TARGET !== "reactNative" ? (d(), y(a, {
|
|
3048
3087
|
key: 1,
|
|
3049
3088
|
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
3050
|
-
cssCode: (
|
|
3051
|
-
customFonts: (B = (
|
|
3052
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
3053
|
-
|
|
3089
|
+
cssCode: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.cssCode,
|
|
3090
|
+
customFonts: (B = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : B.customFonts
|
|
3091
|
+
}, null, 8, ["contentId", "cssCode", "customFonts"])) : k("v-if", !0),
|
|
3092
|
+
R(l, {
|
|
3054
3093
|
blocks: (V = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : V.blocks,
|
|
3055
3094
|
context: e.builderContextSignal,
|
|
3056
3095
|
registeredComponents: e.registeredComponents
|
|
@@ -3060,12 +3099,12 @@ function Uo(e, t, n, o, r, i) {
|
|
|
3060
3099
|
_: 1
|
|
3061
3100
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
|
|
3062
3101
|
}
|
|
3063
|
-
const
|
|
3102
|
+
const Ho = /* @__PURE__ */ f(Mo, [["render", Lo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Do = h({
|
|
3064
3103
|
name: "content-variants",
|
|
3065
3104
|
components: {
|
|
3066
3105
|
InlinedScript: _e,
|
|
3067
3106
|
InlinedStyles: te,
|
|
3068
|
-
ContentComponent:
|
|
3107
|
+
ContentComponent: Ho
|
|
3069
3108
|
},
|
|
3070
3109
|
props: [
|
|
3071
3110
|
"canTrack",
|
|
@@ -3087,12 +3126,12 @@ const jo = /* @__PURE__ */ b(No, [["render", Uo], ["__file", "/home/runner/work/
|
|
|
3087
3126
|
],
|
|
3088
3127
|
data() {
|
|
3089
3128
|
return {
|
|
3090
|
-
shouldRenderVariants:
|
|
3129
|
+
shouldRenderVariants: Gn({
|
|
3091
3130
|
canTrack: U(this.canTrack),
|
|
3092
3131
|
content: this.content
|
|
3093
3132
|
}),
|
|
3094
|
-
TARGET:
|
|
3095
|
-
getScriptString:
|
|
3133
|
+
TARGET: E,
|
|
3134
|
+
getScriptString: Yn,
|
|
3096
3135
|
getVariants: H
|
|
3097
3136
|
};
|
|
3098
3137
|
},
|
|
@@ -3102,7 +3141,7 @@ const jo = /* @__PURE__ */ b(No, [["render", Uo], ["__file", "/home/runner/work/
|
|
|
3102
3141
|
computed: {
|
|
3103
3142
|
updateCookieAndStylesScriptStr() {
|
|
3104
3143
|
var e;
|
|
3105
|
-
return
|
|
3144
|
+
return Qn(
|
|
3106
3145
|
H(this.content).map((t) => ({
|
|
3107
3146
|
id: t.testVariationId,
|
|
3108
3147
|
testRatio: t.testRatio
|
|
@@ -3125,21 +3164,21 @@ const jo = /* @__PURE__ */ b(No, [["render", Uo], ["__file", "/home/runner/work/
|
|
|
3125
3164
|
}
|
|
3126
3165
|
}
|
|
3127
3166
|
});
|
|
3128
|
-
function
|
|
3167
|
+
function Ko(e, t, n, o, r, i) {
|
|
3129
3168
|
var c;
|
|
3130
|
-
const s =
|
|
3131
|
-
return d(), p(
|
|
3169
|
+
const s = g("inlined-script"), a = g("inlined-styles"), l = g("content-component");
|
|
3170
|
+
return d(), p($, null, [
|
|
3132
3171
|
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), y(s, {
|
|
3133
3172
|
key: 0,
|
|
3134
3173
|
scriptStr: e.getScriptString()
|
|
3135
|
-
}, null, 8, ["scriptStr"])) :
|
|
3136
|
-
e.shouldRenderVariants ? (d(), p(
|
|
3137
|
-
|
|
3174
|
+
}, null, 8, ["scriptStr"])) : k("v-if", !0),
|
|
3175
|
+
e.shouldRenderVariants ? (d(), p($, { key: 1 }, [
|
|
3176
|
+
R(a, {
|
|
3138
3177
|
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3139
3178
|
styles: e.hideVariantsStyleString
|
|
3140
3179
|
}, null, 8, ["id", "styles"]),
|
|
3141
|
-
|
|
3142
|
-
(d(!0), p(
|
|
3180
|
+
R(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3181
|
+
(d(!0), p($, null, N(e.getVariants(e.content), (u, m) => (d(), y(l, {
|
|
3143
3182
|
key: u.testVariationId,
|
|
3144
3183
|
content: u,
|
|
3145
3184
|
showContent: !1,
|
|
@@ -3159,8 +3198,8 @@ function Mo(e, t, n, o, r, i) {
|
|
|
3159
3198
|
contentWrapper: e.contentWrapper,
|
|
3160
3199
|
contentWrapperProps: e.contentWrapperProps
|
|
3161
3200
|
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"]))), 128))
|
|
3162
|
-
], 64)) :
|
|
3163
|
-
|
|
3201
|
+
], 64)) : k("v-if", !0),
|
|
3202
|
+
R(l, S({
|
|
3164
3203
|
content: e.defaultContent,
|
|
3165
3204
|
showContent: !0,
|
|
3166
3205
|
model: e.model,
|
|
@@ -3183,12 +3222,12 @@ function Mo(e, t, n, o, r, i) {
|
|
|
3183
3222
|
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"])
|
|
3184
3223
|
], 64);
|
|
3185
3224
|
}
|
|
3186
|
-
const De = /* @__PURE__ */
|
|
3225
|
+
const De = /* @__PURE__ */ f(Do, [["render", Ko], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), zo = async ({
|
|
3187
3226
|
builderContextValue: e,
|
|
3188
3227
|
symbol: t
|
|
3189
3228
|
}) => {
|
|
3190
3229
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
3191
|
-
return
|
|
3230
|
+
return G({
|
|
3192
3231
|
model: t.model,
|
|
3193
3232
|
apiKey: e.apiKey,
|
|
3194
3233
|
apiVersion: e.apiVersion,
|
|
@@ -3200,7 +3239,7 @@ const De = /* @__PURE__ */ b(Fo, [["render", Mo], ["__file", "/home/runner/work/
|
|
|
3200
3239
|
}).catch((n) => {
|
|
3201
3240
|
I.error("Could not fetch symbol content: ", n);
|
|
3202
3241
|
});
|
|
3203
|
-
},
|
|
3242
|
+
}, qo = h({
|
|
3204
3243
|
name: "builder-symbol",
|
|
3205
3244
|
components: { ContentVariants: De },
|
|
3206
3245
|
props: [
|
|
@@ -3209,6 +3248,7 @@ const De = /* @__PURE__ */ b(Fo, [["render", Mo], ["__file", "/home/runner/work/
|
|
|
3209
3248
|
"symbol",
|
|
3210
3249
|
"dynamic",
|
|
3211
3250
|
"builderContext",
|
|
3251
|
+
"builderBlock",
|
|
3212
3252
|
"builderComponents"
|
|
3213
3253
|
],
|
|
3214
3254
|
data() {
|
|
@@ -3244,7 +3284,7 @@ const De = /* @__PURE__ */ b(Fo, [["render", Mo], ["__file", "/home/runner/work/
|
|
|
3244
3284
|
},
|
|
3245
3285
|
methods: {
|
|
3246
3286
|
setContent() {
|
|
3247
|
-
this.contentToUse ||
|
|
3287
|
+
this.contentToUse || zo({
|
|
3248
3288
|
symbol: this.symbol,
|
|
3249
3289
|
builderContextValue: this.builderContext
|
|
3250
3290
|
}).then((e) => {
|
|
@@ -3262,30 +3302,33 @@ const De = /* @__PURE__ */ b(Fo, [["render", Mo], ["__file", "/home/runner/work/
|
|
|
3262
3302
|
}
|
|
3263
3303
|
}
|
|
3264
3304
|
});
|
|
3265
|
-
function
|
|
3266
|
-
var a, l, c, u;
|
|
3267
|
-
const s =
|
|
3268
|
-
return d(), p("div",
|
|
3305
|
+
function Go(e, t, n, o, r, i) {
|
|
3306
|
+
var a, l, c, u, m;
|
|
3307
|
+
const s = g("content-variants");
|
|
3308
|
+
return d(), p("div", S({
|
|
3269
3309
|
class: e._classStringToObject(e.className)
|
|
3270
3310
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3271
|
-
|
|
3311
|
+
R(s, {
|
|
3272
3312
|
__isNestedRender: !0,
|
|
3273
3313
|
apiVersion: e.builderContext.apiVersion,
|
|
3274
3314
|
apiKey: e.builderContext.apiKey,
|
|
3275
|
-
context:
|
|
3315
|
+
context: {
|
|
3316
|
+
...e.builderContext.context,
|
|
3317
|
+
symbolId: (a = e.builderBlock) == null ? void 0 : a.id
|
|
3318
|
+
},
|
|
3276
3319
|
customComponents: Object.values(e.builderComponents),
|
|
3277
3320
|
data: {
|
|
3278
|
-
...(
|
|
3321
|
+
...(l = e.symbol) == null ? void 0 : l.data,
|
|
3279
3322
|
...e.builderContext.localState,
|
|
3280
|
-
...(
|
|
3323
|
+
...(u = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : u.state
|
|
3281
3324
|
},
|
|
3282
|
-
model: (
|
|
3325
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
3283
3326
|
content: e.contentToUse
|
|
3284
3327
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3285
3328
|
], 16);
|
|
3286
3329
|
}
|
|
3287
|
-
const
|
|
3288
|
-
function
|
|
3330
|
+
const Jo = /* @__PURE__ */ f(qo, [["render", Go], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), or = q, rr = De, ge = {};
|
|
3331
|
+
function ir(e) {
|
|
3289
3332
|
if (v()) {
|
|
3290
3333
|
Object.assign(ge, e);
|
|
3291
3334
|
const t = {
|
|
@@ -3295,7 +3338,7 @@ function tr(e) {
|
|
|
3295
3338
|
parent.postMessage(t, "*");
|
|
3296
3339
|
}
|
|
3297
3340
|
}
|
|
3298
|
-
const
|
|
3341
|
+
const sr = async (e) => {
|
|
3299
3342
|
var o, r, i;
|
|
3300
3343
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
3301
3344
|
...e,
|
|
@@ -3312,45 +3355,45 @@ const nr = async (e) => {
|
|
|
3312
3355
|
return {
|
|
3313
3356
|
apiKey: n.apiKey,
|
|
3314
3357
|
model: n.model,
|
|
3315
|
-
content: await
|
|
3358
|
+
content: await G(n)
|
|
3316
3359
|
};
|
|
3317
3360
|
};
|
|
3318
3361
|
export {
|
|
3319
|
-
|
|
3362
|
+
sr as A,
|
|
3320
3363
|
Ie as B,
|
|
3321
3364
|
De as C,
|
|
3322
|
-
|
|
3365
|
+
Xo as D,
|
|
3323
3366
|
Wt as F,
|
|
3324
3367
|
te as I,
|
|
3325
|
-
|
|
3368
|
+
or as R,
|
|
3326
3369
|
Ht as S,
|
|
3327
|
-
T,
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3370
|
+
E as T,
|
|
3371
|
+
Ln as V,
|
|
3372
|
+
f as _,
|
|
3373
|
+
Rt as a,
|
|
3374
|
+
Zo as b,
|
|
3332
3375
|
A as c,
|
|
3333
|
-
|
|
3376
|
+
X as d,
|
|
3334
3377
|
K as e,
|
|
3335
|
-
|
|
3378
|
+
q as f,
|
|
3336
3379
|
we as g,
|
|
3337
|
-
|
|
3380
|
+
rr as h,
|
|
3338
3381
|
Ye as i,
|
|
3339
3382
|
Pt as j,
|
|
3340
3383
|
Ft as k,
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3384
|
+
Jo as l,
|
|
3385
|
+
An as m,
|
|
3386
|
+
T as n,
|
|
3387
|
+
co as o,
|
|
3388
|
+
Hn as p,
|
|
3389
|
+
lo as q,
|
|
3390
|
+
Ro as r,
|
|
3391
|
+
ir as s,
|
|
3349
3392
|
je as t,
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3393
|
+
G as u,
|
|
3394
|
+
tr as v,
|
|
3395
|
+
Fo as w,
|
|
3396
|
+
er as x,
|
|
3354
3397
|
Ne as y,
|
|
3355
|
-
|
|
3398
|
+
nr as z
|
|
3356
3399
|
};
|