@builder.io/sdk-vue 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.a206dd50.js → block-styles.03915da1.js} +8 -8
- package/packages/_vue2/dist/block-styles.f55da466.cjs +1 -0
- package/packages/_vue2/dist/css.05bd82ed.js +58 -0
- package/packages/_vue2/dist/css.13f6a54e.cjs +6 -0
- package/packages/_vue2/dist/{index.e8dd60dc.js → index.3bd1f67e.js} +419 -422
- package/packages/_vue2/dist/index.cbc06228.cjs +29 -0
- package/packages/_vue2/dist/{render-block.065c34a7.cjs → render-block.5334a9b5.cjs} +2 -2
- package/packages/_vue2/dist/{render-block.fd86fb8a.js → render-block.58a5d354.js} +7 -7
- package/packages/_vue2/dist/{render-component.933ccff1.cjs → render-component.88a8e955.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.f953c827.js → render-component.934cdac4.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.9195825e.js → render-inlined-styles.067d5d11.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.fee45ae3.cjs → render-inlined-styles.e576c02d.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.7f32ee89.cjs → render-repeated-block.47f15cef.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.9721be56.js → render-repeated-block.84bf8874.js} +2 -2
- package/packages/_vue2/dist/{render-styles.c4b6de30.js → render-styles.4764220d.js} +2 -2
- package/packages/_vue2/dist/{render-styles.7f8fcf1c.cjs → render-styles.677a15af.cjs} +3 -3
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +9 -9
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +14 -29
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +11 -5
- package/packages/_vue2/dist/src/components/render-content/render-content.types.d.ts +2 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +6 -0
- package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -0
- package/packages/_vue2/dist/src/context/types.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +6 -0
- package/packages/_vue2/dist/src/types/api-version.d.ts +1 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.58529395.cjs +1 -0
- package/packages/_vue3/dist/{block-styles.dbf81cfb.js → block-styles.bab3c28f.js} +3 -3
- package/packages/_vue3/dist/css.63d69670.cjs +6 -0
- package/packages/_vue3/dist/css.8ed20b10.js +58 -0
- package/packages/_vue3/dist/{index.0f0b2b49.js → index.2ad3b0cb.js} +625 -625
- package/packages/_vue3/dist/index.395b8a3c.cjs +29 -0
- package/packages/_vue3/dist/{render-block.e3ebf63d.js → render-block.5350aee7.js} +7 -7
- package/packages/_vue3/dist/{render-block.a748ee8b.cjs → render-block.8923e93f.cjs} +2 -2
- package/packages/_vue3/dist/{render-component.3639085a.cjs → render-component.02d9c77a.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.db71626f.js → render-component.ed1c21ce.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.205733ee.cjs → render-inlined-styles.7f9d50aa.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.db67e9d8.js → render-inlined-styles.9f82189a.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.17a00da9.js → render-repeated-block.86e8e344.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.6086220a.cjs → render-repeated-block.9e462881.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.0d3e3a50.cjs → render-styles.33387f8f.cjs} +2 -2
- package/packages/_vue3/dist/{render-styles.6fa7962a.js → render-styles.cb23fa6b.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +8 -8
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +14 -29
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +11 -5
- package/packages/_vue3/dist/src/components/render-content/render-content.types.d.ts +2 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +6 -0
- package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -0
- package/packages/_vue3/dist/src/context/types.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +6 -0
- package/packages/_vue3/dist/src/types/api-version.d.ts +1 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.3b3ffdbf.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block.34a63cf8.js +0 -40
- package/packages/_vue2/dist/get-processed-block.c3bfda4f.cjs +0 -1
- package/packages/_vue2/dist/index.ffa2cf17.cjs +0 -30
- package/packages/_vue3/dist/block-styles.f4b172a6.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.a35e7862.js +0 -40
- package/packages/_vue3/dist/get-processed-block.a59a881a.cjs +0 -1
- package/packages/_vue3/dist/index.2b8fbb3b.cjs +0 -30
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as d, createElementBlock as m, mergeProps as S, toHandlers as C, toDisplayString as L, defineAsyncComponent as x, resolveComponent as k, normalizeClass as j, normalizeStyle as I, createBlock as T, createCommentVNode as y, Fragment as E, renderList as P, createVNode as X, renderSlot as A, createElementVNode as N } from "vue";
|
|
2
|
+
const me = {
|
|
3
3
|
name: "builder-button",
|
|
4
4
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
5
5
|
methods: {
|
|
6
6
|
filterAttrs: function(n = {}, t) {
|
|
7
7
|
const o = "v-on:";
|
|
8
|
-
return Object.keys(n).filter((
|
|
9
|
-
const
|
|
10
|
-
return t ?
|
|
8
|
+
return Object.keys(n).filter((s) => {
|
|
9
|
+
const i = s.startsWith(o);
|
|
10
|
+
return t ? i : !i;
|
|
11
11
|
}).reduce(
|
|
12
|
-
(
|
|
13
|
-
...
|
|
14
|
-
[
|
|
12
|
+
(s, i) => ({
|
|
13
|
+
...s,
|
|
14
|
+
[i.replace(o, "")]: n[i]
|
|
15
15
|
}),
|
|
16
16
|
{}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
const
|
|
21
|
+
const h = (e, n) => {
|
|
22
22
|
const t = e.__vccOpts || e;
|
|
23
|
-
for (const [o,
|
|
24
|
-
t[o] =
|
|
23
|
+
for (const [o, s] of n)
|
|
24
|
+
t[o] = s;
|
|
25
25
|
return t;
|
|
26
|
-
},
|
|
27
|
-
function
|
|
28
|
-
return t.link ? (d(),
|
|
26
|
+
}, pe = ["href", "target"];
|
|
27
|
+
function he(e, n, t, o, s, i) {
|
|
28
|
+
return t.link ? (d(), m("a", S({
|
|
29
29
|
key: 0,
|
|
30
30
|
role: "button",
|
|
31
31
|
href: t.link,
|
|
32
32
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
33
|
-
},
|
|
33
|
+
}, i.filterAttrs(t.attributes, !1), C(i.filterAttrs(t.attributes, !0), !0)), L(t.text), 17, pe)) : (d(), m("button", S({
|
|
34
34
|
key: 1,
|
|
35
|
-
class: "button-
|
|
36
|
-
},
|
|
35
|
+
class: "button-1yj9n7yt24z"
|
|
36
|
+
}, i.filterAttrs(t.attributes, !1), C(i.filterAttrs(t.attributes, !0), !0)), L(t.text), 17));
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const fe = /* @__PURE__ */ h(me, [["render", he], ["__scopeId", "data-v-28c9cee7"]]), W = (e) => JSON.parse(JSON.stringify(e)), Q = {
|
|
39
39
|
small: {
|
|
40
40
|
min: 320,
|
|
41
41
|
default: 321,
|
|
@@ -51,8 +51,8 @@ const ge = /* @__PURE__ */ g(pe, [["render", fe], ["__scopeId", "data-v-e75e2084
|
|
|
51
51
|
default: 991,
|
|
52
52
|
max: 1200
|
|
53
53
|
}
|
|
54
|
-
},
|
|
55
|
-
const t =
|
|
54
|
+
}, En = (e, n = Q) => `@media (max-width: ${n[e].max}px)`, ge = ({ small: e, medium: n }) => {
|
|
55
|
+
const t = W(Q);
|
|
56
56
|
if (!e || !n)
|
|
57
57
|
return t;
|
|
58
58
|
const o = Math.floor(e / 2);
|
|
@@ -61,34 +61,19 @@ const ge = /* @__PURE__ */ g(pe, [["render", fe], ["__scopeId", "data-v-e75e2084
|
|
|
61
61
|
min: o,
|
|
62
62
|
default: o + 1
|
|
63
63
|
};
|
|
64
|
-
const
|
|
64
|
+
const s = t.small.max + 1;
|
|
65
65
|
t.medium = {
|
|
66
66
|
max: n,
|
|
67
|
-
min:
|
|
68
|
-
default:
|
|
67
|
+
min: s,
|
|
68
|
+
default: s + 1
|
|
69
69
|
};
|
|
70
|
-
const
|
|
70
|
+
const i = t.medium.max + 1;
|
|
71
71
|
return t.large = {
|
|
72
72
|
max: 2e3,
|
|
73
|
-
min:
|
|
74
|
-
default:
|
|
73
|
+
min: i,
|
|
74
|
+
default: i + 1
|
|
75
75
|
}, t;
|
|
76
|
-
}, R = "vue3",
|
|
77
|
-
if (typeof o == "string")
|
|
78
|
-
return `${ye(t)}: ${o};`;
|
|
79
|
-
}).filter(S), C = (e) => ve(e).join(`
|
|
80
|
-
`), Fn = ({
|
|
81
|
-
mediaQuery: e,
|
|
82
|
-
className: n,
|
|
83
|
-
styles: t
|
|
84
|
-
}) => {
|
|
85
|
-
const o = `.${n} {
|
|
86
|
-
${C(t)}
|
|
87
|
-
}`;
|
|
88
|
-
return e ? `${e} {
|
|
89
|
-
${o}
|
|
90
|
-
}` : o;
|
|
91
|
-
}, xe = Symbol(), O = {
|
|
76
|
+
}, R = "vue3", be = Symbol(), V = {
|
|
92
77
|
Builder: {
|
|
93
78
|
content: null,
|
|
94
79
|
context: {},
|
|
@@ -96,25 +81,26 @@ const ge = /* @__PURE__ */ g(pe, [["render", fe], ["__scopeId", "data-v-e75e2084
|
|
|
96
81
|
setState() {
|
|
97
82
|
},
|
|
98
83
|
apiKey: null,
|
|
84
|
+
apiVersion: void 0,
|
|
99
85
|
registeredComponents: {},
|
|
100
86
|
inheritedStyles: {}
|
|
101
87
|
},
|
|
102
|
-
key:
|
|
103
|
-
},
|
|
88
|
+
key: be
|
|
89
|
+
}, ye = () => Promise.resolve().then(() => Z).then((e) => e.default).catch((e) => {
|
|
104
90
|
throw console.error(
|
|
105
91
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
106
92
|
e
|
|
107
93
|
), e;
|
|
108
|
-
}),
|
|
94
|
+
}), ve = () => import("./render-inlined-styles.9f82189a.js").then((e) => e.default).catch((e) => {
|
|
109
95
|
throw console.error(
|
|
110
96
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
111
97
|
e
|
|
112
98
|
), e;
|
|
113
|
-
}),
|
|
99
|
+
}), xe = {
|
|
114
100
|
name: "builder-columns",
|
|
115
101
|
components: {
|
|
116
|
-
RenderInlinedStyles: x(
|
|
117
|
-
RenderBlocks: x(
|
|
102
|
+
RenderInlinedStyles: x(ve),
|
|
103
|
+
RenderBlocks: x(ye)
|
|
118
104
|
},
|
|
119
105
|
props: [
|
|
120
106
|
"space",
|
|
@@ -124,104 +110,96 @@ const ge = /* @__PURE__ */ g(pe, [["render", fe], ["__scopeId", "data-v-e75e2084
|
|
|
124
110
|
"builderBlock"
|
|
125
111
|
],
|
|
126
112
|
data() {
|
|
127
|
-
return {
|
|
113
|
+
return {
|
|
114
|
+
gutterSize: typeof this.space == "number" ? this.space || 0 : 20,
|
|
115
|
+
cols: this.columns || [],
|
|
116
|
+
stackAt: this.stackColumnsAt || "tablet",
|
|
117
|
+
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
118
|
+
TARGET: R
|
|
119
|
+
};
|
|
128
120
|
},
|
|
129
121
|
inject: {
|
|
130
|
-
builderContext:
|
|
122
|
+
builderContext: V.key
|
|
131
123
|
},
|
|
132
124
|
computed: {
|
|
133
125
|
columnsCssVars() {
|
|
134
|
-
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
135
|
-
return {
|
|
136
|
-
"--flex-dir": e,
|
|
137
|
-
"--flex-dir-tablet": this.maybeApplyForTablet(e)
|
|
138
|
-
};
|
|
139
|
-
},
|
|
140
|
-
columnCssVars() {
|
|
141
|
-
const e = "100%", n = "0";
|
|
142
126
|
return {
|
|
143
|
-
"--
|
|
144
|
-
"--
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
columnStyleObjects() {
|
|
150
|
-
return {
|
|
151
|
-
columns: {
|
|
152
|
-
small: {
|
|
153
|
-
flexDirection: "var(--flex-dir)",
|
|
154
|
-
alignItems: "stretch"
|
|
155
|
-
},
|
|
156
|
-
medium: {
|
|
157
|
-
flexDirection: "var(--flex-dir-tablet)",
|
|
158
|
-
alignItems: "stretch"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
column: {
|
|
162
|
-
small: {
|
|
163
|
-
width: "var(--column-width) !important",
|
|
164
|
-
marginLeft: "var(--column-margin-left) !important"
|
|
165
|
-
},
|
|
166
|
-
medium: {
|
|
167
|
-
width: "var(--column-width-tablet) !important",
|
|
168
|
-
marginLeft: "var(--column-margin-left-tablet) !important"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
127
|
+
"--flex-dir": this.flexDir,
|
|
128
|
+
"--flex-dir-tablet": this.getTabletStyle({
|
|
129
|
+
stackedStyle: this.flexDir,
|
|
130
|
+
desktopStyle: "row"
|
|
131
|
+
})
|
|
171
132
|
};
|
|
172
133
|
},
|
|
173
134
|
columnsStyles() {
|
|
174
135
|
return `
|
|
175
136
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
176
137
|
.${this.builderBlock.id}-breakpoints {
|
|
177
|
-
|
|
138
|
+
flex-direction: var(--flex-dir-tablet);
|
|
139
|
+
align-items: stretch;
|
|
178
140
|
}
|
|
179
141
|
|
|
180
142
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
181
|
-
|
|
143
|
+
width: var(--column-width-tablet) !important;
|
|
144
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
182
145
|
}
|
|
183
146
|
}
|
|
184
147
|
|
|
185
148
|
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
186
149
|
.${this.builderBlock.id}-breakpoints {
|
|
187
|
-
|
|
150
|
+
flex-direction: var(--flex-dir);
|
|
151
|
+
align-items: stretch;
|
|
188
152
|
}
|
|
189
153
|
|
|
190
154
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
191
|
-
|
|
155
|
+
width: var(--column-width-mobile) !important;
|
|
156
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
192
157
|
}
|
|
193
158
|
},
|
|
194
159
|
`;
|
|
195
|
-
},
|
|
196
|
-
reactNativeColumnsStyles() {
|
|
197
|
-
return this.columnStyleObjects.columns.small;
|
|
198
|
-
},
|
|
199
|
-
reactNativeColumnStyles() {
|
|
200
|
-
return this.columnStyleObjects.column.small;
|
|
201
160
|
}
|
|
202
161
|
},
|
|
203
162
|
methods: {
|
|
204
|
-
getGutterSize() {
|
|
205
|
-
return typeof this.space == "number" ? this.space || 0 : 20;
|
|
206
|
-
},
|
|
207
|
-
getColumns() {
|
|
208
|
-
return this.columns || [];
|
|
209
|
-
},
|
|
210
163
|
getWidth(e) {
|
|
211
|
-
var
|
|
212
|
-
|
|
213
|
-
return ((t = n[e]) == null ? void 0 : t.width) || 100 / n.length;
|
|
164
|
+
var n;
|
|
165
|
+
return ((n = this.cols[e]) == null ? void 0 : n.width) || 100 / this.cols.length;
|
|
214
166
|
},
|
|
215
167
|
getColumnCssWidth(e) {
|
|
216
|
-
const n = this.
|
|
217
|
-
return `calc(${this.getWidth(e)}% - ${
|
|
168
|
+
const n = this.gutterSize * (this.cols.length - 1) / this.cols.length;
|
|
169
|
+
return `calc(${this.getWidth(e)}% - ${n}px)`;
|
|
170
|
+
},
|
|
171
|
+
getTabletStyle({ stackedStyle: e, desktopStyle: n }) {
|
|
172
|
+
return this.stackAt === "tablet" ? e : n;
|
|
218
173
|
},
|
|
219
|
-
|
|
220
|
-
return
|
|
174
|
+
getMobileStyle({ stackedStyle: e, desktopStyle: n }) {
|
|
175
|
+
return this.stackAt === "never" ? n : e;
|
|
176
|
+
},
|
|
177
|
+
columnCssVars(e) {
|
|
178
|
+
const n = this.getColumnCssWidth(e), t = `${e === 0 ? 0 : this.gutterSize}px`, o = "100%", s = "0";
|
|
179
|
+
return {
|
|
180
|
+
width: n,
|
|
181
|
+
"margin-left": t,
|
|
182
|
+
"--column-width-mobile": this.getMobileStyle({
|
|
183
|
+
stackedStyle: o,
|
|
184
|
+
desktopStyle: n
|
|
185
|
+
}),
|
|
186
|
+
"--column-margin-left-mobile": this.getMobileStyle({
|
|
187
|
+
stackedStyle: s,
|
|
188
|
+
desktopStyle: t
|
|
189
|
+
}),
|
|
190
|
+
"--column-width-tablet": this.getTabletStyle({
|
|
191
|
+
stackedStyle: o,
|
|
192
|
+
desktopStyle: n
|
|
193
|
+
}),
|
|
194
|
+
"--column-margin-left-tablet": this.getTabletStyle({
|
|
195
|
+
stackedStyle: s,
|
|
196
|
+
desktopStyle: t
|
|
197
|
+
})
|
|
198
|
+
};
|
|
221
199
|
},
|
|
222
200
|
getWidthForBreakpointSize(e) {
|
|
223
201
|
var t, o;
|
|
224
|
-
return
|
|
202
|
+
return ge(
|
|
225
203
|
((o = (t = this.builderContext.content) == null ? void 0 : t.meta) == null ? void 0 : o.breakpoints) || {}
|
|
226
204
|
)[e].max;
|
|
227
205
|
},
|
|
@@ -236,34 +214,32 @@ const ge = /* @__PURE__ */ g(pe, [["render", fe], ["__scopeId", "data-v-e75e2084
|
|
|
236
214
|
}
|
|
237
215
|
}
|
|
238
216
|
};
|
|
239
|
-
function
|
|
240
|
-
const
|
|
241
|
-
return d(),
|
|
217
|
+
function ke(e, n, t, o, s, i) {
|
|
218
|
+
const r = k("render-inlined-styles"), c = k("render-blocks");
|
|
219
|
+
return d(), m("div", {
|
|
242
220
|
class: j(
|
|
243
|
-
|
|
221
|
+
i._classStringToObject(
|
|
244
222
|
`builder-columns ${t.builderBlock.id}-breakpoints div-361b1o6wv2k`
|
|
245
223
|
)
|
|
246
224
|
),
|
|
247
|
-
style: I(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
225
|
+
style: I(i.columnsCssVars),
|
|
226
|
+
dataSet: {
|
|
227
|
+
"builder-block-name": "builder-columns"
|
|
228
|
+
}
|
|
251
229
|
}, [
|
|
252
|
-
|
|
230
|
+
s.TARGET !== "reactNative" ? (d(), T(r, {
|
|
253
231
|
key: 0,
|
|
254
|
-
styles:
|
|
255
|
-
}, null, 8, ["styles"])) :
|
|
256
|
-
(d(!0),
|
|
232
|
+
styles: i.columnsStyles
|
|
233
|
+
}, null, 8, ["styles"])) : y("", !0),
|
|
234
|
+
(d(!0), m(E, null, P(t.columns, (a, l) => (d(), m("div", {
|
|
257
235
|
key: l,
|
|
258
236
|
class: "builder-column div-361b1o6wv2k-2",
|
|
259
|
-
style: I(
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
...s.columnCssVars
|
|
264
|
-
})
|
|
237
|
+
style: I(i.columnCssVars(l)),
|
|
238
|
+
dataSet: {
|
|
239
|
+
"builder-block-name": "builder-column"
|
|
240
|
+
}
|
|
265
241
|
}, [
|
|
266
|
-
|
|
242
|
+
X(c, {
|
|
267
243
|
blocks: a.blocks,
|
|
268
244
|
path: `component.options.columns.${l}.blocks`,
|
|
269
245
|
parent: t.builderBlock.id,
|
|
@@ -274,49 +250,49 @@ function Ce(e, n, t, o, r, s) {
|
|
|
274
250
|
], 4))), 128))
|
|
275
251
|
], 6);
|
|
276
252
|
}
|
|
277
|
-
const
|
|
253
|
+
const Se = /* @__PURE__ */ h(xe, [["render", ke], ["__scopeId", "data-v-d8ae54cc"]]), _e = {
|
|
278
254
|
name: "builder-fragment-component",
|
|
279
255
|
props: []
|
|
280
256
|
};
|
|
281
|
-
function
|
|
282
|
-
return d(),
|
|
257
|
+
function we(e, n, t, o, s, i) {
|
|
258
|
+
return d(), m("span", null, [
|
|
283
259
|
A(e.$slots, "default")
|
|
284
260
|
]);
|
|
285
261
|
}
|
|
286
|
-
const
|
|
287
|
-
function
|
|
262
|
+
const Ce = /* @__PURE__ */ h(_e, [["render", we]]);
|
|
263
|
+
function $(e) {
|
|
288
264
|
return e.replace(/http(s)?:/, "");
|
|
289
265
|
}
|
|
290
|
-
function
|
|
291
|
-
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"),
|
|
292
|
-
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e +
|
|
266
|
+
function Ie(e = "", n, t) {
|
|
267
|
+
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
|
|
268
|
+
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + s + n + "=" + encodeURIComponent(t);
|
|
293
269
|
}
|
|
294
|
-
function
|
|
270
|
+
function Te(e, n) {
|
|
295
271
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
|
|
296
272
|
return e;
|
|
297
273
|
if (n === "master")
|
|
298
|
-
return
|
|
274
|
+
return $(e);
|
|
299
275
|
const t = e.match(
|
|
300
276
|
/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
|
|
301
277
|
);
|
|
302
278
|
if (t) {
|
|
303
|
-
const o = e.split(t[0]),
|
|
304
|
-
return
|
|
279
|
+
const o = e.split(t[0]), s = t[3], i = n.match("x") ? n : `${n}x`;
|
|
280
|
+
return $(`${o[0]}_${i}${s}`);
|
|
305
281
|
}
|
|
306
282
|
return null;
|
|
307
283
|
}
|
|
308
|
-
function
|
|
284
|
+
function F(e) {
|
|
309
285
|
if (!e)
|
|
310
286
|
return e;
|
|
311
287
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
312
288
|
if (e.match(/builder\.io/)) {
|
|
313
289
|
let t = e;
|
|
314
290
|
const o = Number(e.split("?width=")[1]);
|
|
315
|
-
return isNaN(o) || (t = `${t} ${o}w`), n.filter((
|
|
291
|
+
return isNaN(o) || (t = `${t} ${o}w`), n.filter((s) => s !== o).map((s) => `${Ie(e, "width", s)} ${s}w`).concat([t]).join(", ");
|
|
316
292
|
}
|
|
317
|
-
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [
|
|
293
|
+
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [Te(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
|
|
318
294
|
}
|
|
319
|
-
const
|
|
295
|
+
const Re = {
|
|
320
296
|
name: "builder-image",
|
|
321
297
|
props: [
|
|
322
298
|
"image",
|
|
@@ -340,10 +316,10 @@ const je = {
|
|
|
340
316
|
return this.srcset;
|
|
341
317
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
342
318
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
343
|
-
return console.debug("Removed given srcset"),
|
|
319
|
+
return console.debug("Removed given srcset"), F(n);
|
|
344
320
|
} else if (this.image && !this.srcset)
|
|
345
|
-
return
|
|
346
|
-
return
|
|
321
|
+
return F(n);
|
|
322
|
+
return F(n);
|
|
347
323
|
},
|
|
348
324
|
webpSrcSet() {
|
|
349
325
|
var e;
|
|
@@ -372,80 +348,80 @@ const je = {
|
|
|
372
348
|
}
|
|
373
349
|
}
|
|
374
350
|
};
|
|
375
|
-
const
|
|
351
|
+
const Ee = ["srcset"], Ae = ["alt", "role", "src", "srcset", "sizes"], je = {
|
|
376
352
|
key: 2,
|
|
377
353
|
class: "div-7jvpanrlkn-2"
|
|
378
354
|
};
|
|
379
|
-
function
|
|
380
|
-
var
|
|
381
|
-
return d(),
|
|
382
|
-
|
|
383
|
-
|
|
355
|
+
function Ve(e, n, t, o, s, i) {
|
|
356
|
+
var r, c, a, l;
|
|
357
|
+
return d(), m(E, null, [
|
|
358
|
+
N("picture", null, [
|
|
359
|
+
i.webpSrcSet ? (d(), m("source", {
|
|
384
360
|
key: 0,
|
|
385
361
|
type: "image/webp",
|
|
386
|
-
srcset:
|
|
387
|
-
}, null, 8,
|
|
388
|
-
|
|
362
|
+
srcset: i.webpSrcSet
|
|
363
|
+
}, null, 8, Ee)) : y("", !0),
|
|
364
|
+
N("img", {
|
|
389
365
|
loading: "lazy",
|
|
390
366
|
alt: t.altText,
|
|
391
367
|
role: t.altText ? "presentation" : void 0,
|
|
392
368
|
style: I({
|
|
393
369
|
objectPosition: t.backgroundPosition || "center",
|
|
394
370
|
objectFit: t.backgroundSize || "cover",
|
|
395
|
-
...
|
|
371
|
+
...i.aspectRatioCss
|
|
396
372
|
}),
|
|
397
373
|
class: j(
|
|
398
|
-
|
|
374
|
+
i._classStringToObject(
|
|
399
375
|
"builder-image" + (t.className ? " " + t.className : "") + " img-7jvpanrlkn"
|
|
400
376
|
)
|
|
401
377
|
),
|
|
402
378
|
src: t.image,
|
|
403
|
-
srcset:
|
|
379
|
+
srcset: i.srcSetToUse,
|
|
404
380
|
sizes: t.sizes
|
|
405
|
-
}, null, 14,
|
|
381
|
+
}, null, 14, Ae)
|
|
406
382
|
]),
|
|
407
|
-
t.aspectRatio && !(((c = (
|
|
383
|
+
t.aspectRatio && !(((c = (r = t.builderBlock) == null ? void 0 : r.children) == null ? void 0 : c.length) && t.fitContent) ? (d(), m("div", {
|
|
408
384
|
key: 0,
|
|
409
385
|
class: "builder-image-sizer div-7jvpanrlkn",
|
|
410
386
|
style: I({
|
|
411
387
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
412
388
|
})
|
|
413
|
-
}, null, 4)) :
|
|
414
|
-
((l = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length) && t.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) :
|
|
415
|
-
!t.fitContent && e.children ? (d(),
|
|
389
|
+
}, null, 4)) : y("", !0),
|
|
390
|
+
((l = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length) && t.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : y("", !0),
|
|
391
|
+
!t.fitContent && e.children ? (d(), m("div", je, [
|
|
416
392
|
A(e.$slots, "default", {}, void 0, !0)
|
|
417
|
-
])) :
|
|
393
|
+
])) : y("", !0)
|
|
418
394
|
], 64);
|
|
419
395
|
}
|
|
420
|
-
const
|
|
421
|
-
function
|
|
396
|
+
const Be = /* @__PURE__ */ h(Re, [["render", Ve], ["__scopeId", "data-v-22833d9f"]]);
|
|
397
|
+
function p() {
|
|
422
398
|
return typeof window < "u" && typeof document < "u";
|
|
423
399
|
}
|
|
424
|
-
function
|
|
425
|
-
return
|
|
400
|
+
function Fe() {
|
|
401
|
+
return p() && window.self !== window.top;
|
|
426
402
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
403
|
+
function v() {
|
|
404
|
+
return Fe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
429
405
|
}
|
|
430
|
-
const
|
|
406
|
+
const Pe = () => import("./block-styles.bab3c28f.js").then((e) => e.default).catch((e) => {
|
|
431
407
|
throw console.error(
|
|
432
408
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
433
409
|
e
|
|
434
410
|
), e;
|
|
435
|
-
}),
|
|
411
|
+
}), Oe = () => import("./render-block.5350aee7.js").then((e) => e.default).catch((e) => {
|
|
436
412
|
throw console.error(
|
|
437
413
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
438
414
|
e
|
|
439
415
|
), e;
|
|
440
|
-
}),
|
|
416
|
+
}), Ue = {
|
|
441
417
|
name: "render-blocks",
|
|
442
418
|
components: {
|
|
443
|
-
RenderBlock: x(
|
|
444
|
-
BlockStyles: x(
|
|
419
|
+
RenderBlock: x(Oe),
|
|
420
|
+
BlockStyles: x(Pe)
|
|
445
421
|
},
|
|
446
422
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
447
423
|
inject: {
|
|
448
|
-
builderContext:
|
|
424
|
+
builderContext: V.key
|
|
449
425
|
},
|
|
450
426
|
computed: {
|
|
451
427
|
className() {
|
|
@@ -456,7 +432,7 @@ const Le = () => import("./block-styles.dbf81cfb.js").then((e) => e.default).cat
|
|
|
456
432
|
methods: {
|
|
457
433
|
onClick() {
|
|
458
434
|
var e, n;
|
|
459
|
-
|
|
435
|
+
v() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
460
436
|
{
|
|
461
437
|
type: "builder.clickEmptyBlocks",
|
|
462
438
|
data: {
|
|
@@ -469,7 +445,7 @@ const Le = () => import("./block-styles.dbf81cfb.js").then((e) => e.default).cat
|
|
|
469
445
|
},
|
|
470
446
|
onMouseEnter() {
|
|
471
447
|
var e, n;
|
|
472
|
-
|
|
448
|
+
v() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
473
449
|
{
|
|
474
450
|
type: "builder.hoverEmptyBlocks",
|
|
475
451
|
data: {
|
|
@@ -491,36 +467,36 @@ const Le = () => import("./block-styles.dbf81cfb.js").then((e) => e.default).cat
|
|
|
491
467
|
}
|
|
492
468
|
}
|
|
493
469
|
};
|
|
494
|
-
const
|
|
495
|
-
function
|
|
496
|
-
const
|
|
497
|
-
return d(),
|
|
498
|
-
class: j(
|
|
470
|
+
const We = ["builder-path", "builder-parent-id", "dataSet"];
|
|
471
|
+
function Me(e, n, t, o, s, i) {
|
|
472
|
+
const r = k("render-block"), c = k("block-styles");
|
|
473
|
+
return d(), m("div", {
|
|
474
|
+
class: j(i._classStringToObject(i.className + " div-7fq9d0i380")),
|
|
499
475
|
"builder-path": t.path,
|
|
500
476
|
"builder-parent-id": t.parent,
|
|
501
477
|
dataSet: {
|
|
502
|
-
class:
|
|
478
|
+
class: i.className
|
|
503
479
|
},
|
|
504
480
|
style: I(t.styleProp),
|
|
505
|
-
onClick: n[0] || (n[0] = (a) =>
|
|
506
|
-
onMouseenter: n[1] || (n[1] = (a) =>
|
|
481
|
+
onClick: n[0] || (n[0] = (a) => i.onClick()),
|
|
482
|
+
onMouseenter: n[1] || (n[1] = (a) => i.onMouseEnter())
|
|
507
483
|
}, [
|
|
508
|
-
t.blocks ? (d(!0),
|
|
484
|
+
t.blocks ? (d(!0), m(E, { key: 0 }, P(t.blocks, (a, l) => (d(), T(r, {
|
|
509
485
|
key: "render-block-" + a.id,
|
|
510
486
|
block: a,
|
|
511
|
-
context:
|
|
512
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
513
|
-
t.blocks ? (d(!0),
|
|
487
|
+
context: i.builderContext
|
|
488
|
+
}, null, 8, ["block", "context"]))), 128)) : y("", !0),
|
|
489
|
+
t.blocks ? (d(!0), m(E, { key: 1 }, P(t.blocks, (a, l) => (d(), T(c, {
|
|
514
490
|
key: "block-style-" + a.id,
|
|
515
491
|
block: a,
|
|
516
|
-
context:
|
|
517
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
518
|
-
], 46,
|
|
492
|
+
context: i.builderContext
|
|
493
|
+
}, null, 8, ["block", "context"]))), 128)) : y("", !0)
|
|
494
|
+
], 46, We);
|
|
519
495
|
}
|
|
520
|
-
const
|
|
496
|
+
const Le = /* @__PURE__ */ h(Ue, [["render", Me], ["__scopeId", "data-v-1112d180"]]), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
521
497
|
__proto__: null,
|
|
522
|
-
default:
|
|
523
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
498
|
+
default: Le
|
|
499
|
+
}, Symbol.toStringTag, { value: "Module" })), Ne = {
|
|
524
500
|
name: "Core:Button",
|
|
525
501
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
526
502
|
defaultStyles: {
|
|
@@ -556,10 +532,10 @@ const ze = /* @__PURE__ */ g(Ne, [["render", $e], ["__scopeId", "data-v-1112d180
|
|
|
556
532
|
],
|
|
557
533
|
static: !0,
|
|
558
534
|
noWrap: !0
|
|
559
|
-
},
|
|
535
|
+
}, B = (e) => {
|
|
560
536
|
const n = e.toString().trim();
|
|
561
537
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
562
|
-
},
|
|
538
|
+
}, $e = {
|
|
563
539
|
name: "Columns",
|
|
564
540
|
inputs: [
|
|
565
541
|
{
|
|
@@ -746,7 +722,7 @@ const ze = /* @__PURE__ */ g(Ne, [["render", $e], ["__scopeId", "data-v-1112d180
|
|
|
746
722
|
]
|
|
747
723
|
}
|
|
748
724
|
],
|
|
749
|
-
onChange:
|
|
725
|
+
onChange: B((e) => {
|
|
750
726
|
function n() {
|
|
751
727
|
t.forEach((o) => {
|
|
752
728
|
o.delete("width");
|
|
@@ -754,9 +730,9 @@ const ze = /* @__PURE__ */ g(Ne, [["render", $e], ["__scopeId", "data-v-1112d180
|
|
|
754
730
|
}
|
|
755
731
|
const t = e.get("columns");
|
|
756
732
|
Array.isArray(t) && !!t.find(
|
|
757
|
-
(
|
|
733
|
+
(s) => s.get("width")
|
|
758
734
|
) && (!!t.find(
|
|
759
|
-
(
|
|
735
|
+
(i) => !i.get("width")
|
|
760
736
|
) || t.reduce((c, a) => c + a.get("width"), 0) !== 100) && n();
|
|
761
737
|
})
|
|
762
738
|
},
|
|
@@ -783,13 +759,13 @@ const ze = /* @__PURE__ */ g(Ne, [["render", $e], ["__scopeId", "data-v-1112d180
|
|
|
783
759
|
advanced: !0
|
|
784
760
|
}
|
|
785
761
|
]
|
|
786
|
-
},
|
|
762
|
+
}, He = {
|
|
787
763
|
name: "Fragment",
|
|
788
764
|
static: !0,
|
|
789
765
|
hidden: !0,
|
|
790
766
|
canHaveChildren: !0,
|
|
791
767
|
noWrap: !0
|
|
792
|
-
},
|
|
768
|
+
}, Ke = {
|
|
793
769
|
name: "Image",
|
|
794
770
|
static: !0,
|
|
795
771
|
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",
|
|
@@ -808,32 +784,32 @@ const ze = /* @__PURE__ */ g(Ne, [["render", $e], ["__scopeId", "data-v-1112d180
|
|
|
808
784
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
809
785
|
required: !0,
|
|
810
786
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
811
|
-
onChange:
|
|
787
|
+
onChange: B(
|
|
812
788
|
(e) => {
|
|
813
789
|
e.delete("srcset"), e.delete("noWebp");
|
|
814
|
-
function t(
|
|
790
|
+
function t(r, c = 6e4) {
|
|
815
791
|
return new Promise((a, l) => {
|
|
816
|
-
const
|
|
817
|
-
let
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
},
|
|
821
|
-
console.warn("Image load failed",
|
|
822
|
-
}),
|
|
823
|
-
|
|
792
|
+
const u = document.createElement("img");
|
|
793
|
+
let g = !1;
|
|
794
|
+
u.onload = () => {
|
|
795
|
+
g = !0, a(u);
|
|
796
|
+
}, u.addEventListener("error", (f) => {
|
|
797
|
+
console.warn("Image load failed", f.error), l(f.error);
|
|
798
|
+
}), u.src = r, setTimeout(() => {
|
|
799
|
+
g || l(new Error("Image load timed out"));
|
|
824
800
|
}, c);
|
|
825
801
|
});
|
|
826
802
|
}
|
|
827
|
-
function o(
|
|
828
|
-
return Math.round(
|
|
803
|
+
function o(r) {
|
|
804
|
+
return Math.round(r * 1e3) / 1e3;
|
|
829
805
|
}
|
|
830
|
-
const
|
|
831
|
-
if (fetch(
|
|
832
|
-
|
|
833
|
-
}),
|
|
834
|
-
return t(
|
|
806
|
+
const s = e.get("image"), i = e.get("aspectRatio");
|
|
807
|
+
if (fetch(s).then((r) => r.blob()).then((r) => {
|
|
808
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
809
|
+
}), s && (!i || i === 0.7041))
|
|
810
|
+
return t(s).then((r) => {
|
|
835
811
|
const c = e.get("aspectRatio");
|
|
836
|
-
e.get("image") ===
|
|
812
|
+
e.get("image") === s && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", o(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
837
813
|
});
|
|
838
814
|
}
|
|
839
815
|
)
|
|
@@ -916,7 +892,7 @@ const ze = /* @__PURE__ */ g(Ne, [["render", $e], ["__scopeId", "data-v-1112d180
|
|
|
916
892
|
defaultValue: 0.7041
|
|
917
893
|
}
|
|
918
894
|
]
|
|
919
|
-
},
|
|
895
|
+
}, ze = {
|
|
920
896
|
name: "Core:Section",
|
|
921
897
|
static: !0,
|
|
922
898
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -960,27 +936,27 @@ const ze = /* @__PURE__ */ g(Ne, [["render", $e], ["__scopeId", "data-v-1112d180
|
|
|
960
936
|
}
|
|
961
937
|
}
|
|
962
938
|
]
|
|
963
|
-
},
|
|
939
|
+
}, De = {
|
|
964
940
|
name: "builder-section-component",
|
|
965
941
|
props: ["maxWidth", "attributes"],
|
|
966
942
|
methods: {
|
|
967
943
|
filterAttrs: function(n = {}, t) {
|
|
968
944
|
const o = "v-on:";
|
|
969
|
-
return Object.keys(n).filter((
|
|
970
|
-
const
|
|
971
|
-
return t ?
|
|
945
|
+
return Object.keys(n).filter((s) => {
|
|
946
|
+
const i = s.startsWith(o);
|
|
947
|
+
return t ? i : !i;
|
|
972
948
|
}).reduce(
|
|
973
|
-
(
|
|
974
|
-
...
|
|
975
|
-
[
|
|
949
|
+
(s, i) => ({
|
|
950
|
+
...s,
|
|
951
|
+
[i.replace(o, "")]: n[i]
|
|
976
952
|
}),
|
|
977
953
|
{}
|
|
978
954
|
);
|
|
979
955
|
}
|
|
980
956
|
}
|
|
981
957
|
};
|
|
982
|
-
function
|
|
983
|
-
return d(),
|
|
958
|
+
function qe(e, n, t, o, s, i) {
|
|
959
|
+
return d(), m("section", S({
|
|
984
960
|
style: {
|
|
985
961
|
width: "100%",
|
|
986
962
|
alignSelf: "stretch",
|
|
@@ -993,11 +969,11 @@ function Ye(e, n, t, o, r, s) {
|
|
|
993
969
|
marginLeft: "auto",
|
|
994
970
|
marginRight: "auto"
|
|
995
971
|
}
|
|
996
|
-
},
|
|
972
|
+
}, i.filterAttrs(t.attributes, !1), C(i.filterAttrs(t.attributes, !0), !0)), [
|
|
997
973
|
A(e.$slots, "default")
|
|
998
974
|
], 16);
|
|
999
975
|
}
|
|
1000
|
-
const
|
|
976
|
+
const Ge = /* @__PURE__ */ h(De, [["render", qe]]), Je = {
|
|
1001
977
|
name: "Symbol",
|
|
1002
978
|
noWrap: !0,
|
|
1003
979
|
static: !0,
|
|
@@ -1036,11 +1012,11 @@ const Xe = /* @__PURE__ */ g(Je, [["render", Ye]]), Qe = {
|
|
|
1036
1012
|
}
|
|
1037
1013
|
]
|
|
1038
1014
|
};
|
|
1039
|
-
function
|
|
1015
|
+
function Ye() {
|
|
1040
1016
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1041
1017
|
}
|
|
1042
|
-
function
|
|
1043
|
-
const e =
|
|
1018
|
+
function Xe() {
|
|
1019
|
+
const e = Ye().fetch;
|
|
1044
1020
|
if (typeof e > "u")
|
|
1045
1021
|
throw console.warn(
|
|
1046
1022
|
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
@@ -1048,12 +1024,12 @@ function et() {
|
|
|
1048
1024
|
), new Error("Builder SDK could not find a global `fetch` function");
|
|
1049
1025
|
return e;
|
|
1050
1026
|
}
|
|
1051
|
-
const
|
|
1027
|
+
const ee = Xe(), _ = (e) => e != null, Qe = (e) => {
|
|
1052
1028
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1053
1029
|
return e;
|
|
1054
1030
|
const n = e.split(".");
|
|
1055
1031
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
1056
|
-
},
|
|
1032
|
+
}, te = async ({
|
|
1057
1033
|
name: e,
|
|
1058
1034
|
canTrack: n
|
|
1059
1035
|
}) => {
|
|
@@ -1064,23 +1040,23 @@ const te = et(), tt = (e) => {
|
|
|
1064
1040
|
console.debug("[COOKIE] GET error: ", o);
|
|
1065
1041
|
return;
|
|
1066
1042
|
}
|
|
1067
|
-
},
|
|
1043
|
+
}, Ze = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).filter(_).join("; "), et = [
|
|
1068
1044
|
["secure", ""],
|
|
1069
1045
|
["SameSite", "None"]
|
|
1070
|
-
],
|
|
1046
|
+
], tt = ({
|
|
1071
1047
|
name: e,
|
|
1072
1048
|
value: n,
|
|
1073
1049
|
expires: t
|
|
1074
1050
|
}) => {
|
|
1075
|
-
const
|
|
1051
|
+
const s = (p() ? location.protocol === "https:" : !0) ? et : [[]], i = t ? [["expires", t.toUTCString()]] : [[]], r = [
|
|
1076
1052
|
[e, n],
|
|
1077
|
-
...
|
|
1053
|
+
...i,
|
|
1078
1054
|
["path", "/"],
|
|
1079
|
-
["domain",
|
|
1080
|
-
...
|
|
1055
|
+
["domain", Qe(window.location.hostname)],
|
|
1056
|
+
...s
|
|
1081
1057
|
];
|
|
1082
|
-
return
|
|
1083
|
-
},
|
|
1058
|
+
return Ze(r);
|
|
1059
|
+
}, ne = async ({
|
|
1084
1060
|
name: e,
|
|
1085
1061
|
value: n,
|
|
1086
1062
|
expires: t,
|
|
@@ -1089,32 +1065,32 @@ const te = et(), tt = (e) => {
|
|
|
1089
1065
|
try {
|
|
1090
1066
|
if (!o)
|
|
1091
1067
|
return;
|
|
1092
|
-
const
|
|
1093
|
-
document.cookie =
|
|
1094
|
-
} catch (
|
|
1095
|
-
console.warn("[COOKIE] SET error: ",
|
|
1068
|
+
const s = tt({ name: e, value: n, expires: t });
|
|
1069
|
+
document.cookie = s;
|
|
1070
|
+
} catch (s) {
|
|
1071
|
+
console.warn("[COOKIE] SET error: ", s);
|
|
1096
1072
|
}
|
|
1097
|
-
},
|
|
1073
|
+
}, nt = "builderio.variations", oe = (e) => `${nt}.${e}`, ot = ({
|
|
1098
1074
|
contentId: e,
|
|
1099
1075
|
canTrack: n
|
|
1100
|
-
}) =>
|
|
1076
|
+
}) => te({ name: oe(e), canTrack: n }), it = ({
|
|
1101
1077
|
contentId: e,
|
|
1102
1078
|
canTrack: n,
|
|
1103
1079
|
value: t
|
|
1104
|
-
}) =>
|
|
1080
|
+
}) => ne({ name: oe(e), value: t, canTrack: n }), st = (e) => _(e.id) && _(e.variations) && Object.keys(e.variations).length > 0, rt = ({
|
|
1105
1081
|
id: e,
|
|
1106
1082
|
variations: n
|
|
1107
1083
|
}) => {
|
|
1108
|
-
var
|
|
1084
|
+
var s;
|
|
1109
1085
|
let t = 0;
|
|
1110
1086
|
const o = Math.random();
|
|
1111
|
-
for (const
|
|
1112
|
-
const
|
|
1113
|
-
if (t +=
|
|
1114
|
-
return
|
|
1087
|
+
for (const i in n) {
|
|
1088
|
+
const r = (s = n[i]) == null ? void 0 : s.testRatio;
|
|
1089
|
+
if (t += r, o < t)
|
|
1090
|
+
return i;
|
|
1115
1091
|
}
|
|
1116
1092
|
return e;
|
|
1117
|
-
},
|
|
1093
|
+
}, H = ({
|
|
1118
1094
|
item: e,
|
|
1119
1095
|
testGroupId: n
|
|
1120
1096
|
}) => {
|
|
@@ -1127,170 +1103,181 @@ const te = et(), tt = (e) => {
|
|
|
1127
1103
|
testVariationId: t.id,
|
|
1128
1104
|
testVariationName: t.name || (t.id === e.id ? "Default" : "")
|
|
1129
1105
|
};
|
|
1130
|
-
},
|
|
1106
|
+
}, at = async ({
|
|
1131
1107
|
item: e,
|
|
1132
1108
|
canTrack: n
|
|
1133
1109
|
}) => {
|
|
1134
|
-
const t = await
|
|
1110
|
+
const t = await ot({
|
|
1135
1111
|
canTrack: n,
|
|
1136
1112
|
contentId: e.id
|
|
1137
|
-
}), o = t ?
|
|
1113
|
+
}), o = t ? H({ item: e, testGroupId: t }) : void 0;
|
|
1138
1114
|
if (o)
|
|
1139
1115
|
return o;
|
|
1140
1116
|
{
|
|
1141
|
-
const
|
|
1117
|
+
const s = rt({
|
|
1142
1118
|
variations: e.variations,
|
|
1143
1119
|
id: e.id
|
|
1144
1120
|
});
|
|
1145
|
-
return
|
|
1121
|
+
return it({
|
|
1146
1122
|
contentId: e.id,
|
|
1147
|
-
value:
|
|
1123
|
+
value: s,
|
|
1148
1124
|
canTrack: n
|
|
1149
|
-
}).catch((
|
|
1150
|
-
console.error("could not store A/B test variation: ",
|
|
1151
|
-
}),
|
|
1125
|
+
}).catch((i) => {
|
|
1126
|
+
console.error("could not store A/B test variation: ", i);
|
|
1127
|
+
}), H({ item: e, testGroupId: s });
|
|
1152
1128
|
}
|
|
1153
|
-
},
|
|
1129
|
+
}, ct = async ({
|
|
1154
1130
|
item: e,
|
|
1155
1131
|
canTrack: n
|
|
1156
1132
|
}) => {
|
|
1157
|
-
if (!
|
|
1133
|
+
if (!st(e))
|
|
1158
1134
|
return;
|
|
1159
|
-
const t = await
|
|
1135
|
+
const t = await at({ item: e, canTrack: n });
|
|
1160
1136
|
Object.assign(e, t);
|
|
1161
1137
|
};
|
|
1162
|
-
function
|
|
1163
|
-
return Object.keys(e).reduce((o,
|
|
1164
|
-
const
|
|
1138
|
+
function O(e, n = null, t = ".") {
|
|
1139
|
+
return Object.keys(e).reduce((o, s) => {
|
|
1140
|
+
const i = e[s], r = [n, s].filter(Boolean).join(t);
|
|
1165
1141
|
return [
|
|
1166
|
-
typeof
|
|
1167
|
-
|
|
1168
|
-
!(Array.isArray(
|
|
1169
|
-
].every(Boolean) ? { ...o, ...
|
|
1142
|
+
typeof i == "object",
|
|
1143
|
+
i !== null,
|
|
1144
|
+
!(Array.isArray(i) && i.length === 0)
|
|
1145
|
+
].every(Boolean) ? { ...o, ...O(i, r, t) } : { ...o, [r]: i };
|
|
1170
1146
|
}, {});
|
|
1171
1147
|
}
|
|
1172
|
-
const
|
|
1148
|
+
const K = "builder.", lt = "options.", dt = (e) => {
|
|
1173
1149
|
const n = {};
|
|
1174
1150
|
return e.forEach((t, o) => {
|
|
1175
1151
|
n[o] = t;
|
|
1176
1152
|
}), n;
|
|
1177
|
-
},
|
|
1153
|
+
}, ut = (e) => {
|
|
1178
1154
|
if (!e)
|
|
1179
1155
|
return {};
|
|
1180
|
-
const n =
|
|
1156
|
+
const n = ie(e), t = {};
|
|
1181
1157
|
return Object.keys(n).forEach((o) => {
|
|
1182
|
-
if (o.startsWith(
|
|
1183
|
-
const
|
|
1184
|
-
t[
|
|
1158
|
+
if (o.startsWith(K)) {
|
|
1159
|
+
const s = o.replace(K, "").replace(lt, "");
|
|
1160
|
+
t[s] = n[o];
|
|
1185
1161
|
}
|
|
1186
1162
|
}), t;
|
|
1187
|
-
},
|
|
1188
|
-
if (!
|
|
1163
|
+
}, mt = () => {
|
|
1164
|
+
if (!p())
|
|
1189
1165
|
return {};
|
|
1190
1166
|
const e = new URLSearchParams(window.location.search);
|
|
1191
|
-
return
|
|
1192
|
-
},
|
|
1167
|
+
return ut(e);
|
|
1168
|
+
}, ie = (e) => e instanceof URLSearchParams ? dt(e) : e, pt = (e) => {
|
|
1193
1169
|
const {
|
|
1194
1170
|
limit: n = 30,
|
|
1195
1171
|
userAttributes: t,
|
|
1196
1172
|
query: o,
|
|
1197
|
-
noTraverse:
|
|
1198
|
-
model:
|
|
1199
|
-
apiKey:
|
|
1173
|
+
noTraverse: s = !1,
|
|
1174
|
+
model: i,
|
|
1175
|
+
apiKey: r,
|
|
1200
1176
|
includeRefs: c = !0,
|
|
1201
|
-
locale: a
|
|
1177
|
+
locale: a,
|
|
1178
|
+
apiVersion: l = "v2"
|
|
1202
1179
|
} = e;
|
|
1203
|
-
if (!
|
|
1180
|
+
if (!r)
|
|
1204
1181
|
throw new Error("Missing API key");
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1182
|
+
if (!["v2", "v3"].includes(l))
|
|
1183
|
+
throw new Error(
|
|
1184
|
+
`Invalid apiVersion: expected 'v2' or 'v3', received '${l}'`
|
|
1185
|
+
);
|
|
1186
|
+
const u = new URL(
|
|
1187
|
+
`https://cdn.builder.io/api/${l}/content/${i}?apiKey=${r}&limit=${n}&noTraverse=${s}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
1188
|
+
), g = {
|
|
1189
|
+
...mt(),
|
|
1190
|
+
...ie(e.options || {})
|
|
1191
|
+
}, f = O(g);
|
|
1192
|
+
for (const b in f)
|
|
1193
|
+
u.searchParams.set(b, String(f[b]));
|
|
1194
|
+
if (t && u.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
1195
|
+
const b = O({ query: o });
|
|
1196
|
+
for (const w in b)
|
|
1197
|
+
u.searchParams.set(w, JSON.stringify(b[w]));
|
|
1217
1198
|
}
|
|
1218
|
-
return
|
|
1199
|
+
return u;
|
|
1219
1200
|
};
|
|
1220
|
-
async function
|
|
1221
|
-
return (await
|
|
1201
|
+
async function se(e) {
|
|
1202
|
+
return (await ht({ ...e, limit: 1 })).results[0] || null;
|
|
1222
1203
|
}
|
|
1223
|
-
async function
|
|
1224
|
-
const n =
|
|
1225
|
-
if (
|
|
1226
|
-
for (const
|
|
1227
|
-
await
|
|
1204
|
+
async function ht(e) {
|
|
1205
|
+
const n = pt(e), o = await (await ee(n.href)).json(), s = e.canTrack !== !1;
|
|
1206
|
+
if (s && Array.isArray(o.results))
|
|
1207
|
+
for (const i of o.results)
|
|
1208
|
+
await ct({ item: i, canTrack: s });
|
|
1228
1209
|
return o;
|
|
1229
1210
|
}
|
|
1230
|
-
const
|
|
1211
|
+
const ft = () => Promise.resolve().then(() => Tn).then((e) => e.default).catch((e) => {
|
|
1231
1212
|
throw console.error(
|
|
1232
1213
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
1233
1214
|
e
|
|
1234
1215
|
), e;
|
|
1235
|
-
}),
|
|
1216
|
+
}), gt = {
|
|
1236
1217
|
name: "builder-symbol",
|
|
1237
|
-
components: { RenderContent: x(
|
|
1218
|
+
components: { RenderContent: x(ft) },
|
|
1238
1219
|
props: ["attributes", "symbol", "dynamic"],
|
|
1239
1220
|
data() {
|
|
1240
|
-
|
|
1221
|
+
var e, n, t;
|
|
1222
|
+
return {
|
|
1223
|
+
className: [
|
|
1224
|
+
...Object.keys(this.attributes.class),
|
|
1225
|
+
"builder-symbol",
|
|
1226
|
+
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
1227
|
+
((n = this.symbol) == null ? void 0 : n.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
1228
|
+
].filter(Boolean).join(" "),
|
|
1229
|
+
contentToUse: (t = this.symbol) == null ? void 0 : t.content
|
|
1230
|
+
};
|
|
1241
1231
|
},
|
|
1242
1232
|
inject: {
|
|
1243
|
-
builderContext:
|
|
1233
|
+
builderContext: V.key
|
|
1234
|
+
},
|
|
1235
|
+
mounted() {
|
|
1236
|
+
this.fetchContent();
|
|
1244
1237
|
},
|
|
1245
1238
|
watch: {
|
|
1246
1239
|
onUpdateHook0: {
|
|
1247
1240
|
handler() {
|
|
1248
|
-
|
|
1249
|
-
const e = this.symbol;
|
|
1250
|
-
e && !e.content && !this.fetchedContent && e.model && ((n = this.builderContext) == null ? void 0 : n.apiKey) && ie({
|
|
1251
|
-
model: e.model,
|
|
1252
|
-
apiKey: this.builderContext.apiKey,
|
|
1253
|
-
query: {
|
|
1254
|
-
id: e.entry
|
|
1255
|
-
}
|
|
1256
|
-
}).then((t) => {
|
|
1257
|
-
this.fetchedContent = t;
|
|
1258
|
-
});
|
|
1241
|
+
this.fetchContent();
|
|
1259
1242
|
},
|
|
1260
1243
|
immediate: !0
|
|
1261
1244
|
}
|
|
1262
1245
|
},
|
|
1263
1246
|
computed: {
|
|
1264
|
-
className() {
|
|
1265
|
-
var e, n;
|
|
1266
|
-
return [
|
|
1267
|
-
...Object.keys(this.attributes.class),
|
|
1268
|
-
"builder-symbol",
|
|
1269
|
-
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
1270
|
-
((n = this.symbol) == null ? void 0 : n.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
1271
|
-
].filter(Boolean).join(" ");
|
|
1272
|
-
},
|
|
1273
|
-
contentToUse() {
|
|
1274
|
-
var e;
|
|
1275
|
-
return ((e = this.symbol) == null ? void 0 : e.content) || this.fetchedContent;
|
|
1276
|
-
},
|
|
1277
1247
|
onUpdateHook0() {
|
|
1278
1248
|
return {
|
|
1279
|
-
0: this.symbol
|
|
1280
|
-
1: this.fetchedContent
|
|
1249
|
+
0: this.symbol
|
|
1281
1250
|
};
|
|
1282
1251
|
}
|
|
1283
1252
|
},
|
|
1284
1253
|
methods: {
|
|
1254
|
+
fetchContent() {
|
|
1255
|
+
var e, n;
|
|
1256
|
+
!this.contentToUse && ((e = this.symbol) == null ? void 0 : e.model) && ((n = this.builderContext) == null ? void 0 : n.apiKey) && se({
|
|
1257
|
+
model: this.symbol.model,
|
|
1258
|
+
apiKey: this.builderContext.apiKey,
|
|
1259
|
+
apiVersion: this.builderContext.apiVersion,
|
|
1260
|
+
query: {
|
|
1261
|
+
id: this.symbol.entry
|
|
1262
|
+
}
|
|
1263
|
+
}).then((t) => {
|
|
1264
|
+
t && (this.contentToUse = t);
|
|
1265
|
+
}).catch((t) => {
|
|
1266
|
+
console.error(
|
|
1267
|
+
"[Builder.io]: Could not fetch symbol content: ",
|
|
1268
|
+
t
|
|
1269
|
+
);
|
|
1270
|
+
});
|
|
1271
|
+
},
|
|
1285
1272
|
filterAttrs: function(n = {}, t) {
|
|
1286
1273
|
const o = "v-on:";
|
|
1287
|
-
return Object.keys(n).filter((
|
|
1288
|
-
const
|
|
1289
|
-
return t ?
|
|
1274
|
+
return Object.keys(n).filter((s) => {
|
|
1275
|
+
const i = s.startsWith(o);
|
|
1276
|
+
return t ? i : !i;
|
|
1290
1277
|
}).reduce(
|
|
1291
|
-
(
|
|
1292
|
-
...
|
|
1293
|
-
[
|
|
1278
|
+
(s, i) => ({
|
|
1279
|
+
...s,
|
|
1280
|
+
[i.replace(o, "")]: n[i]
|
|
1294
1281
|
}),
|
|
1295
1282
|
{}
|
|
1296
1283
|
);
|
|
@@ -1305,31 +1292,32 @@ const yt = () => Promise.resolve().then(() => An).then((e) => e.default).catch((
|
|
|
1305
1292
|
return n;
|
|
1306
1293
|
}
|
|
1307
1294
|
}
|
|
1308
|
-
},
|
|
1309
|
-
function
|
|
1310
|
-
var c, a, l,
|
|
1311
|
-
const
|
|
1312
|
-
return d(),
|
|
1295
|
+
}, bt = ["dataSet"];
|
|
1296
|
+
function yt(e, n, t, o, s, i) {
|
|
1297
|
+
var c, a, l, u;
|
|
1298
|
+
const r = k("render-content");
|
|
1299
|
+
return d(), m("div", S({
|
|
1313
1300
|
dataSet: {
|
|
1314
1301
|
class: s.className
|
|
1315
1302
|
},
|
|
1316
|
-
class:
|
|
1317
|
-
},
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1303
|
+
class: i._classStringToObject(s.className)
|
|
1304
|
+
}, i.filterAttrs(t.attributes, !1), C(i.filterAttrs(t.attributes, !0), !0)), [
|
|
1305
|
+
X(r, {
|
|
1306
|
+
apiVersion: i.builderContext.apiVersion,
|
|
1307
|
+
apiKey: i.builderContext.apiKey,
|
|
1308
|
+
context: i.builderContext.context,
|
|
1309
|
+
customComponents: Object.values(i.builderContext.registeredComponents),
|
|
1322
1310
|
data: {
|
|
1323
1311
|
...(c = t.symbol) == null ? void 0 : c.data,
|
|
1324
|
-
...
|
|
1325
|
-
...(
|
|
1312
|
+
...i.builderContext.state,
|
|
1313
|
+
...(l = (a = s.contentToUse) == null ? void 0 : a.data) == null ? void 0 : l.state
|
|
1326
1314
|
},
|
|
1327
|
-
model: (
|
|
1315
|
+
model: (u = t.symbol) == null ? void 0 : u.model,
|
|
1328
1316
|
content: s.contentToUse
|
|
1329
|
-
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
1330
|
-
], 16,
|
|
1317
|
+
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
1318
|
+
], 16, bt);
|
|
1331
1319
|
}
|
|
1332
|
-
const
|
|
1320
|
+
const vt = /* @__PURE__ */ h(gt, [["render", yt]]), xt = {
|
|
1333
1321
|
name: "Text",
|
|
1334
1322
|
static: !0,
|
|
1335
1323
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
@@ -1348,20 +1336,20 @@ const St = /* @__PURE__ */ g(vt, [["render", kt]]), _t = {
|
|
|
1348
1336
|
height: "auto",
|
|
1349
1337
|
textAlign: "center"
|
|
1350
1338
|
}
|
|
1351
|
-
},
|
|
1339
|
+
}, kt = {
|
|
1352
1340
|
name: "builder-text",
|
|
1353
1341
|
props: ["text"]
|
|
1354
|
-
},
|
|
1355
|
-
function
|
|
1356
|
-
return d(),
|
|
1342
|
+
}, St = ["innerHTML"];
|
|
1343
|
+
function _t(e, n, t, o, s, i) {
|
|
1344
|
+
return d(), m("span", {
|
|
1357
1345
|
class: "builder-text",
|
|
1358
1346
|
innerHTML: t.text,
|
|
1359
1347
|
style: {
|
|
1360
1348
|
outline: "none"
|
|
1361
1349
|
}
|
|
1362
|
-
}, null, 8,
|
|
1350
|
+
}, null, 8, St);
|
|
1363
1351
|
}
|
|
1364
|
-
const
|
|
1352
|
+
const wt = /* @__PURE__ */ h(kt, [["render", _t]]), Ct = {
|
|
1365
1353
|
name: "Video",
|
|
1366
1354
|
canHaveChildren: !0,
|
|
1367
1355
|
defaultStyles: {
|
|
@@ -1462,7 +1450,7 @@ const Tt = /* @__PURE__ */ g(Ct, [["render", It]]), Rt = {
|
|
|
1462
1450
|
advanced: !0
|
|
1463
1451
|
}
|
|
1464
1452
|
]
|
|
1465
|
-
},
|
|
1453
|
+
}, It = {
|
|
1466
1454
|
name: "builder-video",
|
|
1467
1455
|
props: [
|
|
1468
1456
|
"autoPlay",
|
|
@@ -1503,23 +1491,23 @@ const Tt = /* @__PURE__ */ g(Ct, [["render", It]]), Rt = {
|
|
|
1503
1491
|
};
|
|
1504
1492
|
}
|
|
1505
1493
|
}
|
|
1506
|
-
},
|
|
1507
|
-
function
|
|
1508
|
-
var
|
|
1509
|
-
return d(),
|
|
1494
|
+
}, Tt = ["src", "poster"];
|
|
1495
|
+
function Rt(e, n, t, o, s, i) {
|
|
1496
|
+
var r;
|
|
1497
|
+
return d(), m("video", S({
|
|
1510
1498
|
style: {
|
|
1511
1499
|
width: "100%",
|
|
1512
1500
|
height: "100%",
|
|
1513
|
-
...(
|
|
1501
|
+
...(r = t.attributes) == null ? void 0 : r.style,
|
|
1514
1502
|
objectFit: t.fit,
|
|
1515
1503
|
objectPosition: t.position,
|
|
1516
1504
|
borderRadius: 1
|
|
1517
1505
|
},
|
|
1518
1506
|
src: t.video || "no-src",
|
|
1519
1507
|
poster: t.posterImage
|
|
1520
|
-
},
|
|
1508
|
+
}, i.spreadProps), null, 16, Tt);
|
|
1521
1509
|
}
|
|
1522
|
-
const
|
|
1510
|
+
const Et = /* @__PURE__ */ h(It, [["render", Rt]]), At = {
|
|
1523
1511
|
name: "Embed",
|
|
1524
1512
|
static: !0,
|
|
1525
1513
|
inputs: [
|
|
@@ -1529,7 +1517,7 @@ const Ot = /* @__PURE__ */ g(Et, [["render", jt]]), Ft = {
|
|
|
1529
1517
|
required: !0,
|
|
1530
1518
|
defaultValue: "",
|
|
1531
1519
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1532
|
-
onChange:
|
|
1520
|
+
onChange: B(
|
|
1533
1521
|
(e) => {
|
|
1534
1522
|
const n = e.get("url");
|
|
1535
1523
|
if (n)
|
|
@@ -1554,11 +1542,11 @@ const Ot = /* @__PURE__ */ g(Et, [["render", jt]]), Ft = {
|
|
|
1554
1542
|
hideFromUI: !0
|
|
1555
1543
|
}
|
|
1556
1544
|
]
|
|
1557
|
-
},
|
|
1545
|
+
}, jt = [
|
|
1558
1546
|
"text/javascript",
|
|
1559
1547
|
"application/javascript",
|
|
1560
1548
|
"application/ecmascript"
|
|
1561
|
-
],
|
|
1549
|
+
], Vt = (e) => jt.includes(e.type), Bt = {
|
|
1562
1550
|
name: "builder-embed",
|
|
1563
1551
|
props: ["content"],
|
|
1564
1552
|
data() {
|
|
@@ -1591,7 +1579,7 @@ const Ot = /* @__PURE__ */ g(Et, [["render", jt]]), Ft = {
|
|
|
1591
1579
|
this.scriptsInserted.push(t.src);
|
|
1592
1580
|
const o = document.createElement("script");
|
|
1593
1581
|
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1594
|
-
} else if (
|
|
1582
|
+
} else if (Vt(t) && !this.scriptsRun.includes(t.innerText))
|
|
1595
1583
|
try {
|
|
1596
1584
|
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1597
1585
|
} catch (o) {
|
|
@@ -1600,15 +1588,15 @@ const Ot = /* @__PURE__ */ g(Et, [["render", jt]]), Ft = {
|
|
|
1600
1588
|
}
|
|
1601
1589
|
}
|
|
1602
1590
|
}
|
|
1603
|
-
},
|
|
1604
|
-
function
|
|
1605
|
-
return d(),
|
|
1591
|
+
}, Ft = ["innerHTML"];
|
|
1592
|
+
function Pt(e, n, t, o, s, i) {
|
|
1593
|
+
return d(), m("div", {
|
|
1606
1594
|
class: "builder-embed",
|
|
1607
1595
|
ref: "elem",
|
|
1608
1596
|
innerHTML: t.content
|
|
1609
|
-
}, null, 8,
|
|
1597
|
+
}, null, 8, Ft);
|
|
1610
1598
|
}
|
|
1611
|
-
const
|
|
1599
|
+
const Ot = /* @__PURE__ */ h(Bt, [["render", Pt]]), Ut = {
|
|
1612
1600
|
name: "builder-img-component",
|
|
1613
1601
|
props: [
|
|
1614
1602
|
"backgroundSize",
|
|
@@ -1619,36 +1607,36 @@ const Wt = /* @__PURE__ */ g(Vt, [["render", Lt]]), Nt = {
|
|
|
1619
1607
|
"attributes"
|
|
1620
1608
|
],
|
|
1621
1609
|
data() {
|
|
1622
|
-
return { isEditing:
|
|
1610
|
+
return { isEditing: v };
|
|
1623
1611
|
},
|
|
1624
1612
|
methods: {
|
|
1625
1613
|
filterAttrs: function(n = {}, t) {
|
|
1626
1614
|
const o = "v-on:";
|
|
1627
|
-
return Object.keys(n).filter((
|
|
1628
|
-
const
|
|
1629
|
-
return t ?
|
|
1615
|
+
return Object.keys(n).filter((s) => {
|
|
1616
|
+
const i = s.startsWith(o);
|
|
1617
|
+
return t ? i : !i;
|
|
1630
1618
|
}).reduce(
|
|
1631
|
-
(
|
|
1632
|
-
...
|
|
1633
|
-
[
|
|
1619
|
+
(s, i) => ({
|
|
1620
|
+
...s,
|
|
1621
|
+
[i.replace(o, "")]: n[i]
|
|
1634
1622
|
}),
|
|
1635
1623
|
{}
|
|
1636
1624
|
);
|
|
1637
1625
|
}
|
|
1638
1626
|
}
|
|
1639
|
-
},
|
|
1640
|
-
function
|
|
1641
|
-
return d(),
|
|
1627
|
+
}, Wt = ["alt", "src"];
|
|
1628
|
+
function Mt(e, n, t, o, s, i) {
|
|
1629
|
+
return d(), m("img", S({
|
|
1642
1630
|
style: {
|
|
1643
1631
|
objectFit: t.backgroundSize || "cover",
|
|
1644
1632
|
objectPosition: t.backgroundPosition || "center"
|
|
1645
1633
|
},
|
|
1646
|
-
key:
|
|
1634
|
+
key: s.isEditing() && t.imgSrc || "default-key",
|
|
1647
1635
|
alt: t.altText,
|
|
1648
1636
|
src: t.imgSrc || t.image
|
|
1649
|
-
},
|
|
1637
|
+
}, i.filterAttrs(t.attributes, !1), C(i.filterAttrs(t.attributes, !0), !0)), null, 16, Wt);
|
|
1650
1638
|
}
|
|
1651
|
-
const
|
|
1639
|
+
const Lt = /* @__PURE__ */ h(Ut, [["render", Mt]]), Nt = {
|
|
1652
1640
|
name: "Raw:Img",
|
|
1653
1641
|
hideFromInsertMenu: !0,
|
|
1654
1642
|
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",
|
|
@@ -1663,7 +1651,7 @@ const zt = /* @__PURE__ */ g(Nt, [["render", $t]]), Kt = {
|
|
|
1663
1651
|
],
|
|
1664
1652
|
noWrap: !0,
|
|
1665
1653
|
static: !0
|
|
1666
|
-
},
|
|
1654
|
+
}, $t = {
|
|
1667
1655
|
name: "builder-custom-code",
|
|
1668
1656
|
props: ["replaceNodes", "code"],
|
|
1669
1657
|
data() {
|
|
@@ -1710,19 +1698,19 @@ const zt = /* @__PURE__ */ g(Nt, [["render", $t]]), Kt = {
|
|
|
1710
1698
|
return n;
|
|
1711
1699
|
}
|
|
1712
1700
|
}
|
|
1713
|
-
},
|
|
1714
|
-
function
|
|
1715
|
-
return d(),
|
|
1701
|
+
}, Ht = ["innerHTML"];
|
|
1702
|
+
function Kt(e, n, t, o, s, i) {
|
|
1703
|
+
return d(), m("div", {
|
|
1716
1704
|
ref: "elem",
|
|
1717
1705
|
class: j(
|
|
1718
|
-
|
|
1706
|
+
i._classStringToObject(
|
|
1719
1707
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
1720
1708
|
)
|
|
1721
1709
|
),
|
|
1722
1710
|
innerHTML: t.code
|
|
1723
|
-
}, null, 10,
|
|
1711
|
+
}, null, 10, Ht);
|
|
1724
1712
|
}
|
|
1725
|
-
const
|
|
1713
|
+
const zt = /* @__PURE__ */ h($t, [["render", Kt]]), Dt = {
|
|
1726
1714
|
name: "Custom Code",
|
|
1727
1715
|
static: !0,
|
|
1728
1716
|
requiredPermissions: ["editCode"],
|
|
@@ -1748,35 +1736,35 @@ const Gt = /* @__PURE__ */ g(Ht, [["render", qt]]), Jt = {
|
|
|
1748
1736
|
advanced: !0
|
|
1749
1737
|
}
|
|
1750
1738
|
]
|
|
1751
|
-
},
|
|
1752
|
-
{ component:
|
|
1753
|
-
{ component:
|
|
1754
|
-
{ component:
|
|
1755
|
-
{ component:
|
|
1756
|
-
{ component:
|
|
1757
|
-
{ component:
|
|
1758
|
-
{ component:
|
|
1759
|
-
{ component:
|
|
1760
|
-
{ component:
|
|
1761
|
-
{ component:
|
|
1762
|
-
{ component:
|
|
1739
|
+
}, qt = () => [
|
|
1740
|
+
{ component: fe, ...Ne },
|
|
1741
|
+
{ component: Se, ...$e },
|
|
1742
|
+
{ component: zt, ...Dt },
|
|
1743
|
+
{ component: Ot, ...At },
|
|
1744
|
+
{ component: Ce, ...He },
|
|
1745
|
+
{ component: Be, ...Ke },
|
|
1746
|
+
{ component: Lt, ...Nt },
|
|
1747
|
+
{ component: Ge, ...ze },
|
|
1748
|
+
{ component: vt, ...Je },
|
|
1749
|
+
{ component: wt, ...xt },
|
|
1750
|
+
{ component: Et, ...Ct }
|
|
1763
1751
|
];
|
|
1764
|
-
function
|
|
1752
|
+
function z({
|
|
1765
1753
|
code: e,
|
|
1766
1754
|
context: n,
|
|
1767
1755
|
state: t,
|
|
1768
1756
|
event: o,
|
|
1769
|
-
isExpression:
|
|
1757
|
+
isExpression: s = !0
|
|
1770
1758
|
}) {
|
|
1771
1759
|
if (e === "") {
|
|
1772
1760
|
console.warn("Skipping evaluation of empty code block.");
|
|
1773
1761
|
return;
|
|
1774
1762
|
}
|
|
1775
|
-
const
|
|
1776
|
-
isEditing:
|
|
1777
|
-
isBrowser:
|
|
1778
|
-
isServer: !
|
|
1779
|
-
}, c =
|
|
1763
|
+
const i = {
|
|
1764
|
+
isEditing: v(),
|
|
1765
|
+
isBrowser: p(),
|
|
1766
|
+
isServer: !p()
|
|
1767
|
+
}, c = s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
1780
1768
|
try {
|
|
1781
1769
|
return new Function(
|
|
1782
1770
|
"builder",
|
|
@@ -1785,7 +1773,7 @@ function D({
|
|
|
1785
1773
|
"context",
|
|
1786
1774
|
"event",
|
|
1787
1775
|
c
|
|
1788
|
-
)(
|
|
1776
|
+
)(i, i, t, n, o);
|
|
1789
1777
|
} catch (a) {
|
|
1790
1778
|
console.warn(
|
|
1791
1779
|
`Builder custom code error:
|
|
@@ -1798,113 +1786,113 @@ function D({
|
|
|
1798
1786
|
);
|
|
1799
1787
|
}
|
|
1800
1788
|
}
|
|
1801
|
-
function
|
|
1802
|
-
return !
|
|
1789
|
+
function Gt() {
|
|
1790
|
+
return !p() || v() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1803
1791
|
}
|
|
1804
|
-
const
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1792
|
+
const re = [];
|
|
1793
|
+
function An(e, n) {
|
|
1794
|
+
return re.push({ component: e, ...n }), console.warn(
|
|
1807
1795
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1808
1796
|
), e;
|
|
1809
1797
|
}
|
|
1810
|
-
const
|
|
1798
|
+
const Jt = ({
|
|
1811
1799
|
component: e,
|
|
1812
1800
|
...n
|
|
1813
1801
|
}) => ({
|
|
1814
1802
|
type: "builder.registerComponent",
|
|
1815
|
-
data:
|
|
1816
|
-
}),
|
|
1803
|
+
data: Xt(n)
|
|
1804
|
+
}), Yt = (e) => typeof e == "function" ? B(e) : W(e), Xt = ({
|
|
1817
1805
|
inputs: e,
|
|
1818
1806
|
...n
|
|
1819
1807
|
}) => ({
|
|
1820
|
-
...
|
|
1808
|
+
...W(n),
|
|
1821
1809
|
inputs: e == null ? void 0 : e.map(
|
|
1822
1810
|
(t) => Object.entries(t).reduce(
|
|
1823
|
-
(o, [
|
|
1811
|
+
(o, [s, i]) => ({
|
|
1824
1812
|
...o,
|
|
1825
|
-
[
|
|
1813
|
+
[s]: Yt(i)
|
|
1826
1814
|
}),
|
|
1827
1815
|
{}
|
|
1828
1816
|
)
|
|
1829
1817
|
)
|
|
1830
1818
|
});
|
|
1831
|
-
function
|
|
1819
|
+
function Qt() {
|
|
1832
1820
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1833
1821
|
const n = Math.random() * 16 | 0;
|
|
1834
1822
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1835
1823
|
});
|
|
1836
1824
|
}
|
|
1837
|
-
function
|
|
1838
|
-
return
|
|
1825
|
+
function ae() {
|
|
1826
|
+
return Qt().replace(/-/g, "");
|
|
1839
1827
|
}
|
|
1840
|
-
const
|
|
1828
|
+
const ce = "builderSessionId", Zt = async ({
|
|
1841
1829
|
canTrack: e
|
|
1842
1830
|
}) => {
|
|
1843
1831
|
if (!e)
|
|
1844
1832
|
return;
|
|
1845
|
-
const n = await
|
|
1846
|
-
name:
|
|
1833
|
+
const n = await te({
|
|
1834
|
+
name: ce,
|
|
1847
1835
|
canTrack: e
|
|
1848
1836
|
});
|
|
1849
|
-
if (
|
|
1837
|
+
if (_(n))
|
|
1850
1838
|
return n;
|
|
1851
1839
|
{
|
|
1852
|
-
const t =
|
|
1853
|
-
return
|
|
1840
|
+
const t = en();
|
|
1841
|
+
return tn({ id: t, canTrack: e }), t;
|
|
1854
1842
|
}
|
|
1855
|
-
},
|
|
1843
|
+
}, en = () => ae(), tn = ({
|
|
1856
1844
|
id: e,
|
|
1857
1845
|
canTrack: n
|
|
1858
|
-
}) =>
|
|
1846
|
+
}) => ne({ name: ce, value: e, canTrack: n }), le = () => p() && typeof localStorage < "u" ? localStorage : void 0, nn = ({
|
|
1859
1847
|
key: e,
|
|
1860
1848
|
canTrack: n
|
|
1861
1849
|
}) => {
|
|
1862
1850
|
var t;
|
|
1863
1851
|
try {
|
|
1864
|
-
return n ? (t =
|
|
1852
|
+
return n ? (t = le()) == null ? void 0 : t.getItem(e) : void 0;
|
|
1865
1853
|
} catch (o) {
|
|
1866
1854
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1867
1855
|
return;
|
|
1868
1856
|
}
|
|
1869
|
-
},
|
|
1857
|
+
}, on = ({
|
|
1870
1858
|
key: e,
|
|
1871
1859
|
canTrack: n,
|
|
1872
1860
|
value: t
|
|
1873
1861
|
}) => {
|
|
1874
1862
|
var o;
|
|
1875
1863
|
try {
|
|
1876
|
-
n && ((o =
|
|
1877
|
-
} catch (
|
|
1878
|
-
console.debug("[LocalStorage] SET error: ",
|
|
1864
|
+
n && ((o = le()) == null || o.setItem(e, t));
|
|
1865
|
+
} catch (s) {
|
|
1866
|
+
console.debug("[LocalStorage] SET error: ", s);
|
|
1879
1867
|
}
|
|
1880
|
-
},
|
|
1868
|
+
}, de = "builderVisitorId", sn = ({ canTrack: e }) => {
|
|
1881
1869
|
if (!e)
|
|
1882
1870
|
return;
|
|
1883
|
-
const n =
|
|
1884
|
-
key:
|
|
1871
|
+
const n = nn({
|
|
1872
|
+
key: de,
|
|
1885
1873
|
canTrack: e
|
|
1886
1874
|
});
|
|
1887
|
-
if (
|
|
1875
|
+
if (_(n))
|
|
1888
1876
|
return n;
|
|
1889
1877
|
{
|
|
1890
|
-
const t =
|
|
1891
|
-
return
|
|
1878
|
+
const t = rn();
|
|
1879
|
+
return an({ id: t, canTrack: e }), t;
|
|
1892
1880
|
}
|
|
1893
|
-
},
|
|
1881
|
+
}, rn = () => ae(), an = ({
|
|
1894
1882
|
id: e,
|
|
1895
1883
|
canTrack: n
|
|
1896
|
-
}) =>
|
|
1897
|
-
key:
|
|
1884
|
+
}) => on({
|
|
1885
|
+
key: de,
|
|
1898
1886
|
value: e,
|
|
1899
1887
|
canTrack: n
|
|
1900
|
-
}),
|
|
1901
|
-
if (
|
|
1888
|
+
}), cn = () => {
|
|
1889
|
+
if (p()) {
|
|
1902
1890
|
const e = new URL(location.href);
|
|
1903
1891
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
1904
1892
|
} else
|
|
1905
1893
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
1906
|
-
},
|
|
1907
|
-
const e =
|
|
1894
|
+
}, ln = () => typeof navigator == "object" && navigator.userAgent || "", dn = () => {
|
|
1895
|
+
const e = ln(), n = {
|
|
1908
1896
|
Android() {
|
|
1909
1897
|
return e.match(/Android/i);
|
|
1910
1898
|
},
|
|
@@ -1923,38 +1911,38 @@ const le = "builderSessionId", nn = async ({
|
|
|
1923
1911
|
any() {
|
|
1924
1912
|
return n.Android() || n.BlackBerry() || n.iOS() || n.Opera() || n.Windows() || R === "reactNative";
|
|
1925
1913
|
}
|
|
1926
|
-
}, t = e.match(/Tablet|iPad/i), o =
|
|
1914
|
+
}, t = e.match(/Tablet|iPad/i), o = cn();
|
|
1927
1915
|
return {
|
|
1928
1916
|
urlPath: o == null ? void 0 : o.pathname,
|
|
1929
1917
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
1930
1918
|
device: t ? "tablet" : n.any() ? "mobile" : "desktop"
|
|
1931
1919
|
};
|
|
1932
|
-
},
|
|
1920
|
+
}, un = async ({
|
|
1933
1921
|
canTrack: e
|
|
1934
1922
|
}) => {
|
|
1935
1923
|
if (!e)
|
|
1936
1924
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1937
|
-
const n = await
|
|
1925
|
+
const n = await Zt({ canTrack: e }), t = sn({ canTrack: e });
|
|
1938
1926
|
return {
|
|
1939
1927
|
sessionId: n,
|
|
1940
1928
|
visitorId: t
|
|
1941
1929
|
};
|
|
1942
|
-
},
|
|
1930
|
+
}, mn = async ({
|
|
1943
1931
|
type: e,
|
|
1944
1932
|
canTrack: n,
|
|
1945
1933
|
apiKey: t,
|
|
1946
1934
|
metadata: o,
|
|
1947
|
-
...
|
|
1935
|
+
...s
|
|
1948
1936
|
}) => ({
|
|
1949
1937
|
type: e,
|
|
1950
1938
|
data: {
|
|
1951
|
-
...
|
|
1939
|
+
...s,
|
|
1952
1940
|
metadata: {
|
|
1953
1941
|
url: location.href,
|
|
1954
1942
|
...o
|
|
1955
1943
|
},
|
|
1956
|
-
...await
|
|
1957
|
-
userAttributes:
|
|
1944
|
+
...await un({ canTrack: n }),
|
|
1945
|
+
userAttributes: dn(),
|
|
1958
1946
|
ownerId: t
|
|
1959
1947
|
}
|
|
1960
1948
|
});
|
|
@@ -1965,11 +1953,11 @@ async function U(e) {
|
|
|
1965
1953
|
);
|
|
1966
1954
|
return;
|
|
1967
1955
|
}
|
|
1968
|
-
if (!!e.canTrack && !
|
|
1956
|
+
if (!!e.canTrack && !v() && !!(p() || R === "reactNative"))
|
|
1969
1957
|
return fetch("https://builder.io/api/v1/track", {
|
|
1970
1958
|
method: "POST",
|
|
1971
1959
|
body: JSON.stringify({
|
|
1972
|
-
events: [await
|
|
1960
|
+
events: [await mn(e)]
|
|
1973
1961
|
}),
|
|
1974
1962
|
headers: {
|
|
1975
1963
|
"content-type": "application/json"
|
|
@@ -1979,10 +1967,10 @@ async function U(e) {
|
|
|
1979
1967
|
console.error("Failed to track: ", n);
|
|
1980
1968
|
});
|
|
1981
1969
|
}
|
|
1982
|
-
const
|
|
1983
|
-
function
|
|
1984
|
-
let t =
|
|
1985
|
-
if (t || (t =
|
|
1970
|
+
const jn = (e) => U({ ...e, canTrack: !0 }), D = {};
|
|
1971
|
+
function pn(e, n) {
|
|
1972
|
+
let t = D[e];
|
|
1973
|
+
if (t || (t = D[e] = []), t.push(n), p()) {
|
|
1986
1974
|
const o = {
|
|
1987
1975
|
type: "builder.register",
|
|
1988
1976
|
data: {
|
|
@@ -1992,13 +1980,13 @@ function gn(e, n) {
|
|
|
1992
1980
|
};
|
|
1993
1981
|
try {
|
|
1994
1982
|
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
1995
|
-
} catch (
|
|
1996
|
-
console.debug("Could not postmessage",
|
|
1983
|
+
} catch (s) {
|
|
1984
|
+
console.debug("Could not postmessage", s);
|
|
1997
1985
|
}
|
|
1998
1986
|
}
|
|
1999
1987
|
}
|
|
2000
|
-
const
|
|
2001
|
-
|
|
1988
|
+
const hn = () => {
|
|
1989
|
+
pn("insertMenu", {
|
|
2002
1990
|
name: "_default",
|
|
2003
1991
|
default: !0,
|
|
2004
1992
|
items: [
|
|
@@ -2013,10 +2001,10 @@ const bn = () => {
|
|
|
2013
2001
|
]
|
|
2014
2002
|
});
|
|
2015
2003
|
};
|
|
2016
|
-
let
|
|
2017
|
-
const
|
|
2004
|
+
let q = !1;
|
|
2005
|
+
const fn = (e = {}) => {
|
|
2018
2006
|
var n, t;
|
|
2019
|
-
|
|
2007
|
+
q || (q = !0, p() && ((n = window.parent) == null || n.postMessage(
|
|
2020
2008
|
{
|
|
2021
2009
|
type: "builder.sdkInfo",
|
|
2022
2010
|
data: {
|
|
@@ -2036,36 +2024,36 @@ const yn = (e = {}) => {
|
|
|
2036
2024
|
},
|
|
2037
2025
|
"*"
|
|
2038
2026
|
), window.addEventListener("message", ({ data: o }) => {
|
|
2039
|
-
var
|
|
2027
|
+
var s, i;
|
|
2040
2028
|
if (!!(o != null && o.type))
|
|
2041
2029
|
switch (o.type) {
|
|
2042
2030
|
case "builder.evaluate": {
|
|
2043
|
-
const
|
|
2044
|
-
let
|
|
2031
|
+
const r = o.data.text, c = o.data.arguments || [], a = o.data.id, l = new Function(r);
|
|
2032
|
+
let u, g = null;
|
|
2045
2033
|
try {
|
|
2046
|
-
|
|
2047
|
-
} catch (
|
|
2048
|
-
|
|
2034
|
+
u = l.apply(null, c);
|
|
2035
|
+
} catch (f) {
|
|
2036
|
+
g = f;
|
|
2049
2037
|
}
|
|
2050
|
-
|
|
2038
|
+
g ? (s = window.parent) == null || s.postMessage(
|
|
2051
2039
|
{
|
|
2052
2040
|
type: "builder.evaluateError",
|
|
2053
|
-
data: { id: a, error:
|
|
2041
|
+
data: { id: a, error: g.message }
|
|
2054
2042
|
},
|
|
2055
2043
|
"*"
|
|
2056
|
-
) :
|
|
2057
|
-
var
|
|
2058
|
-
(
|
|
2044
|
+
) : u && typeof u.then == "function" ? u.then((f) => {
|
|
2045
|
+
var b;
|
|
2046
|
+
(b = window.parent) == null || b.postMessage(
|
|
2059
2047
|
{
|
|
2060
2048
|
type: "builder.evaluateResult",
|
|
2061
|
-
data: { id: a, result:
|
|
2049
|
+
data: { id: a, result: f }
|
|
2062
2050
|
},
|
|
2063
2051
|
"*"
|
|
2064
2052
|
);
|
|
2065
|
-
}).catch(console.error) : (
|
|
2053
|
+
}).catch(console.error) : (i = window.parent) == null || i.postMessage(
|
|
2066
2054
|
{
|
|
2067
2055
|
type: "builder.evaluateResult",
|
|
2068
|
-
data: { result:
|
|
2056
|
+
data: { result: u, id: a }
|
|
2069
2057
|
},
|
|
2070
2058
|
"*"
|
|
2071
2059
|
);
|
|
@@ -2074,10 +2062,10 @@ const yn = (e = {}) => {
|
|
|
2074
2062
|
}
|
|
2075
2063
|
})));
|
|
2076
2064
|
};
|
|
2077
|
-
function
|
|
2065
|
+
function G(e) {
|
|
2078
2066
|
return Math.round(e * 1e3) / 1e3;
|
|
2079
2067
|
}
|
|
2080
|
-
const
|
|
2068
|
+
const gn = (e, n, t = !0) => {
|
|
2081
2069
|
if (!(e instanceof HTMLElement))
|
|
2082
2070
|
return null;
|
|
2083
2071
|
let o = t ? e : e.parentElement;
|
|
@@ -2088,46 +2076,46 @@ const vn = (e, n, t = !0) => {
|
|
|
2088
2076
|
return o;
|
|
2089
2077
|
} while (o = o.parentElement);
|
|
2090
2078
|
return null;
|
|
2091
|
-
},
|
|
2079
|
+
}, bn = (e) => gn(e, (n) => {
|
|
2092
2080
|
const t = n.getAttribute("builder-id") || n.id;
|
|
2093
2081
|
return Boolean((t == null ? void 0 : t.indexOf("builder-")) === 0);
|
|
2094
|
-
}),
|
|
2082
|
+
}), J = ({
|
|
2095
2083
|
event: e,
|
|
2096
2084
|
target: n
|
|
2097
2085
|
}) => {
|
|
2098
|
-
const t = n.getBoundingClientRect(), o = e.clientX - t.left,
|
|
2086
|
+
const t = n.getBoundingClientRect(), o = e.clientX - t.left, s = e.clientY - t.top, i = G(o / t.width), r = G(s / t.height);
|
|
2099
2087
|
return {
|
|
2100
|
-
x:
|
|
2101
|
-
y:
|
|
2088
|
+
x: i,
|
|
2089
|
+
y: r
|
|
2102
2090
|
};
|
|
2103
|
-
},
|
|
2104
|
-
const n = e.target, t = n &&
|
|
2091
|
+
}, yn = (e) => {
|
|
2092
|
+
const n = e.target, t = n && bn(n), o = (t == null ? void 0 : t.getAttribute("builder-id")) || (t == null ? void 0 : t.id);
|
|
2105
2093
|
return {
|
|
2106
2094
|
targetBuilderElement: o || void 0,
|
|
2107
2095
|
metadata: {
|
|
2108
|
-
targetOffset: n ?
|
|
2109
|
-
builderTargetOffset: t ?
|
|
2096
|
+
targetOffset: n ? J({ event: e, target: n }) : void 0,
|
|
2097
|
+
builderTargetOffset: t ? J({ event: e, target: t }) : void 0,
|
|
2110
2098
|
builderElementIndex: t && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(t) : void 0
|
|
2111
2099
|
}
|
|
2112
2100
|
};
|
|
2113
|
-
},
|
|
2101
|
+
}, vn = ({
|
|
2114
2102
|
content: e,
|
|
2115
2103
|
data: n,
|
|
2116
2104
|
locale: t
|
|
2117
2105
|
}) => {
|
|
2118
|
-
var
|
|
2106
|
+
var i, r, c;
|
|
2119
2107
|
const o = {};
|
|
2120
|
-
(
|
|
2108
|
+
(r = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || r.forEach((a) => {
|
|
2121
2109
|
var l;
|
|
2122
2110
|
a.name && a.defaultValue !== void 0 && ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) && e.data.state[a.name] === void 0 && (o[a.name] = a.defaultValue);
|
|
2123
2111
|
});
|
|
2124
|
-
const
|
|
2112
|
+
const s = {
|
|
2125
2113
|
...(c = e == null ? void 0 : e.data) == null ? void 0 : c.state,
|
|
2126
2114
|
...n,
|
|
2127
2115
|
...t ? { locale: t } : {}
|
|
2128
2116
|
};
|
|
2129
|
-
return { ...o, ...
|
|
2130
|
-
},
|
|
2117
|
+
return { ...o, ...s };
|
|
2118
|
+
}, xn = ({
|
|
2131
2119
|
content: e,
|
|
2132
2120
|
data: n
|
|
2133
2121
|
}) => e ? {
|
|
@@ -2137,21 +2125,21 @@ const vn = (e, n, t = !0) => {
|
|
|
2137
2125
|
...n
|
|
2138
2126
|
},
|
|
2139
2127
|
meta: e == null ? void 0 : e.meta
|
|
2140
|
-
} : void 0,
|
|
2128
|
+
} : void 0, kn = () => Promise.resolve().then(() => Z).then((e) => e.default).catch((e) => {
|
|
2141
2129
|
throw console.error(
|
|
2142
2130
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
2143
2131
|
e
|
|
2144
2132
|
), e;
|
|
2145
|
-
}),
|
|
2133
|
+
}), Sn = () => import("./render-styles.cb23fa6b.js").then((e) => e.default).catch((e) => {
|
|
2146
2134
|
throw console.error(
|
|
2147
2135
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
2148
2136
|
e
|
|
2149
2137
|
), e;
|
|
2150
|
-
}),
|
|
2138
|
+
}), _n = {
|
|
2151
2139
|
name: "render-content",
|
|
2152
2140
|
components: {
|
|
2153
|
-
RenderContentStyles: x(
|
|
2154
|
-
RenderBlocks: x(
|
|
2141
|
+
RenderContentStyles: x(Sn),
|
|
2142
|
+
RenderBlocks: x(kn)
|
|
2155
2143
|
},
|
|
2156
2144
|
props: [
|
|
2157
2145
|
"content",
|
|
@@ -2162,26 +2150,27 @@ const vn = (e, n, t = !0) => {
|
|
|
2162
2150
|
"model",
|
|
2163
2151
|
"context",
|
|
2164
2152
|
"apiKey",
|
|
2165
|
-
"includeRefs"
|
|
2153
|
+
"includeRefs",
|
|
2154
|
+
"apiVersion"
|
|
2166
2155
|
],
|
|
2167
2156
|
data() {
|
|
2168
2157
|
return {
|
|
2169
2158
|
forceReRenderCount: 0,
|
|
2170
2159
|
overrideContent: null,
|
|
2171
|
-
useContent:
|
|
2160
|
+
useContent: xn({
|
|
2172
2161
|
content: this.content,
|
|
2173
2162
|
data: this.data
|
|
2174
2163
|
}),
|
|
2175
2164
|
update: 0,
|
|
2176
|
-
canTrackToUse:
|
|
2177
|
-
contentState:
|
|
2165
|
+
canTrackToUse: _(this.canTrack) ? this.canTrack : !0,
|
|
2166
|
+
contentState: vn({
|
|
2178
2167
|
content: this.content,
|
|
2179
2168
|
data: this.data,
|
|
2180
2169
|
locale: this.locale
|
|
2181
2170
|
}),
|
|
2182
2171
|
allRegisteredComponents: [
|
|
2183
|
-
...
|
|
2184
|
-
...
|
|
2172
|
+
...qt(),
|
|
2173
|
+
...re,
|
|
2185
2174
|
...this.customComponents || []
|
|
2186
2175
|
].reduce(
|
|
2187
2176
|
(e, n) => ({
|
|
@@ -2198,12 +2187,13 @@ const vn = (e, n, t = !0) => {
|
|
|
2198
2187
|
provide() {
|
|
2199
2188
|
const e = this;
|
|
2200
2189
|
return {
|
|
2201
|
-
[
|
|
2190
|
+
[V.key]: {
|
|
2202
2191
|
content: e.useContent,
|
|
2203
2192
|
state: e.contentState,
|
|
2204
2193
|
setState: e.setContextState,
|
|
2205
2194
|
context: e.context || {},
|
|
2206
2195
|
apiKey: e.apiKey,
|
|
2196
|
+
apiVersion: e.apiVersion,
|
|
2207
2197
|
registeredComponents: e.allRegisteredComponents
|
|
2208
2198
|
}
|
|
2209
2199
|
};
|
|
@@ -2212,8 +2202,8 @@ const vn = (e, n, t = !0) => {
|
|
|
2212
2202
|
var e, n;
|
|
2213
2203
|
if (this.apiKey || console.error(
|
|
2214
2204
|
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2215
|
-
),
|
|
2216
|
-
if (
|
|
2205
|
+
), p()) {
|
|
2206
|
+
if (v() && (this.forceReRenderCount = this.forceReRenderCount + 1, hn(), fn({
|
|
2217
2207
|
...this.locale ? {
|
|
2218
2208
|
locale: this.locale
|
|
2219
2209
|
} : {},
|
|
@@ -2222,9 +2212,9 @@ const vn = (e, n, t = !0) => {
|
|
|
2222
2212
|
} : {}
|
|
2223
2213
|
}), Object.values(this.allRegisteredComponents).forEach(
|
|
2224
2214
|
(t) => {
|
|
2225
|
-
var
|
|
2226
|
-
const o =
|
|
2227
|
-
(
|
|
2215
|
+
var s;
|
|
2216
|
+
const o = Jt(t);
|
|
2217
|
+
(s = window.parent) == null || s.postMessage(o, "*");
|
|
2228
2218
|
}
|
|
2229
2219
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
2230
2220
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2239,13 +2229,14 @@ const vn = (e, n, t = !0) => {
|
|
|
2239
2229
|
variationId: t !== o ? t : void 0
|
|
2240
2230
|
});
|
|
2241
2231
|
}
|
|
2242
|
-
if (
|
|
2243
|
-
const t = new URL(location.href).searchParams, o = t.get("builder.preview"),
|
|
2244
|
-
o === this.model &&
|
|
2232
|
+
if (Gt()) {
|
|
2233
|
+
const t = new URL(location.href).searchParams, o = t.get("builder.preview"), s = t.get("apiKey") || t.get("builder.space");
|
|
2234
|
+
o === this.model && s === this.apiKey && se({
|
|
2245
2235
|
model: this.model,
|
|
2246
|
-
apiKey: this.apiKey
|
|
2247
|
-
|
|
2248
|
-
|
|
2236
|
+
apiKey: this.apiKey,
|
|
2237
|
+
apiVersion: this.apiVersion
|
|
2238
|
+
}).then((i) => {
|
|
2239
|
+
i && this.mergeNewContent(i);
|
|
2249
2240
|
});
|
|
2250
2241
|
}
|
|
2251
2242
|
this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
@@ -2254,17 +2245,23 @@ const vn = (e, n, t = !0) => {
|
|
|
2254
2245
|
watch: {
|
|
2255
2246
|
onUpdateHook0: {
|
|
2256
2247
|
handler() {
|
|
2257
|
-
this.
|
|
2248
|
+
this.content && this.mergeNewContent(this.content);
|
|
2258
2249
|
},
|
|
2259
2250
|
immediate: !0
|
|
2260
2251
|
},
|
|
2261
2252
|
onUpdateHook1: {
|
|
2262
2253
|
handler() {
|
|
2263
|
-
this.
|
|
2254
|
+
this.evaluateJsCode();
|
|
2264
2255
|
},
|
|
2265
2256
|
immediate: !0
|
|
2266
2257
|
},
|
|
2267
2258
|
onUpdateHook2: {
|
|
2259
|
+
handler() {
|
|
2260
|
+
this.runHttpRequests();
|
|
2261
|
+
},
|
|
2262
|
+
immediate: !0
|
|
2263
|
+
},
|
|
2264
|
+
onUpdateHook3: {
|
|
2268
2265
|
handler() {
|
|
2269
2266
|
this.emitStateUpdate();
|
|
2270
2267
|
},
|
|
@@ -2272,26 +2269,31 @@ const vn = (e, n, t = !0) => {
|
|
|
2272
2269
|
}
|
|
2273
2270
|
},
|
|
2274
2271
|
unmounted() {
|
|
2275
|
-
|
|
2272
|
+
p() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2276
2273
|
"builder:component:stateChangeListenerActivated",
|
|
2277
2274
|
this.emitStateUpdate
|
|
2278
2275
|
));
|
|
2279
2276
|
},
|
|
2280
2277
|
computed: {
|
|
2281
2278
|
onUpdateHook0() {
|
|
2279
|
+
return {
|
|
2280
|
+
0: this.content
|
|
2281
|
+
};
|
|
2282
|
+
},
|
|
2283
|
+
onUpdateHook1() {
|
|
2282
2284
|
var e, n;
|
|
2283
2285
|
return {
|
|
2284
2286
|
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode,
|
|
2285
2287
|
1: this.contentState
|
|
2286
2288
|
};
|
|
2287
2289
|
},
|
|
2288
|
-
|
|
2290
|
+
onUpdateHook2() {
|
|
2289
2291
|
var e, n;
|
|
2290
2292
|
return {
|
|
2291
2293
|
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests
|
|
2292
2294
|
};
|
|
2293
2295
|
},
|
|
2294
|
-
|
|
2296
|
+
onUpdateHook3() {
|
|
2295
2297
|
return {
|
|
2296
2298
|
0: this.contentState
|
|
2297
2299
|
};
|
|
@@ -2299,7 +2301,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2299
2301
|
},
|
|
2300
2302
|
methods: {
|
|
2301
2303
|
mergeNewContent(e) {
|
|
2302
|
-
var n, t, o,
|
|
2304
|
+
var n, t, o, s, i;
|
|
2303
2305
|
this.useContent = {
|
|
2304
2306
|
...this.useContent,
|
|
2305
2307
|
...e,
|
|
@@ -2310,7 +2312,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2310
2312
|
meta: {
|
|
2311
2313
|
...(t = this.useContent) == null ? void 0 : t.meta,
|
|
2312
2314
|
...e == null ? void 0 : e.meta,
|
|
2313
|
-
breakpoints: ((o = e == null ? void 0 : e.meta) == null ? void 0 : o.breakpoints) || ((
|
|
2315
|
+
breakpoints: ((o = e == null ? void 0 : e.meta) == null ? void 0 : o.breakpoints) || ((i = (s = this.useContent) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
|
|
2314
2316
|
}
|
|
2315
2317
|
};
|
|
2316
2318
|
},
|
|
@@ -2333,15 +2335,15 @@ const vn = (e, n, t = !0) => {
|
|
|
2333
2335
|
if (n)
|
|
2334
2336
|
switch (n.type) {
|
|
2335
2337
|
case "builder.configureSdk": {
|
|
2336
|
-
const o = n.data, { breakpoints:
|
|
2337
|
-
if (!
|
|
2338
|
+
const o = n.data, { breakpoints: s, contentId: i } = o;
|
|
2339
|
+
if (!i || i !== ((t = this.useContent) == null ? void 0 : t.id))
|
|
2338
2340
|
return;
|
|
2339
|
-
|
|
2341
|
+
s && this.setBreakpoints(s), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
2340
2342
|
break;
|
|
2341
2343
|
}
|
|
2342
2344
|
case "builder.contentUpdate": {
|
|
2343
|
-
const o = n.data,
|
|
2344
|
-
|
|
2345
|
+
const o = n.data, s = o.key || o.alias || o.entry || o.modelName, i = o.data;
|
|
2346
|
+
s === this.model && (this.mergeNewContent(i), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
2345
2347
|
break;
|
|
2346
2348
|
}
|
|
2347
2349
|
}
|
|
@@ -2349,7 +2351,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2349
2351
|
evaluateJsCode() {
|
|
2350
2352
|
var n, t;
|
|
2351
2353
|
const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
|
|
2352
|
-
e &&
|
|
2354
|
+
e && z({
|
|
2353
2355
|
code: e,
|
|
2354
2356
|
context: this.context || {},
|
|
2355
2357
|
state: this.contentState
|
|
@@ -2358,14 +2360,14 @@ const vn = (e, n, t = !0) => {
|
|
|
2358
2360
|
onClick(e) {
|
|
2359
2361
|
var n, t;
|
|
2360
2362
|
if (this.useContent) {
|
|
2361
|
-
const o = (n = this.useContent) == null ? void 0 : n.testVariationId,
|
|
2363
|
+
const o = (n = this.useContent) == null ? void 0 : n.testVariationId, s = (t = this.useContent) == null ? void 0 : t.id;
|
|
2362
2364
|
U({
|
|
2363
2365
|
type: "click",
|
|
2364
2366
|
canTrack: this.canTrackToUse,
|
|
2365
|
-
contentId:
|
|
2367
|
+
contentId: s,
|
|
2366
2368
|
apiKey: this.apiKey,
|
|
2367
|
-
variationId: o !==
|
|
2368
|
-
...
|
|
2369
|
+
variationId: o !== s ? o : void 0,
|
|
2370
|
+
...yn(e),
|
|
2369
2371
|
unique: !this.clicked
|
|
2370
2372
|
});
|
|
2371
2373
|
}
|
|
@@ -2374,7 +2376,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2374
2376
|
evalExpression(e) {
|
|
2375
2377
|
return e.replace(
|
|
2376
2378
|
/{{([^}]+)}}/g,
|
|
2377
|
-
(n, t) =>
|
|
2379
|
+
(n, t) => z({
|
|
2378
2380
|
code: t,
|
|
2379
2381
|
context: this.context || {},
|
|
2380
2382
|
state: this.contentState
|
|
@@ -2382,7 +2384,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2382
2384
|
);
|
|
2383
2385
|
},
|
|
2384
2386
|
handleRequest({ url: e, key: n }) {
|
|
2385
|
-
|
|
2387
|
+
ee(e).then((t) => t.json()).then((t) => {
|
|
2386
2388
|
const o = {
|
|
2387
2389
|
...this.contentState,
|
|
2388
2390
|
[n]: t
|
|
@@ -2395,18 +2397,18 @@ const vn = (e, n, t = !0) => {
|
|
|
2395
2397
|
runHttpRequests() {
|
|
2396
2398
|
var n, t, o;
|
|
2397
2399
|
const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
|
|
2398
|
-
Object.entries(e).forEach(([
|
|
2399
|
-
if (
|
|
2400
|
-
const
|
|
2400
|
+
Object.entries(e).forEach(([s, i]) => {
|
|
2401
|
+
if (i && (!this.httpReqsData[s] || v())) {
|
|
2402
|
+
const r = this.evalExpression(i);
|
|
2401
2403
|
this.handleRequest({
|
|
2402
|
-
url:
|
|
2403
|
-
key:
|
|
2404
|
+
url: r,
|
|
2405
|
+
key: s
|
|
2404
2406
|
});
|
|
2405
2407
|
}
|
|
2406
2408
|
});
|
|
2407
2409
|
},
|
|
2408
2410
|
emitStateUpdate() {
|
|
2409
|
-
|
|
2411
|
+
v() && window.dispatchEvent(
|
|
2410
2412
|
new CustomEvent("builder:component:stateChange", {
|
|
2411
2413
|
detail: {
|
|
2412
2414
|
state: this.contentState,
|
|
@@ -2418,76 +2420,74 @@ const vn = (e, n, t = !0) => {
|
|
|
2418
2420
|
);
|
|
2419
2421
|
}
|
|
2420
2422
|
}
|
|
2421
|
-
},
|
|
2422
|
-
function
|
|
2423
|
-
var a, l,
|
|
2424
|
-
const
|
|
2425
|
-
return
|
|
2423
|
+
}, wn = ["builder-content-id", "builder-model"];
|
|
2424
|
+
function Cn(e, n, t, o, s, i) {
|
|
2425
|
+
var a, l, u, g, f, b, w, M;
|
|
2426
|
+
const r = k("render-content-styles"), c = k("render-blocks");
|
|
2427
|
+
return s.useContent ? (d(), m("div", {
|
|
2426
2428
|
key: 0,
|
|
2427
2429
|
ref: "elementRef",
|
|
2428
|
-
onClick: n[0] || (n[0] = (
|
|
2429
|
-
"builder-content-id": (a =
|
|
2430
|
+
onClick: n[0] || (n[0] = (ue) => i.onClick(ue)),
|
|
2431
|
+
"builder-content-id": (a = s.useContent) == null ? void 0 : a.id,
|
|
2430
2432
|
"builder-model": t.model
|
|
2431
2433
|
}, [
|
|
2432
|
-
|
|
2434
|
+
s.TARGET !== "reactNative" ? (d(), T(r, {
|
|
2433
2435
|
key: 0,
|
|
2434
|
-
contentId: (l =
|
|
2435
|
-
cssCode: (
|
|
2436
|
-
customFonts: (
|
|
2437
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
2436
|
+
contentId: (l = s.useContent) == null ? void 0 : l.id,
|
|
2437
|
+
cssCode: (g = (u = s.useContent) == null ? void 0 : u.data) == null ? void 0 : g.cssCode,
|
|
2438
|
+
customFonts: (b = (f = s.useContent) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
|
|
2439
|
+
}, null, 8, ["contentId", "cssCode", "customFonts"])) : y("", !0),
|
|
2438
2440
|
(d(), T(c, {
|
|
2439
|
-
blocks: (
|
|
2440
|
-
key:
|
|
2441
|
+
blocks: (M = (w = s.useContent) == null ? void 0 : w.data) == null ? void 0 : M.blocks,
|
|
2442
|
+
key: s.forceReRenderCount
|
|
2441
2443
|
}, null, 8, ["blocks"]))
|
|
2442
|
-
], 8,
|
|
2444
|
+
], 8, wn)) : y("", !0);
|
|
2443
2445
|
}
|
|
2444
|
-
const
|
|
2446
|
+
const In = /* @__PURE__ */ h(_n, [["render", Cn]]), Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2445
2447
|
__proto__: null,
|
|
2446
|
-
default:
|
|
2447
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2448
|
+
default: In
|
|
2449
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = {};
|
|
2448
2450
|
function Vn(e) {
|
|
2449
|
-
if (
|
|
2450
|
-
Object.assign(
|
|
2451
|
+
if (p()) {
|
|
2452
|
+
Object.assign(Y, e);
|
|
2451
2453
|
const n = {
|
|
2452
2454
|
type: "builder.settingsChange",
|
|
2453
|
-
data:
|
|
2455
|
+
data: Y
|
|
2454
2456
|
};
|
|
2455
2457
|
parent.postMessage(n, "*");
|
|
2456
2458
|
}
|
|
2457
2459
|
}
|
|
2458
2460
|
export {
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2461
|
+
V as B,
|
|
2462
|
+
Se as C,
|
|
2463
|
+
Ce as F,
|
|
2464
|
+
Be as I,
|
|
2465
|
+
Ge as S,
|
|
2464
2466
|
R as T,
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2467
|
+
Et as V,
|
|
2468
|
+
h as _,
|
|
2469
|
+
En as a,
|
|
2470
|
+
fe as b,
|
|
2471
|
+
_ as c,
|
|
2472
|
+
In as d,
|
|
2473
|
+
z as e,
|
|
2474
|
+
W as f,
|
|
2475
|
+
ge as g,
|
|
2476
|
+
vt as h,
|
|
2477
|
+
wt as i,
|
|
2478
|
+
v as j,
|
|
2479
|
+
Gt as k,
|
|
2480
|
+
re as l,
|
|
2481
|
+
An as m,
|
|
2482
|
+
Jt as n,
|
|
2483
|
+
pn as o,
|
|
2484
|
+
se as p,
|
|
2485
|
+
ht as q,
|
|
2486
|
+
Le as r,
|
|
2485
2487
|
Vn as s,
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
ft as y,
|
|
2492
|
-
re as z
|
|
2488
|
+
jn as t,
|
|
2489
|
+
dt as u,
|
|
2490
|
+
ut as v,
|
|
2491
|
+
mt as w,
|
|
2492
|
+
ie as x
|
|
2493
2493
|
};
|