@builder.io/sdk-vue 5.2.16 → 5.4.0
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 +4 -0
- package/lib/browser/{awaiter-xl6zu7C3.js → awaiter-XLoIdAw3.js} +1 -1
- package/lib/browser/{awaiter-sma99jcM.cjs → awaiter-qNFJfpSz.cjs} +1 -1
- package/lib/browser/{block-wrapper-5K0uC4T-.js → block-wrapper-f3zEx8S_.js} +3 -3
- package/lib/browser/{block-wrapper-RAvXLpEQ.cjs → block-wrapper-reas9rmo.cjs} +1 -1
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/{component-ref-Tya2rDO2.cjs → component-ref-4ay3OV1k.cjs} +1 -1
- package/lib/browser/{component-ref-xLqT_jOc.js → component-ref-4lLMyE43.js} +4 -4
- package/lib/browser/components/block/block.helpers.d.ts +1 -1
- package/lib/browser/components/block/block.vue.d.ts +6 -11
- package/lib/browser/components/builder-scripts.vue.d.ts +18 -0
- package/lib/browser/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/browser/components/content/content.helpers.d.ts +5 -1
- package/lib/browser/components/content/content.vue.d.ts +3 -5
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/helpers.d.ts +6 -0
- package/lib/browser/constants/builder-registered-components.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder-scripts.context.d.ts +7 -0
- package/lib/browser/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/browser/functions/extract-localized-values.d.ts +4 -0
- package/lib/browser/functions/get-processed-block.d.ts +0 -1
- package/lib/browser/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/browser/functions/set.d.ts +29 -1
- package/lib/browser/get-block-properties-CK4qnoHd.cjs +1 -0
- package/lib/browser/{get-block-properties-PdAD_uE2.js → get-block-properties-nqV8scES.js} +21 -18
- package/lib/browser/helpers/bounded-cache.d.ts +4 -0
- package/lib/browser/helpers/copy-plain-data.d.ts +6 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/browser/index-lRIGot7h.cjs +368 -0
- package/lib/browser/{index-3sJN4pWL.js → index-pJnoXY0A.js} +1250 -1090
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -21
- package/lib/browser/{live-edit-j4eofiKh.js → live-edit-5mCChUV2.js} +1 -1
- package/lib/browser/{live-edit-Sgr9Viar.cjs → live-edit-hoV0ghuj.cjs} +1 -1
- package/lib/browser/{repeated-block-2KvsgJoX.js → repeated-block-F5n8q4pA.js} +2 -2
- package/lib/browser/{repeated-block-HKaLji2X.cjs → repeated-block-FDJw__8i.cjs} +1 -1
- package/lib/browser/{style-wrapper-MZ3hUHCo.cjs → style-wrapper-6XW31DT6.cjs} +1 -1
- package/lib/browser/{style-wrapper-9lr-T4FL.js → style-wrapper-e5wqPuhd.js} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-vRSBu8iR.js → awaiter-TPWZATcH.js} +1 -1
- package/lib/edge/{awaiter-nGRnkiX-.cjs → awaiter-g1cucmgb.cjs} +1 -1
- package/lib/{node/block-wrapper-fc6BPhIM.cjs → edge/block-wrapper-oEdWkUs5.cjs} +1 -1
- package/lib/edge/{block-wrapper-dMzRh0wq.js → block-wrapper-pWTeul3q.js} +3 -3
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/{component-ref-XuJa5YQU.js → component-ref-PjrRqoNv.js} +4 -4
- package/lib/edge/{component-ref-u8AFcxuW.cjs → component-ref-XsyNNMUg.cjs} +1 -1
- package/lib/edge/components/block/block.helpers.d.ts +1 -1
- package/lib/edge/components/block/block.vue.d.ts +6 -11
- package/lib/edge/components/builder-scripts.vue.d.ts +18 -0
- package/lib/edge/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/edge/components/content/content.helpers.d.ts +5 -1
- package/lib/edge/components/content/content.vue.d.ts +3 -5
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/helpers.d.ts +6 -0
- package/lib/edge/constants/builder-registered-components.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder-scripts.context.d.ts +7 -0
- package/lib/edge/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/edge/functions/extract-localized-values.d.ts +4 -0
- package/lib/edge/functions/get-processed-block.d.ts +0 -1
- package/lib/edge/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/edge/functions/set.d.ts +29 -1
- package/lib/edge/get-block-properties-LZfO1d9V.cjs +1 -0
- package/lib/edge/{get-block-properties-lu3ijq_9.js → get-block-properties-OQKbXkPB.js} +21 -18
- package/lib/edge/helpers/bounded-cache.d.ts +4 -0
- package/lib/edge/helpers/copy-plain-data.d.ts +6 -0
- package/lib/edge/{index-CP41tPKH.js → index-RgTaKnZ2.js} +2079 -1919
- package/lib/edge/index-fWAfFgEy.cjs +386 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +25 -24
- package/lib/{node/live-edit-x06K74KY.cjs → edge/live-edit-JjbauDaL.cjs} +1 -1
- package/lib/edge/{live-edit-tT8gysr5.js → live-edit-f7U2Azcm.js} +1 -1
- package/lib/edge/{repeated-block-5aHuPiq3.cjs → repeated-block-N0cYhpaS.cjs} +1 -1
- package/lib/edge/{repeated-block-4rbJPAPK.js → repeated-block-bXYXfKP_.js} +2 -2
- package/lib/edge/{style-wrapper-6PnkoOq4.js → style-wrapper-XXgvForl.js} +1 -1
- package/lib/edge/{style-wrapper-sPnVD1R-.cjs → style-wrapper-x1xM4jrn.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-bcSiDzNQ.cjs → awaiter-6GuArcPZ.cjs} +1 -1
- package/lib/node/{awaiter-UWXH3tw0.js → awaiter-U9ghjah_.js} +1 -1
- package/lib/{edge/block-wrapper-jhPTdeIL.cjs → node/block-wrapper-BjCwxGrk.cjs} +1 -1
- package/lib/node/{block-wrapper-8T5wRKIN.js → block-wrapper-S-D5WDpF.js} +3 -3
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/node/{component-ref-IPdlOOp0.cjs → component-ref-2T_SzZr_.cjs} +1 -1
- package/lib/node/{component-ref-T9N8WIw7.js → component-ref-JIXZgEPq.js} +5 -5
- package/lib/node/components/block/block.helpers.d.ts +1 -1
- package/lib/node/components/block/block.vue.d.ts +6 -11
- package/lib/node/components/builder-scripts.vue.d.ts +18 -0
- package/lib/node/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/node/components/content/content.helpers.d.ts +5 -1
- package/lib/node/components/content/content.vue.d.ts +3 -5
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/content-variants/helpers.d.ts +6 -0
- package/lib/node/constants/builder-registered-components.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder-scripts.context.d.ts +7 -0
- package/lib/node/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/node/functions/extract-localized-values.d.ts +4 -0
- package/lib/node/functions/get-processed-block.d.ts +0 -1
- package/lib/node/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/node/functions/set.d.ts +29 -1
- package/lib/node/{get-block-properties-WEdzaQYx.js → get-block-properties-6ZEBsSGZ.js} +20 -17
- package/lib/node/get-block-properties-VdcyrKHl.cjs +1 -0
- package/lib/node/helpers/bounded-cache.d.ts +4 -0
- package/lib/node/helpers/copy-plain-data.d.ts +6 -0
- package/lib/node/{index-xh_ab-8r.js → index-BFBRlmya.js} +1216 -1083
- package/lib/node/index-C8cK6fMj.cjs +368 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +20 -19
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/node/{live-edit-AtFUb3WY.js → live-edit-Gaqi2aam.js} +1 -1
- package/lib/{edge/live-edit-IztuqB6L.cjs → node/live-edit-YCZ5pmAP.cjs} +1 -1
- package/lib/node/{repeated-block-YbKmZjn5.cjs → repeated-block-crOq_RyN.cjs} +1 -1
- package/lib/node/{repeated-block-EYdA5P-G.js → repeated-block-xa9PS91L.js} +2 -2
- package/lib/node/should-force-browser-runtime-in-node-dSSMAIhU.js +725 -0
- package/lib/node/should-force-browser-runtime-in-node-ljCjC7PN.cjs +56 -0
- package/lib/node/{style-wrapper-If0xZQdH.js → style-wrapper-8sWObtTj.js} +8 -8
- package/lib/node/{style-wrapper-1VLAyo7U.cjs → style-wrapper-ol70p_wf.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/get-block-properties-2sbfjttK.cjs +0 -1
- package/lib/browser/index-i151V2-T.cjs +0 -368
- package/lib/edge/get-block-properties-GGRkyJ2n.cjs +0 -1
- package/lib/edge/index-2DMPkBgw.cjs +0 -386
- package/lib/node/get-block-properties-Oqi1CKFa.cjs +0 -1
- package/lib/node/index-RMd-8REX.cjs +0 -368
- package/lib/node/should-force-browser-runtime-in-node-GnAFs4J8.js +0 -503
- package/lib/node/should-force-browser-runtime-in-node-Kyj0J4tl.cjs +0 -48
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as
|
|
2
|
-
import { T as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as w, toHandlers as U, withCtx as W, renderSlot as B, resolveComponent as C, createTextVNode as xt, toDisplayString as pe, defineAsyncComponent as Q, createVNode as E, renderList as x, createCommentVNode as k, h as ct, createElementVNode as K, normalizeStyle as M, normalizeClass as ee, markRaw as Ft } from "vue";
|
|
2
|
+
import { T as $, g as Lt, f as Mt, c as dt, i as R, s as Ht, r as jt, p as zt, a as qt, l as F, b as Kt, d as A, e as Gt, n as ut, S as Jt, h as Pe, j as ce, k as _t, m as pt, o as Qt, q as Yt, t as mt, _ as Le, u as Xt } from "./should-force-browser-runtime-in-node-dSSMAIhU.js";
|
|
3
|
+
const Zt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), en = (e) => typeof e == "string" && Zt.has(e.toLowerCase());
|
|
4
4
|
function N(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,11 +11,11 @@ function N(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const tn = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: en };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,26 +23,26 @@ const Lt = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (
|
|
28
|
-
typeof e.TagName == "string" ? (
|
|
29
|
-
default:
|
|
30
|
-
|
|
26
|
+
function nn(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (u(), S(X(e.TagName), w({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (u(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (u(), S(X(e.TagName), w({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
|
+
default: W(() => [
|
|
30
|
+
B(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (
|
|
34
|
-
default:
|
|
35
|
-
|
|
33
|
+
}, 16)) : (u(), S(X(e.TagName), w({ key: 1 }, e.attributes, U(e.actionAttributes)), {
|
|
34
|
+
default: W(() => [
|
|
35
|
+
B(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Ae = /* @__PURE__ */ v(tn, [["render", nn]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
43
|
+
default: Ae
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), H = () => {
|
|
45
|
+
switch ($) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -54,9 +54,9 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, on = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Ae },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -71,7 +71,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...N(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[H()]: `${this.link ? "" : "builder-button"} ${this.attributes[H()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -83,20 +83,20 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
87
|
-
const s =
|
|
88
|
-
return
|
|
86
|
+
function rn(e, t, n, o, r, i) {
|
|
87
|
+
const s = C("DynamicRenderer");
|
|
88
|
+
return u(), S(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
93
|
+
default: W(() => [
|
|
94
|
+
xt(pe(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const sn = /* @__PURE__ */ v(on, [["render", rn]]), an = Symbol(), ke = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,14 +113,17 @@ const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: an
|
|
117
|
+
}, ln = Symbol(), ht = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
119
|
+
key: ln
|
|
120
|
+
}, ft = (e, t, n) => {
|
|
121
121
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
122
122
|
return o === void 0 || o === e ? n : o;
|
|
123
|
-
},
|
|
123
|
+
}, cn = 5e3, Me = dt(cn), dn = (e, t) => {
|
|
124
|
+
let n = Me.get(t);
|
|
125
|
+
return n || (n = new Function(...e, t), Me.set(t, n)), n;
|
|
126
|
+
}, un = ({
|
|
124
127
|
code: e,
|
|
125
128
|
builder: t,
|
|
126
129
|
context: n,
|
|
@@ -129,24 +132,30 @@ const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
|
|
|
129
132
|
rootSetState: i,
|
|
130
133
|
rootState: s
|
|
131
134
|
}) => {
|
|
132
|
-
const
|
|
135
|
+
const a = Lt({
|
|
133
136
|
builder: t,
|
|
134
137
|
context: n,
|
|
135
138
|
event: o,
|
|
136
|
-
state:
|
|
139
|
+
state: Mt({
|
|
137
140
|
rootState: s,
|
|
138
141
|
localState: r,
|
|
139
142
|
rootSetState: i
|
|
140
143
|
})
|
|
141
144
|
});
|
|
142
|
-
return
|
|
143
|
-
},
|
|
145
|
+
return dn(a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
146
|
+
}, pn = (e) => R() || Ht({
|
|
144
147
|
shouldLogWarning: !0
|
|
145
|
-
}) ?
|
|
148
|
+
}) ? un(e) : jt(e), mn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, hn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, fn = (e) => {
|
|
146
149
|
var t, n, o, r, i, s;
|
|
147
|
-
return ((o = (n = (t =
|
|
150
|
+
return ((o = (n = (t = mn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = hn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
151
|
+
}, bn = 5e3, He = dt(bn), gn = (e) => {
|
|
152
|
+
let t = He.get(e);
|
|
153
|
+
return t === void 0 && (t = fn(e) || null, He.set(e, t)), t;
|
|
154
|
+
}, yn = (e, t, n) => {
|
|
155
|
+
const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
|
|
156
|
+
return ft(r, n);
|
|
148
157
|
};
|
|
149
|
-
function
|
|
158
|
+
function te({
|
|
150
159
|
code: e,
|
|
151
160
|
context: t,
|
|
152
161
|
localState: n,
|
|
@@ -154,21 +163,18 @@ function ee({
|
|
|
154
163
|
rootSetState: r,
|
|
155
164
|
event: i,
|
|
156
165
|
isExpression: s = !0,
|
|
157
|
-
trackingContext:
|
|
166
|
+
trackingContext: a
|
|
158
167
|
}) {
|
|
159
168
|
if (e.trim() === "")
|
|
160
169
|
return;
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}, a);
|
|
167
|
-
const u = {
|
|
168
|
-
code: Vt(e, {
|
|
170
|
+
const l = gn(e.trim());
|
|
171
|
+
if (l)
|
|
172
|
+
return yn(o, n, l);
|
|
173
|
+
const d = {
|
|
174
|
+
code: zt(e, {
|
|
169
175
|
isExpression: s
|
|
170
176
|
}),
|
|
171
|
-
builder:
|
|
177
|
+
builder: qt(a),
|
|
172
178
|
context: t,
|
|
173
179
|
event: i,
|
|
174
180
|
rootSetState: r,
|
|
@@ -176,7 +182,7 @@ function ee({
|
|
|
176
182
|
localState: n
|
|
177
183
|
};
|
|
178
184
|
try {
|
|
179
|
-
return
|
|
185
|
+
return pn(d);
|
|
180
186
|
} catch (p) {
|
|
181
187
|
F.error("Failed code evaluation: " + p.message, {
|
|
182
188
|
code: e
|
|
@@ -184,20 +190,20 @@ function ee({
|
|
|
184
190
|
return;
|
|
185
191
|
}
|
|
186
192
|
}
|
|
187
|
-
function
|
|
193
|
+
function Sn(e, t) {
|
|
188
194
|
var n;
|
|
189
195
|
return {
|
|
190
196
|
...(n = e.component) == null ? void 0 : n.options,
|
|
191
197
|
...e.options,
|
|
192
|
-
...
|
|
198
|
+
...kn(e, t)
|
|
193
199
|
};
|
|
194
200
|
}
|
|
195
|
-
const
|
|
201
|
+
const kn = (e, t) => {
|
|
196
202
|
var n, o;
|
|
197
203
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
198
204
|
return {
|
|
199
205
|
...e.component.options,
|
|
200
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) =>
|
|
206
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => te({
|
|
201
207
|
code: i,
|
|
202
208
|
context: t,
|
|
203
209
|
localState: t.localState,
|
|
@@ -206,91 +212,61 @@ const Zt = (e, t) => {
|
|
|
206
212
|
}))
|
|
207
213
|
};
|
|
208
214
|
};
|
|
209
|
-
function
|
|
210
|
-
const n = Object.assign({}, e);
|
|
211
|
-
for (const o of t)
|
|
212
|
-
delete n[o];
|
|
213
|
-
return n;
|
|
214
|
-
}
|
|
215
|
-
function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
216
|
-
if (e == null || typeof e != "object") {
|
|
217
|
-
t(e, (i) => {
|
|
218
|
-
n !== null && o !== null && (n[o] = i);
|
|
219
|
-
});
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
223
|
-
t(i, (a) => {
|
|
224
|
-
e[s] = a;
|
|
225
|
-
}), ae(i, t, e, s, r);
|
|
226
|
-
}) : Object.entries(e).forEach(([i, s]) => {
|
|
227
|
-
t(s, (a) => {
|
|
228
|
-
e[i] = a;
|
|
229
|
-
}), ae(s, t, e, i, r);
|
|
230
|
-
}));
|
|
231
|
-
}
|
|
232
|
-
function st(e) {
|
|
215
|
+
function bt(e) {
|
|
233
216
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
234
217
|
}
|
|
235
|
-
|
|
236
|
-
if (
|
|
237
|
-
return !
|
|
238
|
-
|
|
239
|
-
return
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
}), t;
|
|
245
|
-
}
|
|
246
|
-
function nn(e, t) {
|
|
247
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
248
|
-
st(n) && o(n[t] ?? void 0);
|
|
249
|
-
}), e);
|
|
250
|
-
}
|
|
251
|
-
function on(e, t) {
|
|
252
|
-
var n, o;
|
|
253
|
-
return (n = e.component) != null && n.options && tn((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = nn(e.component.options, t ?? "Default")), e;
|
|
254
|
-
}
|
|
255
|
-
function ge(e) {
|
|
218
|
+
const vn = (e) => {
|
|
219
|
+
if (Array.isArray(e))
|
|
220
|
+
return !0;
|
|
221
|
+
const t = Object.getPrototypeOf(e);
|
|
222
|
+
return t === Object.prototype || t === null;
|
|
223
|
+
};
|
|
224
|
+
function ie(e, t, n) {
|
|
256
225
|
if (e === null || typeof e != "object")
|
|
257
226
|
return e;
|
|
227
|
+
if (bt(e))
|
|
228
|
+
return ie(e[t] ?? void 0, t, n);
|
|
229
|
+
if (!vn(e))
|
|
230
|
+
return e;
|
|
231
|
+
if (n.has(e))
|
|
232
|
+
return n.get(e);
|
|
233
|
+
n.set(e, e);
|
|
234
|
+
let o = null;
|
|
258
235
|
if (Array.isArray(e))
|
|
259
|
-
|
|
260
|
-
|
|
236
|
+
for (let i = 0; i < e.length; i++) {
|
|
237
|
+
const s = ie(e[i], t, n);
|
|
238
|
+
s !== e[i] && (o || (o = e.slice()), o[i] = s);
|
|
239
|
+
}
|
|
240
|
+
else
|
|
241
|
+
for (const i of Object.keys(e)) {
|
|
242
|
+
const s = ie(e[i], t, n);
|
|
243
|
+
s !== e[i] && (o || (o = {
|
|
244
|
+
...e
|
|
245
|
+
}), o[i] = s);
|
|
246
|
+
}
|
|
247
|
+
const r = o ?? e;
|
|
248
|
+
return n.set(e, r), r;
|
|
249
|
+
}
|
|
250
|
+
function Cn(e, t) {
|
|
251
|
+
var r;
|
|
252
|
+
const n = (r = e.component) == null ? void 0 : r.options;
|
|
253
|
+
if (!n || typeof n != "object" || bt(n))
|
|
261
254
|
return e;
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
255
|
+
const o = ie(n, t ?? "Default", /* @__PURE__ */ new WeakMap());
|
|
256
|
+
return o === n ? e : (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), {
|
|
257
|
+
...e,
|
|
258
|
+
component: {
|
|
259
|
+
...e.component,
|
|
260
|
+
options: o
|
|
261
|
+
}
|
|
262
|
+
});
|
|
266
263
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...t.properties
|
|
274
|
-
},
|
|
275
|
-
actions: {
|
|
276
|
-
...t.actions
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
} else {
|
|
280
|
-
const t = ge(en(e, "children", "meta"));
|
|
281
|
-
return {
|
|
282
|
-
...t,
|
|
283
|
-
properties: {
|
|
284
|
-
...t.properties
|
|
285
|
-
},
|
|
286
|
-
actions: {
|
|
287
|
-
...t.actions
|
|
288
|
-
},
|
|
289
|
-
children: e.children,
|
|
290
|
-
meta: e.meta
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
}, an = ({
|
|
264
|
+
function me(e) {
|
|
265
|
+
const t = e || (R() ? window.location.search : void 0);
|
|
266
|
+
return t ? Kt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
267
|
+
}
|
|
268
|
+
const gt = () => A() || me();
|
|
269
|
+
const Tn = ({
|
|
294
270
|
block: e,
|
|
295
271
|
context: t,
|
|
296
272
|
localState: n,
|
|
@@ -299,54 +275,74 @@ const rn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), sn = (e) =
|
|
|
299
275
|
}) => {
|
|
300
276
|
if (!e.bindings)
|
|
301
277
|
return e;
|
|
302
|
-
const i =
|
|
303
|
-
|
|
304
|
-
|
|
278
|
+
const i = /* @__PURE__ */ new WeakSet(), s = {
|
|
279
|
+
...e,
|
|
280
|
+
properties: {
|
|
281
|
+
...e.properties
|
|
282
|
+
},
|
|
283
|
+
actions: {
|
|
284
|
+
...e.actions
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
i.add(s.properties), i.add(s.actions);
|
|
288
|
+
for (const a in e.bindings) {
|
|
289
|
+
const l = e.bindings[a], d = te({
|
|
305
290
|
code: l,
|
|
306
291
|
localState: n,
|
|
307
292
|
rootState: o,
|
|
308
293
|
rootSetState: r,
|
|
309
294
|
context: t
|
|
310
295
|
});
|
|
311
|
-
|
|
296
|
+
Gt(s, a, d, i);
|
|
312
297
|
}
|
|
313
|
-
return
|
|
298
|
+
return s;
|
|
299
|
+
}, je = /* @__PURE__ */ new WeakMap(), In = (e) => {
|
|
300
|
+
if (!e.bindings)
|
|
301
|
+
return !1;
|
|
302
|
+
for (const t in e.bindings)
|
|
303
|
+
return !0;
|
|
304
|
+
return !1;
|
|
314
305
|
};
|
|
315
|
-
function
|
|
306
|
+
function wn({
|
|
316
307
|
block: e,
|
|
317
308
|
context: t,
|
|
318
309
|
localState: n,
|
|
319
310
|
rootState: o,
|
|
320
311
|
rootSetState: r
|
|
321
312
|
}) {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
313
|
+
const i = o.locale, s = !In(e) && typeof e == "object" && e !== null && !gt(), a = i ?? "";
|
|
314
|
+
if (s) {
|
|
315
|
+
const d = je.get(e);
|
|
316
|
+
if (d && d.locale === a)
|
|
317
|
+
return d.block;
|
|
318
|
+
}
|
|
319
|
+
let l = e;
|
|
320
|
+
return l = Tn({
|
|
321
|
+
block: l,
|
|
325
322
|
localState: n,
|
|
326
323
|
rootState: o,
|
|
327
324
|
rootSetState: r,
|
|
328
325
|
context: t
|
|
329
|
-
}),
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
return t ? Wt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
326
|
+
}), l = Cn(l, i), s && je.set(e, {
|
|
327
|
+
locale: a,
|
|
328
|
+
block: l
|
|
329
|
+
}), l;
|
|
334
330
|
}
|
|
335
|
-
const
|
|
331
|
+
const $n = (e) => ({
|
|
336
332
|
type: "builder.registerComponent",
|
|
337
|
-
data:
|
|
338
|
-
}),
|
|
333
|
+
data: Be(e)
|
|
334
|
+
}), Rn = (e) => {
|
|
339
335
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
340
336
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
341
337
|
};
|
|
342
|
-
function
|
|
343
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
338
|
+
function Be(e) {
|
|
339
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Rn(n) : n));
|
|
344
340
|
}
|
|
345
|
-
const
|
|
346
|
-
function
|
|
347
|
-
e === "plugin" && (t =
|
|
348
|
-
let n =
|
|
349
|
-
if (n || (n =
|
|
341
|
+
const ze = {};
|
|
342
|
+
function Bs(e, t) {
|
|
343
|
+
e === "plugin" && (t = Be(t));
|
|
344
|
+
let n = ze[e];
|
|
345
|
+
if (n || (n = ze[e] = []), n.push(t), R()) {
|
|
350
346
|
const o = {
|
|
351
347
|
type: "builder.register",
|
|
352
348
|
data: {
|
|
@@ -361,9 +357,9 @@ function as(e, t) {
|
|
|
361
357
|
}
|
|
362
358
|
}
|
|
363
359
|
}
|
|
364
|
-
function
|
|
360
|
+
function Vs(e) {
|
|
365
361
|
var t;
|
|
366
|
-
if (
|
|
362
|
+
if (R()) {
|
|
367
363
|
const n = JSON.parse(JSON.stringify(e));
|
|
368
364
|
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
369
365
|
type: "builder.registerAction",
|
|
@@ -371,50 +367,50 @@ function ls(e) {
|
|
|
371
367
|
}, "*");
|
|
372
368
|
}
|
|
373
369
|
}
|
|
374
|
-
const
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
Object.assign(
|
|
370
|
+
const qe = {};
|
|
371
|
+
function Ns(e) {
|
|
372
|
+
if (R()) {
|
|
373
|
+
Object.assign(qe, e);
|
|
378
374
|
const t = {
|
|
379
375
|
type: "builder.settingsChange",
|
|
380
|
-
data:
|
|
376
|
+
data: qe
|
|
381
377
|
};
|
|
382
378
|
parent.postMessage(t, "*");
|
|
383
379
|
}
|
|
384
380
|
}
|
|
385
|
-
const
|
|
381
|
+
const Ke = "builder.", En = "options.", yt = (e) => {
|
|
386
382
|
if (!e)
|
|
387
383
|
return {};
|
|
388
|
-
const t =
|
|
384
|
+
const t = ut(e), n = {};
|
|
389
385
|
return Object.keys(t).forEach((o) => {
|
|
390
|
-
if (o.startsWith(
|
|
391
|
-
const r = o.replace(
|
|
386
|
+
if (o.startsWith(Ke)) {
|
|
387
|
+
const r = o.replace(Ke, "").replace(En, "");
|
|
392
388
|
n[r] = t[o];
|
|
393
389
|
}
|
|
394
390
|
}), n;
|
|
395
|
-
},
|
|
396
|
-
if (!
|
|
391
|
+
}, Pn = () => {
|
|
392
|
+
if (!R())
|
|
397
393
|
return {};
|
|
398
394
|
const e = new URLSearchParams(window.location.search);
|
|
399
|
-
return
|
|
400
|
-
},
|
|
401
|
-
function
|
|
395
|
+
return yt(e);
|
|
396
|
+
}, An = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
397
|
+
function St(e, t) {
|
|
402
398
|
let n;
|
|
403
399
|
try {
|
|
404
400
|
n = new URL(t.origin);
|
|
405
401
|
} catch {
|
|
406
402
|
return !1;
|
|
407
403
|
}
|
|
408
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
404
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || An).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
409
405
|
}
|
|
410
|
-
let
|
|
411
|
-
const
|
|
406
|
+
let Ge = !1;
|
|
407
|
+
const kt = (e) => {
|
|
412
408
|
var t, n;
|
|
413
|
-
|
|
409
|
+
Ge || (Ge = !0, R() && ((t = window.parent) == null || t.postMessage({
|
|
414
410
|
type: "builder.sdkInfo",
|
|
415
411
|
data: {
|
|
416
|
-
target:
|
|
417
|
-
version:
|
|
412
|
+
target: $,
|
|
413
|
+
version: Jt,
|
|
418
414
|
supportsPatchUpdates: !1,
|
|
419
415
|
// Supports builder-model="..." attribute which is needed to
|
|
420
416
|
// scope our '+ add block' button styling
|
|
@@ -432,7 +428,7 @@ const ct = (e) => {
|
|
|
432
428
|
}
|
|
433
429
|
}, "*"), window.addEventListener("message", (o) => {
|
|
434
430
|
var i, s;
|
|
435
|
-
if (!
|
|
431
|
+
if (!St(e.trustedHosts, o))
|
|
436
432
|
return;
|
|
437
433
|
const {
|
|
438
434
|
data: r
|
|
@@ -440,17 +436,17 @@ const ct = (e) => {
|
|
|
440
436
|
if (r != null && r.type)
|
|
441
437
|
switch (r.type) {
|
|
442
438
|
case "builder.evaluate": {
|
|
443
|
-
const
|
|
439
|
+
const a = r.data.text, l = r.data.arguments || [], d = r.data.id, p = new Function(a);
|
|
444
440
|
let b, c = null;
|
|
445
441
|
try {
|
|
446
|
-
b = p.apply(null,
|
|
442
|
+
b = p.apply(null, l);
|
|
447
443
|
} catch (m) {
|
|
448
444
|
c = m;
|
|
449
445
|
}
|
|
450
446
|
c ? (i = window.parent) == null || i.postMessage({
|
|
451
447
|
type: "builder.evaluateError",
|
|
452
448
|
data: {
|
|
453
|
-
id:
|
|
449
|
+
id: d,
|
|
454
450
|
error: c.message
|
|
455
451
|
}
|
|
456
452
|
}, "*") : b && typeof b.then == "function" ? b.then((m) => {
|
|
@@ -458,7 +454,7 @@ const ct = (e) => {
|
|
|
458
454
|
(f = window.parent) == null || f.postMessage({
|
|
459
455
|
type: "builder.evaluateResult",
|
|
460
456
|
data: {
|
|
461
|
-
id:
|
|
457
|
+
id: d,
|
|
462
458
|
result: m
|
|
463
459
|
}
|
|
464
460
|
}, "*");
|
|
@@ -466,19 +462,19 @@ const ct = (e) => {
|
|
|
466
462
|
type: "builder.evaluateResult",
|
|
467
463
|
data: {
|
|
468
464
|
result: b,
|
|
469
|
-
id:
|
|
465
|
+
id: d
|
|
470
466
|
}
|
|
471
467
|
}, "*");
|
|
472
468
|
break;
|
|
473
469
|
}
|
|
474
470
|
}
|
|
475
471
|
})));
|
|
476
|
-
},
|
|
472
|
+
}, vt = ({
|
|
477
473
|
model: e,
|
|
478
474
|
trustedHosts: t,
|
|
479
475
|
callbacks: n
|
|
480
476
|
}) => (o) => {
|
|
481
|
-
if (!
|
|
477
|
+
if (!St(t, o))
|
|
482
478
|
return;
|
|
483
479
|
const {
|
|
484
480
|
data: r
|
|
@@ -494,30 +490,30 @@ const ct = (e) => {
|
|
|
494
490
|
break;
|
|
495
491
|
}
|
|
496
492
|
case "builder.resetState": {
|
|
497
|
-
const i = r.data, s = i.model,
|
|
498
|
-
s === e &&
|
|
493
|
+
const i = r.data, s = i.model, a = i == null ? void 0 : i.state, l = i.editType;
|
|
494
|
+
s === e && a && n.stateUpdate(a, l);
|
|
499
495
|
break;
|
|
500
496
|
}
|
|
501
497
|
case "builder.contentUpdate": {
|
|
502
|
-
const i = r.data, s = i.key || i.alias || i.entry || i.modelName,
|
|
503
|
-
s === e && n.contentUpdate(
|
|
498
|
+
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, a = i.data, l = i.editType;
|
|
499
|
+
s === e && n.contentUpdate(a, l);
|
|
504
500
|
break;
|
|
505
501
|
}
|
|
506
502
|
}
|
|
507
|
-
},
|
|
503
|
+
}, Os = ({
|
|
508
504
|
model: e,
|
|
509
505
|
apiKey: t,
|
|
510
506
|
callback: n,
|
|
511
507
|
trustedHosts: o
|
|
512
508
|
}) => {
|
|
513
|
-
if (!
|
|
509
|
+
if (!R)
|
|
514
510
|
return F.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
515
511
|
};
|
|
516
|
-
|
|
512
|
+
kt({
|
|
517
513
|
modelName: e,
|
|
518
514
|
apiKey: t
|
|
519
515
|
});
|
|
520
|
-
const r =
|
|
516
|
+
const r = vt({
|
|
521
517
|
callbacks: {
|
|
522
518
|
contentUpdate: n,
|
|
523
519
|
animation: () => {
|
|
@@ -533,24 +529,24 @@ const ct = (e) => {
|
|
|
533
529
|
return window.addEventListener("message", r), () => {
|
|
534
530
|
window.removeEventListener("message", r);
|
|
535
531
|
};
|
|
536
|
-
},
|
|
532
|
+
}, Bn = "builder.tests", Ve = (e) => `${Bn}.${e}`, Vn = ({
|
|
537
533
|
contentId: e
|
|
538
|
-
}) =>
|
|
539
|
-
name:
|
|
534
|
+
}) => _t({
|
|
535
|
+
name: Ve(e),
|
|
540
536
|
canTrack: !0
|
|
541
|
-
}),
|
|
537
|
+
}), Nn = ({
|
|
542
538
|
contentId: e
|
|
543
|
-
}) =>
|
|
544
|
-
name:
|
|
539
|
+
}) => Pe({
|
|
540
|
+
name: Ve(e),
|
|
545
541
|
canTrack: !0
|
|
546
|
-
}),
|
|
542
|
+
}), On = ({
|
|
547
543
|
contentId: e,
|
|
548
544
|
value: t
|
|
549
|
-
}) =>
|
|
550
|
-
name:
|
|
545
|
+
}) => pt({
|
|
546
|
+
name: Ve(e),
|
|
551
547
|
value: t,
|
|
552
548
|
canTrack: !0
|
|
553
|
-
}),
|
|
549
|
+
}), Ct = (e) => ce(e.id) && ce(e.variations) && Object.keys(e.variations).length > 0, Wn = ({
|
|
554
550
|
id: e,
|
|
555
551
|
variations: t
|
|
556
552
|
}) => {
|
|
@@ -563,15 +559,15 @@ const ct = (e) => {
|
|
|
563
559
|
return i;
|
|
564
560
|
}
|
|
565
561
|
return e;
|
|
566
|
-
},
|
|
567
|
-
const t =
|
|
568
|
-
return
|
|
562
|
+
}, Tt = (e) => {
|
|
563
|
+
const t = Wn(e);
|
|
564
|
+
return On({
|
|
569
565
|
contentId: e.id,
|
|
570
566
|
value: t
|
|
571
567
|
}).catch((n) => {
|
|
572
568
|
F.error("could not store A/B test variation: ", n);
|
|
573
569
|
}), t;
|
|
574
|
-
},
|
|
570
|
+
}, It = ({
|
|
575
571
|
item: e,
|
|
576
572
|
testGroupId: t
|
|
577
573
|
}) => {
|
|
@@ -585,7 +581,7 @@ const ct = (e) => {
|
|
|
585
581
|
testVariationId: n.id,
|
|
586
582
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
587
583
|
};
|
|
588
|
-
},
|
|
584
|
+
}, Dn = ({
|
|
589
585
|
item: e,
|
|
590
586
|
canTrack: t
|
|
591
587
|
}) => {
|
|
@@ -593,14 +589,14 @@ const ct = (e) => {
|
|
|
593
589
|
return e;
|
|
594
590
|
if (!e)
|
|
595
591
|
return;
|
|
596
|
-
if (!
|
|
592
|
+
if (!Ct(e))
|
|
597
593
|
return e;
|
|
598
|
-
const n =
|
|
594
|
+
const n = Nn({
|
|
599
595
|
contentId: e.id
|
|
600
|
-
}) ||
|
|
596
|
+
}) || Tt({
|
|
601
597
|
variations: e.variations,
|
|
602
598
|
id: e.id
|
|
603
|
-
}), o =
|
|
599
|
+
}), o = It({
|
|
604
600
|
item: e,
|
|
605
601
|
testGroupId: n
|
|
606
602
|
});
|
|
@@ -608,18 +604,18 @@ const ct = (e) => {
|
|
|
608
604
|
...e,
|
|
609
605
|
...o
|
|
610
606
|
};
|
|
611
|
-
},
|
|
607
|
+
}, Un = async ({
|
|
612
608
|
item: e,
|
|
613
609
|
canTrack: t
|
|
614
610
|
}) => {
|
|
615
|
-
if (!t || !
|
|
611
|
+
if (!t || !Ct(e))
|
|
616
612
|
return e;
|
|
617
|
-
const o = await
|
|
613
|
+
const o = await Vn({
|
|
618
614
|
contentId: e.id
|
|
619
|
-
}) ||
|
|
615
|
+
}) || Tt({
|
|
620
616
|
variations: e.variations,
|
|
621
617
|
id: e.id
|
|
622
|
-
}), r =
|
|
618
|
+
}), r = It({
|
|
623
619
|
item: e,
|
|
624
620
|
testGroupId: o
|
|
625
621
|
});
|
|
@@ -628,49 +624,49 @@ const ct = (e) => {
|
|
|
628
624
|
...r
|
|
629
625
|
};
|
|
630
626
|
};
|
|
631
|
-
const
|
|
632
|
-
if (!
|
|
627
|
+
const xn = "builder.preview", Fn = "BUILDER_STUDIO", Je = "builder.userAttributes.", Ln = (e) => e === "true" ? !0 : e === "false" ? !1 : e, _e = () => {
|
|
628
|
+
if (!R())
|
|
633
629
|
return {};
|
|
634
630
|
const e = new URLSearchParams(window.location.search);
|
|
635
|
-
if (e.get(
|
|
631
|
+
if (e.get(xn) !== Fn)
|
|
636
632
|
return {};
|
|
637
633
|
const t = {};
|
|
638
634
|
return e.forEach((n, o) => {
|
|
639
|
-
o.startsWith(
|
|
635
|
+
o.startsWith(Je) && (t[o.slice(Je.length)] = Ln(n));
|
|
640
636
|
}), t;
|
|
641
|
-
},
|
|
642
|
-
function
|
|
637
|
+
}, Qe = "builder.userAttributes";
|
|
638
|
+
function Ye() {
|
|
643
639
|
let e = !0;
|
|
644
640
|
const t = /* @__PURE__ */ new Set(), n = () => {
|
|
645
|
-
const o =
|
|
646
|
-
name:
|
|
641
|
+
const o = Pe({
|
|
642
|
+
name: Qe,
|
|
647
643
|
canTrack: e
|
|
648
644
|
});
|
|
649
645
|
return o ? JSON.parse(o) : {};
|
|
650
646
|
};
|
|
651
647
|
return {
|
|
652
648
|
setUserAttributes(o) {
|
|
653
|
-
if (!
|
|
649
|
+
if (!R())
|
|
654
650
|
return;
|
|
655
651
|
const r = {
|
|
656
652
|
...n(),
|
|
657
653
|
...o
|
|
658
654
|
};
|
|
659
|
-
|
|
660
|
-
name:
|
|
655
|
+
pt({
|
|
656
|
+
name: Qe,
|
|
661
657
|
value: JSON.stringify(r),
|
|
662
658
|
canTrack: e
|
|
663
659
|
});
|
|
664
|
-
const i =
|
|
660
|
+
const i = _e();
|
|
665
661
|
t.forEach((s) => s({
|
|
666
662
|
...r,
|
|
667
663
|
...i
|
|
668
664
|
}));
|
|
669
665
|
},
|
|
670
666
|
getUserAttributes() {
|
|
671
|
-
return
|
|
667
|
+
return R() ? {
|
|
672
668
|
...n(),
|
|
673
|
-
...
|
|
669
|
+
..._e()
|
|
674
670
|
} : {};
|
|
675
671
|
},
|
|
676
672
|
subscribeOnUserAttributesChange(o, {
|
|
@@ -685,45 +681,45 @@ function qe() {
|
|
|
685
681
|
}
|
|
686
682
|
};
|
|
687
683
|
}
|
|
688
|
-
let
|
|
689
|
-
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
},
|
|
693
|
-
const t =
|
|
694
|
-
return
|
|
684
|
+
let ve;
|
|
685
|
+
R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ye()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Ye();
|
|
686
|
+
const de = ve, Ws = (e) => {
|
|
687
|
+
de.setUserAttributes(e);
|
|
688
|
+
}, G = (e) => {
|
|
689
|
+
const t = ce(e) ? e : !0;
|
|
690
|
+
return de.setCanTrack(t), t;
|
|
695
691
|
};
|
|
696
|
-
function
|
|
692
|
+
function Mn() {
|
|
697
693
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
698
694
|
}
|
|
699
|
-
function
|
|
700
|
-
const e =
|
|
695
|
+
function Hn() {
|
|
696
|
+
const e = Mn().fetch;
|
|
701
697
|
if (typeof e > "u")
|
|
702
698
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
703
699
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
704
700
|
return e;
|
|
705
701
|
}
|
|
706
|
-
const
|
|
707
|
-
function
|
|
702
|
+
const jn = Hn();
|
|
703
|
+
function Ce(e, t = null, n = ".") {
|
|
708
704
|
return Object.keys(e).reduce((o, r) => {
|
|
709
705
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
710
706
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
711
707
|
...o,
|
|
712
|
-
...
|
|
708
|
+
...Ce(i, s, n)
|
|
713
709
|
} : {
|
|
714
710
|
...o,
|
|
715
711
|
[s]: i
|
|
716
712
|
};
|
|
717
713
|
}, {});
|
|
718
714
|
}
|
|
719
|
-
function
|
|
715
|
+
function wt(e, t, n = {}) {
|
|
720
716
|
for (const o in e) {
|
|
721
717
|
const r = e[o], i = t ? t + "." + o : o;
|
|
722
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
718
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? wt(r, i, n) : n[i] = r;
|
|
723
719
|
}
|
|
724
720
|
return n;
|
|
725
721
|
}
|
|
726
|
-
function
|
|
722
|
+
function zn(e) {
|
|
727
723
|
const t = {};
|
|
728
724
|
for (const n in e) {
|
|
729
725
|
const o = n.split(".");
|
|
@@ -735,7 +731,7 @@ function Rn(e) {
|
|
|
735
731
|
}
|
|
736
732
|
return t;
|
|
737
733
|
}
|
|
738
|
-
const
|
|
734
|
+
const qn = "v3", Xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ne = (e) => {
|
|
739
735
|
const {
|
|
740
736
|
limit: t = 30,
|
|
741
737
|
userAttributes: n,
|
|
@@ -743,9 +739,9 @@ const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
|
|
|
743
739
|
model: r,
|
|
744
740
|
apiKey: i,
|
|
745
741
|
enrich: s,
|
|
746
|
-
enrichOptions:
|
|
747
|
-
locale:
|
|
748
|
-
apiVersion:
|
|
742
|
+
enrichOptions: a,
|
|
743
|
+
locale: l,
|
|
744
|
+
apiVersion: d = qn,
|
|
749
745
|
fields: p,
|
|
750
746
|
omit: b,
|
|
751
747
|
offset: c,
|
|
@@ -753,87 +749,87 @@ const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
|
|
|
753
749
|
staleCacheSeconds: f,
|
|
754
750
|
sort: g,
|
|
755
751
|
includeUnpublished: P,
|
|
756
|
-
apiHost:
|
|
752
|
+
apiHost: D
|
|
757
753
|
} = e;
|
|
758
754
|
if (!i)
|
|
759
755
|
throw new Error("Missing API key");
|
|
760
|
-
if (!["v3"].includes(
|
|
761
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
let
|
|
765
|
-
if (s &&
|
|
766
|
-
const
|
|
756
|
+
if (!["v3"].includes(d))
|
|
757
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
758
|
+
const V = t !== 1, q = D || "https://cdn.builder.io", T = new URL(`${q}/api/${d}/content/${r}`);
|
|
759
|
+
T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(V)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
|
|
760
|
+
let j = n || {};
|
|
761
|
+
if (s && T.searchParams.set("enrich", String(s)), s && a && T.searchParams.set("enrichOptions", JSON.stringify(a)), T.searchParams.set("omit", b ?? "meta.componentsUsed"), p && T.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && T.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && T.searchParams.set("includeUnpublished", String(P)), m && Xe(m) && T.searchParams.set("cacheSeconds", String(m)), f && Xe(f) && T.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
762
|
+
const O = Ce({
|
|
767
763
|
sort: g
|
|
768
764
|
});
|
|
769
|
-
for (const L in
|
|
770
|
-
|
|
765
|
+
for (const L in O)
|
|
766
|
+
T.searchParams.set(L, JSON.stringify(O[L]));
|
|
771
767
|
}
|
|
772
|
-
const
|
|
773
|
-
...
|
|
774
|
-
...
|
|
768
|
+
const J = {
|
|
769
|
+
...Pn(),
|
|
770
|
+
...ut(e.options || {})
|
|
775
771
|
};
|
|
776
|
-
|
|
777
|
-
...
|
|
778
|
-
...
|
|
772
|
+
j = {
|
|
773
|
+
...j,
|
|
774
|
+
...Jn(J)
|
|
779
775
|
};
|
|
780
|
-
const
|
|
781
|
-
for (const
|
|
782
|
-
|
|
783
|
-
if (Object.keys(
|
|
784
|
-
const
|
|
776
|
+
const _ = Ce(J);
|
|
777
|
+
for (const O in _)
|
|
778
|
+
O !== "apiKey" && T.searchParams.set(O, String(_[O]));
|
|
779
|
+
if (Object.keys(j).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(j)), o) {
|
|
780
|
+
const O = wt({
|
|
785
781
|
query: o
|
|
786
782
|
});
|
|
787
|
-
for (const L in
|
|
788
|
-
|
|
783
|
+
for (const L in O)
|
|
784
|
+
T.searchParams.set(L, JSON.stringify(O[L]));
|
|
789
785
|
}
|
|
790
|
-
return
|
|
791
|
-
},
|
|
786
|
+
return T;
|
|
787
|
+
}, Kn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Gn = (e) => {
|
|
792
788
|
const t = {};
|
|
793
789
|
for (const n in e)
|
|
794
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
790
|
+
n.startsWith("userAttributes.") && (t[n] = Kn(e[n]), delete e[n]);
|
|
795
791
|
return t;
|
|
796
|
-
},
|
|
797
|
-
if (
|
|
792
|
+
}, Jn = (e) => {
|
|
793
|
+
if (R() && e.preview === "BUILDER_STUDIO") {
|
|
798
794
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
799
|
-
const t =
|
|
795
|
+
const t = Gn(e), {
|
|
800
796
|
userAttributes: n
|
|
801
|
-
} =
|
|
797
|
+
} = zn(t);
|
|
802
798
|
return n;
|
|
803
799
|
}
|
|
804
800
|
return {};
|
|
805
|
-
},
|
|
806
|
-
async function
|
|
801
|
+
}, _n = (e) => "results" in e;
|
|
802
|
+
async function Oe(e) {
|
|
807
803
|
var o;
|
|
808
804
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
809
805
|
t && (e.locale = t, e.userAttributes = {
|
|
810
806
|
locale: t,
|
|
811
807
|
...e.userAttributes
|
|
812
808
|
});
|
|
813
|
-
const n = await
|
|
809
|
+
const n = await Xn({
|
|
814
810
|
...e,
|
|
815
811
|
limit: 1
|
|
816
812
|
});
|
|
817
813
|
return n && n[0] || null;
|
|
818
814
|
}
|
|
819
|
-
const
|
|
815
|
+
const Qn = async (e) => {
|
|
820
816
|
var s;
|
|
821
|
-
const t =
|
|
817
|
+
const t = Ne(e), n = e.fetch ?? jn, o = {
|
|
822
818
|
...e.fetchOptions,
|
|
823
819
|
headers: {
|
|
824
820
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
825
|
-
...
|
|
821
|
+
...Qt()
|
|
826
822
|
}
|
|
827
823
|
};
|
|
828
824
|
return await (await n(t.href, o)).json();
|
|
829
|
-
},
|
|
830
|
-
const o =
|
|
831
|
-
if (n.search.includes("preview="), !o || !(
|
|
825
|
+
}, Yn = async (e, t, n = Ne(e)) => {
|
|
826
|
+
const o = G(e.canTrack);
|
|
827
|
+
if (n.search.includes("preview="), !o || !(R() || $ === "reactNative"))
|
|
832
828
|
return t.results;
|
|
833
829
|
try {
|
|
834
830
|
const r = [];
|
|
835
831
|
for (const i of t.results)
|
|
836
|
-
r.push(await
|
|
832
|
+
r.push(await Un({
|
|
837
833
|
item: i,
|
|
838
834
|
canTrack: o
|
|
839
835
|
}));
|
|
@@ -843,17 +839,17 @@ const Nn = async (e) => {
|
|
|
843
839
|
}
|
|
844
840
|
return t.results;
|
|
845
841
|
};
|
|
846
|
-
async function
|
|
847
|
-
const t =
|
|
848
|
-
if (!
|
|
842
|
+
async function Xn(e) {
|
|
843
|
+
const t = Ne(e), n = await Qn(e);
|
|
844
|
+
if (!_n(n))
|
|
849
845
|
throw F.error("Error fetching data. ", {
|
|
850
846
|
url: t,
|
|
851
847
|
content: n,
|
|
852
848
|
options: e
|
|
853
849
|
}), n;
|
|
854
|
-
return
|
|
850
|
+
return Yn(e, n);
|
|
855
851
|
}
|
|
856
|
-
const
|
|
852
|
+
const Ds = async (e) => {
|
|
857
853
|
var o, r, i;
|
|
858
854
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
859
855
|
...e,
|
|
@@ -865,27 +861,27 @@ const ps = async (e) => {
|
|
|
865
861
|
urlPath: t
|
|
866
862
|
} : {}
|
|
867
863
|
},
|
|
868
|
-
options:
|
|
864
|
+
options: yt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
869
865
|
};
|
|
870
866
|
return {
|
|
871
867
|
apiKey: n.apiKey,
|
|
872
868
|
model: n.model,
|
|
873
|
-
content: await
|
|
869
|
+
content: await Oe(n)
|
|
874
870
|
};
|
|
875
|
-
},
|
|
876
|
-
function
|
|
877
|
-
let o, r, i, s = null,
|
|
878
|
-
const
|
|
879
|
-
|
|
871
|
+
}, We = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
872
|
+
function Zn(e, t, n = {}) {
|
|
873
|
+
let o, r, i, s = null, a = 0;
|
|
874
|
+
const l = function() {
|
|
875
|
+
a = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
880
876
|
};
|
|
881
877
|
return function() {
|
|
882
|
-
const
|
|
883
|
-
!
|
|
884
|
-
const p = t - (
|
|
885
|
-
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null),
|
|
878
|
+
const d = Date.now();
|
|
879
|
+
!a && n.leading === !1 && (a = d);
|
|
880
|
+
const p = t - (d - a);
|
|
881
|
+
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), a = d, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(l, p)), i;
|
|
886
882
|
};
|
|
887
883
|
}
|
|
888
|
-
function
|
|
884
|
+
function Z(e, ...t) {
|
|
889
885
|
const n = Object(e);
|
|
890
886
|
for (let o = 1; o < arguments.length; o++) {
|
|
891
887
|
const r = arguments[o];
|
|
@@ -895,130 +891,130 @@ function X(e, ...t) {
|
|
|
895
891
|
}
|
|
896
892
|
return n;
|
|
897
893
|
}
|
|
898
|
-
function
|
|
894
|
+
function eo(e) {
|
|
899
895
|
for (const t of e)
|
|
900
896
|
switch (t.trigger) {
|
|
901
897
|
case "pageLoad":
|
|
902
|
-
|
|
898
|
+
Et(t);
|
|
903
899
|
break;
|
|
904
900
|
case "scrollInView":
|
|
905
|
-
|
|
901
|
+
no(t);
|
|
906
902
|
break;
|
|
907
903
|
}
|
|
908
904
|
}
|
|
909
|
-
function
|
|
905
|
+
function $t(e) {
|
|
910
906
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
911
907
|
}
|
|
912
|
-
function
|
|
913
|
-
const n =
|
|
914
|
-
for (const
|
|
915
|
-
for (const
|
|
916
|
-
|
|
908
|
+
function Rt(e, t) {
|
|
909
|
+
const n = to(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
910
|
+
for (const a of s)
|
|
911
|
+
for (const l of n)
|
|
912
|
+
l in a || (a[l] = o[l]);
|
|
917
913
|
}
|
|
918
|
-
function
|
|
914
|
+
function to(e) {
|
|
919
915
|
const t = [];
|
|
920
916
|
for (const n of e.steps)
|
|
921
917
|
for (const o in n.styles)
|
|
922
918
|
t.indexOf(o) === -1 && t.push(o);
|
|
923
919
|
return t;
|
|
924
920
|
}
|
|
925
|
-
function
|
|
921
|
+
function Et(e) {
|
|
926
922
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
927
923
|
if (!t.length) {
|
|
928
|
-
|
|
924
|
+
$t(e.elementId || e.id || "");
|
|
929
925
|
return;
|
|
930
926
|
}
|
|
931
927
|
Array.from(t).forEach((n) => {
|
|
932
|
-
|
|
933
|
-
n.style.transition = `all ${e.duration}s ${
|
|
928
|
+
Rt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
929
|
+
n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
934
930
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
935
931
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
936
932
|
});
|
|
937
933
|
});
|
|
938
934
|
}
|
|
939
|
-
function
|
|
935
|
+
function no(e) {
|
|
940
936
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
941
937
|
if (!t.length) {
|
|
942
|
-
|
|
938
|
+
$t(e.elementId || e.id || "");
|
|
943
939
|
return;
|
|
944
940
|
}
|
|
945
941
|
Array.from(t).forEach((n) => {
|
|
946
|
-
|
|
942
|
+
Rt(e, n);
|
|
947
943
|
let o = !1, r = !1;
|
|
948
944
|
function i() {
|
|
949
|
-
!o &&
|
|
950
|
-
|
|
945
|
+
!o && a(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
946
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
951
947
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
952
948
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
953
|
-
})) : e.repeat && o && !r && !
|
|
949
|
+
})) : e.repeat && o && !r && !a(n) && (o = !1, Z(n.style, e.steps[0].styles));
|
|
954
950
|
}
|
|
955
|
-
const s =
|
|
951
|
+
const s = Zn(i, 200, {
|
|
956
952
|
leading: !1
|
|
957
953
|
});
|
|
958
|
-
function
|
|
954
|
+
function a(p) {
|
|
959
955
|
const b = p.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
|
|
960
956
|
return b.bottom > f && b.top < c - f;
|
|
961
957
|
}
|
|
962
|
-
const
|
|
963
|
-
function
|
|
964
|
-
|
|
958
|
+
const l = e.steps[0].styles;
|
|
959
|
+
function d() {
|
|
960
|
+
Z(n.style, l);
|
|
965
961
|
}
|
|
966
|
-
|
|
967
|
-
n.style.transition = `all ${e.duration}s ${
|
|
962
|
+
d(), setTimeout(() => {
|
|
963
|
+
n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
968
964
|
}), document.addEventListener("scroll", s, {
|
|
969
965
|
capture: !0,
|
|
970
966
|
passive: !0
|
|
971
967
|
}), i();
|
|
972
968
|
});
|
|
973
969
|
}
|
|
974
|
-
const
|
|
970
|
+
const oe = (e, t) => {
|
|
975
971
|
const n = (e == null ? void 0 : e.objectPosition) || t;
|
|
976
972
|
return n ? {
|
|
977
973
|
...e,
|
|
978
974
|
"--builder-image-position": n
|
|
979
975
|
} : e;
|
|
980
|
-
},
|
|
976
|
+
}, Us = (e, t) => t ? {
|
|
981
977
|
...e,
|
|
982
|
-
large:
|
|
983
|
-
medium:
|
|
984
|
-
small:
|
|
985
|
-
xsmall:
|
|
986
|
-
} : e,
|
|
978
|
+
large: oe(e == null ? void 0 : e.large, "initial"),
|
|
979
|
+
medium: oe(e == null ? void 0 : e.medium),
|
|
980
|
+
small: oe(e == null ? void 0 : e.small),
|
|
981
|
+
xsmall: oe(e == null ? void 0 : e.xsmall)
|
|
982
|
+
} : e, Pt = (e) => Object.entries(e).map(([n, o]) => {
|
|
987
983
|
if (typeof o == "string")
|
|
988
|
-
return `${
|
|
989
|
-
}).filter(
|
|
990
|
-
`),
|
|
984
|
+
return `${We(n)}: ${o};`;
|
|
985
|
+
}).filter(ce), oo = (e) => Pt(e).join(`
|
|
986
|
+
`), xs = ({
|
|
991
987
|
mediaQuery: e,
|
|
992
988
|
className: t,
|
|
993
989
|
styles: n
|
|
994
990
|
}) => {
|
|
995
991
|
const o = `.${t} {
|
|
996
|
-
${
|
|
992
|
+
${oo(n)}
|
|
997
993
|
}`;
|
|
998
994
|
return e ? `${e} {
|
|
999
995
|
${o}
|
|
1000
996
|
}` : o;
|
|
1001
997
|
};
|
|
1002
|
-
function
|
|
998
|
+
function ro({
|
|
1003
999
|
style: e
|
|
1004
1000
|
}) {
|
|
1005
1001
|
return e;
|
|
1006
1002
|
}
|
|
1007
|
-
const
|
|
1003
|
+
const Fs = ({
|
|
1008
1004
|
block: e,
|
|
1009
1005
|
context: t
|
|
1010
|
-
}) =>
|
|
1006
|
+
}) => At(ro({
|
|
1011
1007
|
style: e.style || {},
|
|
1012
1008
|
context: t,
|
|
1013
1009
|
block: e
|
|
1014
1010
|
}));
|
|
1015
|
-
function
|
|
1016
|
-
switch (
|
|
1011
|
+
function At(e) {
|
|
1012
|
+
switch ($) {
|
|
1017
1013
|
case "svelte":
|
|
1018
1014
|
case "vue":
|
|
1019
1015
|
case "solid":
|
|
1020
1016
|
case "angular":
|
|
1021
|
-
return
|
|
1017
|
+
return Pt(e).join(" ");
|
|
1022
1018
|
case "qwik":
|
|
1023
1019
|
case "reactNative":
|
|
1024
1020
|
case "react":
|
|
@@ -1026,7 +1022,7 @@ function vt(e) {
|
|
|
1026
1022
|
return e;
|
|
1027
1023
|
}
|
|
1028
1024
|
}
|
|
1029
|
-
const
|
|
1025
|
+
const Bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, io = ({
|
|
1030
1026
|
block: e,
|
|
1031
1027
|
registeredComponents: t,
|
|
1032
1028
|
model: n
|
|
@@ -1036,99 +1032,121 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1036
1032
|
if (!o)
|
|
1037
1033
|
return null;
|
|
1038
1034
|
const r = t[o];
|
|
1039
|
-
if (!r ||
|
|
1035
|
+
if (!r || Bt(r, n)) {
|
|
1040
1036
|
console.warn(`
|
|
1041
1037
|
Could not find a registered component named "${o}".
|
|
1042
1038
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1043
1039
|
return;
|
|
1044
1040
|
} else
|
|
1045
1041
|
return r;
|
|
1046
|
-
},
|
|
1042
|
+
}, Ze = /* @__PURE__ */ new WeakMap(), so = (e) => {
|
|
1043
|
+
if (gt()) {
|
|
1044
|
+
const {
|
|
1045
|
+
repeat: n,
|
|
1046
|
+
...o
|
|
1047
|
+
} = e;
|
|
1048
|
+
return o;
|
|
1049
|
+
}
|
|
1050
|
+
let t = Ze.get(e);
|
|
1051
|
+
if (!t) {
|
|
1052
|
+
const {
|
|
1053
|
+
repeat: n,
|
|
1054
|
+
...o
|
|
1055
|
+
} = e;
|
|
1056
|
+
t = o, Ze.set(e, t);
|
|
1057
|
+
}
|
|
1058
|
+
return t;
|
|
1059
|
+
}, ao = ({
|
|
1047
1060
|
block: e,
|
|
1048
1061
|
context: t
|
|
1049
1062
|
}) => {
|
|
1050
1063
|
const {
|
|
1051
|
-
repeat: n
|
|
1052
|
-
...o
|
|
1064
|
+
repeat: n
|
|
1053
1065
|
} = e;
|
|
1054
1066
|
if (!(n != null && n.collection))
|
|
1055
1067
|
return;
|
|
1056
|
-
const
|
|
1068
|
+
const o = te({
|
|
1057
1069
|
code: n.collection,
|
|
1058
1070
|
localState: t.localState,
|
|
1059
1071
|
rootState: t.rootState,
|
|
1060
1072
|
rootSetState: t.rootSetState,
|
|
1061
1073
|
context: t.context
|
|
1062
1074
|
});
|
|
1063
|
-
if (!Array.isArray(
|
|
1075
|
+
if (!Array.isArray(o))
|
|
1064
1076
|
return;
|
|
1065
|
-
const
|
|
1066
|
-
return
|
|
1077
|
+
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = so(e);
|
|
1078
|
+
return o.map((l, d) => ({
|
|
1067
1079
|
context: {
|
|
1068
1080
|
...t,
|
|
1069
1081
|
localState: {
|
|
1070
1082
|
...t.localState,
|
|
1071
|
-
$index:
|
|
1072
|
-
$item:
|
|
1073
|
-
[
|
|
1074
|
-
[`$${
|
|
1083
|
+
$index: d,
|
|
1084
|
+
$item: l,
|
|
1085
|
+
[i]: l,
|
|
1086
|
+
[`$${i}Index`]: d
|
|
1075
1087
|
}
|
|
1076
1088
|
},
|
|
1077
|
-
block:
|
|
1089
|
+
block: s
|
|
1078
1090
|
}));
|
|
1079
|
-
},
|
|
1091
|
+
}, lo = (e, t) => {
|
|
1080
1092
|
var n;
|
|
1081
1093
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1082
1094
|
builderLinkComponent: t
|
|
1083
1095
|
} : {};
|
|
1084
|
-
},
|
|
1096
|
+
}, et = /* @__PURE__ */ new WeakMap(), co = (e, t, n) => {
|
|
1085
1097
|
var o;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1098
|
+
if ((o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents) {
|
|
1099
|
+
let r = et.get(t);
|
|
1100
|
+
r || (r = /* @__PURE__ */ new Map(), et.set(t, r));
|
|
1101
|
+
let i = r.get(n);
|
|
1102
|
+
return i || (i = Object.fromEntries(Object.entries(t).filter(([s, a]) => !Bt(a, n))), r.set(n, i)), {
|
|
1103
|
+
builderComponents: i
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
return {};
|
|
1107
|
+
}, uo = (e, t) => {
|
|
1090
1108
|
var n;
|
|
1091
1109
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1092
1110
|
builderBlock: t
|
|
1093
1111
|
} : {};
|
|
1094
|
-
},
|
|
1112
|
+
}, po = (e, t) => {
|
|
1095
1113
|
var n;
|
|
1096
1114
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1097
1115
|
builderContext: t
|
|
1098
1116
|
} : {};
|
|
1099
|
-
},
|
|
1117
|
+
}, mo = (e) => e.toString(), ho = () => Promise.resolve().then(() => Eo).then((e) => e.default).catch((e) => {
|
|
1100
1118
|
throw console.error(
|
|
1101
1119
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1102
1120
|
e
|
|
1103
1121
|
), e;
|
|
1104
|
-
}),
|
|
1122
|
+
}), fo = () => import("./block-wrapper-S-D5WDpF.js").then((e) => e.default).catch((e) => {
|
|
1105
1123
|
throw console.error(
|
|
1106
1124
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1107
1125
|
e
|
|
1108
1126
|
), e;
|
|
1109
|
-
}),
|
|
1127
|
+
}), bo = () => import("./component-ref-JIXZgEPq.js").then((e) => e.default).catch((e) => {
|
|
1110
1128
|
throw console.error(
|
|
1111
1129
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1112
1130
|
e
|
|
1113
1131
|
), e;
|
|
1114
|
-
}),
|
|
1132
|
+
}), go = () => import("./repeated-block-xa9PS91L.js").then((e) => e.default).catch((e) => {
|
|
1115
1133
|
throw console.error(
|
|
1116
1134
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1117
1135
|
e
|
|
1118
1136
|
), e;
|
|
1119
|
-
}),
|
|
1137
|
+
}), yo = () => import("./style-wrapper-8sWObtTj.js").then((e) => e.default).catch((e) => {
|
|
1120
1138
|
throw console.error(
|
|
1121
1139
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1122
1140
|
e
|
|
1123
1141
|
), e;
|
|
1124
|
-
}),
|
|
1142
|
+
}), So = y({
|
|
1125
1143
|
name: "block",
|
|
1126
1144
|
components: {
|
|
1127
|
-
StyleWrapper:
|
|
1128
|
-
RepeatedBlock:
|
|
1129
|
-
ComponentRef:
|
|
1130
|
-
BlockWrapper:
|
|
1131
|
-
DynamicDiv:
|
|
1145
|
+
StyleWrapper: Q(yo),
|
|
1146
|
+
RepeatedBlock: Q(go),
|
|
1147
|
+
ComponentRef: Q(bo),
|
|
1148
|
+
BlockWrapper: Q(fo),
|
|
1149
|
+
DynamicDiv: Q(ho)
|
|
1132
1150
|
},
|
|
1133
1151
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1134
1152
|
data() {
|
|
@@ -1137,12 +1155,16 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1137
1155
|
value: null,
|
|
1138
1156
|
update: !1
|
|
1139
1157
|
},
|
|
1140
|
-
|
|
1158
|
+
_componentRefProps: {
|
|
1159
|
+
value: null,
|
|
1160
|
+
deps: []
|
|
1161
|
+
},
|
|
1162
|
+
generateKey: mo
|
|
1141
1163
|
};
|
|
1142
1164
|
},
|
|
1143
1165
|
mounted() {
|
|
1144
1166
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1145
|
-
t && e &&
|
|
1167
|
+
t && e && eo(
|
|
1146
1168
|
t.map((n) => ({
|
|
1147
1169
|
...n,
|
|
1148
1170
|
elementId: e
|
|
@@ -1153,14 +1175,14 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1153
1175
|
},
|
|
1154
1176
|
computed: {
|
|
1155
1177
|
repeatItem() {
|
|
1156
|
-
return
|
|
1178
|
+
return ao({
|
|
1157
1179
|
block: this.block,
|
|
1158
1180
|
context: this.context
|
|
1159
1181
|
});
|
|
1160
1182
|
},
|
|
1161
1183
|
processedBlock() {
|
|
1162
1184
|
var t;
|
|
1163
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1185
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : wn({
|
|
1164
1186
|
block: this.block,
|
|
1165
1187
|
localState: this.context.localState,
|
|
1166
1188
|
rootState: this.context.rootState,
|
|
@@ -1169,7 +1191,7 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1169
1191
|
});
|
|
1170
1192
|
},
|
|
1171
1193
|
blockComponent() {
|
|
1172
|
-
return
|
|
1194
|
+
return io({
|
|
1173
1195
|
block: this.processedBlock,
|
|
1174
1196
|
registeredComponents: this.registeredComponents,
|
|
1175
1197
|
model: this.context.model
|
|
@@ -1191,16 +1213,16 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1191
1213
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? this.processedBlock.children ?? [] : [];
|
|
1192
1214
|
},
|
|
1193
1215
|
componentRefProps() {
|
|
1194
|
-
var
|
|
1195
|
-
return {
|
|
1216
|
+
var t, n, o;
|
|
1217
|
+
return this.processedBlock, this.context, this.context.rootState, this.context.localState, this.registeredComponents, this.linkComponent, {
|
|
1196
1218
|
blockChildren: this.processedBlock.children ?? [],
|
|
1197
|
-
componentRef: (
|
|
1219
|
+
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
1198
1220
|
componentOptions: {
|
|
1199
|
-
...
|
|
1200
|
-
...
|
|
1201
|
-
...
|
|
1202
|
-
...
|
|
1203
|
-
...
|
|
1221
|
+
...Sn(this.processedBlock, this.context),
|
|
1222
|
+
...uo(this.blockComponent, this.processedBlock),
|
|
1223
|
+
...po(this.blockComponent, this.context),
|
|
1224
|
+
...lo(this.blockComponent, this.linkComponent),
|
|
1225
|
+
...co(
|
|
1204
1226
|
this.blockComponent,
|
|
1205
1227
|
this.registeredComponents,
|
|
1206
1228
|
this.context.model
|
|
@@ -1210,29 +1232,29 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1210
1232
|
linkComponent: this.linkComponent,
|
|
1211
1233
|
registeredComponents: this.registeredComponents,
|
|
1212
1234
|
builderBlock: this.processedBlock,
|
|
1213
|
-
includeBlockProps: ((
|
|
1214
|
-
isInteractive: !((
|
|
1235
|
+
includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
|
|
1236
|
+
isInteractive: !((o = this.blockComponent) != null && o.isRSC && $ === "rsc")
|
|
1215
1237
|
};
|
|
1216
1238
|
}
|
|
1217
1239
|
}
|
|
1218
1240
|
});
|
|
1219
|
-
function
|
|
1241
|
+
function ko(e, t, n, o, r, i) {
|
|
1220
1242
|
var b;
|
|
1221
|
-
const s =
|
|
1222
|
-
return e.canShowBlock ? (
|
|
1223
|
-
|
|
1243
|
+
const s = C("StyleWrapper"), a = C("ComponentRef"), l = C("Block", !0), d = C("BlockWrapper"), p = C("RepeatedBlock");
|
|
1244
|
+
return e.canShowBlock ? (u(), h(I, { key: 0 }, [
|
|
1245
|
+
E(s, {
|
|
1224
1246
|
block: e.processedBlock,
|
|
1225
1247
|
context: e.context,
|
|
1226
1248
|
id: e.block.id
|
|
1227
1249
|
}, null, 8, ["block", "context", "id"]),
|
|
1228
|
-
(b = e.blockComponent) != null && b.noWrap ? (
|
|
1229
|
-
e.repeatItem ? (
|
|
1250
|
+
(b = e.blockComponent) != null && b.noWrap ? (u(), h(I, { key: 1 }, [
|
|
1251
|
+
e.repeatItem ? (u(!0), h(I, { key: 1 }, x(e.repeatItem, (c, m) => (u(), S(p, {
|
|
1230
1252
|
key: e.generateKey(m),
|
|
1231
1253
|
repeatContext: c.context,
|
|
1232
1254
|
block: c.block,
|
|
1233
1255
|
registeredComponents: e.registeredComponents,
|
|
1234
1256
|
linkComponent: e.linkComponent
|
|
1235
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1257
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(a, {
|
|
1236
1258
|
key: 0,
|
|
1237
1259
|
componentRef: e.componentRefProps.componentRef,
|
|
1238
1260
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1244,21 +1266,21 @@ function to(e, t, n, o, r, i) {
|
|
|
1244
1266
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1245
1267
|
isInteractive: e.componentRefProps.isInteractive
|
|
1246
1268
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1247
|
-
], 64)) : (
|
|
1248
|
-
e.repeatItem ? (
|
|
1269
|
+
], 64)) : (u(), h(I, { key: 0 }, [
|
|
1270
|
+
e.repeatItem ? (u(!0), h(I, { key: 1 }, x(e.repeatItem, (c, m) => (u(), S(p, {
|
|
1249
1271
|
key: e.generateKey(m),
|
|
1250
1272
|
repeatContext: c.context,
|
|
1251
1273
|
block: c.block,
|
|
1252
1274
|
registeredComponents: e.registeredComponents,
|
|
1253
1275
|
linkComponent: e.linkComponent
|
|
1254
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1276
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(d, {
|
|
1255
1277
|
key: 0,
|
|
1256
1278
|
Wrapper: e.Tag,
|
|
1257
1279
|
block: e.processedBlock,
|
|
1258
1280
|
context: e.context
|
|
1259
1281
|
}, {
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
1282
|
+
default: W(() => [
|
|
1283
|
+
E(a, {
|
|
1262
1284
|
componentRef: e.componentRefProps.componentRef,
|
|
1263
1285
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1264
1286
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1269,7 +1291,7 @@ function to(e, t, n, o, r, i) {
|
|
|
1269
1291
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1270
1292
|
isInteractive: e.componentRefProps.isInteractive
|
|
1271
1293
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1272
|
-
(
|
|
1294
|
+
(u(!0), h(I, null, x(e.childrenWithoutParentComponent, (c, m) => (u(), S(l, {
|
|
1273
1295
|
key: c.id,
|
|
1274
1296
|
block: c,
|
|
1275
1297
|
registeredComponents: e.registeredComponents,
|
|
@@ -1280,12 +1302,12 @@ function to(e, t, n, o, r, i) {
|
|
|
1280
1302
|
_: 1
|
|
1281
1303
|
}, 8, ["Wrapper", "block", "context"]))
|
|
1282
1304
|
], 64))
|
|
1283
|
-
], 64)) :
|
|
1305
|
+
], 64)) : k("", !0);
|
|
1284
1306
|
}
|
|
1285
|
-
const
|
|
1307
|
+
const Vt = /* @__PURE__ */ v(So, [["render", ko]]), Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1286
1308
|
__proto__: null,
|
|
1287
|
-
default:
|
|
1288
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1309
|
+
default: Vt
|
|
1310
|
+
}, Symbol.toStringTag, { value: "Module" })), vo = y({
|
|
1289
1311
|
name: "builder-blocks-wrapper",
|
|
1290
1312
|
props: [
|
|
1291
1313
|
"blocks",
|
|
@@ -1355,10 +1377,10 @@ const kt = /* @__PURE__ */ v(eo, [["render", to]]), bs = /* @__PURE__ */ Object.
|
|
|
1355
1377
|
}
|
|
1356
1378
|
}
|
|
1357
1379
|
});
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1380
|
+
function Co(e, t, n, o, r, i) {
|
|
1381
|
+
return u(), S(X(e.BlocksWrapper), w({
|
|
1360
1382
|
ref: "blocksWrapperRef",
|
|
1361
|
-
class: e.className + " component-
|
|
1383
|
+
class: e.className + " component-1zgn626bpbf",
|
|
1362
1384
|
"builder-path": e.dataPath,
|
|
1363
1385
|
"builder-parent-id": e.parent,
|
|
1364
1386
|
style: e.styleProp,
|
|
@@ -1366,15 +1388,15 @@ function oo(e, t, n, o, r, i) {
|
|
|
1366
1388
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1367
1389
|
onKeyPress: (s) => e.onClick()
|
|
1368
1390
|
}, { ...e.BlocksWrapperProps }), {
|
|
1369
|
-
default:
|
|
1370
|
-
|
|
1391
|
+
default: W(() => [
|
|
1392
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
1371
1393
|
]),
|
|
1372
1394
|
_: 3
|
|
1373
1395
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1374
1396
|
}
|
|
1375
|
-
const
|
|
1397
|
+
const To = /* @__PURE__ */ v(vo, [["render", Co], ["__scopeId", "data-v-bab174f6"]]), Io = y({
|
|
1376
1398
|
name: "builder-blocks",
|
|
1377
|
-
components: { BlocksWrapper:
|
|
1399
|
+
components: { BlocksWrapper: To, Block: Vt },
|
|
1378
1400
|
props: [
|
|
1379
1401
|
"blocks",
|
|
1380
1402
|
"parent",
|
|
@@ -1387,53 +1409,53 @@ const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-82fc93d6
|
|
|
1387
1409
|
"registeredComponents"
|
|
1388
1410
|
],
|
|
1389
1411
|
inject: {
|
|
1390
|
-
builderContext:
|
|
1391
|
-
componentsContext:
|
|
1412
|
+
builderContext: ke.key,
|
|
1413
|
+
componentsContext: ht.key
|
|
1392
1414
|
}
|
|
1393
1415
|
});
|
|
1394
|
-
function
|
|
1395
|
-
var
|
|
1396
|
-
const s =
|
|
1397
|
-
return
|
|
1416
|
+
function wo(e, t, n, o, r, i) {
|
|
1417
|
+
var l, d, p, b;
|
|
1418
|
+
const s = C("Block"), a = C("BlocksWrapper");
|
|
1419
|
+
return u(), S(a, {
|
|
1398
1420
|
blocks: e.blocks,
|
|
1399
1421
|
parent: e.parent,
|
|
1400
1422
|
path: e.path,
|
|
1401
1423
|
styleProp: e.styleProp,
|
|
1402
|
-
BlocksWrapperProps: e.BlocksWrapperProps || ((
|
|
1424
|
+
BlocksWrapperProps: e.BlocksWrapperProps || ((l = e.context) == null ? void 0 : l.BlocksWrapperProps) || ((d = e.builderContext) == null ? void 0 : d.BlocksWrapperProps),
|
|
1403
1425
|
classNameProp: e.className,
|
|
1404
1426
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
1405
1427
|
}, {
|
|
1406
|
-
default:
|
|
1407
|
-
|
|
1408
|
-
e.blocks ? (
|
|
1428
|
+
default: W(() => [
|
|
1429
|
+
B(e.$slots, "default"),
|
|
1430
|
+
e.blocks ? (u(!0), h(I, { key: 0 }, x(e.blocks, (c, m) => {
|
|
1409
1431
|
var f;
|
|
1410
|
-
return
|
|
1432
|
+
return u(), S(s, {
|
|
1411
1433
|
key: c.id,
|
|
1412
1434
|
block: c,
|
|
1413
1435
|
linkComponent: e.linkComponent,
|
|
1414
1436
|
context: e.context || e.builderContext,
|
|
1415
1437
|
registeredComponents: e.registeredComponents || ((f = e.componentsContext) == null ? void 0 : f.registeredComponents)
|
|
1416
1438
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1417
|
-
}), 128)) :
|
|
1439
|
+
}), 128)) : k("", !0)
|
|
1418
1440
|
]),
|
|
1419
1441
|
_: 3
|
|
1420
1442
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1421
1443
|
}
|
|
1422
|
-
const
|
|
1444
|
+
const z = /* @__PURE__ */ v(Io, [["render", wo]]), $o = y({
|
|
1423
1445
|
name: "dynamic-div",
|
|
1424
1446
|
props: []
|
|
1425
1447
|
});
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1428
|
-
|
|
1448
|
+
function Ro(e, t, n, o, r, i) {
|
|
1449
|
+
return u(), h("div", null, [
|
|
1450
|
+
B(e.$slots, "default")
|
|
1429
1451
|
]);
|
|
1430
1452
|
}
|
|
1431
|
-
const
|
|
1453
|
+
const ne = /* @__PURE__ */ v($o, [["render", Ro]]), Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1432
1454
|
__proto__: null,
|
|
1433
|
-
default:
|
|
1434
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1455
|
+
default: ne
|
|
1456
|
+
}, Symbol.toStringTag, { value: "Module" })), he = y({
|
|
1435
1457
|
render() {
|
|
1436
|
-
return
|
|
1458
|
+
return ct("style", {
|
|
1437
1459
|
innerHTML: this.styles,
|
|
1438
1460
|
"data-id": this.id,
|
|
1439
1461
|
nonce: this.nonce
|
|
@@ -1441,7 +1463,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1441
1463
|
},
|
|
1442
1464
|
name: "inlined-styles",
|
|
1443
1465
|
props: ["styles", "id", "nonce"]
|
|
1444
|
-
}),
|
|
1466
|
+
}), Y = {
|
|
1445
1467
|
xsmall: {
|
|
1446
1468
|
min: 0,
|
|
1447
1469
|
default: 160,
|
|
@@ -1462,8 +1484,21 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1462
1484
|
default: 991,
|
|
1463
1485
|
max: 1200
|
|
1464
1486
|
}
|
|
1465
|
-
},
|
|
1466
|
-
const t =
|
|
1487
|
+
}, Ms = (e, t = Y) => `@media (max-width: ${t[e].max}px)`, Po = (e) => {
|
|
1488
|
+
const t = {
|
|
1489
|
+
xsmall: {
|
|
1490
|
+
...Y.xsmall
|
|
1491
|
+
},
|
|
1492
|
+
small: {
|
|
1493
|
+
...Y.small
|
|
1494
|
+
},
|
|
1495
|
+
medium: {
|
|
1496
|
+
...Y.medium
|
|
1497
|
+
},
|
|
1498
|
+
large: {
|
|
1499
|
+
...Y.large
|
|
1500
|
+
}
|
|
1501
|
+
};
|
|
1467
1502
|
if (!e)
|
|
1468
1503
|
return t;
|
|
1469
1504
|
const {
|
|
@@ -1472,11 +1507,11 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1472
1507
|
medium: r
|
|
1473
1508
|
} = e;
|
|
1474
1509
|
if (n) {
|
|
1475
|
-
const
|
|
1510
|
+
const l = Math.floor(n / 2);
|
|
1476
1511
|
t.xsmall = {
|
|
1477
1512
|
max: n,
|
|
1478
|
-
min:
|
|
1479
|
-
default:
|
|
1513
|
+
min: l,
|
|
1514
|
+
default: l + 1
|
|
1480
1515
|
};
|
|
1481
1516
|
}
|
|
1482
1517
|
if (!o || !r)
|
|
@@ -1493,20 +1528,20 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1493
1528
|
min: s,
|
|
1494
1529
|
default: s + 1
|
|
1495
1530
|
};
|
|
1496
|
-
const
|
|
1531
|
+
const a = t.medium.max + 1;
|
|
1497
1532
|
return t.large = {
|
|
1498
1533
|
max: 2e3,
|
|
1499
1534
|
// TODO: decide upper limit
|
|
1500
|
-
min:
|
|
1501
|
-
default:
|
|
1535
|
+
min: a,
|
|
1536
|
+
default: a + 1
|
|
1502
1537
|
}, t;
|
|
1503
|
-
},
|
|
1538
|
+
}, Ao = (e) => `builder-columns ${e}-breakpoints`, Bo = y({
|
|
1504
1539
|
name: "builder-columns",
|
|
1505
1540
|
components: {
|
|
1506
|
-
InlinedStyles:
|
|
1507
|
-
DynamicRenderer:
|
|
1508
|
-
Blocks:
|
|
1509
|
-
DynamicDiv:
|
|
1541
|
+
InlinedStyles: he,
|
|
1542
|
+
DynamicRenderer: Ae,
|
|
1543
|
+
Blocks: z,
|
|
1544
|
+
DynamicDiv: ne
|
|
1510
1545
|
},
|
|
1511
1546
|
props: [
|
|
1512
1547
|
"space",
|
|
@@ -1519,7 +1554,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1519
1554
|
"builderComponents"
|
|
1520
1555
|
],
|
|
1521
1556
|
data() {
|
|
1522
|
-
return { TARGET:
|
|
1557
|
+
return { TARGET: $, getColumnsClass: Ao };
|
|
1523
1558
|
},
|
|
1524
1559
|
computed: {
|
|
1525
1560
|
gutterSize() {
|
|
@@ -1598,7 +1633,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1598
1633
|
},
|
|
1599
1634
|
getWidthForBreakpointSize(e) {
|
|
1600
1635
|
var n, o;
|
|
1601
|
-
return
|
|
1636
|
+
return Po(
|
|
1602
1637
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1603
1638
|
)[e].max;
|
|
1604
1639
|
},
|
|
@@ -1635,33 +1670,33 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
|
|
|
1635
1670
|
...e.link ? {
|
|
1636
1671
|
href: e.link
|
|
1637
1672
|
} : {},
|
|
1638
|
-
[
|
|
1639
|
-
style:
|
|
1673
|
+
[H()]: "builder-column",
|
|
1674
|
+
style: At(this.columnCssVars(t))
|
|
1640
1675
|
};
|
|
1641
1676
|
}
|
|
1642
1677
|
}
|
|
1643
1678
|
});
|
|
1644
|
-
function
|
|
1645
|
-
var
|
|
1646
|
-
const s =
|
|
1647
|
-
return
|
|
1648
|
-
class: e.getColumnsClass((
|
|
1679
|
+
function Vo(e, t, n, o, r, i) {
|
|
1680
|
+
var d;
|
|
1681
|
+
const s = C("InlinedStyles"), a = C("Blocks"), l = C("DynamicRenderer");
|
|
1682
|
+
return u(), h("div", w({
|
|
1683
|
+
class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-20351ewpue7",
|
|
1649
1684
|
style: e.columnsCssVars()
|
|
1650
1685
|
}, {}), [
|
|
1651
|
-
e.TARGET !== "reactNative" ? (
|
|
1686
|
+
e.TARGET !== "reactNative" ? (u(), S(s, {
|
|
1652
1687
|
key: 0,
|
|
1653
1688
|
id: "builderio-columns",
|
|
1654
1689
|
styles: e.columnsStyles(),
|
|
1655
1690
|
nonce: e.builderContext.nonce
|
|
1656
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1657
|
-
(
|
|
1691
|
+
}, null, 8, ["styles", "nonce"])) : k("", !0),
|
|
1692
|
+
(u(!0), h(I, null, x(e.columns, (p, b) => (u(), S(l, {
|
|
1658
1693
|
key: b,
|
|
1659
1694
|
TagName: e.getTagName(p),
|
|
1660
1695
|
actionAttributes: {},
|
|
1661
1696
|
attributes: e.getAttributes(p, b)
|
|
1662
1697
|
}, {
|
|
1663
|
-
default:
|
|
1664
|
-
|
|
1698
|
+
default: W(() => [
|
|
1699
|
+
E(a, {
|
|
1665
1700
|
path: `columns.${b}.blocks`,
|
|
1666
1701
|
parent: e.builderBlock.id,
|
|
1667
1702
|
context: e.builderContext,
|
|
@@ -1677,47 +1712,47 @@ function ho(e, t, n, o, r, i) {
|
|
|
1677
1712
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1678
1713
|
], 16);
|
|
1679
1714
|
}
|
|
1680
|
-
const
|
|
1715
|
+
const No = /* @__PURE__ */ v(Bo, [["render", Vo], ["__scopeId", "data-v-b0ce0948"]]), Oo = y({
|
|
1681
1716
|
name: "builder-fragment-component",
|
|
1682
1717
|
props: []
|
|
1683
1718
|
});
|
|
1684
|
-
function
|
|
1685
|
-
return
|
|
1686
|
-
|
|
1719
|
+
function Wo(e, t, n, o, r, i) {
|
|
1720
|
+
return u(), h("span", null, [
|
|
1721
|
+
B(e.$slots, "default")
|
|
1687
1722
|
]);
|
|
1688
1723
|
}
|
|
1689
|
-
const
|
|
1690
|
-
function
|
|
1724
|
+
const Do = /* @__PURE__ */ v(Oo, [["render", Wo]]);
|
|
1725
|
+
function tt(e) {
|
|
1691
1726
|
return e.replace(/http(s)?:/, "");
|
|
1692
1727
|
}
|
|
1693
|
-
function
|
|
1728
|
+
function Uo(e = "", t, n) {
|
|
1694
1729
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1695
1730
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1696
1731
|
}
|
|
1697
|
-
function
|
|
1732
|
+
function xo(e, t) {
|
|
1698
1733
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1699
1734
|
return e;
|
|
1700
1735
|
if (t === "master")
|
|
1701
|
-
return
|
|
1736
|
+
return tt(e);
|
|
1702
1737
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1703
1738
|
if (n) {
|
|
1704
1739
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1705
|
-
return
|
|
1740
|
+
return tt(`${o[0]}_${i}${r}`);
|
|
1706
1741
|
}
|
|
1707
1742
|
return null;
|
|
1708
1743
|
}
|
|
1709
|
-
function
|
|
1744
|
+
function se(e) {
|
|
1710
1745
|
if (!e)
|
|
1711
1746
|
return e;
|
|
1712
1747
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1713
1748
|
if (e.match(/builder\.io/)) {
|
|
1714
1749
|
let n = e;
|
|
1715
1750
|
const o = Number(e.split("?width=")[1]);
|
|
1716
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1751
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1717
1752
|
}
|
|
1718
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1753
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [xo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1719
1754
|
}
|
|
1720
|
-
const
|
|
1755
|
+
const Fo = y({
|
|
1721
1756
|
name: "builder-image",
|
|
1722
1757
|
props: [
|
|
1723
1758
|
"lazy",
|
|
@@ -1747,10 +1782,10 @@ const ko = y({
|
|
|
1747
1782
|
if (!this.noWebp) {
|
|
1748
1783
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1749
1784
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1750
|
-
return console.debug("Removed given srcset"),
|
|
1785
|
+
return console.debug("Removed given srcset"), se(t);
|
|
1751
1786
|
} else if (this.image && !this.srcset)
|
|
1752
|
-
return
|
|
1753
|
-
return
|
|
1787
|
+
return se(t);
|
|
1788
|
+
return se(t);
|
|
1754
1789
|
}
|
|
1755
1790
|
},
|
|
1756
1791
|
webpSrcSet() {
|
|
@@ -1771,60 +1806,60 @@ const ko = y({
|
|
|
1771
1806
|
return this.aspectRatio ? e : void 0;
|
|
1772
1807
|
}
|
|
1773
1808
|
}
|
|
1774
|
-
}),
|
|
1809
|
+
}), Lo = ["srcset", "sizes"], Mo = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], Ho = {
|
|
1775
1810
|
key: 2,
|
|
1776
|
-
class: "div-
|
|
1811
|
+
class: "div-1ifnufbde19-2"
|
|
1777
1812
|
};
|
|
1778
|
-
function
|
|
1779
|
-
var s,
|
|
1780
|
-
return
|
|
1813
|
+
function jo(e, t, n, o, r, i) {
|
|
1814
|
+
var s, a, l, d, p, b;
|
|
1815
|
+
return u(), h(I, null, [
|
|
1781
1816
|
K("picture", null, [
|
|
1782
|
-
e.webpSrcSet ? (
|
|
1817
|
+
e.webpSrcSet ? (u(), h("source", {
|
|
1783
1818
|
key: 0,
|
|
1784
1819
|
type: "image/webp",
|
|
1785
1820
|
srcset: e.webpSrcSet,
|
|
1786
1821
|
sizes: e.sizesToUse
|
|
1787
|
-
}, null, 8,
|
|
1822
|
+
}, null, 8, Lo)) : k("", !0),
|
|
1788
1823
|
K("img", {
|
|
1789
1824
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1790
1825
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1791
1826
|
alt: e.altText || "",
|
|
1792
1827
|
title: e.title,
|
|
1793
|
-
style:
|
|
1828
|
+
style: M({
|
|
1794
1829
|
objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
|
|
1795
1830
|
objectFit: e.backgroundSize || "cover",
|
|
1796
1831
|
...e.aspectRatioCss
|
|
1797
1832
|
}),
|
|
1798
|
-
class:
|
|
1799
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1833
|
+
class: ee(
|
|
1834
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1ifnufbde19"
|
|
1800
1835
|
),
|
|
1801
1836
|
src: e.image,
|
|
1802
1837
|
srcset: e.srcSetToUse,
|
|
1803
1838
|
sizes: e.sizesToUse
|
|
1804
|
-
}, null, 14,
|
|
1839
|
+
}, null, 14, Mo)
|
|
1805
1840
|
]),
|
|
1806
|
-
e.aspectRatio && !((
|
|
1841
|
+
e.aspectRatio && !((a = (s = e.builderBlock) == null ? void 0 : s.children) != null && a.length && e.fitContent) ? (u(), h("div", {
|
|
1807
1842
|
key: 0,
|
|
1808
|
-
class: "builder-image-sizer div-
|
|
1809
|
-
style:
|
|
1843
|
+
class: "builder-image-sizer div-1ifnufbde19",
|
|
1844
|
+
style: M({
|
|
1810
1845
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1811
1846
|
})
|
|
1812
|
-
}, null, 4)) :
|
|
1813
|
-
(
|
|
1814
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (
|
|
1815
|
-
|
|
1816
|
-
])) :
|
|
1847
|
+
}, null, 4)) : k("", !0),
|
|
1848
|
+
(d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : k("", !0),
|
|
1849
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", Ho, [
|
|
1850
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
1851
|
+
])) : k("", !0)
|
|
1817
1852
|
], 64);
|
|
1818
1853
|
}
|
|
1819
|
-
const
|
|
1854
|
+
const zo = /* @__PURE__ */ v(Fo, [["render", jo], ["__scopeId", "data-v-a28af777"]]), qo = y({
|
|
1820
1855
|
name: "builder-section-component",
|
|
1821
1856
|
props: ["attributes", "maxWidth"],
|
|
1822
1857
|
data() {
|
|
1823
1858
|
return { filterAttrs: N };
|
|
1824
1859
|
}
|
|
1825
1860
|
});
|
|
1826
|
-
function
|
|
1827
|
-
return
|
|
1861
|
+
function Ko(e, t, n, o, r, i) {
|
|
1862
|
+
return u(), h("section", w({
|
|
1828
1863
|
style: {
|
|
1829
1864
|
width: "100%",
|
|
1830
1865
|
alignSelf: "stretch",
|
|
@@ -1838,34 +1873,34 @@ function Eo(e, t, n, o, r, i) {
|
|
|
1838
1873
|
marginRight: "auto"
|
|
1839
1874
|
}
|
|
1840
1875
|
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1841
|
-
|
|
1876
|
+
B(e.$slots, "default")
|
|
1842
1877
|
], 16);
|
|
1843
1878
|
}
|
|
1844
|
-
const
|
|
1845
|
-
function
|
|
1846
|
-
function r(
|
|
1847
|
-
return typeof
|
|
1879
|
+
const Go = /* @__PURE__ */ v(qo, [["render", Ko]]);
|
|
1880
|
+
function Jo(e, t, n, o) {
|
|
1881
|
+
function r(d) {
|
|
1882
|
+
return typeof d == "string";
|
|
1848
1883
|
}
|
|
1849
|
-
function i(
|
|
1850
|
-
return typeof
|
|
1884
|
+
function i(d) {
|
|
1885
|
+
return typeof d == "number";
|
|
1851
1886
|
}
|
|
1852
|
-
function s(
|
|
1887
|
+
function s(d, p) {
|
|
1853
1888
|
return (() => {
|
|
1854
1889
|
const c = p.property, m = p.operator;
|
|
1855
1890
|
let f = p.value;
|
|
1856
1891
|
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
|
|
1857
1892
|
return !0;
|
|
1858
1893
|
if (Array.isArray(f))
|
|
1859
|
-
return m === "isNot" ? f.every((P) => s(
|
|
1894
|
+
return m === "isNot" ? f.every((P) => s(d, {
|
|
1860
1895
|
property: c,
|
|
1861
1896
|
operator: m,
|
|
1862
1897
|
value: P
|
|
1863
|
-
})) : !!f.find((P) => s(
|
|
1898
|
+
})) : !!f.find((P) => s(d, {
|
|
1864
1899
|
property: c,
|
|
1865
1900
|
operator: m,
|
|
1866
1901
|
value: P
|
|
1867
1902
|
}));
|
|
1868
|
-
const g =
|
|
1903
|
+
const g = d[c];
|
|
1869
1904
|
if (Array.isArray(g))
|
|
1870
1905
|
return g.includes(f);
|
|
1871
1906
|
switch (m) {
|
|
@@ -1892,14 +1927,14 @@ function Ao(e, t, n, o) {
|
|
|
1892
1927
|
}
|
|
1893
1928
|
})();
|
|
1894
1929
|
}
|
|
1895
|
-
const
|
|
1930
|
+
const a = {
|
|
1896
1931
|
query: t,
|
|
1897
1932
|
startDate: n,
|
|
1898
1933
|
endDate: o
|
|
1899
|
-
},
|
|
1900
|
-
return
|
|
1934
|
+
}, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1935
|
+
return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((d) => s(e, d));
|
|
1901
1936
|
}
|
|
1902
|
-
const
|
|
1937
|
+
const _o = `function getStudioUserAttributes() {
|
|
1903
1938
|
const params = new URLSearchParams(window.location.search);
|
|
1904
1939
|
if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
|
|
1905
1940
|
return {};
|
|
@@ -1912,7 +1947,7 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
1912
1947
|
}
|
|
1913
1948
|
});
|
|
1914
1949
|
return attributes;
|
|
1915
|
-
}`,
|
|
1950
|
+
}`, Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1916
1951
|
if (!navigator.cookieEnabled) {
|
|
1917
1952
|
return;
|
|
1918
1953
|
}
|
|
@@ -1958,7 +1993,7 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
1958
1993
|
thisScript.remove();
|
|
1959
1994
|
}
|
|
1960
1995
|
}
|
|
1961
|
-
}`,
|
|
1996
|
+
}`, Yo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1962
1997
|
function isString(val) {
|
|
1963
1998
|
return typeof val === 'string';
|
|
1964
1999
|
}
|
|
@@ -2036,7 +2071,7 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
2036
2071
|
return item.query.every(filter => {
|
|
2037
2072
|
return objectMatchesQuery(userAttributes, filter);
|
|
2038
2073
|
});
|
|
2039
|
-
}`,
|
|
2074
|
+
}`, Xo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2040
2075
|
function getCookie(name) {
|
|
2041
2076
|
const nameEQ = name + '=';
|
|
2042
2077
|
const ca = document.cookie.split(';');
|
|
@@ -2075,11 +2110,11 @@ const Bo = `function getStudioUserAttributes() {
|
|
|
2075
2110
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2076
2111
|
}
|
|
2077
2112
|
}
|
|
2078
|
-
}`,
|
|
2079
|
-
function
|
|
2080
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2113
|
+
}`, ae = "default", nt = "filterWithCustomTargeting", Te = "builderIoPersonalization", Ie = "updateVisibilityStylesScript", ot = "builderIoStudioUserAttributes", Zo = "PersonalizationContainer", De = ["react", "vue", "svelte", "qwik"], Nt = ["vue", "svelte", "qwik"];
|
|
2114
|
+
function er(e, t) {
|
|
2115
|
+
return !(e && e.length > 0) || !t ? !1 : Nt.includes($) ? !0 : !R();
|
|
2081
2116
|
}
|
|
2082
|
-
function
|
|
2117
|
+
function tr({
|
|
2083
2118
|
variants: e,
|
|
2084
2119
|
previewingIndex: t,
|
|
2085
2120
|
isHydrated: n,
|
|
@@ -2089,7 +2124,7 @@ function Uo({
|
|
|
2089
2124
|
const i = {
|
|
2090
2125
|
blocks: r ?? [],
|
|
2091
2126
|
path: "this.children",
|
|
2092
|
-
index:
|
|
2127
|
+
index: ae
|
|
2093
2128
|
};
|
|
2094
2129
|
if (n && A()) {
|
|
2095
2130
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2103,39 +2138,42 @@ function Uo({
|
|
|
2103
2138
|
}
|
|
2104
2139
|
return i;
|
|
2105
2140
|
}
|
|
2106
|
-
if (
|
|
2141
|
+
if (R()) {
|
|
2107
2142
|
const s = o == null ? void 0 : o[0];
|
|
2108
2143
|
if (s && e) {
|
|
2109
|
-
const
|
|
2110
|
-
if (
|
|
2144
|
+
const a = e.indexOf(s);
|
|
2145
|
+
if (a !== -1)
|
|
2111
2146
|
return {
|
|
2112
2147
|
blocks: s.blocks,
|
|
2113
|
-
path: `variants.${
|
|
2114
|
-
index:
|
|
2148
|
+
path: `variants.${a}.blocks`,
|
|
2149
|
+
index: a
|
|
2115
2150
|
};
|
|
2116
2151
|
}
|
|
2117
2152
|
}
|
|
2118
2153
|
return i;
|
|
2119
2154
|
}
|
|
2120
|
-
const
|
|
2155
|
+
const we = (e) => {
|
|
2121
2156
|
var t;
|
|
2122
|
-
return Array.isArray(e) ? e.some(
|
|
2123
|
-
},
|
|
2157
|
+
return Array.isArray(e) ? e.some(we) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Zo ? !0 : Object.values(e).some(we);
|
|
2158
|
+
}, nr = (e) => we(e), Ot = () => `
|
|
2124
2159
|
(function() {
|
|
2125
|
-
if (!window.${
|
|
2126
|
-
window.${
|
|
2160
|
+
if (!window.${ot}) {
|
|
2161
|
+
window.${ot} = ${_o};
|
|
2127
2162
|
}
|
|
2128
|
-
if (!window.${
|
|
2129
|
-
window.${
|
|
2163
|
+
if (!window.${nt}) {
|
|
2164
|
+
window.${nt} = ${Yo};
|
|
2130
2165
|
}
|
|
2131
|
-
if (!window.${
|
|
2132
|
-
window.${
|
|
2166
|
+
if (!window.${Te}) {
|
|
2167
|
+
window.${Te} = ${Qo};
|
|
2133
2168
|
}
|
|
2134
|
-
if (!window.${
|
|
2135
|
-
window.${
|
|
2169
|
+
if (!window.${Ie}) {
|
|
2170
|
+
window.${Ie} = ${Xo};
|
|
2136
2171
|
}
|
|
2137
2172
|
})();
|
|
2138
|
-
`,
|
|
2173
|
+
`, Wt = $ === "react", or = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Wt}${n ? `, "${n}"` : ""})`, rr = (e, t, n) => `window.${Ie}(${JSON.stringify(e)}, "${t}", ${Wt}${n ? `, "${n}"` : ""})`, ir = Symbol(), $e = {
|
|
2174
|
+
BuilderScripts: { scriptsEmitted: !1 },
|
|
2175
|
+
key: ir
|
|
2176
|
+
}, be = {
|
|
2139
2177
|
"@type": "@builder.io/sdk:Element",
|
|
2140
2178
|
layerName: "Accordion item title",
|
|
2141
2179
|
responsiveStyles: {
|
|
@@ -2164,7 +2202,7 @@ const Ce = (e) => {
|
|
|
2164
2202
|
}
|
|
2165
2203
|
}
|
|
2166
2204
|
}]
|
|
2167
|
-
},
|
|
2205
|
+
}, ge = {
|
|
2168
2206
|
"@type": "@builder.io/sdk:Element",
|
|
2169
2207
|
layerName: "Accordion item detail",
|
|
2170
2208
|
responsiveStyles: {
|
|
@@ -2195,7 +2233,7 @@ const Ce = (e) => {
|
|
|
2195
2233
|
}
|
|
2196
2234
|
}
|
|
2197
2235
|
}]
|
|
2198
|
-
},
|
|
2236
|
+
}, sr = {
|
|
2199
2237
|
name: "Builder:Accordion",
|
|
2200
2238
|
canHaveChildren: !0,
|
|
2201
2239
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2212,19 +2250,19 @@ const Ce = (e) => {
|
|
|
2212
2250
|
name: "title",
|
|
2213
2251
|
type: "uiBlocks",
|
|
2214
2252
|
hideFromUI: !0,
|
|
2215
|
-
defaultValue: [
|
|
2253
|
+
defaultValue: [be]
|
|
2216
2254
|
}, {
|
|
2217
2255
|
name: "detail",
|
|
2218
2256
|
type: "uiBlocks",
|
|
2219
2257
|
hideFromUI: !0,
|
|
2220
|
-
defaultValue: [
|
|
2258
|
+
defaultValue: [ge]
|
|
2221
2259
|
}],
|
|
2222
2260
|
defaultValue: [{
|
|
2223
|
-
title: [
|
|
2224
|
-
detail: [
|
|
2261
|
+
title: [be],
|
|
2262
|
+
detail: [ge]
|
|
2225
2263
|
}, {
|
|
2226
|
-
title: [
|
|
2227
|
-
detail: [
|
|
2264
|
+
title: [be],
|
|
2265
|
+
detail: [ge]
|
|
2228
2266
|
}],
|
|
2229
2267
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2230
2268
|
}, {
|
|
@@ -2259,9 +2297,9 @@ const Ce = (e) => {
|
|
|
2259
2297
|
builderComponents: !0,
|
|
2260
2298
|
builderLinkComponent: !0
|
|
2261
2299
|
}
|
|
2262
|
-
},
|
|
2300
|
+
}, ar = (e) => e.toString(), lr = y({
|
|
2263
2301
|
name: "builder-accordion",
|
|
2264
|
-
components: { Blocks:
|
|
2302
|
+
components: { Blocks: z },
|
|
2265
2303
|
props: [
|
|
2266
2304
|
"grid",
|
|
2267
2305
|
"oneAtATime",
|
|
@@ -2273,7 +2311,7 @@ const Ce = (e) => {
|
|
|
2273
2311
|
"builderLinkComponent"
|
|
2274
2312
|
],
|
|
2275
2313
|
data() {
|
|
2276
|
-
return { open: [], convertOrderNumberToString:
|
|
2314
|
+
return { open: [], convertOrderNumberToString: ar };
|
|
2277
2315
|
},
|
|
2278
2316
|
computed: {
|
|
2279
2317
|
onlyOneAtATime() {
|
|
@@ -2319,11 +2357,11 @@ const Ce = (e) => {
|
|
|
2319
2357
|
continue;
|
|
2320
2358
|
const s = r.getBoundingClientRect();
|
|
2321
2359
|
if (s.left > i.left) {
|
|
2322
|
-
const
|
|
2360
|
+
const a = parseInt(
|
|
2323
2361
|
r.getAttribute("data-index") || "",
|
|
2324
2362
|
10
|
|
2325
2363
|
);
|
|
2326
|
-
isNaN(
|
|
2364
|
+
isNaN(a) || (i = s, e = a);
|
|
2327
2365
|
} else
|
|
2328
2366
|
break;
|
|
2329
2367
|
}
|
|
@@ -2354,53 +2392,53 @@ const Ce = (e) => {
|
|
|
2354
2392
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2355
2393
|
}
|
|
2356
2394
|
}
|
|
2357
|
-
}),
|
|
2358
|
-
function
|
|
2359
|
-
const s =
|
|
2360
|
-
return
|
|
2395
|
+
}), cr = ["data-index", "onClick"];
|
|
2396
|
+
function dr(e, t, n, o, r, i) {
|
|
2397
|
+
const s = C("Blocks");
|
|
2398
|
+
return u(), h("div", {
|
|
2361
2399
|
class: "builder-accordion",
|
|
2362
|
-
style:
|
|
2400
|
+
style: M(e.accordionStyles)
|
|
2363
2401
|
}, [
|
|
2364
|
-
(
|
|
2402
|
+
(u(!0), h(I, null, x(e.items, (a, l) => (u(), h(I, { key: l }, [
|
|
2365
2403
|
K("div", {
|
|
2366
|
-
class:
|
|
2367
|
-
style:
|
|
2404
|
+
class: ee(e.getAccordionTitleClassName(l)),
|
|
2405
|
+
style: M({
|
|
2368
2406
|
...e.accordionTitleStyles,
|
|
2369
2407
|
...e.grid && {
|
|
2370
2408
|
width: e.gridRowWidth,
|
|
2371
|
-
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(
|
|
2409
|
+
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(l) : e.convertOrderNumberToString(l + 1)
|
|
2372
2410
|
}
|
|
2373
2411
|
}),
|
|
2374
|
-
"data-index":
|
|
2375
|
-
onClick: async (
|
|
2412
|
+
"data-index": l,
|
|
2413
|
+
onClick: async (d) => e.onClick(l)
|
|
2376
2414
|
}, [
|
|
2377
|
-
|
|
2378
|
-
blocks:
|
|
2379
|
-
path: `items.${
|
|
2415
|
+
E(s, {
|
|
2416
|
+
blocks: a.title,
|
|
2417
|
+
path: `items.${l}.title`,
|
|
2380
2418
|
parent: e.builderBlock.id,
|
|
2381
2419
|
context: e.builderContext,
|
|
2382
2420
|
registeredComponents: e.builderComponents,
|
|
2383
2421
|
linkComponent: e.builderLinkComponent
|
|
2384
2422
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2385
|
-
], 14,
|
|
2386
|
-
e.open.includes(
|
|
2423
|
+
], 14, cr),
|
|
2424
|
+
e.open.includes(l) ? (u(), h("div", {
|
|
2387
2425
|
key: 0,
|
|
2388
|
-
class:
|
|
2389
|
-
style:
|
|
2426
|
+
class: ee(e.getAccordionDetailClassName(l)),
|
|
2427
|
+
style: M(e.accordionDetailStyles)
|
|
2390
2428
|
}, [
|
|
2391
|
-
|
|
2392
|
-
blocks:
|
|
2393
|
-
path: `items.${
|
|
2429
|
+
E(s, {
|
|
2430
|
+
blocks: a.detail,
|
|
2431
|
+
path: `items.${l}.detail`,
|
|
2394
2432
|
parent: e.builderBlock.id,
|
|
2395
2433
|
context: e.builderContext,
|
|
2396
2434
|
registeredComponents: e.builderComponents,
|
|
2397
2435
|
linkComponent: e.builderLinkComponent
|
|
2398
2436
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2399
|
-
], 6)) :
|
|
2437
|
+
], 6)) : k("", !0)
|
|
2400
2438
|
], 64))), 128))
|
|
2401
2439
|
], 4);
|
|
2402
2440
|
}
|
|
2403
|
-
const
|
|
2441
|
+
const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
2404
2442
|
name: "Core:Button",
|
|
2405
2443
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2406
2444
|
defaultStyles: {
|
|
@@ -2436,7 +2474,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2436
2474
|
shouldReceiveBuilderProps: {
|
|
2437
2475
|
builderLinkComponent: !0
|
|
2438
2476
|
}
|
|
2439
|
-
},
|
|
2477
|
+
}, mr = {
|
|
2440
2478
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2441
2479
|
name: "Columns",
|
|
2442
2480
|
isRSC: !0,
|
|
@@ -2615,7 +2653,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2615
2653
|
});
|
|
2616
2654
|
}
|
|
2617
2655
|
const n = e.get("columns");
|
|
2618
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((
|
|
2656
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
|
|
2619
2657
|
}
|
|
2620
2658
|
}, {
|
|
2621
2659
|
name: "space",
|
|
@@ -2643,13 +2681,13 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2643
2681
|
builderComponents: !0,
|
|
2644
2682
|
builderLinkComponent: !0
|
|
2645
2683
|
}
|
|
2646
|
-
},
|
|
2684
|
+
}, hr = {
|
|
2647
2685
|
name: "Fragment",
|
|
2648
2686
|
static: !0,
|
|
2649
2687
|
hidden: !0,
|
|
2650
2688
|
canHaveChildren: !0,
|
|
2651
2689
|
noWrap: !0
|
|
2652
|
-
},
|
|
2690
|
+
}, Ue = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], fr = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], br = {
|
|
2653
2691
|
name: "Image",
|
|
2654
2692
|
static: !0,
|
|
2655
2693
|
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",
|
|
@@ -2664,22 +2702,22 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2664
2702
|
name: "image",
|
|
2665
2703
|
type: "file",
|
|
2666
2704
|
bubble: !0,
|
|
2667
|
-
allowedFileTypes:
|
|
2705
|
+
allowedFileTypes: Ue,
|
|
2668
2706
|
required: !0,
|
|
2669
2707
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2670
2708
|
onChange: (e) => {
|
|
2671
2709
|
e.delete("srcset"), e.delete("noWebp");
|
|
2672
|
-
function n(s,
|
|
2673
|
-
return new Promise((
|
|
2710
|
+
function n(s, a = 6e4) {
|
|
2711
|
+
return new Promise((l, d) => {
|
|
2674
2712
|
const p = document.createElement("img");
|
|
2675
2713
|
let b = !1;
|
|
2676
2714
|
p.onload = () => {
|
|
2677
|
-
b = !0,
|
|
2715
|
+
b = !0, l(p);
|
|
2678
2716
|
}, p.addEventListener("error", (c) => {
|
|
2679
|
-
console.warn("Image load failed", c.error),
|
|
2717
|
+
console.warn("Image load failed", c.error), d(c.error);
|
|
2680
2718
|
}), p.src = s, setTimeout(() => {
|
|
2681
|
-
b ||
|
|
2682
|
-
},
|
|
2719
|
+
b || d(new Error("Image load timed out"));
|
|
2720
|
+
}, a);
|
|
2683
2721
|
});
|
|
2684
2722
|
}
|
|
2685
2723
|
function o(s) {
|
|
@@ -2690,8 +2728,8 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2690
2728
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
2691
2729
|
}), r && (!i || i === 0.7041))
|
|
2692
2730
|
return n(r).then((s) => {
|
|
2693
|
-
const
|
|
2694
|
-
e.get("image") === r && (!
|
|
2731
|
+
const a = e.get("aspectRatio");
|
|
2732
|
+
e.get("image") === r && (!a || a === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
2695
2733
|
});
|
|
2696
2734
|
}
|
|
2697
2735
|
}, {
|
|
@@ -2762,7 +2800,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2762
2800
|
shouldReceiveBuilderProps: {
|
|
2763
2801
|
builderBlock: !0
|
|
2764
2802
|
}
|
|
2765
|
-
},
|
|
2803
|
+
}, gr = {
|
|
2766
2804
|
name: "PersonalizationContainer",
|
|
2767
2805
|
shouldReceiveBuilderProps: {
|
|
2768
2806
|
builderBlock: !0,
|
|
@@ -2798,9 +2836,9 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2798
2836
|
defaultValue: []
|
|
2799
2837
|
}]
|
|
2800
2838
|
}]
|
|
2801
|
-
},
|
|
2839
|
+
}, fe = y({
|
|
2802
2840
|
render() {
|
|
2803
|
-
return
|
|
2841
|
+
return ct("script", {
|
|
2804
2842
|
innerHTML: this.scriptStr,
|
|
2805
2843
|
"data-id": this.id,
|
|
2806
2844
|
nonce: this.nonce
|
|
@@ -2808,12 +2846,12 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2808
2846
|
},
|
|
2809
2847
|
name: "inlined-script",
|
|
2810
2848
|
props: ["scriptStr", "id", "nonce"]
|
|
2811
|
-
}),
|
|
2849
|
+
}), yr = y({
|
|
2812
2850
|
name: "builder-personalization-container",
|
|
2813
2851
|
components: {
|
|
2814
|
-
Blocks:
|
|
2815
|
-
InlinedStyles:
|
|
2816
|
-
InlinedScript:
|
|
2852
|
+
Blocks: z,
|
|
2853
|
+
InlinedStyles: he,
|
|
2854
|
+
InlinedScript: fe
|
|
2817
2855
|
},
|
|
2818
2856
|
props: [
|
|
2819
2857
|
"builderContext",
|
|
@@ -2826,45 +2864,45 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2826
2864
|
data() {
|
|
2827
2865
|
var e, t, n, o, r, i, s;
|
|
2828
2866
|
return {
|
|
2829
|
-
userAttributes:
|
|
2830
|
-
scriptStr:
|
|
2867
|
+
userAttributes: de.getUserAttributes(),
|
|
2868
|
+
scriptStr: or(
|
|
2831
2869
|
this.variants,
|
|
2832
2870
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2833
2871
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2834
2872
|
),
|
|
2835
|
-
updateVisibilityStylesScript:
|
|
2873
|
+
updateVisibilityStylesScript: rr(
|
|
2836
2874
|
this.variants,
|
|
2837
2875
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2838
2876
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2839
2877
|
),
|
|
2840
2878
|
unsubscribers: [],
|
|
2841
|
-
shouldRenderVariants:
|
|
2879
|
+
shouldRenderVariants: er(
|
|
2842
2880
|
this.variants,
|
|
2843
|
-
|
|
2881
|
+
G((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2844
2882
|
),
|
|
2845
2883
|
shouldResetVariants: !1,
|
|
2846
|
-
TARGET:
|
|
2847
|
-
DEFAULT_INDEX:
|
|
2848
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2884
|
+
TARGET: $,
|
|
2885
|
+
DEFAULT_INDEX: ae,
|
|
2886
|
+
SDKS_REQUIRING_RESET_APPROACH: Nt
|
|
2849
2887
|
};
|
|
2850
2888
|
},
|
|
2851
2889
|
mounted() {
|
|
2852
2890
|
var t;
|
|
2853
2891
|
this.shouldResetVariants = !0;
|
|
2854
|
-
const e =
|
|
2892
|
+
const e = de.subscribeOnUserAttributesChange(
|
|
2855
2893
|
(n) => {
|
|
2856
2894
|
this.userAttributes = n;
|
|
2857
2895
|
},
|
|
2858
2896
|
{
|
|
2859
|
-
fireImmediately:
|
|
2897
|
+
fireImmediately: $ === "qwik"
|
|
2860
2898
|
}
|
|
2861
2899
|
);
|
|
2862
|
-
if (!(A() ||
|
|
2900
|
+
if (!(A() || me())) {
|
|
2863
2901
|
const n = this.filteredVariants[0];
|
|
2864
2902
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
2865
2903
|
new CustomEvent("builder.variantLoaded", {
|
|
2866
2904
|
detail: {
|
|
2867
|
-
variant: n ||
|
|
2905
|
+
variant: n || ae,
|
|
2868
2906
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
2869
2907
|
},
|
|
2870
2908
|
bubbles: !0
|
|
@@ -2875,7 +2913,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2875
2913
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
2876
2914
|
new CustomEvent("builder.variantDisplayed", {
|
|
2877
2915
|
detail: {
|
|
2878
|
-
variant: n ||
|
|
2916
|
+
variant: n || ae,
|
|
2879
2917
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
2880
2918
|
},
|
|
2881
2919
|
bubbles: !0
|
|
@@ -2894,13 +2932,13 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2894
2932
|
return {
|
|
2895
2933
|
...N(this.attributes, "v-on:", !1),
|
|
2896
2934
|
...N(this.attributes, "v-on:", !0),
|
|
2897
|
-
[
|
|
2935
|
+
[H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
|
|
2898
2936
|
};
|
|
2899
2937
|
},
|
|
2900
2938
|
filteredVariants() {
|
|
2901
2939
|
return (this.variants || []).filter((e) => {
|
|
2902
2940
|
var t, n, o, r;
|
|
2903
|
-
return
|
|
2941
|
+
return Jo(
|
|
2904
2942
|
{
|
|
2905
2943
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
2906
2944
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -2915,7 +2953,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2915
2953
|
},
|
|
2916
2954
|
blocksToRender() {
|
|
2917
2955
|
var e;
|
|
2918
|
-
return
|
|
2956
|
+
return tr({
|
|
2919
2957
|
variants: this.variants,
|
|
2920
2958
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
2921
2959
|
isHydrated: this.shouldResetVariants,
|
|
@@ -2933,14 +2971,14 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
|
|
|
2933
2971
|
}
|
|
2934
2972
|
}
|
|
2935
2973
|
});
|
|
2936
|
-
function
|
|
2937
|
-
var
|
|
2938
|
-
const s =
|
|
2939
|
-
return
|
|
2940
|
-
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
2974
|
+
function Sr(e, t, n, o, r, i) {
|
|
2975
|
+
var d, p, b, c, m, f, g, P, D, V;
|
|
2976
|
+
const s = C("Blocks"), a = C("InlinedStyles"), l = C("InlinedScript");
|
|
2977
|
+
return u(), h("div", w({ ref: "rootRef" }, e.attrs), [
|
|
2978
|
+
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), S(s, {
|
|
2941
2979
|
key: 0,
|
|
2942
2980
|
blocks: e.blocksToRender.blocks,
|
|
2943
|
-
parent: (
|
|
2981
|
+
parent: (d = e.builderBlock) == null ? void 0 : d.id,
|
|
2944
2982
|
path: e.blocksToRender.path,
|
|
2945
2983
|
context: e.builderContext,
|
|
2946
2984
|
registeredComponents: e.builderComponents,
|
|
@@ -2948,77 +2986,77 @@ function tr(e, t, n, o, r, i) {
|
|
|
2948
2986
|
...(p = e.builderContext) == null ? void 0 : p.BlocksWrapperProps,
|
|
2949
2987
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
2950
2988
|
}
|
|
2951
|
-
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) :
|
|
2952
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
2953
|
-
e.shouldRenderVariants ? (
|
|
2954
|
-
|
|
2989
|
+
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : k("", !0),
|
|
2990
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(I, { key: 1 }, [
|
|
2991
|
+
e.shouldRenderVariants ? (u(), h(I, { key: 0 }, [
|
|
2992
|
+
E(a, {
|
|
2955
2993
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
2956
2994
|
styles: e.hideVariantsStyleString,
|
|
2957
2995
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
2958
2996
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
2959
|
-
|
|
2997
|
+
E(l, {
|
|
2960
2998
|
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
2961
2999
|
scriptStr: e.updateVisibilityStylesScript,
|
|
2962
3000
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
2963
3001
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
2964
|
-
(
|
|
2965
|
-
var
|
|
2966
|
-
return
|
|
2967
|
-
key: `${(
|
|
3002
|
+
(u(!0), h(I, null, x(e.variants, (q, T) => {
|
|
3003
|
+
var j, J, _, O;
|
|
3004
|
+
return u(), S(s, {
|
|
3005
|
+
key: `${(j = e.builderBlock) == null ? void 0 : j.id}-${T}`,
|
|
2968
3006
|
BlocksWrapperProps: {
|
|
2969
|
-
...(
|
|
3007
|
+
...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
|
|
2970
3008
|
"aria-hidden": !0,
|
|
2971
3009
|
hidden: !0,
|
|
2972
|
-
"data-variant-id": `${(
|
|
3010
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${T}`
|
|
2973
3011
|
},
|
|
2974
3012
|
blocks: q.blocks,
|
|
2975
|
-
parent: (
|
|
2976
|
-
path: `component.options.variants.${
|
|
3013
|
+
parent: (O = e.builderBlock) == null ? void 0 : O.id,
|
|
3014
|
+
path: `component.options.variants.${T}.blocks`,
|
|
2977
3015
|
context: e.builderContext,
|
|
2978
3016
|
registeredComponents: e.builderComponents
|
|
2979
3017
|
}, {
|
|
2980
|
-
default:
|
|
2981
|
-
var L,
|
|
3018
|
+
default: W(() => {
|
|
3019
|
+
var L, Fe;
|
|
2982
3020
|
return [
|
|
2983
|
-
|
|
3021
|
+
E(l, {
|
|
2984
3022
|
nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
|
|
2985
3023
|
scriptStr: e.scriptStr,
|
|
2986
|
-
id: `variants-script-${(
|
|
3024
|
+
id: `variants-script-${(Fe = e.builderBlock) == null ? void 0 : Fe.id}-${T}`
|
|
2987
3025
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
2988
3026
|
];
|
|
2989
3027
|
}),
|
|
2990
3028
|
_: 2
|
|
2991
3029
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
2992
3030
|
}), 128))
|
|
2993
|
-
], 64)) :
|
|
2994
|
-
|
|
3031
|
+
], 64)) : k("", !0),
|
|
3032
|
+
E(s, {
|
|
2995
3033
|
blocks: e.blocksToRender.blocks,
|
|
2996
3034
|
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
2997
3035
|
path: e.blocksToRender.path,
|
|
2998
3036
|
context: e.builderContext,
|
|
2999
3037
|
registeredComponents: e.builderComponents,
|
|
3000
3038
|
BlocksWrapperProps: {
|
|
3001
|
-
...(
|
|
3002
|
-
"data-variant-id": `${(
|
|
3039
|
+
...(D = e.builderContext) == null ? void 0 : D.BlocksWrapperProps,
|
|
3040
|
+
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3003
3041
|
}
|
|
3004
3042
|
}, {
|
|
3005
|
-
default:
|
|
3006
|
-
var q,
|
|
3043
|
+
default: W(() => {
|
|
3044
|
+
var q, T;
|
|
3007
3045
|
return [
|
|
3008
|
-
e.shouldRenderVariants ? (
|
|
3046
|
+
e.shouldRenderVariants ? (u(), S(l, {
|
|
3009
3047
|
key: 0,
|
|
3010
3048
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
3011
3049
|
scriptStr: e.scriptStr,
|
|
3012
|
-
id: `variants-script-${(
|
|
3013
|
-
}, null, 8, ["nonce", "scriptStr", "id"])) :
|
|
3050
|
+
id: `variants-script-${(T = e.builderBlock) == null ? void 0 : T.id}-${e.DEFAULT_INDEX}`
|
|
3051
|
+
}, null, 8, ["nonce", "scriptStr", "id"])) : k("", !0)
|
|
3014
3052
|
];
|
|
3015
3053
|
}),
|
|
3016
3054
|
_: 1
|
|
3017
3055
|
}, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])
|
|
3018
|
-
], 64)) :
|
|
3056
|
+
], 64)) : k("", !0)
|
|
3019
3057
|
], 16);
|
|
3020
3058
|
}
|
|
3021
|
-
const
|
|
3059
|
+
const kr = /* @__PURE__ */ v(yr, [["render", Sr]]), vr = {
|
|
3022
3060
|
name: "Core:Section",
|
|
3023
3061
|
static: !0,
|
|
3024
3062
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3057,7 +3095,7 @@ const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
|
|
|
3057
3095
|
}
|
|
3058
3096
|
}
|
|
3059
3097
|
}]
|
|
3060
|
-
},
|
|
3098
|
+
}, Cr = {
|
|
3061
3099
|
name: "Slot",
|
|
3062
3100
|
isRSC: !0,
|
|
3063
3101
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3074,32 +3112,32 @@ const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
|
|
|
3074
3112
|
builderContext: !0,
|
|
3075
3113
|
builderComponents: !0
|
|
3076
3114
|
}
|
|
3077
|
-
},
|
|
3115
|
+
}, Tr = y({
|
|
3078
3116
|
name: "builder-slot",
|
|
3079
|
-
components: { Blocks:
|
|
3117
|
+
components: { Blocks: z },
|
|
3080
3118
|
props: ["builderContext", "name", "builderComponents"]
|
|
3081
3119
|
});
|
|
3082
|
-
function
|
|
3083
|
-
var
|
|
3084
|
-
const s =
|
|
3085
|
-
return
|
|
3120
|
+
function Ir(e, t, n, o, r, i) {
|
|
3121
|
+
var a, l, d;
|
|
3122
|
+
const s = C("Blocks");
|
|
3123
|
+
return u(), h("div", w(
|
|
3086
3124
|
{ style: {
|
|
3087
3125
|
pointerEvents: "auto"
|
|
3088
3126
|
} },
|
|
3089
|
-
!((
|
|
3127
|
+
!((a = e.builderContext.context) != null && a.symbolId) && {
|
|
3090
3128
|
"builder-slot": e.name
|
|
3091
3129
|
}
|
|
3092
3130
|
), [
|
|
3093
|
-
|
|
3094
|
-
parent: (
|
|
3131
|
+
E(s, {
|
|
3132
|
+
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
3095
3133
|
path: `symbol.data.${e.name}`,
|
|
3096
3134
|
context: e.builderContext,
|
|
3097
3135
|
registeredComponents: e.builderComponents,
|
|
3098
|
-
blocks: (
|
|
3136
|
+
blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
|
|
3099
3137
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3100
3138
|
], 16);
|
|
3101
3139
|
}
|
|
3102
|
-
const
|
|
3140
|
+
const wr = /* @__PURE__ */ v(Tr, [["render", Ir]]), $r = {
|
|
3103
3141
|
name: "Symbol",
|
|
3104
3142
|
noWrap: !0,
|
|
3105
3143
|
static: !0,
|
|
@@ -3138,7 +3176,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3138
3176
|
builderComponents: !0,
|
|
3139
3177
|
builderLinkComponent: !0
|
|
3140
3178
|
}
|
|
3141
|
-
},
|
|
3179
|
+
}, ye = {
|
|
3142
3180
|
"@type": "@builder.io/sdk:Element",
|
|
3143
3181
|
responsiveStyles: {
|
|
3144
3182
|
large: {
|
|
@@ -3160,7 +3198,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3160
3198
|
text: "New tab"
|
|
3161
3199
|
}
|
|
3162
3200
|
}
|
|
3163
|
-
},
|
|
3201
|
+
}, Se = {
|
|
3164
3202
|
"@type": "@builder.io/sdk:Element",
|
|
3165
3203
|
responsiveStyles: {
|
|
3166
3204
|
large: {
|
|
@@ -3176,7 +3214,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3176
3214
|
text: "New tab content "
|
|
3177
3215
|
}
|
|
3178
3216
|
}
|
|
3179
|
-
},
|
|
3217
|
+
}, Rr = {
|
|
3180
3218
|
name: "Builder: Tabs",
|
|
3181
3219
|
inputs: [{
|
|
3182
3220
|
name: "tabs",
|
|
@@ -3186,16 +3224,16 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3186
3224
|
name: "label",
|
|
3187
3225
|
type: "uiBlocks",
|
|
3188
3226
|
hideFromUI: !0,
|
|
3189
|
-
defaultValue: [
|
|
3227
|
+
defaultValue: [ye]
|
|
3190
3228
|
}, {
|
|
3191
3229
|
name: "content",
|
|
3192
3230
|
type: "uiBlocks",
|
|
3193
3231
|
hideFromUI: !0,
|
|
3194
|
-
defaultValue: [
|
|
3232
|
+
defaultValue: [Se]
|
|
3195
3233
|
}],
|
|
3196
3234
|
defaultValue: [{
|
|
3197
3235
|
label: [{
|
|
3198
|
-
...
|
|
3236
|
+
...ye,
|
|
3199
3237
|
component: {
|
|
3200
3238
|
name: "Text",
|
|
3201
3239
|
options: {
|
|
@@ -3204,7 +3242,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3204
3242
|
}
|
|
3205
3243
|
}],
|
|
3206
3244
|
content: [{
|
|
3207
|
-
...
|
|
3245
|
+
...Se,
|
|
3208
3246
|
component: {
|
|
3209
3247
|
name: "Text",
|
|
3210
3248
|
options: {
|
|
@@ -3214,7 +3252,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3214
3252
|
}]
|
|
3215
3253
|
}, {
|
|
3216
3254
|
label: [{
|
|
3217
|
-
...
|
|
3255
|
+
...ye,
|
|
3218
3256
|
component: {
|
|
3219
3257
|
name: "Text",
|
|
3220
3258
|
options: {
|
|
@@ -3223,7 +3261,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3223
3261
|
}
|
|
3224
3262
|
}],
|
|
3225
3263
|
content: [{
|
|
3226
|
-
...
|
|
3264
|
+
...Se,
|
|
3227
3265
|
component: {
|
|
3228
3266
|
name: "Text",
|
|
3229
3267
|
options: {
|
|
@@ -3279,9 +3317,9 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3279
3317
|
builderComponents: !0,
|
|
3280
3318
|
builderLinkComponent: !0
|
|
3281
3319
|
}
|
|
3282
|
-
},
|
|
3320
|
+
}, Er = y({
|
|
3283
3321
|
name: "builder-tabs",
|
|
3284
|
-
components: { Blocks:
|
|
3322
|
+
components: { Blocks: z },
|
|
3285
3323
|
props: [
|
|
3286
3324
|
"defaultActiveTab",
|
|
3287
3325
|
"tabs",
|
|
@@ -3307,37 +3345,37 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
|
|
|
3307
3345
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3308
3346
|
}
|
|
3309
3347
|
}
|
|
3310
|
-
}),
|
|
3311
|
-
function
|
|
3312
|
-
const s =
|
|
3313
|
-
return
|
|
3348
|
+
}), Pr = ["onClick"], Ar = { key: 0 };
|
|
3349
|
+
function Br(e, t, n, o, r, i) {
|
|
3350
|
+
const s = C("Blocks");
|
|
3351
|
+
return u(), h("div", null, [
|
|
3314
3352
|
K("div", {
|
|
3315
3353
|
class: "builder-tabs-wrap",
|
|
3316
|
-
style:
|
|
3354
|
+
style: M({
|
|
3317
3355
|
display: "flex",
|
|
3318
3356
|
flexDirection: "row",
|
|
3319
3357
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
3320
3358
|
overflow: "auto"
|
|
3321
3359
|
})
|
|
3322
3360
|
}, [
|
|
3323
|
-
(
|
|
3324
|
-
key:
|
|
3325
|
-
class:
|
|
3326
|
-
style:
|
|
3327
|
-
onClick: async (
|
|
3361
|
+
(u(!0), h(I, null, x(e.tabs, (a, l) => (u(), h("span", {
|
|
3362
|
+
key: l,
|
|
3363
|
+
class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
|
|
3364
|
+
style: M(e.getTabStyle(l)),
|
|
3365
|
+
onClick: async (d) => e.onClick(l)
|
|
3328
3366
|
}, [
|
|
3329
|
-
|
|
3367
|
+
E(s, {
|
|
3330
3368
|
parent: e.builderBlock.id,
|
|
3331
|
-
path: `tabs.${
|
|
3332
|
-
blocks:
|
|
3369
|
+
path: `tabs.${l}.label`,
|
|
3370
|
+
blocks: a.label,
|
|
3333
3371
|
context: e.builderContext,
|
|
3334
3372
|
registeredComponents: e.builderComponents,
|
|
3335
3373
|
linkComponent: e.builderLinkComponent
|
|
3336
3374
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3337
|
-
], 14,
|
|
3375
|
+
], 14, Pr))), 128))
|
|
3338
3376
|
], 4),
|
|
3339
|
-
e.activeTabContent(e.activeTab) ? (
|
|
3340
|
-
|
|
3377
|
+
e.activeTabContent(e.activeTab) ? (u(), h("div", Ar, [
|
|
3378
|
+
E(s, {
|
|
3341
3379
|
parent: e.builderBlock.id,
|
|
3342
3380
|
path: `tabs.${e.activeTab}.content`,
|
|
3343
3381
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -3345,10 +3383,10 @@ function mr(e, t, n, o, r, i) {
|
|
|
3345
3383
|
registeredComponents: e.builderComponents,
|
|
3346
3384
|
linkComponent: e.builderLinkComponent
|
|
3347
3385
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3348
|
-
])) :
|
|
3386
|
+
])) : k("", !0)
|
|
3349
3387
|
]);
|
|
3350
3388
|
}
|
|
3351
|
-
const
|
|
3389
|
+
const Vr = /* @__PURE__ */ v(Er, [["render", Br]]), Nr = {
|
|
3352
3390
|
shouldReceiveBuilderProps: {},
|
|
3353
3391
|
name: "Text",
|
|
3354
3392
|
static: !0,
|
|
@@ -3366,21 +3404,21 @@ const hr = /* @__PURE__ */ v(dr, [["render", mr]]), fr = {
|
|
|
3366
3404
|
height: "auto",
|
|
3367
3405
|
textAlign: "center"
|
|
3368
3406
|
}
|
|
3369
|
-
},
|
|
3407
|
+
}, Or = y({
|
|
3370
3408
|
name: "builder-text",
|
|
3371
3409
|
props: ["text"]
|
|
3372
|
-
}),
|
|
3373
|
-
function
|
|
3410
|
+
}), Wr = ["innerHTML"];
|
|
3411
|
+
function Dr(e, t, n, o, r, i) {
|
|
3374
3412
|
var s;
|
|
3375
|
-
return
|
|
3413
|
+
return u(), h("div", {
|
|
3376
3414
|
class: "builder-text",
|
|
3377
3415
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
3378
3416
|
style: {
|
|
3379
3417
|
outline: "none"
|
|
3380
3418
|
}
|
|
3381
|
-
}, null, 8,
|
|
3419
|
+
}, null, 8, Wr);
|
|
3382
3420
|
}
|
|
3383
|
-
const
|
|
3421
|
+
const Ur = /* @__PURE__ */ v(Or, [["render", Dr]]), xr = {
|
|
3384
3422
|
name: "Custom Code",
|
|
3385
3423
|
static: !0,
|
|
3386
3424
|
requiredPermissions: ["editCode"],
|
|
@@ -3402,7 +3440,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3402
3440
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3403
3441
|
advanced: !0
|
|
3404
3442
|
}]
|
|
3405
|
-
},
|
|
3443
|
+
}, Fr = y({
|
|
3406
3444
|
name: "builder-custom-code",
|
|
3407
3445
|
props: ["code", "replaceNodes"],
|
|
3408
3446
|
data() {
|
|
@@ -3461,15 +3499,15 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3461
3499
|
}
|
|
3462
3500
|
}
|
|
3463
3501
|
}
|
|
3464
|
-
}),
|
|
3465
|
-
function
|
|
3466
|
-
return
|
|
3502
|
+
}), Lr = ["innerHTML"];
|
|
3503
|
+
function Mr(e, t, n, o, r, i) {
|
|
3504
|
+
return u(), h("div", {
|
|
3467
3505
|
ref: "elementRef",
|
|
3468
|
-
class:
|
|
3506
|
+
class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3469
3507
|
innerHTML: e.code
|
|
3470
|
-
}, null, 10,
|
|
3508
|
+
}, null, 10, Lr);
|
|
3471
3509
|
}
|
|
3472
|
-
const
|
|
3510
|
+
const Hr = /* @__PURE__ */ v(Fr, [["render", Mr]]), jr = {
|
|
3473
3511
|
name: "Embed",
|
|
3474
3512
|
static: !0,
|
|
3475
3513
|
inputs: [{
|
|
@@ -3484,7 +3522,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3484
3522
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3485
3523
|
hideFromUI: !0
|
|
3486
3524
|
}]
|
|
3487
|
-
},
|
|
3525
|
+
}, zr = ["text/javascript", "application/javascript", "application/ecmascript"], qr = (e) => zr.includes(e.type), Kr = y({
|
|
3488
3526
|
name: "builder-embed",
|
|
3489
3527
|
props: ["content"],
|
|
3490
3528
|
data() {
|
|
@@ -3517,7 +3555,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3517
3555
|
this.scriptsInserted.push(n.src);
|
|
3518
3556
|
const o = document.createElement("script");
|
|
3519
3557
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3520
|
-
} else if (
|
|
3558
|
+
} else if (qr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3521
3559
|
try {
|
|
3522
3560
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3523
3561
|
} catch (o) {
|
|
@@ -3526,15 +3564,15 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
|
|
|
3526
3564
|
}
|
|
3527
3565
|
}
|
|
3528
3566
|
}
|
|
3529
|
-
}),
|
|
3530
|
-
function
|
|
3531
|
-
return
|
|
3567
|
+
}), Gr = ["innerHTML"];
|
|
3568
|
+
function Jr(e, t, n, o, r, i) {
|
|
3569
|
+
return u(), h("div", {
|
|
3532
3570
|
class: "builder-embed",
|
|
3533
3571
|
ref: "elem",
|
|
3534
3572
|
innerHTML: e.content
|
|
3535
|
-
}, null, 8,
|
|
3573
|
+
}, null, 8, Gr);
|
|
3536
3574
|
}
|
|
3537
|
-
const
|
|
3575
|
+
const _r = /* @__PURE__ */ v(Kr, [["render", Jr]]), Qr = {
|
|
3538
3576
|
name: "Form:Form",
|
|
3539
3577
|
// editableTags: ['builder-form-error']
|
|
3540
3578
|
defaults: {
|
|
@@ -3771,12 +3809,12 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3771
3809
|
builderComponents: !0,
|
|
3772
3810
|
builderLinkComponent: !0
|
|
3773
3811
|
}
|
|
3774
|
-
},
|
|
3812
|
+
}, Yr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xr = () => {
|
|
3775
3813
|
const e = process.env.NODE_ENV || "production";
|
|
3776
|
-
return
|
|
3777
|
-
},
|
|
3814
|
+
return Yr.includes(e) ? e : "production";
|
|
3815
|
+
}, Zr = y({
|
|
3778
3816
|
name: "builder-form-component",
|
|
3779
|
-
components: { Blocks:
|
|
3817
|
+
components: { Blocks: z },
|
|
3780
3818
|
props: [
|
|
3781
3819
|
"builderContext",
|
|
3782
3820
|
"previewState",
|
|
@@ -3833,7 +3871,7 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3833
3871
|
e.preventDefault();
|
|
3834
3872
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3835
3873
|
let i;
|
|
3836
|
-
const s = new FormData(o),
|
|
3874
|
+
const s = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
|
|
3837
3875
|
(c) => !!c.name && (c.type !== "radio" || c.checked)
|
|
3838
3876
|
).map((c) => {
|
|
3839
3877
|
let m;
|
|
@@ -3859,24 +3897,24 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3859
3897
|
value: m
|
|
3860
3898
|
};
|
|
3861
3899
|
});
|
|
3862
|
-
let
|
|
3863
|
-
if (this.sendSubmissionsTo === "email" && (
|
|
3864
|
-
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (
|
|
3865
|
-
}),
|
|
3900
|
+
let l = this.contentType;
|
|
3901
|
+
if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
|
|
3902
|
+
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
|
|
3903
|
+
}), l !== "application/json")
|
|
3866
3904
|
i = s;
|
|
3867
3905
|
else {
|
|
3868
3906
|
const c = {};
|
|
3869
|
-
Array.from(
|
|
3870
|
-
|
|
3907
|
+
Array.from(a).forEach(({ value: m, key: f }) => {
|
|
3908
|
+
Yt(c, f, m);
|
|
3871
3909
|
}), i = JSON.stringify(c);
|
|
3872
3910
|
}
|
|
3873
|
-
|
|
3874
|
-
const
|
|
3911
|
+
l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
|
|
3912
|
+
const d = new CustomEvent("presubmit", {
|
|
3875
3913
|
detail: {
|
|
3876
3914
|
body: i
|
|
3877
3915
|
}
|
|
3878
3916
|
});
|
|
3879
|
-
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
3917
|
+
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
|
|
3880
3918
|
return;
|
|
3881
3919
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
3882
3920
|
const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
@@ -3885,10 +3923,10 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3885
3923
|
});
|
|
3886
3924
|
return;
|
|
3887
3925
|
}
|
|
3888
|
-
const p = `${
|
|
3926
|
+
const p = `${Xr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3889
3927
|
this.sendSubmissionsToEmail || ""
|
|
3890
3928
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
3891
|
-
|
|
3929
|
+
mt(b), fetch(b, {
|
|
3892
3930
|
body: i,
|
|
3893
3931
|
headers: r,
|
|
3894
3932
|
method: this.method || "post"
|
|
@@ -3898,43 +3936,43 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3898
3936
|
let m;
|
|
3899
3937
|
const f = c.headers.get("content-type");
|
|
3900
3938
|
if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
3901
|
-
const
|
|
3939
|
+
const D = new CustomEvent("submit:error", {
|
|
3902
3940
|
detail: {
|
|
3903
3941
|
error: m,
|
|
3904
3942
|
status: c.status
|
|
3905
3943
|
}
|
|
3906
3944
|
});
|
|
3907
3945
|
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
3908
|
-
|
|
3909
|
-
),
|
|
3946
|
+
D
|
|
3947
|
+
), D.defaultPrevented))
|
|
3910
3948
|
return;
|
|
3911
3949
|
this.responseData = m, this.formState = "error";
|
|
3912
|
-
let
|
|
3913
|
-
typeof
|
|
3914
|
-
formErrorMessage:
|
|
3950
|
+
let V = this.errorMessagePath ? ft(m, this.errorMessagePath) : m.message || m.error || m;
|
|
3951
|
+
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
3952
|
+
formErrorMessage: V
|
|
3915
3953
|
});
|
|
3916
3954
|
return;
|
|
3917
3955
|
}
|
|
3918
3956
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
3919
|
-
const
|
|
3957
|
+
const D = new CustomEvent("submit:success", {
|
|
3920
3958
|
detail: {
|
|
3921
3959
|
res: c,
|
|
3922
3960
|
body: m
|
|
3923
3961
|
}
|
|
3924
3962
|
});
|
|
3925
3963
|
if (this.$refs.formRef) {
|
|
3926
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
3964
|
+
if (this.$refs.formRef.dispatchEvent(D), D.defaultPrevented)
|
|
3927
3965
|
return;
|
|
3928
3966
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
3929
3967
|
}
|
|
3930
3968
|
if (this.successUrl)
|
|
3931
3969
|
if (this.$refs.formRef) {
|
|
3932
|
-
const
|
|
3970
|
+
const V = new CustomEvent("route", {
|
|
3933
3971
|
detail: {
|
|
3934
3972
|
url: this.successUrl
|
|
3935
3973
|
}
|
|
3936
3974
|
});
|
|
3937
|
-
this.$refs.formRef.dispatchEvent(
|
|
3975
|
+
this.$refs.formRef.dispatchEvent(V), V.defaultPrevented || (location.href = this.successUrl);
|
|
3938
3976
|
} else
|
|
3939
3977
|
location.href = this.successUrl;
|
|
3940
3978
|
}
|
|
@@ -3951,43 +3989,43 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3951
3989
|
}
|
|
3952
3990
|
}
|
|
3953
3991
|
}
|
|
3954
|
-
}),
|
|
3992
|
+
}), ei = ["validate", "action", "method", "name"], ti = {
|
|
3955
3993
|
key: 2,
|
|
3956
|
-
class: "builder-form-error-text pre-
|
|
3994
|
+
class: "builder-form-error-text pre-7fq9d0i380"
|
|
3957
3995
|
};
|
|
3958
|
-
function
|
|
3959
|
-
const s =
|
|
3960
|
-
return
|
|
3996
|
+
function ni(e, t, n, o, r, i) {
|
|
3997
|
+
const s = C("Blocks");
|
|
3998
|
+
return u(), h("form", w({
|
|
3961
3999
|
validate: e.validate,
|
|
3962
4000
|
ref: "formRef",
|
|
3963
4001
|
action: !e.sendWithJs && e.action,
|
|
3964
4002
|
method: e.method,
|
|
3965
4003
|
name: e.name,
|
|
3966
|
-
onSubmit: t[0] || (t[0] = async (
|
|
4004
|
+
onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
|
|
3967
4005
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3968
|
-
|
|
3969
|
-
e.submissionState() === "error" ? (
|
|
4006
|
+
B(e.$slots, "default", {}, void 0, !0),
|
|
4007
|
+
e.submissionState() === "error" ? (u(), S(s, {
|
|
3970
4008
|
key: 0,
|
|
3971
4009
|
path: "errorMessage",
|
|
3972
4010
|
blocks: e.errorMessage,
|
|
3973
4011
|
context: e.builderContext
|
|
3974
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3975
|
-
e.submissionState() === "sending" ? (
|
|
4012
|
+
}, null, 8, ["blocks", "context"])) : k("", !0),
|
|
4013
|
+
e.submissionState() === "sending" ? (u(), S(s, {
|
|
3976
4014
|
key: 1,
|
|
3977
4015
|
path: "sendingMessage",
|
|
3978
4016
|
blocks: e.sendingMessage,
|
|
3979
4017
|
context: e.builderContext
|
|
3980
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3981
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
3982
|
-
e.submissionState() === "success" ? (
|
|
4018
|
+
}, null, 8, ["blocks", "context"])) : k("", !0),
|
|
4019
|
+
e.submissionState() === "error" && e.responseData ? (u(), h("pre", ti, pe(e.errorResponse(e.responseData)), 1)) : k("", !0),
|
|
4020
|
+
e.submissionState() === "success" ? (u(), S(s, {
|
|
3983
4021
|
key: 3,
|
|
3984
4022
|
path: "successMessage",
|
|
3985
4023
|
blocks: e.successMessage,
|
|
3986
4024
|
context: e.builderContext
|
|
3987
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3988
|
-
], 16,
|
|
4025
|
+
}, null, 8, ["blocks", "context"])) : k("", !0)
|
|
4026
|
+
], 16, ei);
|
|
3989
4027
|
}
|
|
3990
|
-
const
|
|
4028
|
+
const oi = /* @__PURE__ */ v(Zr, [["render", ni], ["__scopeId", "data-v-d1f88a0c"]]), ri = {
|
|
3991
4029
|
name: "Form:Input",
|
|
3992
4030
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3993
4031
|
inputs: [
|
|
@@ -4038,7 +4076,7 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c
|
|
|
4038
4076
|
borderStyle: "solid",
|
|
4039
4077
|
borderColor: "#ccc"
|
|
4040
4078
|
}
|
|
4041
|
-
},
|
|
4079
|
+
}, ii = y({
|
|
4042
4080
|
name: "builder-form-input-component",
|
|
4043
4081
|
props: [
|
|
4044
4082
|
"attributes",
|
|
@@ -4052,9 +4090,9 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c
|
|
|
4052
4090
|
data() {
|
|
4053
4091
|
return { isEditing: A, filterAttrs: N };
|
|
4054
4092
|
}
|
|
4055
|
-
}),
|
|
4056
|
-
function
|
|
4057
|
-
return
|
|
4093
|
+
}), si = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4094
|
+
function ai(e, t, n, o, r, i) {
|
|
4095
|
+
return u(), h("input", w({
|
|
4058
4096
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4059
4097
|
placeholder: e.placeholder,
|
|
4060
4098
|
type: e.type,
|
|
@@ -4062,9 +4100,9 @@ function zr(e, t, n, o, r, i) {
|
|
|
4062
4100
|
value: e.value,
|
|
4063
4101
|
defaultValue: e.defaultValue,
|
|
4064
4102
|
required: e.required
|
|
4065
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4103
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, si);
|
|
4066
4104
|
}
|
|
4067
|
-
const
|
|
4105
|
+
const li = /* @__PURE__ */ v(ii, [["render", ai]]), ci = {
|
|
4068
4106
|
name: "Form:Select",
|
|
4069
4107
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4070
4108
|
defaultStyles: {
|
|
@@ -4106,28 +4144,28 @@ const jr = /* @__PURE__ */ v(Hr, [["render", zr]]), qr = {
|
|
|
4106
4144
|
}],
|
|
4107
4145
|
static: !0,
|
|
4108
4146
|
noWrap: !0
|
|
4109
|
-
},
|
|
4147
|
+
}, di = y({
|
|
4110
4148
|
name: "builder-select-component",
|
|
4111
4149
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4112
4150
|
data() {
|
|
4113
4151
|
return { isEditing: A, filterAttrs: N };
|
|
4114
4152
|
}
|
|
4115
|
-
}),
|
|
4116
|
-
function
|
|
4117
|
-
return
|
|
4153
|
+
}), ui = ["value", "defaultValue", "name", "required"], pi = ["value"];
|
|
4154
|
+
function mi(e, t, n, o, r, i) {
|
|
4155
|
+
return u(), h("select", w({
|
|
4118
4156
|
value: e.value,
|
|
4119
4157
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4120
4158
|
defaultValue: e.defaultValue,
|
|
4121
4159
|
name: e.name,
|
|
4122
4160
|
required: e.required
|
|
4123
4161
|
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4124
|
-
(
|
|
4125
|
-
key: `${s.name}-${
|
|
4162
|
+
(u(!0), h(I, null, x(e.options, (s, a) => (u(), h("option", {
|
|
4163
|
+
key: `${s.name}-${a}`,
|
|
4126
4164
|
value: s.value
|
|
4127
|
-
},
|
|
4128
|
-
], 16,
|
|
4165
|
+
}, pe(s.name || s.value), 9, pi))), 128))
|
|
4166
|
+
], 16, ui);
|
|
4129
4167
|
}
|
|
4130
|
-
const
|
|
4168
|
+
const hi = /* @__PURE__ */ v(di, [["render", mi]]), fi = {
|
|
4131
4169
|
name: "Form:SubmitButton",
|
|
4132
4170
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4133
4171
|
defaultStyles: {
|
|
@@ -4152,17 +4190,17 @@ const Yr = /* @__PURE__ */ v(Kr, [["render", Qr]]), _r = {
|
|
|
4152
4190
|
// that only shows if advanced setting is flipped
|
|
4153
4191
|
// TODO: defaultChildren
|
|
4154
4192
|
// canHaveChildren: true,
|
|
4155
|
-
},
|
|
4193
|
+
}, bi = y({
|
|
4156
4194
|
name: "builder-submit-button",
|
|
4157
4195
|
props: ["attributes", "text"],
|
|
4158
4196
|
data() {
|
|
4159
4197
|
return { filterAttrs: N };
|
|
4160
4198
|
}
|
|
4161
4199
|
});
|
|
4162
|
-
function
|
|
4163
|
-
return
|
|
4200
|
+
function gi(e, t, n, o, r, i) {
|
|
4201
|
+
return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
|
|
4164
4202
|
}
|
|
4165
|
-
const
|
|
4203
|
+
const yi = /* @__PURE__ */ v(bi, [["render", gi]]), Si = {
|
|
4166
4204
|
name: "Form:TextArea",
|
|
4167
4205
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4168
4206
|
inputs: [{
|
|
@@ -4198,7 +4236,7 @@ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
|
|
|
4198
4236
|
},
|
|
4199
4237
|
static: !0,
|
|
4200
4238
|
noWrap: !0
|
|
4201
|
-
},
|
|
4239
|
+
}, ki = y({
|
|
4202
4240
|
name: "builder-textarea",
|
|
4203
4241
|
props: [
|
|
4204
4242
|
"attributes",
|
|
@@ -4211,17 +4249,17 @@ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
|
|
|
4211
4249
|
data() {
|
|
4212
4250
|
return { filterAttrs: N };
|
|
4213
4251
|
}
|
|
4214
|
-
}),
|
|
4215
|
-
function
|
|
4216
|
-
return
|
|
4252
|
+
}), vi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4253
|
+
function Ci(e, t, n, o, r, i) {
|
|
4254
|
+
return u(), h("textarea", w({
|
|
4217
4255
|
placeholder: e.placeholder,
|
|
4218
4256
|
name: e.name,
|
|
4219
4257
|
value: e.value,
|
|
4220
4258
|
defaultValue: e.defaultValue,
|
|
4221
4259
|
required: e.required
|
|
4222
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4260
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, vi);
|
|
4223
4261
|
}
|
|
4224
|
-
const
|
|
4262
|
+
const Ti = /* @__PURE__ */ v(ki, [["render", Ci]]), Ii = {
|
|
4225
4263
|
name: "Raw:Img",
|
|
4226
4264
|
hideFromInsertMenu: !0,
|
|
4227
4265
|
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",
|
|
@@ -4229,7 +4267,7 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
|
4229
4267
|
name: "image",
|
|
4230
4268
|
bubble: !0,
|
|
4231
4269
|
type: "file",
|
|
4232
|
-
allowedFileTypes:
|
|
4270
|
+
allowedFileTypes: Ue,
|
|
4233
4271
|
required: !0
|
|
4234
4272
|
}, {
|
|
4235
4273
|
name: "backgroundSize",
|
|
@@ -4265,7 +4303,7 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
|
4265
4303
|
defaultValue: 0.7041
|
|
4266
4304
|
}],
|
|
4267
4305
|
noWrap: !0
|
|
4268
|
-
},
|
|
4306
|
+
}, wi = y({
|
|
4269
4307
|
name: "builder-img-component",
|
|
4270
4308
|
props: [
|
|
4271
4309
|
"imgSrc",
|
|
@@ -4284,21 +4322,21 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
|
|
|
4284
4322
|
srcSetToUse() {
|
|
4285
4323
|
const e = this.imgSrc || this.image;
|
|
4286
4324
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4287
|
-
return
|
|
4325
|
+
return se(e);
|
|
4288
4326
|
},
|
|
4289
4327
|
imgAttrs() {
|
|
4290
4328
|
const e = {
|
|
4291
4329
|
...N(this.attributes, "v-on:", !1),
|
|
4292
4330
|
...N(this.attributes, "v-on:", !0),
|
|
4293
|
-
[
|
|
4331
|
+
[H()]: `builder-raw-img ${this.attributes[H()] || ""}`
|
|
4294
4332
|
};
|
|
4295
4333
|
return delete e.style, e;
|
|
4296
4334
|
}
|
|
4297
4335
|
}
|
|
4298
|
-
}),
|
|
4299
|
-
function
|
|
4336
|
+
}), $i = ["alt", "title", "src"];
|
|
4337
|
+
function Ri(e, t, n, o, r, i) {
|
|
4300
4338
|
var s;
|
|
4301
|
-
return
|
|
4339
|
+
return u(), h("img", w({
|
|
4302
4340
|
loading: "lazy",
|
|
4303
4341
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4304
4342
|
alt: e.altText,
|
|
@@ -4310,9 +4348,9 @@ function ci(e, t, n, o, r, i) {
|
|
|
4310
4348
|
aspectRatio: e.aspectRatio || void 0,
|
|
4311
4349
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4312
4350
|
}
|
|
4313
|
-
}, e.imgAttrs), null, 16,
|
|
4351
|
+
}, e.imgAttrs), null, 16, $i);
|
|
4314
4352
|
}
|
|
4315
|
-
const
|
|
4353
|
+
const Ei = /* @__PURE__ */ v(wi, [["render", Ri]]), Pi = {
|
|
4316
4354
|
name: "Video",
|
|
4317
4355
|
canHaveChildren: !0,
|
|
4318
4356
|
defaultStyles: {
|
|
@@ -4323,14 +4361,14 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4323
4361
|
inputs: [{
|
|
4324
4362
|
name: "video",
|
|
4325
4363
|
type: "file",
|
|
4326
|
-
allowedFileTypes:
|
|
4364
|
+
allowedFileTypes: fr,
|
|
4327
4365
|
bubble: !0,
|
|
4328
4366
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4329
4367
|
required: !0
|
|
4330
4368
|
}, {
|
|
4331
4369
|
name: "posterImage",
|
|
4332
4370
|
type: "file",
|
|
4333
|
-
allowedFileTypes:
|
|
4371
|
+
allowedFileTypes: Ue,
|
|
4334
4372
|
helperText: "Image to show before the video plays"
|
|
4335
4373
|
}, {
|
|
4336
4374
|
name: "autoPlay",
|
|
@@ -4396,7 +4434,7 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4396
4434
|
shouldReceiveBuilderProps: {
|
|
4397
4435
|
builderBlock: !0
|
|
4398
4436
|
}
|
|
4399
|
-
},
|
|
4437
|
+
}, Ai = y({
|
|
4400
4438
|
name: "builder-video",
|
|
4401
4439
|
props: [
|
|
4402
4440
|
"lazyLoad",
|
|
@@ -4469,16 +4507,16 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4469
4507
|
};
|
|
4470
4508
|
}
|
|
4471
4509
|
}
|
|
4472
|
-
}),
|
|
4510
|
+
}), Bi = { style: {
|
|
4473
4511
|
position: "relative"
|
|
4474
|
-
} },
|
|
4512
|
+
} }, Vi = ["preload", "poster"], Ni = {
|
|
4475
4513
|
key: 1,
|
|
4476
4514
|
style: {
|
|
4477
4515
|
display: "flex",
|
|
4478
4516
|
flexDirection: "column",
|
|
4479
4517
|
alignItems: "stretch"
|
|
4480
4518
|
}
|
|
4481
|
-
},
|
|
4519
|
+
}, Oi = {
|
|
4482
4520
|
key: 2,
|
|
4483
4521
|
style: {
|
|
4484
4522
|
pointerEvents: "none",
|
|
@@ -4492,10 +4530,10 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
|
|
|
4492
4530
|
height: "100%"
|
|
4493
4531
|
}
|
|
4494
4532
|
};
|
|
4495
|
-
function
|
|
4496
|
-
var s,
|
|
4497
|
-
return
|
|
4498
|
-
K("video",
|
|
4533
|
+
function Wi(e, t, n, o, r, i) {
|
|
4534
|
+
var s, a, l, d, p, b, c;
|
|
4535
|
+
return u(), h("div", Bi, [
|
|
4536
|
+
K("video", w({
|
|
4499
4537
|
class: "builder-video",
|
|
4500
4538
|
ref: "videoRef",
|
|
4501
4539
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4514,7 +4552,7 @@ function gi(e, t, n, o, r, i) {
|
|
|
4514
4552
|
},
|
|
4515
4553
|
poster: e.posterImage
|
|
4516
4554
|
}, e.spreadProps), [
|
|
4517
|
-
K("source",
|
|
4555
|
+
K("source", w(
|
|
4518
4556
|
{ type: "video/mp4" },
|
|
4519
4557
|
e.lazyLoad ? {
|
|
4520
4558
|
"data-src": e.video
|
|
@@ -4522,85 +4560,87 @@ function gi(e, t, n, o, r, i) {
|
|
|
4522
4560
|
src: e.video
|
|
4523
4561
|
}
|
|
4524
4562
|
), null, 16)
|
|
4525
|
-
], 16,
|
|
4526
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
4563
|
+
], 16, Vi),
|
|
4564
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
|
|
4527
4565
|
key: 0,
|
|
4528
|
-
style:
|
|
4566
|
+
style: M({
|
|
4529
4567
|
width: "100%",
|
|
4530
4568
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4531
4569
|
pointerEvents: "none",
|
|
4532
4570
|
fontSize: "0px"
|
|
4533
4571
|
})
|
|
4534
|
-
}, null, 4)) :
|
|
4535
|
-
(p = (
|
|
4536
|
-
|
|
4537
|
-
])) :
|
|
4538
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (
|
|
4539
|
-
|
|
4540
|
-
])) :
|
|
4572
|
+
}, null, 4)) : k("", !0),
|
|
4573
|
+
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", Ni, [
|
|
4574
|
+
B(e.$slots, "default")
|
|
4575
|
+
])) : k("", !0),
|
|
4576
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", Oi, [
|
|
4577
|
+
B(e.$slots, "default")
|
|
4578
|
+
])) : k("", !0)
|
|
4541
4579
|
]);
|
|
4542
4580
|
}
|
|
4543
|
-
const
|
|
4544
|
-
component:
|
|
4545
|
-
...
|
|
4581
|
+
const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), Ui = () => [{
|
|
4582
|
+
component: Hr,
|
|
4583
|
+
...xr
|
|
4546
4584
|
}, {
|
|
4547
|
-
component:
|
|
4548
|
-
...
|
|
4585
|
+
component: _r,
|
|
4586
|
+
...jr
|
|
4549
4587
|
}, {
|
|
4550
|
-
component:
|
|
4551
|
-
...
|
|
4588
|
+
component: oi,
|
|
4589
|
+
...Qr
|
|
4552
4590
|
}, {
|
|
4553
|
-
component:
|
|
4554
|
-
...
|
|
4591
|
+
component: li,
|
|
4592
|
+
...ri
|
|
4555
4593
|
}, {
|
|
4556
|
-
component:
|
|
4557
|
-
...
|
|
4594
|
+
component: yi,
|
|
4595
|
+
...fi
|
|
4558
4596
|
}, {
|
|
4559
|
-
component:
|
|
4560
|
-
...
|
|
4597
|
+
component: hi,
|
|
4598
|
+
...ci
|
|
4561
4599
|
}, {
|
|
4562
|
-
component:
|
|
4563
|
-
...
|
|
4600
|
+
component: Ti,
|
|
4601
|
+
...Si
|
|
4564
4602
|
}, {
|
|
4565
|
-
component:
|
|
4566
|
-
...
|
|
4603
|
+
component: Ei,
|
|
4604
|
+
...Ii
|
|
4567
4605
|
}, {
|
|
4568
|
-
component:
|
|
4569
|
-
...
|
|
4570
|
-
}]
|
|
4571
|
-
|
|
4572
|
-
|
|
4606
|
+
component: Di,
|
|
4607
|
+
...Pi
|
|
4608
|
+
}];
|
|
4609
|
+
let re;
|
|
4610
|
+
const rt = () => re || (re = [{
|
|
4611
|
+
component: sn,
|
|
4612
|
+
...pr
|
|
4573
4613
|
}, {
|
|
4574
|
-
component:
|
|
4575
|
-
...
|
|
4614
|
+
component: No,
|
|
4615
|
+
...mr
|
|
4576
4616
|
}, {
|
|
4577
|
-
component:
|
|
4578
|
-
...
|
|
4617
|
+
component: Do,
|
|
4618
|
+
...hr
|
|
4579
4619
|
}, {
|
|
4580
|
-
component:
|
|
4581
|
-
...
|
|
4620
|
+
component: zo,
|
|
4621
|
+
...br
|
|
4582
4622
|
}, {
|
|
4583
|
-
component:
|
|
4584
|
-
...
|
|
4623
|
+
component: Go,
|
|
4624
|
+
...vr
|
|
4585
4625
|
}, {
|
|
4586
|
-
component:
|
|
4587
|
-
...
|
|
4626
|
+
component: wr,
|
|
4627
|
+
...Cr
|
|
4588
4628
|
}, {
|
|
4589
|
-
component:
|
|
4590
|
-
|
|
4629
|
+
component: ws,
|
|
4630
|
+
...$r
|
|
4591
4631
|
}, {
|
|
4592
|
-
component:
|
|
4593
|
-
...
|
|
4594
|
-
}, ...
|
|
4595
|
-
component:
|
|
4596
|
-
...
|
|
4632
|
+
component: Ur,
|
|
4633
|
+
...Nr
|
|
4634
|
+
}, ...De.includes($) ? [{
|
|
4635
|
+
component: kr,
|
|
4636
|
+
...gr
|
|
4597
4637
|
}] : [], {
|
|
4598
|
-
component:
|
|
4599
|
-
...
|
|
4638
|
+
component: Vr,
|
|
4639
|
+
...Rr
|
|
4600
4640
|
}, {
|
|
4601
|
-
component:
|
|
4602
|
-
...
|
|
4603
|
-
}, ...
|
|
4641
|
+
component: ur,
|
|
4642
|
+
...sr
|
|
4643
|
+
}, ...Ui()], re), xi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4604
4644
|
function getAndSetVariantId() {
|
|
4605
4645
|
function setCookie(name, value, days) {
|
|
4606
4646
|
let expires = '';
|
|
@@ -4659,7 +4699,7 @@ const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
|
|
|
4659
4699
|
}).join('');
|
|
4660
4700
|
styleEl.innerHTML = newStyleStr;
|
|
4661
4701
|
}
|
|
4662
|
-
}`,
|
|
4702
|
+
}`, Fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4663
4703
|
if (!navigator.cookieEnabled) {
|
|
4664
4704
|
return;
|
|
4665
4705
|
}
|
|
@@ -4693,37 +4733,37 @@ const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
|
|
|
4693
4733
|
thisScriptEl?.remove();
|
|
4694
4734
|
}
|
|
4695
4735
|
return;
|
|
4696
|
-
}`,
|
|
4736
|
+
}`, Re = "builderIoAbTest", Ee = "builderIoRenderContent", Li = ["react", "vue", "svelte", "solid", "qwik"], le = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4697
4737
|
...t,
|
|
4698
4738
|
testVariationId: t.id,
|
|
4699
4739
|
id: e == null ? void 0 : e.id
|
|
4700
|
-
})),
|
|
4740
|
+
})), Mi = ({
|
|
4701
4741
|
canTrack: e,
|
|
4702
4742
|
content: t
|
|
4703
|
-
}) => !(!(
|
|
4743
|
+
}) => !(!(le(t).length > 0) || !e), Hi = (e) => e === "react" || e === "reactNative", ji = $ === "angular", xe = Hi($), Dt = () => `
|
|
4704
4744
|
(function() {
|
|
4705
|
-
if (!window.${
|
|
4706
|
-
window.${
|
|
4745
|
+
if (!window.${Re}) {
|
|
4746
|
+
window.${Re} = ${xi};
|
|
4707
4747
|
}
|
|
4708
|
-
if (!window.${
|
|
4709
|
-
window.${
|
|
4710
|
-
}${
|
|
4748
|
+
if (!window.${Ee}) {
|
|
4749
|
+
window.${Ee} = ${Fi};
|
|
4750
|
+
}${xe ? `
|
|
4711
4751
|
var thisScriptEl = document.currentScript;
|
|
4712
4752
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4713
4753
|
})();
|
|
4714
|
-
`,
|
|
4715
|
-
window.${
|
|
4716
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4717
|
-
)`,
|
|
4754
|
+
`, zi = (e, t) => `
|
|
4755
|
+
window.${Re}(
|
|
4756
|
+
"${t}",${JSON.stringify(e)}, ${xe}, ${ji}
|
|
4757
|
+
)`, qi = ({
|
|
4718
4758
|
contentId: e,
|
|
4719
4759
|
variationId: t
|
|
4720
|
-
}) => `window.${
|
|
4721
|
-
"${t}", "${e}", ${
|
|
4760
|
+
}) => `window.${Ee}(
|
|
4761
|
+
"${t}", "${e}", ${xe}
|
|
4722
4762
|
)`;
|
|
4723
|
-
function
|
|
4763
|
+
function it(e) {
|
|
4724
4764
|
return Math.round(e * 1e3) / 1e3;
|
|
4725
4765
|
}
|
|
4726
|
-
const
|
|
4766
|
+
const Ki = (e, t, n = !0) => {
|
|
4727
4767
|
if (!(e instanceof HTMLElement))
|
|
4728
4768
|
return null;
|
|
4729
4769
|
let o = n ? e : e.parentElement;
|
|
@@ -4734,35 +4774,35 @@ const Ei = (e, t, n = !0) => {
|
|
|
4734
4774
|
return o;
|
|
4735
4775
|
} while (o = o.parentElement);
|
|
4736
4776
|
return null;
|
|
4737
|
-
},
|
|
4777
|
+
}, Gi = (e) => Ki(e, (t) => {
|
|
4738
4778
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4739
4779
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4740
|
-
}),
|
|
4780
|
+
}), st = ({
|
|
4741
4781
|
event: e,
|
|
4742
4782
|
target: t
|
|
4743
4783
|
}) => {
|
|
4744
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4784
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = it(o / n.width), s = it(r / n.height);
|
|
4745
4785
|
return {
|
|
4746
4786
|
x: i,
|
|
4747
4787
|
y: s
|
|
4748
4788
|
};
|
|
4749
|
-
},
|
|
4750
|
-
const t = e.target, n = t &&
|
|
4789
|
+
}, Ji = (e) => {
|
|
4790
|
+
const t = e.target, n = t && Gi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4751
4791
|
return {
|
|
4752
4792
|
targetBuilderElement: o || void 0,
|
|
4753
4793
|
metadata: {
|
|
4754
|
-
targetOffset: t ?
|
|
4794
|
+
targetOffset: t ? st({
|
|
4755
4795
|
event: e,
|
|
4756
4796
|
target: t
|
|
4757
4797
|
}) : void 0,
|
|
4758
|
-
builderTargetOffset: n ?
|
|
4798
|
+
builderTargetOffset: n ? st({
|
|
4759
4799
|
event: e,
|
|
4760
4800
|
target: n
|
|
4761
4801
|
}) : void 0,
|
|
4762
4802
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4763
4803
|
}
|
|
4764
4804
|
};
|
|
4765
|
-
},
|
|
4805
|
+
}, _i = ["svelte", "qwik", "vue"], Qi = () => _i.includes($) && (A() || me()), Yi = (e) => {
|
|
4766
4806
|
var i;
|
|
4767
4807
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4768
4808
|
let r = "";
|
|
@@ -4777,27 +4817,27 @@ font-weight: 400;
|
|
|
4777
4817
|
for (const s in e.files) {
|
|
4778
4818
|
if (!(String(Number(s)) === s))
|
|
4779
4819
|
continue;
|
|
4780
|
-
const
|
|
4781
|
-
|
|
4820
|
+
const l = e.files[s];
|
|
4821
|
+
l && l !== o && (r += `
|
|
4782
4822
|
@font-face {
|
|
4783
4823
|
font-family: "${t}";
|
|
4784
|
-
src: url('${
|
|
4824
|
+
src: url('${l}') format('woff2');
|
|
4785
4825
|
font-display: fallback;
|
|
4786
4826
|
font-weight: ${s};
|
|
4787
4827
|
}
|
|
4788
4828
|
`.trim());
|
|
4789
4829
|
}
|
|
4790
4830
|
return r;
|
|
4791
|
-
},
|
|
4831
|
+
}, Xi = ({
|
|
4792
4832
|
customFonts: e
|
|
4793
4833
|
}) => {
|
|
4794
4834
|
var t;
|
|
4795
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4796
|
-
},
|
|
4835
|
+
return ((t = e == null ? void 0 : e.map((n) => Yi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4836
|
+
}, Zi = ({
|
|
4797
4837
|
cssCode: e,
|
|
4798
4838
|
contentId: t
|
|
4799
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4800
|
-
.builder-button {
|
|
4839
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", es = `
|
|
4840
|
+
:where(.builder-button) {
|
|
4801
4841
|
all: unset;
|
|
4802
4842
|
}
|
|
4803
4843
|
|
|
@@ -4813,9 +4853,9 @@ font-weight: ${s};
|
|
|
4813
4853
|
text-align: inherit;
|
|
4814
4854
|
font-family: inherit;
|
|
4815
4855
|
}
|
|
4816
|
-
`,
|
|
4856
|
+
`, ts = (e) => e ? "" : es, ns = (e) => `variant-${e}`, os = y({
|
|
4817
4857
|
name: "enable-editor",
|
|
4818
|
-
components: { DynamicDiv:
|
|
4858
|
+
components: { DynamicDiv: ne },
|
|
4819
4859
|
props: [
|
|
4820
4860
|
"isNestedRender",
|
|
4821
4861
|
"builderContextSignal",
|
|
@@ -4845,15 +4885,15 @@ font-weight: ${s};
|
|
|
4845
4885
|
httpReqsData: {},
|
|
4846
4886
|
httpReqsPending: {},
|
|
4847
4887
|
clicked: !1,
|
|
4848
|
-
builderContext:
|
|
4849
|
-
needsElementRefDivForEditing:
|
|
4850
|
-
getWrapperClassName:
|
|
4888
|
+
builderContext: ke,
|
|
4889
|
+
needsElementRefDivForEditing: Qi,
|
|
4890
|
+
getWrapperClassName: ns
|
|
4851
4891
|
};
|
|
4852
4892
|
},
|
|
4853
4893
|
provide() {
|
|
4854
4894
|
const e = this;
|
|
4855
4895
|
return {
|
|
4856
|
-
[
|
|
4896
|
+
[ke.key]: e.builderContextSignal
|
|
4857
4897
|
};
|
|
4858
4898
|
},
|
|
4859
4899
|
created() {
|
|
@@ -4861,26 +4901,26 @@ font-weight: ${s};
|
|
|
4861
4901
|
},
|
|
4862
4902
|
mounted() {
|
|
4863
4903
|
var e, t, n;
|
|
4864
|
-
if (
|
|
4904
|
+
if (R()) {
|
|
4865
4905
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4866
4906
|
new CustomEvent("initeditingbldr")
|
|
4867
4907
|
);
|
|
4868
|
-
const o = this.builderContextSignal.content &&
|
|
4908
|
+
const o = this.builderContextSignal.content && G(this.canTrack), r = Pe({
|
|
4869
4909
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4870
4910
|
canTrack: !0
|
|
4871
4911
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4872
4912
|
if (o && i === r) {
|
|
4873
|
-
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id,
|
|
4874
|
-
|
|
4913
|
+
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
|
|
4914
|
+
Le({
|
|
4875
4915
|
apiHost: this.apiHost,
|
|
4876
4916
|
type: "impression",
|
|
4877
4917
|
canTrack: !0,
|
|
4878
4918
|
contentId: s,
|
|
4879
|
-
apiKey:
|
|
4919
|
+
apiKey: a,
|
|
4880
4920
|
variationId: r !== s ? r : void 0
|
|
4881
4921
|
});
|
|
4882
4922
|
}
|
|
4883
|
-
|
|
4923
|
+
me() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4884
4924
|
new CustomEvent("initpreviewingbldr")
|
|
4885
4925
|
);
|
|
4886
4926
|
}
|
|
@@ -4922,7 +4962,7 @@ font-weight: ${s};
|
|
|
4922
4962
|
}
|
|
4923
4963
|
},
|
|
4924
4964
|
unmounted() {
|
|
4925
|
-
|
|
4965
|
+
R() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
4926
4966
|
"builder:component:stateChangeListenerActivated",
|
|
4927
4967
|
this.emitStateUpdate
|
|
4928
4968
|
));
|
|
@@ -4965,7 +5005,7 @@ font-weight: ${s};
|
|
|
4965
5005
|
this.builderContextSignal.rootSetState ? (r = (o = this.builderContextSignal).rootSetState) == null || r.call(o, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
|
|
4966
5006
|
},
|
|
4967
5007
|
mergeNewContent(e, t) {
|
|
4968
|
-
var o, r, i, s,
|
|
5008
|
+
var o, r, i, s, a;
|
|
4969
5009
|
const n = {
|
|
4970
5010
|
...this.builderContextSignal.content,
|
|
4971
5011
|
...e,
|
|
@@ -4976,13 +5016,13 @@ font-weight: ${s};
|
|
|
4976
5016
|
meta: {
|
|
4977
5017
|
...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
|
|
4978
5018
|
...e == null ? void 0 : e.meta,
|
|
4979
|
-
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((
|
|
5019
|
+
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((a = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : a.breakpoints)
|
|
4980
5020
|
}
|
|
4981
5021
|
};
|
|
4982
5022
|
this.builderContextSignal.content = n;
|
|
4983
5023
|
},
|
|
4984
5024
|
processMessage(e) {
|
|
4985
|
-
return
|
|
5025
|
+
return vt({
|
|
4986
5026
|
model: this.model,
|
|
4987
5027
|
trustedHosts: this.trustedHosts,
|
|
4988
5028
|
callbacks: {
|
|
@@ -4996,7 +5036,7 @@ font-weight: ${s};
|
|
|
4996
5036
|
});
|
|
4997
5037
|
},
|
|
4998
5038
|
animation: (t) => {
|
|
4999
|
-
|
|
5039
|
+
Et(t);
|
|
5000
5040
|
},
|
|
5001
5041
|
contentUpdate: (t, n) => {
|
|
5002
5042
|
this.mergeNewContent(t, n);
|
|
@@ -5011,14 +5051,14 @@ font-weight: ${s};
|
|
|
5011
5051
|
var t, n;
|
|
5012
5052
|
if (this.builderContextSignal.content) {
|
|
5013
5053
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5014
|
-
|
|
5054
|
+
Le({
|
|
5015
5055
|
apiHost: this.apiHost,
|
|
5016
5056
|
type: "click",
|
|
5017
|
-
canTrack:
|
|
5057
|
+
canTrack: G(this.canTrack),
|
|
5018
5058
|
contentId: r,
|
|
5019
5059
|
apiKey: this.apiKey,
|
|
5020
5060
|
variationId: o !== r ? o : void 0,
|
|
5021
|
-
...
|
|
5061
|
+
...Ji(e),
|
|
5022
5062
|
unique: !this.clicked
|
|
5023
5063
|
});
|
|
5024
5064
|
}
|
|
@@ -5036,10 +5076,10 @@ font-weight: ${s};
|
|
|
5036
5076
|
return;
|
|
5037
5077
|
const s = i ? r.request.url : r;
|
|
5038
5078
|
this.httpReqsPending[o] = !0;
|
|
5039
|
-
const
|
|
5079
|
+
const a = s.replace(
|
|
5040
5080
|
/{{([^}]+)}}/g,
|
|
5041
5081
|
(p, b) => String(
|
|
5042
|
-
|
|
5082
|
+
te({
|
|
5043
5083
|
code: b,
|
|
5044
5084
|
context: this.context || {},
|
|
5045
5085
|
localState: void 0,
|
|
@@ -5047,22 +5087,22 @@ font-weight: ${s};
|
|
|
5047
5087
|
rootSetState: this.builderContextSignal.rootSetState
|
|
5048
5088
|
})
|
|
5049
5089
|
)
|
|
5050
|
-
),
|
|
5051
|
-
url:
|
|
5090
|
+
), l = i ? {
|
|
5091
|
+
url: a,
|
|
5052
5092
|
method: r.request.method,
|
|
5053
5093
|
headers: r.request.headers,
|
|
5054
5094
|
body: r.request.body
|
|
5055
5095
|
} : {
|
|
5056
|
-
url:
|
|
5096
|
+
url: a,
|
|
5057
5097
|
method: "GET"
|
|
5058
5098
|
};
|
|
5059
|
-
|
|
5060
|
-
const
|
|
5061
|
-
method:
|
|
5062
|
-
headers:
|
|
5063
|
-
body:
|
|
5099
|
+
mt(JSON.stringify(l));
|
|
5100
|
+
const d = {
|
|
5101
|
+
method: l.method,
|
|
5102
|
+
headers: l.headers,
|
|
5103
|
+
body: l.body
|
|
5064
5104
|
};
|
|
5065
|
-
|
|
5105
|
+
l.method === "GET" && delete d.body, fetch(l.url, d).then((p) => p.json()).then((p) => {
|
|
5066
5106
|
this.mergeNewRootState({
|
|
5067
5107
|
[o]: p
|
|
5068
5108
|
}), this.httpReqsData[o] = !0;
|
|
@@ -5084,7 +5124,7 @@ font-weight: ${s};
|
|
|
5084
5124
|
"builder:component:stateChange",
|
|
5085
5125
|
{
|
|
5086
5126
|
detail: {
|
|
5087
|
-
state:
|
|
5127
|
+
state: Xt(this.builderContextSignal.rootState),
|
|
5088
5128
|
ref: {
|
|
5089
5129
|
name: this.model
|
|
5090
5130
|
}
|
|
@@ -5094,7 +5134,7 @@ font-weight: ${s};
|
|
|
5094
5134
|
);
|
|
5095
5135
|
},
|
|
5096
5136
|
elementRef_onIniteditingbldr(e) {
|
|
5097
|
-
window.addEventListener("message", this.processMessage),
|
|
5137
|
+
window.addEventListener("message", this.processMessage), kt({
|
|
5098
5138
|
...this.locale ? {
|
|
5099
5139
|
locale: this.locale
|
|
5100
5140
|
} : {},
|
|
@@ -5114,7 +5154,7 @@ font-weight: ${s};
|
|
|
5114
5154
|
).forEach((t) => {
|
|
5115
5155
|
var n, o;
|
|
5116
5156
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5117
|
-
const r =
|
|
5157
|
+
const r = $n(t);
|
|
5118
5158
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5119
5159
|
}
|
|
5120
5160
|
}), window.addEventListener(
|
|
@@ -5127,7 +5167,7 @@ font-weight: ${s};
|
|
|
5127
5167
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5128
5168
|
`builder.overrides.${n}`
|
|
5129
5169
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5130
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5170
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Oe({
|
|
5131
5171
|
model: this.model,
|
|
5132
5172
|
apiKey: this.apiKey,
|
|
5133
5173
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5142,72 +5182,123 @@ font-weight: ${s};
|
|
|
5142
5182
|
}
|
|
5143
5183
|
}
|
|
5144
5184
|
});
|
|
5145
|
-
function
|
|
5146
|
-
var s,
|
|
5147
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (
|
|
5185
|
+
function rs(e, t, n, o, r, i) {
|
|
5186
|
+
var s, a, l;
|
|
5187
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), S(X(e.ContentWrapper), w({
|
|
5148
5188
|
key: 0,
|
|
5149
5189
|
ref: "elementRef",
|
|
5150
|
-
onClick: (
|
|
5190
|
+
onClick: (d) => e.onClick(d),
|
|
5151
5191
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
5152
5192
|
"builder-model": e.model,
|
|
5153
|
-
className: e.getWrapperClassName(((
|
|
5193
|
+
className: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
|
|
5154
5194
|
style: {
|
|
5155
5195
|
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
5156
5196
|
},
|
|
5157
|
-
onIniteditingbldr: (
|
|
5158
|
-
onInitpreviewingbldr: (
|
|
5197
|
+
onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
|
|
5198
|
+
onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
|
|
5159
5199
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5160
|
-
default:
|
|
5161
|
-
|
|
5200
|
+
default: W(() => [
|
|
5201
|
+
B(e.$slots, "default")
|
|
5162
5202
|
]),
|
|
5163
5203
|
_: 3
|
|
5164
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
5204
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : k("", !0);
|
|
5165
5205
|
}
|
|
5166
|
-
const
|
|
5206
|
+
const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
|
|
5167
5207
|
name: "content-styles",
|
|
5168
|
-
components: { InlinedStyles:
|
|
5208
|
+
components: { InlinedStyles: he },
|
|
5169
5209
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5170
5210
|
data() {
|
|
5171
5211
|
return {
|
|
5172
5212
|
injectedStyles: `
|
|
5173
|
-
${
|
|
5213
|
+
${Zi({
|
|
5174
5214
|
cssCode: this.cssCode,
|
|
5175
5215
|
contentId: this.contentId
|
|
5176
5216
|
})}
|
|
5177
|
-
${
|
|
5217
|
+
${Xi({
|
|
5178
5218
|
customFonts: this.customFonts
|
|
5179
5219
|
})}
|
|
5180
|
-
${
|
|
5220
|
+
${ts(this.isNestedRender)}
|
|
5181
5221
|
`.trim()
|
|
5182
5222
|
};
|
|
5183
5223
|
}
|
|
5184
5224
|
});
|
|
5185
|
-
function
|
|
5186
|
-
const s =
|
|
5187
|
-
return
|
|
5225
|
+
function as(e, t, n, o, r, i) {
|
|
5226
|
+
const s = C("InlinedStyles");
|
|
5227
|
+
return u(), S(s, {
|
|
5188
5228
|
id: "builderio-content",
|
|
5189
5229
|
styles: e.injectedStyles,
|
|
5190
5230
|
nonce: e.nonce
|
|
5191
5231
|
}, null, 8, ["styles", "nonce"]);
|
|
5192
5232
|
}
|
|
5193
|
-
const
|
|
5233
|
+
const ls = /* @__PURE__ */ v(ss, [["render", as]]), ue = (e, t = /* @__PURE__ */ new WeakMap()) => {
|
|
5234
|
+
if (e === null || typeof e != "object")
|
|
5235
|
+
return e;
|
|
5236
|
+
if (t.has(e))
|
|
5237
|
+
return t.get(e);
|
|
5238
|
+
if (Array.isArray(e)) {
|
|
5239
|
+
const r = [];
|
|
5240
|
+
t.set(e, r);
|
|
5241
|
+
for (let i = 0; i < e.length; i++)
|
|
5242
|
+
r[i] = ue(e[i], t);
|
|
5243
|
+
return r;
|
|
5244
|
+
}
|
|
5245
|
+
const n = Object.getPrototypeOf(e);
|
|
5246
|
+
if (n !== Object.prototype && n !== null)
|
|
5247
|
+
return e;
|
|
5248
|
+
const o = {};
|
|
5249
|
+
t.set(e, o);
|
|
5250
|
+
for (const r of Object.keys(e)) {
|
|
5251
|
+
const i = ue(e[r], t);
|
|
5252
|
+
r === "__proto__" ? Object.defineProperty(o, r, {
|
|
5253
|
+
value: i,
|
|
5254
|
+
enumerable: !0,
|
|
5255
|
+
writable: !0,
|
|
5256
|
+
configurable: !0
|
|
5257
|
+
}) : o[r] = i;
|
|
5258
|
+
}
|
|
5259
|
+
return o;
|
|
5260
|
+
}, at = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Ut = (e) => {
|
|
5261
|
+
const t = at.get(e);
|
|
5262
|
+
if (t)
|
|
5263
|
+
return t;
|
|
5264
|
+
const {
|
|
5265
|
+
component: n,
|
|
5266
|
+
...o
|
|
5267
|
+
} = e, r = Be(o);
|
|
5268
|
+
return at.set(e, r), r;
|
|
5269
|
+
}, cs = (e, t) => {
|
|
5270
|
+
const n = {};
|
|
5271
|
+
for (const o of e) {
|
|
5272
|
+
let r = lt.get(o);
|
|
5273
|
+
r || (r = {
|
|
5274
|
+
component: t(o.component),
|
|
5275
|
+
...Ut(o)
|
|
5276
|
+
}, lt.set(o, r)), n[o.name] = r;
|
|
5277
|
+
}
|
|
5278
|
+
return n;
|
|
5279
|
+
}, ds = (e) => {
|
|
5280
|
+
const t = {};
|
|
5281
|
+
for (const n of e)
|
|
5282
|
+
t[n.name] = Ut(n);
|
|
5283
|
+
return t;
|
|
5284
|
+
}, us = ({
|
|
5194
5285
|
content: e,
|
|
5195
5286
|
data: t,
|
|
5196
5287
|
locale: n
|
|
5197
5288
|
}) => {
|
|
5198
|
-
var
|
|
5199
|
-
const o = {}, r = (
|
|
5200
|
-
return (l = (
|
|
5201
|
-
|
|
5289
|
+
var s, a, l;
|
|
5290
|
+
const o = {}, r = /* @__PURE__ */ new WeakMap(), i = ue(((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {}, r);
|
|
5291
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
|
|
5292
|
+
d.name && d.defaultValue !== void 0 && (o[d.name] = ue(d.defaultValue, r));
|
|
5202
5293
|
}), {
|
|
5203
5294
|
...o,
|
|
5204
|
-
...
|
|
5295
|
+
...i,
|
|
5205
5296
|
...t,
|
|
5206
5297
|
...n ? {
|
|
5207
5298
|
locale: n
|
|
5208
5299
|
} : {}
|
|
5209
5300
|
};
|
|
5210
|
-
},
|
|
5301
|
+
}, ps = ({
|
|
5211
5302
|
content: e,
|
|
5212
5303
|
data: t
|
|
5213
5304
|
}) => e ? {
|
|
@@ -5217,14 +5308,14 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5217
5308
|
...t
|
|
5218
5309
|
},
|
|
5219
5310
|
meta: e == null ? void 0 : e.meta
|
|
5220
|
-
} : void 0,
|
|
5311
|
+
} : void 0, ms = Ft, hs = y({
|
|
5221
5312
|
name: "content-component",
|
|
5222
5313
|
components: {
|
|
5223
|
-
EnableEditor:
|
|
5224
|
-
InlinedScript:
|
|
5225
|
-
ContentStyles:
|
|
5226
|
-
Blocks:
|
|
5227
|
-
DynamicDiv:
|
|
5314
|
+
EnableEditor: is,
|
|
5315
|
+
InlinedScript: fe,
|
|
5316
|
+
ContentStyles: ls,
|
|
5317
|
+
Blocks: z,
|
|
5318
|
+
DynamicDiv: ne
|
|
5228
5319
|
},
|
|
5229
5320
|
props: [
|
|
5230
5321
|
"content",
|
|
@@ -5253,32 +5344,23 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5253
5344
|
data() {
|
|
5254
5345
|
var e, t;
|
|
5255
5346
|
return {
|
|
5256
|
-
scriptStr:
|
|
5347
|
+
scriptStr: qi({
|
|
5257
5348
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5258
5349
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5259
5350
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5260
5351
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5261
5352
|
}),
|
|
5262
|
-
registeredComponents:
|
|
5263
|
-
...
|
|
5264
|
-
|
|
5265
|
-
].reduce(
|
|
5266
|
-
(n, { component: o, ...r }) => ({
|
|
5267
|
-
...n,
|
|
5268
|
-
[r.name]: {
|
|
5269
|
-
component: Ji(o),
|
|
5270
|
-
...le(r)
|
|
5271
|
-
}
|
|
5272
|
-
}),
|
|
5273
|
-
{}
|
|
5353
|
+
registeredComponents: cs(
|
|
5354
|
+
[...rt(), ...this.customComponents || []],
|
|
5355
|
+
(n) => ms(n)
|
|
5274
5356
|
),
|
|
5275
5357
|
builderContextSignal: {
|
|
5276
|
-
content:
|
|
5358
|
+
content: ps({
|
|
5277
5359
|
content: this.content,
|
|
5278
5360
|
data: this.data
|
|
5279
5361
|
}),
|
|
5280
5362
|
localState: void 0,
|
|
5281
|
-
rootState:
|
|
5363
|
+
rootState: us({
|
|
5282
5364
|
content: this.content,
|
|
5283
5365
|
data: this.data,
|
|
5284
5366
|
locale: this.locale
|
|
@@ -5288,29 +5370,23 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5288
5370
|
canTrack: this.canTrack,
|
|
5289
5371
|
apiKey: this.apiKey,
|
|
5290
5372
|
apiVersion: this.apiVersion,
|
|
5291
|
-
componentInfos: [
|
|
5292
|
-
...
|
|
5373
|
+
componentInfos: ds([
|
|
5374
|
+
...rt(),
|
|
5293
5375
|
...this.customComponents || []
|
|
5294
|
-
]
|
|
5295
|
-
(n, { component: o, ...r }) => ({
|
|
5296
|
-
...n,
|
|
5297
|
-
[r.name]: le(r)
|
|
5298
|
-
}),
|
|
5299
|
-
{}
|
|
5300
|
-
),
|
|
5376
|
+
]),
|
|
5301
5377
|
inheritedStyles: {},
|
|
5302
5378
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
5303
5379
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
5304
5380
|
nonce: this.nonce || "",
|
|
5305
5381
|
model: this.model
|
|
5306
5382
|
},
|
|
5307
|
-
TARGET:
|
|
5383
|
+
TARGET: $
|
|
5308
5384
|
};
|
|
5309
5385
|
},
|
|
5310
5386
|
provide() {
|
|
5311
5387
|
const e = this;
|
|
5312
5388
|
return {
|
|
5313
|
-
[
|
|
5389
|
+
[ht.key]: {
|
|
5314
5390
|
registeredComponents: e.registeredComponents
|
|
5315
5391
|
}
|
|
5316
5392
|
};
|
|
@@ -5321,7 +5397,7 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5321
5397
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5322
5398
|
);
|
|
5323
5399
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5324
|
-
e &&
|
|
5400
|
+
e && te({
|
|
5325
5401
|
code: e,
|
|
5326
5402
|
context: this.context || {},
|
|
5327
5403
|
localState: void 0,
|
|
@@ -5354,9 +5430,9 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
|
|
|
5354
5430
|
}
|
|
5355
5431
|
}
|
|
5356
5432
|
});
|
|
5357
|
-
function
|
|
5358
|
-
const s =
|
|
5359
|
-
return
|
|
5433
|
+
function fs(e, t, n, o, r, i) {
|
|
5434
|
+
const s = C("InlinedScript"), a = C("ContentStyles"), l = C("Blocks"), d = C("EnableEditor");
|
|
5435
|
+
return u(), S(d, w({
|
|
5360
5436
|
apiHost: e.apiHost,
|
|
5361
5437
|
nonce: e.nonce,
|
|
5362
5438
|
content: e.content,
|
|
@@ -5375,24 +5451,24 @@ function Qi(e, t, n, o, r, i) {
|
|
|
5375
5451
|
trustedHosts: e.trustedHosts,
|
|
5376
5452
|
isNestedRender: e.isNestedRender
|
|
5377
5453
|
}, {}), {
|
|
5378
|
-
default:
|
|
5454
|
+
default: W(() => {
|
|
5379
5455
|
var p, b, c, m, f, g, P;
|
|
5380
5456
|
return [
|
|
5381
|
-
e.isSsrAbTest ? (
|
|
5457
|
+
e.isSsrAbTest ? (u(), S(s, {
|
|
5382
5458
|
key: 0,
|
|
5383
5459
|
id: "builderio-variant-visibility",
|
|
5384
5460
|
scriptStr: e.scriptStr,
|
|
5385
5461
|
nonce: e.nonce || ""
|
|
5386
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
5387
|
-
e.TARGET !== "reactNative" ? (
|
|
5462
|
+
}, null, 8, ["scriptStr", "nonce"])) : k("", !0),
|
|
5463
|
+
e.TARGET !== "reactNative" ? (u(), S(a, {
|
|
5388
5464
|
key: 1,
|
|
5389
5465
|
nonce: e.nonce || "",
|
|
5390
5466
|
isNestedRender: e.isNestedRender,
|
|
5391
5467
|
contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
5392
5468
|
cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
|
|
5393
5469
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5394
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
5395
|
-
|
|
5470
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : k("", !0),
|
|
5471
|
+
E(l, {
|
|
5396
5472
|
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5397
5473
|
context: e.builderContextSignal,
|
|
5398
5474
|
registeredComponents: e.registeredComponents,
|
|
@@ -5403,16 +5479,17 @@ function Qi(e, t, n, o, r, i) {
|
|
|
5403
5479
|
_: 1
|
|
5404
5480
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5405
5481
|
}
|
|
5406
|
-
const
|
|
5482
|
+
const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = y({
|
|
5407
5483
|
name: "content-variants",
|
|
5408
5484
|
components: {
|
|
5409
|
-
InlinedScript:
|
|
5410
|
-
InlinedStyles:
|
|
5411
|
-
ContentComponent:
|
|
5485
|
+
InlinedScript: fe,
|
|
5486
|
+
InlinedStyles: he,
|
|
5487
|
+
ContentComponent: bs
|
|
5412
5488
|
},
|
|
5413
5489
|
props: [
|
|
5414
5490
|
"canTrack",
|
|
5415
5491
|
"content",
|
|
5492
|
+
"isContentInlinedInParent",
|
|
5416
5493
|
"nonce",
|
|
5417
5494
|
"apiHost",
|
|
5418
5495
|
"isNestedRender",
|
|
@@ -5434,25 +5511,28 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
|
5434
5511
|
],
|
|
5435
5512
|
data() {
|
|
5436
5513
|
return {
|
|
5437
|
-
shouldRenderVariants:
|
|
5438
|
-
canTrack:
|
|
5514
|
+
shouldRenderVariants: Mi({
|
|
5515
|
+
canTrack: G(this.canTrack),
|
|
5439
5516
|
content: this.content
|
|
5440
5517
|
}),
|
|
5441
|
-
shouldEmitPersonalizationFns:
|
|
5442
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5443
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5444
|
-
TARGET:
|
|
5445
|
-
getInitVariantsFnsScriptString:
|
|
5446
|
-
getVariants:
|
|
5518
|
+
shouldEmitPersonalizationFns: !this.isContentInlinedInParent && nr(this.content),
|
|
5519
|
+
SDKS_SUPPORTING_PERSONALIZATION: De,
|
|
5520
|
+
getInitPersonalizationVariantsFnsScriptString: Ot,
|
|
5521
|
+
TARGET: $,
|
|
5522
|
+
getInitVariantsFnsScriptString: Dt,
|
|
5523
|
+
getVariants: le
|
|
5447
5524
|
};
|
|
5448
5525
|
},
|
|
5526
|
+
inject: {
|
|
5527
|
+
scriptsContext: $e.key
|
|
5528
|
+
},
|
|
5449
5529
|
mounted() {
|
|
5450
5530
|
},
|
|
5451
5531
|
computed: {
|
|
5452
5532
|
updateCookieAndStylesScriptStr() {
|
|
5453
5533
|
var e;
|
|
5454
|
-
return
|
|
5455
|
-
|
|
5534
|
+
return zi(
|
|
5535
|
+
le(this.content).map((t) => ({
|
|
5456
5536
|
id: t.testVariationId,
|
|
5457
5537
|
testRatio: t.testRatio
|
|
5458
5538
|
})),
|
|
@@ -5460,53 +5540,55 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
|
|
|
5460
5540
|
);
|
|
5461
5541
|
},
|
|
5462
5542
|
hideVariantsStyleString() {
|
|
5463
|
-
return
|
|
5543
|
+
return le(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5464
5544
|
},
|
|
5465
5545
|
defaultContent() {
|
|
5466
5546
|
var e;
|
|
5467
5547
|
return this.shouldRenderVariants ? {
|
|
5468
5548
|
...this.content,
|
|
5469
5549
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5470
|
-
} :
|
|
5550
|
+
} : Dn({
|
|
5471
5551
|
item: this.content,
|
|
5472
|
-
canTrack:
|
|
5552
|
+
canTrack: G(this.canTrack)
|
|
5473
5553
|
});
|
|
5474
5554
|
}
|
|
5475
5555
|
}
|
|
5476
5556
|
});
|
|
5477
|
-
function
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5557
|
+
function ys(e, t, n, o, r, i) {
|
|
5558
|
+
var d, p;
|
|
5559
|
+
const s = C("InlinedScript"), a = C("InlinedStyles"), l = C("ContentComponent");
|
|
5560
|
+
return u(), h(I, null, [
|
|
5561
|
+
e.shouldEmitPersonalizationFns && !((d = e.scriptsContext) != null && d.scriptsEmitted) ? (u(), h(I, { key: 0 }, [
|
|
5562
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
|
|
5482
5563
|
key: 0,
|
|
5483
5564
|
id: "builderio-init-personalization-variants-fns",
|
|
5484
5565
|
nonce: e.nonce || "",
|
|
5485
5566
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5486
|
-
}, null, 8, ["nonce", "scriptStr"])) :
|
|
5487
|
-
], 64)) :
|
|
5488
|
-
e.shouldRenderVariants ? (
|
|
5489
|
-
|
|
5567
|
+
}, null, 8, ["nonce", "scriptStr"])) : k("", !0)
|
|
5568
|
+
], 64)) : k("", !0),
|
|
5569
|
+
e.shouldRenderVariants ? (u(), h(I, { key: 1 }, [
|
|
5570
|
+
(p = e.scriptsContext) != null && p.scriptsEmitted ? k("", !0) : (u(), S(s, {
|
|
5571
|
+
key: 0,
|
|
5490
5572
|
id: "builderio-init-variants-fns",
|
|
5491
5573
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5492
5574
|
nonce: e.nonce || ""
|
|
5493
|
-
}, null, 8, ["scriptStr", "nonce"]),
|
|
5494
|
-
|
|
5575
|
+
}, null, 8, ["scriptStr", "nonce"])),
|
|
5576
|
+
E(a, {
|
|
5495
5577
|
id: "builderio-variants",
|
|
5496
5578
|
styles: e.hideVariantsStyleString,
|
|
5497
5579
|
nonce: e.nonce || ""
|
|
5498
5580
|
}, null, 8, ["styles", "nonce"]),
|
|
5499
|
-
|
|
5581
|
+
E(s, {
|
|
5500
5582
|
id: "builderio-variants-visibility",
|
|
5501
5583
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5502
5584
|
nonce: e.nonce || ""
|
|
5503
5585
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5504
|
-
(
|
|
5505
|
-
key:
|
|
5586
|
+
(u(!0), h(I, null, x(e.getVariants(e.content), (b, c) => (u(), S(l, w({
|
|
5587
|
+
key: b.testVariationId,
|
|
5506
5588
|
apiHost: e.apiHost,
|
|
5507
5589
|
isNestedRender: e.isNestedRender,
|
|
5508
5590
|
nonce: e.nonce,
|
|
5509
|
-
content:
|
|
5591
|
+
content: b,
|
|
5510
5592
|
showContent: !1,
|
|
5511
5593
|
model: e.model,
|
|
5512
5594
|
data: e.data,
|
|
@@ -5526,8 +5608,8 @@ function Xi(e, t, n, o, r, i) {
|
|
|
5526
5608
|
contentWrapperProps: e.contentWrapperProps,
|
|
5527
5609
|
trustedHosts: e.trustedHosts
|
|
5528
5610
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5529
|
-
], 64)) :
|
|
5530
|
-
|
|
5611
|
+
], 64)) : k("", !0),
|
|
5612
|
+
E(l, w({
|
|
5531
5613
|
apiHost: e.apiHost,
|
|
5532
5614
|
nonce: e.nonce,
|
|
5533
5615
|
isNestedRender: e.isNestedRender,
|
|
@@ -5555,13 +5637,16 @@ function Xi(e, t, n, o, r, i) {
|
|
|
5555
5637
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5556
5638
|
], 64);
|
|
5557
5639
|
}
|
|
5558
|
-
const
|
|
5640
|
+
const Ss = /* @__PURE__ */ v(gs, [["render", ys]]), ks = (e) => {
|
|
5641
|
+
const t = e.startsWith("component.") ? e.slice(10) : e;
|
|
5642
|
+
return t === "options.symbol" || t === "options.symbol.content" || t.startsWith("options.symbol.content.");
|
|
5643
|
+
}, vs = (e, t) => !!(e != null && e.content) && !Object.keys(t || {}).some(ks), Cs = async ({
|
|
5559
5644
|
builderContextValue: e,
|
|
5560
5645
|
symbol: t
|
|
5561
5646
|
}) => {
|
|
5562
5647
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5563
5648
|
(e != null && e.apiKey))
|
|
5564
|
-
return
|
|
5649
|
+
return Oe({
|
|
5565
5650
|
model: t.model,
|
|
5566
5651
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5567
5652
|
apiVersion: e.apiVersion,
|
|
@@ -5573,9 +5658,9 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5573
5658
|
}).catch((n) => {
|
|
5574
5659
|
F.error("Could not fetch symbol content: ", n);
|
|
5575
5660
|
});
|
|
5576
|
-
},
|
|
5661
|
+
}, Ts = y({
|
|
5577
5662
|
name: "builder-symbol",
|
|
5578
|
-
components: { ContentVariants:
|
|
5663
|
+
components: { ContentVariants: Ss, DynamicDiv: ne },
|
|
5579
5664
|
props: [
|
|
5580
5665
|
"symbol",
|
|
5581
5666
|
"builderComponents",
|
|
@@ -5590,7 +5675,8 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5590
5675
|
return {
|
|
5591
5676
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5592
5677
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5593
|
-
filterAttrs: N
|
|
5678
|
+
filterAttrs: N,
|
|
5679
|
+
isSymbolContentInlinedInParent: vs
|
|
5594
5680
|
};
|
|
5595
5681
|
},
|
|
5596
5682
|
mounted() {
|
|
@@ -5617,7 +5703,7 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5617
5703
|
className() {
|
|
5618
5704
|
var e, t;
|
|
5619
5705
|
return [
|
|
5620
|
-
this.attributes[
|
|
5706
|
+
this.attributes[H()],
|
|
5621
5707
|
"builder-symbol",
|
|
5622
5708
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5623
5709
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5632,7 +5718,7 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5632
5718
|
methods: {
|
|
5633
5719
|
setContent() {
|
|
5634
5720
|
var e;
|
|
5635
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5721
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Cs({
|
|
5636
5722
|
symbol: this.symbol,
|
|
5637
5723
|
builderContextValue: this.builderContext
|
|
5638
5724
|
}).then((t) => {
|
|
@@ -5642,72 +5728,119 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
|
|
|
5642
5728
|
}
|
|
5643
5729
|
}
|
|
5644
5730
|
});
|
|
5645
|
-
function
|
|
5646
|
-
var
|
|
5647
|
-
const s =
|
|
5648
|
-
return
|
|
5649
|
-
|
|
5731
|
+
function Is(e, t, n, o, r, i) {
|
|
5732
|
+
var a, l, d, p, b, c, m, f;
|
|
5733
|
+
const s = C("ContentVariants");
|
|
5734
|
+
return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5735
|
+
E(s, {
|
|
5650
5736
|
nonce: e.builderContext.nonce,
|
|
5651
5737
|
isNestedRender: !0,
|
|
5738
|
+
isContentInlinedInParent: e.isSymbolContentInlinedInParent(e.symbol, (a = e.builderBlock) == null ? void 0 : a.bindings),
|
|
5652
5739
|
apiVersion: e.builderContext.apiVersion,
|
|
5653
|
-
apiKey: (l = e.symbol) != null && l.global && ((
|
|
5740
|
+
apiKey: (l = e.symbol) != null && l.global && ((d = e.symbol) != null && d.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5654
5741
|
context: {
|
|
5655
5742
|
...e.builderContext.context,
|
|
5656
|
-
symbolId: (
|
|
5743
|
+
symbolId: (p = e.builderBlock) == null ? void 0 : p.id
|
|
5657
5744
|
},
|
|
5658
5745
|
customComponents: e.customComponents,
|
|
5659
5746
|
data: {
|
|
5660
|
-
...(
|
|
5747
|
+
...(b = e.symbol) == null ? void 0 : b.data,
|
|
5661
5748
|
...e.builderContext.localState,
|
|
5662
|
-
...(
|
|
5749
|
+
...(m = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : m.state
|
|
5663
5750
|
},
|
|
5664
5751
|
canTrack: e.builderContext.canTrack,
|
|
5665
|
-
model: ((
|
|
5752
|
+
model: ((f = e.symbol) == null ? void 0 : f.model) ?? "",
|
|
5666
5753
|
content: e.contentToUse,
|
|
5667
5754
|
linkComponent: e.builderLinkComponent,
|
|
5668
5755
|
blocksWrapper: e.blocksWrapper,
|
|
5669
5756
|
contentWrapper: e.contentWrapper
|
|
5670
|
-
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5757
|
+
}, null, 8, ["nonce", "isContentInlinedInParent", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5671
5758
|
], 16);
|
|
5672
5759
|
}
|
|
5673
|
-
const
|
|
5760
|
+
const ws = /* @__PURE__ */ v(Ts, [["render", Is]]), $s = y({
|
|
5761
|
+
name: "builder-scripts",
|
|
5762
|
+
components: { InlinedScript: fe },
|
|
5763
|
+
props: ["nonce"],
|
|
5764
|
+
data() {
|
|
5765
|
+
return {
|
|
5766
|
+
isSupported: Li.includes($),
|
|
5767
|
+
shouldRenderAbTestFns: $ !== "react",
|
|
5768
|
+
getInitPersonalizationVariantsFnsScriptString: Ot,
|
|
5769
|
+
SDKS_SUPPORTING_PERSONALIZATION: De,
|
|
5770
|
+
TARGET: $,
|
|
5771
|
+
getInitVariantsFnsScriptString: Dt
|
|
5772
|
+
};
|
|
5773
|
+
},
|
|
5774
|
+
provide() {
|
|
5775
|
+
const e = this;
|
|
5776
|
+
return {
|
|
5777
|
+
[$e.key]: { scriptsEmitted: e.isSupported }
|
|
5778
|
+
};
|
|
5779
|
+
},
|
|
5780
|
+
inject: {
|
|
5781
|
+
parentScriptsContext: $e.key
|
|
5782
|
+
}
|
|
5783
|
+
});
|
|
5784
|
+
function Rs(e, t, n, o, r, i) {
|
|
5785
|
+
var a;
|
|
5786
|
+
const s = C("InlinedScript");
|
|
5787
|
+
return u(), h(I, null, [
|
|
5788
|
+
e.isSupported && !((a = e.parentScriptsContext) != null && a.scriptsEmitted) ? (u(), h(I, { key: 0 }, [
|
|
5789
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
|
|
5790
|
+
key: 0,
|
|
5791
|
+
id: "builderio-init-personalization-variants-fns",
|
|
5792
|
+
nonce: e.nonce || "",
|
|
5793
|
+
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5794
|
+
}, null, 8, ["nonce", "scriptStr"])) : k("", !0),
|
|
5795
|
+
e.shouldRenderAbTestFns ? (u(), S(s, {
|
|
5796
|
+
key: 1,
|
|
5797
|
+
id: "builderio-init-variants-fns",
|
|
5798
|
+
nonce: e.nonce || "",
|
|
5799
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
5800
|
+
}, null, 8, ["nonce", "scriptStr"])) : k("", !0)
|
|
5801
|
+
], 64)) : k("", !0),
|
|
5802
|
+
B(e.$slots, "default")
|
|
5803
|
+
], 64);
|
|
5804
|
+
}
|
|
5805
|
+
const Hs = /* @__PURE__ */ v($s, [["render", Rs]]);
|
|
5674
5806
|
export {
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5807
|
+
Yn as A,
|
|
5808
|
+
Vt as B,
|
|
5809
|
+
No as C,
|
|
5810
|
+
Xn as D,
|
|
5811
|
+
Oe as E,
|
|
5812
|
+
Do as F,
|
|
5813
|
+
As as G,
|
|
5814
|
+
Ls as H,
|
|
5815
|
+
zo as I,
|
|
5816
|
+
Go as S,
|
|
5817
|
+
Ur as T,
|
|
5818
|
+
Di as V,
|
|
5686
5819
|
v as _,
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5820
|
+
H as a,
|
|
5821
|
+
ke as b,
|
|
5822
|
+
he as c,
|
|
5823
|
+
Us as d,
|
|
5824
|
+
te as e,
|
|
5825
|
+
Po as f,
|
|
5826
|
+
Fs as g,
|
|
5827
|
+
xs as h,
|
|
5828
|
+
Ms as i,
|
|
5829
|
+
We as j,
|
|
5830
|
+
wn as k,
|
|
5831
|
+
sn as l,
|
|
5832
|
+
ws as m,
|
|
5833
|
+
z as n,
|
|
5834
|
+
Hs as o,
|
|
5835
|
+
Ss as p,
|
|
5836
|
+
me as q,
|
|
5837
|
+
$n as r,
|
|
5838
|
+
Ws as s,
|
|
5839
|
+
Bs as t,
|
|
5840
|
+
Vs as u,
|
|
5841
|
+
Ns as v,
|
|
5842
|
+
ms as w,
|
|
5843
|
+
yt as x,
|
|
5844
|
+
Os as y,
|
|
5845
|
+
Ds as z
|
|
5713
5846
|
};
|