@builder.io/sdk-solid 0.1.9 → 0.1.10

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/dist/sdk-solid.js DELETED
@@ -1,3937 +0,0 @@
1
- const oe = "solid";
2
- function B() {
3
- return typeof window < "u" && typeof document < "u";
4
- }
5
- const pt = {};
6
- function tr(e, t) {
7
- let n = pt[e];
8
- if (n || (n = pt[e] = []), n.push(t), B()) {
9
- const r = {
10
- type: "builder.register",
11
- data: {
12
- type: e,
13
- info: t
14
- }
15
- };
16
- try {
17
- parent.postMessage(r, "*"), parent !== window && window.postMessage(r, "*");
18
- } catch (i) {
19
- console.debug("Could not postmessage", i);
20
- }
21
- }
22
- }
23
- const nr = () => {
24
- tr("insertMenu", {
25
- name: "_default",
26
- default: !0,
27
- items: [
28
- { name: "Box" },
29
- { name: "Text" },
30
- { name: "Image" },
31
- { name: "Columns" },
32
- { name: "Core:Section" },
33
- { name: "Core:Button" },
34
- { name: "Embed" },
35
- { name: "Custom Code" }
36
- ]
37
- });
38
- };
39
- let yt = !1;
40
- const rr = (e = {}) => {
41
- var t, n;
42
- yt || (yt = !0, B() && ((t = window.parent) == null || t.postMessage({
43
- type: "builder.sdkInfo",
44
- data: {
45
- target: oe,
46
- supportsPatchUpdates: !1,
47
- supportsAddBlockScoping: !0,
48
- supportsCustomBreakpoints: !0
49
- }
50
- }, "*"), (n = window.parent) == null || n.postMessage({
51
- type: "builder.updateContent",
52
- data: {
53
- options: e
54
- }
55
- }, "*"), window.addEventListener("message", ({ data: r }) => {
56
- var i, o;
57
- if (!!(r != null && r.type))
58
- switch (r.type) {
59
- case "builder.evaluate": {
60
- const s = r.data.text, a = r.data.arguments || [], l = r.data.id, c = new Function(s);
61
- let u, f = null;
62
- try {
63
- u = c.apply(null, a);
64
- } catch (d) {
65
- f = d;
66
- }
67
- f ? (i = window.parent) == null || i.postMessage({
68
- type: "builder.evaluateError",
69
- data: { id: l, error: f.message }
70
- }, "*") : u && typeof u.then == "function" ? u.then((d) => {
71
- var m;
72
- (m = window.parent) == null || m.postMessage({
73
- type: "builder.evaluateResult",
74
- data: { id: l, result: d }
75
- }, "*");
76
- }).catch(console.error) : (o = window.parent) == null || o.postMessage({
77
- type: "builder.evaluateResult",
78
- data: { result: u, id: l }
79
- }, "*");
80
- break;
81
- }
82
- }
83
- })));
84
- }, $ = {};
85
- function We(e) {
86
- $.context = e;
87
- }
88
- function or() {
89
- return {
90
- ...$.context,
91
- id: `${$.context.id}${$.context.count++}-`,
92
- count: 0
93
- };
94
- }
95
- const ir = (e, t) => e === t, J = Symbol("solid-proxy"), Ke = Symbol("solid-track"), _e = {
96
- equals: ir
97
- };
98
- let an = hn;
99
- const Q = 1, xe = 2, ln = {
100
- owned: null,
101
- cleanups: null,
102
- context: null,
103
- owner: null
104
- };
105
- var k = null;
106
- let te = null, P = null, j = null, H = null, et = 0;
107
- function Fe(e, t) {
108
- const n = P, r = k, i = e.length === 0, o = i ? ln : {
109
- owned: null,
110
- cleanups: null,
111
- context: null,
112
- owner: t || r
113
- }, s = i ? e : () => e(() => V(() => nt(o)));
114
- k = o, P = null;
115
- try {
116
- return de(s, !0);
117
- } finally {
118
- P = n, k = r;
119
- }
120
- }
121
- function O(e, t) {
122
- t = t ? Object.assign({}, _e, t) : _e;
123
- const n = {
124
- value: e,
125
- observers: null,
126
- observerSlots: null,
127
- comparator: t.equals || void 0
128
- }, r = (i) => (typeof i == "function" && (i = i(n.value)), mn(n, i));
129
- return [fn.bind(n), r];
130
- }
131
- function w(e, t, n) {
132
- const r = tt(e, t, !1, Q);
133
- ye(r);
134
- }
135
- function ee(e, t, n) {
136
- an = fr;
137
- const r = tt(e, t, !1, Q), i = bt && rt(k, bt.id);
138
- i && (r.suspense = i), r.user = !0, H ? H.push(r) : ye(r);
139
- }
140
- function X(e, t, n) {
141
- n = n ? Object.assign({}, _e, n) : _e;
142
- const r = tt(e, t, !0, 0);
143
- return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, ye(r), fn.bind(r);
144
- }
145
- function sr(e) {
146
- return de(e, !1);
147
- }
148
- function V(e) {
149
- let t, n = P;
150
- return P = null, t = e(), P = n, t;
151
- }
152
- function ae(e, t, n) {
153
- const r = Array.isArray(e);
154
- let i, o = n && n.defer;
155
- return (s) => {
156
- let a;
157
- if (r) {
158
- a = Array(e.length);
159
- for (let c = 0; c < e.length; c++)
160
- a[c] = e[c]();
161
- } else
162
- a = e();
163
- if (o) {
164
- o = !1;
165
- return;
166
- }
167
- const l = V(() => t(a, i, s));
168
- return i = a, l;
169
- };
170
- }
171
- function cn(e) {
172
- ee(() => V(e));
173
- }
174
- function ar(e) {
175
- return k === null || (k.cleanups === null ? k.cleanups = [e] : k.cleanups.push(e)), e;
176
- }
177
- function un() {
178
- return P;
179
- }
180
- function lr(e) {
181
- const t = Symbol("context");
182
- return {
183
- id: t,
184
- Provider: hr(t),
185
- defaultValue: e
186
- };
187
- }
188
- function dn(e) {
189
- let t;
190
- return (t = rt(k, e.id)) !== void 0 ? t : e.defaultValue;
191
- }
192
- function cr(e) {
193
- const t = X(e), n = X(() => He(t()));
194
- return n.toArray = () => {
195
- const r = n();
196
- return Array.isArray(r) ? r : r != null ? [r] : [];
197
- }, n;
198
- }
199
- let bt;
200
- function fn() {
201
- const e = te;
202
- if (this.sources && (this.state || e))
203
- if (this.state === Q || e)
204
- ye(this);
205
- else {
206
- const t = j;
207
- j = null, de(() => Se(this), !1), j = t;
208
- }
209
- if (P) {
210
- const t = this.observers ? this.observers.length : 0;
211
- P.sources ? (P.sources.push(this), P.sourceSlots.push(t)) : (P.sources = [this], P.sourceSlots = [t]), this.observers ? (this.observers.push(P), this.observerSlots.push(P.sources.length - 1)) : (this.observers = [P], this.observerSlots = [P.sources.length - 1]);
212
- }
213
- return this.value;
214
- }
215
- function mn(e, t, n) {
216
- let r = e.value;
217
- return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && de(() => {
218
- for (let i = 0; i < e.observers.length; i += 1) {
219
- const o = e.observers[i], s = te && te.running;
220
- s && te.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? j.push(o) : H.push(o), o.observers && gn(o)), s || (o.state = Q);
221
- }
222
- if (j.length > 1e6)
223
- throw j = [], new Error();
224
- }, !1)), t;
225
- }
226
- function ye(e) {
227
- if (!e.fn)
228
- return;
229
- nt(e);
230
- const t = k, n = P, r = et;
231
- P = k = e, ur(e, e.value, r), P = n, k = t;
232
- }
233
- function ur(e, t, n) {
234
- let r;
235
- try {
236
- r = e.fn(t);
237
- } catch (i) {
238
- e.pure && (e.state = Q), pn(i);
239
- }
240
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? mn(e, r) : e.value = r, e.updatedAt = n);
241
- }
242
- function tt(e, t, n, r = Q, i) {
243
- const o = {
244
- fn: e,
245
- state: r,
246
- updatedAt: null,
247
- owned: null,
248
- sources: null,
249
- sourceSlots: null,
250
- cleanups: null,
251
- value: t,
252
- owner: k,
253
- context: null,
254
- pure: n
255
- };
256
- return k === null || k !== ln && (k.owned ? k.owned.push(o) : k.owned = [o]), o;
257
- }
258
- function $e(e) {
259
- const t = te;
260
- if (e.state === 0 || t)
261
- return;
262
- if (e.state === xe || t)
263
- return Se(e);
264
- if (e.suspense && V(e.suspense.inFallback))
265
- return e.suspense.effects.push(e);
266
- const n = [e];
267
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < et); )
268
- (e.state || t) && n.push(e);
269
- for (let r = n.length - 1; r >= 0; r--)
270
- if (e = n[r], e.state === Q || t)
271
- ye(e);
272
- else if (e.state === xe || t) {
273
- const i = j;
274
- j = null, de(() => Se(e, n[0]), !1), j = i;
275
- }
276
- }
277
- function de(e, t) {
278
- if (j)
279
- return e();
280
- let n = !1;
281
- t || (j = []), H ? n = !0 : H = [], et++;
282
- try {
283
- const r = e();
284
- return dr(n), r;
285
- } catch (r) {
286
- j || (H = null), pn(r);
287
- }
288
- }
289
- function dr(e) {
290
- if (j && (hn(j), j = null), e)
291
- return;
292
- const t = H;
293
- H = null, t.length && de(() => an(t), !1);
294
- }
295
- function hn(e) {
296
- for (let t = 0; t < e.length; t++)
297
- $e(e[t]);
298
- }
299
- function fr(e) {
300
- let t, n = 0;
301
- for (t = 0; t < e.length; t++) {
302
- const r = e[t];
303
- r.user ? e[n++] = r : $e(r);
304
- }
305
- for ($.context && We(), t = 0; t < n; t++)
306
- $e(e[t]);
307
- }
308
- function Se(e, t) {
309
- const n = te;
310
- e.state = 0;
311
- for (let r = 0; r < e.sources.length; r += 1) {
312
- const i = e.sources[r];
313
- i.sources && (i.state === Q || n ? i !== t && $e(i) : (i.state === xe || n) && Se(i, t));
314
- }
315
- }
316
- function gn(e) {
317
- const t = te;
318
- for (let n = 0; n < e.observers.length; n += 1) {
319
- const r = e.observers[n];
320
- (!r.state || t) && (r.state = xe, r.pure ? j.push(r) : H.push(r), r.observers && gn(r));
321
- }
322
- }
323
- function nt(e) {
324
- let t;
325
- if (e.sources)
326
- for (; e.sources.length; ) {
327
- const n = e.sources.pop(), r = e.sourceSlots.pop(), i = n.observers;
328
- if (i && i.length) {
329
- const o = i.pop(), s = n.observerSlots.pop();
330
- r < i.length && (o.sourceSlots[s] = r, i[r] = o, n.observerSlots[r] = s);
331
- }
332
- }
333
- if (e.owned) {
334
- for (t = 0; t < e.owned.length; t++)
335
- nt(e.owned[t]);
336
- e.owned = null;
337
- }
338
- if (e.cleanups) {
339
- for (t = 0; t < e.cleanups.length; t++)
340
- e.cleanups[t]();
341
- e.cleanups = null;
342
- }
343
- e.state = 0, e.context = null;
344
- }
345
- function mr(e) {
346
- return e instanceof Error || typeof e == "string" ? e : new Error("Unknown error");
347
- }
348
- function pn(e) {
349
- throw e = mr(e), e;
350
- }
351
- function rt(e, t) {
352
- return e ? e.context && e.context[t] !== void 0 ? e.context[t] : rt(e.owner, t) : void 0;
353
- }
354
- function He(e) {
355
- if (typeof e == "function" && !e.length)
356
- return He(e());
357
- if (Array.isArray(e)) {
358
- const t = [];
359
- for (let n = 0; n < e.length; n++) {
360
- const r = He(e[n]);
361
- Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
362
- }
363
- return t;
364
- }
365
- return e;
366
- }
367
- function hr(e) {
368
- return function(n) {
369
- let r;
370
- return w(() => r = V(() => (k.context = {
371
- [e]: n.value
372
- }, cr(() => n.children)))), r;
373
- };
374
- }
375
- const gr = Symbol("fallback");
376
- function vt(e) {
377
- for (let t = 0; t < e.length; t++)
378
- e[t]();
379
- }
380
- function pr(e, t, n = {}) {
381
- let r = [], i = [], o = [], s = 0, a = t.length > 1 ? [] : null;
382
- return ar(() => vt(o)), () => {
383
- let l = e() || [], c, u;
384
- return l[Ke], V(() => {
385
- let d = l.length, m, v, _, S, C, R, I, D, W;
386
- if (d === 0)
387
- s !== 0 && (vt(o), o = [], r = [], i = [], s = 0, a && (a = [])), n.fallback && (r = [gr], i[0] = Fe((Re) => (o[0] = Re, n.fallback())), s = 1);
388
- else if (s === 0) {
389
- for (i = new Array(d), u = 0; u < d; u++)
390
- r[u] = l[u], i[u] = Fe(f);
391
- s = d;
392
- } else {
393
- for (_ = new Array(d), S = new Array(d), a && (C = new Array(d)), R = 0, I = Math.min(s, d); R < I && r[R] === l[R]; R++)
394
- ;
395
- for (I = s - 1, D = d - 1; I >= R && D >= R && r[I] === l[D]; I--, D--)
396
- _[D] = i[I], S[D] = o[I], a && (C[D] = a[I]);
397
- for (m = /* @__PURE__ */ new Map(), v = new Array(D + 1), u = D; u >= R; u--)
398
- W = l[u], c = m.get(W), v[u] = c === void 0 ? -1 : c, m.set(W, u);
399
- for (c = R; c <= I; c++)
400
- W = r[c], u = m.get(W), u !== void 0 && u !== -1 ? (_[u] = i[c], S[u] = o[c], a && (C[u] = a[c]), u = v[u], m.set(W, u)) : o[c]();
401
- for (u = R; u < d; u++)
402
- u in _ ? (i[u] = _[u], o[u] = S[u], a && (a[u] = C[u], a[u](u))) : i[u] = Fe(f);
403
- i = i.slice(0, s = d), r = l.slice(0);
404
- }
405
- return i;
406
- });
407
- function f(d) {
408
- if (o[u] = d, a) {
409
- const [m, v] = O(u);
410
- return a[u] = v, t(l[u], m);
411
- }
412
- return t(l[u]);
413
- }
414
- };
415
- }
416
- let yr = !1;
417
- function p(e, t) {
418
- if (yr && $.context) {
419
- const n = $.context;
420
- We(or());
421
- const r = V(() => e(t || {}));
422
- return We(n), r;
423
- }
424
- return V(() => e(t || {}));
425
- }
426
- function ve() {
427
- return !0;
428
- }
429
- const yn = {
430
- get(e, t, n) {
431
- return t === J ? n : e.get(t);
432
- },
433
- has(e, t) {
434
- return e.has(t);
435
- },
436
- set: ve,
437
- deleteProperty: ve,
438
- getOwnPropertyDescriptor(e, t) {
439
- return {
440
- configurable: !0,
441
- enumerable: !0,
442
- get() {
443
- return e.get(t);
444
- },
445
- set: ve,
446
- deleteProperty: ve
447
- };
448
- },
449
- ownKeys(e) {
450
- return e.keys();
451
- }
452
- };
453
- function Be(e) {
454
- return (e = typeof e == "function" ? e() : e) == null ? {} : e;
455
- }
456
- function fe(...e) {
457
- return new Proxy({
458
- get(t) {
459
- for (let n = e.length - 1; n >= 0; n--) {
460
- const r = Be(e[n])[t];
461
- if (r !== void 0)
462
- return r;
463
- }
464
- },
465
- has(t) {
466
- for (let n = e.length - 1; n >= 0; n--)
467
- if (t in Be(e[n]))
468
- return !0;
469
- return !1;
470
- },
471
- keys() {
472
- const t = [];
473
- for (let n = 0; n < e.length; n++)
474
- t.push(...Object.keys(Be(e[n])));
475
- return [...new Set(t)];
476
- }
477
- }, yn);
478
- }
479
- function br(e, ...t) {
480
- const n = new Set(t.flat()), r = Object.getOwnPropertyDescriptors(e), i = t.map((o) => {
481
- const s = {};
482
- for (let a = 0; a < o.length; a++) {
483
- const l = o[a];
484
- Object.defineProperty(s, l, r[l] ? r[l] : {
485
- get() {
486
- return e[l];
487
- },
488
- set() {
489
- return !0;
490
- }
491
- });
492
- }
493
- return s;
494
- });
495
- return i.push(new Proxy({
496
- get(o) {
497
- return n.has(o) ? void 0 : e[o];
498
- },
499
- has(o) {
500
- return n.has(o) ? !1 : o in e;
501
- },
502
- keys() {
503
- return Object.keys(e).filter((o) => !n.has(o));
504
- }
505
- }, yn)), i;
506
- }
507
- function G(e) {
508
- const t = "fallback" in e && {
509
- fallback: () => e.fallback
510
- };
511
- return X(pr(() => e.each, e.children, t || void 0));
512
- }
513
- function A(e) {
514
- let t = !1;
515
- const n = e.keyed, r = X(() => e.when, void 0, {
516
- equals: (i, o) => t ? i === o : !i == !o
517
- });
518
- return X(() => {
519
- const i = r();
520
- if (i) {
521
- const o = e.children, s = typeof o == "function" && o.length > 0;
522
- return t = n || s, s ? V(() => o(i)) : o;
523
- }
524
- return e.fallback;
525
- });
526
- }
527
- const vr = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], wr = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...vr]), _r = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), xr = {
528
- className: "class",
529
- htmlFor: "for"
530
- }, wt = {
531
- class: "className",
532
- formnovalidate: "formNoValidate",
533
- ismap: "isMap",
534
- nomodule: "noModule",
535
- playsinline: "playsInline",
536
- readonly: "readOnly"
537
- }, $r = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Sr = /* @__PURE__ */ new Set([
538
- "altGlyph",
539
- "altGlyphDef",
540
- "altGlyphItem",
541
- "animate",
542
- "animateColor",
543
- "animateMotion",
544
- "animateTransform",
545
- "circle",
546
- "clipPath",
547
- "color-profile",
548
- "cursor",
549
- "defs",
550
- "desc",
551
- "ellipse",
552
- "feBlend",
553
- "feColorMatrix",
554
- "feComponentTransfer",
555
- "feComposite",
556
- "feConvolveMatrix",
557
- "feDiffuseLighting",
558
- "feDisplacementMap",
559
- "feDistantLight",
560
- "feFlood",
561
- "feFuncA",
562
- "feFuncB",
563
- "feFuncG",
564
- "feFuncR",
565
- "feGaussianBlur",
566
- "feImage",
567
- "feMerge",
568
- "feMergeNode",
569
- "feMorphology",
570
- "feOffset",
571
- "fePointLight",
572
- "feSpecularLighting",
573
- "feSpotLight",
574
- "feTile",
575
- "feTurbulence",
576
- "filter",
577
- "font",
578
- "font-face",
579
- "font-face-format",
580
- "font-face-name",
581
- "font-face-src",
582
- "font-face-uri",
583
- "foreignObject",
584
- "g",
585
- "glyph",
586
- "glyphRef",
587
- "hkern",
588
- "image",
589
- "line",
590
- "linearGradient",
591
- "marker",
592
- "mask",
593
- "metadata",
594
- "missing-glyph",
595
- "mpath",
596
- "path",
597
- "pattern",
598
- "polygon",
599
- "polyline",
600
- "radialGradient",
601
- "rect",
602
- "set",
603
- "stop",
604
- "svg",
605
- "switch",
606
- "symbol",
607
- "text",
608
- "textPath",
609
- "tref",
610
- "tspan",
611
- "use",
612
- "view",
613
- "vkern"
614
- ]), Pr = {
615
- xlink: "http://www.w3.org/1999/xlink",
616
- xml: "http://www.w3.org/XML/1998/namespace"
617
- };
618
- function _t(e, t) {
619
- return X(e, void 0, t ? void 0 : {
620
- equals: t
621
- });
622
- }
623
- function Or(e, t, n) {
624
- let r = n.length, i = t.length, o = r, s = 0, a = 0, l = t[i - 1].nextSibling, c = null;
625
- for (; s < i || a < o; ) {
626
- if (t[s] === n[a]) {
627
- s++, a++;
628
- continue;
629
- }
630
- for (; t[i - 1] === n[o - 1]; )
631
- i--, o--;
632
- if (i === s) {
633
- const u = o < r ? a ? n[a - 1].nextSibling : n[o - a] : l;
634
- for (; a < o; )
635
- e.insertBefore(n[a++], u);
636
- } else if (o === a)
637
- for (; s < i; )
638
- (!c || !c.has(t[s])) && t[s].remove(), s++;
639
- else if (t[s] === n[o - 1] && n[a] === t[i - 1]) {
640
- const u = t[--i].nextSibling;
641
- e.insertBefore(n[a++], t[s++].nextSibling), e.insertBefore(n[--o], u), t[i] = n[o];
642
- } else {
643
- if (!c) {
644
- c = /* @__PURE__ */ new Map();
645
- let f = a;
646
- for (; f < o; )
647
- c.set(n[f], f++);
648
- }
649
- const u = c.get(t[s]);
650
- if (u != null)
651
- if (a < u && u < o) {
652
- let f = s, d = 1, m;
653
- for (; ++f < i && f < o && !((m = c.get(t[f])) == null || m !== u + d); )
654
- d++;
655
- if (d > u - a) {
656
- const v = t[s];
657
- for (; a < u; )
658
- e.insertBefore(n[a++], v);
659
- } else
660
- e.replaceChild(n[a++], t[s++]);
661
- } else
662
- s++;
663
- else
664
- t[s++].remove();
665
- }
666
- }
667
- }
668
- const xt = "_$DX_DELEGATE";
669
- function T(e, t, n) {
670
- const r = document.createElement("template");
671
- r.innerHTML = e;
672
- let i = r.content.firstChild;
673
- return n && (i = i.firstChild), i;
674
- }
675
- function ot(e, t = window.document) {
676
- const n = t[xt] || (t[xt] = /* @__PURE__ */ new Set());
677
- for (let r = 0, i = e.length; r < i; r++) {
678
- const o = e[r];
679
- n.has(o) || (n.add(o), t.addEventListener(o, jr));
680
- }
681
- }
682
- function x(e, t, n) {
683
- n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
684
- }
685
- function kr(e, t, n, r) {
686
- r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r);
687
- }
688
- function U(e, t) {
689
- t == null ? e.removeAttribute("class") : e.className = t;
690
- }
691
- function Cr(e, t, n, r) {
692
- if (r)
693
- Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
694
- else if (Array.isArray(n)) {
695
- const i = n[0];
696
- e.addEventListener(t, n[0] = (o) => i.call(e, n[1], o));
697
- } else
698
- e.addEventListener(t, n);
699
- }
700
- function Ir(e, t, n = {}) {
701
- const r = Object.keys(t || {}), i = Object.keys(n);
702
- let o, s;
703
- for (o = 0, s = i.length; o < s; o++) {
704
- const a = i[o];
705
- !a || a === "undefined" || t[a] || ($t(e, a, !1), delete n[a]);
706
- }
707
- for (o = 0, s = r.length; o < s; o++) {
708
- const a = r[o], l = !!t[a];
709
- !a || a === "undefined" || n[a] === l || !l || ($t(e, a, !0), n[a] = l);
710
- }
711
- return n;
712
- }
713
- function le(e, t, n) {
714
- if (!t)
715
- return n ? x(e, "style") : t;
716
- const r = e.style;
717
- if (typeof t == "string")
718
- return r.cssText = t;
719
- typeof n == "string" && (r.cssText = n = void 0), n || (n = {}), t || (t = {});
720
- let i, o;
721
- for (o in n)
722
- t[o] == null && r.removeProperty(o), delete n[o];
723
- for (o in t)
724
- i = t[o], i !== n[o] && (r.setProperty(o, i), n[o] = i);
725
- return n;
726
- }
727
- function ne(e, t, n, r) {
728
- typeof t == "function" ? w((i) => Pt(e, t(), i, n, r)) : Pt(e, t, void 0, n, r);
729
- }
730
- function it(e, t, n) {
731
- return V(() => e(t, n));
732
- }
733
- function N(e, t, n, r) {
734
- if (n !== void 0 && !r && (r = []), typeof t != "function")
735
- return ce(e, t, r, n);
736
- w((i) => ce(e, t(), i, n), r);
737
- }
738
- function Er(e, t, n, r, i = {}, o = !1) {
739
- t || (t = {});
740
- for (const s in i)
741
- if (!(s in t)) {
742
- if (s === "children")
743
- continue;
744
- i[s] = St(e, s, null, i[s], n, o);
745
- }
746
- for (const s in t) {
747
- if (s === "children") {
748
- r || ce(e, t.children);
749
- continue;
750
- }
751
- const a = t[s];
752
- i[s] = St(e, s, a, i[s], n, o);
753
- }
754
- }
755
- function Ar(e) {
756
- let t, n;
757
- return !$.context || !(t = $.registry.get(n = Rr())) ? e.cloneNode(!0) : ($.completed && $.completed.add(t), $.registry.delete(n), t);
758
- }
759
- function Tr(e) {
760
- return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
761
- }
762
- function $t(e, t, n) {
763
- const r = t.trim().split(/\s+/);
764
- for (let i = 0, o = r.length; i < o; i++)
765
- e.classList.toggle(r[i], n);
766
- }
767
- function St(e, t, n, r, i, o) {
768
- let s, a, l;
769
- if (t === "style")
770
- return le(e, n, r);
771
- if (t === "classList")
772
- return Ir(e, n, r);
773
- if (n === r)
774
- return r;
775
- if (t === "ref")
776
- o || n(e);
777
- else if (t.slice(0, 3) === "on:") {
778
- const c = t.slice(3);
779
- r && e.removeEventListener(c, r), n && e.addEventListener(c, n);
780
- } else if (t.slice(0, 10) === "oncapture:") {
781
- const c = t.slice(10);
782
- r && e.removeEventListener(c, r, !0), n && e.addEventListener(c, n, !0);
783
- } else if (t.slice(0, 2) === "on") {
784
- const c = t.slice(2).toLowerCase(), u = $r.has(c);
785
- if (!u && r) {
786
- const f = Array.isArray(r) ? r[0] : r;
787
- e.removeEventListener(c, f);
788
- }
789
- (u || n) && (Cr(e, c, n, u), u && ot([c]));
790
- } else if ((l = _r.has(t)) || !i && (wt[t] || (a = wr.has(t))) || (s = e.nodeName.includes("-")))
791
- t === "class" || t === "className" ? U(e, n) : s && !a && !l ? e[Tr(t)] = n : e[wt[t] || t] = n;
792
- else {
793
- const c = i && t.indexOf(":") > -1 && Pr[t.split(":")[0]];
794
- c ? kr(e, c, t, n) : x(e, xr[t] || t, n);
795
- }
796
- return n;
797
- }
798
- function jr(e) {
799
- const t = `$$${e.type}`;
800
- let n = e.composedPath && e.composedPath()[0] || e.target;
801
- for (e.target !== n && Object.defineProperty(e, "target", {
802
- configurable: !0,
803
- value: n
804
- }), Object.defineProperty(e, "currentTarget", {
805
- configurable: !0,
806
- get() {
807
- return n || document;
808
- }
809
- }), $.registry && !$.done && ($.done = !0, document.querySelectorAll("[id^=pl-]").forEach((r) => r.remove())); n !== null; ) {
810
- const r = n[t];
811
- if (r && !n.disabled) {
812
- const i = n[`${t}Data`];
813
- if (i !== void 0 ? r.call(n, i, e) : r.call(n, e), e.cancelBubble)
814
- return;
815
- }
816
- n = n.host && n.host !== n && n.host instanceof Node ? n.host : n.parentNode;
817
- }
818
- }
819
- function Pt(e, t, n = {}, r, i) {
820
- return t || (t = {}), i || w(() => n.children = ce(e, t.children, n.children)), w(() => t.ref && t.ref(e)), w(() => Er(e, t, r, !0, n, !0)), n;
821
- }
822
- function ce(e, t, n, r, i) {
823
- for ($.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
824
- n = n();
825
- if (t === n)
826
- return n;
827
- const o = typeof t, s = r !== void 0;
828
- if (e = s && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
829
- if ($.context)
830
- return n;
831
- if (o === "number" && (t = t.toString()), s) {
832
- let a = n[0];
833
- a && a.nodeType === 3 ? a.data = t : a = document.createTextNode(t), n = ie(e, n, r, a);
834
- } else
835
- n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
836
- } else if (t == null || o === "boolean") {
837
- if ($.context)
838
- return n;
839
- n = ie(e, n, r);
840
- } else {
841
- if (o === "function")
842
- return w(() => {
843
- let a = t();
844
- for (; typeof a == "function"; )
845
- a = a();
846
- n = ce(e, a, n, r);
847
- }), () => n;
848
- if (Array.isArray(t)) {
849
- const a = [], l = n && Array.isArray(n);
850
- if (qe(a, t, n, i))
851
- return w(() => n = ce(e, a, n, r, !0)), () => n;
852
- if ($.context) {
853
- if (!a.length)
854
- return n;
855
- for (let c = 0; c < a.length; c++)
856
- if (a[c].parentNode)
857
- return n = a;
858
- }
859
- if (a.length === 0) {
860
- if (n = ie(e, n, r), s)
861
- return n;
862
- } else
863
- l ? n.length === 0 ? Ot(e, a, r) : Or(e, n, a) : (n && ie(e), Ot(e, a));
864
- n = a;
865
- } else if (t instanceof Node) {
866
- if ($.context && t.parentNode)
867
- return n = s ? [t] : t;
868
- if (Array.isArray(n)) {
869
- if (s)
870
- return n = ie(e, n, r, t);
871
- ie(e, n, null, t);
872
- } else
873
- n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
874
- n = t;
875
- }
876
- }
877
- return n;
878
- }
879
- function qe(e, t, n, r) {
880
- let i = !1;
881
- for (let o = 0, s = t.length; o < s; o++) {
882
- let a = t[o], l = n && n[o];
883
- if (a instanceof Node)
884
- e.push(a);
885
- else if (!(a == null || a === !0 || a === !1))
886
- if (Array.isArray(a))
887
- i = qe(e, a, l) || i;
888
- else if (typeof a == "function")
889
- if (r) {
890
- for (; typeof a == "function"; )
891
- a = a();
892
- i = qe(e, Array.isArray(a) ? a : [a], Array.isArray(l) ? l : [l]) || i;
893
- } else
894
- e.push(a), i = !0;
895
- else {
896
- const c = String(a);
897
- l && l.nodeType === 3 && l.data === c ? e.push(l) : e.push(document.createTextNode(c));
898
- }
899
- }
900
- return i;
901
- }
902
- function Ot(e, t, n) {
903
- for (let r = 0, i = t.length; r < i; r++)
904
- e.insertBefore(t[r], n);
905
- }
906
- function ie(e, t, n, r) {
907
- if (n === void 0)
908
- return e.textContent = "";
909
- const i = r || document.createTextNode("");
910
- if (t.length) {
911
- let o = !1;
912
- for (let s = t.length - 1; s >= 0; s--) {
913
- const a = t[s];
914
- if (i !== a) {
915
- const l = a.parentNode === e;
916
- !o && !s ? l ? e.replaceChild(i, a) : e.insertBefore(i, n) : l && a.remove();
917
- } else
918
- o = !0;
919
- }
920
- } else
921
- e.insertBefore(i, n);
922
- return [i];
923
- }
924
- function Rr() {
925
- const e = $.context;
926
- return `${e.id}${e.count++}`;
927
- }
928
- const Nr = "http://www.w3.org/2000/svg";
929
- function Fr(e, t = !1) {
930
- return t ? document.createElementNS(Nr, e) : document.createElement(e);
931
- }
932
- function Pe(e) {
933
- const [t, n] = br(e, ["component"]), r = X(() => t.component);
934
- return X(() => {
935
- const i = r();
936
- switch (typeof i) {
937
- case "function":
938
- return V(() => i(n));
939
- case "string":
940
- const o = Sr.has(i), s = $.context ? Ar() : Fr(i, o);
941
- return ne(s, n, o), s;
942
- }
943
- });
944
- }
945
- let Br = { data: "" }, Lr = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Br, Dr = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Mr = /\/\*[^]*?\*\/| +/g, kt = /\n+/g, Z = (e, t) => {
946
- let n = "", r = "", i = "";
947
- for (let o in e) {
948
- let s = e[o];
949
- o[0] == "@" ? o[1] == "i" ? n = o + " " + s + ";" : r += o[1] == "f" ? Z(s, o) : o + "{" + Z(s, o[1] == "k" ? "" : t) + "}" : typeof s == "object" ? r += Z(s, t ? t.replace(/([^,])+/g, (a) => o.replace(/(^:.*)|([^,])+/g, (l) => /&/.test(l) ? l.replace(/&/g, a) : a ? a + " " + l : l)) : o) : s != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), i += Z.p ? Z.p(o, s) : o + ":" + s + ";");
950
- }
951
- return n + (t && i ? t + "{" + i + "}" : i) + r;
952
- }, K = {}, bn = (e) => {
953
- if (typeof e == "object") {
954
- let t = "";
955
- for (let n in e)
956
- t += n + bn(e[n]);
957
- return t;
958
- }
959
- return e;
960
- }, Vr = (e, t, n, r, i) => {
961
- let o = bn(e), s = K[o] || (K[o] = ((l) => {
962
- let c = 0, u = 11;
963
- for (; c < l.length; )
964
- u = 101 * u + l.charCodeAt(c++) >>> 0;
965
- return "go" + u;
966
- })(o));
967
- if (!K[s]) {
968
- let l = o !== e ? e : ((c) => {
969
- let u, f, d = [{}];
970
- for (; u = Dr.exec(c.replace(Mr, "")); )
971
- u[4] ? d.shift() : u[3] ? (f = u[3].replace(kt, " ").trim(), d.unshift(d[0][f] = d[0][f] || {})) : d[0][u[1]] = u[2].replace(kt, " ").trim();
972
- return d[0];
973
- })(e);
974
- K[s] = Z(i ? { ["@keyframes " + s]: l } : l, n ? "" : "." + s);
975
- }
976
- let a = n && K.g ? K.g : null;
977
- return n && (K.g = K[s]), ((l, c, u, f) => {
978
- f ? c.data = c.data.replace(f, l) : c.data.indexOf(l) === -1 && (c.data = u ? l + c.data : c.data + l);
979
- })(K[s], t, r, a), s;
980
- }, Ur = (e, t, n) => e.reduce((r, i, o) => {
981
- let s = t[o];
982
- if (s && s.call) {
983
- let a = s(n), l = a && a.props && a.props.className || /^go/.test(a) && a;
984
- s = l ? "." + l : a && typeof a == "object" ? a.props ? "" : Z(a, "") : a === !1 ? "" : a;
985
- }
986
- return r + i + (s == null ? "" : s);
987
- }, "");
988
- function q(e) {
989
- let t = this || {}, n = e.call ? e(t.p) : e;
990
- return Vr(n.unshift ? n.raw ? Ur(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, i) => Object.assign(r, i && i.call ? i(t.p) : i), {}) : n, Lr(t.target), t.g, t.o, t.k);
991
- }
992
- q.bind({ g: 1 });
993
- q.bind({ k: 1 });
994
- var Ee = lr({
995
- content: null,
996
- context: {},
997
- state: {},
998
- apiKey: null,
999
- registeredComponents: {},
1000
- inheritedStyles: {}
1001
- });
1002
- function Wr() {
1003
- return B() && window.self !== window.top;
1004
- }
1005
- function z() {
1006
- return Wr() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1007
- }
1008
- const Ae = (e) => JSON.parse(JSON.stringify(e)), vn = {
1009
- small: {
1010
- min: 320,
1011
- default: 321,
1012
- max: 640
1013
- },
1014
- medium: {
1015
- min: 641,
1016
- default: 642,
1017
- max: 991
1018
- },
1019
- large: {
1020
- min: 990,
1021
- default: 991,
1022
- max: 1200
1023
- }
1024
- }, Ct = (e, t = vn) => `@media (max-width: ${t[e].max}px)`, wn = ({ small: e, medium: t }) => {
1025
- const n = Ae(vn);
1026
- if (!e || !t)
1027
- return n;
1028
- const r = Math.floor(e / 2);
1029
- n.small = {
1030
- max: e,
1031
- min: r,
1032
- default: r + 1
1033
- };
1034
- const i = n.small.max + 1;
1035
- n.medium = {
1036
- max: t,
1037
- min: i,
1038
- default: i + 1
1039
- };
1040
- const o = n.medium.max + 1;
1041
- return n.large = {
1042
- max: 2e3,
1043
- min: o,
1044
- default: o + 1
1045
- }, n;
1046
- };
1047
- function ge({
1048
- code: e,
1049
- context: t,
1050
- state: n,
1051
- event: r,
1052
- isExpression: i = !0
1053
- }) {
1054
- if (e === "") {
1055
- console.warn("Skipping evaluation of empty code block.");
1056
- return;
1057
- }
1058
- const o = {
1059
- isEditing: z(),
1060
- isBrowser: B(),
1061
- isServer: !B()
1062
- }, a = i && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
1063
- try {
1064
- return new Function("builder", "Builder", "state", "context", "event", a)(o, o, n, t, r);
1065
- } catch (l) {
1066
- console.warn(`Builder custom code error:
1067
- While Evaluating:
1068
- `, a, `
1069
- `, l);
1070
- }
1071
- }
1072
- const Kr = (e, t, n) => {
1073
- if (Object(e) !== e)
1074
- return e;
1075
- const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
1076
- return r.slice(0, -1).reduce((i, o, s) => Object(i[o]) === i[o] ? i[o] : i[o] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
1077
- };
1078
- var Hr = Object.defineProperty, qr = Object.defineProperties, zr = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Gr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable, Et = (e, t, n) => t in e ? Hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Le = (e, t) => {
1079
- for (var n in t || (t = {}))
1080
- Gr.call(t, n) && Et(e, n, t[n]);
1081
- if (It)
1082
- for (var n of It(t))
1083
- Jr.call(t, n) && Et(e, n, t[n]);
1084
- return e;
1085
- }, Xr = (e, t) => qr(e, zr(t));
1086
- const Yr = ({
1087
- block: e,
1088
- context: t,
1089
- state: n
1090
- }) => {
1091
- if (!e.bindings)
1092
- return e;
1093
- const r = Ae(e), i = Xr(Le({}, r), {
1094
- properties: Le({}, r.properties),
1095
- actions: Le({}, r.actions)
1096
- });
1097
- for (const o in e.bindings) {
1098
- const s = e.bindings[o], a = ge({ code: s, state: n, context: t });
1099
- Kr(i, o, a);
1100
- }
1101
- return i;
1102
- };
1103
- function st({
1104
- block: e,
1105
- context: t,
1106
- shouldEvaluateBindings: n,
1107
- state: r
1108
- }) {
1109
- const i = e;
1110
- return n ? Yr({ block: i, state: r, context: t }) : i;
1111
- }
1112
- const Qr = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), re = (e) => e != null, _n = (e) => Object.entries(e).map(([n, r]) => {
1113
- if (typeof r == "string")
1114
- return `${Qr(n)}: ${r};`;
1115
- }).filter(re), me = (e) => _n(e).join(`
1116
- `), De = ({
1117
- mediaQuery: e,
1118
- className: t,
1119
- styles: n
1120
- }) => {
1121
- const r = `.${t} {
1122
- ${me(n)}
1123
- }`;
1124
- return e ? `${e} {
1125
- ${r}
1126
- }` : r;
1127
- }, Zr = /* @__PURE__ */ T("<div></div>");
1128
- function at(e) {
1129
- function t() {
1130
- return `<${n()}>${e.styles}</${n()}>`;
1131
- }
1132
- function n() {
1133
- return "style";
1134
- }
1135
- return p(A, {
1136
- get fallback() {
1137
- return p(Pe, {
1138
- get component() {
1139
- return n();
1140
- },
1141
- get children() {
1142
- return e.styles;
1143
- }
1144
- });
1145
- },
1146
- when: oe === "svelte",
1147
- get children() {
1148
- const r = Zr.cloneNode(!0);
1149
- return w(() => r.innerHTML = t()), r;
1150
- }
1151
- });
1152
- }
1153
- function lt(e) {
1154
- function t() {
1155
- return st({
1156
- block: e.block,
1157
- state: e.context.state,
1158
- context: e.context.context,
1159
- shouldEvaluateBindings: !0
1160
- });
1161
- }
1162
- function n() {
1163
- var m;
1164
- const r = t().responsiveStyles, i = e.context.content, o = wn(((m = i == null ? void 0 : i.meta) == null ? void 0 : m.breakpoints) || {}), s = r == null ? void 0 : r.large, a = r == null ? void 0 : r.medium, l = r == null ? void 0 : r.small, c = t().id, u = s ? De({
1165
- className: c,
1166
- styles: s
1167
- }) : "", f = a ? De({
1168
- className: c,
1169
- styles: a,
1170
- mediaQuery: Ct("medium", o)
1171
- }) : "", d = l ? De({
1172
- className: c,
1173
- styles: l,
1174
- mediaQuery: Ct("small", o)
1175
- }) : "";
1176
- return [u, f, d].join(" ");
1177
- }
1178
- return p(A, {
1179
- get when() {
1180
- return n();
1181
- },
1182
- get children() {
1183
- return p(at, {
1184
- get styles() {
1185
- return n();
1186
- }
1187
- });
1188
- }
1189
- });
1190
- }
1191
- function eo(e) {
1192
- return e.charAt(0).toUpperCase() + e.slice(1);
1193
- }
1194
- const to = (e) => `on${eo(e)}`, no = (e, t) => (n) => ge({
1195
- code: e,
1196
- context: t.context,
1197
- state: t.state,
1198
- event: n,
1199
- isExpression: !1
1200
- });
1201
- function ro(e) {
1202
- var t;
1203
- const n = {}, r = (t = e.block.actions) != null ? t : {};
1204
- for (const i in r) {
1205
- if (!r.hasOwnProperty(i))
1206
- continue;
1207
- const o = r[i];
1208
- n[to(i)] = no(o, e);
1209
- }
1210
- return n;
1211
- }
1212
- var oo = Object.defineProperty, io = Object.defineProperties, so = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, ao = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, Tt = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, jt = (e, t) => {
1213
- for (var n in t || (t = {}))
1214
- ao.call(t, n) && Tt(e, n, t[n]);
1215
- if (At)
1216
- for (var n of At(t))
1217
- lo.call(t, n) && Tt(e, n, t[n]);
1218
- return e;
1219
- }, co = (e, t) => io(e, so(t));
1220
- function uo(e) {
1221
- var t;
1222
- return co(jt(jt({}, (t = e.component) == null ? void 0 : t.options), e.options), {
1223
- builderBlock: e
1224
- });
1225
- }
1226
- var fo = Object.defineProperty, mo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, go = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, Nt = (e, t, n) => t in e ? fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yo = (e, t) => {
1227
- for (var n in t || (t = {}))
1228
- go.call(t, n) && Nt(e, n, t[n]);
1229
- if (Rt)
1230
- for (var n of Rt(t))
1231
- po.call(t, n) && Nt(e, n, t[n]);
1232
- return e;
1233
- }, bo = (e, t) => mo(e, ho(t));
1234
- function vo(e) {
1235
- var t;
1236
- const n = bo(yo({}, e.properties), {
1237
- "builder-id": e.id,
1238
- style: wo(e.style),
1239
- class: [e.id, "builder-block", e.class, (t = e.properties) == null ? void 0 : t.class].filter(Boolean).join(" ")
1240
- });
1241
- return n;
1242
- }
1243
- function wo(e) {
1244
- if (!!e)
1245
- switch (oe) {
1246
- case "svelte":
1247
- case "vue2":
1248
- case "vue3":
1249
- case "solid":
1250
- return _n(e).join(" ");
1251
- case "qwik":
1252
- case "reactNative":
1253
- case "react":
1254
- return e;
1255
- }
1256
- }
1257
- function _o(e) {
1258
- return e.tagName || "div";
1259
- }
1260
- var xo = Object.defineProperty, $o = Object.defineProperties, So = Object.getOwnPropertyDescriptors, Oe = Object.getOwnPropertySymbols, xn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Ft = (e, t, n) => t in e ? xo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bt = (e, t) => {
1261
- for (var n in t || (t = {}))
1262
- xn.call(t, n) && Ft(e, n, t[n]);
1263
- if (Oe)
1264
- for (var n of Oe(t))
1265
- $n.call(t, n) && Ft(e, n, t[n]);
1266
- return e;
1267
- }, Lt = (e, t) => $o(e, So(t)), Po = (e, t) => {
1268
- var n = {};
1269
- for (var r in e)
1270
- xn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
1271
- if (e != null && Oe)
1272
- for (var r of Oe(e))
1273
- t.indexOf(r) < 0 && $n.call(e, r) && (n[r] = e[r]);
1274
- return n;
1275
- };
1276
- const Oo = [
1277
- "area",
1278
- "base",
1279
- "br",
1280
- "col",
1281
- "embed",
1282
- "hr",
1283
- "img",
1284
- "input",
1285
- "keygen",
1286
- "link",
1287
- "meta",
1288
- "param",
1289
- "source",
1290
- "track",
1291
- "wbr"
1292
- ], Me = (e) => typeof e == "string" && Oo.includes(e.toLowerCase()), ko = ({
1293
- block: e,
1294
- context: t
1295
- }) => {
1296
- var n;
1297
- const r = (n = st({
1298
- block: e,
1299
- state: t.state,
1300
- context: t.context,
1301
- shouldEvaluateBindings: !1
1302
- }).component) == null ? void 0 : n.name;
1303
- if (!r)
1304
- return null;
1305
- const i = t.registeredComponents[r];
1306
- if (i)
1307
- return i;
1308
- console.warn(`
1309
- Could not find a registered component named "${r}".
1310
- If you registered it, is the file that registered it imported by the file that needs to render it?`);
1311
- }, Co = ({
1312
- block: e,
1313
- context: t
1314
- }) => {
1315
- const n = e, { repeat: r } = n, i = Po(n, ["repeat"]);
1316
- if (!(r != null && r.collection))
1317
- return;
1318
- const o = ge({
1319
- code: r.collection,
1320
- state: t.state,
1321
- context: t.context
1322
- });
1323
- if (!Array.isArray(o))
1324
- return;
1325
- const s = r.collection.split(".").pop(), a = r.itemName || (s ? s + "Item" : "item");
1326
- return o.map((c, u) => ({
1327
- context: Lt(Bt({}, t), {
1328
- state: Lt(Bt({}, t.state), {
1329
- $index: u,
1330
- $item: c,
1331
- [a]: c,
1332
- [`$${a}Index`]: u
1333
- })
1334
- }),
1335
- block: i
1336
- }));
1337
- };
1338
- function Io(e) {
1339
- return p(Ee.Provider, {
1340
- get value() {
1341
- return {
1342
- content: e.repeatContext.content,
1343
- state: e.repeatContext.state,
1344
- context: e.repeatContext.context,
1345
- apiKey: e.repeatContext.apiKey,
1346
- registeredComponents: e.repeatContext.registeredComponents,
1347
- inheritedStyles: e.repeatContext.inheritedStyles
1348
- };
1349
- },
1350
- get children() {
1351
- return p(Te, {
1352
- get block() {
1353
- return e.block;
1354
- },
1355
- get context() {
1356
- return e.repeatContext;
1357
- }
1358
- });
1359
- }
1360
- });
1361
- }
1362
- function Dt(e) {
1363
- return p(A, {
1364
- get when() {
1365
- return e.componentRef;
1366
- },
1367
- get children() {
1368
- return p(Pe, fe(() => e.componentOptions, {
1369
- get component() {
1370
- return e.componentRef;
1371
- },
1372
- get children() {
1373
- return [p(G, {
1374
- get each() {
1375
- return e.blockChildren;
1376
- },
1377
- children: (t, n) => (n(), p(Te, {
1378
- get key() {
1379
- return "render-block-" + t.id;
1380
- },
1381
- block: t,
1382
- get context() {
1383
- return e.context;
1384
- }
1385
- }))
1386
- }), p(G, {
1387
- get each() {
1388
- return e.blockChildren;
1389
- },
1390
- children: (t, n) => (n(), p(lt, {
1391
- get key() {
1392
- return "block-style-" + t.id;
1393
- },
1394
- block: t,
1395
- get context() {
1396
- return e.context;
1397
- }
1398
- }))
1399
- })];
1400
- }
1401
- }));
1402
- }
1403
- });
1404
- }
1405
- function Te(e) {
1406
- const [t, n] = O(ko({
1407
- block: e.block,
1408
- context: e.context
1409
- })), [r, i] = O(Co({
1410
- block: e.block,
1411
- context: e.context
1412
- }));
1413
- function o() {
1414
- return _o(s());
1415
- }
1416
- function s() {
1417
- return r() ? e.block : st({
1418
- block: e.block,
1419
- state: e.context.state,
1420
- context: e.context.context,
1421
- shouldEvaluateBindings: !0
1422
- });
1423
- }
1424
- function a() {
1425
- return ro({
1426
- block: s(),
1427
- state: e.context.state,
1428
- context: e.context.context
1429
- });
1430
- }
1431
- function l() {
1432
- return {
1433
- ...vo(s())
1434
- };
1435
- }
1436
- function c() {
1437
- var d, m, v, _, S, C;
1438
- return {
1439
- blockChildren: (d = s().children) != null ? d : [],
1440
- componentRef: (m = t()) == null ? void 0 : m.component,
1441
- componentOptions: {
1442
- ...uo(s()),
1443
- ...(v = t()) != null && v.noWrap ? {
1444
- attributes: {
1445
- ...l(),
1446
- ...a()
1447
- }
1448
- } : {},
1449
- customBreakpoints: (C = (S = (_ = f()) == null ? void 0 : _.content) == null ? void 0 : S.meta) == null ? void 0 : C.breakpoints
1450
- },
1451
- context: f()
1452
- };
1453
- }
1454
- function u() {
1455
- var m, v;
1456
- return !((m = t()) != null && m.component) && !r() ? (v = s().children) != null ? v : [] : [];
1457
- }
1458
- function f() {
1459
- const d = () => ({});
1460
- return {
1461
- apiKey: e.context.apiKey,
1462
- state: e.context.state,
1463
- content: e.context.content,
1464
- context: e.context.context,
1465
- registeredComponents: e.context.registeredComponents,
1466
- inheritedStyles: d()
1467
- };
1468
- }
1469
- return p(A, {
1470
- get fallback() {
1471
- return p(Dt, fe(c));
1472
- },
1473
- get when() {
1474
- var d;
1475
- return !((d = t()) != null && d.noWrap);
1476
- },
1477
- get children() {
1478
- return [p(A, {
1479
- get when() {
1480
- return Me(o());
1481
- },
1482
- get children() {
1483
- return p(Pe, fe(l, a, {
1484
- get component() {
1485
- return o();
1486
- }
1487
- }));
1488
- }
1489
- }), p(A, {
1490
- get when() {
1491
- return _t(() => !Me(o()), !0)() && r();
1492
- },
1493
- get children() {
1494
- return p(G, {
1495
- get each() {
1496
- return r();
1497
- },
1498
- children: (d, m) => {
1499
- const v = m();
1500
- return p(Io, {
1501
- key: v,
1502
- get repeatContext() {
1503
- return d.context;
1504
- },
1505
- get block() {
1506
- return d.block;
1507
- }
1508
- });
1509
- }
1510
- });
1511
- }
1512
- }), p(A, {
1513
- get when() {
1514
- return _t(() => !Me(o()), !0)() && !r();
1515
- },
1516
- get children() {
1517
- return p(Pe, fe(l, a, {
1518
- get component() {
1519
- return o();
1520
- },
1521
- get children() {
1522
- return [p(Dt, fe(c)), p(G, {
1523
- get each() {
1524
- return u();
1525
- },
1526
- children: (d, m) => (m(), p(Te, {
1527
- get key() {
1528
- return "render-block-" + d.id;
1529
- },
1530
- block: d,
1531
- get context() {
1532
- return f();
1533
- }
1534
- }))
1535
- }), p(G, {
1536
- get each() {
1537
- return u();
1538
- },
1539
- children: (d, m) => (m(), p(lt, {
1540
- get key() {
1541
- return "block-style-" + d.id;
1542
- },
1543
- block: d,
1544
- get context() {
1545
- return f();
1546
- }
1547
- }))
1548
- })];
1549
- }
1550
- }));
1551
- }
1552
- })];
1553
- }
1554
- });
1555
- }
1556
- const Eo = /* @__PURE__ */ T("<div></div>");
1557
- function Sn(e) {
1558
- function t() {
1559
- var o;
1560
- return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
1561
- }
1562
- function n() {
1563
- var o, s;
1564
- z() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage({
1565
- type: "builder.clickEmptyBlocks",
1566
- data: {
1567
- parentElementId: e.parent,
1568
- dataPath: e.path
1569
- }
1570
- }, "*"));
1571
- }
1572
- function r() {
1573
- var o, s;
1574
- z() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage({
1575
- type: "builder.hoverEmptyBlocks",
1576
- data: {
1577
- parentElementId: e.parent,
1578
- dataPath: e.path
1579
- }
1580
- }, "*"));
1581
- }
1582
- const i = dn(Ee);
1583
- return (() => {
1584
- const o = Eo.cloneNode(!0);
1585
- return o.addEventListener("mouseenter", (s) => r()), o.$$click = (s) => n(), N(o, p(A, {
1586
- get when() {
1587
- return e.blocks;
1588
- },
1589
- get children() {
1590
- return p(G, {
1591
- get each() {
1592
- return e.blocks;
1593
- },
1594
- children: (s, a) => (a(), p(Te, {
1595
- get key() {
1596
- return "render-block-" + s.id;
1597
- },
1598
- block: s,
1599
- context: i
1600
- }))
1601
- });
1602
- }
1603
- }), null), N(o, p(A, {
1604
- get when() {
1605
- return e.blocks;
1606
- },
1607
- get children() {
1608
- return p(G, {
1609
- get each() {
1610
- return e.blocks;
1611
- },
1612
- children: (s, a) => (a(), p(lt, {
1613
- get key() {
1614
- return "block-style-" + s.id;
1615
- },
1616
- block: s,
1617
- context: i
1618
- }))
1619
- });
1620
- }
1621
- }), null), w((s) => {
1622
- const a = t() + " " + q({
1623
- display: "flex",
1624
- flexDirection: "column",
1625
- alignItems: "stretch"
1626
- }), l = e.path, c = e.parent, u = {
1627
- class: t()
1628
- }, f = e.styleProp;
1629
- return a !== s._v$ && U(o, s._v$ = a), l !== s._v$2 && x(o, "builder-path", s._v$2 = l), c !== s._v$3 && x(o, "builder-parent-id", s._v$3 = c), u !== s._v$4 && x(o, "dataset", s._v$4 = u), s._v$5 = le(o, f, s._v$5), s;
1630
- }, {
1631
- _v$: void 0,
1632
- _v$2: void 0,
1633
- _v$3: void 0,
1634
- _v$4: void 0,
1635
- _v$5: void 0
1636
- }), o;
1637
- })();
1638
- }
1639
- ot(["click"]);
1640
- const Mt = /* @__PURE__ */ T("<div></div>");
1641
- function Ao(e) {
1642
- function t() {
1643
- return typeof e.space == "number" ? e.space || 0 : 20;
1644
- }
1645
- function n() {
1646
- return e.columns || [];
1647
- }
1648
- function r(f) {
1649
- var m;
1650
- const d = n();
1651
- return ((m = d[f]) == null ? void 0 : m.width) || 100 / d.length;
1652
- }
1653
- function i(f) {
1654
- const d = n(), v = t() * (d.length - 1) / d.length;
1655
- return `calc(${r(f)}% - ${v}px)`;
1656
- }
1657
- function o(f) {
1658
- return (e.stackColumnsAt || "tablet") === "tablet" ? f : "inherit";
1659
- }
1660
- function s() {
1661
- const f = e.stackColumnsAt === "never" ? "inherit" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1662
- return {
1663
- "--flex-dir": f,
1664
- "--flex-dir-tablet": o(f)
1665
- };
1666
- }
1667
- function a() {
1668
- const f = "100%", d = "0";
1669
- return {
1670
- "--column-width": f,
1671
- "--column-margin-left": d,
1672
- "--column-width-tablet": o(f),
1673
- "--column-margin-left-tablet": o(d)
1674
- };
1675
- }
1676
- function l(f) {
1677
- return wn(e.customBreakpoints || {})[f].max;
1678
- }
1679
- function c() {
1680
- return {
1681
- columns: {
1682
- small: {
1683
- flexDirection: "var(--flex-dir)",
1684
- alignItems: "stretch"
1685
- },
1686
- medium: {
1687
- flexDirection: "var(--flex-dir-tablet)",
1688
- alignItems: "stretch"
1689
- }
1690
- },
1691
- column: {
1692
- small: {
1693
- width: "var(--column-width) !important",
1694
- marginLeft: "var(--column-margin-left) !important"
1695
- },
1696
- medium: {
1697
- width: "var(--column-width-tablet) !important",
1698
- marginLeft: "var(--column-margin-left-tablet) !important"
1699
- }
1700
- }
1701
- };
1702
- }
1703
- function u() {
1704
- return `
1705
- @media (max-width: ${l("medium")}px) {
1706
- .${e.builderBlock.id}-breakpoints {
1707
- ${me(c().columns.medium)}
1708
- }
1709
-
1710
- .${e.builderBlock.id}-breakpoints > .builder-column {
1711
- ${me(c().column.medium)}
1712
- }
1713
- }
1714
-
1715
- @media (max-width: ${l("small")}px) {
1716
- .${e.builderBlock.id}-breakpoints {
1717
- ${me(c().columns.small)}
1718
- }
1719
-
1720
- .${e.builderBlock.id}-breakpoints > .builder-column {
1721
- ${me(c().column.small)}
1722
- }
1723
- },
1724
- `;
1725
- }
1726
- return (() => {
1727
- const f = Mt.cloneNode(!0);
1728
- return N(f, p(A, {
1729
- when: oe !== "reactNative",
1730
- get children() {
1731
- return p(at, {
1732
- get styles() {
1733
- return u();
1734
- }
1735
- });
1736
- }
1737
- }), null), N(f, p(G, {
1738
- get each() {
1739
- return e.columns;
1740
- },
1741
- children: (d, m) => {
1742
- const v = m();
1743
- return (() => {
1744
- const _ = Mt.cloneNode(!0);
1745
- return x(_, "key", v), N(_, p(Sn, {
1746
- get blocks() {
1747
- return d.blocks;
1748
- },
1749
- path: `component.options.columns.${v}.blocks`,
1750
- get parent() {
1751
- return e.builderBlock.id;
1752
- },
1753
- styleProp: {
1754
- flexGrow: "1"
1755
- }
1756
- })), w((S) => {
1757
- const C = "builder-column " + q({
1758
- display: "flex",
1759
- flexDirection: "column",
1760
- alignItems: "stretch"
1761
- }), R = {
1762
- width: i(v),
1763
- "margin-left": `${v === 0 ? 0 : t()}px`,
1764
- ...a()
1765
- };
1766
- return C !== S._v$3 && U(_, S._v$3 = C), S._v$4 = le(_, R, S._v$4), S;
1767
- }, {
1768
- _v$3: void 0,
1769
- _v$4: void 0
1770
- }), _;
1771
- })();
1772
- }
1773
- }), null), w((d) => {
1774
- const m = `builder-columns ${e.builderBlock.id}-breakpoints ` + q({
1775
- display: "flex",
1776
- lineHeight: "normal"
1777
- }), v = {
1778
- ...s()
1779
- };
1780
- return m !== d._v$ && U(f, d._v$ = m), d._v$2 = le(f, v, d._v$2), d;
1781
- }, {
1782
- _v$: void 0,
1783
- _v$2: void 0
1784
- }), f;
1785
- })();
1786
- }
1787
- function Vt(e) {
1788
- return e.replace(/http(s)?:/, "");
1789
- }
1790
- function To(e = "", t, n) {
1791
- const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
1792
- return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
1793
- }
1794
- function jo(e, t) {
1795
- if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1796
- return e;
1797
- if (t === "master")
1798
- return Vt(e);
1799
- const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1800
- if (n) {
1801
- const r = e.split(n[0]), i = n[3], o = t.match("x") ? t : `${t}x`;
1802
- return Vt(`${r[0]}_${o}${i}`);
1803
- }
1804
- return null;
1805
- }
1806
- function Ve(e) {
1807
- if (!e)
1808
- return e;
1809
- const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1810
- if (e.match(/builder\.io/)) {
1811
- let n = e;
1812
- const r = Number(e.split("?width=")[1]);
1813
- return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${To(e, "width", i)} ${i}w`).concat([n]).join(", ");
1814
- }
1815
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
1816
- }
1817
- const Ro = /* @__PURE__ */ T('<source type="image/webp">'), No = /* @__PURE__ */ T('<picture><img loading="lazy"></picture>'), Ut = /* @__PURE__ */ T("<div></div>");
1818
- function Fo(e) {
1819
- function t() {
1820
- var s;
1821
- const o = e.image || e.src;
1822
- if (!o || !(o.match(/builder\.io/) || o.match(/cdn\.shopify\.com/)))
1823
- return e.srcset;
1824
- if (e.srcset && ((s = e.image) == null ? void 0 : s.includes("builder.io/api/v1/image"))) {
1825
- if (!e.srcset.includes(e.image.split("?")[0]))
1826
- return console.debug("Removed given srcset"), Ve(o);
1827
- } else if (e.image && !e.srcset)
1828
- return Ve(o);
1829
- return Ve(o);
1830
- }
1831
- function n() {
1832
- var i;
1833
- return ((i = t()) == null ? void 0 : i.match(/builder\.io/)) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1834
- }
1835
- function r() {
1836
- const i = {
1837
- position: "absolute",
1838
- height: "100%",
1839
- width: "100%",
1840
- left: "0px",
1841
- top: "0px"
1842
- };
1843
- return e.aspectRatio ? i : void 0;
1844
- }
1845
- return [(() => {
1846
- const i = No.cloneNode(!0), o = i.firstChild;
1847
- return N(i, p(A, {
1848
- get when() {
1849
- return n();
1850
- },
1851
- get children() {
1852
- const s = Ro.cloneNode(!0);
1853
- return w(() => x(s, "srcset", n())), s;
1854
- }
1855
- }), o), w((s) => {
1856
- const a = "builder-image" + (e.className ? " " + e.className : "") + " " + q({
1857
- opacity: "1",
1858
- transition: "opacity 0.2s ease-in-out"
1859
- }), l = e.altText, c = e.altText ? "presentation" : void 0, u = {
1860
- "object-position": e.backgroundPosition || "center",
1861
- "object-fit": e.backgroundSize || "cover",
1862
- ...r()
1863
- }, f = e.image, d = t(), m = e.sizes;
1864
- return a !== s._v$ && U(o, s._v$ = a), l !== s._v$2 && x(o, "alt", s._v$2 = l), c !== s._v$3 && x(o, "role", s._v$3 = c), s._v$4 = le(o, u, s._v$4), f !== s._v$5 && x(o, "src", s._v$5 = f), d !== s._v$6 && x(o, "srcset", s._v$6 = d), m !== s._v$7 && x(o, "sizes", s._v$7 = m), s;
1865
- }, {
1866
- _v$: void 0,
1867
- _v$2: void 0,
1868
- _v$3: void 0,
1869
- _v$4: void 0,
1870
- _v$5: void 0,
1871
- _v$6: void 0,
1872
- _v$7: void 0
1873
- }), i;
1874
- })(), p(A, {
1875
- get when() {
1876
- var i, o;
1877
- return e.aspectRatio && !(((o = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : o.length) && e.fitContent);
1878
- },
1879
- get children() {
1880
- const i = Ut.cloneNode(!0);
1881
- return w((o) => {
1882
- const s = "builder-image-sizer " + q({
1883
- width: "100%",
1884
- pointerEvents: "none",
1885
- fontSize: "0"
1886
- }), a = e.aspectRatio * 100 + "%";
1887
- return s !== o._v$8 && U(i, o._v$8 = s), a !== o._v$9 && i.style.setProperty("padding-top", o._v$9 = a), o;
1888
- }, {
1889
- _v$8: void 0,
1890
- _v$9: void 0
1891
- }), i;
1892
- }
1893
- }), p(A, {
1894
- get when() {
1895
- var i, o;
1896
- return ((o = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : o.length) && e.fitContent;
1897
- },
1898
- get children() {
1899
- return e.children;
1900
- }
1901
- }), p(A, {
1902
- get when() {
1903
- return !e.fitContent && e.children;
1904
- },
1905
- get children() {
1906
- const i = Ut.cloneNode(!0);
1907
- return N(i, () => e.children), w(() => U(i, q({
1908
- display: "flex",
1909
- flexDirection: "column",
1910
- alignItems: "stretch",
1911
- position: "absolute",
1912
- top: "0",
1913
- left: "0",
1914
- width: "100%",
1915
- height: "100%"
1916
- }))), i;
1917
- }
1918
- })];
1919
- }
1920
- const Bo = /* @__PURE__ */ T('<span class="builder-text"></span>');
1921
- function Lo(e) {
1922
- return (() => {
1923
- const t = Bo.cloneNode(!0);
1924
- return w(() => t.innerHTML = e.text), t;
1925
- })();
1926
- }
1927
- const Do = /* @__PURE__ */ T("<video></video>");
1928
- function Mo(e) {
1929
- function t() {
1930
- return {
1931
- ...e.autoPlay === !0 ? {
1932
- autoPlay: !0
1933
- } : {},
1934
- ...e.muted === !0 ? {
1935
- muted: !0
1936
- } : {},
1937
- ...e.controls === !0 ? {
1938
- controls: !0
1939
- } : {},
1940
- ...e.loop === !0 ? {
1941
- loop: !0
1942
- } : {},
1943
- ...e.playsInline === !0 ? {
1944
- playsInline: !0
1945
- } : {}
1946
- };
1947
- }
1948
- function n() {
1949
- return {
1950
- ...e.attributes,
1951
- ...t()
1952
- };
1953
- }
1954
- return (() => {
1955
- const r = Do.cloneNode(!0);
1956
- return ne(r, n, !1, !1), w((i) => {
1957
- var l;
1958
- const o = {
1959
- width: "100%",
1960
- height: "100%",
1961
- ...(l = e.attributes) == null ? void 0 : l.style,
1962
- "object-fit": e.fit,
1963
- "object-position": e.position,
1964
- "border-radius": 1
1965
- }, s = e.video || "no-src", a = e.posterImage;
1966
- return i._v$ = le(r, o, i._v$), s !== i._v$2 && x(r, "src", i._v$2 = s), a !== i._v$3 && x(r, "poster", i._v$3 = a), i;
1967
- }, {
1968
- _v$: void 0,
1969
- _v$2: void 0,
1970
- _v$3: void 0
1971
- }), r;
1972
- })();
1973
- }
1974
- const ze = Symbol("store-raw"), pe = Symbol("store-node"), Vo = Symbol("store-name");
1975
- function Pn(e, t) {
1976
- let n = e[J];
1977
- if (!n && (Object.defineProperty(e, J, {
1978
- value: n = new Proxy(e, Ko)
1979
- }), !Array.isArray(e))) {
1980
- const r = Object.keys(e), i = Object.getOwnPropertyDescriptors(e);
1981
- for (let o = 0, s = r.length; o < s; o++) {
1982
- const a = r[o];
1983
- if (i[a].get) {
1984
- const l = i[a].get.bind(n);
1985
- Object.defineProperty(e, a, {
1986
- get: l
1987
- });
1988
- }
1989
- }
1990
- }
1991
- return n;
1992
- }
1993
- function Y(e) {
1994
- let t;
1995
- return e != null && typeof e == "object" && (e[J] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
1996
- }
1997
- function ue(e, t = /* @__PURE__ */ new Set()) {
1998
- let n, r, i, o;
1999
- if (n = e != null && e[ze])
2000
- return n;
2001
- if (!Y(e) || t.has(e))
2002
- return e;
2003
- if (Array.isArray(e)) {
2004
- Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
2005
- for (let s = 0, a = e.length; s < a; s++)
2006
- i = e[s], (r = ue(i, t)) !== i && (e[s] = r);
2007
- } else {
2008
- Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
2009
- const s = Object.keys(e), a = Object.getOwnPropertyDescriptors(e);
2010
- for (let l = 0, c = s.length; l < c; l++)
2011
- o = s[l], !a[o].get && (i = e[o], (r = ue(i, t)) !== i && (e[o] = r));
2012
- }
2013
- return e;
2014
- }
2015
- function ke(e) {
2016
- let t = e[pe];
2017
- return t || Object.defineProperty(e, pe, {
2018
- value: t = {}
2019
- }), t;
2020
- }
2021
- function Ge(e, t, n) {
2022
- return e[t] || (e[t] = kn(n));
2023
- }
2024
- function Uo(e, t) {
2025
- const n = Reflect.getOwnPropertyDescriptor(e, t);
2026
- return !n || n.get || !n.configurable || t === J || t === pe || t === Vo || (delete n.value, delete n.writable, n.get = () => e[J][t]), n;
2027
- }
2028
- function On(e) {
2029
- if (un()) {
2030
- const t = ke(e);
2031
- (t._ || (t._ = kn()))();
2032
- }
2033
- }
2034
- function Wo(e) {
2035
- return On(e), Reflect.ownKeys(e);
2036
- }
2037
- function kn(e) {
2038
- const [t, n] = O(e, {
2039
- equals: !1,
2040
- internal: !0
2041
- });
2042
- return t.$ = n, t;
2043
- }
2044
- const Ko = {
2045
- get(e, t, n) {
2046
- if (t === ze)
2047
- return e;
2048
- if (t === J)
2049
- return n;
2050
- if (t === Ke)
2051
- return On(e), n;
2052
- const r = ke(e), i = r.hasOwnProperty(t);
2053
- let o = i ? r[t]() : e[t];
2054
- if (t === pe || t === "__proto__")
2055
- return o;
2056
- if (!i) {
2057
- const s = Object.getOwnPropertyDescriptor(e, t);
2058
- un() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = Ge(r, t, o)());
2059
- }
2060
- return Y(o) ? Pn(o) : o;
2061
- },
2062
- has(e, t) {
2063
- if (t === ze || t === J || t === Ke || t === pe || t === "__proto__")
2064
- return !0;
2065
- const n = ke(e)[t];
2066
- return n && n(), t in e;
2067
- },
2068
- set() {
2069
- return !0;
2070
- },
2071
- deleteProperty() {
2072
- return !0;
2073
- },
2074
- ownKeys: Wo,
2075
- getOwnPropertyDescriptor: Uo
2076
- };
2077
- function L(e, t, n, r = !1) {
2078
- if (!r && e[t] === n)
2079
- return;
2080
- const i = e[t], o = e.length;
2081
- n === void 0 ? delete e[t] : e[t] = n;
2082
- let s = ke(e), a;
2083
- (a = Ge(s, t, i)) && a.$(() => n), Array.isArray(e) && e.length !== o && (a = Ge(s, "length", o)) && a.$(e.length), (a = s._) && a.$();
2084
- }
2085
- function Cn(e, t) {
2086
- const n = Object.keys(t);
2087
- for (let r = 0; r < n.length; r += 1) {
2088
- const i = n[r];
2089
- L(e, i, t[i]);
2090
- }
2091
- }
2092
- function Ho(e, t) {
2093
- if (typeof t == "function" && (t = t(e)), t = ue(t), Array.isArray(t)) {
2094
- if (e === t)
2095
- return;
2096
- let n = 0, r = t.length;
2097
- for (; n < r; n++) {
2098
- const i = t[n];
2099
- e[n] !== i && L(e, n, i);
2100
- }
2101
- L(e, "length", r);
2102
- } else
2103
- Cn(e, t);
2104
- }
2105
- function he(e, t, n = []) {
2106
- let r, i = e;
2107
- if (t.length > 1) {
2108
- r = t.shift();
2109
- const s = typeof r, a = Array.isArray(e);
2110
- if (Array.isArray(r)) {
2111
- for (let l = 0; l < r.length; l++)
2112
- he(e, [r[l]].concat(t), n);
2113
- return;
2114
- } else if (a && s === "function") {
2115
- for (let l = 0; l < e.length; l++)
2116
- r(e[l], l) && he(e, [l].concat(t), n);
2117
- return;
2118
- } else if (a && s === "object") {
2119
- const {
2120
- from: l = 0,
2121
- to: c = e.length - 1,
2122
- by: u = 1
2123
- } = r;
2124
- for (let f = l; f <= c; f += u)
2125
- he(e, [f].concat(t), n);
2126
- return;
2127
- } else if (t.length > 1) {
2128
- he(e[r], t, [r].concat(n));
2129
- return;
2130
- }
2131
- i = e[r], n = [r].concat(n);
2132
- }
2133
- let o = t[0];
2134
- typeof o == "function" && (o = o(i, n), o === i) || r === void 0 && o == null || (o = ue(o), r === void 0 || Y(i) && Y(o) && !Array.isArray(o) ? Cn(i, o) : L(e, r, o));
2135
- }
2136
- function qo(...[e, t]) {
2137
- const n = ue(e || {}), r = Array.isArray(n), i = Pn(n);
2138
- function o(...s) {
2139
- sr(() => {
2140
- r && s.length === 1 ? Ho(n, s[0]) : he(n, s);
2141
- });
2142
- }
2143
- return [i, o];
2144
- }
2145
- const Je = Symbol("store-root");
2146
- function se(e, t, n, r, i) {
2147
- const o = t[n];
2148
- if (e === o)
2149
- return;
2150
- if (!Y(e) || !Y(o) || i && e[i] !== o[i]) {
2151
- if (e !== o) {
2152
- if (n === Je)
2153
- return e;
2154
- L(t, n, e);
2155
- }
2156
- return;
2157
- }
2158
- if (Array.isArray(e)) {
2159
- if (e.length && o.length && (!r || i && e[0][i] != null)) {
2160
- let l, c, u, f, d, m, v, _;
2161
- for (u = 0, f = Math.min(o.length, e.length); u < f && (o[u] === e[u] || i && o[u][i] === e[u][i]); u++)
2162
- se(e[u], o, u, r, i);
2163
- const S = new Array(e.length), C = /* @__PURE__ */ new Map();
2164
- for (f = o.length - 1, d = e.length - 1; f >= u && d >= u && (o[f] === e[d] || i && o[f][i] === e[d][i]); f--, d--)
2165
- S[d] = o[f];
2166
- if (u > d || u > f) {
2167
- for (c = u; c <= d; c++)
2168
- L(o, c, e[c]);
2169
- for (; c < e.length; c++)
2170
- L(o, c, S[c]), se(e[c], o, c, r, i);
2171
- o.length > e.length && L(o, "length", e.length);
2172
- return;
2173
- }
2174
- for (v = new Array(d + 1), c = d; c >= u; c--)
2175
- m = e[c], _ = i ? m[i] : m, l = C.get(_), v[c] = l === void 0 ? -1 : l, C.set(_, c);
2176
- for (l = u; l <= f; l++)
2177
- m = o[l], _ = i ? m[i] : m, c = C.get(_), c !== void 0 && c !== -1 && (S[c] = o[l], c = v[c], C.set(_, c));
2178
- for (c = u; c < e.length; c++)
2179
- c in S ? (L(o, c, S[c]), se(e[c], o, c, r, i)) : L(o, c, e[c]);
2180
- } else
2181
- for (let l = 0, c = e.length; l < c; l++)
2182
- se(e[l], o, l, r, i);
2183
- o.length > e.length && L(o, "length", e.length);
2184
- return;
2185
- }
2186
- const s = Object.keys(e);
2187
- for (let l = 0, c = s.length; l < c; l++)
2188
- se(e[s[l]], o, s[l], r, i);
2189
- const a = Object.keys(o);
2190
- for (let l = 0, c = a.length; l < c; l++)
2191
- e[a[l]] === void 0 && L(o, a[l], void 0);
2192
- }
2193
- function zo(e, t = {}) {
2194
- const {
2195
- merge: n,
2196
- key: r = "id"
2197
- } = t, i = ue(e);
2198
- return (o) => {
2199
- if (!Y(o) || !Y(i))
2200
- return i;
2201
- const s = se(i, {
2202
- [Je]: o
2203
- }, Je, n, r);
2204
- return s === void 0 ? o : s;
2205
- };
2206
- }
2207
- const Go = /* @__PURE__ */ T('<a role="button"></a>'), Jo = /* @__PURE__ */ T("<button></button>");
2208
- function Xo(e) {
2209
- return p(A, {
2210
- get fallback() {
2211
- return (() => {
2212
- const t = Jo.cloneNode(!0);
2213
- return ne(t, () => e.attributes, !1, !0), N(t, () => e.text), w(() => U(t, q({
2214
- all: "unset"
2215
- }))), t;
2216
- })();
2217
- },
2218
- get when() {
2219
- return e.link;
2220
- },
2221
- get children() {
2222
- const t = Go.cloneNode(!0);
2223
- return ne(t, () => e.attributes, !1, !0), N(t, () => e.text), w((n) => {
2224
- const r = e.link, i = e.openLinkInNewTab ? "_blank" : void 0;
2225
- return r !== n._v$ && x(t, "href", n._v$ = r), i !== n._v$2 && x(t, "target", n._v$2 = i), n;
2226
- }, {
2227
- _v$: void 0,
2228
- _v$2: void 0
2229
- }), t;
2230
- }
2231
- });
2232
- }
2233
- const Yo = {
2234
- name: "Core:Button",
2235
- builtIn: !0,
2236
- image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2237
- defaultStyles: {
2238
- appearance: "none",
2239
- paddingTop: "15px",
2240
- paddingBottom: "15px",
2241
- paddingLeft: "25px",
2242
- paddingRight: "25px",
2243
- backgroundColor: "#000000",
2244
- color: "white",
2245
- borderRadius: "4px",
2246
- textAlign: "center",
2247
- cursor: "pointer"
2248
- },
2249
- inputs: [
2250
- {
2251
- name: "text",
2252
- type: "text",
2253
- defaultValue: "Click me!",
2254
- bubble: !0
2255
- },
2256
- {
2257
- name: "link",
2258
- type: "url",
2259
- bubble: !0
2260
- },
2261
- {
2262
- name: "openLinkInNewTab",
2263
- type: "boolean",
2264
- defaultValue: !1,
2265
- friendlyName: "Open link in new tab"
2266
- }
2267
- ],
2268
- static: !0,
2269
- noWrap: !0
2270
- }, je = (e) => {
2271
- const t = e.toString().trim();
2272
- return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
2273
- }, Qo = {
2274
- name: "Columns",
2275
- builtIn: !0,
2276
- inputs: [
2277
- {
2278
- name: "columns",
2279
- type: "array",
2280
- broadcast: !0,
2281
- subFields: [
2282
- {
2283
- name: "blocks",
2284
- type: "array",
2285
- hideFromUI: !0,
2286
- defaultValue: [
2287
- {
2288
- "@type": "@builder.io/sdk:Element",
2289
- responsiveStyles: {
2290
- large: {
2291
- display: "flex",
2292
- flexDirection: "column",
2293
- alignItems: "stretch",
2294
- flexShrink: "0",
2295
- position: "relative",
2296
- marginTop: "30px",
2297
- textAlign: "center",
2298
- lineHeight: "normal",
2299
- height: "auto",
2300
- minHeight: "20px",
2301
- minWidth: "20px",
2302
- overflow: "hidden"
2303
- }
2304
- },
2305
- component: {
2306
- name: "Image",
2307
- options: {
2308
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
2309
- backgroundPosition: "center",
2310
- backgroundSize: "cover",
2311
- aspectRatio: 0.7004048582995948
2312
- }
2313
- }
2314
- },
2315
- {
2316
- "@type": "@builder.io/sdk:Element",
2317
- responsiveStyles: {
2318
- large: {
2319
- display: "flex",
2320
- flexDirection: "column",
2321
- alignItems: "stretch",
2322
- flexShrink: "0",
2323
- position: "relative",
2324
- marginTop: "30px",
2325
- textAlign: "center",
2326
- lineHeight: "normal",
2327
- height: "auto"
2328
- }
2329
- },
2330
- component: {
2331
- name: "Text",
2332
- options: {
2333
- text: "<p>Enter some text...</p>"
2334
- }
2335
- }
2336
- }
2337
- ]
2338
- },
2339
- {
2340
- name: "width",
2341
- type: "number",
2342
- hideFromUI: !0,
2343
- helperText: "Width %, e.g. set to 50 to fill half of the space"
2344
- },
2345
- {
2346
- name: "link",
2347
- type: "url",
2348
- helperText: "Optionally set a url that clicking this column will link to"
2349
- }
2350
- ],
2351
- defaultValue: [
2352
- {
2353
- blocks: [
2354
- {
2355
- "@type": "@builder.io/sdk:Element",
2356
- responsiveStyles: {
2357
- large: {
2358
- display: "flex",
2359
- flexDirection: "column",
2360
- alignItems: "stretch",
2361
- flexShrink: "0",
2362
- position: "relative",
2363
- marginTop: "30px",
2364
- textAlign: "center",
2365
- lineHeight: "normal",
2366
- height: "auto",
2367
- minHeight: "20px",
2368
- minWidth: "20px",
2369
- overflow: "hidden"
2370
- }
2371
- },
2372
- component: {
2373
- name: "Image",
2374
- options: {
2375
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
2376
- backgroundPosition: "center",
2377
- backgroundSize: "cover",
2378
- aspectRatio: 0.7004048582995948
2379
- }
2380
- }
2381
- },
2382
- {
2383
- "@type": "@builder.io/sdk:Element",
2384
- responsiveStyles: {
2385
- large: {
2386
- display: "flex",
2387
- flexDirection: "column",
2388
- alignItems: "stretch",
2389
- flexShrink: "0",
2390
- position: "relative",
2391
- marginTop: "30px",
2392
- textAlign: "center",
2393
- lineHeight: "normal",
2394
- height: "auto"
2395
- }
2396
- },
2397
- component: {
2398
- name: "Text",
2399
- options: {
2400
- text: "<p>Enter some text...</p>"
2401
- }
2402
- }
2403
- }
2404
- ]
2405
- },
2406
- {
2407
- blocks: [
2408
- {
2409
- "@type": "@builder.io/sdk:Element",
2410
- responsiveStyles: {
2411
- large: {
2412
- display: "flex",
2413
- flexDirection: "column",
2414
- alignItems: "stretch",
2415
- flexShrink: "0",
2416
- position: "relative",
2417
- marginTop: "30px",
2418
- textAlign: "center",
2419
- lineHeight: "normal",
2420
- height: "auto",
2421
- minHeight: "20px",
2422
- minWidth: "20px",
2423
- overflow: "hidden"
2424
- }
2425
- },
2426
- component: {
2427
- name: "Image",
2428
- options: {
2429
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
2430
- backgroundPosition: "center",
2431
- backgroundSize: "cover",
2432
- aspectRatio: 0.7004048582995948
2433
- }
2434
- }
2435
- },
2436
- {
2437
- "@type": "@builder.io/sdk:Element",
2438
- responsiveStyles: {
2439
- large: {
2440
- display: "flex",
2441
- flexDirection: "column",
2442
- alignItems: "stretch",
2443
- flexShrink: "0",
2444
- position: "relative",
2445
- marginTop: "30px",
2446
- textAlign: "center",
2447
- lineHeight: "normal",
2448
- height: "auto"
2449
- }
2450
- },
2451
- component: {
2452
- name: "Text",
2453
- options: {
2454
- text: "<p>Enter some text...</p>"
2455
- }
2456
- }
2457
- }
2458
- ]
2459
- }
2460
- ],
2461
- onChange: je((e) => {
2462
- function t() {
2463
- n.forEach((r) => {
2464
- r.delete("width");
2465
- });
2466
- }
2467
- const n = e.get("columns");
2468
- Array.isArray(n) && !!n.find((i) => i.get("width")) && (!!n.find((o) => !o.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
2469
- })
2470
- },
2471
- {
2472
- name: "space",
2473
- type: "number",
2474
- defaultValue: 20,
2475
- helperText: "Size of gap between columns",
2476
- advanced: !0
2477
- },
2478
- {
2479
- name: "stackColumnsAt",
2480
- type: "string",
2481
- defaultValue: "tablet",
2482
- helperText: "Convert horizontal columns to vertical at what device size",
2483
- enum: ["tablet", "mobile", "never"],
2484
- advanced: !0
2485
- },
2486
- {
2487
- name: "reverseColumnsWhenStacked",
2488
- type: "boolean",
2489
- defaultValue: !1,
2490
- helperText: "When stacking columns for mobile devices, reverse the ordering",
2491
- advanced: !0
2492
- }
2493
- ]
2494
- }, Zo = {
2495
- name: "Fragment",
2496
- static: !0,
2497
- hidden: !0,
2498
- builtIn: !0,
2499
- canHaveChildren: !0,
2500
- noWrap: !0
2501
- }, ei = /* @__PURE__ */ T("<span></span>");
2502
- function ti(e) {
2503
- return (() => {
2504
- const t = ei.cloneNode(!0);
2505
- return N(t, () => e.children), t;
2506
- })();
2507
- }
2508
- const ni = {
2509
- name: "Image",
2510
- static: !0,
2511
- builtIn: !0,
2512
- 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",
2513
- defaultStyles: {
2514
- position: "relative",
2515
- minHeight: "20px",
2516
- minWidth: "20px",
2517
- overflow: "hidden"
2518
- },
2519
- canHaveChildren: !0,
2520
- inputs: [
2521
- {
2522
- name: "image",
2523
- type: "file",
2524
- bubble: !0,
2525
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
2526
- required: !0,
2527
- defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
2528
- onChange: je((e) => {
2529
- e.delete("srcset"), e.delete("noWebp");
2530
- function n(s, a = 6e4) {
2531
- return new Promise((l, c) => {
2532
- const u = document.createElement("img");
2533
- let f = !1;
2534
- u.onload = () => {
2535
- f = !0, l(u);
2536
- }, u.addEventListener("error", (d) => {
2537
- console.warn("Image load failed", d.error), c(d.error);
2538
- }), u.src = s, setTimeout(() => {
2539
- f || c(new Error("Image load timed out"));
2540
- }, a);
2541
- });
2542
- }
2543
- function r(s) {
2544
- return Math.round(s * 1e3) / 1e3;
2545
- }
2546
- const i = e.get("image"), o = e.get("aspectRatio");
2547
- if (fetch(i).then((s) => s.blob()).then((s) => {
2548
- s.type.includes("svg") && e.set("noWebp", !0);
2549
- }), i && (!o || o === 0.7041))
2550
- return n(i).then((s) => {
2551
- const a = e.get("aspectRatio");
2552
- e.get("image") === i && (!a || a === 0.7041) && s.width && s.height && (e.set("aspectRatio", r(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
2553
- });
2554
- })
2555
- },
2556
- {
2557
- name: "backgroundSize",
2558
- type: "text",
2559
- defaultValue: "cover",
2560
- enum: [
2561
- {
2562
- label: "contain",
2563
- value: "contain",
2564
- helperText: "The image should never get cropped"
2565
- },
2566
- {
2567
- label: "cover",
2568
- value: "cover",
2569
- helperText: "The image should fill it's box, cropping when needed"
2570
- }
2571
- ]
2572
- },
2573
- {
2574
- name: "backgroundPosition",
2575
- type: "text",
2576
- defaultValue: "center",
2577
- enum: [
2578
- "center",
2579
- "top",
2580
- "left",
2581
- "right",
2582
- "bottom",
2583
- "top left",
2584
- "top right",
2585
- "bottom left",
2586
- "bottom right"
2587
- ]
2588
- },
2589
- {
2590
- name: "altText",
2591
- type: "string",
2592
- helperText: "Text to display when the user has images off"
2593
- },
2594
- {
2595
- name: "height",
2596
- type: "number",
2597
- hideFromUI: !0
2598
- },
2599
- {
2600
- name: "width",
2601
- type: "number",
2602
- hideFromUI: !0
2603
- },
2604
- {
2605
- name: "sizes",
2606
- type: "string",
2607
- hideFromUI: !0
2608
- },
2609
- {
2610
- name: "srcset",
2611
- type: "string",
2612
- hideFromUI: !0
2613
- },
2614
- {
2615
- name: "lazy",
2616
- type: "boolean",
2617
- defaultValue: !0,
2618
- hideFromUI: !0
2619
- },
2620
- {
2621
- name: "fitContent",
2622
- type: "boolean",
2623
- helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
2624
- defaultValue: !0
2625
- },
2626
- {
2627
- name: "aspectRatio",
2628
- type: "number",
2629
- helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
2630
- advanced: !0,
2631
- defaultValue: 0.7041
2632
- }
2633
- ]
2634
- }, ri = {
2635
- name: "Core:Section",
2636
- static: !0,
2637
- builtIn: !0,
2638
- image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
2639
- inputs: [
2640
- {
2641
- name: "maxWidth",
2642
- type: "number",
2643
- defaultValue: 1200
2644
- },
2645
- {
2646
- name: "lazyLoad",
2647
- type: "boolean",
2648
- defaultValue: !1,
2649
- advanced: !0,
2650
- description: "Only render this section when in view"
2651
- }
2652
- ],
2653
- defaultStyles: {
2654
- paddingLeft: "20px",
2655
- paddingRight: "20px",
2656
- paddingTop: "50px",
2657
- paddingBottom: "50px",
2658
- marginTop: "0px",
2659
- width: "100vw",
2660
- marginLeft: "calc(50% - 50vw)"
2661
- },
2662
- canHaveChildren: !0,
2663
- defaultChildren: [
2664
- {
2665
- "@type": "@builder.io/sdk:Element",
2666
- responsiveStyles: {
2667
- large: {
2668
- textAlign: "center"
2669
- }
2670
- },
2671
- component: {
2672
- name: "Text",
2673
- options: {
2674
- text: "<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"
2675
- }
2676
- }
2677
- }
2678
- ]
2679
- }, oi = /* @__PURE__ */ T("<section></section>");
2680
- function ii(e) {
2681
- return (() => {
2682
- const t = oi.cloneNode(!0);
2683
- return ne(t, () => e.attributes, !1, !0), t.style.setProperty("width", "100%"), t.style.setProperty("align-self", "stretch"), t.style.setProperty("flex-grow", "1"), t.style.setProperty("box-sizing", "border-box"), t.style.setProperty("display", "flex"), t.style.setProperty("flex-direction", "column"), t.style.setProperty("align-items", "stretch"), t.style.setProperty("margin-left", "auto"), t.style.setProperty("margin-right", "auto"), N(t, () => e.children), w(() => t.style.setProperty("max-width", `${e.maxWidth && typeof e.maxWidth == "number" ? e.maxWidth : 1200}px`)), t;
2684
- })();
2685
- }
2686
- const si = {
2687
- name: "Symbol",
2688
- noWrap: !0,
2689
- static: !0,
2690
- builtIn: !0,
2691
- inputs: [
2692
- {
2693
- name: "symbol",
2694
- type: "uiSymbol"
2695
- },
2696
- {
2697
- name: "dataOnly",
2698
- helperText: "Make this a data symbol that doesn't display any UI",
2699
- type: "boolean",
2700
- defaultValue: !1,
2701
- advanced: !0,
2702
- hideFromUI: !0
2703
- },
2704
- {
2705
- name: "inheritState",
2706
- helperText: "Inherit the parent component state and data",
2707
- type: "boolean",
2708
- defaultValue: !1,
2709
- advanced: !0
2710
- },
2711
- {
2712
- name: "renderToLiquid",
2713
- helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
2714
- type: "boolean",
2715
- defaultValue: !1,
2716
- advanced: !0,
2717
- hideFromUI: !0
2718
- },
2719
- {
2720
- name: "useChildren",
2721
- hideFromUI: !0,
2722
- type: "boolean"
2723
- }
2724
- ]
2725
- }, ai = {
2726
- name: "Text",
2727
- static: !0,
2728
- builtIn: !0,
2729
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
2730
- inputs: [
2731
- {
2732
- name: "text",
2733
- type: "html",
2734
- required: !0,
2735
- autoFocus: !0,
2736
- bubble: !0,
2737
- defaultValue: "Enter some text..."
2738
- }
2739
- ],
2740
- defaultStyles: {
2741
- lineHeight: "normal",
2742
- height: "auto",
2743
- textAlign: "center"
2744
- }
2745
- }, li = {
2746
- name: "Video",
2747
- canHaveChildren: !0,
2748
- builtIn: !0,
2749
- defaultStyles: {
2750
- minHeight: "20px",
2751
- minWidth: "20px"
2752
- },
2753
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
2754
- inputs: [
2755
- {
2756
- name: "video",
2757
- type: "file",
2758
- allowedFileTypes: ["mp4"],
2759
- bubble: !0,
2760
- defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
2761
- required: !0
2762
- },
2763
- {
2764
- name: "posterImage",
2765
- type: "file",
2766
- allowedFileTypes: ["jpeg", "png"],
2767
- helperText: "Image to show before the video plays"
2768
- },
2769
- {
2770
- name: "autoPlay",
2771
- type: "boolean",
2772
- defaultValue: !0
2773
- },
2774
- {
2775
- name: "controls",
2776
- type: "boolean",
2777
- defaultValue: !1
2778
- },
2779
- {
2780
- name: "muted",
2781
- type: "boolean",
2782
- defaultValue: !0
2783
- },
2784
- {
2785
- name: "loop",
2786
- type: "boolean",
2787
- defaultValue: !0
2788
- },
2789
- {
2790
- name: "playsInline",
2791
- type: "boolean",
2792
- defaultValue: !0
2793
- },
2794
- {
2795
- name: "fit",
2796
- type: "text",
2797
- defaultValue: "cover",
2798
- enum: ["contain", "cover", "fill", "auto"]
2799
- },
2800
- {
2801
- name: "fitContent",
2802
- type: "boolean",
2803
- helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
2804
- defaultValue: !0,
2805
- advanced: !0
2806
- },
2807
- {
2808
- name: "position",
2809
- type: "text",
2810
- defaultValue: "center",
2811
- enum: [
2812
- "center",
2813
- "top",
2814
- "left",
2815
- "right",
2816
- "bottom",
2817
- "top left",
2818
- "top right",
2819
- "bottom left",
2820
- "bottom right"
2821
- ]
2822
- },
2823
- {
2824
- name: "height",
2825
- type: "number",
2826
- advanced: !0
2827
- },
2828
- {
2829
- name: "width",
2830
- type: "number",
2831
- advanced: !0
2832
- },
2833
- {
2834
- name: "aspectRatio",
2835
- type: "number",
2836
- advanced: !0,
2837
- defaultValue: 0.7004048582995948
2838
- },
2839
- {
2840
- name: "lazyLoad",
2841
- type: "boolean",
2842
- helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
2843
- defaultValue: !0,
2844
- advanced: !0
2845
- }
2846
- ]
2847
- }, ci = {
2848
- name: "Embed",
2849
- static: !0,
2850
- builtIn: !0,
2851
- inputs: [
2852
- {
2853
- name: "url",
2854
- type: "url",
2855
- required: !0,
2856
- defaultValue: "",
2857
- helperText: "e.g. enter a youtube url, google map, etc",
2858
- onChange: je((e) => {
2859
- const t = e.get("url");
2860
- if (t)
2861
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((r) => r.json()).then((r) => {
2862
- e.get("url") === t && (r.html ? e.set("content", r.html) : e.set("content", "Invalid url, please try another"));
2863
- }).catch((r) => {
2864
- e.set("content", "There was an error embedding this URL, please try again or another URL");
2865
- });
2866
- e.delete("content");
2867
- })
2868
- },
2869
- {
2870
- name: "content",
2871
- type: "html",
2872
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2873
- hideFromUI: !0
2874
- }
2875
- ]
2876
- }, ui = [
2877
- "text/javascript",
2878
- "application/javascript",
2879
- "application/ecmascript"
2880
- ], di = (e) => ui.includes(e.type), fi = /* @__PURE__ */ T('<div class="builder-embed"></div>');
2881
- function mi(e) {
2882
- const [t, n] = O([]), [r, i] = O([]), [o, s] = O(!1);
2883
- function a() {
2884
- if (!l || !l.getElementsByTagName)
2885
- return;
2886
- const u = l.getElementsByTagName("script");
2887
- for (let f = 0; f < u.length; f++) {
2888
- const d = u[f];
2889
- if (d.src && !t().includes(d.src)) {
2890
- t().push(d.src);
2891
- const m = document.createElement("script");
2892
- m.async = !0, m.src = d.src, document.head.appendChild(m);
2893
- } else if (di(d) && !r().includes(d.innerText))
2894
- try {
2895
- r().push(d.innerText), new Function(d.innerText)();
2896
- } catch (m) {
2897
- console.warn("`Embed`: Error running script:", m);
2898
- }
2899
- }
2900
- }
2901
- let l;
2902
- function c() {
2903
- l && !o() && (s(!0), a());
2904
- }
2905
- return ee(ae(() => [l, o()], c)), (() => {
2906
- const u = fi.cloneNode(!0), f = l;
2907
- return typeof f == "function" ? it(f, u) : l = u, w(() => u.innerHTML = e.content), u;
2908
- })();
2909
- }
2910
- const hi = /* @__PURE__ */ T("<img>");
2911
- function gi(e) {
2912
- return (() => {
2913
- const t = hi.cloneNode(!0);
2914
- return ne(t, () => e.attributes, !1, !1), w((n) => {
2915
- const r = e.backgroundSize || "cover", i = e.backgroundPosition || "center", o = z() && e.imgSrc || "default-key", s = e.altText, a = e.imgSrc || e.image;
2916
- return r !== n._v$ && t.style.setProperty("object-fit", n._v$ = r), i !== n._v$2 && t.style.setProperty("object-position", n._v$2 = i), o !== n._v$3 && x(t, "key", n._v$3 = o), s !== n._v$4 && x(t, "alt", n._v$4 = s), a !== n._v$5 && x(t, "src", n._v$5 = a), n;
2917
- }, {
2918
- _v$: void 0,
2919
- _v$2: void 0,
2920
- _v$3: void 0,
2921
- _v$4: void 0,
2922
- _v$5: void 0
2923
- }), t;
2924
- })();
2925
- }
2926
- const pi = {
2927
- name: "Raw:Img",
2928
- hideFromInsertMenu: !0,
2929
- builtIn: !0,
2930
- 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",
2931
- inputs: [
2932
- {
2933
- name: "image",
2934
- bubble: !0,
2935
- type: "file",
2936
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
2937
- required: !0
2938
- }
2939
- ],
2940
- noWrap: !0,
2941
- static: !0
2942
- }, yi = /* @__PURE__ */ T("<div></div>");
2943
- function bi(e) {
2944
- const [t, n] = O([]), [r, i] = O([]);
2945
- function o() {
2946
- if (s && s.getElementsByTagName && typeof window < "u") {
2947
- const a = s.getElementsByTagName("script");
2948
- for (let l = 0; l < a.length; l++) {
2949
- const c = a[l];
2950
- if (c.src) {
2951
- if (t().includes(c.src))
2952
- continue;
2953
- t().push(c.src);
2954
- const u = document.createElement("script");
2955
- u.async = !0, u.src = c.src, document.head.appendChild(u);
2956
- } else if (!c.type || ["text/javascript", "application/javascript", "application/ecmascript"].includes(c.type)) {
2957
- if (r().includes(c.innerText))
2958
- continue;
2959
- try {
2960
- r().push(c.innerText), new Function(c.innerText)();
2961
- } catch (u) {
2962
- console.warn("`CustomCode`: Error running script:", u);
2963
- }
2964
- }
2965
- }
2966
- }
2967
- }
2968
- let s;
2969
- return cn(() => {
2970
- o();
2971
- }), (() => {
2972
- const a = yi.cloneNode(!0), l = s;
2973
- return typeof l == "function" ? it(l, a) : s = a, w((c) => {
2974
- const u = "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""), f = e.code;
2975
- return u !== c._v$ && U(a, c._v$ = u), f !== c._v$2 && (a.innerHTML = c._v$2 = f), c;
2976
- }, {
2977
- _v$: void 0,
2978
- _v$2: void 0
2979
- }), a;
2980
- })();
2981
- }
2982
- const vi = {
2983
- name: "Custom Code",
2984
- static: !0,
2985
- builtIn: !0,
2986
- requiredPermissions: ["editCode"],
2987
- inputs: [
2988
- {
2989
- name: "code",
2990
- type: "html",
2991
- required: !0,
2992
- defaultValue: "<p>Hello there, I am custom HTML code!</p>",
2993
- code: !0
2994
- },
2995
- {
2996
- name: "replaceNodes",
2997
- type: "boolean",
2998
- helperText: "Preserve server rendered dom nodes",
2999
- advanced: !0
3000
- },
3001
- {
3002
- name: "scriptsClientOnly",
3003
- type: "boolean",
3004
- defaultValue: !1,
3005
- helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3006
- advanced: !0
3007
- }
3008
- ]
3009
- };
3010
- var wi = Object.defineProperty, Wt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, M = (e, t) => {
3011
- for (var n in t || (t = {}))
3012
- _i.call(t, n) && Kt(e, n, t[n]);
3013
- if (Wt)
3014
- for (var n of Wt(t))
3015
- xi.call(t, n) && Kt(e, n, t[n]);
3016
- return e;
3017
- };
3018
- const $i = () => [
3019
- M({ component: Ao }, Qo),
3020
- M({ component: Fo }, ni),
3021
- M({ component: gi }, pi),
3022
- M({ component: Lo }, ai),
3023
- M({ component: Mo }, li),
3024
- M({ component: Ls }, si),
3025
- M({ component: Xo }, Yo),
3026
- M({ component: ii }, ri),
3027
- M({ component: ti }, Zo),
3028
- M({ component: mi }, ci),
3029
- M({ component: bi }, vi)
3030
- ];
3031
- function Si() {
3032
- return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3033
- }
3034
- function Pi() {
3035
- const e = Si().fetch;
3036
- if (typeof e > "u")
3037
- throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3038
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3039
- return e;
3040
- }
3041
- const In = Pi(), Oi = (e) => {
3042
- if (e === "localhost" || e === "127.0.0.1")
3043
- return e;
3044
- const t = e.split(".");
3045
- return t.length > 2 ? t.slice(1).join(".") : e;
3046
- };
3047
- var En = (e, t, n) => new Promise((r, i) => {
3048
- var o = (l) => {
3049
- try {
3050
- a(n.next(l));
3051
- } catch (c) {
3052
- i(c);
3053
- }
3054
- }, s = (l) => {
3055
- try {
3056
- a(n.throw(l));
3057
- } catch (c) {
3058
- i(c);
3059
- }
3060
- }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3061
- a((n = n.apply(e, t)).next());
3062
- });
3063
- const An = (e) => En(void 0, [e], function* ({
3064
- name: t,
3065
- canTrack: n
3066
- }) {
3067
- var r;
3068
- try {
3069
- return n ? (r = document.cookie.split("; ").find((i) => i.startsWith(`${t}=`))) == null ? void 0 : r.split("=")[1] : void 0;
3070
- } catch (i) {
3071
- console.debug("[COOKIE] GET error: ", i);
3072
- return;
3073
- }
3074
- }), ki = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(re).join("; "), Ci = [
3075
- ["secure", ""],
3076
- ["SameSite", "None"]
3077
- ], Ii = ({
3078
- name: e,
3079
- value: t,
3080
- expires: n
3081
- }) => {
3082
- const i = (B() ? location.protocol === "https:" : !0) ? Ci : [[]], o = n ? [["expires", n.toUTCString()]] : [[]], s = [
3083
- [e, t],
3084
- ...o,
3085
- ["path", "/"],
3086
- ["domain", Oi(window.location.hostname)],
3087
- ...i
3088
- ];
3089
- return ki(s);
3090
- }, Tn = (e) => En(void 0, [e], function* ({
3091
- name: t,
3092
- value: n,
3093
- expires: r,
3094
- canTrack: i
3095
- }) {
3096
- try {
3097
- if (!i)
3098
- return;
3099
- const o = Ii({ name: t, value: n, expires: r });
3100
- document.cookie = o;
3101
- } catch (o) {
3102
- console.warn("[COOKIE] SET error: ", o);
3103
- }
3104
- }), Ei = "builderio.variations", jn = (e) => `${Ei}.${e}`, Ai = ({
3105
- contentId: e,
3106
- canTrack: t
3107
- }) => An({ name: jn(e), canTrack: t }), Ti = ({
3108
- contentId: e,
3109
- canTrack: t,
3110
- value: n
3111
- }) => Tn({ name: jn(e), value: n, canTrack: t });
3112
- var Rn = (e, t, n) => new Promise((r, i) => {
3113
- var o = (l) => {
3114
- try {
3115
- a(n.next(l));
3116
- } catch (c) {
3117
- i(c);
3118
- }
3119
- }, s = (l) => {
3120
- try {
3121
- a(n.throw(l));
3122
- } catch (c) {
3123
- i(c);
3124
- }
3125
- }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3126
- a((n = n.apply(e, t)).next());
3127
- });
3128
- const ji = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, Ri = ({
3129
- id: e,
3130
- variations: t
3131
- }) => {
3132
- var n;
3133
- let r = 0;
3134
- const i = Math.random();
3135
- for (const o in t)
3136
- if (r += (n = t[o]) == null ? void 0 : n.testRatio, i < r)
3137
- return o;
3138
- return e;
3139
- }, Ht = ({
3140
- item: e,
3141
- testGroupId: t
3142
- }) => {
3143
- const n = e.variations[t];
3144
- return t === e.id || !n ? {
3145
- testVariationId: e.id,
3146
- testVariationName: "Default"
3147
- } : {
3148
- data: n.data,
3149
- testVariationId: n.id,
3150
- testVariationName: n.name || (n.id === e.id ? "Default" : "")
3151
- };
3152
- }, Ni = (e) => Rn(void 0, [e], function* ({
3153
- item: t,
3154
- canTrack: n
3155
- }) {
3156
- const r = yield Ai({
3157
- canTrack: n,
3158
- contentId: t.id
3159
- }), i = r ? Ht({ item: t, testGroupId: r }) : void 0;
3160
- if (i)
3161
- return i;
3162
- {
3163
- const o = Ri({
3164
- variations: t.variations,
3165
- id: t.id
3166
- });
3167
- return Ti({
3168
- contentId: t.id,
3169
- value: o,
3170
- canTrack: n
3171
- }).catch((s) => {
3172
- console.error("could not store A/B test variation: ", s);
3173
- }), Ht({ item: t, testGroupId: o });
3174
- }
3175
- }), Fi = (e) => Rn(void 0, [e], function* ({
3176
- item: t,
3177
- canTrack: n
3178
- }) {
3179
- if (!ji(t))
3180
- return;
3181
- const r = yield Ni({ item: t, canTrack: n });
3182
- Object.assign(t, r);
3183
- });
3184
- var Bi = Object.defineProperty, Li = Object.defineProperties, Di = Object.getOwnPropertyDescriptors, qt = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, zt = (e, t, n) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ue = (e, t) => {
3185
- for (var n in t || (t = {}))
3186
- Mi.call(t, n) && zt(e, n, t[n]);
3187
- if (qt)
3188
- for (var n of qt(t))
3189
- Vi.call(t, n) && zt(e, n, t[n]);
3190
- return e;
3191
- }, Ui = (e, t) => Li(e, Di(t));
3192
- function Xe(e, t = null, n = ".") {
3193
- return Object.keys(e).reduce((r, i) => {
3194
- const o = e[i], s = [t, i].filter(Boolean).join(n);
3195
- return [
3196
- typeof o == "object",
3197
- o !== null,
3198
- !(Array.isArray(o) && o.length === 0)
3199
- ].every(Boolean) ? Ue(Ue({}, r), Xe(o, s, n)) : Ui(Ue({}, r), { [s]: o });
3200
- }, {});
3201
- }
3202
- const Gt = "builder.", Wi = "options.", Ki = (e) => {
3203
- const t = {};
3204
- return e.forEach((n, r) => {
3205
- t[r] = n;
3206
- }), t;
3207
- }, Hi = (e) => {
3208
- if (!e)
3209
- return {};
3210
- const t = Nn(e), n = {};
3211
- return Object.keys(t).forEach((r) => {
3212
- if (r.startsWith(Gt)) {
3213
- const i = r.replace(Gt, "").replace(Wi, "");
3214
- n[i] = t[r];
3215
- }
3216
- }), n;
3217
- }, qi = () => {
3218
- if (!B())
3219
- return {};
3220
- const e = new URLSearchParams(window.location.search);
3221
- return Hi(e);
3222
- }, Nn = (e) => e instanceof URLSearchParams ? Ki(e) : e;
3223
- var zi = Object.defineProperty, Jt = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Ji = Object.prototype.propertyIsEnumerable, Xt = (e, t, n) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3224
- for (var n in t || (t = {}))
3225
- Gi.call(t, n) && Xt(e, n, t[n]);
3226
- if (Jt)
3227
- for (var n of Jt(t))
3228
- Ji.call(t, n) && Xt(e, n, t[n]);
3229
- return e;
3230
- };
3231
- const Xi = (e) => {
3232
- const {
3233
- limit: t = 30,
3234
- userAttributes: n,
3235
- query: r,
3236
- noTraverse: i = !1,
3237
- model: o,
3238
- apiKey: s,
3239
- includeRefs: a = !0,
3240
- locale: l
3241
- } = e;
3242
- if (!s)
3243
- throw new Error("Missing API key");
3244
- const c = new URL(`https://cdn.builder.io/api/v2/content/${o}?apiKey=${s}&limit=${t}&noTraverse=${i}&includeRefs=${a}${l ? `&locale=${l}` : ""}`), u = Yt(Yt({}, qi()), Nn(e.options || {})), f = Xe(u);
3245
- for (const d in f)
3246
- c.searchParams.set(d, String(f[d]));
3247
- if (n && c.searchParams.set("userAttributes", JSON.stringify(n)), r) {
3248
- const d = Xe({ query: r });
3249
- for (const m in d)
3250
- c.searchParams.set(m, JSON.stringify(d[m]));
3251
- }
3252
- return c;
3253
- };
3254
- var Yi = Object.defineProperty, Qi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, es = Object.prototype.hasOwnProperty, ts = Object.prototype.propertyIsEnumerable, Zt = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ns = (e, t) => {
3255
- for (var n in t || (t = {}))
3256
- es.call(t, n) && Zt(e, n, t[n]);
3257
- if (Qt)
3258
- for (var n of Qt(t))
3259
- ts.call(t, n) && Zt(e, n, t[n]);
3260
- return e;
3261
- }, rs = (e, t) => Qi(e, Zi(t)), Fn = (e, t, n) => new Promise((r, i) => {
3262
- var o = (l) => {
3263
- try {
3264
- a(n.next(l));
3265
- } catch (c) {
3266
- i(c);
3267
- }
3268
- }, s = (l) => {
3269
- try {
3270
- a(n.throw(l));
3271
- } catch (c) {
3272
- i(c);
3273
- }
3274
- }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3275
- a((n = n.apply(e, t)).next());
3276
- });
3277
- function Bn(e) {
3278
- return Fn(this, null, function* () {
3279
- return (yield os(rs(ns({}, e), { limit: 1 }))).results[0] || null;
3280
- });
3281
- }
3282
- function os(e) {
3283
- return Fn(this, null, function* () {
3284
- const t = Xi(e), r = yield (yield In(t.href)).json(), i = e.canTrack !== !1;
3285
- if (i && Array.isArray(r.results))
3286
- for (const o of r.results)
3287
- yield Fi({ item: o, canTrack: i });
3288
- return r;
3289
- });
3290
- }
3291
- function is() {
3292
- return !B() || z() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
3293
- }
3294
- var ss = Object.defineProperty, as = Object.defineProperties, ls = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, en = (e, t, n) => t in e ? ss(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ye = (e, t) => {
3295
- for (var n in t || (t = {}))
3296
- Ln.call(t, n) && en(e, n, t[n]);
3297
- if (Ce)
3298
- for (var n of Ce(t))
3299
- Dn.call(t, n) && en(e, n, t[n]);
3300
- return e;
3301
- }, tn = (e, t) => as(e, ls(t)), Mn = (e, t) => {
3302
- var n = {};
3303
- for (var r in e)
3304
- Ln.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3305
- if (e != null && Ce)
3306
- for (var r of Ce(e))
3307
- t.indexOf(r) < 0 && Dn.call(e, r) && (n[r] = e[r]);
3308
- return n;
3309
- };
3310
- const Vn = [];
3311
- function Ds(e, t) {
3312
- return Vn.push(Ye({ component: e }, t)), console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."), e;
3313
- }
3314
- const cs = (e) => {
3315
- var t = e, n = Mn(t, [
3316
- "component"
3317
- ]);
3318
- return {
3319
- type: "builder.registerComponent",
3320
- data: ds(n)
3321
- };
3322
- }, us = (e) => typeof e == "function" ? je(e) : Ae(e), ds = (e) => {
3323
- var t = e, {
3324
- inputs: n
3325
- } = t, r = Mn(t, [
3326
- "inputs"
3327
- ]);
3328
- return tn(Ye({}, Ae(r)), {
3329
- inputs: n == null ? void 0 : n.map((i) => Object.entries(i).reduce((o, [s, a]) => tn(Ye({}, o), {
3330
- [s]: us(a)
3331
- }), {}))
3332
- });
3333
- };
3334
- function fs() {
3335
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3336
- const t = Math.random() * 16 | 0;
3337
- return (e == "x" ? t : t & 3 | 8).toString(16);
3338
- });
3339
- }
3340
- function Un() {
3341
- return fs().replace(/-/g, "");
3342
- }
3343
- var ms = (e, t, n) => new Promise((r, i) => {
3344
- var o = (l) => {
3345
- try {
3346
- a(n.next(l));
3347
- } catch (c) {
3348
- i(c);
3349
- }
3350
- }, s = (l) => {
3351
- try {
3352
- a(n.throw(l));
3353
- } catch (c) {
3354
- i(c);
3355
- }
3356
- }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3357
- a((n = n.apply(e, t)).next());
3358
- });
3359
- const Wn = "builderSessionId", hs = (e) => ms(void 0, [e], function* ({
3360
- canTrack: t
3361
- }) {
3362
- if (!t)
3363
- return;
3364
- const n = yield An({
3365
- name: Wn,
3366
- canTrack: t
3367
- });
3368
- if (re(n))
3369
- return n;
3370
- {
3371
- const r = gs();
3372
- return ps({ id: r, canTrack: t }), r;
3373
- }
3374
- }), gs = () => Un(), ps = ({
3375
- id: e,
3376
- canTrack: t
3377
- }) => Tn({ name: Wn, value: e, canTrack: t }), Kn = () => B() && typeof localStorage < "u" ? localStorage : void 0, ys = ({
3378
- key: e,
3379
- canTrack: t
3380
- }) => {
3381
- var n;
3382
- try {
3383
- return t ? (n = Kn()) == null ? void 0 : n.getItem(e) : void 0;
3384
- } catch (r) {
3385
- console.debug("[LocalStorage] GET error: ", r);
3386
- return;
3387
- }
3388
- }, bs = ({
3389
- key: e,
3390
- canTrack: t,
3391
- value: n
3392
- }) => {
3393
- var r;
3394
- try {
3395
- t && ((r = Kn()) == null || r.setItem(e, n));
3396
- } catch (i) {
3397
- console.debug("[LocalStorage] SET error: ", i);
3398
- }
3399
- }, Hn = "builderVisitorId", vs = ({ canTrack: e }) => {
3400
- if (!e)
3401
- return;
3402
- const t = ys({
3403
- key: Hn,
3404
- canTrack: e
3405
- });
3406
- if (re(t))
3407
- return t;
3408
- {
3409
- const n = ws();
3410
- return _s({ id: n, canTrack: e }), n;
3411
- }
3412
- }, ws = () => Un(), _s = ({
3413
- id: e,
3414
- canTrack: t
3415
- }) => bs({
3416
- key: Hn,
3417
- value: e,
3418
- canTrack: t
3419
- }), xs = () => {
3420
- if (B()) {
3421
- const e = new URL(location.href);
3422
- return e.pathname === "" && (e.pathname = "/"), e;
3423
- } else
3424
- return console.warn("Cannot get location for tracking in non-browser environment"), null;
3425
- }, $s = () => typeof navigator == "object" && navigator.userAgent || "", Ss = () => {
3426
- const e = $s(), t = {
3427
- Android() {
3428
- return e.match(/Android/i);
3429
- },
3430
- BlackBerry() {
3431
- return e.match(/BlackBerry/i);
3432
- },
3433
- iOS() {
3434
- return e.match(/iPhone|iPod/i);
3435
- },
3436
- Opera() {
3437
- return e.match(/Opera Mini/i);
3438
- },
3439
- Windows() {
3440
- return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
3441
- },
3442
- any() {
3443
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || oe === "reactNative";
3444
- }
3445
- }, n = e.match(/Tablet|iPad/i), r = xs();
3446
- return {
3447
- urlPath: r == null ? void 0 : r.pathname,
3448
- host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
3449
- device: n ? "tablet" : t.any() ? "mobile" : "desktop"
3450
- };
3451
- };
3452
- var Ps = Object.defineProperty, Os = Object.defineProperties, ks = Object.getOwnPropertyDescriptors, Ie = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, nn = (e, t, n) => t in e ? Ps(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, we = (e, t) => {
3453
- for (var n in t || (t = {}))
3454
- qn.call(t, n) && nn(e, n, t[n]);
3455
- if (Ie)
3456
- for (var n of Ie(t))
3457
- zn.call(t, n) && nn(e, n, t[n]);
3458
- return e;
3459
- }, Qe = (e, t) => Os(e, ks(t)), Cs = (e, t) => {
3460
- var n = {};
3461
- for (var r in e)
3462
- qn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3463
- if (e != null && Ie)
3464
- for (var r of Ie(e))
3465
- t.indexOf(r) < 0 && zn.call(e, r) && (n[r] = e[r]);
3466
- return n;
3467
- }, ct = (e, t, n) => new Promise((r, i) => {
3468
- var o = (l) => {
3469
- try {
3470
- a(n.next(l));
3471
- } catch (c) {
3472
- i(c);
3473
- }
3474
- }, s = (l) => {
3475
- try {
3476
- a(n.throw(l));
3477
- } catch (c) {
3478
- i(c);
3479
- }
3480
- }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3481
- a((n = n.apply(e, t)).next());
3482
- });
3483
- const Is = (e) => ct(void 0, [e], function* ({
3484
- canTrack: t
3485
- }) {
3486
- if (!t)
3487
- return { visitorId: void 0, sessionId: void 0 };
3488
- const n = yield hs({ canTrack: t }), r = vs({ canTrack: t });
3489
- return {
3490
- sessionId: n,
3491
- visitorId: r
3492
- };
3493
- }), Es = (e) => ct(void 0, null, function* () {
3494
- var t = e, {
3495
- type: n,
3496
- canTrack: r,
3497
- apiKey: i,
3498
- metadata: o
3499
- } = t, s = Cs(t, [
3500
- "type",
3501
- "canTrack",
3502
- "apiKey",
3503
- "metadata"
3504
- ]);
3505
- return {
3506
- type: n,
3507
- data: Qe(we(Qe(we({}, s), {
3508
- metadata: we({
3509
- url: location.href
3510
- }, o)
3511
- }), yield Is({ canTrack: r })), {
3512
- userAttributes: Ss(),
3513
- ownerId: i
3514
- })
3515
- };
3516
- });
3517
- function Ze(e) {
3518
- return ct(this, null, function* () {
3519
- if (!e.apiKey) {
3520
- console.error("[Builder.io]: Missing API key for track call. Please provide your API key.");
3521
- return;
3522
- }
3523
- if (!!e.canTrack && !z() && !!(B() || oe === "reactNative"))
3524
- return fetch("https://builder.io/api/v1/track", {
3525
- method: "POST",
3526
- body: JSON.stringify({
3527
- events: [yield Es(e)]
3528
- }),
3529
- headers: {
3530
- "content-type": "application/json"
3531
- },
3532
- mode: "cors"
3533
- }).catch((t) => {
3534
- console.error("Failed to track: ", t);
3535
- });
3536
- });
3537
- }
3538
- const Ms = (e) => Ze(Qe(we({}, e), { canTrack: !0 }));
3539
- function As(e) {
3540
- function t({
3541
- customFonts: r
3542
- }) {
3543
- var i;
3544
- return ((i = r == null ? void 0 : r.map((o) => this.getCssFromFont(o))) == null ? void 0 : i.join(" ")) || "";
3545
- }
3546
- function n() {
3547
- return `
3548
- ${e.cssCode || ""}
3549
- ${t({
3550
- customFonts: e.customFonts
3551
- })}`;
3552
- }
3553
- return p(at, {
3554
- get styles() {
3555
- return n();
3556
- }
3557
- });
3558
- }
3559
- function rn(e) {
3560
- return Math.round(e * 1e3) / 1e3;
3561
- }
3562
- const Ts = (e, t, n = !0) => {
3563
- if (!(e instanceof HTMLElement))
3564
- return null;
3565
- let r = n ? e : e.parentElement;
3566
- do {
3567
- if (!r)
3568
- return null;
3569
- if (t(r))
3570
- return r;
3571
- } while (r = r.parentElement);
3572
- return null;
3573
- }, js = (e) => Ts(e, (t) => {
3574
- const n = t.getAttribute("builder-id") || t.id;
3575
- return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
3576
- }), on = ({
3577
- event: e,
3578
- target: t
3579
- }) => {
3580
- const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, o = rn(r / n.width), s = rn(i / n.height);
3581
- return {
3582
- x: o,
3583
- y: s
3584
- };
3585
- }, Rs = (e) => {
3586
- const t = e.target, n = t && js(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3587
- return {
3588
- targetBuilderElement: r || void 0,
3589
- metadata: {
3590
- targetOffset: t ? on({ event: e, target: t }) : void 0,
3591
- builderTargetOffset: n ? on({ event: e, target: n }) : void 0,
3592
- builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
3593
- }
3594
- };
3595
- }, Ns = /* @__PURE__ */ T("<div></div>");
3596
- function Fs(e) {
3597
- const [t, n] = O(0), [r, i] = O(null);
3598
- O(0);
3599
- const [o, s] = O(null), [a, l] = O(re(e.canTrack) ? e.canTrack : !0), [c, u] = O({}), [f, d] = O(e.context || {}), [m, v] = O([
3600
- ...$i(),
3601
- ...Vn,
3602
- ...e.customComponents || []
3603
- ].reduce((y, b) => ({
3604
- ...y,
3605
- [b.name]: b
3606
- }), {})), [_, S] = O({}), [C, R] = O(!1);
3607
- function I() {
3608
- var y, b;
3609
- return {
3610
- ...(b = (y = e.content) == null ? void 0 : y.data) == null ? void 0 : b.state,
3611
- ...e.data,
3612
- ...e.locale ? {
3613
- locale: e.locale
3614
- } : {},
3615
- ...c()
3616
- };
3617
- }
3618
- function D(y) {
3619
- const {
3620
- data: b
3621
- } = y;
3622
- if (b)
3623
- switch (b.type) {
3624
- case "builder.configureSdk": {
3625
- const g = b.data, {
3626
- breakpoints: E,
3627
- contentId: F
3628
- } = g;
3629
- if (!F || F !== (h == null ? void 0 : h.id))
3630
- return;
3631
- s(E), n(t() + 1);
3632
- break;
3633
- }
3634
- case "builder.contentUpdate": {
3635
- const g = b.data, E = g.key || g.alias || g.entry || g.modelName, F = g.data;
3636
- E === e.model && (i(F), n(t() + 1));
3637
- break;
3638
- }
3639
- }
3640
- }
3641
- function W() {
3642
- var b;
3643
- const y = (b = h == null ? void 0 : h.data) == null ? void 0 : b.jsCode;
3644
- y && ge({
3645
- code: y,
3646
- context: f(),
3647
- state: I()
3648
- });
3649
- }
3650
- function Re(y) {
3651
- if (h) {
3652
- const b = h == null ? void 0 : h.testVariationId, g = h == null ? void 0 : h.id;
3653
- Ze({
3654
- type: "click",
3655
- canTrack: a(),
3656
- contentId: g,
3657
- apiKey: e.apiKey,
3658
- variationId: b !== g ? b : void 0,
3659
- ...Rs(y),
3660
- unique: !C()
3661
- });
3662
- }
3663
- C() || R(!0);
3664
- }
3665
- function Gn(y) {
3666
- return y.replace(/{{([^}]+)}}/g, (b, g) => ge({
3667
- code: g,
3668
- context: f(),
3669
- state: I()
3670
- }));
3671
- }
3672
- function Jn({
3673
- url: y,
3674
- key: b
3675
- }) {
3676
- In(y).then((g) => g.json()).then((g) => {
3677
- const E = {
3678
- ...c(),
3679
- [b]: g
3680
- };
3681
- u(E);
3682
- }).catch((g) => {
3683
- console.log("error fetching dynamic data", y, g);
3684
- });
3685
- }
3686
- function ut() {
3687
- var b, g;
3688
- const y = (g = (b = h == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) != null ? g : {};
3689
- Object.entries(y).forEach(([E, F]) => {
3690
- if (F && (!_()[E] || z())) {
3691
- const be = Gn(F);
3692
- Jn({
3693
- url: be,
3694
- key: E
3695
- });
3696
- }
3697
- });
3698
- }
3699
- function Ne() {
3700
- z() && window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
3701
- detail: {
3702
- state: I(),
3703
- ref: {
3704
- name: e.model
3705
- }
3706
- }
3707
- }));
3708
- }
3709
- function Xn() {
3710
- var y, b, g;
3711
- return Boolean((((y = h == null ? void 0 : h.data) == null ? void 0 : y.cssCode) || ((g = (b = h == null ? void 0 : h.data) == null ? void 0 : b.customFonts) == null ? void 0 : g.length)) && oe !== "reactNative");
3712
- }
3713
- const dt = function() {
3714
- var b, g, E, F, be, mt, ht, gt;
3715
- if (!(!e.content && !r()))
3716
- return {
3717
- ...e.content,
3718
- ...r(),
3719
- data: {
3720
- ...(b = e.content) == null ? void 0 : b.data,
3721
- ...e.data,
3722
- ...(g = r()) == null ? void 0 : g.data
3723
- },
3724
- meta: {
3725
- ...(E = e.content) == null ? void 0 : E.meta,
3726
- ...(F = r()) == null ? void 0 : F.meta,
3727
- breakpoints: o() || ((mt = (be = r()) == null ? void 0 : be.meta) == null ? void 0 : mt.breakpoints) || ((gt = (ht = e.content) == null ? void 0 : ht.meta) == null ? void 0 : gt.breakpoints)
3728
- }
3729
- };
3730
- }, [h, Yn] = qo(dt());
3731
- ee(ae(() => [r(), o(), e.content, e.data], () => Yn(zo(dt()))));
3732
- let ft;
3733
- cn(() => {
3734
- if (e.apiKey || console.error("[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."), B()) {
3735
- if (z() && (n(t() + 1), nr(), rr({
3736
- ...e.locale ? {
3737
- locale: e.locale
3738
- } : {},
3739
- ...e.includeRefs ? {
3740
- includeRefs: e.includeRefs
3741
- } : {}
3742
- }), Object.values(m()).forEach((y) => {
3743
- var g;
3744
- const b = cs(y);
3745
- (g = window.parent) == null || g.postMessage(b, "*");
3746
- }), window.addEventListener("message", D), window.addEventListener("builder:component:stateChangeListenerActivated", Ne)), h) {
3747
- const y = h == null ? void 0 : h.testVariationId, b = h == null ? void 0 : h.id;
3748
- Ze({
3749
- type: "impression",
3750
- canTrack: a(),
3751
- contentId: b,
3752
- apiKey: e.apiKey,
3753
- variationId: y !== b ? y : void 0
3754
- });
3755
- }
3756
- if (is()) {
3757
- const y = new URL(location.href).searchParams, b = y.get("builder.preview"), g = y.get("apiKey") || y.get("builder.space");
3758
- b === e.model && g === e.apiKey && Bn({
3759
- model: e.model,
3760
- apiKey: e.apiKey
3761
- }).then((E) => {
3762
- E && i(E);
3763
- });
3764
- }
3765
- W(), ut(), Ne();
3766
- }
3767
- });
3768
- function Qn() {
3769
- W();
3770
- }
3771
- ee(ae(() => {
3772
- var y;
3773
- return [(y = h == null ? void 0 : h.data) == null ? void 0 : y.jsCode, I()];
3774
- }, Qn));
3775
- function Zn() {
3776
- ut();
3777
- }
3778
- ee(ae(() => {
3779
- var y;
3780
- return [(y = h == null ? void 0 : h.data) == null ? void 0 : y.httpRequests];
3781
- }, Zn));
3782
- function er() {
3783
- Ne();
3784
- }
3785
- return ee(ae(() => [I()], er)), p(Ee.Provider, {
3786
- get value() {
3787
- return {
3788
- content: h,
3789
- state: I(),
3790
- context: f(),
3791
- apiKey: e.apiKey,
3792
- registeredComponents: m()
3793
- };
3794
- },
3795
- get children() {
3796
- return p(A, {
3797
- when: h,
3798
- get children() {
3799
- const y = Ns.cloneNode(!0);
3800
- y.$$click = (g) => Re(g);
3801
- const b = ft;
3802
- return typeof b == "function" ? it(b, y) : ft = y, N(y, p(A, {
3803
- get when() {
3804
- return Xn();
3805
- },
3806
- get children() {
3807
- return p(As, {
3808
- get cssCode() {
3809
- var g;
3810
- return (g = h == null ? void 0 : h.data) == null ? void 0 : g.cssCode;
3811
- },
3812
- get customFonts() {
3813
- var g;
3814
- return (g = h == null ? void 0 : h.data) == null ? void 0 : g.customFonts;
3815
- }
3816
- });
3817
- }
3818
- }), null), N(y, p(Sn, {
3819
- get blocks() {
3820
- var g;
3821
- return (g = h == null ? void 0 : h.data) == null ? void 0 : g.blocks;
3822
- },
3823
- get key() {
3824
- return t();
3825
- }
3826
- }), null), w((g) => {
3827
- const E = h == null ? void 0 : h.id, F = e.model;
3828
- return E !== g._v$ && x(y, "builder-content-id", g._v$ = E), F !== g._v$2 && x(y, "builder-model", g._v$2 = F), g;
3829
- }, {
3830
- _v$: void 0,
3831
- _v$2: void 0
3832
- }), y;
3833
- }
3834
- });
3835
- }
3836
- });
3837
- }
3838
- ot(["click"]);
3839
- const Bs = /* @__PURE__ */ T("<div></div>");
3840
- function Ls(e) {
3841
- const [t, n] = O(null);
3842
- function r() {
3843
- var a, l;
3844
- return [e.attributes.class, "builder-symbol", (a = e.symbol) != null && a.inline ? "builder-inline-symbol" : void 0, ((l = e.symbol) == null ? void 0 : l.dynamic) || e.dynamic ? "builder-dynamic-symbol" : void 0].filter(Boolean).join(" ");
3845
- }
3846
- function i() {
3847
- var a;
3848
- return ((a = e.symbol) == null ? void 0 : a.content) || t();
3849
- }
3850
- const o = dn(Ee);
3851
- function s() {
3852
- const a = e.symbol;
3853
- a && !a.content && !t() && a.model && (o == null ? void 0 : o.apiKey) && Bn({
3854
- model: a.model,
3855
- apiKey: o.apiKey,
3856
- query: {
3857
- id: a.entry
3858
- }
3859
- }).then((l) => {
3860
- n(l);
3861
- });
3862
- }
3863
- return ee(ae(() => [e.symbol, t()], s)), (() => {
3864
- const a = Bs.cloneNode(!0);
3865
- return ne(a, () => e.attributes, !1, !0), N(a, p(Fs, {
3866
- get apiKey() {
3867
- return o.apiKey;
3868
- },
3869
- get context() {
3870
- return o.context;
3871
- },
3872
- get customComponents() {
3873
- return Object.values(o.registeredComponents);
3874
- },
3875
- get data() {
3876
- var l, c, u, f;
3877
- return {
3878
- ...(l = e.symbol) == null ? void 0 : l.data,
3879
- ...o.state,
3880
- ...(f = (u = (c = e.symbol) == null ? void 0 : c.content) == null ? void 0 : u.data) == null ? void 0 : f.state
3881
- };
3882
- },
3883
- get model() {
3884
- var l;
3885
- return (l = e.symbol) == null ? void 0 : l.model;
3886
- },
3887
- get content() {
3888
- return i();
3889
- }
3890
- })), w((l) => {
3891
- const c = r(), u = {
3892
- class: r()
3893
- };
3894
- return c !== l._v$ && U(a, l._v$ = c), u !== l._v$2 && x(a, "dataset", l._v$2 = u), l;
3895
- }, {
3896
- _v$: void 0,
3897
- _v$2: void 0
3898
- }), a;
3899
- })();
3900
- }
3901
- const sn = {};
3902
- function Vs(e) {
3903
- if (B()) {
3904
- Object.assign(sn, e);
3905
- const t = {
3906
- type: "builder.settingsChange",
3907
- data: sn
3908
- };
3909
- parent.postMessage(t, "*");
3910
- }
3911
- }
3912
- export {
3913
- Xo as Button,
3914
- Ao as Columns,
3915
- ti as Fragment,
3916
- Fo as Image,
3917
- Sn as RenderBlocks,
3918
- Fs as RenderContent,
3919
- ii as Section,
3920
- Ls as Symbol,
3921
- Lo as Text,
3922
- Mo as Video,
3923
- Vn as components,
3924
- Ki as convertSearchParamsToQueryObject,
3925
- cs as createRegisterComponentMessage,
3926
- os as getAllContent,
3927
- Hi as getBuilderSearchParams,
3928
- qi as getBuilderSearchParamsFromWindow,
3929
- Bn as getContent,
3930
- z as isEditing,
3931
- is as isPreviewing,
3932
- Nn as normalizeSearchParams,
3933
- tr as register,
3934
- Ds as registerComponent,
3935
- Vs as setEditorSettings,
3936
- Ms as track
3937
- };