@builder.io/sdk-vue 1.0.23 → 1.0.25
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/README.md +1 -1
- package/lib/browser/{block-styles-vJjDjr-p.cjs → block-styles-TOjks1KV.cjs} +1 -1
- package/lib/browser/{block-styles-dCtjVM33.js → block-styles-VucTuDWS.js} +1 -1
- package/lib/browser/{block-wrapper--ZdEHV8w.cjs → block-wrapper-OMsQa5hi.cjs} +1 -1
- package/lib/browser/{block-wrapper-JRsL0Mr2.js → block-wrapper-PSbhfk7Q.js} +3 -3
- package/lib/browser/blocks/button/button.vue.d.ts +9 -2
- package/lib/browser/blocks/columns/columns.types.d.ts +1 -1
- package/lib/browser/blocks/columns/columns.vue.d.ts +10 -7
- package/lib/browser/blocks/columns/helpers.d.ts +1 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +2 -0
- package/lib/browser/blocks/tabs/component-info.d.ts +2 -0
- package/lib/browser/blocks/tabs/index.d.ts +1 -0
- package/lib/browser/blocks/tabs/tabs.types.d.ts +13 -0
- package/lib/browser/blocks/tabs/tabs.vue.d.ts +37 -0
- package/lib/browser/blocks/text/text.types.d.ts +2 -1
- package/lib/browser/component-ref-N6zY_dT6.cjs +1 -0
- package/lib/browser/component-ref-fp2vR2QJ.js +114 -0
- package/lib/browser/components/block/block.helpers.d.ts +4 -2
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +6 -9
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +11 -3
- package/lib/browser/components/content/components/styles.helpers.d.ts +1 -0
- package/lib/browser/components/content/content.vue.d.ts +3 -3
- package/lib/browser/components/dynamic-div.vue.d.ts +14 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/node-runtime/init.d.ts +17 -1
- package/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +4 -1
- package/lib/browser/{get-block-properties-U49zKnMK.js → get-block-properties-a19LfOQA.js} +1 -1
- package/lib/browser/{get-block-properties-qdvSfWjS.cjs → get-block-properties-gBJL4NRb.cjs} +1 -1
- package/lib/browser/index-Nde8uRU0.cjs +166 -0
- package/lib/browser/{index-T89gD77O.js → index-buEOnV4i.js} +1109 -864
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-oYGHWwW3.js → repeated-block-CJGGYuy2.js} +2 -2
- package/lib/browser/{repeated-block-GnmpQPxE.cjs → repeated-block-KDWlk2Eu.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/targets.d.ts +1 -1
- package/lib/edge/{block-styles-9nbFFeOH.cjs → block-styles-sqvAdjqJ.cjs} +1 -1
- package/lib/edge/{block-styles-nidJqmvF.js → block-styles-uRgD0InT.js} +1 -1
- package/lib/edge/{block-wrapper-7WuameoR.js → block-wrapper-q9GCekB1.js} +3 -3
- package/lib/{node/block-wrapper-a_fu1ViB.cjs → edge/block-wrapper-vF6xSOlT.cjs} +1 -1
- package/lib/edge/blocks/button/button.vue.d.ts +9 -2
- package/lib/edge/blocks/columns/columns.types.d.ts +1 -1
- package/lib/edge/blocks/columns/columns.vue.d.ts +10 -7
- package/lib/edge/blocks/columns/helpers.d.ts +1 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +2 -0
- package/lib/edge/blocks/tabs/component-info.d.ts +2 -0
- package/lib/edge/blocks/tabs/index.d.ts +1 -0
- package/lib/edge/blocks/tabs/tabs.types.d.ts +13 -0
- package/lib/edge/blocks/tabs/tabs.vue.d.ts +37 -0
- package/lib/edge/blocks/text/text.types.d.ts +2 -1
- package/lib/edge/component-ref-C_xxaolq.cjs +1 -0
- package/lib/edge/component-ref-GSX3hUTE.js +113 -0
- package/lib/edge/components/block/block.helpers.d.ts +4 -2
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +6 -9
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +11 -3
- package/lib/edge/components/content/components/styles.helpers.d.ts +1 -0
- package/lib/edge/components/content/content.vue.d.ts +3 -3
- package/lib/edge/components/dynamic-div.vue.d.ts +14 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/node-runtime/init.d.ts +17 -1
- package/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +4 -1
- package/lib/edge/{get-block-properties-uUwzuzd6.js → get-block-properties--c5BLvuL.js} +1 -1
- package/lib/edge/{get-block-properties-hpLeBYvo.cjs → get-block-properties-PXCuNfSA.cjs} +1 -1
- package/lib/edge/{index-hIX7Gefu.js → index-2elTOk5W.js} +1667 -1422
- package/lib/edge/index-skxp2Ewn.cjs +186 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-TT5biOEz.cjs → repeated-block-U4_8enXQ.cjs} +1 -1
- package/lib/edge/{repeated-block-otH5LpjC.js → repeated-block-YWOeWOGJ.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/targets.d.ts +1 -1
- package/lib/node/{block-styles-4KxeWlDy.cjs → block-styles-Vbqn78RJ.cjs} +1 -1
- package/lib/node/{block-styles-FYc9WmuJ.js → block-styles-iBhjsABq.js} +1 -1
- package/lib/node/{block-wrapper-NWQoMvJs.js → block-wrapper-YZKm3LpK.js} +3 -3
- package/lib/{edge/block-wrapper-OitVCHV4.cjs → node/block-wrapper-rpKNd9vl.cjs} +1 -1
- package/lib/node/blocks/button/button.vue.d.ts +9 -2
- package/lib/node/blocks/columns/columns.types.d.ts +1 -1
- package/lib/node/blocks/columns/columns.vue.d.ts +10 -7
- package/lib/node/blocks/columns/helpers.d.ts +1 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +2 -0
- package/lib/node/blocks/tabs/component-info.d.ts +2 -0
- package/lib/node/blocks/tabs/index.d.ts +1 -0
- package/lib/node/blocks/tabs/tabs.types.d.ts +13 -0
- package/lib/node/blocks/tabs/tabs.vue.d.ts +37 -0
- package/lib/node/blocks/text/text.types.d.ts +2 -1
- package/lib/node/component-ref-1NweYcUx.cjs +1 -0
- package/lib/node/component-ref-3OyOJABh.js +113 -0
- package/lib/node/components/block/block.helpers.d.ts +4 -2
- package/lib/node/components/block/components/interactive-element.vue.d.ts +6 -9
- package/lib/node/components/content/components/enable-editor.vue.d.ts +11 -3
- package/lib/node/components/content/components/styles.helpers.d.ts +1 -0
- package/lib/node/components/content/content.vue.d.ts +3 -3
- package/lib/node/components/dynamic-div.vue.d.ts +14 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/node-runtime/init.d.ts +17 -1
- package/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +4 -1
- package/lib/node/{get-block-properties-ddOPipN4.js → get-block-properties-HVClRTfg.js} +1 -1
- package/lib/node/{get-block-properties-DnPEkmGq.cjs → get-block-properties-roggPLLH.cjs} +1 -1
- package/lib/node/index-MaEGzpWl.cjs +213 -0
- package/lib/node/{index-Bc6eCrlT.js → index-t6-975XL.js} +601 -354
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-sdoj-hCY.js → repeated-block-97rfq-8J.js} +2 -2
- package/lib/node/{repeated-block-W2kKB7D3.cjs → repeated-block-SwobyHB-.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/targets.d.ts +1 -1
- package/package.json +1 -1
- package/lib/browser/component-ref-IfYzvEjh.js +0 -114
- package/lib/browser/component-ref-YU4cmBVZ.cjs +0 -1
- package/lib/browser/index-YYfrLt1V.cjs +0 -166
- package/lib/edge/component-ref-Z3GxM6cH.cjs +0 -1
- package/lib/edge/component-ref-fkgFjHYh.js +0 -113
- package/lib/edge/index-CKoC6tWI.cjs +0 -186
- package/lib/node/component-ref-jllHNOll.cjs +0 -1
- package/lib/node/component-ref-jqz9fyL1.js +0 -113
- package/lib/node/index-ixVpFh79.cjs +0 -213
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var ct = Object.defineProperty;
|
|
2
|
+
var dt = (e, t, n) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var oe = (e, t, n) => (dt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import "./style.css";
|
|
5
|
-
import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
5
|
+
import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as k, resolveDynamicComponent as H, mergeProps as w, toHandlers as x, withCtx as B, renderSlot as P, resolveComponent as y, createTextVNode as ut, toDisplayString as ne, defineAsyncComponent as D, createVNode as E, renderList as O, createCommentVNode as S, h as Ee, createElementVNode as Z, normalizeStyle as K, normalizeClass as de, markRaw as pt } from "vue";
|
|
6
|
+
const mt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ht = (e) => typeof e == "string" && mt.has(e.toLowerCase());
|
|
7
|
+
function W(e = {}, t, n) {
|
|
8
8
|
const o = {};
|
|
9
9
|
for (const s in e) {
|
|
10
10
|
if (!e[s] || n && !s.startsWith(t))
|
|
@@ -14,26 +14,26 @@ function O(e = {}, t, n) {
|
|
|
14
14
|
}
|
|
15
15
|
return o;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const ft = f({
|
|
18
18
|
name: "dynamic-renderer",
|
|
19
19
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
20
20
|
data() {
|
|
21
|
-
return { isEmptyElement:
|
|
21
|
+
return { isEmptyElement: ht };
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
23
|
+
}), b = (e, t) => {
|
|
24
24
|
const n = e.__vccOpts || e;
|
|
25
25
|
for (const [o, s] of t)
|
|
26
26
|
n[o] = s;
|
|
27
27
|
return n;
|
|
28
28
|
};
|
|
29
|
-
function
|
|
30
|
-
return e.isEmptyElement(e.TagName) ? (u(),
|
|
31
|
-
typeof e.TagName == "string" ? (u(),
|
|
29
|
+
function bt(e, t, n, o, s, r) {
|
|
30
|
+
return e.isEmptyElement(e.TagName) ? (u(), k(H(e.TagName), w({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (u(), h($, { key: 0 }, [
|
|
31
|
+
typeof e.TagName == "string" ? (u(), k(H(e.TagName), w({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
32
32
|
default: B(() => [
|
|
33
33
|
P(e.$slots, "default")
|
|
34
34
|
]),
|
|
35
35
|
_: 3
|
|
36
|
-
}, 16)) : (u(),
|
|
36
|
+
}, 16)) : (u(), k(H(e.TagName), w({ key: 1 }, e.attributes, x(e.actionAttributes)), {
|
|
37
37
|
default: B(() => [
|
|
38
38
|
P(e.$slots, "default")
|
|
39
39
|
]),
|
|
@@ -41,10 +41,10 @@ function mt(e, t, n, o, s, r) {
|
|
|
41
41
|
}, 16))
|
|
42
42
|
], 64));
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const ue = /* @__PURE__ */ b(ft, [["render", bt]]), hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
45
|
__proto__: null,
|
|
46
|
-
default:
|
|
47
|
-
}, Symbol.toStringTag, { value: "Module" })), V = "vue",
|
|
46
|
+
default: ue
|
|
47
|
+
}, Symbol.toStringTag, { value: "Module" })), V = "vue", ee = () => {
|
|
48
48
|
switch (V) {
|
|
49
49
|
case "react":
|
|
50
50
|
case "reactNative":
|
|
@@ -54,11 +54,12 @@ const ie = /* @__PURE__ */ y(pt, [["render", mt]]), Xs = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "vue":
|
|
55
55
|
case "solid":
|
|
56
56
|
case "qwik":
|
|
57
|
+
case "angular":
|
|
57
58
|
return "class";
|
|
58
59
|
}
|
|
59
|
-
},
|
|
60
|
+
}, gt = f({
|
|
60
61
|
name: "builder-button",
|
|
61
|
-
components: { DynamicRenderer:
|
|
62
|
+
components: { DynamicRenderer: ue },
|
|
62
63
|
props: [
|
|
63
64
|
"attributes",
|
|
64
65
|
"link",
|
|
@@ -67,33 +68,38 @@ const ie = /* @__PURE__ */ y(pt, [["render", mt]]), Xs = /* @__PURE__ */ Object.
|
|
|
67
68
|
"text"
|
|
68
69
|
],
|
|
69
70
|
data() {
|
|
70
|
-
return {
|
|
71
|
+
return { filterAttrs: W };
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
attrs() {
|
|
75
|
+
return {
|
|
76
|
+
...W(this.attributes, "v-on:", !1),
|
|
77
|
+
[ee()]: `${this.link ? "" : "builder-button"} ${this.attributes[ee()] || ""}`,
|
|
78
|
+
...this.link ? {
|
|
79
|
+
href: this.link,
|
|
80
|
+
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
81
|
+
role: "link"
|
|
82
|
+
} : {
|
|
83
|
+
role: "button"
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
71
87
|
}
|
|
72
88
|
});
|
|
73
|
-
function
|
|
74
|
-
const i =
|
|
75
|
-
return u(),
|
|
76
|
-
attributes:
|
|
77
|
-
...e.filterAttrs(e.attributes, "v-on:", !1),
|
|
78
|
-
[e.getClassPropName()]: `${e.link ? "" : "builder-button"} ${e.attributes[e.getClassPropName()] || ""}`,
|
|
79
|
-
...e.link ? {
|
|
80
|
-
href: e.link,
|
|
81
|
-
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
82
|
-
role: "link"
|
|
83
|
-
} : {
|
|
84
|
-
role: "button"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
89
|
+
function yt(e, t, n, o, s, r) {
|
|
90
|
+
const i = y("dynamic-renderer");
|
|
91
|
+
return u(), k(i, {
|
|
92
|
+
attributes: e.attrs(),
|
|
87
93
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
88
94
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
89
95
|
}, {
|
|
90
96
|
default: B(() => [
|
|
91
|
-
|
|
97
|
+
ut(ne(e.text), 1)
|
|
92
98
|
]),
|
|
93
99
|
_: 1
|
|
94
100
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
95
101
|
}
|
|
96
|
-
const
|
|
102
|
+
const kt = /* @__PURE__ */ b(gt, [["render", yt]]), vt = Symbol(), ae = {
|
|
97
103
|
Builder: {
|
|
98
104
|
content: null,
|
|
99
105
|
context: {},
|
|
@@ -108,12 +114,12 @@ const bt = /* @__PURE__ */ y(ht, [["render", ft]]), gt = Symbol(), oe = {
|
|
|
108
114
|
BlocksWrapper: "div",
|
|
109
115
|
BlocksWrapperProps: {}
|
|
110
116
|
},
|
|
111
|
-
key:
|
|
112
|
-
},
|
|
117
|
+
key: vt
|
|
118
|
+
}, St = Symbol(), Pe = {
|
|
113
119
|
Components: { registeredComponents: {} },
|
|
114
|
-
key:
|
|
120
|
+
key: St
|
|
115
121
|
};
|
|
116
|
-
function
|
|
122
|
+
function Ct(e) {
|
|
117
123
|
var t;
|
|
118
124
|
return {
|
|
119
125
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -124,36 +130,36 @@ function kt(e) {
|
|
|
124
130
|
builderBlock: e
|
|
125
131
|
};
|
|
126
132
|
}
|
|
127
|
-
const
|
|
128
|
-
log: (...e) => console.log(
|
|
129
|
-
error: (...e) => console.error(
|
|
130
|
-
warn: (...e) => console.warn(
|
|
131
|
-
debug: (...e) => console.debug(
|
|
133
|
+
const _ = "[Builder.io]: ", R = {
|
|
134
|
+
log: (...e) => console.log(_, ...e),
|
|
135
|
+
error: (...e) => console.error(_, ...e),
|
|
136
|
+
warn: (...e) => console.warn(_, ...e),
|
|
137
|
+
debug: (...e) => console.debug(_, ...e)
|
|
132
138
|
};
|
|
133
|
-
function
|
|
139
|
+
function T() {
|
|
134
140
|
return typeof window < "u" && typeof document < "u";
|
|
135
141
|
}
|
|
136
|
-
const
|
|
142
|
+
const wt = (e) => {
|
|
137
143
|
const t = {};
|
|
138
144
|
return e.forEach((n, o) => {
|
|
139
145
|
t[o] = n;
|
|
140
146
|
}), t;
|
|
141
|
-
},
|
|
142
|
-
function
|
|
143
|
-
return
|
|
147
|
+
}, xe = (e) => e instanceof URLSearchParams ? wt(e) : e, Ve = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
148
|
+
function Tt() {
|
|
149
|
+
return T() && window.self !== window.top;
|
|
144
150
|
}
|
|
145
|
-
function
|
|
146
|
-
return
|
|
147
|
-
|
|
151
|
+
function I(e) {
|
|
152
|
+
return Tt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
153
|
+
Ve(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
148
154
|
}
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
155
|
+
const $t = () => {
|
|
156
|
+
if (T()) {
|
|
151
157
|
const e = new URL(location.href);
|
|
152
158
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
153
159
|
} else
|
|
154
160
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
155
|
-
},
|
|
156
|
-
const e =
|
|
161
|
+
}, It = () => typeof navigator == "object" && navigator.userAgent || "", Ae = () => {
|
|
162
|
+
const e = It(), t = {
|
|
157
163
|
Android() {
|
|
158
164
|
return e.match(/Android/i);
|
|
159
165
|
},
|
|
@@ -172,13 +178,13 @@ const Ct = () => {
|
|
|
172
178
|
any() {
|
|
173
179
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || V === "reactNative";
|
|
174
180
|
}
|
|
175
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
181
|
+
}, n = e.match(/Tablet|iPad/i), o = $t();
|
|
176
182
|
return {
|
|
177
183
|
urlPath: o == null ? void 0 : o.pathname,
|
|
178
184
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
179
185
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
180
186
|
};
|
|
181
|
-
},
|
|
187
|
+
}, Rt = ({
|
|
182
188
|
builder: e,
|
|
183
189
|
context: t,
|
|
184
190
|
event: n,
|
|
@@ -190,14 +196,14 @@ const Ct = () => {
|
|
|
190
196
|
builder: e,
|
|
191
197
|
context: t,
|
|
192
198
|
event: n
|
|
193
|
-
}),
|
|
194
|
-
isEditing:
|
|
195
|
-
isBrowser:
|
|
196
|
-
isServer: !
|
|
197
|
-
getUserAttributes: () =>
|
|
198
|
-
}),
|
|
199
|
+
}), Et = () => ({
|
|
200
|
+
isEditing: I(),
|
|
201
|
+
isBrowser: T(),
|
|
202
|
+
isServer: !T(),
|
|
203
|
+
getUserAttributes: () => Ae()
|
|
204
|
+
}), Pt = (e, {
|
|
199
205
|
isExpression: t = !0
|
|
200
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
206
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ye = ({
|
|
201
207
|
code: e,
|
|
202
208
|
builder: t,
|
|
203
209
|
context: n,
|
|
@@ -206,11 +212,11 @@ const Ct = () => {
|
|
|
206
212
|
rootSetState: r,
|
|
207
213
|
rootState: i
|
|
208
214
|
}) => {
|
|
209
|
-
const a =
|
|
215
|
+
const a = Rt({
|
|
210
216
|
builder: t,
|
|
211
217
|
context: n,
|
|
212
218
|
event: o,
|
|
213
|
-
state:
|
|
219
|
+
state: Be({
|
|
214
220
|
rootState: i,
|
|
215
221
|
localState: s,
|
|
216
222
|
rootSetState: r
|
|
@@ -218,7 +224,7 @@ const Ct = () => {
|
|
|
218
224
|
});
|
|
219
225
|
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
220
226
|
};
|
|
221
|
-
function
|
|
227
|
+
function Be({
|
|
222
228
|
rootState: e,
|
|
223
229
|
localState: t,
|
|
224
230
|
rootSetState: n
|
|
@@ -228,7 +234,7 @@ function Ve({
|
|
|
228
234
|
if (t && s in t)
|
|
229
235
|
return t[s];
|
|
230
236
|
const r = o[s];
|
|
231
|
-
return typeof r == "object" && r !== null ?
|
|
237
|
+
return typeof r == "object" && r !== null ? Be({
|
|
232
238
|
rootState: r,
|
|
233
239
|
localState: void 0,
|
|
234
240
|
rootSetState: n ? (i) => {
|
|
@@ -243,18 +249,18 @@ function Ve({
|
|
|
243
249
|
}
|
|
244
250
|
});
|
|
245
251
|
}
|
|
246
|
-
const
|
|
247
|
-
function
|
|
252
|
+
const U = (e) => e != null;
|
|
253
|
+
function xt() {
|
|
248
254
|
var e;
|
|
249
|
-
return typeof process < "u" &&
|
|
255
|
+
return typeof process < "u" && U((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
250
256
|
}
|
|
251
|
-
const
|
|
257
|
+
const Vt = () => {
|
|
252
258
|
var o;
|
|
253
|
-
if (!
|
|
259
|
+
if (!xt())
|
|
254
260
|
return !1;
|
|
255
261
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
256
262
|
return e && t && !n ? (R.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
257
|
-
},
|
|
263
|
+
}, At = (e) => (T() || Vt(), ye(e)), A = class A {
|
|
258
264
|
static getCacheKey(t) {
|
|
259
265
|
return JSON.stringify({
|
|
260
266
|
...t,
|
|
@@ -272,9 +278,9 @@ const Et = () => {
|
|
|
272
278
|
});
|
|
273
279
|
}
|
|
274
280
|
};
|
|
275
|
-
|
|
281
|
+
oe(A, "cacheLimit", 20), oe(A, "cache", /* @__PURE__ */ new Map());
|
|
276
282
|
let L = A;
|
|
277
|
-
function
|
|
283
|
+
function te({
|
|
278
284
|
code: e,
|
|
279
285
|
context: t,
|
|
280
286
|
localState: n,
|
|
@@ -287,10 +293,10 @@ function Q({
|
|
|
287
293
|
if (e === "")
|
|
288
294
|
return;
|
|
289
295
|
const l = {
|
|
290
|
-
code:
|
|
296
|
+
code: Pt(e, {
|
|
291
297
|
isExpression: i
|
|
292
298
|
}),
|
|
293
|
-
builder:
|
|
299
|
+
builder: Et(),
|
|
294
300
|
context: t,
|
|
295
301
|
event: r,
|
|
296
302
|
rootSetState: s,
|
|
@@ -298,31 +304,31 @@ function Q({
|
|
|
298
304
|
localState: n
|
|
299
305
|
};
|
|
300
306
|
if (a) {
|
|
301
|
-
const
|
|
307
|
+
const d = L.getCacheKey(l), m = L.getCachedValue(d);
|
|
302
308
|
if (m)
|
|
303
309
|
return m.value;
|
|
304
310
|
}
|
|
305
311
|
try {
|
|
306
|
-
const
|
|
312
|
+
const d = At(l);
|
|
307
313
|
if (a) {
|
|
308
314
|
const m = L.getCacheKey(l);
|
|
309
|
-
L.setCachedValue(m,
|
|
315
|
+
L.setCachedValue(m, d);
|
|
310
316
|
}
|
|
311
|
-
return
|
|
312
|
-
} catch (
|
|
313
|
-
R.error("Failed code evaluation: " +
|
|
317
|
+
return d;
|
|
318
|
+
} catch (d) {
|
|
319
|
+
R.error("Failed code evaluation: " + d.message, {
|
|
314
320
|
code: e
|
|
315
321
|
});
|
|
316
322
|
return;
|
|
317
323
|
}
|
|
318
324
|
}
|
|
319
|
-
const
|
|
325
|
+
const q = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
|
|
320
326
|
if (Object(e) !== e)
|
|
321
327
|
return e;
|
|
322
328
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
323
329
|
return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
324
330
|
};
|
|
325
|
-
const
|
|
331
|
+
const Bt = ({
|
|
326
332
|
block: e,
|
|
327
333
|
context: t,
|
|
328
334
|
localState: n,
|
|
@@ -331,7 +337,7 @@ const Vt = ({
|
|
|
331
337
|
}) => {
|
|
332
338
|
if (!e.bindings)
|
|
333
339
|
return e;
|
|
334
|
-
const r =
|
|
340
|
+
const r = q(e), i = {
|
|
335
341
|
...r,
|
|
336
342
|
properties: {
|
|
337
343
|
...r.properties
|
|
@@ -341,7 +347,7 @@ const Vt = ({
|
|
|
341
347
|
}
|
|
342
348
|
};
|
|
343
349
|
for (const a in e.bindings) {
|
|
344
|
-
const l = e.bindings[a],
|
|
350
|
+
const l = e.bindings[a], d = te({
|
|
345
351
|
code: l,
|
|
346
352
|
localState: n,
|
|
347
353
|
rootState: o,
|
|
@@ -349,11 +355,11 @@ const Vt = ({
|
|
|
349
355
|
context: t,
|
|
350
356
|
enableCache: !0
|
|
351
357
|
});
|
|
352
|
-
|
|
358
|
+
We(i, a, d);
|
|
353
359
|
}
|
|
354
360
|
return i;
|
|
355
361
|
};
|
|
356
|
-
function
|
|
362
|
+
function Ne({
|
|
357
363
|
block: e,
|
|
358
364
|
context: t,
|
|
359
365
|
shouldEvaluateBindings: n,
|
|
@@ -362,7 +368,7 @@ function xe({
|
|
|
362
368
|
rootSetState: r
|
|
363
369
|
}) {
|
|
364
370
|
const i = e;
|
|
365
|
-
return n ?
|
|
371
|
+
return n ? Bt({
|
|
366
372
|
block: i,
|
|
367
373
|
localState: o,
|
|
368
374
|
rootState: s,
|
|
@@ -370,19 +376,19 @@ function xe({
|
|
|
370
376
|
context: t
|
|
371
377
|
}) : i;
|
|
372
378
|
}
|
|
373
|
-
function
|
|
379
|
+
function Wt(e, t, n = {}) {
|
|
374
380
|
let o, s, r, i = null, a = 0;
|
|
375
381
|
const l = function() {
|
|
376
382
|
a = n.leading === !1 ? 0 : Date.now(), i = null, r = e.apply(o, s), i || (o = s = null);
|
|
377
383
|
};
|
|
378
384
|
return function() {
|
|
379
|
-
const
|
|
380
|
-
!a && n.leading === !1 && (a =
|
|
381
|
-
const m = t - (
|
|
382
|
-
return o = this, s = arguments, m <= 0 || m > t ? (i && (clearTimeout(i), i = null), a =
|
|
385
|
+
const d = Date.now();
|
|
386
|
+
!a && n.leading === !1 && (a = d);
|
|
387
|
+
const m = t - (d - a);
|
|
388
|
+
return o = this, s = arguments, m <= 0 || m > t ? (i && (clearTimeout(i), i = null), a = d, r = e.apply(o, s), i || (o = s = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, m)), r;
|
|
383
389
|
};
|
|
384
390
|
}
|
|
385
|
-
function
|
|
391
|
+
function j(e, ...t) {
|
|
386
392
|
const n = Object(e);
|
|
387
393
|
for (let o = 1; o < arguments.length; o++) {
|
|
388
394
|
const s = arguments[o];
|
|
@@ -392,118 +398,119 @@ function H(e, ...t) {
|
|
|
392
398
|
}
|
|
393
399
|
return n;
|
|
394
400
|
}
|
|
395
|
-
const
|
|
396
|
-
function
|
|
401
|
+
const Fe = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
402
|
+
function Nt(e) {
|
|
397
403
|
for (const t of e)
|
|
398
404
|
switch (t.trigger) {
|
|
399
405
|
case "pageLoad":
|
|
400
|
-
|
|
406
|
+
Le(t);
|
|
401
407
|
break;
|
|
402
408
|
case "scrollInView":
|
|
403
|
-
|
|
409
|
+
Ot(t);
|
|
404
410
|
break;
|
|
405
411
|
}
|
|
406
412
|
}
|
|
407
|
-
function
|
|
413
|
+
function Oe(e) {
|
|
408
414
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
409
415
|
}
|
|
410
|
-
function
|
|
411
|
-
const n =
|
|
416
|
+
function Ue(e, t) {
|
|
417
|
+
const n = Ft(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
|
|
412
418
|
for (const a of i)
|
|
413
419
|
for (const l of n)
|
|
414
420
|
l in a || (a[l] = o[l]);
|
|
415
421
|
}
|
|
416
|
-
function
|
|
422
|
+
function Ft(e) {
|
|
417
423
|
const t = [];
|
|
418
424
|
for (const n of e.steps)
|
|
419
425
|
for (const o in n.styles)
|
|
420
426
|
t.indexOf(o) === -1 && t.push(o);
|
|
421
427
|
return t;
|
|
422
428
|
}
|
|
423
|
-
function
|
|
429
|
+
function Le(e) {
|
|
424
430
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
425
431
|
if (!t.length) {
|
|
426
|
-
|
|
432
|
+
Oe(e.elementId || e.id || "");
|
|
427
433
|
return;
|
|
428
434
|
}
|
|
429
435
|
Array.from(t).forEach((n) => {
|
|
430
|
-
|
|
431
|
-
n.style.transition = `all ${e.duration}s ${
|
|
436
|
+
Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
|
|
437
|
+
n.style.transition = `all ${e.duration}s ${Fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
|
|
432
438
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
433
439
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
434
440
|
});
|
|
435
441
|
});
|
|
436
442
|
}
|
|
437
|
-
function
|
|
443
|
+
function Ot(e) {
|
|
438
444
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
439
445
|
if (!t.length) {
|
|
440
|
-
|
|
446
|
+
Oe(e.elementId || e.id || "");
|
|
441
447
|
return;
|
|
442
448
|
}
|
|
443
449
|
Array.from(t).forEach((n) => {
|
|
444
|
-
|
|
450
|
+
Ue(e, n);
|
|
445
451
|
let o = !1, s = !1;
|
|
446
452
|
function r() {
|
|
447
453
|
!o && a(n) ? (o = !0, s = !0, setTimeout(() => {
|
|
448
|
-
|
|
454
|
+
j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
|
|
449
455
|
s = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
450
456
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
451
|
-
})) : e.repeat && o && !s && !a(n) && (o = !1,
|
|
457
|
+
})) : e.repeat && o && !s && !a(n) && (o = !1, j(n.style, e.steps[0].styles));
|
|
452
458
|
}
|
|
453
|
-
const i =
|
|
459
|
+
const i = Wt(r, 200, {
|
|
454
460
|
leading: !1
|
|
455
461
|
});
|
|
456
462
|
function a(m) {
|
|
457
|
-
const
|
|
458
|
-
return
|
|
463
|
+
const c = m.getBoundingClientRect(), p = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * p;
|
|
464
|
+
return c.bottom > g && c.top < p - g;
|
|
459
465
|
}
|
|
460
466
|
const l = e.steps[0].styles;
|
|
461
|
-
function
|
|
462
|
-
|
|
467
|
+
function d() {
|
|
468
|
+
j(n.style, l);
|
|
463
469
|
}
|
|
464
|
-
|
|
465
|
-
n.style.transition = `all ${e.duration}s ${
|
|
470
|
+
d(), setTimeout(() => {
|
|
471
|
+
n.style.transition = `all ${e.duration}s ${Fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
466
472
|
}), document.addEventListener("scroll", i, {
|
|
467
473
|
capture: !0,
|
|
468
474
|
passive: !0
|
|
469
475
|
}), r();
|
|
470
476
|
});
|
|
471
477
|
}
|
|
472
|
-
const
|
|
478
|
+
const Ut = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Me = (e) => Object.entries(e).map(([n, o]) => {
|
|
473
479
|
if (typeof o == "string")
|
|
474
|
-
return `${
|
|
475
|
-
}).filter(
|
|
476
|
-
`),
|
|
480
|
+
return `${Ut(n)}: ${o};`;
|
|
481
|
+
}).filter(U), Lt = (e) => Me(e).join(`
|
|
482
|
+
`), fr = ({
|
|
477
483
|
mediaQuery: e,
|
|
478
484
|
className: t,
|
|
479
485
|
styles: n
|
|
480
486
|
}) => {
|
|
481
487
|
const o = `.${t} {
|
|
482
|
-
${
|
|
488
|
+
${Lt(n)}
|
|
483
489
|
}`;
|
|
484
490
|
return e ? `${e} {
|
|
485
491
|
${o}
|
|
486
492
|
}` : o;
|
|
487
493
|
};
|
|
488
|
-
function
|
|
494
|
+
function Mt({
|
|
489
495
|
style: e
|
|
490
496
|
}) {
|
|
491
497
|
return e;
|
|
492
498
|
}
|
|
493
|
-
const
|
|
499
|
+
const br = ({
|
|
494
500
|
block: e,
|
|
495
501
|
context: t
|
|
496
|
-
}) =>
|
|
502
|
+
}) => De(Mt({
|
|
497
503
|
style: e.style || {},
|
|
498
504
|
context: t,
|
|
499
505
|
block: e
|
|
500
506
|
}));
|
|
501
|
-
function
|
|
507
|
+
function De(e) {
|
|
502
508
|
switch (V) {
|
|
503
509
|
case "svelte":
|
|
504
510
|
case "vue":
|
|
505
511
|
case "solid":
|
|
506
|
-
|
|
512
|
+
case "angular":
|
|
513
|
+
return Me(e).join(" ");
|
|
507
514
|
case "qwik":
|
|
508
515
|
case "reactNative":
|
|
509
516
|
case "react":
|
|
@@ -511,13 +518,13 @@ function Ue(e) {
|
|
|
511
518
|
return e;
|
|
512
519
|
}
|
|
513
520
|
}
|
|
514
|
-
const
|
|
521
|
+
const Dt = ({
|
|
515
522
|
block: e,
|
|
516
523
|
context: t,
|
|
517
524
|
registeredComponents: n
|
|
518
525
|
}) => {
|
|
519
526
|
var r;
|
|
520
|
-
const o = (r =
|
|
527
|
+
const o = (r = Ne({
|
|
521
528
|
block: e,
|
|
522
529
|
localState: t.localState,
|
|
523
530
|
rootState: t.rootState,
|
|
@@ -533,7 +540,7 @@ const Ut = ({
|
|
|
533
540
|
console.warn(`
|
|
534
541
|
Could not find a registered component named "${o}".
|
|
535
542
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
536
|
-
},
|
|
543
|
+
}, Ht = ({
|
|
537
544
|
block: e,
|
|
538
545
|
context: t
|
|
539
546
|
}) => {
|
|
@@ -543,7 +550,7 @@ const Ut = ({
|
|
|
543
550
|
} = e;
|
|
544
551
|
if (!(n != null && n.collection))
|
|
545
552
|
return;
|
|
546
|
-
const s =
|
|
553
|
+
const s = te({
|
|
547
554
|
code: n.collection,
|
|
548
555
|
localState: t.localState,
|
|
549
556
|
rootState: t.rootState,
|
|
@@ -554,51 +561,57 @@ const Ut = ({
|
|
|
554
561
|
if (!Array.isArray(s))
|
|
555
562
|
return;
|
|
556
563
|
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
|
|
557
|
-
return s.map((l,
|
|
564
|
+
return s.map((l, d) => ({
|
|
558
565
|
context: {
|
|
559
566
|
...t,
|
|
560
567
|
localState: {
|
|
561
568
|
...t.localState,
|
|
562
|
-
$index:
|
|
569
|
+
$index: d,
|
|
563
570
|
$item: l,
|
|
564
571
|
[i]: l,
|
|
565
|
-
[`$${i}Index`]:
|
|
572
|
+
[`$${i}Index`]: d
|
|
566
573
|
}
|
|
567
574
|
},
|
|
568
575
|
block: o
|
|
569
576
|
}));
|
|
570
|
-
},
|
|
577
|
+
}, jt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), Kt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), zt = () => import("./block-styles-VucTuDWS.js").then((e) => e.default).catch((e) => {
|
|
571
578
|
throw console.error(
|
|
572
579
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
573
580
|
e
|
|
574
581
|
), e;
|
|
575
|
-
}),
|
|
582
|
+
}), qt = () => import("./block-wrapper-PSbhfk7Q.js").then((e) => e.default).catch((e) => {
|
|
576
583
|
throw console.error(
|
|
577
584
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
578
585
|
e
|
|
579
586
|
), e;
|
|
580
|
-
}),
|
|
587
|
+
}), Jt = () => import("./component-ref-fp2vR2QJ.js").then((e) => e.default).catch((e) => {
|
|
581
588
|
throw console.error(
|
|
582
589
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
583
590
|
e
|
|
584
591
|
), e;
|
|
585
|
-
}),
|
|
592
|
+
}), Gt = () => import("./repeated-block-CJGGYuy2.js").then((e) => e.default).catch((e) => {
|
|
586
593
|
throw console.error(
|
|
587
594
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
588
595
|
e
|
|
589
596
|
), e;
|
|
590
|
-
}),
|
|
597
|
+
}), Yt = () => Promise.resolve().then(() => ln).then((e) => e.default).catch((e) => {
|
|
598
|
+
throw console.error(
|
|
599
|
+
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
600
|
+
e
|
|
601
|
+
), e;
|
|
602
|
+
}), _t = f({
|
|
591
603
|
name: "block",
|
|
592
604
|
components: {
|
|
593
|
-
BlockStyles:
|
|
594
|
-
ComponentRef:
|
|
595
|
-
RepeatedBlock:
|
|
596
|
-
BlockWrapper:
|
|
605
|
+
BlockStyles: D(zt),
|
|
606
|
+
ComponentRef: D(Jt),
|
|
607
|
+
RepeatedBlock: D(Gt),
|
|
608
|
+
BlockWrapper: D(qt),
|
|
609
|
+
DynamicDiv: D(Yt)
|
|
597
610
|
},
|
|
598
611
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
599
612
|
mounted() {
|
|
600
613
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
601
|
-
t && e &&
|
|
614
|
+
t && e && Nt(
|
|
602
615
|
t.map((n) => ({
|
|
603
616
|
...n,
|
|
604
617
|
elementId: e
|
|
@@ -607,21 +620,21 @@ const Ut = ({
|
|
|
607
620
|
},
|
|
608
621
|
computed: {
|
|
609
622
|
blockComponent() {
|
|
610
|
-
return
|
|
623
|
+
return Dt({
|
|
611
624
|
block: this.block,
|
|
612
625
|
context: this.context,
|
|
613
626
|
registeredComponents: this.registeredComponents
|
|
614
627
|
});
|
|
615
628
|
},
|
|
616
629
|
repeatItem() {
|
|
617
|
-
return
|
|
630
|
+
return Ht({
|
|
618
631
|
block: this.block,
|
|
619
632
|
context: this.context
|
|
620
633
|
});
|
|
621
634
|
},
|
|
622
635
|
processedBlock() {
|
|
623
636
|
var e;
|
|
624
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
637
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : Ne({
|
|
625
638
|
block: this.block,
|
|
626
639
|
localState: this.context.localState,
|
|
627
640
|
rootState: this.context.rootState,
|
|
@@ -646,17 +659,17 @@ const Ut = ({
|
|
|
646
659
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? this.processedBlock.children ?? [] : [];
|
|
647
660
|
},
|
|
648
661
|
componentRefProps() {
|
|
649
|
-
var e, t, n
|
|
662
|
+
var e, t, n;
|
|
650
663
|
return {
|
|
651
664
|
blockChildren: this.processedBlock.children ?? [],
|
|
652
665
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
653
666
|
componentOptions: {
|
|
654
|
-
...
|
|
667
|
+
...Ct(this.processedBlock),
|
|
655
668
|
builderContext: this.context,
|
|
656
|
-
...(
|
|
669
|
+
...jt(this.blockComponent) ? {
|
|
657
670
|
builderLinkComponent: this.linkComponent
|
|
658
671
|
} : {},
|
|
659
|
-
...(
|
|
672
|
+
...Kt(this.blockComponent) ? {
|
|
660
673
|
builderComponents: this.registeredComponents
|
|
661
674
|
} : {}
|
|
662
675
|
},
|
|
@@ -664,21 +677,21 @@ const Ut = ({
|
|
|
664
677
|
linkComponent: this.linkComponent,
|
|
665
678
|
registeredComponents: this.registeredComponents,
|
|
666
679
|
builderBlock: this.processedBlock,
|
|
667
|
-
includeBlockProps: ((
|
|
668
|
-
isInteractive: !((
|
|
680
|
+
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
681
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC)
|
|
669
682
|
};
|
|
670
683
|
}
|
|
671
684
|
}
|
|
672
685
|
});
|
|
673
|
-
function
|
|
674
|
-
var
|
|
675
|
-
const i =
|
|
686
|
+
function Qt(e, t, n, o, s, r) {
|
|
687
|
+
var c;
|
|
688
|
+
const i = y("block-styles"), a = y("component-ref"), l = y("block", !0), d = y("block-wrapper"), m = y("repeated-block");
|
|
676
689
|
return e.canShowBlock ? (u(), h($, { key: 0 }, [
|
|
677
|
-
|
|
690
|
+
E(i, {
|
|
678
691
|
block: e.block,
|
|
679
692
|
context: e.context
|
|
680
693
|
}, null, 8, ["block", "context"]),
|
|
681
|
-
(
|
|
694
|
+
(c = e.blockComponent) != null && c.noWrap ? (u(), k(a, {
|
|
682
695
|
key: 1,
|
|
683
696
|
componentRef: e.componentRefProps.componentRef,
|
|
684
697
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -690,13 +703,13 @@ function zt(e, t, n, o, s, r) {
|
|
|
690
703
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
691
704
|
isInteractive: e.componentRefProps.isInteractive
|
|
692
705
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (u(), h($, { key: 0 }, [
|
|
693
|
-
e.repeatItem ? (u(!0), h($, { key: 1 },
|
|
694
|
-
key:
|
|
706
|
+
e.repeatItem ? (u(!0), h($, { key: 1 }, O(e.repeatItem, (p, v) => (u(), k(m, {
|
|
707
|
+
key: v,
|
|
695
708
|
repeatContext: p.context,
|
|
696
709
|
block: p.block,
|
|
697
710
|
registeredComponents: e.registeredComponents,
|
|
698
711
|
linkComponent: e.linkComponent
|
|
699
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(),
|
|
712
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), k(d, {
|
|
700
713
|
key: 0,
|
|
701
714
|
Wrapper: e.Tag,
|
|
702
715
|
block: e.processedBlock,
|
|
@@ -704,7 +717,7 @@ function zt(e, t, n, o, s, r) {
|
|
|
704
717
|
linkComponent: e.linkComponent
|
|
705
718
|
}, {
|
|
706
719
|
default: B(() => [
|
|
707
|
-
|
|
720
|
+
E(a, {
|
|
708
721
|
componentRef: e.componentRefProps.componentRef,
|
|
709
722
|
componentOptions: e.componentRefProps.componentOptions,
|
|
710
723
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -715,7 +728,7 @@ function zt(e, t, n, o, s, r) {
|
|
|
715
728
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
716
729
|
isInteractive: e.componentRefProps.isInteractive
|
|
717
730
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
718
|
-
(u(!0), h($, null,
|
|
731
|
+
(u(!0), h($, null, O(e.childrenWithoutParentComponent, (p, v) => (u(), k(l, {
|
|
719
732
|
key: p.id,
|
|
720
733
|
block: p,
|
|
721
734
|
registeredComponents: e.registeredComponents,
|
|
@@ -726,12 +739,12 @@ function zt(e, t, n, o, s, r) {
|
|
|
726
739
|
_: 1
|
|
727
740
|
}, 8, ["Wrapper", "block", "context", "linkComponent"]))
|
|
728
741
|
], 64))
|
|
729
|
-
], 64)) :
|
|
742
|
+
], 64)) : S("", !0);
|
|
730
743
|
}
|
|
731
|
-
const
|
|
744
|
+
const pe = /* @__PURE__ */ b(_t, [["render", Qt]]), gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
732
745
|
__proto__: null,
|
|
733
|
-
default:
|
|
734
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
746
|
+
default: pe
|
|
747
|
+
}, Symbol.toStringTag, { value: "Module" })), Xt = f({
|
|
735
748
|
name: "builder-blocks-wrapper",
|
|
736
749
|
props: [
|
|
737
750
|
"blocks",
|
|
@@ -750,7 +763,7 @@ const le = /* @__PURE__ */ y(Kt, [["render", zt]]), er = /* @__PURE__ */ Object.
|
|
|
750
763
|
methods: {
|
|
751
764
|
onClick() {
|
|
752
765
|
var e, t;
|
|
753
|
-
|
|
766
|
+
I() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
754
767
|
{
|
|
755
768
|
type: "builder.clickEmptyBlocks",
|
|
756
769
|
data: {
|
|
@@ -763,7 +776,7 @@ const le = /* @__PURE__ */ y(Kt, [["render", zt]]), er = /* @__PURE__ */ Object.
|
|
|
763
776
|
},
|
|
764
777
|
onMouseEnter() {
|
|
765
778
|
var e, t;
|
|
766
|
-
|
|
779
|
+
I() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
767
780
|
{
|
|
768
781
|
type: "builder.hoverEmptyBlocks",
|
|
769
782
|
data: {
|
|
@@ -776,9 +789,9 @@ const le = /* @__PURE__ */ y(Kt, [["render", zt]]), er = /* @__PURE__ */ Object.
|
|
|
776
789
|
}
|
|
777
790
|
}
|
|
778
791
|
});
|
|
779
|
-
function
|
|
780
|
-
return u(),
|
|
781
|
-
class: e.className + " component-
|
|
792
|
+
function Zt(e, t, n, o, s, r) {
|
|
793
|
+
return u(), k(H(e.BlocksWrapper), w({
|
|
794
|
+
class: e.className + " component-178o76acnws",
|
|
782
795
|
"builder-path": e.path,
|
|
783
796
|
"builder-parent-id": e.parent,
|
|
784
797
|
style: e.styleProp,
|
|
@@ -792,9 +805,9 @@ function Jt(e, t, n, o, s, r) {
|
|
|
792
805
|
_: 3
|
|
793
806
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
794
807
|
}
|
|
795
|
-
const
|
|
808
|
+
const en = /* @__PURE__ */ b(Xt, [["render", Zt], ["__scopeId", "data-v-a5b13ef9"]]), tn = f({
|
|
796
809
|
name: "builder-blocks",
|
|
797
|
-
components: { BlocksWrapper:
|
|
810
|
+
components: { BlocksWrapper: en, Block: pe },
|
|
798
811
|
props: [
|
|
799
812
|
"blocks",
|
|
800
813
|
"parent",
|
|
@@ -805,43 +818,43 @@ const Gt = /* @__PURE__ */ y(qt, [["render", Jt], ["__scopeId", "data-v-9724ab41
|
|
|
805
818
|
"registeredComponents"
|
|
806
819
|
],
|
|
807
820
|
inject: {
|
|
808
|
-
builderContext:
|
|
809
|
-
componentsContext:
|
|
821
|
+
builderContext: ae.key,
|
|
822
|
+
componentsContext: Pe.key
|
|
810
823
|
}
|
|
811
824
|
});
|
|
812
|
-
function
|
|
813
|
-
var l,
|
|
814
|
-
const i =
|
|
815
|
-
return u(),
|
|
825
|
+
function nn(e, t, n, o, s, r) {
|
|
826
|
+
var l, d;
|
|
827
|
+
const i = y("block"), a = y("blocks-wrapper");
|
|
828
|
+
return u(), k(a, {
|
|
816
829
|
blocks: e.blocks,
|
|
817
830
|
parent: e.parent,
|
|
818
831
|
path: e.path,
|
|
819
832
|
styleProp: e.styleProp,
|
|
820
833
|
BlocksWrapper: ((l = e.context) == null ? void 0 : l.BlocksWrapper) || e.builderContext.BlocksWrapper,
|
|
821
|
-
BlocksWrapperProps: ((
|
|
834
|
+
BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
822
835
|
}, {
|
|
823
836
|
default: B(() => [
|
|
824
|
-
e.blocks ? (u(!0), h($, { key: 0 },
|
|
837
|
+
e.blocks ? (u(!0), h($, { key: 0 }, O(e.blocks, (m, c) => (u(), k(i, {
|
|
825
838
|
key: m.id,
|
|
826
839
|
block: m,
|
|
827
840
|
linkComponent: e.linkComponent,
|
|
828
841
|
context: e.context || e.builderContext,
|
|
829
842
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
830
|
-
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) :
|
|
843
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : S("", !0)
|
|
831
844
|
]),
|
|
832
845
|
_: 1
|
|
833
846
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
834
847
|
}
|
|
835
|
-
const
|
|
848
|
+
const J = /* @__PURE__ */ b(tn, [["render", nn]]), me = f({
|
|
836
849
|
render() {
|
|
837
|
-
return
|
|
850
|
+
return Ee("style", {
|
|
838
851
|
innerHTML: this.styles,
|
|
839
852
|
"data-id": this.id
|
|
840
853
|
});
|
|
841
854
|
},
|
|
842
855
|
name: "inlined-styles",
|
|
843
856
|
props: ["styles", "id"]
|
|
844
|
-
}),
|
|
857
|
+
}), He = {
|
|
845
858
|
small: {
|
|
846
859
|
min: 320,
|
|
847
860
|
default: 321,
|
|
@@ -857,11 +870,11 @@ const Z = /* @__PURE__ */ y(Yt, [["render", Qt]]), ce = f({
|
|
|
857
870
|
default: 991,
|
|
858
871
|
max: 1200
|
|
859
872
|
}
|
|
860
|
-
},
|
|
873
|
+
}, yr = (e, t = He) => `@media (max-width: ${t[e].max}px)`, on = ({
|
|
861
874
|
small: e,
|
|
862
875
|
medium: t
|
|
863
876
|
}) => {
|
|
864
|
-
const n =
|
|
877
|
+
const n = q(He);
|
|
865
878
|
if (!e || !t)
|
|
866
879
|
return n;
|
|
867
880
|
const o = Math.floor(e / 2);
|
|
@@ -883,21 +896,34 @@ const Z = /* @__PURE__ */ y(Yt, [["render", Qt]]), ce = f({
|
|
|
883
896
|
min: r,
|
|
884
897
|
default: r + 1
|
|
885
898
|
}, n;
|
|
886
|
-
},
|
|
899
|
+
}, sn = (e) => `builder-columns ${e}-breakpoints`, rn = f({
|
|
900
|
+
name: "dynamic-div",
|
|
901
|
+
props: []
|
|
902
|
+
});
|
|
903
|
+
function an(e, t, n, o, s, r) {
|
|
904
|
+
return u(), h("div", null, [
|
|
905
|
+
P(e.$slots, "default")
|
|
906
|
+
]);
|
|
907
|
+
}
|
|
908
|
+
const G = /* @__PURE__ */ b(rn, [["render", an]]), ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
909
|
+
__proto__: null,
|
|
910
|
+
default: G
|
|
911
|
+
}, Symbol.toStringTag, { value: "Module" })), cn = f({
|
|
887
912
|
name: "builder-columns",
|
|
888
913
|
components: {
|
|
889
|
-
InlinedStyles:
|
|
890
|
-
DynamicRenderer:
|
|
891
|
-
Blocks:
|
|
914
|
+
InlinedStyles: me,
|
|
915
|
+
DynamicRenderer: ue,
|
|
916
|
+
Blocks: J,
|
|
917
|
+
DynamicDiv: G
|
|
892
918
|
},
|
|
893
919
|
props: [
|
|
894
920
|
"space",
|
|
895
921
|
"columns",
|
|
896
922
|
"stackColumnsAt",
|
|
923
|
+
"builderLinkComponent",
|
|
897
924
|
"reverseColumnsWhenStacked",
|
|
898
925
|
"builderContext",
|
|
899
926
|
"builderBlock",
|
|
900
|
-
"builderLinkComponent",
|
|
901
927
|
"builderComponents"
|
|
902
928
|
],
|
|
903
929
|
data() {
|
|
@@ -907,49 +933,13 @@ const Z = /* @__PURE__ */ y(Yt, [["render", Qt]]), ce = f({
|
|
|
907
933
|
stackAt: this.stackColumnsAt || "tablet",
|
|
908
934
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
909
935
|
TARGET: V,
|
|
910
|
-
|
|
911
|
-
mapStyleObjToStrIfNeeded: Ue
|
|
936
|
+
getColumnsClass: sn
|
|
912
937
|
};
|
|
913
938
|
},
|
|
914
|
-
computed: {
|
|
915
|
-
columnsCssVars() {
|
|
916
|
-
return {
|
|
917
|
-
"--flex-dir": this.flexDir,
|
|
918
|
-
"--flex-dir-tablet": this.getTabletStyle({
|
|
919
|
-
stackedStyle: this.flexDir,
|
|
920
|
-
desktopStyle: "row"
|
|
921
|
-
})
|
|
922
|
-
};
|
|
923
|
-
},
|
|
924
|
-
columnsStyles() {
|
|
925
|
-
return `
|
|
926
|
-
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
927
|
-
.${this.builderBlock.id}-breakpoints {
|
|
928
|
-
flex-direction: var(--flex-dir-tablet);
|
|
929
|
-
align-items: stretch;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
933
|
-
width: var(--column-width-tablet) !important;
|
|
934
|
-
margin-left: var(--column-margin-left-tablet) !important;
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
939
|
-
.${this.builderBlock.id}-breakpoints {
|
|
940
|
-
flex-direction: var(--flex-dir);
|
|
941
|
-
align-items: stretch;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
945
|
-
width: var(--column-width-mobile) !important;
|
|
946
|
-
margin-left: var(--column-margin-left-mobile) !important;
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
`;
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
939
|
methods: {
|
|
940
|
+
getTagName(e) {
|
|
941
|
+
return e.link ? this.builderLinkComponent || "a" : "div";
|
|
942
|
+
},
|
|
953
943
|
getWidth(e) {
|
|
954
944
|
var t;
|
|
955
945
|
return ((t = this.cols[e]) == null ? void 0 : t.width) || 100 / this.cols.length;
|
|
@@ -970,6 +960,15 @@ const Z = /* @__PURE__ */ y(Yt, [["render", Qt]]), ce = f({
|
|
|
970
960
|
}) {
|
|
971
961
|
return this.stackAt === "never" ? t : e;
|
|
972
962
|
},
|
|
963
|
+
columnsCssVars() {
|
|
964
|
+
return {
|
|
965
|
+
"--flex-dir": this.flexDir,
|
|
966
|
+
"--flex-dir-tablet": this.getTabletStyle({
|
|
967
|
+
stackedStyle: this.flexDir,
|
|
968
|
+
desktopStyle: "row"
|
|
969
|
+
})
|
|
970
|
+
};
|
|
971
|
+
},
|
|
973
972
|
columnCssVars(e) {
|
|
974
973
|
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, s = "100%", r = 0;
|
|
975
974
|
return {
|
|
@@ -1000,38 +999,69 @@ const Z = /* @__PURE__ */ y(Yt, [["render", Qt]]), ce = f({
|
|
|
1000
999
|
},
|
|
1001
1000
|
getWidthForBreakpointSize(e) {
|
|
1002
1001
|
var n, o;
|
|
1003
|
-
return
|
|
1002
|
+
return on(
|
|
1004
1003
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1005
1004
|
)[e].max;
|
|
1005
|
+
},
|
|
1006
|
+
columnsStyles() {
|
|
1007
|
+
return `
|
|
1008
|
+
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
1009
|
+
.${this.builderBlock.id}-breakpoints {
|
|
1010
|
+
flex-direction: var(--flex-dir-tablet);
|
|
1011
|
+
align-items: stretch;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
1015
|
+
width: var(--column-width-tablet) !important;
|
|
1016
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
1021
|
+
.${this.builderBlock.id}-breakpoints {
|
|
1022
|
+
flex-direction: var(--flex-dir);
|
|
1023
|
+
align-items: stretch;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
1027
|
+
width: var(--column-width-mobile) !important;
|
|
1028
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
`;
|
|
1032
|
+
},
|
|
1033
|
+
getAttributes(e, t) {
|
|
1034
|
+
return {
|
|
1035
|
+
...e.link ? {
|
|
1036
|
+
href: e.link
|
|
1037
|
+
} : {},
|
|
1038
|
+
[ee()]: "builder-column",
|
|
1039
|
+
style: De(this.columnCssVars(t))
|
|
1040
|
+
};
|
|
1006
1041
|
}
|
|
1007
1042
|
}
|
|
1008
1043
|
});
|
|
1009
|
-
function
|
|
1010
|
-
|
|
1044
|
+
function dn(e, t, n, o, s, r) {
|
|
1045
|
+
var d;
|
|
1046
|
+
const i = y("inlined-styles"), a = y("blocks"), l = y("dynamic-renderer");
|
|
1011
1047
|
return u(), h("div", w({
|
|
1012
|
-
class:
|
|
1013
|
-
style: e.columnsCssVars
|
|
1048
|
+
class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-t9spj7joih",
|
|
1049
|
+
style: e.columnsCssVars()
|
|
1014
1050
|
}, {}), [
|
|
1015
|
-
e.TARGET !== "reactNative" ? (u(),
|
|
1051
|
+
e.TARGET !== "reactNative" ? (u(), k(i, {
|
|
1016
1052
|
key: 0,
|
|
1017
1053
|
id: "builderio-columns",
|
|
1018
|
-
styles: e.columnsStyles
|
|
1019
|
-
}, null, 8, ["styles"])) :
|
|
1020
|
-
(u(!0), h($, null,
|
|
1021
|
-
key:
|
|
1022
|
-
TagName:
|
|
1054
|
+
styles: e.columnsStyles()
|
|
1055
|
+
}, null, 8, ["styles"])) : S("", !0),
|
|
1056
|
+
(u(!0), h($, null, O(e.columns, (m, c) => (u(), k(l, {
|
|
1057
|
+
key: c,
|
|
1058
|
+
TagName: e.getTagName(m),
|
|
1023
1059
|
actionAttributes: {},
|
|
1024
|
-
attributes:
|
|
1025
|
-
...c.link ? {
|
|
1026
|
-
href: c.link
|
|
1027
|
-
} : {},
|
|
1028
|
-
[e.getClassPropName()]: "builder-column",
|
|
1029
|
-
style: e.mapStyleObjToStrIfNeeded(e.columnCssVars(m))
|
|
1030
|
-
}
|
|
1060
|
+
attributes: e.getAttributes(m, c)
|
|
1031
1061
|
}, {
|
|
1032
1062
|
default: B(() => [
|
|
1033
|
-
|
|
1034
|
-
path: `component.options.columns.${
|
|
1063
|
+
E(a, {
|
|
1064
|
+
path: `component.options.columns.${c}.blocks`,
|
|
1035
1065
|
parent: e.builderBlock.id,
|
|
1036
1066
|
styleProp: {
|
|
1037
1067
|
flexGrow: "1"
|
|
@@ -1039,54 +1069,54 @@ function _t(e, t, n, o, s, r) {
|
|
|
1039
1069
|
context: e.builderContext,
|
|
1040
1070
|
registeredComponents: e.builderComponents,
|
|
1041
1071
|
linkComponent: e.builderLinkComponent,
|
|
1042
|
-
blocks:
|
|
1072
|
+
blocks: m.blocks
|
|
1043
1073
|
}, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
|
|
1044
1074
|
]),
|
|
1045
1075
|
_: 2
|
|
1046
1076
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1047
1077
|
], 16);
|
|
1048
1078
|
}
|
|
1049
|
-
const
|
|
1079
|
+
const un = /* @__PURE__ */ b(cn, [["render", dn], ["__scopeId", "data-v-4878b55f"]]), pn = f({
|
|
1050
1080
|
name: "builder-fragment-component",
|
|
1051
1081
|
props: []
|
|
1052
1082
|
});
|
|
1053
|
-
function
|
|
1083
|
+
function mn(e, t, n, o, s, r) {
|
|
1054
1084
|
return u(), h("span", null, [
|
|
1055
1085
|
P(e.$slots, "default")
|
|
1056
1086
|
]);
|
|
1057
1087
|
}
|
|
1058
|
-
const
|
|
1059
|
-
function
|
|
1088
|
+
const hn = /* @__PURE__ */ b(pn, [["render", mn]]);
|
|
1089
|
+
function ke(e) {
|
|
1060
1090
|
return e.replace(/http(s)?:/, "");
|
|
1061
1091
|
}
|
|
1062
|
-
function
|
|
1092
|
+
function fn(e = "", t, n) {
|
|
1063
1093
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1064
1094
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
|
|
1065
1095
|
}
|
|
1066
|
-
function
|
|
1096
|
+
function bn(e, t) {
|
|
1067
1097
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1068
1098
|
return e;
|
|
1069
1099
|
if (t === "master")
|
|
1070
|
-
return
|
|
1100
|
+
return ke(e);
|
|
1071
1101
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1072
1102
|
if (n) {
|
|
1073
1103
|
const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1074
|
-
return
|
|
1104
|
+
return ke(`${o[0]}_${r}${s}`);
|
|
1075
1105
|
}
|
|
1076
1106
|
return null;
|
|
1077
1107
|
}
|
|
1078
|
-
function
|
|
1108
|
+
function se(e) {
|
|
1079
1109
|
if (!e)
|
|
1080
1110
|
return e;
|
|
1081
1111
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1082
1112
|
if (e.match(/builder\.io/)) {
|
|
1083
1113
|
let n = e;
|
|
1084
1114
|
const o = Number(e.split("?width=")[1]);
|
|
1085
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${
|
|
1115
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${fn(e, "width", s)} ${s}w`).concat([n]).join(", ");
|
|
1086
1116
|
}
|
|
1087
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1117
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [bn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1088
1118
|
}
|
|
1089
|
-
const
|
|
1119
|
+
const gn = f({
|
|
1090
1120
|
name: "builder-image",
|
|
1091
1121
|
props: [
|
|
1092
1122
|
"image",
|
|
@@ -1112,10 +1142,10 @@ const an = f({
|
|
|
1112
1142
|
return this.srcset;
|
|
1113
1143
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1114
1144
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1115
|
-
return console.debug("Removed given srcset"),
|
|
1145
|
+
return console.debug("Removed given srcset"), se(t);
|
|
1116
1146
|
} else if (this.image && !this.srcset)
|
|
1117
|
-
return
|
|
1118
|
-
return
|
|
1147
|
+
return se(t);
|
|
1148
|
+
return se(t);
|
|
1119
1149
|
},
|
|
1120
1150
|
webpSrcSet() {
|
|
1121
1151
|
var e;
|
|
@@ -1132,57 +1162,57 @@ const an = f({
|
|
|
1132
1162
|
return this.aspectRatio ? e : void 0;
|
|
1133
1163
|
}
|
|
1134
1164
|
}
|
|
1135
|
-
}),
|
|
1165
|
+
}), yn = ["srcset"], kn = ["alt", "role", "src", "srcset", "sizes"], vn = {
|
|
1136
1166
|
key: 2,
|
|
1137
|
-
class: "div-
|
|
1167
|
+
class: "div-20351ewpue7-2"
|
|
1138
1168
|
};
|
|
1139
|
-
function
|
|
1140
|
-
var i, a, l, c;
|
|
1169
|
+
function Sn(e, t, n, o, s, r) {
|
|
1170
|
+
var i, a, l, d, m, c;
|
|
1141
1171
|
return u(), h($, null, [
|
|
1142
|
-
|
|
1172
|
+
Z("picture", null, [
|
|
1143
1173
|
e.webpSrcSet ? (u(), h("source", {
|
|
1144
1174
|
key: 0,
|
|
1145
1175
|
type: "image/webp",
|
|
1146
1176
|
srcset: e.webpSrcSet
|
|
1147
|
-
}, null, 8,
|
|
1148
|
-
|
|
1177
|
+
}, null, 8, yn)) : S("", !0),
|
|
1178
|
+
Z("img", {
|
|
1149
1179
|
loading: "lazy",
|
|
1150
1180
|
alt: e.altText,
|
|
1151
1181
|
role: e.altText ? void 0 : "presentation",
|
|
1152
|
-
style:
|
|
1182
|
+
style: K({
|
|
1153
1183
|
objectPosition: e.backgroundPosition || "center",
|
|
1154
1184
|
objectFit: e.backgroundSize || "cover",
|
|
1155
1185
|
...e.aspectRatioCss
|
|
1156
1186
|
}),
|
|
1157
|
-
class:
|
|
1158
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1187
|
+
class: de(
|
|
1188
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-20351ewpue7"
|
|
1159
1189
|
),
|
|
1160
1190
|
src: e.image,
|
|
1161
1191
|
srcset: e.srcSetToUse,
|
|
1162
1192
|
sizes: e.sizes
|
|
1163
|
-
}, null, 14,
|
|
1193
|
+
}, null, 14, kn)
|
|
1164
1194
|
]),
|
|
1165
1195
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (u(), h("div", {
|
|
1166
1196
|
key: 0,
|
|
1167
|
-
class: "builder-image-sizer div-
|
|
1168
|
-
style:
|
|
1197
|
+
class: "builder-image-sizer div-20351ewpue7",
|
|
1198
|
+
style: K({
|
|
1169
1199
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1170
1200
|
})
|
|
1171
|
-
}, null, 4)) :
|
|
1172
|
-
(
|
|
1173
|
-
!e.fitContent && e
|
|
1201
|
+
}, null, 4)) : S("", !0),
|
|
1202
|
+
(d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1203
|
+
!e.fitContent && ((c = (m = e.builderBlock) == null ? void 0 : m.children) != null && c.length) ? (u(), h("div", vn, [
|
|
1174
1204
|
P(e.$slots, "default", {}, void 0, !0)
|
|
1175
|
-
])) :
|
|
1205
|
+
])) : S("", !0)
|
|
1176
1206
|
], 64);
|
|
1177
1207
|
}
|
|
1178
|
-
const
|
|
1208
|
+
const Cn = /* @__PURE__ */ b(gn, [["render", Sn], ["__scopeId", "data-v-5dee860d"]]), wn = f({
|
|
1179
1209
|
name: "builder-section-component",
|
|
1180
1210
|
props: ["attributes", "maxWidth"],
|
|
1181
1211
|
data() {
|
|
1182
|
-
return { filterAttrs:
|
|
1212
|
+
return { filterAttrs: W };
|
|
1183
1213
|
}
|
|
1184
1214
|
});
|
|
1185
|
-
function
|
|
1215
|
+
function Tn(e, t, n, o, s, r) {
|
|
1186
1216
|
return u(), h("section", w({
|
|
1187
1217
|
style: {
|
|
1188
1218
|
width: "100%",
|
|
@@ -1196,16 +1226,16 @@ function hn(e, t, n, o, s, r) {
|
|
|
1196
1226
|
marginLeft: "auto",
|
|
1197
1227
|
marginRight: "auto"
|
|
1198
1228
|
}
|
|
1199
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1229
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1200
1230
|
P(e.$slots, "default")
|
|
1201
1231
|
], 16);
|
|
1202
1232
|
}
|
|
1203
|
-
const
|
|
1233
|
+
const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
1204
1234
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1205
1235
|
return e;
|
|
1206
1236
|
const t = e.split(".");
|
|
1207
1237
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
1208
|
-
},
|
|
1238
|
+
}, je = ({
|
|
1209
1239
|
name: e,
|
|
1210
1240
|
canTrack: t
|
|
1211
1241
|
}) => {
|
|
@@ -1216,14 +1246,14 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1216
1246
|
R.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1217
1247
|
return;
|
|
1218
1248
|
}
|
|
1219
|
-
},
|
|
1249
|
+
}, Ke = async (e) => je(e), Rn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(U).join("; "), En = [["secure", ""], ["SameSite", "None"]], Pn = ({
|
|
1220
1250
|
name: e,
|
|
1221
1251
|
value: t,
|
|
1222
1252
|
expires: n
|
|
1223
1253
|
}) => {
|
|
1224
|
-
const s = (
|
|
1225
|
-
return
|
|
1226
|
-
},
|
|
1254
|
+
const s = (T() ? location.protocol === "https:" : !0) ? En : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", In(window.location.hostname)], ...s];
|
|
1255
|
+
return Rn(i);
|
|
1256
|
+
}, ze = async ({
|
|
1227
1257
|
name: e,
|
|
1228
1258
|
value: t,
|
|
1229
1259
|
expires: n,
|
|
@@ -1232,7 +1262,7 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1232
1262
|
try {
|
|
1233
1263
|
if (!o)
|
|
1234
1264
|
return;
|
|
1235
|
-
const s =
|
|
1265
|
+
const s = Pn({
|
|
1236
1266
|
name: e,
|
|
1237
1267
|
value: t,
|
|
1238
1268
|
expires: n
|
|
@@ -1241,24 +1271,24 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1241
1271
|
} catch (s) {
|
|
1242
1272
|
R.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
|
|
1243
1273
|
}
|
|
1244
|
-
},
|
|
1274
|
+
}, xn = "builder.tests", he = (e) => `${xn}.${e}`, Vn = ({
|
|
1245
1275
|
contentId: e
|
|
1246
|
-
}) =>
|
|
1247
|
-
name:
|
|
1276
|
+
}) => Ke({
|
|
1277
|
+
name: he(e),
|
|
1248
1278
|
canTrack: !0
|
|
1249
|
-
}),
|
|
1279
|
+
}), An = ({
|
|
1250
1280
|
contentId: e
|
|
1251
|
-
}) =>
|
|
1252
|
-
name:
|
|
1281
|
+
}) => je({
|
|
1282
|
+
name: he(e),
|
|
1253
1283
|
canTrack: !0
|
|
1254
|
-
}),
|
|
1284
|
+
}), Bn = ({
|
|
1255
1285
|
contentId: e,
|
|
1256
1286
|
value: t
|
|
1257
|
-
}) =>
|
|
1258
|
-
name:
|
|
1287
|
+
}) => ze({
|
|
1288
|
+
name: he(e),
|
|
1259
1289
|
value: t,
|
|
1260
1290
|
canTrack: !0
|
|
1261
|
-
}),
|
|
1291
|
+
}), qe = (e) => U(e.id) && U(e.variations) && Object.keys(e.variations).length > 0, Wn = ({
|
|
1262
1292
|
id: e,
|
|
1263
1293
|
variations: t
|
|
1264
1294
|
}) => {
|
|
@@ -1271,15 +1301,15 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1271
1301
|
return r;
|
|
1272
1302
|
}
|
|
1273
1303
|
return e;
|
|
1274
|
-
},
|
|
1275
|
-
const t =
|
|
1276
|
-
return
|
|
1304
|
+
}, Je = (e) => {
|
|
1305
|
+
const t = Wn(e);
|
|
1306
|
+
return Bn({
|
|
1277
1307
|
contentId: e.id,
|
|
1278
1308
|
value: t
|
|
1279
1309
|
}).catch((n) => {
|
|
1280
1310
|
R.error("could not store A/B test variation: ", n);
|
|
1281
1311
|
}), t;
|
|
1282
|
-
},
|
|
1312
|
+
}, Ge = ({
|
|
1283
1313
|
item: e,
|
|
1284
1314
|
testGroupId: t
|
|
1285
1315
|
}) => {
|
|
@@ -1293,7 +1323,7 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1293
1323
|
testVariationId: n.id,
|
|
1294
1324
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
1295
1325
|
};
|
|
1296
|
-
},
|
|
1326
|
+
}, Nn = ({
|
|
1297
1327
|
item: e,
|
|
1298
1328
|
canTrack: t
|
|
1299
1329
|
}) => {
|
|
@@ -1301,14 +1331,14 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1301
1331
|
return e;
|
|
1302
1332
|
if (!e)
|
|
1303
1333
|
return;
|
|
1304
|
-
if (!
|
|
1334
|
+
if (!qe(e))
|
|
1305
1335
|
return e;
|
|
1306
|
-
const n =
|
|
1336
|
+
const n = An({
|
|
1307
1337
|
contentId: e.id
|
|
1308
|
-
}) ||
|
|
1338
|
+
}) || Je({
|
|
1309
1339
|
variations: e.variations,
|
|
1310
1340
|
id: e.id
|
|
1311
|
-
}), o =
|
|
1341
|
+
}), o = Ge({
|
|
1312
1342
|
item: e,
|
|
1313
1343
|
testGroupId: n
|
|
1314
1344
|
});
|
|
@@ -1316,18 +1346,18 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1316
1346
|
...e,
|
|
1317
1347
|
...o
|
|
1318
1348
|
};
|
|
1319
|
-
},
|
|
1349
|
+
}, Fn = async ({
|
|
1320
1350
|
item: e,
|
|
1321
1351
|
canTrack: t
|
|
1322
1352
|
}) => {
|
|
1323
|
-
if (!t || !
|
|
1353
|
+
if (!t || !qe(e))
|
|
1324
1354
|
return e;
|
|
1325
|
-
const o = await
|
|
1355
|
+
const o = await Vn({
|
|
1326
1356
|
contentId: e.id
|
|
1327
|
-
}) ||
|
|
1357
|
+
}) || Je({
|
|
1328
1358
|
variations: e.variations,
|
|
1329
1359
|
id: e.id
|
|
1330
|
-
}), s =
|
|
1360
|
+
}), s = Ge({
|
|
1331
1361
|
item: e,
|
|
1332
1362
|
testGroupId: o
|
|
1333
1363
|
});
|
|
@@ -1335,7 +1365,7 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1335
1365
|
...e,
|
|
1336
1366
|
...s
|
|
1337
1367
|
};
|
|
1338
|
-
},
|
|
1368
|
+
}, z = (e) => U(e) ? e : !0, On = {
|
|
1339
1369
|
name: "Core:Button",
|
|
1340
1370
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1341
1371
|
defaultStyles: {
|
|
@@ -1368,7 +1398,7 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1368
1398
|
}],
|
|
1369
1399
|
static: !0,
|
|
1370
1400
|
noWrap: !0
|
|
1371
|
-
},
|
|
1401
|
+
}, Un = {
|
|
1372
1402
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1373
1403
|
name: "Columns",
|
|
1374
1404
|
isRSC: !0,
|
|
@@ -1569,13 +1599,13 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1569
1599
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1570
1600
|
advanced: !0
|
|
1571
1601
|
}]
|
|
1572
|
-
},
|
|
1602
|
+
}, Ln = {
|
|
1573
1603
|
name: "Fragment",
|
|
1574
1604
|
static: !0,
|
|
1575
1605
|
hidden: !0,
|
|
1576
1606
|
canHaveChildren: !0,
|
|
1577
1607
|
noWrap: !0
|
|
1578
|
-
},
|
|
1608
|
+
}, Mn = {
|
|
1579
1609
|
name: "Image",
|
|
1580
1610
|
static: !0,
|
|
1581
1611
|
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",
|
|
@@ -1596,15 +1626,15 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1596
1626
|
onChange: (e) => {
|
|
1597
1627
|
e.delete("srcset"), e.delete("noWebp");
|
|
1598
1628
|
function n(i, a = 6e4) {
|
|
1599
|
-
return new Promise((l,
|
|
1629
|
+
return new Promise((l, d) => {
|
|
1600
1630
|
const m = document.createElement("img");
|
|
1601
|
-
let
|
|
1631
|
+
let c = !1;
|
|
1602
1632
|
m.onload = () => {
|
|
1603
|
-
|
|
1633
|
+
c = !0, l(m);
|
|
1604
1634
|
}, m.addEventListener("error", (p) => {
|
|
1605
|
-
console.warn("Image load failed", p.error),
|
|
1635
|
+
console.warn("Image load failed", p.error), d(p.error);
|
|
1606
1636
|
}), m.src = i, setTimeout(() => {
|
|
1607
|
-
|
|
1637
|
+
c || d(new Error("Image load timed out"));
|
|
1608
1638
|
}, a);
|
|
1609
1639
|
});
|
|
1610
1640
|
}
|
|
@@ -1675,7 +1705,7 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1675
1705
|
advanced: !0,
|
|
1676
1706
|
defaultValue: 0.7041
|
|
1677
1707
|
}]
|
|
1678
|
-
},
|
|
1708
|
+
}, Dn = {
|
|
1679
1709
|
name: "Core:Section",
|
|
1680
1710
|
static: !0,
|
|
1681
1711
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1714,7 +1744,7 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1714
1744
|
}
|
|
1715
1745
|
}
|
|
1716
1746
|
}]
|
|
1717
|
-
},
|
|
1747
|
+
}, Hn = {
|
|
1718
1748
|
name: "Slot",
|
|
1719
1749
|
isRSC: !0,
|
|
1720
1750
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1727,14 +1757,14 @@ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
|
|
|
1727
1757
|
required: !0,
|
|
1728
1758
|
defaultValue: "children"
|
|
1729
1759
|
}]
|
|
1730
|
-
},
|
|
1760
|
+
}, jn = f({
|
|
1731
1761
|
name: "builder-slot",
|
|
1732
|
-
components: { Blocks:
|
|
1762
|
+
components: { Blocks: J },
|
|
1733
1763
|
props: ["builderContext", "name"]
|
|
1734
1764
|
});
|
|
1735
|
-
function
|
|
1736
|
-
var a, l,
|
|
1737
|
-
const i =
|
|
1765
|
+
function Kn(e, t, n, o, s, r) {
|
|
1766
|
+
var a, l, d;
|
|
1767
|
+
const i = y("blocks");
|
|
1738
1768
|
return u(), h("div", w(
|
|
1739
1769
|
{ style: {
|
|
1740
1770
|
pointerEvents: "auto"
|
|
@@ -1743,15 +1773,15 @@ function Wn(e, t, n, o, s, r) {
|
|
|
1743
1773
|
"builder-slot": e.name
|
|
1744
1774
|
}
|
|
1745
1775
|
), [
|
|
1746
|
-
|
|
1776
|
+
E(i, {
|
|
1747
1777
|
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
1748
1778
|
path: `symbol.data.${e.name}`,
|
|
1749
1779
|
context: e.builderContext,
|
|
1750
|
-
blocks: (
|
|
1780
|
+
blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
|
|
1751
1781
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1752
1782
|
], 16);
|
|
1753
1783
|
}
|
|
1754
|
-
const
|
|
1784
|
+
const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
1755
1785
|
name: "Symbol",
|
|
1756
1786
|
noWrap: !0,
|
|
1757
1787
|
static: !0,
|
|
@@ -1784,7 +1814,210 @@ const Nn = /* @__PURE__ */ y(Bn, [["render", Wn]]), Fn = {
|
|
|
1784
1814
|
hideFromUI: !0,
|
|
1785
1815
|
type: "boolean"
|
|
1786
1816
|
}]
|
|
1787
|
-
},
|
|
1817
|
+
}, re = {
|
|
1818
|
+
"@type": "@builder.io/sdk:Element",
|
|
1819
|
+
responsiveStyles: {
|
|
1820
|
+
large: {
|
|
1821
|
+
paddingLeft: "20px",
|
|
1822
|
+
paddingRight: "20px",
|
|
1823
|
+
paddingTop: "10px",
|
|
1824
|
+
paddingBottom: "10px",
|
|
1825
|
+
minWidth: "100px",
|
|
1826
|
+
textAlign: "center",
|
|
1827
|
+
display: "flex",
|
|
1828
|
+
flexDirection: "column",
|
|
1829
|
+
cursor: "pointer",
|
|
1830
|
+
userSelect: "none"
|
|
1831
|
+
}
|
|
1832
|
+
},
|
|
1833
|
+
component: {
|
|
1834
|
+
name: "Text",
|
|
1835
|
+
options: {
|
|
1836
|
+
text: "New tab"
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
}, ie = {
|
|
1840
|
+
"@type": "@builder.io/sdk:Element",
|
|
1841
|
+
responsiveStyles: {
|
|
1842
|
+
large: {
|
|
1843
|
+
height: "200px",
|
|
1844
|
+
display: "flex",
|
|
1845
|
+
marginTop: "20px",
|
|
1846
|
+
flexDirection: "column"
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
component: {
|
|
1850
|
+
name: "Text",
|
|
1851
|
+
options: {
|
|
1852
|
+
text: "New tab content "
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
}, Jn = {
|
|
1856
|
+
name: "Builder: Tabs",
|
|
1857
|
+
inputs: [{
|
|
1858
|
+
name: "tabs",
|
|
1859
|
+
type: "list",
|
|
1860
|
+
broadcast: !0,
|
|
1861
|
+
subFields: [{
|
|
1862
|
+
name: "label",
|
|
1863
|
+
type: "uiBlocks",
|
|
1864
|
+
hideFromUI: !0,
|
|
1865
|
+
defaultValue: [re]
|
|
1866
|
+
}, {
|
|
1867
|
+
name: "content",
|
|
1868
|
+
type: "uiBlocks",
|
|
1869
|
+
hideFromUI: !0,
|
|
1870
|
+
defaultValue: [ie]
|
|
1871
|
+
}],
|
|
1872
|
+
defaultValue: [{
|
|
1873
|
+
label: [{
|
|
1874
|
+
...re,
|
|
1875
|
+
component: {
|
|
1876
|
+
name: "Text",
|
|
1877
|
+
options: {
|
|
1878
|
+
text: "Tab 1"
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}],
|
|
1882
|
+
content: [{
|
|
1883
|
+
...ie,
|
|
1884
|
+
component: {
|
|
1885
|
+
name: "Text",
|
|
1886
|
+
options: {
|
|
1887
|
+
text: "Tab 1 content"
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
}]
|
|
1891
|
+
}, {
|
|
1892
|
+
label: [{
|
|
1893
|
+
...re,
|
|
1894
|
+
component: {
|
|
1895
|
+
name: "Text",
|
|
1896
|
+
options: {
|
|
1897
|
+
text: "Tab 2"
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
}],
|
|
1901
|
+
content: [{
|
|
1902
|
+
...ie,
|
|
1903
|
+
component: {
|
|
1904
|
+
name: "Text",
|
|
1905
|
+
options: {
|
|
1906
|
+
text: "Tab 2 content"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
}]
|
|
1910
|
+
}]
|
|
1911
|
+
}, {
|
|
1912
|
+
name: "activeTabStyle",
|
|
1913
|
+
type: "uiStyle",
|
|
1914
|
+
helperText: "CSS styles for the active tab",
|
|
1915
|
+
defaultValue: {
|
|
1916
|
+
backgroundColor: "rgba(0, 0, 0, 0.1)"
|
|
1917
|
+
}
|
|
1918
|
+
}, {
|
|
1919
|
+
name: "defaultActiveTab",
|
|
1920
|
+
type: "number",
|
|
1921
|
+
helperText: 'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',
|
|
1922
|
+
defaultValue: 1,
|
|
1923
|
+
advanced: !0
|
|
1924
|
+
}, {
|
|
1925
|
+
name: "collapsible",
|
|
1926
|
+
type: "boolean",
|
|
1927
|
+
helperText: "If on, clicking an open tab closes it so no tabs are active",
|
|
1928
|
+
defaultValue: !1,
|
|
1929
|
+
advanced: !0
|
|
1930
|
+
}, {
|
|
1931
|
+
name: "tabHeaderLayout",
|
|
1932
|
+
type: "enum",
|
|
1933
|
+
helperText: "Change the layout of the tab headers (uses justify-content)",
|
|
1934
|
+
defaultValue: "flex-start",
|
|
1935
|
+
enum: [{
|
|
1936
|
+
label: "Center",
|
|
1937
|
+
value: "center"
|
|
1938
|
+
}, {
|
|
1939
|
+
label: "Space between",
|
|
1940
|
+
value: "space-between"
|
|
1941
|
+
}, {
|
|
1942
|
+
label: "Space around",
|
|
1943
|
+
value: "space-around"
|
|
1944
|
+
}, {
|
|
1945
|
+
label: "Left",
|
|
1946
|
+
value: "flex-start"
|
|
1947
|
+
}, {
|
|
1948
|
+
label: "Right",
|
|
1949
|
+
value: "flex-end"
|
|
1950
|
+
}]
|
|
1951
|
+
}]
|
|
1952
|
+
}, Gn = f({
|
|
1953
|
+
name: "builder-tabs",
|
|
1954
|
+
components: { Blocks: J },
|
|
1955
|
+
props: [
|
|
1956
|
+
"defaultActiveTab",
|
|
1957
|
+
"tabs",
|
|
1958
|
+
"activeTabStyle",
|
|
1959
|
+
"tabHeaderLayout",
|
|
1960
|
+
"collapsible",
|
|
1961
|
+
"builderBlock",
|
|
1962
|
+
"builderContext",
|
|
1963
|
+
"builderComponents",
|
|
1964
|
+
"builderLinkComponent"
|
|
1965
|
+
],
|
|
1966
|
+
data() {
|
|
1967
|
+
return { activeTab: this.defaultActiveTab ? this.defaultActiveTab - 1 : 0 };
|
|
1968
|
+
},
|
|
1969
|
+
methods: {
|
|
1970
|
+
activeTabContent(e) {
|
|
1971
|
+
return this.tabs && this.tabs[e].content;
|
|
1972
|
+
},
|
|
1973
|
+
getActiveTabStyle(e) {
|
|
1974
|
+
return this.activeTab === e ? this.activeTabStyle : {};
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
}), Yn = ["onClick"], _n = { key: 0 };
|
|
1978
|
+
function Qn(e, t, n, o, s, r) {
|
|
1979
|
+
const i = y("blocks");
|
|
1980
|
+
return u(), h("div", null, [
|
|
1981
|
+
Z("div", {
|
|
1982
|
+
class: "builder-tabs-wrap",
|
|
1983
|
+
style: K({
|
|
1984
|
+
display: "flex",
|
|
1985
|
+
flexDirection: "row",
|
|
1986
|
+
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
1987
|
+
overflow: "auto"
|
|
1988
|
+
})
|
|
1989
|
+
}, [
|
|
1990
|
+
(u(!0), h($, null, O(e.tabs, (a, l) => (u(), h("span", {
|
|
1991
|
+
key: l,
|
|
1992
|
+
class: de(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
|
|
1993
|
+
style: K(e.getActiveTabStyle(l)),
|
|
1994
|
+
onClick: (d) => {
|
|
1995
|
+
l === e.activeTab && e.collapsible ? e.activeTab = -1 : e.activeTab = l;
|
|
1996
|
+
}
|
|
1997
|
+
}, [
|
|
1998
|
+
E(i, {
|
|
1999
|
+
parent: e.builderBlock.id,
|
|
2000
|
+
path: `component.options.tabs.${l}.label`,
|
|
2001
|
+
blocks: a.label,
|
|
2002
|
+
context: e.builderContext,
|
|
2003
|
+
registeredComponents: e.builderComponents,
|
|
2004
|
+
linkComponent: e.builderLinkComponent
|
|
2005
|
+
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2006
|
+
], 14, Yn))), 128))
|
|
2007
|
+
], 4),
|
|
2008
|
+
e.activeTabContent(e.activeTab) ? (u(), h("div", _n, [
|
|
2009
|
+
E(i, {
|
|
2010
|
+
parent: e.builderBlock.id,
|
|
2011
|
+
path: `component.options.tabs.${e.activeTab}.content`,
|
|
2012
|
+
blocks: e.activeTabContent(e.activeTab),
|
|
2013
|
+
context: e.builderContext,
|
|
2014
|
+
registeredComponents: e.builderComponents,
|
|
2015
|
+
linkComponent: e.builderLinkComponent
|
|
2016
|
+
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2017
|
+
])) : S("", !0)
|
|
2018
|
+
]);
|
|
2019
|
+
}
|
|
2020
|
+
const Xn = /* @__PURE__ */ b(Gn, [["render", Qn]]), Zn = {
|
|
1788
2021
|
name: "Text",
|
|
1789
2022
|
static: !0,
|
|
1790
2023
|
isRSC: !0,
|
|
@@ -1802,11 +2035,11 @@ const Nn = /* @__PURE__ */ y(Bn, [["render", Wn]]), Fn = {
|
|
|
1802
2035
|
height: "auto",
|
|
1803
2036
|
textAlign: "center"
|
|
1804
2037
|
}
|
|
1805
|
-
},
|
|
2038
|
+
}, eo = f({
|
|
1806
2039
|
name: "builder-text",
|
|
1807
2040
|
props: ["text"]
|
|
1808
|
-
}),
|
|
1809
|
-
function
|
|
2041
|
+
}), to = ["innerHTML"];
|
|
2042
|
+
function no(e, t, n, o, s, r) {
|
|
1810
2043
|
var i;
|
|
1811
2044
|
return u(), h("div", {
|
|
1812
2045
|
class: "builder-text",
|
|
@@ -1814,9 +2047,9 @@ function Mn(e, t, n, o, s, r) {
|
|
|
1814
2047
|
style: {
|
|
1815
2048
|
outline: "none"
|
|
1816
2049
|
}
|
|
1817
|
-
}, null, 8,
|
|
2050
|
+
}, null, 8, to);
|
|
1818
2051
|
}
|
|
1819
|
-
const
|
|
2052
|
+
const oo = /* @__PURE__ */ b(eo, [["render", no]]), so = {
|
|
1820
2053
|
name: "Custom Code",
|
|
1821
2054
|
static: !0,
|
|
1822
2055
|
requiredPermissions: ["editCode"],
|
|
@@ -1838,7 +2071,7 @@ const Dn = /* @__PURE__ */ y(Un, [["render", Mn]]), Hn = {
|
|
|
1838
2071
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1839
2072
|
advanced: !0
|
|
1840
2073
|
}]
|
|
1841
|
-
},
|
|
2074
|
+
}, ro = f({
|
|
1842
2075
|
name: "builder-custom-code",
|
|
1843
2076
|
props: ["replaceNodes", "code"],
|
|
1844
2077
|
data() {
|
|
@@ -1872,15 +2105,15 @@ const Dn = /* @__PURE__ */ y(Un, [["render", Mn]]), Hn = {
|
|
|
1872
2105
|
}
|
|
1873
2106
|
}
|
|
1874
2107
|
}
|
|
1875
|
-
}),
|
|
1876
|
-
function
|
|
2108
|
+
}), io = ["innerHTML"];
|
|
2109
|
+
function ao(e, t, n, o, s, r) {
|
|
1877
2110
|
return u(), h("div", {
|
|
1878
2111
|
ref: "elementRef",
|
|
1879
|
-
class:
|
|
2112
|
+
class: de("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
1880
2113
|
innerHTML: e.code
|
|
1881
|
-
}, null, 10,
|
|
2114
|
+
}, null, 10, io);
|
|
1882
2115
|
}
|
|
1883
|
-
const
|
|
2116
|
+
const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
1884
2117
|
name: "Embed",
|
|
1885
2118
|
static: !0,
|
|
1886
2119
|
inputs: [{
|
|
@@ -1905,7 +2138,7 @@ const qn = /* @__PURE__ */ y(jn, [["render", zn]]), Jn = {
|
|
|
1905
2138
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1906
2139
|
hideFromUI: !0
|
|
1907
2140
|
}]
|
|
1908
|
-
},
|
|
2141
|
+
}, uo = ["text/javascript", "application/javascript", "application/ecmascript"], po = (e) => uo.includes(e.type), mo = f({
|
|
1909
2142
|
name: "builder-embed",
|
|
1910
2143
|
props: ["content"],
|
|
1911
2144
|
data() {
|
|
@@ -1938,7 +2171,7 @@ const qn = /* @__PURE__ */ y(jn, [["render", zn]]), Jn = {
|
|
|
1938
2171
|
this.scriptsInserted.push(n.src);
|
|
1939
2172
|
const o = document.createElement("script");
|
|
1940
2173
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1941
|
-
} else if (
|
|
2174
|
+
} else if (po(n) && !this.scriptsRun.includes(n.innerText))
|
|
1942
2175
|
try {
|
|
1943
2176
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1944
2177
|
} catch (o) {
|
|
@@ -1947,15 +2180,15 @@ const qn = /* @__PURE__ */ y(jn, [["render", zn]]), Jn = {
|
|
|
1947
2180
|
}
|
|
1948
2181
|
}
|
|
1949
2182
|
}
|
|
1950
|
-
}),
|
|
1951
|
-
function
|
|
2183
|
+
}), ho = ["innerHTML"];
|
|
2184
|
+
function fo(e, t, n, o, s, r) {
|
|
1952
2185
|
return u(), h("div", {
|
|
1953
2186
|
class: "builder-embed",
|
|
1954
2187
|
ref: "elem",
|
|
1955
2188
|
innerHTML: e.content
|
|
1956
|
-
}, null, 8,
|
|
2189
|
+
}, null, 8, ho);
|
|
1957
2190
|
}
|
|
1958
|
-
const
|
|
2191
|
+
const bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
|
|
1959
2192
|
name: "Form:Form",
|
|
1960
2193
|
// editableTags: ['builder-form-error']
|
|
1961
2194
|
defaults: {
|
|
@@ -2186,15 +2419,15 @@ const _n = /* @__PURE__ */ y(Qn, [["render", Zn]]), eo = {
|
|
|
2186
2419
|
}
|
|
2187
2420
|
}
|
|
2188
2421
|
}]
|
|
2189
|
-
},
|
|
2422
|
+
}, yo = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ko = () => {
|
|
2190
2423
|
const e = process.env.NODE_ENV || "production";
|
|
2191
|
-
return
|
|
2192
|
-
},
|
|
2424
|
+
return yo.includes(e) ? e : "production";
|
|
2425
|
+
}, vo = (e, t, n) => {
|
|
2193
2426
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((s, r) => s != null ? s[r] : s, e);
|
|
2194
2427
|
return o === void 0 || o === e ? n : o;
|
|
2195
|
-
},
|
|
2428
|
+
}, So = f({
|
|
2196
2429
|
name: "builder-form-component",
|
|
2197
|
-
components: { Block:
|
|
2430
|
+
components: { Block: pe, Blocks: J },
|
|
2198
2431
|
props: [
|
|
2199
2432
|
"builderContext",
|
|
2200
2433
|
"previewState",
|
|
@@ -2223,7 +2456,7 @@ const _n = /* @__PURE__ */ y(Qn, [["render", Zn]]), eo = {
|
|
|
2223
2456
|
formState: "unsubmitted",
|
|
2224
2457
|
responseData: null,
|
|
2225
2458
|
formErrorMessage: "",
|
|
2226
|
-
filterAttrs:
|
|
2459
|
+
filterAttrs: W
|
|
2227
2460
|
};
|
|
2228
2461
|
},
|
|
2229
2462
|
methods: {
|
|
@@ -2236,7 +2469,7 @@ const _n = /* @__PURE__ */ y(Qn, [["render", Zn]]), eo = {
|
|
|
2236
2469
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
2237
2470
|
},
|
|
2238
2471
|
submissionState() {
|
|
2239
|
-
return
|
|
2472
|
+
return I() && this.previewState || this.formState;
|
|
2240
2473
|
},
|
|
2241
2474
|
onSubmit(e) {
|
|
2242
2475
|
var n;
|
|
@@ -2253,51 +2486,51 @@ const _n = /* @__PURE__ */ y(Qn, [["render", Zn]]), eo = {
|
|
|
2253
2486
|
let r;
|
|
2254
2487
|
const i = new FormData(o), a = Array.from(
|
|
2255
2488
|
e.currentTarget.querySelectorAll("input,select,textarea")
|
|
2256
|
-
).filter((
|
|
2489
|
+
).filter((c) => !!c.name).map((c) => {
|
|
2257
2490
|
let p;
|
|
2258
|
-
const
|
|
2259
|
-
if (
|
|
2260
|
-
if (
|
|
2261
|
-
if (
|
|
2262
|
-
return p =
|
|
2263
|
-
key:
|
|
2491
|
+
const v = c.name;
|
|
2492
|
+
if (c instanceof HTMLInputElement)
|
|
2493
|
+
if (c.type === "radio") {
|
|
2494
|
+
if (c.checked)
|
|
2495
|
+
return p = c.name, {
|
|
2496
|
+
key: v,
|
|
2264
2497
|
value: p
|
|
2265
2498
|
};
|
|
2266
|
-
} else if (
|
|
2267
|
-
p =
|
|
2268
|
-
else if (
|
|
2269
|
-
const
|
|
2270
|
-
isNaN(
|
|
2499
|
+
} else if (c.type === "checkbox")
|
|
2500
|
+
p = c.checked;
|
|
2501
|
+
else if (c.type === "number" || c.type === "range") {
|
|
2502
|
+
const g = c.valueAsNumber;
|
|
2503
|
+
isNaN(g) || (p = g);
|
|
2271
2504
|
} else
|
|
2272
|
-
|
|
2505
|
+
c.type === "file" ? p = c.files : p = c.value;
|
|
2273
2506
|
else
|
|
2274
|
-
p =
|
|
2507
|
+
p = c.value;
|
|
2275
2508
|
return {
|
|
2276
|
-
key:
|
|
2509
|
+
key: v,
|
|
2277
2510
|
value: p
|
|
2278
2511
|
};
|
|
2279
2512
|
});
|
|
2280
2513
|
let l = this.contentType;
|
|
2281
|
-
if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value:
|
|
2282
|
-
(
|
|
2514
|
+
if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
|
|
2515
|
+
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
|
|
2283
2516
|
}), l !== "application/json")
|
|
2284
2517
|
r = i;
|
|
2285
2518
|
else {
|
|
2286
|
-
const
|
|
2287
|
-
Array.from(a).forEach(({ value: p, key:
|
|
2288
|
-
|
|
2289
|
-
}), r = JSON.stringify(
|
|
2519
|
+
const c = {};
|
|
2520
|
+
Array.from(a).forEach(({ value: p, key: v }) => {
|
|
2521
|
+
We(c, v, p);
|
|
2522
|
+
}), r = JSON.stringify(c);
|
|
2290
2523
|
}
|
|
2291
2524
|
l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (s["content-type"] = l));
|
|
2292
|
-
const
|
|
2525
|
+
const d = new CustomEvent("presubmit", {
|
|
2293
2526
|
detail: {
|
|
2294
2527
|
body: r
|
|
2295
2528
|
}
|
|
2296
2529
|
});
|
|
2297
|
-
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
2530
|
+
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
|
|
2298
2531
|
return;
|
|
2299
2532
|
this.formState = "sending";
|
|
2300
|
-
const m = `${
|
|
2533
|
+
const m = `${ko() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
2301
2534
|
this.sendSubmissionsToEmail || ""
|
|
2302
2535
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
2303
2536
|
fetch(
|
|
@@ -2308,95 +2541,95 @@ const _n = /* @__PURE__ */ y(Qn, [["render", Zn]]), eo = {
|
|
|
2308
2541
|
method: this.method || "post"
|
|
2309
2542
|
}
|
|
2310
2543
|
).then(
|
|
2311
|
-
async (
|
|
2544
|
+
async (c) => {
|
|
2312
2545
|
let p;
|
|
2313
|
-
const
|
|
2314
|
-
if (
|
|
2315
|
-
let
|
|
2316
|
-
|
|
2317
|
-
formErrorMessage:
|
|
2546
|
+
const v = c.headers.get("content-type");
|
|
2547
|
+
if (v && v.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
|
|
2548
|
+
let g = vo(p, this.errorMessagePath);
|
|
2549
|
+
g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
|
|
2550
|
+
formErrorMessage: g
|
|
2318
2551
|
}));
|
|
2319
2552
|
}
|
|
2320
|
-
if (this.responseData = p, this.formState =
|
|
2321
|
-
const
|
|
2553
|
+
if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
2554
|
+
const g = new CustomEvent("submit:success", {
|
|
2322
2555
|
detail: {
|
|
2323
|
-
res:
|
|
2556
|
+
res: c,
|
|
2324
2557
|
body: p
|
|
2325
2558
|
}
|
|
2326
2559
|
});
|
|
2327
2560
|
if (this.$refs.formRef) {
|
|
2328
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
2561
|
+
if (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented)
|
|
2329
2562
|
return;
|
|
2330
2563
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
2331
2564
|
}
|
|
2332
2565
|
if (this.successUrl)
|
|
2333
2566
|
if (this.$refs.formRef) {
|
|
2334
|
-
const
|
|
2567
|
+
const N = new CustomEvent("route", {
|
|
2335
2568
|
detail: {
|
|
2336
2569
|
url: this.successUrl
|
|
2337
2570
|
}
|
|
2338
2571
|
});
|
|
2339
|
-
this.$refs.formRef.dispatchEvent(
|
|
2572
|
+
this.$refs.formRef.dispatchEvent(N), N.defaultPrevented || (location.href = this.successUrl);
|
|
2340
2573
|
} else
|
|
2341
2574
|
location.href = this.successUrl;
|
|
2342
2575
|
}
|
|
2343
2576
|
},
|
|
2344
|
-
(
|
|
2577
|
+
(c) => {
|
|
2345
2578
|
const p = new CustomEvent("submit:error", {
|
|
2346
2579
|
detail: {
|
|
2347
|
-
error:
|
|
2580
|
+
error: c
|
|
2348
2581
|
}
|
|
2349
2582
|
});
|
|
2350
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData =
|
|
2583
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = c, this.formState = "error");
|
|
2351
2584
|
}
|
|
2352
2585
|
);
|
|
2353
2586
|
}
|
|
2354
2587
|
}
|
|
2355
2588
|
}
|
|
2356
|
-
}),
|
|
2589
|
+
}), Co = ["validate", "action", "method", "name"], wo = {
|
|
2357
2590
|
key: 3,
|
|
2358
|
-
class: "builder-form-error-text pre-
|
|
2591
|
+
class: "builder-form-error-text pre-3i4ezorcfhi"
|
|
2359
2592
|
};
|
|
2360
|
-
function
|
|
2593
|
+
function To(e, t, n, o, s, r) {
|
|
2361
2594
|
var l;
|
|
2362
|
-
const i =
|
|
2595
|
+
const i = y("block"), a = y("blocks");
|
|
2363
2596
|
return u(), h("form", w({
|
|
2364
2597
|
validate: e.validate,
|
|
2365
2598
|
ref: "formRef",
|
|
2366
2599
|
action: !e.sendWithJs && e.action,
|
|
2367
2600
|
method: e.method,
|
|
2368
2601
|
name: e.name,
|
|
2369
|
-
onSubmit: t[0] || (t[0] = (
|
|
2370
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2371
|
-
e.builderBlock && e.builderBlock.children ? (u(!0), h($, { key: 0 },
|
|
2602
|
+
onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
|
|
2603
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2604
|
+
e.builderBlock && e.builderBlock.children ? (u(!0), h($, { key: 0 }, O((l = e.builderBlock) == null ? void 0 : l.children, (d, m) => (u(), k(i, {
|
|
2372
2605
|
key: `form-block-${e.idx}`,
|
|
2373
|
-
block:
|
|
2606
|
+
block: d,
|
|
2374
2607
|
context: e.builderContext,
|
|
2375
2608
|
registeredComponents: e.builderComponents,
|
|
2376
2609
|
linkComponent: e.builderLinkComponent
|
|
2377
|
-
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) :
|
|
2378
|
-
e.submissionState() === "error" ? (u(),
|
|
2610
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
|
|
2611
|
+
e.submissionState() === "error" ? (u(), k(a, {
|
|
2379
2612
|
key: 1,
|
|
2380
2613
|
path: "errorMessage",
|
|
2381
2614
|
blocks: e.errorMessage,
|
|
2382
2615
|
context: e.builderContext
|
|
2383
|
-
}, null, 8, ["blocks", "context"])) :
|
|
2384
|
-
e.submissionState() === "sending" ? (u(),
|
|
2616
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
2617
|
+
e.submissionState() === "sending" ? (u(), k(a, {
|
|
2385
2618
|
key: 2,
|
|
2386
2619
|
path: "sendingMessage",
|
|
2387
2620
|
blocks: e.sendingMessage,
|
|
2388
2621
|
context: e.builderContext
|
|
2389
|
-
}, null, 8, ["blocks", "context"])) :
|
|
2390
|
-
e.submissionState() === "error" && e.responseData ? (u(), h("pre",
|
|
2391
|
-
e.submissionState() === "success" ? (u(),
|
|
2622
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
2623
|
+
e.submissionState() === "error" && e.responseData ? (u(), h("pre", wo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
2624
|
+
e.submissionState() === "success" ? (u(), k(a, {
|
|
2392
2625
|
key: 4,
|
|
2393
2626
|
path: "successMessage",
|
|
2394
2627
|
blocks: e.successMessage,
|
|
2395
2628
|
context: e.builderContext
|
|
2396
|
-
}, null, 8, ["blocks", "context"])) :
|
|
2397
|
-
], 16,
|
|
2629
|
+
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
2630
|
+
], 16, Co);
|
|
2398
2631
|
}
|
|
2399
|
-
const
|
|
2632
|
+
const $o = /* @__PURE__ */ b(So, [["render", To], ["__scopeId", "data-v-1573388b"]]), Io = {
|
|
2400
2633
|
name: "Form:Input",
|
|
2401
2634
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2402
2635
|
inputs: [
|
|
@@ -2447,7 +2680,7 @@ const lo = /* @__PURE__ */ y(so, [["render", ao], ["__scopeId", "data-v-83a4b1d9
|
|
|
2447
2680
|
borderStyle: "solid",
|
|
2448
2681
|
borderColor: "#ccc"
|
|
2449
2682
|
}
|
|
2450
|
-
},
|
|
2683
|
+
}, Ro = f({
|
|
2451
2684
|
name: "builder-form-input-component",
|
|
2452
2685
|
props: [
|
|
2453
2686
|
"attributes",
|
|
@@ -2459,10 +2692,10 @@ const lo = /* @__PURE__ */ y(so, [["render", ao], ["__scopeId", "data-v-83a4b1d9
|
|
|
2459
2692
|
"required"
|
|
2460
2693
|
],
|
|
2461
2694
|
data() {
|
|
2462
|
-
return { isEditing:
|
|
2695
|
+
return { isEditing: I, filterAttrs: W };
|
|
2463
2696
|
}
|
|
2464
|
-
}),
|
|
2465
|
-
function
|
|
2697
|
+
}), Eo = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
2698
|
+
function Po(e, t, n, o, s, r) {
|
|
2466
2699
|
return u(), h("input", w({
|
|
2467
2700
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2468
2701
|
placeholder: e.placeholder,
|
|
@@ -2471,9 +2704,9 @@ function mo(e, t, n, o, s, r) {
|
|
|
2471
2704
|
value: e.value,
|
|
2472
2705
|
defaultValue: e.defaultValue,
|
|
2473
2706
|
required: e.required
|
|
2474
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2707
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Eo);
|
|
2475
2708
|
}
|
|
2476
|
-
const
|
|
2709
|
+
const xo = /* @__PURE__ */ b(Ro, [["render", Po]]), Vo = {
|
|
2477
2710
|
name: "Form:Select",
|
|
2478
2711
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2479
2712
|
defaultStyles: {
|
|
@@ -2515,27 +2748,27 @@ const ho = /* @__PURE__ */ y(uo, [["render", mo]]), fo = {
|
|
|
2515
2748
|
}],
|
|
2516
2749
|
static: !0,
|
|
2517
2750
|
noWrap: !0
|
|
2518
|
-
},
|
|
2751
|
+
}, Ao = f({
|
|
2519
2752
|
name: "builder-select-component",
|
|
2520
2753
|
props: ["attributes", "value", "defaultValue", "name", "options"],
|
|
2521
2754
|
data() {
|
|
2522
|
-
return { isEditing:
|
|
2755
|
+
return { isEditing: I, filterAttrs: W };
|
|
2523
2756
|
}
|
|
2524
|
-
}),
|
|
2525
|
-
function
|
|
2757
|
+
}), Bo = ["value", "defaultValue", "name"], Wo = ["value"];
|
|
2758
|
+
function No(e, t, n, o, s, r) {
|
|
2526
2759
|
return u(), h("select", w({
|
|
2527
2760
|
value: e.value,
|
|
2528
2761
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2529
2762
|
defaultValue: e.defaultValue,
|
|
2530
2763
|
name: e.name
|
|
2531
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2532
|
-
(u(!0), h($, null,
|
|
2764
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2765
|
+
(u(!0), h($, null, O(e.options, (i, a) => (u(), h("option", {
|
|
2533
2766
|
key: `${i.name}-${a}`,
|
|
2534
2767
|
value: i.value
|
|
2535
|
-
},
|
|
2536
|
-
], 16,
|
|
2768
|
+
}, ne(i.name || i.value), 9, Wo))), 128))
|
|
2769
|
+
], 16, Bo);
|
|
2537
2770
|
}
|
|
2538
|
-
const
|
|
2771
|
+
const Fo = /* @__PURE__ */ b(Ao, [["render", No]]), Oo = {
|
|
2539
2772
|
name: "Form:SubmitButton",
|
|
2540
2773
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2541
2774
|
defaultStyles: {
|
|
@@ -2560,17 +2793,17 @@ const So = /* @__PURE__ */ y(bo, [["render", ko]]), vo = {
|
|
|
2560
2793
|
// that only shows if advanced setting is flipped
|
|
2561
2794
|
// TODO: defaultChildren
|
|
2562
2795
|
// canHaveChildren: true,
|
|
2563
|
-
},
|
|
2796
|
+
}, Uo = f({
|
|
2564
2797
|
name: "builder-submit-button",
|
|
2565
2798
|
props: ["attributes", "text"],
|
|
2566
2799
|
data() {
|
|
2567
|
-
return { filterAttrs:
|
|
2800
|
+
return { filterAttrs: W };
|
|
2568
2801
|
}
|
|
2569
2802
|
});
|
|
2570
|
-
function
|
|
2571
|
-
return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2803
|
+
function Lo(e, t, n, o, s, r) {
|
|
2804
|
+
return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
|
|
2572
2805
|
}
|
|
2573
|
-
const
|
|
2806
|
+
const Mo = /* @__PURE__ */ b(Uo, [["render", Lo]]), Do = {
|
|
2574
2807
|
// friendlyName?
|
|
2575
2808
|
name: "Raw:Img",
|
|
2576
2809
|
hideFromInsertMenu: !0,
|
|
@@ -2584,7 +2817,7 @@ const Io = /* @__PURE__ */ y(Co, [["render", wo]]), $o = {
|
|
|
2584
2817
|
}],
|
|
2585
2818
|
noWrap: !0,
|
|
2586
2819
|
static: !0
|
|
2587
|
-
},
|
|
2820
|
+
}, Ho = f({
|
|
2588
2821
|
name: "builder-img-component",
|
|
2589
2822
|
props: [
|
|
2590
2823
|
"backgroundSize",
|
|
@@ -2595,10 +2828,10 @@ const Io = /* @__PURE__ */ y(Co, [["render", wo]]), $o = {
|
|
|
2595
2828
|
"attributes"
|
|
2596
2829
|
],
|
|
2597
2830
|
data() {
|
|
2598
|
-
return { isEditing:
|
|
2831
|
+
return { isEditing: I, filterAttrs: W };
|
|
2599
2832
|
}
|
|
2600
|
-
}),
|
|
2601
|
-
function
|
|
2833
|
+
}), jo = ["alt", "src"];
|
|
2834
|
+
function Ko(e, t, n, o, s, r) {
|
|
2602
2835
|
return u(), h("img", w({
|
|
2603
2836
|
style: {
|
|
2604
2837
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -2607,9 +2840,9 @@ function Eo(e, t, n, o, s, r) {
|
|
|
2607
2840
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
2608
2841
|
alt: e.altText,
|
|
2609
2842
|
src: e.imgSrc || e.image
|
|
2610
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2843
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, jo);
|
|
2611
2844
|
}
|
|
2612
|
-
const
|
|
2845
|
+
const zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
|
|
2613
2846
|
name: "Video",
|
|
2614
2847
|
canHaveChildren: !0,
|
|
2615
2848
|
defaultStyles: {
|
|
@@ -2690,7 +2923,7 @@ const Po = /* @__PURE__ */ y(To, [["render", Eo]]), Vo = {
|
|
|
2690
2923
|
defaultValue: !0,
|
|
2691
2924
|
advanced: !0
|
|
2692
2925
|
}]
|
|
2693
|
-
},
|
|
2926
|
+
}, Jo = f({
|
|
2694
2927
|
name: "builder-video",
|
|
2695
2928
|
props: [
|
|
2696
2929
|
"autoPlay",
|
|
@@ -2735,16 +2968,16 @@ const Po = /* @__PURE__ */ y(To, [["render", Eo]]), Vo = {
|
|
|
2735
2968
|
};
|
|
2736
2969
|
}
|
|
2737
2970
|
}
|
|
2738
|
-
}),
|
|
2971
|
+
}), Go = { style: {
|
|
2739
2972
|
position: "relative"
|
|
2740
|
-
} },
|
|
2973
|
+
} }, Yo = ["preload", "src", "poster"], _o = ["src"], Qo = {
|
|
2741
2974
|
key: 1,
|
|
2742
2975
|
style: {
|
|
2743
2976
|
display: "flex",
|
|
2744
2977
|
flexDirection: "column",
|
|
2745
2978
|
alignItems: "stretch"
|
|
2746
2979
|
}
|
|
2747
|
-
},
|
|
2980
|
+
}, Xo = {
|
|
2748
2981
|
key: 2,
|
|
2749
2982
|
style: {
|
|
2750
2983
|
pointerEvents: "none",
|
|
@@ -2758,10 +2991,10 @@ const Po = /* @__PURE__ */ y(To, [["render", Eo]]), Vo = {
|
|
|
2758
2991
|
height: "100%"
|
|
2759
2992
|
}
|
|
2760
2993
|
};
|
|
2761
|
-
function
|
|
2762
|
-
var i, a, l,
|
|
2763
|
-
return u(), h("div",
|
|
2764
|
-
|
|
2994
|
+
function Zo(e, t, n, o, s, r) {
|
|
2995
|
+
var i, a, l, d, m, c, p;
|
|
2996
|
+
return u(), h("div", Go, [
|
|
2997
|
+
Z("video", w({
|
|
2765
2998
|
class: "builder-video",
|
|
2766
2999
|
preload: e.preload || "metadata",
|
|
2767
3000
|
style: {
|
|
@@ -2781,93 +3014,96 @@ function Oo(e, t, n, o, s, r) {
|
|
|
2781
3014
|
src: e.video || "no-src",
|
|
2782
3015
|
poster: e.posterImage
|
|
2783
3016
|
}, e.spreadProps), [
|
|
2784
|
-
e.lazyLoad ?
|
|
3017
|
+
e.lazyLoad ? S("", !0) : (u(), h("source", {
|
|
2785
3018
|
key: 0,
|
|
2786
3019
|
type: "video/mp4",
|
|
2787
3020
|
src: e.video
|
|
2788
|
-
}, null, 8,
|
|
2789
|
-
], 16,
|
|
3021
|
+
}, null, 8, _o))
|
|
3022
|
+
], 16, Yo),
|
|
2790
3023
|
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
|
|
2791
3024
|
key: 0,
|
|
2792
|
-
style:
|
|
3025
|
+
style: K({
|
|
2793
3026
|
width: "100%",
|
|
2794
3027
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
2795
3028
|
pointerEvents: "none",
|
|
2796
3029
|
fontSize: "0px"
|
|
2797
3030
|
})
|
|
2798
|
-
}, null, 4)) :
|
|
2799
|
-
(m = (
|
|
3031
|
+
}, null, 4)) : S("", !0),
|
|
3032
|
+
(m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", Qo, [
|
|
2800
3033
|
P(e.$slots, "default")
|
|
2801
|
-
])) :
|
|
2802
|
-
(p = (
|
|
3034
|
+
])) : S("", !0),
|
|
3035
|
+
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", Xo, [
|
|
2803
3036
|
P(e.$slots, "default")
|
|
2804
|
-
])) :
|
|
3037
|
+
])) : S("", !0)
|
|
2805
3038
|
]);
|
|
2806
3039
|
}
|
|
2807
|
-
const
|
|
2808
|
-
component: qn,
|
|
2809
|
-
...Hn
|
|
2810
|
-
}, {
|
|
2811
|
-
component: _n,
|
|
2812
|
-
...Jn
|
|
2813
|
-
}, {
|
|
3040
|
+
const es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
|
|
2814
3041
|
component: lo,
|
|
2815
|
-
...
|
|
3042
|
+
...so
|
|
2816
3043
|
}, {
|
|
2817
|
-
component:
|
|
3044
|
+
component: bo,
|
|
2818
3045
|
...co
|
|
2819
3046
|
}, {
|
|
2820
|
-
component:
|
|
2821
|
-
...
|
|
3047
|
+
component: $o,
|
|
3048
|
+
...go
|
|
2822
3049
|
}, {
|
|
2823
|
-
component:
|
|
2824
|
-
...
|
|
3050
|
+
component: xo,
|
|
3051
|
+
...Io
|
|
2825
3052
|
}, {
|
|
2826
|
-
component:
|
|
2827
|
-
|
|
3053
|
+
component: Mo,
|
|
3054
|
+
...Oo
|
|
2828
3055
|
}, {
|
|
2829
|
-
component:
|
|
3056
|
+
component: Fo,
|
|
2830
3057
|
...Vo
|
|
2831
|
-
}], be = () => [{
|
|
2832
|
-
component: bt,
|
|
2833
|
-
...Rn
|
|
2834
3058
|
}, {
|
|
2835
|
-
component:
|
|
2836
|
-
...
|
|
3059
|
+
component: zo,
|
|
3060
|
+
...Do
|
|
3061
|
+
}, {
|
|
3062
|
+
component: es,
|
|
3063
|
+
...qo
|
|
3064
|
+
}], ve = () => [{
|
|
3065
|
+
component: kt,
|
|
3066
|
+
...On
|
|
2837
3067
|
}, {
|
|
2838
|
-
component:
|
|
2839
|
-
...
|
|
3068
|
+
component: un,
|
|
3069
|
+
...Un
|
|
2840
3070
|
}, {
|
|
2841
|
-
component:
|
|
2842
|
-
...
|
|
3071
|
+
component: hn,
|
|
3072
|
+
...Ln
|
|
2843
3073
|
}, {
|
|
2844
|
-
component:
|
|
2845
|
-
...
|
|
3074
|
+
component: Cn,
|
|
3075
|
+
...Mn
|
|
2846
3076
|
}, {
|
|
2847
|
-
component:
|
|
2848
|
-
...
|
|
3077
|
+
component: $n,
|
|
3078
|
+
...Dn
|
|
2849
3079
|
}, {
|
|
2850
|
-
component:
|
|
2851
|
-
...
|
|
3080
|
+
component: zn,
|
|
3081
|
+
...Hn
|
|
2852
3082
|
}, {
|
|
2853
|
-
component:
|
|
2854
|
-
...
|
|
2855
|
-
},
|
|
3083
|
+
component: dr,
|
|
3084
|
+
...qn
|
|
3085
|
+
}, {
|
|
3086
|
+
component: oo,
|
|
3087
|
+
...Zn
|
|
3088
|
+
}, {
|
|
3089
|
+
component: Xn,
|
|
3090
|
+
...Jn
|
|
3091
|
+
}, ...ts()], ns = (e) => ({
|
|
2856
3092
|
type: "builder.registerComponent",
|
|
2857
|
-
data:
|
|
2858
|
-
}),
|
|
3093
|
+
data: le(e)
|
|
3094
|
+
}), os = (e) => {
|
|
2859
3095
|
const t = e.toString().trim();
|
|
2860
3096
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2861
|
-
},
|
|
3097
|
+
}, ss = (e) => typeof e == "function" ? os(e) : q(e), le = ({
|
|
2862
3098
|
inputs: e,
|
|
2863
3099
|
...t
|
|
2864
3100
|
}) => ({
|
|
2865
|
-
...
|
|
3101
|
+
...q(t),
|
|
2866
3102
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
|
|
2867
3103
|
...o,
|
|
2868
|
-
[s]:
|
|
3104
|
+
[s]: ss(r)
|
|
2869
3105
|
}), {}))
|
|
2870
|
-
}),
|
|
3106
|
+
}), rs = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2871
3107
|
function getAndSetVariantId() {
|
|
2872
3108
|
function setCookie(name, value, days) {
|
|
2873
3109
|
let expires = '';
|
|
@@ -2923,7 +3159,7 @@ const Uo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Lo = () => [{
|
|
|
2923
3159
|
}).join('');
|
|
2924
3160
|
styleEl.innerHTML = newStyleStr;
|
|
2925
3161
|
}
|
|
2926
|
-
}`,
|
|
3162
|
+
}`, is = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2927
3163
|
if (!navigator.cookieEnabled) {
|
|
2928
3164
|
return;
|
|
2929
3165
|
}
|
|
@@ -2957,27 +3193,27 @@ const Uo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Lo = () => [{
|
|
|
2957
3193
|
thisScriptEl?.remove();
|
|
2958
3194
|
}
|
|
2959
3195
|
return;
|
|
2960
|
-
}`,
|
|
3196
|
+
}`, Ye = "builderIoAbTest", _e = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2961
3197
|
...t,
|
|
2962
3198
|
testVariationId: t.id,
|
|
2963
3199
|
id: e == null ? void 0 : e.id
|
|
2964
|
-
})),
|
|
3200
|
+
})), as = ({
|
|
2965
3201
|
canTrack: e,
|
|
2966
3202
|
content: t
|
|
2967
|
-
}) => !(!(
|
|
2968
|
-
window.${
|
|
2969
|
-
window.${
|
|
2970
|
-
`,
|
|
2971
|
-
window.${
|
|
2972
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2973
|
-
)`,
|
|
3203
|
+
}) => !(!(Q(t).length > 0) || !e), ls = (e) => e === "react" || e === "reactNative", Qe = ls(V), cs = () => `
|
|
3204
|
+
window.${Ye} = ${rs}
|
|
3205
|
+
window.${_e} = ${is}
|
|
3206
|
+
`, ds = (e, t) => `
|
|
3207
|
+
window.${Ye}(
|
|
3208
|
+
"${t}",${JSON.stringify(e)}, ${Qe}
|
|
3209
|
+
)`, us = ({
|
|
2974
3210
|
contentId: e,
|
|
2975
3211
|
variationId: t
|
|
2976
|
-
}) => `window.${
|
|
2977
|
-
"${t}", "${e}", ${
|
|
2978
|
-
)`,
|
|
3212
|
+
}) => `window.${_e}(
|
|
3213
|
+
"${t}", "${e}", ${Qe}
|
|
3214
|
+
)`, Xe = f({
|
|
2979
3215
|
render() {
|
|
2980
|
-
return
|
|
3216
|
+
return Ee("script", {
|
|
2981
3217
|
innerHTML: this.scriptStr,
|
|
2982
3218
|
"data-id": this.id
|
|
2983
3219
|
});
|
|
@@ -2985,45 +3221,45 @@ const Uo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Lo = () => [{
|
|
|
2985
3221
|
name: "inlined-script",
|
|
2986
3222
|
props: ["scriptStr", "id"]
|
|
2987
3223
|
});
|
|
2988
|
-
function
|
|
3224
|
+
function ps() {
|
|
2989
3225
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2990
3226
|
}
|
|
2991
|
-
function
|
|
2992
|
-
const e =
|
|
3227
|
+
function ms() {
|
|
3228
|
+
const e = ps().fetch;
|
|
2993
3229
|
if (typeof e > "u")
|
|
2994
3230
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2995
3231
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2996
3232
|
return e;
|
|
2997
3233
|
}
|
|
2998
|
-
const
|
|
2999
|
-
function
|
|
3234
|
+
const Ze = ms();
|
|
3235
|
+
function X(e, t = null, n = ".") {
|
|
3000
3236
|
return Object.keys(e).reduce((o, s) => {
|
|
3001
3237
|
const r = e[s], i = [t, s].filter(Boolean).join(n);
|
|
3002
3238
|
return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
|
|
3003
3239
|
...o,
|
|
3004
|
-
...
|
|
3240
|
+
...X(r, i, n)
|
|
3005
3241
|
} : {
|
|
3006
3242
|
...o,
|
|
3007
3243
|
[i]: r
|
|
3008
3244
|
};
|
|
3009
3245
|
}, {});
|
|
3010
3246
|
}
|
|
3011
|
-
const
|
|
3247
|
+
const hs = "v3", Se = "builder.", fs = "options.", et = (e) => {
|
|
3012
3248
|
if (!e)
|
|
3013
3249
|
return {};
|
|
3014
|
-
const t =
|
|
3250
|
+
const t = xe(e), n = {};
|
|
3015
3251
|
return Object.keys(t).forEach((o) => {
|
|
3016
|
-
if (o.startsWith(
|
|
3017
|
-
const s = o.replace(
|
|
3252
|
+
if (o.startsWith(Se)) {
|
|
3253
|
+
const s = o.replace(Se, "").replace(fs, "");
|
|
3018
3254
|
n[s] = t[o];
|
|
3019
3255
|
}
|
|
3020
3256
|
}), n;
|
|
3021
|
-
},
|
|
3022
|
-
if (!
|
|
3257
|
+
}, bs = () => {
|
|
3258
|
+
if (!T())
|
|
3023
3259
|
return {};
|
|
3024
3260
|
const e = new URLSearchParams(window.location.search);
|
|
3025
|
-
return
|
|
3026
|
-
},
|
|
3261
|
+
return et(e);
|
|
3262
|
+
}, Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
|
|
3027
3263
|
const {
|
|
3028
3264
|
limit: t = 30,
|
|
3029
3265
|
userAttributes: n,
|
|
@@ -3032,60 +3268,60 @@ const Zo = "v3", ge = "builder.", _o = "options.", Xe = (e) => {
|
|
|
3032
3268
|
apiKey: r,
|
|
3033
3269
|
enrich: i,
|
|
3034
3270
|
locale: a,
|
|
3035
|
-
apiVersion: l =
|
|
3036
|
-
fields:
|
|
3271
|
+
apiVersion: l = hs,
|
|
3272
|
+
fields: d,
|
|
3037
3273
|
omit: m,
|
|
3038
|
-
offset:
|
|
3274
|
+
offset: c,
|
|
3039
3275
|
cacheSeconds: p,
|
|
3040
|
-
staleCacheSeconds:
|
|
3041
|
-
sort:
|
|
3042
|
-
includeUnpublished:
|
|
3276
|
+
staleCacheSeconds: v,
|
|
3277
|
+
sort: g,
|
|
3278
|
+
includeUnpublished: N
|
|
3043
3279
|
} = e;
|
|
3044
3280
|
if (!r)
|
|
3045
3281
|
throw new Error("Missing API key");
|
|
3046
3282
|
if (!["v3"].includes(l))
|
|
3047
3283
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
|
|
3048
|
-
const
|
|
3049
|
-
if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(
|
|
3050
|
-
const
|
|
3051
|
-
sort:
|
|
3284
|
+
const Y = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
|
|
3285
|
+
if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(Y)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a), i && C.searchParams.set("enrich", String(i)), C.searchParams.set("omit", m || "meta.componentsUsed"), d && C.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof N == "boolean" && C.searchParams.set("includeUnpublished", String(N)), p && Ce(p) && C.searchParams.set("cacheSeconds", String(p)), v && Ce(v) && C.searchParams.set("staleCacheSeconds", String(v)), g) {
|
|
3286
|
+
const F = X({
|
|
3287
|
+
sort: g
|
|
3052
3288
|
});
|
|
3053
|
-
for (const M in
|
|
3054
|
-
C.searchParams.set(M, JSON.stringify(
|
|
3289
|
+
for (const M in F)
|
|
3290
|
+
C.searchParams.set(M, JSON.stringify(F[M]));
|
|
3055
3291
|
}
|
|
3056
|
-
const
|
|
3057
|
-
...
|
|
3058
|
-
...
|
|
3059
|
-
},
|
|
3060
|
-
for (const
|
|
3061
|
-
C.searchParams.set(
|
|
3292
|
+
const lt = {
|
|
3293
|
+
...bs(),
|
|
3294
|
+
...xe(e.options || {})
|
|
3295
|
+
}, ge = X(lt);
|
|
3296
|
+
for (const F in ge)
|
|
3297
|
+
C.searchParams.set(F, String(ge[F]));
|
|
3062
3298
|
if (n && C.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
3063
|
-
const
|
|
3299
|
+
const F = X({
|
|
3064
3300
|
query: o
|
|
3065
3301
|
});
|
|
3066
|
-
for (const M in
|
|
3067
|
-
C.searchParams.set(M, JSON.stringify(
|
|
3302
|
+
for (const M in F)
|
|
3303
|
+
C.searchParams.set(M, JSON.stringify(F[M]));
|
|
3068
3304
|
}
|
|
3069
3305
|
return C;
|
|
3070
|
-
},
|
|
3071
|
-
async function
|
|
3072
|
-
const t = await
|
|
3306
|
+
}, gs = (e) => "results" in e;
|
|
3307
|
+
async function be(e) {
|
|
3308
|
+
const t = await vs({
|
|
3073
3309
|
...e,
|
|
3074
3310
|
limit: 1
|
|
3075
3311
|
});
|
|
3076
3312
|
return t && t[0] || null;
|
|
3077
3313
|
}
|
|
3078
|
-
const
|
|
3079
|
-
const t =
|
|
3080
|
-
return await (await (e.fetch ??
|
|
3081
|
-
},
|
|
3082
|
-
const o =
|
|
3083
|
-
if (n.search.includes("preview="), !o || !(
|
|
3314
|
+
const ys = async (e) => {
|
|
3315
|
+
const t = fe(e);
|
|
3316
|
+
return await (await (e.fetch ?? Ze)(t.href, e.fetchOptions)).json();
|
|
3317
|
+
}, ks = async (e, t, n = fe(e)) => {
|
|
3318
|
+
const o = z(e.canTrack);
|
|
3319
|
+
if (n.search.includes("preview="), !o || !(T() || V === "reactNative"))
|
|
3084
3320
|
return t.results;
|
|
3085
3321
|
try {
|
|
3086
3322
|
const s = [];
|
|
3087
3323
|
for (const r of t.results)
|
|
3088
|
-
s.push(await
|
|
3324
|
+
s.push(await Fn({
|
|
3089
3325
|
item: r,
|
|
3090
3326
|
canTrack: o
|
|
3091
3327
|
}));
|
|
@@ -3095,10 +3331,10 @@ const ns = async (e) => {
|
|
|
3095
3331
|
}
|
|
3096
3332
|
return t.results;
|
|
3097
3333
|
};
|
|
3098
|
-
async function
|
|
3334
|
+
async function vs(e) {
|
|
3099
3335
|
try {
|
|
3100
|
-
const t =
|
|
3101
|
-
return
|
|
3336
|
+
const t = fe(e), n = await ys(e);
|
|
3337
|
+
return gs(n) ? ks(e, n) : (R.error("Error fetching data. ", {
|
|
3102
3338
|
url: t,
|
|
3103
3339
|
content: n,
|
|
3104
3340
|
options: e
|
|
@@ -3107,92 +3343,92 @@ async function ss(e) {
|
|
|
3107
3343
|
return R.error("Error fetching data. ", t), null;
|
|
3108
3344
|
}
|
|
3109
3345
|
}
|
|
3110
|
-
function
|
|
3111
|
-
const t = e || (
|
|
3112
|
-
return t ?
|
|
3346
|
+
function Ss(e) {
|
|
3347
|
+
const t = e || (T() ? window.location.search : void 0);
|
|
3348
|
+
return t ? Ve(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3113
3349
|
}
|
|
3114
|
-
function
|
|
3350
|
+
function Cs() {
|
|
3115
3351
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
3116
3352
|
const t = Math.random() * 16 | 0;
|
|
3117
3353
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
3118
3354
|
});
|
|
3119
3355
|
}
|
|
3120
|
-
function
|
|
3121
|
-
return
|
|
3356
|
+
function tt() {
|
|
3357
|
+
return Cs().replace(/-/g, "");
|
|
3122
3358
|
}
|
|
3123
|
-
const
|
|
3359
|
+
const nt = "builderSessionId", ws = async ({
|
|
3124
3360
|
canTrack: e
|
|
3125
3361
|
}) => {
|
|
3126
3362
|
if (!e)
|
|
3127
3363
|
return;
|
|
3128
|
-
const t = await
|
|
3129
|
-
name:
|
|
3364
|
+
const t = await Ke({
|
|
3365
|
+
name: nt,
|
|
3130
3366
|
canTrack: e
|
|
3131
3367
|
});
|
|
3132
|
-
if (
|
|
3368
|
+
if (U(t))
|
|
3133
3369
|
return t;
|
|
3134
3370
|
{
|
|
3135
|
-
const n =
|
|
3136
|
-
return
|
|
3371
|
+
const n = Ts();
|
|
3372
|
+
return $s({
|
|
3137
3373
|
id: n,
|
|
3138
3374
|
canTrack: e
|
|
3139
3375
|
}), n;
|
|
3140
3376
|
}
|
|
3141
|
-
},
|
|
3377
|
+
}, Ts = () => tt(), $s = ({
|
|
3142
3378
|
id: e,
|
|
3143
3379
|
canTrack: t
|
|
3144
|
-
}) =>
|
|
3145
|
-
name:
|
|
3380
|
+
}) => ze({
|
|
3381
|
+
name: nt,
|
|
3146
3382
|
value: e,
|
|
3147
3383
|
canTrack: t
|
|
3148
|
-
}),
|
|
3384
|
+
}), ot = () => T() && typeof localStorage < "u" ? localStorage : void 0, Is = ({
|
|
3149
3385
|
key: e,
|
|
3150
3386
|
canTrack: t
|
|
3151
3387
|
}) => {
|
|
3152
3388
|
var n;
|
|
3153
3389
|
try {
|
|
3154
|
-
return t ? (n =
|
|
3390
|
+
return t ? (n = ot()) == null ? void 0 : n.getItem(e) : void 0;
|
|
3155
3391
|
} catch (o) {
|
|
3156
3392
|
console.debug("[LocalStorage] GET error: ", o);
|
|
3157
3393
|
return;
|
|
3158
3394
|
}
|
|
3159
|
-
},
|
|
3395
|
+
}, Rs = ({
|
|
3160
3396
|
key: e,
|
|
3161
3397
|
canTrack: t,
|
|
3162
3398
|
value: n
|
|
3163
3399
|
}) => {
|
|
3164
3400
|
var o;
|
|
3165
3401
|
try {
|
|
3166
|
-
t && ((o =
|
|
3402
|
+
t && ((o = ot()) == null || o.setItem(e, n));
|
|
3167
3403
|
} catch (s) {
|
|
3168
3404
|
console.debug("[LocalStorage] SET error: ", s);
|
|
3169
3405
|
}
|
|
3170
|
-
},
|
|
3406
|
+
}, st = "builderVisitorId", Es = ({
|
|
3171
3407
|
canTrack: e
|
|
3172
3408
|
}) => {
|
|
3173
3409
|
if (!e)
|
|
3174
3410
|
return;
|
|
3175
|
-
const t =
|
|
3176
|
-
key:
|
|
3411
|
+
const t = Is({
|
|
3412
|
+
key: st,
|
|
3177
3413
|
canTrack: e
|
|
3178
3414
|
});
|
|
3179
|
-
if (
|
|
3415
|
+
if (U(t))
|
|
3180
3416
|
return t;
|
|
3181
3417
|
{
|
|
3182
|
-
const n =
|
|
3183
|
-
return
|
|
3418
|
+
const n = Ps();
|
|
3419
|
+
return xs({
|
|
3184
3420
|
id: n,
|
|
3185
3421
|
canTrack: e
|
|
3186
3422
|
}), n;
|
|
3187
3423
|
}
|
|
3188
|
-
},
|
|
3424
|
+
}, Ps = () => tt(), xs = ({
|
|
3189
3425
|
id: e,
|
|
3190
3426
|
canTrack: t
|
|
3191
|
-
}) =>
|
|
3192
|
-
key:
|
|
3427
|
+
}) => Rs({
|
|
3428
|
+
key: st,
|
|
3193
3429
|
value: e,
|
|
3194
3430
|
canTrack: t
|
|
3195
|
-
}),
|
|
3431
|
+
}), Vs = async ({
|
|
3196
3432
|
canTrack: e
|
|
3197
3433
|
}) => {
|
|
3198
3434
|
if (!e)
|
|
@@ -3200,16 +3436,16 @@ const _e = "builderSessionId", as = async ({
|
|
|
3200
3436
|
visitorId: void 0,
|
|
3201
3437
|
sessionId: void 0
|
|
3202
3438
|
};
|
|
3203
|
-
const t = await
|
|
3439
|
+
const t = await ws({
|
|
3204
3440
|
canTrack: e
|
|
3205
|
-
}), n =
|
|
3441
|
+
}), n = Es({
|
|
3206
3442
|
canTrack: e
|
|
3207
3443
|
});
|
|
3208
3444
|
return {
|
|
3209
3445
|
sessionId: t,
|
|
3210
3446
|
visitorId: n
|
|
3211
3447
|
};
|
|
3212
|
-
},
|
|
3448
|
+
}, As = async ({
|
|
3213
3449
|
type: e,
|
|
3214
3450
|
canTrack: t,
|
|
3215
3451
|
apiKey: n,
|
|
@@ -3223,23 +3459,23 @@ const _e = "builderSessionId", as = async ({
|
|
|
3223
3459
|
url: location.href,
|
|
3224
3460
|
...o
|
|
3225
3461
|
},
|
|
3226
|
-
...await
|
|
3462
|
+
...await Vs({
|
|
3227
3463
|
canTrack: t
|
|
3228
3464
|
}),
|
|
3229
|
-
userAttributes:
|
|
3465
|
+
userAttributes: Ae(),
|
|
3230
3466
|
ownerId: n
|
|
3231
3467
|
}
|
|
3232
3468
|
});
|
|
3233
|
-
async function
|
|
3469
|
+
async function ce(e) {
|
|
3234
3470
|
if (!e.apiKey) {
|
|
3235
3471
|
R.error("Missing API key for track call. Please provide your API key.");
|
|
3236
3472
|
return;
|
|
3237
3473
|
}
|
|
3238
|
-
if (e.canTrack && !
|
|
3474
|
+
if (e.canTrack && !I() && (T() || V === "reactNative"))
|
|
3239
3475
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
3240
3476
|
method: "POST",
|
|
3241
3477
|
body: JSON.stringify({
|
|
3242
|
-
events: [await
|
|
3478
|
+
events: [await As(e)]
|
|
3243
3479
|
}),
|
|
3244
3480
|
headers: {
|
|
3245
3481
|
"content-type": "application/json"
|
|
@@ -3249,14 +3485,14 @@ async function re(e) {
|
|
|
3249
3485
|
console.error("Failed to track: ", t);
|
|
3250
3486
|
});
|
|
3251
3487
|
}
|
|
3252
|
-
const
|
|
3488
|
+
const kr = (e) => ce({
|
|
3253
3489
|
...e,
|
|
3254
3490
|
canTrack: !0
|
|
3255
3491
|
});
|
|
3256
|
-
function
|
|
3492
|
+
function we(e) {
|
|
3257
3493
|
return Math.round(e * 1e3) / 1e3;
|
|
3258
3494
|
}
|
|
3259
|
-
const
|
|
3495
|
+
const Bs = (e, t, n = !0) => {
|
|
3260
3496
|
if (!(e instanceof HTMLElement))
|
|
3261
3497
|
return null;
|
|
3262
3498
|
let o = n ? e : e.parentElement;
|
|
@@ -3267,43 +3503,43 @@ const gs = (e, t, n = !0) => {
|
|
|
3267
3503
|
return o;
|
|
3268
3504
|
} while (o = o.parentElement);
|
|
3269
3505
|
return null;
|
|
3270
|
-
},
|
|
3506
|
+
}, Ws = (e) => Bs(e, (t) => {
|
|
3271
3507
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3272
3508
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3273
|
-
}),
|
|
3509
|
+
}), Te = ({
|
|
3274
3510
|
event: e,
|
|
3275
3511
|
target: t
|
|
3276
3512
|
}) => {
|
|
3277
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r =
|
|
3513
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = we(o / n.width), i = we(s / n.height);
|
|
3278
3514
|
return {
|
|
3279
3515
|
x: r,
|
|
3280
3516
|
y: i
|
|
3281
3517
|
};
|
|
3282
|
-
},
|
|
3283
|
-
const t = e.target, n = t &&
|
|
3518
|
+
}, Ns = (e) => {
|
|
3519
|
+
const t = e.target, n = t && Ws(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3284
3520
|
return {
|
|
3285
3521
|
targetBuilderElement: o || void 0,
|
|
3286
3522
|
metadata: {
|
|
3287
|
-
targetOffset: t ?
|
|
3523
|
+
targetOffset: t ? Te({
|
|
3288
3524
|
event: e,
|
|
3289
3525
|
target: t
|
|
3290
3526
|
}) : void 0,
|
|
3291
|
-
builderTargetOffset: n ?
|
|
3527
|
+
builderTargetOffset: n ? Te({
|
|
3292
3528
|
event: e,
|
|
3293
3529
|
target: n
|
|
3294
3530
|
}) : void 0,
|
|
3295
3531
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
3296
3532
|
}
|
|
3297
3533
|
};
|
|
3298
|
-
},
|
|
3299
|
-
function
|
|
3534
|
+
}, Fs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3535
|
+
function rt(e, t) {
|
|
3300
3536
|
const n = new URL(t.origin), o = n.hostname;
|
|
3301
|
-
return (e ||
|
|
3537
|
+
return (e || Fs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
|
|
3302
3538
|
}
|
|
3303
|
-
const
|
|
3304
|
-
function
|
|
3305
|
-
let n =
|
|
3306
|
-
if (n || (n =
|
|
3539
|
+
const Os = "1.0.25", $e = {};
|
|
3540
|
+
function Us(e, t) {
|
|
3541
|
+
let n = $e[e];
|
|
3542
|
+
if (n || (n = $e[e] = []), n.push(t), T()) {
|
|
3307
3543
|
const o = {
|
|
3308
3544
|
type: "builder.register",
|
|
3309
3545
|
data: {
|
|
@@ -3318,8 +3554,8 @@ function Cs(e, t) {
|
|
|
3318
3554
|
}
|
|
3319
3555
|
}
|
|
3320
3556
|
}
|
|
3321
|
-
const
|
|
3322
|
-
|
|
3557
|
+
const Ls = () => {
|
|
3558
|
+
Us("insertMenu", {
|
|
3323
3559
|
name: "_default",
|
|
3324
3560
|
default: !0,
|
|
3325
3561
|
items: [{
|
|
@@ -3341,14 +3577,14 @@ const ws = () => {
|
|
|
3341
3577
|
}]
|
|
3342
3578
|
});
|
|
3343
3579
|
};
|
|
3344
|
-
let
|
|
3345
|
-
const
|
|
3580
|
+
let Ie = !1;
|
|
3581
|
+
const it = (e = {}) => {
|
|
3346
3582
|
var t, n;
|
|
3347
|
-
|
|
3583
|
+
Ie || (Ie = !0, T() && ((t = window.parent) == null || t.postMessage({
|
|
3348
3584
|
type: "builder.sdkInfo",
|
|
3349
3585
|
data: {
|
|
3350
3586
|
target: V,
|
|
3351
|
-
version:
|
|
3587
|
+
version: Os,
|
|
3352
3588
|
supportsPatchUpdates: !1,
|
|
3353
3589
|
// Supports builder-model="..." attribute which is needed to
|
|
3354
3590
|
// scope our '+ add block' button styling
|
|
@@ -3362,7 +3598,7 @@ const ot = (e = {}) => {
|
|
|
3362
3598
|
}
|
|
3363
3599
|
}, "*"), window.addEventListener("message", (o) => {
|
|
3364
3600
|
var r, i;
|
|
3365
|
-
if (!
|
|
3601
|
+
if (!rt(e.trustedHosts, o))
|
|
3366
3602
|
return;
|
|
3367
3603
|
const {
|
|
3368
3604
|
data: s
|
|
@@ -3370,45 +3606,45 @@ const ot = (e = {}) => {
|
|
|
3370
3606
|
if (s != null && s.type)
|
|
3371
3607
|
switch (s.type) {
|
|
3372
3608
|
case "builder.evaluate": {
|
|
3373
|
-
const a = s.data.text, l = s.data.arguments || [],
|
|
3374
|
-
let
|
|
3609
|
+
const a = s.data.text, l = s.data.arguments || [], d = s.data.id, m = new Function(a);
|
|
3610
|
+
let c, p = null;
|
|
3375
3611
|
try {
|
|
3376
|
-
|
|
3377
|
-
} catch (
|
|
3378
|
-
p =
|
|
3612
|
+
c = m.apply(null, l);
|
|
3613
|
+
} catch (v) {
|
|
3614
|
+
p = v;
|
|
3379
3615
|
}
|
|
3380
3616
|
p ? (r = window.parent) == null || r.postMessage({
|
|
3381
3617
|
type: "builder.evaluateError",
|
|
3382
3618
|
data: {
|
|
3383
|
-
id:
|
|
3619
|
+
id: d,
|
|
3384
3620
|
error: p.message
|
|
3385
3621
|
}
|
|
3386
|
-
}, "*") :
|
|
3387
|
-
var
|
|
3388
|
-
(
|
|
3622
|
+
}, "*") : c && typeof c.then == "function" ? c.then((v) => {
|
|
3623
|
+
var g;
|
|
3624
|
+
(g = window.parent) == null || g.postMessage({
|
|
3389
3625
|
type: "builder.evaluateResult",
|
|
3390
3626
|
data: {
|
|
3391
|
-
id:
|
|
3392
|
-
result:
|
|
3627
|
+
id: d,
|
|
3628
|
+
result: v
|
|
3393
3629
|
}
|
|
3394
3630
|
}, "*");
|
|
3395
3631
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
3396
3632
|
type: "builder.evaluateResult",
|
|
3397
3633
|
data: {
|
|
3398
|
-
result:
|
|
3399
|
-
id:
|
|
3634
|
+
result: c,
|
|
3635
|
+
id: d
|
|
3400
3636
|
}
|
|
3401
3637
|
}, "*");
|
|
3402
3638
|
break;
|
|
3403
3639
|
}
|
|
3404
3640
|
}
|
|
3405
3641
|
})));
|
|
3406
|
-
},
|
|
3642
|
+
}, at = ({
|
|
3407
3643
|
model: e,
|
|
3408
3644
|
trustedHosts: t,
|
|
3409
3645
|
callbacks: n
|
|
3410
3646
|
}) => (o) => {
|
|
3411
|
-
if (!
|
|
3647
|
+
if (!rt(t, o))
|
|
3412
3648
|
return;
|
|
3413
3649
|
const {
|
|
3414
3650
|
data: s
|
|
@@ -3429,12 +3665,12 @@ const ot = (e = {}) => {
|
|
|
3429
3665
|
break;
|
|
3430
3666
|
}
|
|
3431
3667
|
}
|
|
3432
|
-
},
|
|
3433
|
-
if (!
|
|
3668
|
+
}, vr = (e, t, n) => {
|
|
3669
|
+
if (!T)
|
|
3434
3670
|
return R.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3435
3671
|
};
|
|
3436
|
-
|
|
3437
|
-
const o =
|
|
3672
|
+
it();
|
|
3673
|
+
const o = at({
|
|
3438
3674
|
callbacks: {
|
|
3439
3675
|
contentUpdate: t,
|
|
3440
3676
|
animation: () => {
|
|
@@ -3448,8 +3684,60 @@ const ot = (e = {}) => {
|
|
|
3448
3684
|
return window.addEventListener("message", o), () => {
|
|
3449
3685
|
window.removeEventListener("message", o);
|
|
3450
3686
|
};
|
|
3451
|
-
},
|
|
3687
|
+
}, Ms = (e) => {
|
|
3688
|
+
var r;
|
|
3689
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
|
|
3690
|
+
let s = "";
|
|
3691
|
+
if (o && t && n && (s += `
|
|
3692
|
+
@font-face {
|
|
3693
|
+
font-family: "${t}";
|
|
3694
|
+
src: local("${n}"), url('${o}') format('woff2');
|
|
3695
|
+
font-display: fallback;
|
|
3696
|
+
font-weight: 400;
|
|
3697
|
+
}
|
|
3698
|
+
`.trim()), e.files)
|
|
3699
|
+
for (const i in e.files) {
|
|
3700
|
+
if (!(String(Number(i)) === i))
|
|
3701
|
+
continue;
|
|
3702
|
+
const l = e.files[i];
|
|
3703
|
+
l && l !== o && (s += `
|
|
3704
|
+
@font-face {
|
|
3705
|
+
font-family: "${t}";
|
|
3706
|
+
src: url('${l}') format('woff2');
|
|
3707
|
+
font-display: fallback;
|
|
3708
|
+
font-weight: ${i};
|
|
3709
|
+
}
|
|
3710
|
+
`.trim());
|
|
3711
|
+
}
|
|
3712
|
+
return s;
|
|
3713
|
+
}, Ds = ({
|
|
3714
|
+
customFonts: e
|
|
3715
|
+
}) => {
|
|
3716
|
+
var t;
|
|
3717
|
+
return ((t = e == null ? void 0 : e.map((n) => Ms(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3718
|
+
}, Hs = ({
|
|
3719
|
+
cssCode: e,
|
|
3720
|
+
contentId: t
|
|
3721
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", js = `
|
|
3722
|
+
.builder-button {
|
|
3723
|
+
all: unset;
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3727
|
+
margin: 0;
|
|
3728
|
+
}
|
|
3729
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
3730
|
+
color: inherit;
|
|
3731
|
+
line-height: inherit;
|
|
3732
|
+
letter-spacing: inherit;
|
|
3733
|
+
font-weight: inherit;
|
|
3734
|
+
font-size: inherit;
|
|
3735
|
+
text-align: inherit;
|
|
3736
|
+
font-family: inherit;
|
|
3737
|
+
}
|
|
3738
|
+
`, Ks = (e) => e ? "" : js, zs = (e) => `variant-${e}`, qs = f({
|
|
3452
3739
|
name: "enable-editor",
|
|
3740
|
+
components: { DynamicDiv: G },
|
|
3453
3741
|
props: [
|
|
3454
3742
|
"builderContextSignal",
|
|
3455
3743
|
"canTrack",
|
|
@@ -3460,9 +3748,9 @@ const ot = (e = {}) => {
|
|
|
3460
3748
|
"model",
|
|
3461
3749
|
"content",
|
|
3462
3750
|
"data",
|
|
3751
|
+
"showContent",
|
|
3463
3752
|
"contentWrapper",
|
|
3464
3753
|
"context",
|
|
3465
|
-
"showContent",
|
|
3466
3754
|
"contentWrapperProps"
|
|
3467
3755
|
],
|
|
3468
3756
|
data() {
|
|
@@ -3471,24 +3759,25 @@ const ot = (e = {}) => {
|
|
|
3471
3759
|
httpReqsData: {},
|
|
3472
3760
|
httpReqsPending: {},
|
|
3473
3761
|
clicked: !1,
|
|
3474
|
-
builderContext:
|
|
3762
|
+
builderContext: ae,
|
|
3763
|
+
getWrapperClassName: zs
|
|
3475
3764
|
};
|
|
3476
3765
|
},
|
|
3477
3766
|
provide() {
|
|
3478
3767
|
const e = this;
|
|
3479
3768
|
return {
|
|
3480
|
-
[
|
|
3769
|
+
[ae.key]: e.builderContextSignal
|
|
3481
3770
|
};
|
|
3482
3771
|
},
|
|
3483
3772
|
mounted() {
|
|
3484
3773
|
(() => {
|
|
3485
3774
|
var n, o;
|
|
3486
|
-
if (
|
|
3487
|
-
if (
|
|
3775
|
+
if (T()) {
|
|
3776
|
+
if (I() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
3488
3777
|
new CustomEvent("initeditingbldr")
|
|
3489
|
-
), this.builderContextSignal.content &&
|
|
3778
|
+
), this.builderContextSignal.content && z(this.canTrack)) {
|
|
3490
3779
|
const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
3491
|
-
|
|
3780
|
+
ce({
|
|
3492
3781
|
type: "impression",
|
|
3493
3782
|
canTrack: !0,
|
|
3494
3783
|
contentId: i,
|
|
@@ -3496,7 +3785,7 @@ const ot = (e = {}) => {
|
|
|
3496
3785
|
variationId: r !== i ? r : void 0
|
|
3497
3786
|
});
|
|
3498
3787
|
}
|
|
3499
|
-
|
|
3788
|
+
Ss() && !I() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
3500
3789
|
new CustomEvent("initpreviewingbldr")
|
|
3501
3790
|
);
|
|
3502
3791
|
}
|
|
@@ -3547,12 +3836,18 @@ const ot = (e = {}) => {
|
|
|
3547
3836
|
}
|
|
3548
3837
|
},
|
|
3549
3838
|
unmounted() {
|
|
3550
|
-
|
|
3839
|
+
T() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
3551
3840
|
"builder:component:stateChangeListenerActivated",
|
|
3552
3841
|
this.emitStateUpdate
|
|
3553
3842
|
));
|
|
3554
3843
|
},
|
|
3555
3844
|
computed: {
|
|
3845
|
+
showContentProps() {
|
|
3846
|
+
return this.showContent ? {} : {
|
|
3847
|
+
hidden: !0,
|
|
3848
|
+
"aria-hidden": !0
|
|
3849
|
+
};
|
|
3850
|
+
},
|
|
3556
3851
|
onUpdateHook0() {
|
|
3557
3852
|
return {
|
|
3558
3853
|
0: this.content
|
|
@@ -3613,7 +3908,7 @@ const ot = (e = {}) => {
|
|
|
3613
3908
|
this.builderContextSignal.content = t;
|
|
3614
3909
|
},
|
|
3615
3910
|
processMessage(e) {
|
|
3616
|
-
return
|
|
3911
|
+
return at({
|
|
3617
3912
|
model: this.model,
|
|
3618
3913
|
trustedHosts: this.trustedHosts,
|
|
3619
3914
|
callbacks: {
|
|
@@ -3627,7 +3922,7 @@ const ot = (e = {}) => {
|
|
|
3627
3922
|
});
|
|
3628
3923
|
},
|
|
3629
3924
|
animation: (t) => {
|
|
3630
|
-
|
|
3925
|
+
Le(t);
|
|
3631
3926
|
},
|
|
3632
3927
|
contentUpdate: (t) => {
|
|
3633
3928
|
this.mergeNewContent(t);
|
|
@@ -3638,7 +3933,7 @@ const ot = (e = {}) => {
|
|
|
3638
3933
|
evaluateJsCode() {
|
|
3639
3934
|
var t, n;
|
|
3640
3935
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
3641
|
-
e &&
|
|
3936
|
+
e && te({
|
|
3642
3937
|
code: e,
|
|
3643
3938
|
context: this.context || {},
|
|
3644
3939
|
localState: void 0,
|
|
@@ -3654,13 +3949,13 @@ const ot = (e = {}) => {
|
|
|
3654
3949
|
var t, n;
|
|
3655
3950
|
if (this.builderContextSignal.content) {
|
|
3656
3951
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
3657
|
-
|
|
3952
|
+
ce({
|
|
3658
3953
|
type: "click",
|
|
3659
|
-
canTrack:
|
|
3954
|
+
canTrack: z(this.canTrack),
|
|
3660
3955
|
contentId: s,
|
|
3661
3956
|
apiKey: this.apiKey,
|
|
3662
3957
|
variationId: o !== s ? o : void 0,
|
|
3663
|
-
...
|
|
3958
|
+
...Ns(e),
|
|
3664
3959
|
unique: !this.clicked
|
|
3665
3960
|
});
|
|
3666
3961
|
}
|
|
@@ -3670,13 +3965,13 @@ const ot = (e = {}) => {
|
|
|
3670
3965
|
var t, n;
|
|
3671
3966
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
3672
3967
|
Object.entries(e).forEach(([o, s]) => {
|
|
3673
|
-
if (!s || this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
3968
|
+
if (!s || this.httpReqsPending[o] || this.httpReqsData[o] && !I())
|
|
3674
3969
|
return;
|
|
3675
3970
|
this.httpReqsPending[o] = !0;
|
|
3676
3971
|
const r = s.replace(
|
|
3677
3972
|
/{{([^}]+)}}/g,
|
|
3678
3973
|
(i, a) => String(
|
|
3679
|
-
|
|
3974
|
+
te({
|
|
3680
3975
|
code: a,
|
|
3681
3976
|
context: this.context || {},
|
|
3682
3977
|
localState: void 0,
|
|
@@ -3686,7 +3981,7 @@ const ot = (e = {}) => {
|
|
|
3686
3981
|
})
|
|
3687
3982
|
)
|
|
3688
3983
|
);
|
|
3689
|
-
|
|
3984
|
+
Ze(r).then((i) => i.json()).then((i) => {
|
|
3690
3985
|
this.mergeNewRootState({
|
|
3691
3986
|
[o]: i
|
|
3692
3987
|
}), this.httpReqsData[o] = !0;
|
|
@@ -3698,12 +3993,12 @@ const ot = (e = {}) => {
|
|
|
3698
3993
|
});
|
|
3699
3994
|
},
|
|
3700
3995
|
emitStateUpdate() {
|
|
3701
|
-
|
|
3996
|
+
I() && window.dispatchEvent(
|
|
3702
3997
|
new CustomEvent(
|
|
3703
3998
|
"builder:component:stateChange",
|
|
3704
3999
|
{
|
|
3705
4000
|
detail: {
|
|
3706
|
-
state:
|
|
4001
|
+
state: q(this.builderContextSignal.rootState),
|
|
3707
4002
|
ref: {
|
|
3708
4003
|
name: this.model
|
|
3709
4004
|
}
|
|
@@ -3713,7 +4008,7 @@ const ot = (e = {}) => {
|
|
|
3713
4008
|
);
|
|
3714
4009
|
},
|
|
3715
4010
|
elementRef_onIniteditingbldr(e) {
|
|
3716
|
-
window.addEventListener("message", this.processMessage),
|
|
4011
|
+
window.addEventListener("message", this.processMessage), Ls(), it({
|
|
3717
4012
|
...this.locale ? {
|
|
3718
4013
|
locale: this.locale
|
|
3719
4014
|
} : {},
|
|
@@ -3727,7 +4022,7 @@ const ot = (e = {}) => {
|
|
|
3727
4022
|
this.builderContextSignal.componentInfos
|
|
3728
4023
|
).forEach((t) => {
|
|
3729
4024
|
var o;
|
|
3730
|
-
const n =
|
|
4025
|
+
const n = ns(t);
|
|
3731
4026
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
3732
4027
|
}), window.addEventListener(
|
|
3733
4028
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -3738,7 +4033,7 @@ const ot = (e = {}) => {
|
|
|
3738
4033
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
3739
4034
|
`builder.preview.${n}`
|
|
3740
4035
|
), s = t.get("apiKey") || t.get("builder.space");
|
|
3741
|
-
n === this.model && s === this.apiKey && (!this.content || o === this.content.id) &&
|
|
4036
|
+
n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && be({
|
|
3742
4037
|
model: this.model,
|
|
3743
4038
|
apiKey: this.apiKey,
|
|
3744
4039
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -3748,108 +4043,51 @@ const ot = (e = {}) => {
|
|
|
3748
4043
|
}
|
|
3749
4044
|
}
|
|
3750
4045
|
});
|
|
3751
|
-
function
|
|
4046
|
+
function Js(e, t, n, o, s, r) {
|
|
3752
4047
|
var i, a, l;
|
|
3753
|
-
return e.builderContextSignal.content ? (u(),
|
|
4048
|
+
return e.builderContextSignal.content ? (u(), k(H(e.ContentWrapper), w({
|
|
3754
4049
|
key: 0,
|
|
3755
4050
|
ref: "elementRef",
|
|
3756
|
-
onClick: (
|
|
4051
|
+
onClick: (d) => e.onClick(d),
|
|
3757
4052
|
"builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
|
|
3758
4053
|
"builder-model": e.model,
|
|
3759
|
-
class:
|
|
3760
|
-
onIniteditingbldr: (
|
|
3761
|
-
onInitpreviewingbldr: (
|
|
3762
|
-
}, {
|
|
3763
|
-
...e.showContent ? {} : {
|
|
3764
|
-
hidden: !0,
|
|
3765
|
-
"aria-hidden": !0
|
|
3766
|
-
},
|
|
3767
|
-
...e.contentWrapperProps
|
|
3768
|
-
}), {
|
|
4054
|
+
class: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
|
|
4055
|
+
onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
|
|
4056
|
+
onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
|
|
4057
|
+
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
3769
4058
|
default: B(() => [
|
|
3770
4059
|
P(e.$slots, "default")
|
|
3771
4060
|
]),
|
|
3772
4061
|
_: 3
|
|
3773
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
3774
|
-
}
|
|
3775
|
-
const Ts = /* @__PURE__ */ y(Is, [["render", $s]]), Rs = (e) => {
|
|
3776
|
-
var r;
|
|
3777
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
|
|
3778
|
-
let s = "";
|
|
3779
|
-
if (o && t && n && (s += `
|
|
3780
|
-
@font-face {
|
|
3781
|
-
font-family: "${t}";
|
|
3782
|
-
src: local("${n}"), url('${o}') format('woff2');
|
|
3783
|
-
font-display: fallback;
|
|
3784
|
-
font-weight: 400;
|
|
3785
|
-
}
|
|
3786
|
-
`.trim()), e.files)
|
|
3787
|
-
for (const i in e.files) {
|
|
3788
|
-
if (!(String(Number(i)) === i))
|
|
3789
|
-
continue;
|
|
3790
|
-
const l = e.files[i];
|
|
3791
|
-
l && l !== o && (s += `
|
|
3792
|
-
@font-face {
|
|
3793
|
-
font-family: "${t}";
|
|
3794
|
-
src: url('${l}') format('woff2');
|
|
3795
|
-
font-display: fallback;
|
|
3796
|
-
font-weight: ${i};
|
|
3797
|
-
}
|
|
3798
|
-
`.trim());
|
|
3799
|
-
}
|
|
3800
|
-
return s;
|
|
3801
|
-
}, Es = ({
|
|
3802
|
-
customFonts: e
|
|
3803
|
-
}) => {
|
|
3804
|
-
var t;
|
|
3805
|
-
return ((t = e == null ? void 0 : e.map((n) => Rs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3806
|
-
}, Ps = ({
|
|
3807
|
-
cssCode: e,
|
|
3808
|
-
contentId: t
|
|
3809
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Vs = `
|
|
3810
|
-
.builder-button {
|
|
3811
|
-
all: unset;
|
|
3812
|
-
}
|
|
3813
|
-
|
|
3814
|
-
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3815
|
-
margin: 0;
|
|
4062
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
3816
4063
|
}
|
|
3817
|
-
|
|
3818
|
-
color: inherit;
|
|
3819
|
-
line-height: inherit;
|
|
3820
|
-
letter-spacing: inherit;
|
|
3821
|
-
font-weight: inherit;
|
|
3822
|
-
font-size: inherit;
|
|
3823
|
-
text-align: inherit;
|
|
3824
|
-
font-family: inherit;
|
|
3825
|
-
}
|
|
3826
|
-
`, As = (e) => e ? "" : Vs, xs = f({
|
|
4064
|
+
const Gs = /* @__PURE__ */ b(qs, [["render", Js]]), Ys = f({
|
|
3827
4065
|
name: "content-styles",
|
|
3828
|
-
components: { InlinedStyles:
|
|
4066
|
+
components: { InlinedStyles: me },
|
|
3829
4067
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
3830
4068
|
data() {
|
|
3831
4069
|
return {
|
|
3832
4070
|
injectedStyles: `
|
|
3833
|
-
${
|
|
4071
|
+
${Hs({
|
|
3834
4072
|
cssCode: this.cssCode,
|
|
3835
4073
|
contentId: this.contentId
|
|
3836
4074
|
})}
|
|
3837
|
-
${
|
|
4075
|
+
${Ds({
|
|
3838
4076
|
customFonts: this.customFonts
|
|
3839
4077
|
})}
|
|
3840
|
-
${
|
|
4078
|
+
${Ks(this.isNestedRender)}
|
|
3841
4079
|
`.trim()
|
|
3842
4080
|
};
|
|
3843
4081
|
}
|
|
3844
4082
|
});
|
|
3845
|
-
function
|
|
3846
|
-
const i =
|
|
3847
|
-
return u(),
|
|
4083
|
+
function _s(e, t, n, o, s, r) {
|
|
4084
|
+
const i = y("inlined-styles");
|
|
4085
|
+
return u(), k(i, {
|
|
3848
4086
|
id: "builderio-content",
|
|
3849
4087
|
styles: e.injectedStyles
|
|
3850
4088
|
}, null, 8, ["styles"]);
|
|
3851
4089
|
}
|
|
3852
|
-
const
|
|
4090
|
+
const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
|
|
3853
4091
|
content: e,
|
|
3854
4092
|
data: t,
|
|
3855
4093
|
locale: n
|
|
@@ -3866,7 +4104,7 @@ const Ws = /* @__PURE__ */ y(xs, [["render", Bs]]), Ns = ({
|
|
|
3866
4104
|
locale: n
|
|
3867
4105
|
} : {}
|
|
3868
4106
|
};
|
|
3869
|
-
},
|
|
4107
|
+
}, Zs = ({
|
|
3870
4108
|
content: e,
|
|
3871
4109
|
data: t
|
|
3872
4110
|
}) => e ? {
|
|
@@ -3876,13 +4114,14 @@ const Ws = /* @__PURE__ */ y(xs, [["render", Bs]]), Ns = ({
|
|
|
3876
4114
|
...t
|
|
3877
4115
|
},
|
|
3878
4116
|
meta: e == null ? void 0 : e.meta
|
|
3879
|
-
} : void 0,
|
|
4117
|
+
} : void 0, er = pt, tr = f({
|
|
3880
4118
|
name: "content-component",
|
|
3881
4119
|
components: {
|
|
3882
|
-
EnableEditor:
|
|
3883
|
-
InlinedScript:
|
|
3884
|
-
ContentStyles:
|
|
3885
|
-
Blocks:
|
|
4120
|
+
EnableEditor: Gs,
|
|
4121
|
+
InlinedScript: Xe,
|
|
4122
|
+
ContentStyles: Qs,
|
|
4123
|
+
Blocks: J,
|
|
4124
|
+
DynamicDiv: G
|
|
3886
4125
|
},
|
|
3887
4126
|
props: [
|
|
3888
4127
|
"content",
|
|
@@ -3908,32 +4147,32 @@ const Ws = /* @__PURE__ */ y(xs, [["render", Bs]]), Ns = ({
|
|
|
3908
4147
|
data() {
|
|
3909
4148
|
var e, t;
|
|
3910
4149
|
return {
|
|
3911
|
-
scriptStr:
|
|
4150
|
+
scriptStr: us({
|
|
3912
4151
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3913
4152
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
3914
4153
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3915
4154
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
3916
4155
|
}),
|
|
3917
4156
|
registeredComponents: [
|
|
3918
|
-
...
|
|
4157
|
+
...ve(),
|
|
3919
4158
|
...this.customComponents || []
|
|
3920
4159
|
].reduce(
|
|
3921
4160
|
(n, { component: o, ...s }) => ({
|
|
3922
4161
|
...n,
|
|
3923
4162
|
[s.name]: {
|
|
3924
|
-
component:
|
|
3925
|
-
...
|
|
4163
|
+
component: er(o),
|
|
4164
|
+
...le(s)
|
|
3926
4165
|
}
|
|
3927
4166
|
}),
|
|
3928
4167
|
{}
|
|
3929
4168
|
),
|
|
3930
4169
|
builderContextSignal: {
|
|
3931
|
-
content:
|
|
4170
|
+
content: Zs({
|
|
3932
4171
|
content: this.content,
|
|
3933
4172
|
data: this.data
|
|
3934
4173
|
}),
|
|
3935
4174
|
localState: void 0,
|
|
3936
|
-
rootState:
|
|
4175
|
+
rootState: Xs({
|
|
3937
4176
|
content: this.content,
|
|
3938
4177
|
data: this.data,
|
|
3939
4178
|
locale: this.locale
|
|
@@ -3943,12 +4182,12 @@ const Ws = /* @__PURE__ */ y(xs, [["render", Bs]]), Ns = ({
|
|
|
3943
4182
|
apiKey: this.apiKey,
|
|
3944
4183
|
apiVersion: this.apiVersion,
|
|
3945
4184
|
componentInfos: [
|
|
3946
|
-
...
|
|
4185
|
+
...ve(),
|
|
3947
4186
|
...this.customComponents || []
|
|
3948
4187
|
].reduce(
|
|
3949
4188
|
(n, { component: o, ...s }) => ({
|
|
3950
4189
|
...n,
|
|
3951
|
-
[s.name]:
|
|
4190
|
+
[s.name]: le(s)
|
|
3952
4191
|
}),
|
|
3953
4192
|
{}
|
|
3954
4193
|
),
|
|
@@ -3962,7 +4201,7 @@ const Ws = /* @__PURE__ */ y(xs, [["render", Bs]]), Ns = ({
|
|
|
3962
4201
|
provide() {
|
|
3963
4202
|
const e = this;
|
|
3964
4203
|
return {
|
|
3965
|
-
[
|
|
4204
|
+
[Pe.key]: {
|
|
3966
4205
|
registeredComponents: e.registeredComponents
|
|
3967
4206
|
}
|
|
3968
4207
|
};
|
|
@@ -3973,9 +4212,9 @@ const Ws = /* @__PURE__ */ y(xs, [["render", Bs]]), Ns = ({
|
|
|
3973
4212
|
}
|
|
3974
4213
|
}
|
|
3975
4214
|
});
|
|
3976
|
-
function
|
|
3977
|
-
const i =
|
|
3978
|
-
return u(),
|
|
4215
|
+
function nr(e, t, n, o, s, r) {
|
|
4216
|
+
const i = y("inlined-script"), a = y("content-styles"), l = y("blocks"), d = y("enable-editor");
|
|
4217
|
+
return u(), k(d, w({
|
|
3979
4218
|
content: e.content,
|
|
3980
4219
|
data: e.data,
|
|
3981
4220
|
model: e.model,
|
|
@@ -3992,22 +4231,22 @@ function Ls(e, t, n, o, s, r) {
|
|
|
3992
4231
|
trustedHosts: e.trustedHosts
|
|
3993
4232
|
}, {}), {
|
|
3994
4233
|
default: B(() => {
|
|
3995
|
-
var m,
|
|
4234
|
+
var m, c, p, v, g, N, Y;
|
|
3996
4235
|
return [
|
|
3997
|
-
e.isSsrAbTest ? (u(),
|
|
4236
|
+
e.isSsrAbTest ? (u(), k(i, {
|
|
3998
4237
|
key: 0,
|
|
3999
4238
|
id: "builderio-variant-visibility",
|
|
4000
4239
|
scriptStr: e.scriptStr
|
|
4001
|
-
}, null, 8, ["scriptStr"])) :
|
|
4002
|
-
e.TARGET !== "reactNative" ? (u(),
|
|
4240
|
+
}, null, 8, ["scriptStr"])) : S("", !0),
|
|
4241
|
+
e.TARGET !== "reactNative" ? (u(), k(a, {
|
|
4003
4242
|
key: 1,
|
|
4004
4243
|
isNestedRender: e.isNestedRender,
|
|
4005
4244
|
contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
|
|
4006
|
-
cssCode: (p = (
|
|
4007
|
-
customFonts: (
|
|
4008
|
-
}, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
4009
|
-
|
|
4010
|
-
blocks: (
|
|
4245
|
+
cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
|
|
4246
|
+
customFonts: (g = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : g.customFonts
|
|
4247
|
+
}, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4248
|
+
E(l, {
|
|
4249
|
+
blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
|
|
4011
4250
|
context: e.builderContextSignal,
|
|
4012
4251
|
registeredComponents: e.registeredComponents,
|
|
4013
4252
|
linkComponent: e.linkComponent
|
|
@@ -4017,12 +4256,12 @@ function Ls(e, t, n, o, s, r) {
|
|
|
4017
4256
|
_: 1
|
|
4018
4257
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
4019
4258
|
}
|
|
4020
|
-
const
|
|
4259
|
+
const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
|
|
4021
4260
|
name: "content-variants",
|
|
4022
4261
|
components: {
|
|
4023
|
-
InlinedScript:
|
|
4024
|
-
InlinedStyles:
|
|
4025
|
-
ContentComponent:
|
|
4262
|
+
InlinedScript: Xe,
|
|
4263
|
+
InlinedStyles: me,
|
|
4264
|
+
ContentComponent: or
|
|
4026
4265
|
},
|
|
4027
4266
|
props: [
|
|
4028
4267
|
"canTrack",
|
|
@@ -4045,13 +4284,13 @@ const Ms = /* @__PURE__ */ y(Us, [["render", Ls]]), Ds = f({
|
|
|
4045
4284
|
],
|
|
4046
4285
|
data() {
|
|
4047
4286
|
return {
|
|
4048
|
-
shouldRenderVariants:
|
|
4049
|
-
canTrack:
|
|
4287
|
+
shouldRenderVariants: as({
|
|
4288
|
+
canTrack: z(this.canTrack),
|
|
4050
4289
|
content: this.content
|
|
4051
4290
|
}),
|
|
4052
4291
|
TARGET: V,
|
|
4053
|
-
getInitVariantsFnsScriptString:
|
|
4054
|
-
getVariants:
|
|
4292
|
+
getInitVariantsFnsScriptString: cs,
|
|
4293
|
+
getVariants: Q
|
|
4055
4294
|
};
|
|
4056
4295
|
},
|
|
4057
4296
|
mounted() {
|
|
@@ -4059,8 +4298,8 @@ const Ms = /* @__PURE__ */ y(Us, [["render", Ls]]), Ds = f({
|
|
|
4059
4298
|
computed: {
|
|
4060
4299
|
updateCookieAndStylesScriptStr() {
|
|
4061
4300
|
var e;
|
|
4062
|
-
return
|
|
4063
|
-
|
|
4301
|
+
return ds(
|
|
4302
|
+
Q(this.content).map((t) => ({
|
|
4064
4303
|
id: t.testVariationId,
|
|
4065
4304
|
testRatio: t.testRatio
|
|
4066
4305
|
})),
|
|
@@ -4068,41 +4307,41 @@ const Ms = /* @__PURE__ */ y(Us, [["render", Ls]]), Ds = f({
|
|
|
4068
4307
|
);
|
|
4069
4308
|
},
|
|
4070
4309
|
hideVariantsStyleString() {
|
|
4071
|
-
return
|
|
4310
|
+
return Q(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
4072
4311
|
},
|
|
4073
4312
|
defaultContent() {
|
|
4074
4313
|
var e;
|
|
4075
4314
|
return this.shouldRenderVariants ? {
|
|
4076
4315
|
...this.content,
|
|
4077
4316
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4078
|
-
} :
|
|
4317
|
+
} : Nn({
|
|
4079
4318
|
item: this.content,
|
|
4080
|
-
canTrack:
|
|
4319
|
+
canTrack: z(this.canTrack)
|
|
4081
4320
|
});
|
|
4082
4321
|
}
|
|
4083
4322
|
}
|
|
4084
4323
|
});
|
|
4085
|
-
function
|
|
4086
|
-
const i =
|
|
4324
|
+
function rr(e, t, n, o, s, r) {
|
|
4325
|
+
const i = y("inlined-script"), a = y("inlined-styles"), l = y("content-component");
|
|
4087
4326
|
return u(), h($, null, [
|
|
4088
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (u(),
|
|
4327
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (u(), k(i, {
|
|
4089
4328
|
key: 0,
|
|
4090
4329
|
id: "builderio-init-variants-fns",
|
|
4091
4330
|
scriptStr: e.getInitVariantsFnsScriptString()
|
|
4092
|
-
}, null, 8, ["scriptStr"])) :
|
|
4331
|
+
}, null, 8, ["scriptStr"])) : S("", !0),
|
|
4093
4332
|
e.shouldRenderVariants ? (u(), h($, { key: 1 }, [
|
|
4094
|
-
|
|
4333
|
+
E(a, {
|
|
4095
4334
|
id: "builderio-variants",
|
|
4096
4335
|
styles: e.hideVariantsStyleString
|
|
4097
4336
|
}, null, 8, ["styles"]),
|
|
4098
|
-
|
|
4337
|
+
E(i, {
|
|
4099
4338
|
id: "builderio-variants-visibility",
|
|
4100
4339
|
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4101
4340
|
}, null, 8, ["scriptStr"]),
|
|
4102
|
-
(u(!0), h($, null,
|
|
4103
|
-
key:
|
|
4341
|
+
(u(!0), h($, null, O(e.getVariants(e.content), (d, m) => (u(), k(l, {
|
|
4342
|
+
key: d.testVariationId,
|
|
4104
4343
|
isNestedRender: e.isNestedRender,
|
|
4105
|
-
content:
|
|
4344
|
+
content: d,
|
|
4106
4345
|
showContent: !1,
|
|
4107
4346
|
model: e.model,
|
|
4108
4347
|
data: e.data,
|
|
@@ -4121,8 +4360,8 @@ function Hs(e, t, n, o, s, r) {
|
|
|
4121
4360
|
contentWrapperProps: e.contentWrapperProps,
|
|
4122
4361
|
trustedHosts: e.trustedHosts
|
|
4123
4362
|
}, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4124
|
-
], 64)) :
|
|
4125
|
-
|
|
4363
|
+
], 64)) : S("", !0),
|
|
4364
|
+
E(l, w({
|
|
4126
4365
|
isNestedRender: e.isNestedRender,
|
|
4127
4366
|
content: e.defaultContent,
|
|
4128
4367
|
showContent: !0,
|
|
@@ -4147,13 +4386,13 @@ function Hs(e, t, n, o, s, r) {
|
|
|
4147
4386
|
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4148
4387
|
], 64);
|
|
4149
4388
|
}
|
|
4150
|
-
const
|
|
4389
|
+
const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
|
|
4151
4390
|
builderContextValue: e,
|
|
4152
4391
|
symbol: t
|
|
4153
4392
|
}) => {
|
|
4154
4393
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4155
4394
|
(e != null && e.apiKey))
|
|
4156
|
-
return
|
|
4395
|
+
return be({
|
|
4157
4396
|
model: t.model,
|
|
4158
4397
|
apiKey: e.apiKey,
|
|
4159
4398
|
apiVersion: e.apiVersion,
|
|
@@ -4165,9 +4404,9 @@ const js = /* @__PURE__ */ y(Ds, [["render", Hs]]), Ks = async ({
|
|
|
4165
4404
|
}).catch((n) => {
|
|
4166
4405
|
R.error("Could not fetch symbol content: ", n);
|
|
4167
4406
|
});
|
|
4168
|
-
},
|
|
4407
|
+
}, lr = f({
|
|
4169
4408
|
name: "builder-symbol",
|
|
4170
|
-
components: { ContentVariants:
|
|
4409
|
+
components: { ContentVariants: ir, DynamicDiv: G },
|
|
4171
4410
|
props: [
|
|
4172
4411
|
"symbol",
|
|
4173
4412
|
"attributes",
|
|
@@ -4179,7 +4418,7 @@ const js = /* @__PURE__ */ y(Ds, [["render", Hs]]), Ks = async ({
|
|
|
4179
4418
|
],
|
|
4180
4419
|
data() {
|
|
4181
4420
|
var e;
|
|
4182
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
4421
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: W };
|
|
4183
4422
|
},
|
|
4184
4423
|
mounted() {
|
|
4185
4424
|
this.setContent();
|
|
@@ -4193,10 +4432,16 @@ const js = /* @__PURE__ */ y(Ds, [["render", Hs]]), Ks = async ({
|
|
|
4193
4432
|
}
|
|
4194
4433
|
},
|
|
4195
4434
|
computed: {
|
|
4435
|
+
blocksWrapper() {
|
|
4436
|
+
return "div";
|
|
4437
|
+
},
|
|
4438
|
+
contentWrapper() {
|
|
4439
|
+
return "div";
|
|
4440
|
+
},
|
|
4196
4441
|
className() {
|
|
4197
4442
|
var e, t;
|
|
4198
4443
|
return [
|
|
4199
|
-
this.attributes[
|
|
4444
|
+
this.attributes[ee()],
|
|
4200
4445
|
"builder-symbol",
|
|
4201
4446
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
4202
4447
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4210,7 +4455,7 @@ const js = /* @__PURE__ */ y(Ds, [["render", Hs]]), Ks = async ({
|
|
|
4210
4455
|
},
|
|
4211
4456
|
methods: {
|
|
4212
4457
|
setContent() {
|
|
4213
|
-
this.contentToUse ||
|
|
4458
|
+
this.contentToUse || ar({
|
|
4214
4459
|
symbol: this.symbol,
|
|
4215
4460
|
builderContextValue: this.builderContext
|
|
4216
4461
|
}).then((e) => {
|
|
@@ -4219,11 +4464,11 @@ const js = /* @__PURE__ */ y(Ds, [["render", Hs]]), Ks = async ({
|
|
|
4219
4464
|
}
|
|
4220
4465
|
}
|
|
4221
4466
|
});
|
|
4222
|
-
function
|
|
4223
|
-
var a, l,
|
|
4224
|
-
const i =
|
|
4225
|
-
return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4226
|
-
|
|
4467
|
+
function cr(e, t, n, o, s, r) {
|
|
4468
|
+
var a, l, d, m, c;
|
|
4469
|
+
const i = y("content-variants");
|
|
4470
|
+
return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4471
|
+
E(i, {
|
|
4227
4472
|
isNestedRender: !0,
|
|
4228
4473
|
apiVersion: e.builderContext.apiVersion,
|
|
4229
4474
|
apiKey: e.builderContext.apiKey,
|
|
@@ -4235,28 +4480,28 @@ function qs(e, t, n, o, s, r) {
|
|
|
4235
4480
|
data: {
|
|
4236
4481
|
...(l = e.symbol) == null ? void 0 : l.data,
|
|
4237
4482
|
...e.builderContext.localState,
|
|
4238
|
-
...(m = (
|
|
4483
|
+
...(m = (d = e.contentToUse) == null ? void 0 : d.data) == null ? void 0 : m.state
|
|
4239
4484
|
},
|
|
4240
|
-
model: (
|
|
4485
|
+
model: (c = e.symbol) == null ? void 0 : c.model,
|
|
4241
4486
|
content: e.contentToUse,
|
|
4242
4487
|
linkComponent: e.builderLinkComponent,
|
|
4243
|
-
blocksWrapper:
|
|
4244
|
-
contentWrapper:
|
|
4245
|
-
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
4488
|
+
blocksWrapper: e.blocksWrapper,
|
|
4489
|
+
contentWrapper: e.contentWrapper
|
|
4490
|
+
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4246
4491
|
], 16);
|
|
4247
4492
|
}
|
|
4248
|
-
const
|
|
4249
|
-
function
|
|
4250
|
-
if (
|
|
4251
|
-
Object.assign(
|
|
4493
|
+
const dr = /* @__PURE__ */ b(lr, [["render", cr]]), Re = {};
|
|
4494
|
+
function Sr(e) {
|
|
4495
|
+
if (T()) {
|
|
4496
|
+
Object.assign(Re, e);
|
|
4252
4497
|
const t = {
|
|
4253
4498
|
type: "builder.settingsChange",
|
|
4254
|
-
data:
|
|
4499
|
+
data: Re
|
|
4255
4500
|
};
|
|
4256
4501
|
parent.postMessage(t, "*");
|
|
4257
4502
|
}
|
|
4258
4503
|
}
|
|
4259
|
-
const
|
|
4504
|
+
const Cr = async (e) => {
|
|
4260
4505
|
var o, s, r;
|
|
4261
4506
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
|
|
4262
4507
|
...e,
|
|
@@ -4268,52 +4513,52 @@ const rr = async (e) => {
|
|
|
4268
4513
|
urlPath: t
|
|
4269
4514
|
} : {}
|
|
4270
4515
|
},
|
|
4271
|
-
options:
|
|
4516
|
+
options: et(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
|
|
4272
4517
|
};
|
|
4273
4518
|
return {
|
|
4274
4519
|
apiKey: n.apiKey,
|
|
4275
4520
|
model: n.model,
|
|
4276
|
-
content: await
|
|
4521
|
+
content: await be(n)
|
|
4277
4522
|
};
|
|
4278
4523
|
};
|
|
4279
4524
|
export {
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4525
|
+
ks as A,
|
|
4526
|
+
pe as B,
|
|
4527
|
+
un as C,
|
|
4528
|
+
vs as D,
|
|
4529
|
+
be as E,
|
|
4530
|
+
hn as F,
|
|
4531
|
+
hr as G,
|
|
4532
|
+
gr as H,
|
|
4533
|
+
Cn as I,
|
|
4534
|
+
$n as S,
|
|
4290
4535
|
V as T,
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4536
|
+
es as V,
|
|
4537
|
+
me as _,
|
|
4538
|
+
on as a,
|
|
4539
|
+
fr as b,
|
|
4540
|
+
U as c,
|
|
4541
|
+
yr as d,
|
|
4542
|
+
Fe as e,
|
|
4543
|
+
b as f,
|
|
4544
|
+
Ne as g,
|
|
4545
|
+
te as h,
|
|
4546
|
+
br as i,
|
|
4547
|
+
ee as j,
|
|
4548
|
+
ae as k,
|
|
4549
|
+
kt as l,
|
|
4550
|
+
dr as m,
|
|
4551
|
+
oo as n,
|
|
4552
|
+
J as o,
|
|
4553
|
+
ir as p,
|
|
4554
|
+
I as q,
|
|
4555
|
+
Ss as r,
|
|
4556
|
+
ns as s,
|
|
4557
|
+
Us as t,
|
|
4558
|
+
Sr as u,
|
|
4559
|
+
et as v,
|
|
4560
|
+
er as w,
|
|
4561
|
+
kr as x,
|
|
4562
|
+
vr as y,
|
|
4563
|
+
Cr as z
|
|
4319
4564
|
};
|