@builder.io/sdk-vue 0.5.6-0 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -20
- package/packages/_vue2/dist/block-styles.ac28ad89.js +78 -0
- package/packages/_vue2/dist/block-styles.d7a0bd18.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.4020c35e.cjs +1 -0
- package/packages/_vue2/dist/{block-wrapper-f852f3a4.js → block-wrapper.877d598e.js} +16 -19
- package/packages/_vue2/dist/block.03f6b1f1.cjs +3 -0
- package/packages/_vue2/dist/block.4db8867b.js +179 -0
- package/packages/_vue2/dist/{blocks-wrapper-87a5ef9b.cjs → blocks-wrapper.69dad1d3.cjs} +1 -1
- package/packages/_vue2/dist/{blocks-wrapper-98241c68.js → blocks-wrapper.88129f1c.js} +6 -6
- package/packages/_vue2/dist/component-ref.5beb6576.cjs +1 -0
- package/packages/_vue2/dist/{component-ref-47d34951.js → component-ref.ae6b00e2.js} +21 -29
- package/packages/_vue2/dist/content.4429d811.cjs +1 -0
- package/packages/_vue2/dist/{content-ab735937.js → content.d83d212f.js} +19 -36
- package/packages/_vue2/dist/{css-8b11bb6e.js → css.e33adaf0.js} +1 -1
- package/packages/_vue2/dist/{css-03a9ebe6.cjs → css.ec4684cd.cjs} +1 -1
- package/packages/_vue2/dist/{enable-editor-2d8d86f8.js → enable-editor.2a84c36c.js} +29 -35
- package/packages/_vue2/dist/enable-editor.7bbb8293.cjs +1 -0
- package/packages/_vue2/dist/evaluate.15b2ed56.js +79 -0
- package/packages/_vue2/dist/evaluate.eba0e0f9.cjs +4 -0
- package/packages/_vue2/dist/get-block-actions.1973b4d5.cjs +1 -0
- package/packages/_vue2/dist/get-block-actions.db2ac618.js +36 -0
- package/packages/_vue2/dist/{get-block-properties-f778ef2a.js → get-block-properties.322d544d.js} +2 -2
- package/packages/_vue2/dist/get-block-properties.ef1464fb.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.9d4edbee.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.c9980195.js +53 -0
- package/packages/_vue2/dist/index.0c5f9582.cjs +32 -0
- package/packages/_vue2/dist/{index-a089abc3.js → index.fc359faf.js} +173 -201
- package/packages/_vue2/dist/{inlined-script-5ac8fff7.js → inlined-script.1b247526.js} +1 -1
- package/packages/_vue2/dist/{inlined-script-73ce088c.cjs → inlined-script.3e92a79e.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-styles-3a327fbd.js → inlined-styles.32485f82.js} +1 -1
- package/packages/_vue2/dist/inlined-styles.f9ade1ef.cjs +1 -0
- package/packages/_vue2/dist/interactive-element.21050a26.cjs +1 -0
- package/packages/_vue2/dist/{interactive-element-2aec4d6f.js → interactive-element.c8119384.js} +10 -12
- package/packages/{_vue3/dist/non-node-runtime.45773de4.js → _vue2/dist/non-node-runtime.84ddb11a.js} +64 -62
- package/packages/_vue2/dist/non-node-runtime.ddd24d83.cjs +21 -0
- package/packages/_vue2/dist/{repeated-block-a0f25ac2.js → repeated-block.4fbd3217.js} +6 -6
- package/packages/_vue2/dist/repeated-block.f4f2b4be.cjs +1 -0
- package/packages/_vue2/dist/sdk.cjs +1 -0
- package/packages/_vue2/dist/sdk.js +29 -0
- package/packages/_vue2/dist/set.87eb0329.cjs +1 -0
- package/packages/_vue2/dist/set.b219ab0e.js +9 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +2 -5
- package/packages/_vue2/dist/src/components/block/block.vue.d.ts +4 -2
- package/packages/_vue2/dist/src/components/block/components/block-styles.vue.d.ts +0 -5
- package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +0 -3
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +2 -3
- package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +0 -5
- package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +8 -9
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +0 -1
- package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +0 -2
- package/packages/_vue2/dist/src/components/content-variants/content-variants.vue.d.ts +0 -3
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +7 -6
- package/packages/{_vue3/dist/src/functions/evaluate/node-runtime → _vue2/dist/src/functions/evaluate/non-node-runtime}/index.d.ts +2 -2
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +11 -0
- package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +3 -3
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -2
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +3 -3
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +3 -5
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +1 -1
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +3 -9
- package/packages/_vue2/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/src/types/builder-props.d.ts +3 -15
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue2/dist/{styles-183aeb6b.js → styles.29f558ce.js} +18 -18
- package/packages/_vue2/dist/{styles-6e2cbe10.cjs → styles.b060113b.cjs} +5 -5
- package/packages/_vue3/dist/{block-wrapper.5ca35adf.js → block-wrapper.0604faad.js} +2 -2
- package/packages/_vue3/dist/{block-wrapper.500b81ef.cjs → block-wrapper.759209a2.cjs} +1 -1
- package/packages/_vue3/dist/{component-ref.5764cdf2.js → component-ref.72a8476f.js} +2 -2
- package/packages/_vue3/dist/{component-ref.67d028bc.cjs → component-ref.cc553de5.cjs} +1 -1
- package/packages/_vue3/dist/{get-block-actions.0f635805.js → get-block-actions.0fc3b0b7.js} +1 -1
- package/packages/_vue3/dist/{get-block-actions.20d51d99.cjs → get-block-actions.b8fe4107.cjs} +1 -1
- package/packages/_vue3/dist/index.1bb7374b.cjs +72 -0
- package/packages/_vue3/dist/{index.f5a3101b.js → index.ebaa8c07.js} +521 -549
- package/packages/_vue3/dist/non-node-runtime.b16cf7b9.js +2476 -0
- package/packages/_vue3/dist/{non-node-runtime.c8fc465e.cjs → non-node-runtime.d7d010c9.cjs} +9 -9
- package/packages/_vue3/dist/{repeated-block.8ca9be30.cjs → repeated-block.115e1f66.cjs} +1 -1
- package/packages/_vue3/dist/{repeated-block.238616b4.js → repeated-block.ee20f5f0.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/evaluate/acorn-interpreter.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +5 -1
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
- package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +11 -0
- package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +3 -3
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +1 -1
- package/packages/_vue3/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/block-12099f71.js +0 -189
- package/packages/_vue2/dist/block-246063be.cjs +0 -3
- package/packages/_vue2/dist/block-styles-9360f05a.cjs +0 -1
- package/packages/_vue2/dist/block-styles-cfdd1b51.js +0 -79
- package/packages/_vue2/dist/block-wrapper-857a5d4f.cjs +0 -1
- package/packages/_vue2/dist/component-ref-b891d36b.cjs +0 -1
- package/packages/_vue2/dist/content-043dd197.cjs +0 -1
- package/packages/_vue2/dist/enable-editor-04399d8f.cjs +0 -1
- package/packages/_vue2/dist/evaluate-6a213bca.cjs +0 -1
- package/packages/_vue2/dist/evaluate-c9d68bff.js +0 -76
- package/packages/_vue2/dist/get-block-actions-2b1bc20b.cjs +0 -1
- package/packages/_vue2/dist/get-block-actions-75e52f20.js +0 -36
- package/packages/_vue2/dist/get-block-properties-0e241c2c.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block-41399170.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block-940605b2.js +0 -46
- package/packages/_vue2/dist/helpers-327ed263.js +0 -16
- package/packages/_vue2/dist/helpers-4efe31ac.cjs +0 -1
- package/packages/_vue2/dist/index-537704ba.cjs +0 -1
- package/packages/_vue2/dist/index-c1c356f8.cjs +0 -32
- package/packages/_vue2/dist/index-cc904f8c.js +0 -10
- package/packages/_vue2/dist/inlined-styles-1d50f193.cjs +0 -1
- package/packages/_vue2/dist/interactive-element-67792031.cjs +0 -1
- package/packages/_vue2/dist/main.cjs +0 -1
- package/packages/_vue2/dist/main.js +0 -29
- package/packages/_vue2/dist/node-runtime-25e8d976.js +0 -93
- package/packages/_vue2/dist/node-runtime-5a567c42.cjs +0 -39
- package/packages/_vue2/dist/repeated-block-5eb2f7c6.cjs +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue2/dist/src/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/packages/_vue3/dist/index.0db0f592.cjs +0 -69
- package/packages/_vue3/dist/node-runtime.ba895a23.cjs +0 -39
- package/packages/_vue3/dist/node-runtime.dc2f1f18.js +0 -93
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue3/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- /package/packages/_vue2/dist/{index.d.ts → sdk.d.ts} +0 -0
- /package/packages/{_vue3/dist/src/functions/evaluate/non-node-runtime → _vue2/dist/src/functions/evaluate}/acorn-interpreter.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as
|
|
1
|
+
import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as $, toHandlers as O, toDisplayString as oe, h as ye, resolveComponent as b, createBlock as S, createCommentVNode as v, defineAsyncComponent as _, Fragment as I, renderList as V, withCtx as Q, createVNode as P, normalizeProps as re, guardReactiveProps as De, renderSlot as j, createElementVNode as se, normalizeStyle as ie, normalizeClass as ke, markRaw as qe } from "vue";
|
|
2
2
|
function W(e = {}, t, n) {
|
|
3
3
|
const o = {};
|
|
4
4
|
for (const r in e) {
|
|
@@ -9,7 +9,7 @@ function W(e = {}, t, n) {
|
|
|
9
9
|
}
|
|
10
10
|
return o;
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const Ge = g({
|
|
13
13
|
name: "builder-button",
|
|
14
14
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
15
15
|
data() {
|
|
@@ -32,20 +32,20 @@ const y = (e, t) => {
|
|
|
32
32
|
for (const [o, r] of t)
|
|
33
33
|
n[o] = r;
|
|
34
34
|
return n;
|
|
35
|
-
},
|
|
36
|
-
function
|
|
37
|
-
return e.link ? (d(), p("a",
|
|
35
|
+
}, Je = ["href", "target"];
|
|
36
|
+
function Ye(e, t, n, o, r, i) {
|
|
37
|
+
return e.link ? (d(), p("a", $({
|
|
38
38
|
key: 0,
|
|
39
39
|
role: "button",
|
|
40
40
|
href: e.link,
|
|
41
41
|
target: e.openLinkInNewTab ? "_blank" : void 0
|
|
42
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
42
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), oe(e.text), 17, Je)) : (d(), p("button", $({
|
|
43
43
|
key: 1,
|
|
44
44
|
style: e.attributes.style,
|
|
45
45
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
46
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
46
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), oe(e.text), 17));
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Xe = /* @__PURE__ */ y(Ge, [["render", Ye], ["__scopeId", "data-v-ab4af752"]]), L = (e) => JSON.parse(JSON.stringify(e)), Se = {
|
|
49
49
|
small: {
|
|
50
50
|
min: 320,
|
|
51
51
|
default: 321,
|
|
@@ -61,11 +61,11 @@ const Qe = /* @__PURE__ */ y(Je, [["render", Xe], ["__scopeId", "data-v-ab4af752
|
|
|
61
61
|
default: 991,
|
|
62
62
|
max: 1200
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, ae = (e, t = Se) => `@media (max-width: ${t[e].max}px)`, ve = ({
|
|
65
65
|
small: e,
|
|
66
66
|
medium: t
|
|
67
67
|
}) => {
|
|
68
|
-
const n = L(
|
|
68
|
+
const n = L(Se);
|
|
69
69
|
if (!e || !t)
|
|
70
70
|
return n;
|
|
71
71
|
const o = Math.floor(e / 2);
|
|
@@ -86,119 +86,37 @@ const Qe = /* @__PURE__ */ y(Je, [["render", Xe], ["__scopeId", "data-v-ab4af752
|
|
|
86
86
|
min: i,
|
|
87
87
|
default: i + 1
|
|
88
88
|
}, n;
|
|
89
|
-
}, B = "vue3", F = "[Builder.io]: ",
|
|
89
|
+
}, B = "vue3", F = "[Builder.io]: ", T = {
|
|
90
90
|
log: (...e) => console.log(F, ...e),
|
|
91
91
|
error: (...e) => console.error(F, ...e),
|
|
92
92
|
warn: (...e) => console.warn(F, ...e),
|
|
93
93
|
debug: (...e) => console.debug(F, ...e)
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function C() {
|
|
96
96
|
return typeof window < "u" && typeof document < "u";
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function Qe() {
|
|
99
|
+
return C() && window.self !== window.top;
|
|
100
100
|
}
|
|
101
101
|
function A() {
|
|
102
|
-
return
|
|
102
|
+
return Qe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ce() {
|
|
105
105
|
const e = () => {
|
|
106
106
|
var t;
|
|
107
107
|
return typeof process < "u" && ((t = process == null ? void 0 : process.versions) == null ? void 0 : t.node);
|
|
108
108
|
};
|
|
109
|
-
return !
|
|
109
|
+
return !C() && !e();
|
|
110
110
|
}
|
|
111
111
|
let q;
|
|
112
|
-
|
|
112
|
+
Ce() && import("./non-node-runtime.b16cf7b9.js").then((e) => {
|
|
113
113
|
q = e.runInNonNode;
|
|
114
114
|
}).catch((e) => {
|
|
115
115
|
const t = "Error importing JS interpreter for non-Node.js runtimes. Make sure `js-interpreter` is installed.\n Read more here: https://github.com/BuilderIO/builder/tree/main/packages/sdks/README.md#non-nodejs-runtimes-edge-serverless\n ";
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
T.error(t, e), q = (...n) => {
|
|
117
|
+
T.error(t);
|
|
118
118
|
};
|
|
119
119
|
});
|
|
120
|
-
const et = () => {
|
|
121
|
-
if (S()) {
|
|
122
|
-
const e = new URL(location.href);
|
|
123
|
-
return e.pathname === "" && (e.pathname = "/"), e;
|
|
124
|
-
} else
|
|
125
|
-
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
126
|
-
}, tt = () => typeof navigator == "object" && navigator.userAgent || "", $e = () => {
|
|
127
|
-
const e = tt(), t = {
|
|
128
|
-
Android() {
|
|
129
|
-
return e.match(/Android/i);
|
|
130
|
-
},
|
|
131
|
-
BlackBerry() {
|
|
132
|
-
return e.match(/BlackBerry/i);
|
|
133
|
-
},
|
|
134
|
-
iOS() {
|
|
135
|
-
return e.match(/iPhone|iPod/i);
|
|
136
|
-
},
|
|
137
|
-
Opera() {
|
|
138
|
-
return e.match(/Opera Mini/i);
|
|
139
|
-
},
|
|
140
|
-
Windows() {
|
|
141
|
-
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
142
|
-
},
|
|
143
|
-
any() {
|
|
144
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || B === "reactNative";
|
|
145
|
-
}
|
|
146
|
-
}, n = e.match(/Tablet|iPad/i), o = et();
|
|
147
|
-
return {
|
|
148
|
-
urlPath: o == null ? void 0 : o.pathname,
|
|
149
|
-
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
150
|
-
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
let G;
|
|
154
|
-
!S() && !ee() && import("./node-runtime.dc2f1f18.js").then((e) => {
|
|
155
|
-
G = e.runInNode;
|
|
156
|
-
}).catch((e) => {
|
|
157
|
-
const t = "Error importing `isolated-vm` for Node.js runtimes. Make sure `isolated-vm` is installed.\n Read more here: https://github.com/BuilderIO/builder/tree/main/packages/sdks/README.md#non-nodejs-runtimes-edge-serverless\n ";
|
|
158
|
-
w.error(t, e), G = (...n) => {
|
|
159
|
-
w.error(t);
|
|
160
|
-
};
|
|
161
|
-
});
|
|
162
|
-
const nt = ({
|
|
163
|
-
builder: e,
|
|
164
|
-
context: t,
|
|
165
|
-
event: n,
|
|
166
|
-
state: o
|
|
167
|
-
}) => Object.entries({
|
|
168
|
-
state: o,
|
|
169
|
-
Builder: e,
|
|
170
|
-
builder: e,
|
|
171
|
-
context: t,
|
|
172
|
-
event: n
|
|
173
|
-
}), ot = ({
|
|
174
|
-
code: e,
|
|
175
|
-
builder: t,
|
|
176
|
-
context: n,
|
|
177
|
-
event: o,
|
|
178
|
-
localState: r,
|
|
179
|
-
rootSetState: i,
|
|
180
|
-
rootState: s
|
|
181
|
-
}) => {
|
|
182
|
-
const a = nt({
|
|
183
|
-
builder: t,
|
|
184
|
-
context: n,
|
|
185
|
-
event: o,
|
|
186
|
-
state: rt(s, r, i)
|
|
187
|
-
});
|
|
188
|
-
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
189
|
-
};
|
|
190
|
-
function rt(e, t, n) {
|
|
191
|
-
if (e === t)
|
|
192
|
-
throw new Error("rootState === localState");
|
|
193
|
-
return new Proxy(e, {
|
|
194
|
-
get: (o, r) => t && r in t ? t[r] : e[r],
|
|
195
|
-
set: (o, r, i) => {
|
|
196
|
-
if (t && r in t)
|
|
197
|
-
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
198
|
-
return e[r] = i, n == null || n(e), !0;
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
120
|
function M({
|
|
203
121
|
code: e,
|
|
204
122
|
context: t,
|
|
@@ -209,16 +127,15 @@ function M({
|
|
|
209
127
|
isExpression: s = !0
|
|
210
128
|
}) {
|
|
211
129
|
if (e === "") {
|
|
212
|
-
|
|
130
|
+
T.warn("Skipping evaluation of empty code block.");
|
|
213
131
|
return;
|
|
214
132
|
}
|
|
215
133
|
const a = {
|
|
216
134
|
isEditing: A(),
|
|
217
|
-
isBrowser:
|
|
218
|
-
isServer: !
|
|
219
|
-
getUserAttributes: () => $e()
|
|
135
|
+
isBrowser: C(),
|
|
136
|
+
isServer: !C()
|
|
220
137
|
}, u = {
|
|
221
|
-
|
|
138
|
+
useCode: s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
222
139
|
builder: a,
|
|
223
140
|
context: t,
|
|
224
141
|
event: i,
|
|
@@ -226,22 +143,46 @@ function M({
|
|
|
226
143
|
rootState: o,
|
|
227
144
|
localState: n
|
|
228
145
|
};
|
|
146
|
+
return C() ? we(u) : Ce() ? q(u) : Ze(u);
|
|
147
|
+
}
|
|
148
|
+
const we = ({
|
|
149
|
+
useCode: e,
|
|
150
|
+
builder: t,
|
|
151
|
+
context: n,
|
|
152
|
+
event: o,
|
|
153
|
+
localState: r,
|
|
154
|
+
rootSetState: i,
|
|
155
|
+
rootState: s
|
|
156
|
+
}) => {
|
|
157
|
+
const a = et(s, r, i);
|
|
229
158
|
try {
|
|
230
|
-
return
|
|
231
|
-
} catch (
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
159
|
+
return new Function("builder", "Builder", "state", "context", "event", e)(t, t, a, n, o);
|
|
160
|
+
} catch (l) {
|
|
161
|
+
T.warn(`Builder custom code error:
|
|
162
|
+
While Evaluating:
|
|
163
|
+
`, e, `
|
|
164
|
+
`, l);
|
|
236
165
|
}
|
|
166
|
+
}, Ze = (e) => we(e);
|
|
167
|
+
function et(e, t, n) {
|
|
168
|
+
if (e === t)
|
|
169
|
+
throw new Error("rootState === localState");
|
|
170
|
+
return new Proxy(e, {
|
|
171
|
+
get: (o, r) => t && r in t ? t[r] : e[r],
|
|
172
|
+
set: (o, r, i) => {
|
|
173
|
+
if (t && r in t)
|
|
174
|
+
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
175
|
+
return e[r] = i, n == null || n(e), !0;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
237
178
|
}
|
|
238
|
-
const
|
|
179
|
+
const tt = (e, t, n) => {
|
|
239
180
|
if (Object(e) !== e)
|
|
240
181
|
return e;
|
|
241
182
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
242
183
|
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;
|
|
243
184
|
};
|
|
244
|
-
const
|
|
185
|
+
const nt = ({
|
|
245
186
|
block: e,
|
|
246
187
|
context: t,
|
|
247
188
|
localState: n,
|
|
@@ -267,11 +208,11 @@ const it = ({
|
|
|
267
208
|
rootSetState: r,
|
|
268
209
|
context: t
|
|
269
210
|
});
|
|
270
|
-
|
|
211
|
+
tt(s, a, c);
|
|
271
212
|
}
|
|
272
213
|
return s;
|
|
273
214
|
};
|
|
274
|
-
function
|
|
215
|
+
function Z({
|
|
275
216
|
block: e,
|
|
276
217
|
context: t,
|
|
277
218
|
shouldEvaluateBindings: n,
|
|
@@ -280,7 +221,7 @@ function te({
|
|
|
280
221
|
rootSetState: i
|
|
281
222
|
}) {
|
|
282
223
|
const s = e;
|
|
283
|
-
return n ?
|
|
224
|
+
return n ? nt({
|
|
284
225
|
block: s,
|
|
285
226
|
localState: o,
|
|
286
227
|
rootState: r,
|
|
@@ -288,34 +229,34 @@ function te({
|
|
|
288
229
|
context: t
|
|
289
230
|
}) : s;
|
|
290
231
|
}
|
|
291
|
-
const
|
|
232
|
+
const ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e != null, rt = (e) => Object.entries(e).map(([n, o]) => {
|
|
292
233
|
if (typeof o == "string")
|
|
293
|
-
return `${
|
|
294
|
-
}).filter(E),
|
|
234
|
+
return `${ot(n)}: ${o};`;
|
|
235
|
+
}).filter(E), st = (e) => rt(e).join(`
|
|
295
236
|
`), z = ({
|
|
296
237
|
mediaQuery: e,
|
|
297
238
|
className: t,
|
|
298
239
|
styles: n
|
|
299
240
|
}) => {
|
|
300
241
|
const o = `.${t} {
|
|
301
|
-
${
|
|
242
|
+
${st(n)}
|
|
302
243
|
}`;
|
|
303
244
|
return e ? `${e} {
|
|
304
245
|
${o}
|
|
305
246
|
}` : o;
|
|
306
247
|
}, K = g({
|
|
307
248
|
render() {
|
|
308
|
-
return
|
|
249
|
+
return ye("style", { id: this.id, innerHTML: this.styles });
|
|
309
250
|
},
|
|
310
251
|
name: "inlined-styles",
|
|
311
252
|
props: ["styles", "id"]
|
|
312
|
-
}),
|
|
253
|
+
}), it = g({
|
|
313
254
|
name: "block-styles",
|
|
314
255
|
components: { InlinedStyles: K },
|
|
315
256
|
props: ["block", "context"],
|
|
316
257
|
data() {
|
|
317
258
|
return {
|
|
318
|
-
processedBlock:
|
|
259
|
+
processedBlock: Z({
|
|
319
260
|
block: this.block,
|
|
320
261
|
localState: this.context.localState,
|
|
321
262
|
rootState: this.context.rootState,
|
|
@@ -332,7 +273,7 @@ const at = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
|
|
|
332
273
|
},
|
|
333
274
|
css() {
|
|
334
275
|
var u;
|
|
335
|
-
const e = this.processedBlock.responsiveStyles, t = this.context.content, n =
|
|
276
|
+
const e = this.processedBlock.responsiveStyles, t = this.context.content, n = ve(
|
|
336
277
|
((u = t == null ? void 0 : t.meta) == null ? void 0 : u.breakpoints) || {}
|
|
337
278
|
), o = e == null ? void 0 : e.large, r = e == null ? void 0 : e.medium, i = e == null ? void 0 : e.small, s = this.processedBlock.id;
|
|
338
279
|
if (!s)
|
|
@@ -343,14 +284,14 @@ const at = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
|
|
|
343
284
|
}) : "", l = r ? z({
|
|
344
285
|
className: s,
|
|
345
286
|
styles: r,
|
|
346
|
-
mediaQuery:
|
|
287
|
+
mediaQuery: ae(
|
|
347
288
|
"medium",
|
|
348
289
|
n
|
|
349
290
|
)
|
|
350
291
|
}) : "", c = i ? z({
|
|
351
292
|
className: s,
|
|
352
293
|
styles: i,
|
|
353
|
-
mediaQuery:
|
|
294
|
+
mediaQuery: ae(
|
|
354
295
|
"small",
|
|
355
296
|
n
|
|
356
297
|
)
|
|
@@ -359,18 +300,18 @@ const at = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
|
|
|
359
300
|
}
|
|
360
301
|
}
|
|
361
302
|
});
|
|
362
|
-
function
|
|
303
|
+
function at(e, t, n, o, r, i) {
|
|
363
304
|
const s = b("inlined-styles");
|
|
364
|
-
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(),
|
|
305
|
+
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), S(s, {
|
|
365
306
|
key: 0,
|
|
366
307
|
styles: e.css
|
|
367
|
-
}, null, 8, ["styles"])) :
|
|
308
|
+
}, null, 8, ["styles"])) : v("", !0);
|
|
368
309
|
}
|
|
369
|
-
const
|
|
310
|
+
const $e = /* @__PURE__ */ y(it, [["render", at]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
370
311
|
__proto__: null,
|
|
371
|
-
default:
|
|
312
|
+
default: $e
|
|
372
313
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
373
|
-
function
|
|
314
|
+
function ct(e) {
|
|
374
315
|
var t;
|
|
375
316
|
return {
|
|
376
317
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -378,13 +319,13 @@ function mt(e) {
|
|
|
378
319
|
builderBlock: e
|
|
379
320
|
};
|
|
380
321
|
}
|
|
381
|
-
const
|
|
322
|
+
const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], ut = (e) => typeof e == "string" && dt.includes(e.toLowerCase()), pt = ({
|
|
382
323
|
block: e,
|
|
383
324
|
context: t,
|
|
384
325
|
registeredComponents: n
|
|
385
326
|
}) => {
|
|
386
327
|
var i;
|
|
387
|
-
const o = (i =
|
|
328
|
+
const o = (i = Z({
|
|
388
329
|
block: e,
|
|
389
330
|
localState: t.localState,
|
|
390
331
|
rootState: t.rootState,
|
|
@@ -400,7 +341,7 @@ const ht = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
400
341
|
console.warn(`
|
|
401
342
|
Could not find a registered component named "${o}".
|
|
402
343
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
403
|
-
},
|
|
344
|
+
}, mt = ({
|
|
404
345
|
block: e,
|
|
405
346
|
context: t
|
|
406
347
|
}) => {
|
|
@@ -433,54 +374,54 @@ const ht = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
433
374
|
},
|
|
434
375
|
block: o
|
|
435
376
|
}));
|
|
436
|
-
},
|
|
377
|
+
}, ht = () => Promise.resolve().then(() => lt).then((e) => e.default).catch((e) => {
|
|
437
378
|
throw console.error(
|
|
438
379
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
439
380
|
e
|
|
440
381
|
), e;
|
|
441
|
-
}),
|
|
382
|
+
}), ft = () => import("./repeated-block.ee20f5f0.js").then((e) => e.default).catch((e) => {
|
|
442
383
|
throw console.error(
|
|
443
384
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
444
385
|
e
|
|
445
386
|
), e;
|
|
446
|
-
}),
|
|
387
|
+
}), gt = () => import("./component-ref.72a8476f.js").then((e) => e.default).catch((e) => {
|
|
447
388
|
throw console.error(
|
|
448
389
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
449
390
|
e
|
|
450
391
|
), e;
|
|
451
|
-
}),
|
|
392
|
+
}), bt = () => import("./block-wrapper.0604faad.js").then((e) => e.default).catch((e) => {
|
|
452
393
|
throw console.error(
|
|
453
394
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
454
395
|
e
|
|
455
396
|
), e;
|
|
456
|
-
}),
|
|
397
|
+
}), yt = g({
|
|
457
398
|
name: "block",
|
|
458
399
|
components: {
|
|
459
|
-
ComponentRef: _(
|
|
460
|
-
BlockWrapper: _(
|
|
461
|
-
RepeatedBlock: _(
|
|
462
|
-
BlockStyles: _(
|
|
400
|
+
ComponentRef: _(gt),
|
|
401
|
+
BlockWrapper: _(bt),
|
|
402
|
+
RepeatedBlock: _(ft),
|
|
403
|
+
BlockStyles: _(ht)
|
|
463
404
|
},
|
|
464
405
|
props: ["block", "context", "registeredComponents"],
|
|
465
406
|
data() {
|
|
466
|
-
return { childrenContext: this.context, isEmptyHtmlElement:
|
|
407
|
+
return { childrenContext: this.context, isEmptyHtmlElement: ut };
|
|
467
408
|
},
|
|
468
409
|
computed: {
|
|
469
410
|
blockComponent() {
|
|
470
|
-
return
|
|
411
|
+
return pt({
|
|
471
412
|
block: this.block,
|
|
472
413
|
context: this.context,
|
|
473
414
|
registeredComponents: this.registeredComponents
|
|
474
415
|
});
|
|
475
416
|
},
|
|
476
417
|
repeatItem() {
|
|
477
|
-
return
|
|
418
|
+
return mt({
|
|
478
419
|
block: this.block,
|
|
479
420
|
context: this.context
|
|
480
421
|
});
|
|
481
422
|
},
|
|
482
423
|
processedBlock() {
|
|
483
|
-
return this.repeatItem ? this.block :
|
|
424
|
+
return this.repeatItem ? this.block : Z({
|
|
484
425
|
block: this.block,
|
|
485
426
|
localState: this.context.localState,
|
|
486
427
|
rootState: this.context.rootState,
|
|
@@ -505,7 +446,7 @@ const ht = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
505
446
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
506
447
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
507
448
|
componentOptions: {
|
|
508
|
-
...
|
|
449
|
+
...ct(this.processedBlock),
|
|
509
450
|
builderContext: this.context,
|
|
510
451
|
...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
|
|
511
452
|
builderComponents: this.registeredComponents
|
|
@@ -520,54 +461,54 @@ const ht = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
520
461
|
}
|
|
521
462
|
}
|
|
522
463
|
});
|
|
523
|
-
function
|
|
464
|
+
function kt(e, t, n, o, r, i) {
|
|
524
465
|
var h;
|
|
525
466
|
const s = b("block-wrapper"), a = b("repeated-block"), l = b("component-ref"), c = b("block", !0), u = b("block-styles");
|
|
526
467
|
return e.canShowBlock ? (d(), p(I, { key: 0 }, [
|
|
527
|
-
(h = e.blockComponent) != null && h.noWrap ? (d(),
|
|
528
|
-
e.isEmptyHtmlElement(e.Tag) ? (d(),
|
|
468
|
+
(h = e.blockComponent) != null && h.noWrap ? (d(), S(l, re($({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), p(I, { key: 0 }, [
|
|
469
|
+
e.isEmptyHtmlElement(e.Tag) ? (d(), S(s, {
|
|
529
470
|
key: 0,
|
|
530
471
|
Wrapper: e.Tag,
|
|
531
472
|
block: e.processedBlock,
|
|
532
473
|
context: e.context,
|
|
533
474
|
hasChildren: !1
|
|
534
|
-
}, null, 8, ["Wrapper", "block", "context"])) :
|
|
535
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p(I, { key: 1 }, V(e.repeatItem, (m, f) => (d(),
|
|
475
|
+
}, null, 8, ["Wrapper", "block", "context"])) : v("", !0),
|
|
476
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p(I, { key: 1 }, V(e.repeatItem, (m, f) => (d(), S(a, {
|
|
536
477
|
key: f,
|
|
537
478
|
repeatContext: m.context,
|
|
538
479
|
block: m.block,
|
|
539
480
|
registeredComponents: e.registeredComponents
|
|
540
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) :
|
|
541
|
-
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(),
|
|
481
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : v("", !0),
|
|
482
|
+
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), S(s, {
|
|
542
483
|
key: 2,
|
|
543
484
|
Wrapper: e.Tag,
|
|
544
485
|
block: e.processedBlock,
|
|
545
486
|
context: e.context,
|
|
546
487
|
hasChildren: !0
|
|
547
488
|
}, {
|
|
548
|
-
default:
|
|
549
|
-
P(l,
|
|
550
|
-
(d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(),
|
|
489
|
+
default: Q(() => [
|
|
490
|
+
P(l, re(De(e.componentRefProps)), null, 16),
|
|
491
|
+
(d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(), S(c, {
|
|
551
492
|
key: "block-" + m.id,
|
|
552
493
|
block: m,
|
|
553
494
|
context: e.childrenContext,
|
|
554
495
|
registeredComponents: e.registeredComponents
|
|
555
496
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
556
|
-
(d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(),
|
|
497
|
+
(d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(), S(u, {
|
|
557
498
|
key: "block-style-" + m.id,
|
|
558
499
|
block: m,
|
|
559
500
|
context: e.childrenContext
|
|
560
501
|
}, null, 8, ["block", "context"]))), 128))
|
|
561
502
|
]),
|
|
562
503
|
_: 1
|
|
563
|
-
}, 8, ["Wrapper", "block", "context"])) :
|
|
504
|
+
}, 8, ["Wrapper", "block", "context"])) : v("", !0)
|
|
564
505
|
], 64))
|
|
565
|
-
], 64)) :
|
|
506
|
+
], 64)) : v("", !0);
|
|
566
507
|
}
|
|
567
|
-
const
|
|
508
|
+
const Te = /* @__PURE__ */ y(yt, [["render", kt]]), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
568
509
|
__proto__: null,
|
|
569
|
-
default:
|
|
570
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
510
|
+
default: Te
|
|
511
|
+
}, Symbol.toStringTag, { value: "Module" })), St = g({
|
|
571
512
|
name: "builder-blocks-wrapper",
|
|
572
513
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
573
514
|
computed: {
|
|
@@ -614,9 +555,9 @@ const Ie = /* @__PURE__ */ y(Ct, [["render", wt]]), Go = /* @__PURE__ */ Object.
|
|
|
614
555
|
}
|
|
615
556
|
}
|
|
616
557
|
});
|
|
617
|
-
const
|
|
618
|
-
function
|
|
619
|
-
return d(), p("div",
|
|
558
|
+
const vt = ["builder-path", "builder-parent-id"];
|
|
559
|
+
function Ct(e, t, n, o, r, i) {
|
|
560
|
+
return d(), p("div", $({
|
|
620
561
|
class: e._classStringToObject(e.className + " div-178o76acnws"),
|
|
621
562
|
"builder-path": e.path,
|
|
622
563
|
"builder-parent-id": e.parent,
|
|
@@ -625,10 +566,10 @@ function It(e, t, n, o, r, i) {
|
|
|
625
566
|
onMouseenter: t[1] || (t[1] = (s) => e.onMouseEnter()),
|
|
626
567
|
onKeypress: t[2] || (t[2] = (s) => e.onClick())
|
|
627
568
|
}, {}), [
|
|
628
|
-
|
|
629
|
-
], 16,
|
|
569
|
+
j(e.$slots, "default", {}, void 0, !0)
|
|
570
|
+
], 16, vt);
|
|
630
571
|
}
|
|
631
|
-
const
|
|
572
|
+
const wt = /* @__PURE__ */ y(St, [["render", Ct], ["__scopeId", "data-v-4d6a880e"]]), $t = Symbol(), G = {
|
|
632
573
|
Builder: {
|
|
633
574
|
content: null,
|
|
634
575
|
context: {},
|
|
@@ -641,16 +582,16 @@ const Rt = /* @__PURE__ */ y($t, [["render", It], ["__scopeId", "data-v-4d6a880e
|
|
|
641
582
|
componentInfos: {},
|
|
642
583
|
inheritedStyles: {}
|
|
643
584
|
},
|
|
644
|
-
key:
|
|
645
|
-
},
|
|
585
|
+
key: $t
|
|
586
|
+
}, Tt = Symbol(), Ie = {
|
|
646
587
|
Components: { registeredComponents: {} },
|
|
647
|
-
key:
|
|
648
|
-
},
|
|
588
|
+
key: Tt
|
|
589
|
+
}, It = g({
|
|
649
590
|
name: "builder-blocks",
|
|
650
591
|
components: {
|
|
651
|
-
BlocksWrapper:
|
|
652
|
-
Block:
|
|
653
|
-
BlockStyles:
|
|
592
|
+
BlocksWrapper: wt,
|
|
593
|
+
Block: Te,
|
|
594
|
+
BlockStyles: $e
|
|
654
595
|
},
|
|
655
596
|
props: [
|
|
656
597
|
"blocks",
|
|
@@ -661,37 +602,37 @@ const Rt = /* @__PURE__ */ y($t, [["render", It], ["__scopeId", "data-v-4d6a880e
|
|
|
661
602
|
"registeredComponents"
|
|
662
603
|
],
|
|
663
604
|
inject: {
|
|
664
|
-
builderContext:
|
|
665
|
-
componentsContext:
|
|
605
|
+
builderContext: G.key,
|
|
606
|
+
componentsContext: Ie.key
|
|
666
607
|
}
|
|
667
608
|
});
|
|
668
|
-
function
|
|
609
|
+
function Rt(e, t, n, o, r, i) {
|
|
669
610
|
const s = b("block"), a = b("block-styles"), l = b("blocks-wrapper");
|
|
670
|
-
return d(),
|
|
611
|
+
return d(), S(l, {
|
|
671
612
|
blocks: e.blocks,
|
|
672
613
|
parent: e.parent,
|
|
673
614
|
path: e.path,
|
|
674
615
|
styleProp: e.styleProp
|
|
675
616
|
}, {
|
|
676
|
-
default:
|
|
677
|
-
e.blocks ? (d(!0), p(I, { key: 0 }, V(e.blocks, (c, u) => (d(),
|
|
617
|
+
default: Q(() => [
|
|
618
|
+
e.blocks ? (d(!0), p(I, { key: 0 }, V(e.blocks, (c, u) => (d(), S(s, {
|
|
678
619
|
key: "render-block-" + c.id,
|
|
679
620
|
block: c,
|
|
680
621
|
context: e.context || e.builderContext,
|
|
681
622
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
682
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) :
|
|
683
|
-
e.blocks ? (d(!0), p(I, { key: 1 }, V(e.blocks, (c, u) => (d(),
|
|
623
|
+
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : v("", !0),
|
|
624
|
+
e.blocks ? (d(!0), p(I, { key: 1 }, V(e.blocks, (c, u) => (d(), S(a, {
|
|
684
625
|
key: "block-style-" + c.id,
|
|
685
626
|
block: c,
|
|
686
627
|
context: e.context || e.builderContext
|
|
687
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
628
|
+
}, null, 8, ["block", "context"]))), 128)) : v("", !0)
|
|
688
629
|
]),
|
|
689
630
|
_: 1
|
|
690
631
|
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
691
632
|
}
|
|
692
|
-
const
|
|
633
|
+
const ee = /* @__PURE__ */ y(It, [["render", Rt]]), xt = g({
|
|
693
634
|
name: "builder-columns",
|
|
694
|
-
components: { InlinedStyles: K, Blocks:
|
|
635
|
+
components: { InlinedStyles: K, Blocks: ee },
|
|
695
636
|
props: [
|
|
696
637
|
"js",
|
|
697
638
|
"space",
|
|
@@ -795,7 +736,7 @@ const ne = /* @__PURE__ */ y(At, [["render", Bt]]), Vt = g({
|
|
|
795
736
|
},
|
|
796
737
|
getWidthForBreakpointSize(e) {
|
|
797
738
|
var n, o;
|
|
798
|
-
return
|
|
739
|
+
return ve(
|
|
799
740
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
800
741
|
)[e].max;
|
|
801
742
|
},
|
|
@@ -810,19 +751,19 @@ const ne = /* @__PURE__ */ y(At, [["render", Bt]]), Vt = g({
|
|
|
810
751
|
}
|
|
811
752
|
}
|
|
812
753
|
});
|
|
813
|
-
function
|
|
754
|
+
function Et(e, t, n, o, r, i) {
|
|
814
755
|
const s = b("inlined-styles"), a = b("blocks");
|
|
815
|
-
return d(), p("div",
|
|
756
|
+
return d(), p("div", $({
|
|
816
757
|
class: e._classStringToObject(
|
|
817
758
|
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
818
759
|
),
|
|
819
760
|
style: e.columnsCssVars
|
|
820
761
|
}, {}), [
|
|
821
|
-
e.TARGET !== "reactNative" ? (d(),
|
|
762
|
+
e.TARGET !== "reactNative" ? (d(), S(s, {
|
|
822
763
|
key: 0,
|
|
823
764
|
styles: e.columnsStyles
|
|
824
|
-
}, null, 8, ["styles"])) :
|
|
825
|
-
(d(!0), p(I, null, V(e.columns, (l, c) => (d(), p("div",
|
|
765
|
+
}, null, 8, ["styles"])) : v("", !0),
|
|
766
|
+
(d(!0), p(I, null, V(e.columns, (l, c) => (d(), p("div", $({
|
|
826
767
|
key: c,
|
|
827
768
|
class: "builder-column div-16nol0lwi20-2",
|
|
828
769
|
style: e.columnCssVars(c)
|
|
@@ -840,32 +781,32 @@ function Pt(e, t, n, o, r, i) {
|
|
|
840
781
|
], 16))), 128))
|
|
841
782
|
], 16);
|
|
842
783
|
}
|
|
843
|
-
const
|
|
784
|
+
const At = /* @__PURE__ */ y(xt, [["render", Et], ["__scopeId", "data-v-c37bdfa8"]]), Bt = g({
|
|
844
785
|
name: "builder-fragment-component",
|
|
845
786
|
props: []
|
|
846
787
|
});
|
|
847
|
-
function
|
|
788
|
+
function Vt(e, t, n, o, r, i) {
|
|
848
789
|
return d(), p("span", null, [
|
|
849
|
-
|
|
790
|
+
j(e.$slots, "default")
|
|
850
791
|
]);
|
|
851
792
|
}
|
|
852
|
-
const
|
|
853
|
-
function
|
|
793
|
+
const Pt = /* @__PURE__ */ y(Bt, [["render", Vt]]);
|
|
794
|
+
function le(e) {
|
|
854
795
|
return e.replace(/http(s)?:/, "");
|
|
855
796
|
}
|
|
856
|
-
function
|
|
797
|
+
function Nt(e = "", t, n) {
|
|
857
798
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
858
799
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
859
800
|
}
|
|
860
|
-
function
|
|
801
|
+
function jt(e, t) {
|
|
861
802
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
862
803
|
return e;
|
|
863
804
|
if (t === "master")
|
|
864
|
-
return
|
|
805
|
+
return le(e);
|
|
865
806
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
866
807
|
if (n) {
|
|
867
808
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
868
|
-
return
|
|
809
|
+
return le(`${o[0]}_${i}${r}`);
|
|
869
810
|
}
|
|
870
811
|
return null;
|
|
871
812
|
}
|
|
@@ -876,11 +817,11 @@ function D(e) {
|
|
|
876
817
|
if (e.match(/builder\.io/)) {
|
|
877
818
|
let n = e;
|
|
878
819
|
const o = Number(e.split("?width=")[1]);
|
|
879
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
820
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Nt(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
880
821
|
}
|
|
881
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
822
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
882
823
|
}
|
|
883
|
-
const
|
|
824
|
+
const Ot = g({
|
|
884
825
|
name: "builder-image",
|
|
885
826
|
props: [
|
|
886
827
|
"image",
|
|
@@ -936,29 +877,29 @@ const Mt = g({
|
|
|
936
877
|
}
|
|
937
878
|
}
|
|
938
879
|
});
|
|
939
|
-
const
|
|
880
|
+
const _t = ["srcset"], Ft = ["alt", "role", "src", "srcset", "sizes"], Ut = {
|
|
940
881
|
key: 2,
|
|
941
882
|
class: "div-1be3j8m9ewb-2"
|
|
942
883
|
};
|
|
943
|
-
function
|
|
884
|
+
function Mt(e, t, n, o, r, i) {
|
|
944
885
|
var s, a, l, c;
|
|
945
886
|
return d(), p(I, null, [
|
|
946
|
-
|
|
887
|
+
se("picture", null, [
|
|
947
888
|
e.webpSrcSet ? (d(), p("source", {
|
|
948
889
|
key: 0,
|
|
949
890
|
type: "image/webp",
|
|
950
891
|
srcset: e.webpSrcSet
|
|
951
|
-
}, null, 8,
|
|
952
|
-
|
|
892
|
+
}, null, 8, _t)) : v("", !0),
|
|
893
|
+
se("img", {
|
|
953
894
|
loading: "lazy",
|
|
954
895
|
alt: e.altText,
|
|
955
896
|
role: e.altText ? "presentation" : void 0,
|
|
956
|
-
style:
|
|
897
|
+
style: ie({
|
|
957
898
|
objectPosition: e.backgroundPosition || "center",
|
|
958
899
|
objectFit: e.backgroundSize || "cover",
|
|
959
900
|
...e.aspectRatioCss
|
|
960
901
|
}),
|
|
961
|
-
class:
|
|
902
|
+
class: ke(
|
|
962
903
|
e._classStringToObject(
|
|
963
904
|
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
964
905
|
)
|
|
@@ -966,30 +907,30 @@ function Ht(e, t, n, o, r, i) {
|
|
|
966
907
|
src: e.image,
|
|
967
908
|
srcset: e.srcSetToUse,
|
|
968
909
|
sizes: e.sizes
|
|
969
|
-
}, null, 14,
|
|
910
|
+
}, null, 14, Ft)
|
|
970
911
|
]),
|
|
971
912
|
e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
|
|
972
913
|
key: 0,
|
|
973
914
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
974
|
-
style:
|
|
915
|
+
style: ie({
|
|
975
916
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
976
917
|
})
|
|
977
|
-
}, null, 4)) :
|
|
978
|
-
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ?
|
|
979
|
-
!e.fitContent && e.$slots.default ? (d(), p("div",
|
|
980
|
-
|
|
981
|
-
])) :
|
|
918
|
+
}, null, 4)) : v("", !0),
|
|
919
|
+
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? j(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
|
|
920
|
+
!e.fitContent && e.$slots.default ? (d(), p("div", Ut, [
|
|
921
|
+
j(e.$slots, "default", {}, void 0, !0)
|
|
922
|
+
])) : v("", !0)
|
|
982
923
|
], 64);
|
|
983
924
|
}
|
|
984
|
-
const
|
|
925
|
+
const Wt = /* @__PURE__ */ y(Ot, [["render", Mt], ["__scopeId", "data-v-22a5a139"]]), Lt = g({
|
|
985
926
|
name: "builder-section-component",
|
|
986
927
|
props: ["attributes", "maxWidth"],
|
|
987
928
|
data() {
|
|
988
929
|
return { filterAttrs: W };
|
|
989
930
|
}
|
|
990
931
|
});
|
|
991
|
-
function
|
|
992
|
-
return d(), p("section",
|
|
932
|
+
function Kt(e, t, n, o, r, i) {
|
|
933
|
+
return d(), p("section", $({
|
|
993
934
|
style: {
|
|
994
935
|
width: "100%",
|
|
995
936
|
alignSelf: "stretch",
|
|
@@ -1002,37 +943,37 @@ function qt(e, t, n, o, r, i) {
|
|
|
1002
943
|
marginLeft: "auto",
|
|
1003
944
|
marginRight: "auto"
|
|
1004
945
|
}
|
|
1005
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1006
|
-
|
|
946
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
947
|
+
j(e.$slots, "default")
|
|
1007
948
|
], 16);
|
|
1008
949
|
}
|
|
1009
|
-
const
|
|
950
|
+
const Ht = /* @__PURE__ */ y(Lt, [["render", Kt]]), U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
1010
951
|
...t,
|
|
1011
952
|
testVariationId: t.id,
|
|
1012
953
|
id: e == null ? void 0 : e.id
|
|
1013
|
-
})),
|
|
954
|
+
})), zt = ({
|
|
1014
955
|
canTrack: e,
|
|
1015
956
|
content: t
|
|
1016
957
|
}) => !(!(U(t).length > 0) || !e);
|
|
1017
|
-
function
|
|
958
|
+
function Dt(e, t, n) {
|
|
1018
959
|
var s;
|
|
1019
960
|
function o() {
|
|
1020
|
-
function a(k,
|
|
961
|
+
function a(k, w, x) {
|
|
1021
962
|
let N = "";
|
|
1022
963
|
if (x) {
|
|
1023
964
|
const R = new Date();
|
|
1024
965
|
R.setTime(R.getTime() + x * 24 * 60 * 60 * 1e3), N = "; expires=" + R.toUTCString();
|
|
1025
966
|
}
|
|
1026
|
-
document.cookie = k + "=" + (
|
|
967
|
+
document.cookie = k + "=" + (w || "") + N + "; path=/; Secure; SameSite=None";
|
|
1027
968
|
}
|
|
1028
969
|
function l(k) {
|
|
1029
|
-
const
|
|
970
|
+
const w = k + "=", x = document.cookie.split(";");
|
|
1030
971
|
for (let N = 0; N < x.length; N++) {
|
|
1031
972
|
let R = x[N];
|
|
1032
973
|
for (; R.charAt(0) === " "; )
|
|
1033
974
|
R = R.substring(1, R.length);
|
|
1034
|
-
if (R.indexOf(
|
|
1035
|
-
return R.substring(
|
|
975
|
+
if (R.indexOf(w) === 0)
|
|
976
|
+
return R.substring(w.length, R.length);
|
|
1036
977
|
}
|
|
1037
978
|
return null;
|
|
1038
979
|
}
|
|
@@ -1042,9 +983,9 @@ function Yt(e, t, n) {
|
|
|
1042
983
|
let m = 0;
|
|
1043
984
|
const f = Math.random();
|
|
1044
985
|
for (let k = 0; k < t.length; k++) {
|
|
1045
|
-
const
|
|
986
|
+
const w = t[k], x = w.testRatio;
|
|
1046
987
|
if (m += x, f < m)
|
|
1047
|
-
return a(c,
|
|
988
|
+
return a(c, w.id), w.id;
|
|
1048
989
|
}
|
|
1049
990
|
return a(c, e), e;
|
|
1050
991
|
}
|
|
@@ -1061,7 +1002,7 @@ function Yt(e, t, n) {
|
|
|
1061
1002
|
i.innerHTML = a;
|
|
1062
1003
|
}
|
|
1063
1004
|
}
|
|
1064
|
-
function
|
|
1005
|
+
function qt(e, t, n) {
|
|
1065
1006
|
var l;
|
|
1066
1007
|
if (!navigator.cookieEnabled)
|
|
1067
1008
|
return;
|
|
@@ -1086,18 +1027,18 @@ function Xt(e, t, n) {
|
|
|
1086
1027
|
return;
|
|
1087
1028
|
}
|
|
1088
1029
|
}
|
|
1089
|
-
const
|
|
1090
|
-
const e =
|
|
1030
|
+
const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builderIoAbTest", Ee = "builderIoRenderContent", Jt = () => {
|
|
1031
|
+
const e = Dt.toString().replace(/\s+/g, " "), t = qt.toString().replace(/\s+/g, " ");
|
|
1091
1032
|
return `
|
|
1092
|
-
window.${
|
|
1093
|
-
window.${
|
|
1033
|
+
window.${xe} = ${e}
|
|
1034
|
+
window.${Ee} = ${t}
|
|
1094
1035
|
`;
|
|
1095
|
-
},
|
|
1096
|
-
window.${
|
|
1036
|
+
}, Yt = (e, t) => `
|
|
1037
|
+
window.${xe}("${t}",${JSON.stringify(e)}, ${Re})`, Xt = ({
|
|
1097
1038
|
contentId: e,
|
|
1098
1039
|
variationId: t
|
|
1099
1040
|
}) => `
|
|
1100
|
-
window.${
|
|
1041
|
+
window.${Ee}("${t}", "${e}", ${Re})`, Qt = {
|
|
1101
1042
|
name: "Core:Button",
|
|
1102
1043
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1103
1044
|
defaultStyles: {
|
|
@@ -1129,7 +1070,7 @@ const Qt = (e) => e === "react" || e === "reactNative", xe = Qt(B), Ee = "builde
|
|
|
1129
1070
|
}],
|
|
1130
1071
|
static: !0,
|
|
1131
1072
|
noWrap: !0
|
|
1132
|
-
},
|
|
1073
|
+
}, Zt = {
|
|
1133
1074
|
name: "Columns",
|
|
1134
1075
|
isRSC: !0,
|
|
1135
1076
|
inputs: [{
|
|
@@ -1329,13 +1270,13 @@ const Qt = (e) => e === "react" || e === "reactNative", xe = Qt(B), Ee = "builde
|
|
|
1329
1270
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1330
1271
|
advanced: !0
|
|
1331
1272
|
}]
|
|
1332
|
-
},
|
|
1273
|
+
}, en = {
|
|
1333
1274
|
name: "Fragment",
|
|
1334
1275
|
static: !0,
|
|
1335
1276
|
hidden: !0,
|
|
1336
1277
|
canHaveChildren: !0,
|
|
1337
1278
|
noWrap: !0
|
|
1338
|
-
},
|
|
1279
|
+
}, tn = {
|
|
1339
1280
|
name: "Image",
|
|
1340
1281
|
static: !0,
|
|
1341
1282
|
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",
|
|
@@ -1435,7 +1376,7 @@ const Qt = (e) => e === "react" || e === "reactNative", xe = Qt(B), Ee = "builde
|
|
|
1435
1376
|
advanced: !0,
|
|
1436
1377
|
defaultValue: 0.7041
|
|
1437
1378
|
}]
|
|
1438
|
-
},
|
|
1379
|
+
}, nn = {
|
|
1439
1380
|
name: "Core:Section",
|
|
1440
1381
|
static: !0,
|
|
1441
1382
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1474,7 +1415,7 @@ const Qt = (e) => e === "react" || e === "reactNative", xe = Qt(B), Ee = "builde
|
|
|
1474
1415
|
}
|
|
1475
1416
|
}
|
|
1476
1417
|
}]
|
|
1477
|
-
},
|
|
1418
|
+
}, on = {
|
|
1478
1419
|
name: "Symbol",
|
|
1479
1420
|
noWrap: !0,
|
|
1480
1421
|
static: !0,
|
|
@@ -1507,7 +1448,7 @@ const Qt = (e) => e === "react" || e === "reactNative", xe = Qt(B), Ee = "builde
|
|
|
1507
1448
|
hideFromUI: !0,
|
|
1508
1449
|
type: "boolean"
|
|
1509
1450
|
}]
|
|
1510
|
-
},
|
|
1451
|
+
}, rn = {
|
|
1511
1452
|
name: "Text",
|
|
1512
1453
|
static: !0,
|
|
1513
1454
|
isRSC: !0,
|
|
@@ -1525,21 +1466,21 @@ const Qt = (e) => e === "react" || e === "reactNative", xe = Qt(B), Ee = "builde
|
|
|
1525
1466
|
height: "auto",
|
|
1526
1467
|
textAlign: "center"
|
|
1527
1468
|
}
|
|
1528
|
-
},
|
|
1469
|
+
}, sn = g({
|
|
1529
1470
|
name: "builder-text",
|
|
1530
1471
|
props: ["text"]
|
|
1531
|
-
}),
|
|
1532
|
-
function
|
|
1472
|
+
}), an = ["innerHTML"];
|
|
1473
|
+
function ln(e, t, n, o, r, i) {
|
|
1533
1474
|
var s;
|
|
1534
|
-
return d(), p("span",
|
|
1475
|
+
return d(), p("span", $({
|
|
1535
1476
|
class: "builder-text",
|
|
1536
1477
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
1537
1478
|
style: {
|
|
1538
1479
|
outline: "none"
|
|
1539
1480
|
}
|
|
1540
|
-
}, {}), null, 16,
|
|
1481
|
+
}, {}), null, 16, an);
|
|
1541
1482
|
}
|
|
1542
|
-
const
|
|
1483
|
+
const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
|
|
1543
1484
|
name: "Video",
|
|
1544
1485
|
canHaveChildren: !0,
|
|
1545
1486
|
defaultStyles: {
|
|
@@ -1620,7 +1561,7 @@ const mn = /* @__PURE__ */ y(dn, [["render", pn]]), hn = {
|
|
|
1620
1561
|
defaultValue: !0,
|
|
1621
1562
|
advanced: !0
|
|
1622
1563
|
}]
|
|
1623
|
-
},
|
|
1564
|
+
}, un = g({
|
|
1624
1565
|
name: "builder-video",
|
|
1625
1566
|
props: [
|
|
1626
1567
|
"autoPlay",
|
|
@@ -1662,10 +1603,10 @@ const mn = /* @__PURE__ */ y(dn, [["render", pn]]), hn = {
|
|
|
1662
1603
|
};
|
|
1663
1604
|
}
|
|
1664
1605
|
}
|
|
1665
|
-
}),
|
|
1666
|
-
function
|
|
1606
|
+
}), pn = ["preload", "src", "poster"];
|
|
1607
|
+
function mn(e, t, n, o, r, i) {
|
|
1667
1608
|
var s;
|
|
1668
|
-
return d(), p("video",
|
|
1609
|
+
return d(), p("video", $({
|
|
1669
1610
|
preload: e.preload || "metadata",
|
|
1670
1611
|
style: {
|
|
1671
1612
|
width: "100%",
|
|
@@ -1677,9 +1618,9 @@ function bn(e, t, n, o, r, i) {
|
|
|
1677
1618
|
},
|
|
1678
1619
|
src: e.video || "no-src",
|
|
1679
1620
|
poster: e.posterImage
|
|
1680
|
-
}, e.spreadProps), null, 16,
|
|
1621
|
+
}, e.spreadProps), null, 16, pn);
|
|
1681
1622
|
}
|
|
1682
|
-
const
|
|
1623
|
+
const hn = /* @__PURE__ */ y(un, [["render", mn]]), fn = {
|
|
1683
1624
|
name: "Embed",
|
|
1684
1625
|
static: !0,
|
|
1685
1626
|
inputs: [{
|
|
@@ -1704,7 +1645,7 @@ const yn = /* @__PURE__ */ y(fn, [["render", bn]]), kn = {
|
|
|
1704
1645
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1705
1646
|
hideFromUI: !0
|
|
1706
1647
|
}]
|
|
1707
|
-
},
|
|
1648
|
+
}, gn = ["text/javascript", "application/javascript", "application/ecmascript"], bn = (e) => gn.includes(e.type), yn = g({
|
|
1708
1649
|
name: "builder-embed",
|
|
1709
1650
|
props: ["content"],
|
|
1710
1651
|
data() {
|
|
@@ -1737,7 +1678,7 @@ const yn = /* @__PURE__ */ y(fn, [["render", bn]]), kn = {
|
|
|
1737
1678
|
this.scriptsInserted.push(n.src);
|
|
1738
1679
|
const o = document.createElement("script");
|
|
1739
1680
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1740
|
-
} else if (
|
|
1681
|
+
} else if (bn(n) && !this.scriptsRun.includes(n.innerText))
|
|
1741
1682
|
try {
|
|
1742
1683
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1743
1684
|
} catch (o) {
|
|
@@ -1746,15 +1687,15 @@ const yn = /* @__PURE__ */ y(fn, [["render", bn]]), kn = {
|
|
|
1746
1687
|
}
|
|
1747
1688
|
}
|
|
1748
1689
|
}
|
|
1749
|
-
}),
|
|
1750
|
-
function
|
|
1690
|
+
}), kn = ["innerHTML"];
|
|
1691
|
+
function Sn(e, t, n, o, r, i) {
|
|
1751
1692
|
return d(), p("div", {
|
|
1752
1693
|
class: "builder-embed",
|
|
1753
1694
|
ref: "elem",
|
|
1754
1695
|
innerHTML: e.content
|
|
1755
|
-
}, null, 8,
|
|
1696
|
+
}, null, 8, kn);
|
|
1756
1697
|
}
|
|
1757
|
-
const
|
|
1698
|
+
const vn = /* @__PURE__ */ y(yn, [["render", Sn]]), Cn = g({
|
|
1758
1699
|
name: "builder-img-component",
|
|
1759
1700
|
props: [
|
|
1760
1701
|
"backgroundSize",
|
|
@@ -1767,9 +1708,9 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", $n]]), In = g({
|
|
|
1767
1708
|
data() {
|
|
1768
1709
|
return { isEditing: A, filterAttrs: W };
|
|
1769
1710
|
}
|
|
1770
|
-
}),
|
|
1771
|
-
function
|
|
1772
|
-
return d(), p("img",
|
|
1711
|
+
}), wn = ["alt", "src"];
|
|
1712
|
+
function $n(e, t, n, o, r, i) {
|
|
1713
|
+
return d(), p("img", $({
|
|
1773
1714
|
style: {
|
|
1774
1715
|
objectFit: e.backgroundSize || "cover",
|
|
1775
1716
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -1777,9 +1718,9 @@ function xn(e, t, n, o, r, i) {
|
|
|
1777
1718
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1778
1719
|
alt: e.altText,
|
|
1779
1720
|
src: e.imgSrc || e.image
|
|
1780
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1721
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, wn);
|
|
1781
1722
|
}
|
|
1782
|
-
const
|
|
1723
|
+
const Tn = /* @__PURE__ */ y(Cn, [["render", $n]]), In = {
|
|
1783
1724
|
name: "Raw:Img",
|
|
1784
1725
|
hideFromInsertMenu: !0,
|
|
1785
1726
|
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",
|
|
@@ -1792,7 +1733,7 @@ const En = /* @__PURE__ */ y(In, [["render", xn]]), An = {
|
|
|
1792
1733
|
}],
|
|
1793
1734
|
noWrap: !0,
|
|
1794
1735
|
static: !0
|
|
1795
|
-
},
|
|
1736
|
+
}, Rn = g({
|
|
1796
1737
|
name: "builder-custom-code",
|
|
1797
1738
|
props: ["replaceNodes", "code"],
|
|
1798
1739
|
data() {
|
|
@@ -1839,19 +1780,19 @@ const En = /* @__PURE__ */ y(In, [["render", xn]]), An = {
|
|
|
1839
1780
|
return t;
|
|
1840
1781
|
}
|
|
1841
1782
|
}
|
|
1842
|
-
}),
|
|
1843
|
-
function
|
|
1783
|
+
}), xn = ["innerHTML"];
|
|
1784
|
+
function En(e, t, n, o, r, i) {
|
|
1844
1785
|
return d(), p("div", {
|
|
1845
1786
|
ref: "elem",
|
|
1846
|
-
class:
|
|
1787
|
+
class: ke(
|
|
1847
1788
|
e._classStringToObject(
|
|
1848
1789
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1849
1790
|
)
|
|
1850
1791
|
),
|
|
1851
1792
|
innerHTML: e.code
|
|
1852
|
-
}, null, 10,
|
|
1793
|
+
}, null, 10, xn);
|
|
1853
1794
|
}
|
|
1854
|
-
const
|
|
1795
|
+
const An = /* @__PURE__ */ y(Rn, [["render", En]]), Bn = {
|
|
1855
1796
|
name: "Custom Code",
|
|
1856
1797
|
static: !0,
|
|
1857
1798
|
requiredPermissions: ["editCode"],
|
|
@@ -1873,55 +1814,55 @@ const Nn = /* @__PURE__ */ y(Bn, [["render", Pn]]), On = {
|
|
|
1873
1814
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1874
1815
|
advanced: !0
|
|
1875
1816
|
}]
|
|
1876
|
-
},
|
|
1877
|
-
component:
|
|
1878
|
-
...
|
|
1817
|
+
}, ce = () => [{
|
|
1818
|
+
component: Xe,
|
|
1819
|
+
...Qt
|
|
1879
1820
|
}, {
|
|
1880
|
-
component:
|
|
1881
|
-
...
|
|
1821
|
+
component: At,
|
|
1822
|
+
...Zt
|
|
1882
1823
|
}, {
|
|
1883
|
-
component:
|
|
1884
|
-
...
|
|
1824
|
+
component: An,
|
|
1825
|
+
...Bn
|
|
1885
1826
|
}, {
|
|
1886
|
-
component:
|
|
1887
|
-
...
|
|
1827
|
+
component: vn,
|
|
1828
|
+
...fn
|
|
1888
1829
|
}, {
|
|
1889
|
-
component:
|
|
1890
|
-
...
|
|
1830
|
+
component: Pt,
|
|
1831
|
+
...en
|
|
1891
1832
|
}, {
|
|
1892
|
-
component:
|
|
1893
|
-
...
|
|
1833
|
+
component: Wt,
|
|
1834
|
+
...tn
|
|
1894
1835
|
}, {
|
|
1895
|
-
component:
|
|
1896
|
-
...
|
|
1836
|
+
component: Tn,
|
|
1837
|
+
...In
|
|
1897
1838
|
}, {
|
|
1898
|
-
component:
|
|
1899
|
-
...
|
|
1839
|
+
component: Ht,
|
|
1840
|
+
...nn
|
|
1900
1841
|
}, {
|
|
1901
|
-
component:
|
|
1902
|
-
...
|
|
1842
|
+
component: zo,
|
|
1843
|
+
...on
|
|
1903
1844
|
}, {
|
|
1904
|
-
component:
|
|
1905
|
-
...
|
|
1845
|
+
component: cn,
|
|
1846
|
+
...rn
|
|
1906
1847
|
}, {
|
|
1907
|
-
component:
|
|
1908
|
-
...
|
|
1909
|
-
}],
|
|
1848
|
+
component: hn,
|
|
1849
|
+
...dn
|
|
1850
|
+
}], de = [], Vn = (e) => ({
|
|
1910
1851
|
type: "builder.registerComponent",
|
|
1911
1852
|
data: e
|
|
1912
|
-
}),
|
|
1853
|
+
}), Pn = (e) => {
|
|
1913
1854
|
const t = e.toString().trim();
|
|
1914
1855
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1915
|
-
},
|
|
1856
|
+
}, Nn = (e) => typeof e == "function" ? Pn(e) : L(e), ue = ({
|
|
1916
1857
|
inputs: e,
|
|
1917
1858
|
...t
|
|
1918
1859
|
}) => ({
|
|
1919
1860
|
...L(t),
|
|
1920
1861
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
|
|
1921
1862
|
...o,
|
|
1922
|
-
[r]:
|
|
1863
|
+
[r]: Nn(i)
|
|
1923
1864
|
}), {}))
|
|
1924
|
-
}),
|
|
1865
|
+
}), jn = (e) => {
|
|
1925
1866
|
var i, s;
|
|
1926
1867
|
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;
|
|
1927
1868
|
let r = "";
|
|
@@ -1947,26 +1888,26 @@ font-weight: ${a};
|
|
|
1947
1888
|
`.trim());
|
|
1948
1889
|
}
|
|
1949
1890
|
return r;
|
|
1950
|
-
},
|
|
1891
|
+
}, On = ({
|
|
1951
1892
|
customFonts: e
|
|
1952
1893
|
}) => {
|
|
1953
1894
|
var t;
|
|
1954
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
1955
|
-
},
|
|
1895
|
+
return ((t = e == null ? void 0 : e.map((n) => jn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
1896
|
+
}, _n = ({
|
|
1956
1897
|
cssCode: e,
|
|
1957
1898
|
contentId: t
|
|
1958
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
1899
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Fn = g({
|
|
1959
1900
|
name: "content-styles",
|
|
1960
1901
|
components: { InlinedStyles: K },
|
|
1961
1902
|
props: ["cssCode", "contentId", "customFonts"],
|
|
1962
1903
|
data() {
|
|
1963
1904
|
return {
|
|
1964
1905
|
injectedStyles: `
|
|
1965
|
-
${
|
|
1906
|
+
${_n({
|
|
1966
1907
|
cssCode: this.cssCode,
|
|
1967
1908
|
contentId: this.contentId
|
|
1968
1909
|
})}
|
|
1969
|
-
${
|
|
1910
|
+
${On({
|
|
1970
1911
|
customFonts: this.customFonts
|
|
1971
1912
|
})}
|
|
1972
1913
|
|
|
@@ -1986,11 +1927,11 @@ ${Mn({
|
|
|
1986
1927
|
};
|
|
1987
1928
|
}
|
|
1988
1929
|
});
|
|
1989
|
-
function
|
|
1930
|
+
function Un(e, t, n, o, r, i) {
|
|
1990
1931
|
const s = b("inlined-styles");
|
|
1991
|
-
return d(),
|
|
1932
|
+
return d(), S(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
1992
1933
|
}
|
|
1993
|
-
const
|
|
1934
|
+
const Mn = /* @__PURE__ */ y(Fn, [["render", Un]]), Wn = ({
|
|
1994
1935
|
content: e,
|
|
1995
1936
|
data: t,
|
|
1996
1937
|
locale: n
|
|
@@ -2012,7 +1953,7 @@ const Hn = /* @__PURE__ */ y(Ln, [["render", Kn]]), zn = ({
|
|
|
2012
1953
|
...o,
|
|
2013
1954
|
...r
|
|
2014
1955
|
};
|
|
2015
|
-
},
|
|
1956
|
+
}, Ln = ({
|
|
2016
1957
|
content: e,
|
|
2017
1958
|
data: t
|
|
2018
1959
|
}) => e ? {
|
|
@@ -2023,22 +1964,22 @@ const Hn = /* @__PURE__ */ y(Ln, [["render", Kn]]), zn = ({
|
|
|
2023
1964
|
},
|
|
2024
1965
|
meta: e == null ? void 0 : e.meta
|
|
2025
1966
|
} : void 0;
|
|
2026
|
-
function
|
|
1967
|
+
function Kn() {
|
|
2027
1968
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2028
1969
|
}
|
|
2029
|
-
function
|
|
2030
|
-
const e =
|
|
1970
|
+
function Hn() {
|
|
1971
|
+
const e = Kn().fetch;
|
|
2031
1972
|
if (typeof e > "u")
|
|
2032
1973
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2033
1974
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2034
1975
|
return e;
|
|
2035
1976
|
}
|
|
2036
|
-
const
|
|
1977
|
+
const Ae = Hn(), zn = (e) => {
|
|
2037
1978
|
if (e === "localhost" || e === "127.0.0.1")
|
|
2038
1979
|
return e;
|
|
2039
1980
|
const t = e.split(".");
|
|
2040
1981
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
2041
|
-
},
|
|
1982
|
+
}, Be = ({
|
|
2042
1983
|
name: e,
|
|
2043
1984
|
canTrack: t
|
|
2044
1985
|
}) => {
|
|
@@ -2046,17 +1987,17 @@ const Be = Gn(), Jn = (e) => {
|
|
|
2046
1987
|
try {
|
|
2047
1988
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
2048
1989
|
} catch (o) {
|
|
2049
|
-
|
|
1990
|
+
T.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
2050
1991
|
return;
|
|
2051
1992
|
}
|
|
2052
|
-
},
|
|
1993
|
+
}, Ve = async (e) => Be(e), Dn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(E).join("; "), qn = [["secure", ""], ["SameSite", "None"]], Gn = ({
|
|
2053
1994
|
name: e,
|
|
2054
1995
|
value: t,
|
|
2055
1996
|
expires: n
|
|
2056
1997
|
}) => {
|
|
2057
|
-
const r = (
|
|
2058
|
-
return
|
|
2059
|
-
},
|
|
1998
|
+
const r = (C() ? location.protocol === "https:" : !0) ? qn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", zn(window.location.hostname)], ...r];
|
|
1999
|
+
return Dn(s);
|
|
2000
|
+
}, Pe = async ({
|
|
2060
2001
|
name: e,
|
|
2061
2002
|
value: t,
|
|
2062
2003
|
expires: n,
|
|
@@ -2065,98 +2006,130 @@ const Be = Gn(), Jn = (e) => {
|
|
|
2065
2006
|
try {
|
|
2066
2007
|
if (!o)
|
|
2067
2008
|
return;
|
|
2068
|
-
const r =
|
|
2009
|
+
const r = Gn({
|
|
2069
2010
|
name: e,
|
|
2070
2011
|
value: t,
|
|
2071
2012
|
expires: n
|
|
2072
2013
|
});
|
|
2073
2014
|
document.cookie = r;
|
|
2074
2015
|
} catch (r) {
|
|
2075
|
-
|
|
2016
|
+
T.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
2076
2017
|
}
|
|
2077
2018
|
};
|
|
2078
|
-
function
|
|
2019
|
+
function Jn() {
|
|
2079
2020
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2080
2021
|
const t = Math.random() * 16 | 0;
|
|
2081
2022
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2082
2023
|
});
|
|
2083
2024
|
}
|
|
2084
|
-
function
|
|
2085
|
-
return
|
|
2025
|
+
function Ne() {
|
|
2026
|
+
return Jn().replace(/-/g, "");
|
|
2086
2027
|
}
|
|
2087
|
-
const je = "builderSessionId",
|
|
2028
|
+
const je = "builderSessionId", Yn = async ({
|
|
2088
2029
|
canTrack: e
|
|
2089
2030
|
}) => {
|
|
2090
2031
|
if (!e)
|
|
2091
2032
|
return;
|
|
2092
|
-
const t = await
|
|
2033
|
+
const t = await Ve({
|
|
2093
2034
|
name: je,
|
|
2094
2035
|
canTrack: e
|
|
2095
2036
|
});
|
|
2096
2037
|
if (E(t))
|
|
2097
2038
|
return t;
|
|
2098
2039
|
{
|
|
2099
|
-
const n =
|
|
2100
|
-
return
|
|
2040
|
+
const n = Xn();
|
|
2041
|
+
return Qn({
|
|
2101
2042
|
id: n,
|
|
2102
2043
|
canTrack: e
|
|
2103
2044
|
}), n;
|
|
2104
2045
|
}
|
|
2105
|
-
},
|
|
2046
|
+
}, Xn = () => Ne(), Qn = ({
|
|
2106
2047
|
id: e,
|
|
2107
2048
|
canTrack: t
|
|
2108
|
-
}) =>
|
|
2049
|
+
}) => Pe({
|
|
2109
2050
|
name: je,
|
|
2110
2051
|
value: e,
|
|
2111
2052
|
canTrack: t
|
|
2112
|
-
}),
|
|
2053
|
+
}), Oe = () => C() && typeof localStorage < "u" ? localStorage : void 0, Zn = ({
|
|
2113
2054
|
key: e,
|
|
2114
2055
|
canTrack: t
|
|
2115
2056
|
}) => {
|
|
2116
2057
|
var n;
|
|
2117
2058
|
try {
|
|
2118
|
-
return t ? (n =
|
|
2059
|
+
return t ? (n = Oe()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2119
2060
|
} catch (o) {
|
|
2120
2061
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2121
2062
|
return;
|
|
2122
2063
|
}
|
|
2123
|
-
},
|
|
2064
|
+
}, eo = ({
|
|
2124
2065
|
key: e,
|
|
2125
2066
|
canTrack: t,
|
|
2126
2067
|
value: n
|
|
2127
2068
|
}) => {
|
|
2128
2069
|
var o;
|
|
2129
2070
|
try {
|
|
2130
|
-
t && ((o =
|
|
2071
|
+
t && ((o = Oe()) == null || o.setItem(e, n));
|
|
2131
2072
|
} catch (r) {
|
|
2132
2073
|
console.debug("[LocalStorage] SET error: ", r);
|
|
2133
2074
|
}
|
|
2134
|
-
},
|
|
2075
|
+
}, _e = "builderVisitorId", to = ({
|
|
2135
2076
|
canTrack: e
|
|
2136
2077
|
}) => {
|
|
2137
2078
|
if (!e)
|
|
2138
2079
|
return;
|
|
2139
|
-
const t =
|
|
2140
|
-
key:
|
|
2080
|
+
const t = Zn({
|
|
2081
|
+
key: _e,
|
|
2141
2082
|
canTrack: e
|
|
2142
2083
|
});
|
|
2143
2084
|
if (E(t))
|
|
2144
2085
|
return t;
|
|
2145
2086
|
{
|
|
2146
|
-
const n =
|
|
2147
|
-
return
|
|
2087
|
+
const n = no();
|
|
2088
|
+
return oo({
|
|
2148
2089
|
id: n,
|
|
2149
2090
|
canTrack: e
|
|
2150
2091
|
}), n;
|
|
2151
2092
|
}
|
|
2152
|
-
},
|
|
2093
|
+
}, no = () => Ne(), oo = ({
|
|
2153
2094
|
id: e,
|
|
2154
2095
|
canTrack: t
|
|
2155
|
-
}) =>
|
|
2156
|
-
key:
|
|
2096
|
+
}) => eo({
|
|
2097
|
+
key: _e,
|
|
2157
2098
|
value: e,
|
|
2158
2099
|
canTrack: t
|
|
2159
|
-
}),
|
|
2100
|
+
}), ro = () => {
|
|
2101
|
+
if (C()) {
|
|
2102
|
+
const e = new URL(location.href);
|
|
2103
|
+
return e.pathname === "" && (e.pathname = "/"), e;
|
|
2104
|
+
} else
|
|
2105
|
+
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
2106
|
+
}, so = () => typeof navigator == "object" && navigator.userAgent || "", io = () => {
|
|
2107
|
+
const e = so(), t = {
|
|
2108
|
+
Android() {
|
|
2109
|
+
return e.match(/Android/i);
|
|
2110
|
+
},
|
|
2111
|
+
BlackBerry() {
|
|
2112
|
+
return e.match(/BlackBerry/i);
|
|
2113
|
+
},
|
|
2114
|
+
iOS() {
|
|
2115
|
+
return e.match(/iPhone|iPod/i);
|
|
2116
|
+
},
|
|
2117
|
+
Opera() {
|
|
2118
|
+
return e.match(/Opera Mini/i);
|
|
2119
|
+
},
|
|
2120
|
+
Windows() {
|
|
2121
|
+
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
2122
|
+
},
|
|
2123
|
+
any() {
|
|
2124
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || B === "reactNative";
|
|
2125
|
+
}
|
|
2126
|
+
}, n = e.match(/Tablet|iPad/i), o = ro();
|
|
2127
|
+
return {
|
|
2128
|
+
urlPath: o == null ? void 0 : o.pathname,
|
|
2129
|
+
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
2130
|
+
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
2131
|
+
};
|
|
2132
|
+
}, ao = async ({
|
|
2160
2133
|
canTrack: e
|
|
2161
2134
|
}) => {
|
|
2162
2135
|
if (!e)
|
|
@@ -2164,16 +2137,16 @@ const je = "builderSessionId", eo = async ({
|
|
|
2164
2137
|
visitorId: void 0,
|
|
2165
2138
|
sessionId: void 0
|
|
2166
2139
|
};
|
|
2167
|
-
const t = await
|
|
2140
|
+
const t = await Yn({
|
|
2168
2141
|
canTrack: e
|
|
2169
|
-
}), n =
|
|
2142
|
+
}), n = to({
|
|
2170
2143
|
canTrack: e
|
|
2171
2144
|
});
|
|
2172
2145
|
return {
|
|
2173
2146
|
sessionId: t,
|
|
2174
2147
|
visitorId: n
|
|
2175
2148
|
};
|
|
2176
|
-
},
|
|
2149
|
+
}, lo = async ({
|
|
2177
2150
|
type: e,
|
|
2178
2151
|
canTrack: t,
|
|
2179
2152
|
apiKey: n,
|
|
@@ -2187,23 +2160,23 @@ const je = "builderSessionId", eo = async ({
|
|
|
2187
2160
|
url: location.href,
|
|
2188
2161
|
...o
|
|
2189
2162
|
},
|
|
2190
|
-
...await
|
|
2163
|
+
...await ao({
|
|
2191
2164
|
canTrack: t
|
|
2192
2165
|
}),
|
|
2193
|
-
userAttributes:
|
|
2166
|
+
userAttributes: io(),
|
|
2194
2167
|
ownerId: n
|
|
2195
2168
|
}
|
|
2196
2169
|
});
|
|
2197
|
-
async function
|
|
2170
|
+
async function J(e) {
|
|
2198
2171
|
if (!e.apiKey) {
|
|
2199
|
-
|
|
2172
|
+
T.error("Missing API key for track call. Please provide your API key.");
|
|
2200
2173
|
return;
|
|
2201
2174
|
}
|
|
2202
|
-
if (!!e.canTrack && !A() && !!(
|
|
2175
|
+
if (!!e.canTrack && !A() && !!(C() || B === "reactNative"))
|
|
2203
2176
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2204
2177
|
method: "POST",
|
|
2205
2178
|
body: JSON.stringify({
|
|
2206
|
-
events: [await
|
|
2179
|
+
events: [await lo(e)]
|
|
2207
2180
|
}),
|
|
2208
2181
|
headers: {
|
|
2209
2182
|
"content-type": "application/json"
|
|
@@ -2213,13 +2186,13 @@ async function Y(e) {
|
|
|
2213
2186
|
console.error("Failed to track: ", t);
|
|
2214
2187
|
});
|
|
2215
2188
|
}
|
|
2216
|
-
const
|
|
2189
|
+
const Go = (e) => J({
|
|
2217
2190
|
...e,
|
|
2218
2191
|
canTrack: !0
|
|
2219
|
-
}),
|
|
2220
|
-
function
|
|
2221
|
-
let n =
|
|
2222
|
-
if (n || (n =
|
|
2192
|
+
}), co = "0.5.6", pe = {};
|
|
2193
|
+
function uo(e, t) {
|
|
2194
|
+
let n = pe[e];
|
|
2195
|
+
if (n || (n = pe[e] = []), n.push(t), C()) {
|
|
2223
2196
|
const o = {
|
|
2224
2197
|
type: "builder.register",
|
|
2225
2198
|
data: {
|
|
@@ -2234,8 +2207,8 @@ function po(e, t) {
|
|
|
2234
2207
|
}
|
|
2235
2208
|
}
|
|
2236
2209
|
}
|
|
2237
|
-
const
|
|
2238
|
-
|
|
2210
|
+
const po = () => {
|
|
2211
|
+
uo("insertMenu", {
|
|
2239
2212
|
name: "_default",
|
|
2240
2213
|
default: !0,
|
|
2241
2214
|
items: [{
|
|
@@ -2257,14 +2230,14 @@ const mo = () => {
|
|
|
2257
2230
|
}]
|
|
2258
2231
|
});
|
|
2259
2232
|
};
|
|
2260
|
-
let
|
|
2261
|
-
const
|
|
2233
|
+
let me = !1;
|
|
2234
|
+
const mo = (e = {}) => {
|
|
2262
2235
|
var t, n;
|
|
2263
|
-
|
|
2236
|
+
me || (me = !0, C() && ((t = window.parent) == null || t.postMessage({
|
|
2264
2237
|
type: "builder.sdkInfo",
|
|
2265
2238
|
data: {
|
|
2266
2239
|
target: B,
|
|
2267
|
-
version:
|
|
2240
|
+
version: co,
|
|
2268
2241
|
supportsPatchUpdates: !1,
|
|
2269
2242
|
supportsAddBlockScoping: !0,
|
|
2270
2243
|
supportsCustomBreakpoints: !0
|
|
@@ -2315,10 +2288,10 @@ const ho = (e = {}) => {
|
|
|
2315
2288
|
}
|
|
2316
2289
|
})));
|
|
2317
2290
|
};
|
|
2318
|
-
function
|
|
2291
|
+
function he(e) {
|
|
2319
2292
|
return Math.round(e * 1e3) / 1e3;
|
|
2320
2293
|
}
|
|
2321
|
-
const
|
|
2294
|
+
const ho = (e, t, n = !0) => {
|
|
2322
2295
|
if (!(e instanceof HTMLElement))
|
|
2323
2296
|
return null;
|
|
2324
2297
|
let o = n ? e : e.parentElement;
|
|
@@ -2329,52 +2302,52 @@ const fo = (e, t, n = !0) => {
|
|
|
2329
2302
|
return o;
|
|
2330
2303
|
} while (o = o.parentElement);
|
|
2331
2304
|
return null;
|
|
2332
|
-
},
|
|
2305
|
+
}, fo = (e) => ho(e, (t) => {
|
|
2333
2306
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2334
2307
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2335
|
-
}),
|
|
2308
|
+
}), fe = ({
|
|
2336
2309
|
event: e,
|
|
2337
2310
|
target: t
|
|
2338
2311
|
}) => {
|
|
2339
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
2312
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = he(o / n.width), s = he(r / n.height);
|
|
2340
2313
|
return {
|
|
2341
2314
|
x: i,
|
|
2342
2315
|
y: s
|
|
2343
2316
|
};
|
|
2344
|
-
},
|
|
2345
|
-
const t = e.target, n = t &&
|
|
2317
|
+
}, go = (e) => {
|
|
2318
|
+
const t = e.target, n = t && fo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2346
2319
|
return {
|
|
2347
2320
|
targetBuilderElement: o || void 0,
|
|
2348
2321
|
metadata: {
|
|
2349
|
-
targetOffset: t ?
|
|
2322
|
+
targetOffset: t ? fe({
|
|
2350
2323
|
event: e,
|
|
2351
2324
|
target: t
|
|
2352
2325
|
}) : void 0,
|
|
2353
|
-
builderTargetOffset: n ?
|
|
2326
|
+
builderTargetOffset: n ? fe({
|
|
2354
2327
|
event: e,
|
|
2355
2328
|
target: n
|
|
2356
2329
|
}) : void 0,
|
|
2357
2330
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2358
2331
|
}
|
|
2359
2332
|
};
|
|
2360
|
-
},
|
|
2333
|
+
}, bo = "builder.tests", te = (e) => `${bo}.${e}`, yo = ({
|
|
2361
2334
|
contentId: e
|
|
2362
|
-
}) =>
|
|
2363
|
-
name:
|
|
2335
|
+
}) => Ve({
|
|
2336
|
+
name: te(e),
|
|
2364
2337
|
canTrack: !0
|
|
2365
|
-
}),
|
|
2338
|
+
}), ko = ({
|
|
2366
2339
|
contentId: e
|
|
2367
|
-
}) =>
|
|
2368
|
-
name:
|
|
2340
|
+
}) => Be({
|
|
2341
|
+
name: te(e),
|
|
2369
2342
|
canTrack: !0
|
|
2370
|
-
}),
|
|
2343
|
+
}), So = ({
|
|
2371
2344
|
contentId: e,
|
|
2372
2345
|
value: t
|
|
2373
|
-
}) =>
|
|
2374
|
-
name:
|
|
2346
|
+
}) => Pe({
|
|
2347
|
+
name: te(e),
|
|
2375
2348
|
value: t,
|
|
2376
2349
|
canTrack: !0
|
|
2377
|
-
}),
|
|
2350
|
+
}), Fe = (e) => E(e.id) && E(e.variations) && Object.keys(e.variations).length > 0, vo = ({
|
|
2378
2351
|
id: e,
|
|
2379
2352
|
variations: t
|
|
2380
2353
|
}) => {
|
|
@@ -2387,15 +2360,15 @@ const fo = (e, t, n = !0) => {
|
|
|
2387
2360
|
return i;
|
|
2388
2361
|
}
|
|
2389
2362
|
return e;
|
|
2390
|
-
},
|
|
2391
|
-
const t =
|
|
2392
|
-
return
|
|
2363
|
+
}, Ue = (e) => {
|
|
2364
|
+
const t = vo(e);
|
|
2365
|
+
return So({
|
|
2393
2366
|
contentId: e.id,
|
|
2394
2367
|
value: t
|
|
2395
2368
|
}).catch((n) => {
|
|
2396
|
-
|
|
2369
|
+
T.error("could not store A/B test variation: ", n);
|
|
2397
2370
|
}), t;
|
|
2398
|
-
},
|
|
2371
|
+
}, Me = ({
|
|
2399
2372
|
item: e,
|
|
2400
2373
|
testGroupId: t
|
|
2401
2374
|
}) => {
|
|
@@ -2408,7 +2381,7 @@ const fo = (e, t, n = !0) => {
|
|
|
2408
2381
|
testVariationId: n.id,
|
|
2409
2382
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
2410
2383
|
};
|
|
2411
|
-
},
|
|
2384
|
+
}, Co = ({
|
|
2412
2385
|
item: e,
|
|
2413
2386
|
canTrack: t
|
|
2414
2387
|
}) => {
|
|
@@ -2416,14 +2389,14 @@ const fo = (e, t, n = !0) => {
|
|
|
2416
2389
|
return e;
|
|
2417
2390
|
if (!e)
|
|
2418
2391
|
return;
|
|
2419
|
-
if (!
|
|
2392
|
+
if (!Fe(e))
|
|
2420
2393
|
return e;
|
|
2421
|
-
const n =
|
|
2394
|
+
const n = ko({
|
|
2422
2395
|
contentId: e.id
|
|
2423
|
-
}) ||
|
|
2396
|
+
}) || Ue({
|
|
2424
2397
|
variations: e.variations,
|
|
2425
2398
|
id: e.id
|
|
2426
|
-
}), o =
|
|
2399
|
+
}), o = Me({
|
|
2427
2400
|
item: e,
|
|
2428
2401
|
testGroupId: n
|
|
2429
2402
|
});
|
|
@@ -2431,18 +2404,18 @@ const fo = (e, t, n = !0) => {
|
|
|
2431
2404
|
...e,
|
|
2432
2405
|
...o
|
|
2433
2406
|
};
|
|
2434
|
-
},
|
|
2407
|
+
}, wo = async ({
|
|
2435
2408
|
item: e,
|
|
2436
2409
|
canTrack: t
|
|
2437
2410
|
}) => {
|
|
2438
|
-
if (!t || !
|
|
2411
|
+
if (!t || !Fe(e))
|
|
2439
2412
|
return e;
|
|
2440
|
-
const o = await
|
|
2413
|
+
const o = await yo({
|
|
2441
2414
|
contentId: e.id
|
|
2442
|
-
}) ||
|
|
2415
|
+
}) || Ue({
|
|
2443
2416
|
variations: e.variations,
|
|
2444
2417
|
id: e.id
|
|
2445
|
-
}), r =
|
|
2418
|
+
}), r = Me({
|
|
2446
2419
|
item: e,
|
|
2447
2420
|
testGroupId: o
|
|
2448
2421
|
});
|
|
@@ -2450,40 +2423,40 @@ const fo = (e, t, n = !0) => {
|
|
|
2450
2423
|
...e,
|
|
2451
2424
|
...r
|
|
2452
2425
|
};
|
|
2453
|
-
},
|
|
2454
|
-
function
|
|
2426
|
+
}, Y = (e) => E(e) ? e : !0;
|
|
2427
|
+
function X(e, t = null, n = ".") {
|
|
2455
2428
|
return Object.keys(e).reduce((o, r) => {
|
|
2456
2429
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
2457
2430
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
2458
2431
|
...o,
|
|
2459
|
-
...
|
|
2432
|
+
...X(i, s, n)
|
|
2460
2433
|
} : {
|
|
2461
2434
|
...o,
|
|
2462
2435
|
[s]: i
|
|
2463
2436
|
};
|
|
2464
2437
|
}, {});
|
|
2465
2438
|
}
|
|
2466
|
-
const
|
|
2439
|
+
const ge = "builder.", $o = "options.", To = (e) => {
|
|
2467
2440
|
const t = {};
|
|
2468
2441
|
return e.forEach((n, o) => {
|
|
2469
2442
|
t[o] = n;
|
|
2470
2443
|
}), t;
|
|
2471
|
-
},
|
|
2444
|
+
}, We = (e) => {
|
|
2472
2445
|
if (!e)
|
|
2473
2446
|
return {};
|
|
2474
|
-
const t =
|
|
2447
|
+
const t = Le(e), n = {};
|
|
2475
2448
|
return Object.keys(t).forEach((o) => {
|
|
2476
|
-
if (o.startsWith(
|
|
2477
|
-
const r = o.replace(
|
|
2449
|
+
if (o.startsWith(ge)) {
|
|
2450
|
+
const r = o.replace(ge, "").replace($o, "");
|
|
2478
2451
|
n[r] = t[o];
|
|
2479
2452
|
}
|
|
2480
2453
|
}), n;
|
|
2481
|
-
},
|
|
2482
|
-
if (!
|
|
2454
|
+
}, Io = () => {
|
|
2455
|
+
if (!C())
|
|
2483
2456
|
return {};
|
|
2484
2457
|
const e = new URLSearchParams(window.location.search);
|
|
2485
|
-
return
|
|
2486
|
-
},
|
|
2458
|
+
return We(e);
|
|
2459
|
+
}, Le = (e) => e instanceof URLSearchParams ? To(e) : e, Ro = "v3", ne = (e) => {
|
|
2487
2460
|
const {
|
|
2488
2461
|
limit: t = 30,
|
|
2489
2462
|
userAttributes: n,
|
|
@@ -2494,71 +2467,71 @@ const ye = "builder.", To = "options.", Io = (e) => {
|
|
|
2494
2467
|
includeRefs: a = !0,
|
|
2495
2468
|
enrich: l,
|
|
2496
2469
|
locale: c,
|
|
2497
|
-
apiVersion: u =
|
|
2470
|
+
apiVersion: u = Ro
|
|
2498
2471
|
} = e;
|
|
2499
2472
|
if (!s)
|
|
2500
2473
|
throw new Error("Missing API key");
|
|
2501
2474
|
if (!["v2", "v3"].includes(u))
|
|
2502
2475
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
2503
2476
|
const h = new URL(`https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${t}&noTraverse=${r}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`), m = {
|
|
2504
|
-
...
|
|
2505
|
-
...
|
|
2506
|
-
}, f =
|
|
2477
|
+
...Io(),
|
|
2478
|
+
...Le(e.options || {})
|
|
2479
|
+
}, f = X(m);
|
|
2507
2480
|
for (const k in f)
|
|
2508
2481
|
h.searchParams.set(k, String(f[k]));
|
|
2509
2482
|
if (n && h.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
2510
|
-
const k =
|
|
2483
|
+
const k = X({
|
|
2511
2484
|
query: o
|
|
2512
2485
|
});
|
|
2513
|
-
for (const
|
|
2514
|
-
h.searchParams.set(
|
|
2486
|
+
for (const w in k)
|
|
2487
|
+
h.searchParams.set(w, JSON.stringify(k[w]));
|
|
2515
2488
|
}
|
|
2516
2489
|
return h;
|
|
2517
|
-
},
|
|
2490
|
+
}, xo = (e) => "results" in e;
|
|
2518
2491
|
async function H(e) {
|
|
2519
|
-
const t = await
|
|
2492
|
+
const t = await Ke({
|
|
2520
2493
|
...e,
|
|
2521
2494
|
limit: 1
|
|
2522
2495
|
});
|
|
2523
2496
|
return t && t.results[0] || null;
|
|
2524
2497
|
}
|
|
2525
|
-
const
|
|
2526
|
-
const t =
|
|
2527
|
-
return await (await
|
|
2528
|
-
},
|
|
2529
|
-
const o =
|
|
2530
|
-
if (n.search.includes("preview="), !o || !(
|
|
2498
|
+
const Jo = H, Eo = async (e) => {
|
|
2499
|
+
const t = ne(e);
|
|
2500
|
+
return await (await Ae(t.href)).json();
|
|
2501
|
+
}, Ao = async (e, t, n = ne(e)) => {
|
|
2502
|
+
const o = Y(e.canTrack);
|
|
2503
|
+
if (n.search.includes("preview="), !o || !(C() || B === "reactNative"))
|
|
2531
2504
|
return t;
|
|
2532
2505
|
try {
|
|
2533
2506
|
const r = [];
|
|
2534
2507
|
for (const i of t.results)
|
|
2535
|
-
r.push(await
|
|
2508
|
+
r.push(await wo({
|
|
2536
2509
|
item: i,
|
|
2537
2510
|
canTrack: o
|
|
2538
2511
|
}));
|
|
2539
2512
|
t.results = r;
|
|
2540
2513
|
} catch (r) {
|
|
2541
|
-
|
|
2514
|
+
T.error("Could not process A/B tests. ", r);
|
|
2542
2515
|
}
|
|
2543
2516
|
return t;
|
|
2544
2517
|
};
|
|
2545
|
-
async function
|
|
2518
|
+
async function Ke(e) {
|
|
2546
2519
|
try {
|
|
2547
|
-
const t =
|
|
2548
|
-
return
|
|
2520
|
+
const t = ne(e), n = await Eo(e);
|
|
2521
|
+
return xo(n) ? Ao(e, n) : (T.error("Error fetching data. ", {
|
|
2549
2522
|
url: t,
|
|
2550
2523
|
content: n,
|
|
2551
2524
|
options: e
|
|
2552
2525
|
}), null);
|
|
2553
2526
|
} catch (t) {
|
|
2554
|
-
return
|
|
2527
|
+
return T.error("Error fetching data. ", t), null;
|
|
2555
2528
|
}
|
|
2556
2529
|
}
|
|
2557
|
-
const
|
|
2558
|
-
function
|
|
2559
|
-
return !
|
|
2530
|
+
const Yo = Ke;
|
|
2531
|
+
function Bo() {
|
|
2532
|
+
return !C() || A() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2560
2533
|
}
|
|
2561
|
-
const
|
|
2534
|
+
const Vo = g({
|
|
2562
2535
|
name: "enable-editor",
|
|
2563
2536
|
props: [
|
|
2564
2537
|
"canTrack",
|
|
@@ -2581,21 +2554,21 @@ const Po = g({
|
|
|
2581
2554
|
shouldSendResetCookie: !1,
|
|
2582
2555
|
httpReqsData: {},
|
|
2583
2556
|
clicked: !1,
|
|
2584
|
-
builderContext:
|
|
2557
|
+
builderContext: G
|
|
2585
2558
|
};
|
|
2586
2559
|
},
|
|
2587
2560
|
provide() {
|
|
2588
2561
|
const e = this;
|
|
2589
2562
|
return {
|
|
2590
|
-
[
|
|
2563
|
+
[G.key]: e.builderContextSignal
|
|
2591
2564
|
};
|
|
2592
2565
|
},
|
|
2593
2566
|
mounted() {
|
|
2594
2567
|
var e, t;
|
|
2595
|
-
if (this.apiKey ||
|
|
2568
|
+
if (this.apiKey || T.error(
|
|
2596
2569
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2597
|
-
),
|
|
2598
|
-
if (A() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
2570
|
+
), C()) {
|
|
2571
|
+
if (A() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), po(), mo({
|
|
2599
2572
|
...this.locale ? {
|
|
2600
2573
|
locale: this.locale
|
|
2601
2574
|
} : {},
|
|
@@ -2609,14 +2582,14 @@ const Po = g({
|
|
|
2609
2582
|
this.builderContextSignal.componentInfos
|
|
2610
2583
|
).forEach((n) => {
|
|
2611
2584
|
var r;
|
|
2612
|
-
const o =
|
|
2585
|
+
const o = Vn(n);
|
|
2613
2586
|
(r = window.parent) == null || r.postMessage(o, "*");
|
|
2614
2587
|
}), window.addEventListener(
|
|
2615
2588
|
"builder:component:stateChangeListenerActivated",
|
|
2616
2589
|
this.emitStateUpdate
|
|
2617
2590
|
)), this.builderContextSignal.content) {
|
|
2618
2591
|
const n = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
|
|
2619
|
-
|
|
2592
|
+
J({
|
|
2620
2593
|
type: "impression",
|
|
2621
2594
|
canTrack: this.canTrackToUse,
|
|
2622
2595
|
contentId: o,
|
|
@@ -2624,7 +2597,7 @@ const Po = g({
|
|
|
2624
2597
|
variationId: n !== o ? n : void 0
|
|
2625
2598
|
});
|
|
2626
2599
|
}
|
|
2627
|
-
if (
|
|
2600
|
+
if (Bo()) {
|
|
2628
2601
|
const n = new URL(location.href).searchParams, o = n.get("builder.preview"), r = n.get(
|
|
2629
2602
|
`builder.preview.${o}`
|
|
2630
2603
|
), i = n.get("apiKey") || n.get("builder.space");
|
|
@@ -2668,7 +2641,7 @@ const Po = g({
|
|
|
2668
2641
|
}
|
|
2669
2642
|
},
|
|
2670
2643
|
unmounted() {
|
|
2671
|
-
|
|
2644
|
+
C() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2672
2645
|
"builder:component:stateChangeListenerActivated",
|
|
2673
2646
|
this.emitStateUpdate
|
|
2674
2647
|
));
|
|
@@ -2759,13 +2732,13 @@ const Po = g({
|
|
|
2759
2732
|
var t, n;
|
|
2760
2733
|
if (this.builderContextSignal.content) {
|
|
2761
2734
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2762
|
-
|
|
2735
|
+
J({
|
|
2763
2736
|
type: "click",
|
|
2764
2737
|
canTrack: this.canTrackToUse,
|
|
2765
2738
|
contentId: r,
|
|
2766
2739
|
apiKey: this.apiKey,
|
|
2767
2740
|
variationId: o !== r ? o : void 0,
|
|
2768
|
-
...
|
|
2741
|
+
...go(e),
|
|
2769
2742
|
unique: !this.clicked
|
|
2770
2743
|
});
|
|
2771
2744
|
}
|
|
@@ -2784,7 +2757,7 @@ const Po = g({
|
|
|
2784
2757
|
);
|
|
2785
2758
|
},
|
|
2786
2759
|
handleRequest({ url: e, key: t }) {
|
|
2787
|
-
|
|
2760
|
+
Ae(e).then((n) => n.json()).then((n) => {
|
|
2788
2761
|
var r, i;
|
|
2789
2762
|
const o = {
|
|
2790
2763
|
...this.builderContextSignal.rootState,
|
|
@@ -2833,10 +2806,10 @@ const Po = g({
|
|
|
2833
2806
|
return t;
|
|
2834
2807
|
}
|
|
2835
2808
|
}
|
|
2836
|
-
}),
|
|
2837
|
-
function
|
|
2809
|
+
}), Po = ["builder-content-id", "builder-model"];
|
|
2810
|
+
function No(e, t, n, o, r, i) {
|
|
2838
2811
|
var s;
|
|
2839
|
-
return e.builderContextSignal.content ? (d(), p("div",
|
|
2812
|
+
return e.builderContextSignal.content ? (d(), p("div", $({
|
|
2840
2813
|
key: e.forceReRenderCount,
|
|
2841
2814
|
ref: "elementRef",
|
|
2842
2815
|
onClick: t[0] || (t[0] = (a) => e.onClick(a)),
|
|
@@ -2849,22 +2822,22 @@ function Oo(e, t, n, o, r, i) {
|
|
|
2849
2822
|
"aria-hidden": !0
|
|
2850
2823
|
}
|
|
2851
2824
|
}), [
|
|
2852
|
-
|
|
2853
|
-
], 16,
|
|
2825
|
+
j(e.$slots, "default")
|
|
2826
|
+
], 16, Po)) : v("", !0);
|
|
2854
2827
|
}
|
|
2855
|
-
const jo = /* @__PURE__ */ y(
|
|
2828
|
+
const jo = /* @__PURE__ */ y(Vo, [["render", No]]), He = g({
|
|
2856
2829
|
render() {
|
|
2857
|
-
return
|
|
2830
|
+
return ye("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2858
2831
|
},
|
|
2859
2832
|
name: "inlined-script",
|
|
2860
2833
|
props: ["scriptStr", "id"]
|
|
2861
|
-
}),
|
|
2834
|
+
}), Oo = qe, _o = g({
|
|
2862
2835
|
name: "content-component",
|
|
2863
2836
|
components: {
|
|
2864
2837
|
EnableEditor: jo,
|
|
2865
|
-
InlinedScript:
|
|
2866
|
-
ContentStyles:
|
|
2867
|
-
Blocks:
|
|
2838
|
+
InlinedScript: He,
|
|
2839
|
+
ContentStyles: Mn,
|
|
2840
|
+
Blocks: ee
|
|
2868
2841
|
},
|
|
2869
2842
|
props: [
|
|
2870
2843
|
"content",
|
|
@@ -2885,31 +2858,31 @@ const jo = /* @__PURE__ */ y(Po, [["render", Oo]]), ze = g({
|
|
|
2885
2858
|
data() {
|
|
2886
2859
|
var e, t;
|
|
2887
2860
|
return {
|
|
2888
|
-
scriptStr:
|
|
2861
|
+
scriptStr: Xt({
|
|
2889
2862
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
2890
2863
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
2891
2864
|
}),
|
|
2892
2865
|
registeredComponents: [
|
|
2893
|
-
...
|
|
2894
|
-
...
|
|
2866
|
+
...ce(),
|
|
2867
|
+
...de,
|
|
2895
2868
|
...this.customComponents || []
|
|
2896
2869
|
].reduce(
|
|
2897
2870
|
(n, { component: o, ...r }) => ({
|
|
2898
2871
|
...n,
|
|
2899
2872
|
[r.name]: {
|
|
2900
|
-
component:
|
|
2901
|
-
...
|
|
2873
|
+
component: Oo(o),
|
|
2874
|
+
...ue(r)
|
|
2902
2875
|
}
|
|
2903
2876
|
}),
|
|
2904
2877
|
{}
|
|
2905
2878
|
),
|
|
2906
2879
|
builderContextSignal: {
|
|
2907
|
-
content:
|
|
2880
|
+
content: Ln({
|
|
2908
2881
|
content: this.content,
|
|
2909
2882
|
data: this.data
|
|
2910
2883
|
}),
|
|
2911
2884
|
localState: void 0,
|
|
2912
|
-
rootState:
|
|
2885
|
+
rootState: Wn({
|
|
2913
2886
|
content: this.content,
|
|
2914
2887
|
data: this.data,
|
|
2915
2888
|
locale: this.locale
|
|
@@ -2919,13 +2892,13 @@ const jo = /* @__PURE__ */ y(Po, [["render", Oo]]), ze = g({
|
|
|
2919
2892
|
apiKey: this.apiKey,
|
|
2920
2893
|
apiVersion: this.apiVersion,
|
|
2921
2894
|
componentInfos: [
|
|
2922
|
-
...
|
|
2923
|
-
...
|
|
2895
|
+
...ce(),
|
|
2896
|
+
...de,
|
|
2924
2897
|
...this.customComponents || []
|
|
2925
2898
|
].reduce(
|
|
2926
2899
|
(n, { component: o, ...r }) => ({
|
|
2927
2900
|
...n,
|
|
2928
|
-
[r.name]:
|
|
2901
|
+
[r.name]: ue(r)
|
|
2929
2902
|
}),
|
|
2930
2903
|
{}
|
|
2931
2904
|
),
|
|
@@ -2937,7 +2910,7 @@ const jo = /* @__PURE__ */ y(Po, [["render", Oo]]), ze = g({
|
|
|
2937
2910
|
provide() {
|
|
2938
2911
|
const e = this;
|
|
2939
2912
|
return {
|
|
2940
|
-
[
|
|
2913
|
+
[Ie.key]: {
|
|
2941
2914
|
registeredComponents: e.registeredComponents
|
|
2942
2915
|
}
|
|
2943
2916
|
};
|
|
@@ -2948,9 +2921,9 @@ const jo = /* @__PURE__ */ y(Po, [["render", Oo]]), ze = g({
|
|
|
2948
2921
|
}
|
|
2949
2922
|
}
|
|
2950
2923
|
});
|
|
2951
|
-
function
|
|
2924
|
+
function Fo(e, t, n, o, r, i) {
|
|
2952
2925
|
const s = b("inlined-script"), a = b("content-styles"), l = b("blocks"), c = b("enable-editor");
|
|
2953
|
-
return d(),
|
|
2926
|
+
return d(), S(c, $({
|
|
2954
2927
|
content: e.content,
|
|
2955
2928
|
model: e.model,
|
|
2956
2929
|
context: e.context,
|
|
@@ -2963,21 +2936,21 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2963
2936
|
showContent: e.showContent,
|
|
2964
2937
|
builderContextSignal: e.builderContextSignal
|
|
2965
2938
|
}, {}), {
|
|
2966
|
-
default:
|
|
2967
|
-
var u, h, m, f, k,
|
|
2939
|
+
default: Q(() => {
|
|
2940
|
+
var u, h, m, f, k, w, x;
|
|
2968
2941
|
return [
|
|
2969
|
-
e.isSsrAbTest ? (d(),
|
|
2942
|
+
e.isSsrAbTest ? (d(), S(s, {
|
|
2970
2943
|
key: 0,
|
|
2971
2944
|
scriptStr: e.scriptStr
|
|
2972
|
-
}, null, 8, ["scriptStr"])) :
|
|
2973
|
-
e.TARGET !== "reactNative" ? (d(),
|
|
2945
|
+
}, null, 8, ["scriptStr"])) : v("", !0),
|
|
2946
|
+
e.TARGET !== "reactNative" ? (d(), S(a, {
|
|
2974
2947
|
key: 1,
|
|
2975
2948
|
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
2976
2949
|
cssCode: (m = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : m.cssCode,
|
|
2977
2950
|
customFonts: (k = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
|
|
2978
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
2951
|
+
}, null, 8, ["contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
2979
2952
|
P(l, {
|
|
2980
|
-
blocks: (x = (
|
|
2953
|
+
blocks: (x = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : x.blocks,
|
|
2981
2954
|
context: e.builderContextSignal,
|
|
2982
2955
|
registeredComponents: e.registeredComponents
|
|
2983
2956
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
@@ -2986,12 +2959,12 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2986
2959
|
_: 1
|
|
2987
2960
|
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
|
|
2988
2961
|
}
|
|
2989
|
-
const
|
|
2962
|
+
const Uo = /* @__PURE__ */ y(_o, [["render", Fo]]), Mo = g({
|
|
2990
2963
|
name: "content-variants",
|
|
2991
2964
|
components: {
|
|
2992
|
-
InlinedScript:
|
|
2965
|
+
InlinedScript: He,
|
|
2993
2966
|
InlinedStyles: K,
|
|
2994
|
-
ContentComponent:
|
|
2967
|
+
ContentComponent: Uo
|
|
2995
2968
|
},
|
|
2996
2969
|
props: [
|
|
2997
2970
|
"canTrack",
|
|
@@ -3009,11 +2982,11 @@ const Mo = /* @__PURE__ */ y(Fo, [["render", Uo]]), Wo = g({
|
|
|
3009
2982
|
],
|
|
3010
2983
|
data() {
|
|
3011
2984
|
return {
|
|
3012
|
-
shouldRenderVariants:
|
|
3013
|
-
canTrack:
|
|
2985
|
+
shouldRenderVariants: zt({
|
|
2986
|
+
canTrack: Y(this.canTrack),
|
|
3014
2987
|
content: this.content
|
|
3015
2988
|
}),
|
|
3016
|
-
getScriptString:
|
|
2989
|
+
getScriptString: Jt,
|
|
3017
2990
|
getVariants: U,
|
|
3018
2991
|
TARGET: B
|
|
3019
2992
|
};
|
|
@@ -3024,7 +2997,7 @@ const Mo = /* @__PURE__ */ y(Fo, [["render", Uo]]), Wo = g({
|
|
|
3024
2997
|
computed: {
|
|
3025
2998
|
variantScriptStr() {
|
|
3026
2999
|
var e;
|
|
3027
|
-
return
|
|
3000
|
+
return Yt(
|
|
3028
3001
|
U(this.content).map((t) => ({
|
|
3029
3002
|
id: t.testVariationId,
|
|
3030
3003
|
testRatio: t.testRatio
|
|
@@ -3040,28 +3013,28 @@ const Mo = /* @__PURE__ */ y(Fo, [["render", Uo]]), Wo = g({
|
|
|
3040
3013
|
return this.shouldRenderVariants ? {
|
|
3041
3014
|
...this.content,
|
|
3042
3015
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3043
|
-
} :
|
|
3016
|
+
} : Co({
|
|
3044
3017
|
item: this.content,
|
|
3045
|
-
canTrack:
|
|
3018
|
+
canTrack: Y(this.canTrack)
|
|
3046
3019
|
});
|
|
3047
3020
|
}
|
|
3048
3021
|
}
|
|
3049
3022
|
});
|
|
3050
|
-
function
|
|
3023
|
+
function Wo(e, t, n, o, r, i) {
|
|
3051
3024
|
var c, u;
|
|
3052
3025
|
const s = b("inlined-script"), a = b("inlined-styles"), l = b("content-component");
|
|
3053
3026
|
return d(), p(I, null, [
|
|
3054
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(),
|
|
3027
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), S(s, {
|
|
3055
3028
|
key: 0,
|
|
3056
3029
|
scriptStr: e.getScriptString()
|
|
3057
|
-
}, null, 8, ["scriptStr"])) :
|
|
3030
|
+
}, null, 8, ["scriptStr"])) : v("", !0),
|
|
3058
3031
|
e.shouldRenderVariants ? (d(), p(I, { key: 1 }, [
|
|
3059
3032
|
P(a, {
|
|
3060
3033
|
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3061
3034
|
styles: e.hideVariantsStyleString
|
|
3062
3035
|
}, null, 8, ["id", "styles"]),
|
|
3063
3036
|
P(s, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
|
|
3064
|
-
(d(!0), p(I, null, V(e.getVariants(e.content), (h, m) => (d(),
|
|
3037
|
+
(d(!0), p(I, null, V(e.getVariants(e.content), (h, m) => (d(), S(l, {
|
|
3065
3038
|
key: h.testVariationId,
|
|
3066
3039
|
content: h,
|
|
3067
3040
|
showContent: !1,
|
|
@@ -3078,8 +3051,8 @@ function Lo(e, t, n, o, r, i) {
|
|
|
3078
3051
|
enrich: e.enrich,
|
|
3079
3052
|
isSsrAbTest: e.shouldRenderVariants
|
|
3080
3053
|
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
|
|
3081
|
-
], 64)) :
|
|
3082
|
-
P(l,
|
|
3054
|
+
], 64)) : v("", !0),
|
|
3055
|
+
P(l, $({
|
|
3083
3056
|
content: e.defaultContent,
|
|
3084
3057
|
classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
|
|
3085
3058
|
showContent: !0,
|
|
@@ -3099,7 +3072,7 @@ function Lo(e, t, n, o, r, i) {
|
|
|
3099
3072
|
}), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
3100
3073
|
], 64);
|
|
3101
3074
|
}
|
|
3102
|
-
const
|
|
3075
|
+
const ze = /* @__PURE__ */ y(Mo, [["render", Wo]]), Lo = async ({
|
|
3103
3076
|
builderContextValue: e,
|
|
3104
3077
|
symbol: t
|
|
3105
3078
|
}) => {
|
|
@@ -3114,11 +3087,11 @@ const De = /* @__PURE__ */ y(Wo, [["render", Lo]]), Ko = async ({
|
|
|
3114
3087
|
}
|
|
3115
3088
|
}
|
|
3116
3089
|
}).catch((n) => {
|
|
3117
|
-
|
|
3090
|
+
T.error("Could not fetch symbol content: ", n);
|
|
3118
3091
|
});
|
|
3119
|
-
},
|
|
3092
|
+
}, Ko = g({
|
|
3120
3093
|
name: "builder-symbol",
|
|
3121
|
-
components: { ContentVariants:
|
|
3094
|
+
components: { ContentVariants: ze },
|
|
3122
3095
|
props: [
|
|
3123
3096
|
"js",
|
|
3124
3097
|
"attributes",
|
|
@@ -3160,7 +3133,7 @@ const De = /* @__PURE__ */ y(Wo, [["render", Lo]]), Ko = async ({
|
|
|
3160
3133
|
},
|
|
3161
3134
|
methods: {
|
|
3162
3135
|
setContent() {
|
|
3163
|
-
this.contentToUse ||
|
|
3136
|
+
this.contentToUse || Lo({
|
|
3164
3137
|
symbol: this.symbol,
|
|
3165
3138
|
builderContextValue: this.builderContext
|
|
3166
3139
|
}).then((e) => {
|
|
@@ -3178,12 +3151,12 @@ const De = /* @__PURE__ */ y(Wo, [["render", Lo]]), Ko = async ({
|
|
|
3178
3151
|
}
|
|
3179
3152
|
}
|
|
3180
3153
|
});
|
|
3181
|
-
function
|
|
3154
|
+
function Ho(e, t, n, o, r, i) {
|
|
3182
3155
|
var a, l, c, u;
|
|
3183
3156
|
const s = b("content-variants");
|
|
3184
|
-
return d(), p("div",
|
|
3157
|
+
return d(), p("div", $({
|
|
3185
3158
|
class: e._classStringToObject(e.className)
|
|
3186
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3159
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3187
3160
|
P(s, {
|
|
3188
3161
|
__isNestedRender: !0,
|
|
3189
3162
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3200,18 +3173,18 @@ function zo(e, t, n, o, r, i) {
|
|
|
3200
3173
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3201
3174
|
], 16);
|
|
3202
3175
|
}
|
|
3203
|
-
const
|
|
3204
|
-
function
|
|
3205
|
-
if (
|
|
3206
|
-
Object.assign(
|
|
3176
|
+
const zo = /* @__PURE__ */ y(Ko, [["render", Ho]]), Xo = ee, Qo = ze, be = {};
|
|
3177
|
+
function Zo(e) {
|
|
3178
|
+
if (C()) {
|
|
3179
|
+
Object.assign(be, e);
|
|
3207
3180
|
const t = {
|
|
3208
3181
|
type: "builder.settingsChange",
|
|
3209
|
-
data:
|
|
3182
|
+
data: be
|
|
3210
3183
|
};
|
|
3211
3184
|
parent.postMessage(t, "*");
|
|
3212
3185
|
}
|
|
3213
3186
|
}
|
|
3214
|
-
const
|
|
3187
|
+
const er = async (e) => {
|
|
3215
3188
|
var o, r, i;
|
|
3216
3189
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
3217
3190
|
...e,
|
|
@@ -3223,7 +3196,7 @@ const tr = async (e) => {
|
|
|
3223
3196
|
urlPath: t
|
|
3224
3197
|
} : {}
|
|
3225
3198
|
},
|
|
3226
|
-
options:
|
|
3199
|
+
options: We(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3227
3200
|
};
|
|
3228
3201
|
return {
|
|
3229
3202
|
apiKey: n.apiKey,
|
|
@@ -3232,40 +3205,39 @@ const tr = async (e) => {
|
|
|
3232
3205
|
};
|
|
3233
3206
|
};
|
|
3234
3207
|
export {
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
Gt as S,
|
|
3208
|
+
G as B,
|
|
3209
|
+
ze as C,
|
|
3210
|
+
Pt as F,
|
|
3211
|
+
Wt as I,
|
|
3212
|
+
Xo as R,
|
|
3213
|
+
Ht as S,
|
|
3242
3214
|
B as T,
|
|
3243
|
-
|
|
3215
|
+
hn as V,
|
|
3244
3216
|
y as _,
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3217
|
+
Te as a,
|
|
3218
|
+
$e as b,
|
|
3219
|
+
rt as c,
|
|
3220
|
+
Bo as d,
|
|
3249
3221
|
M as e,
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3222
|
+
Vn as f,
|
|
3223
|
+
Zo as g,
|
|
3224
|
+
Ke as h,
|
|
3253
3225
|
A as i,
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3226
|
+
H as j,
|
|
3227
|
+
Yo as k,
|
|
3228
|
+
T as l,
|
|
3229
|
+
Jo as m,
|
|
3230
|
+
Ao as n,
|
|
3231
|
+
We as o,
|
|
3232
|
+
er as p,
|
|
3233
|
+
ee as q,
|
|
3234
|
+
uo as r,
|
|
3235
|
+
tt as s,
|
|
3236
|
+
Go as t,
|
|
3237
|
+
Qo as u,
|
|
3238
|
+
Xe as v,
|
|
3239
|
+
At as w,
|
|
3240
|
+
zo as x,
|
|
3241
|
+
cn as y,
|
|
3242
|
+
qo as z
|
|
3271
3243
|
};
|