@builder.io/sdk-qwik 0.0.2-0 → 0.0.5

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.
@@ -1,2094 +0,0 @@
1
- import { createContext as tt, componentQrl as h, inlinedQrl as u, Host as f, useContextProvider as je, useStore as $, useScopedStylesQrl as H, useContext as Fe, useLexicalScope as g, Slot as R, Fragment as nt, useRef as ot, useWatchQrl as w, useClientEffectQrl as Ae, useCleanupQrl as rt } from "@builder.io/qwik";
2
- import { jsx as l, jsxs as S, Fragment as Be } from "@builder.io/qwik/jsx-runtime";
3
- const x = "qwik";
4
- function b() {
5
- return typeof window < "u" && typeof document < "u";
6
- }
7
- const ee = {};
8
- function at(e, t) {
9
- let n = ee[e];
10
- if (n || (n = ee[e] = []), n.push(t), b()) {
11
- const o = {
12
- type: "builder.register",
13
- data: {
14
- type: e,
15
- info: t
16
- }
17
- };
18
- try {
19
- parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
20
- } catch (r) {
21
- console.debug("Could not postmessage", r);
22
- }
23
- }
24
- }
25
- const it = () => {
26
- at("insertMenu", {
27
- name: "_default",
28
- default: !0,
29
- items: [
30
- {
31
- name: "Box"
32
- },
33
- {
34
- name: "Text"
35
- },
36
- {
37
- name: "Image"
38
- },
39
- {
40
- name: "Columns"
41
- },
42
- ...x === "reactNative" ? [] : [
43
- {
44
- name: "Core:Section"
45
- },
46
- {
47
- name: "Core:Button"
48
- },
49
- {
50
- name: "Embed"
51
- },
52
- {
53
- name: "Custom Code"
54
- }
55
- ]
56
- ]
57
- });
58
- }, st = () => {
59
- var e;
60
- b() && ((e = window.parent) == null || e.postMessage({
61
- type: "builder.sdkInfo",
62
- data: {
63
- target: x,
64
- supportsPatchUpdates: !1
65
- }
66
- }, "*"), window.addEventListener("message", ({ data: t }) => {
67
- var n, o;
68
- if (t)
69
- switch (t.type) {
70
- case "builder.evaluate": {
71
- const r = t.data.text, i = t.data.arguments || [], a = t.data.id, s = new Function(r);
72
- let c, d = null;
73
- try {
74
- c = s.apply(null, i);
75
- } catch (m) {
76
- d = m;
77
- }
78
- d ? (n = window.parent) == null || n.postMessage({
79
- type: "builder.evaluateError",
80
- data: {
81
- id: a,
82
- error: d.message
83
- }
84
- }, "*") : c && typeof c.then == "function" ? c.then((m) => {
85
- var v;
86
- (v = window.parent) == null || v.postMessage({
87
- type: "builder.evaluateResult",
88
- data: {
89
- id: a,
90
- result: m
91
- }
92
- }, "*");
93
- }).catch(console.error) : (o = window.parent) == null || o.postMessage({
94
- type: "builder.evaluateResult",
95
- data: {
96
- result: c,
97
- id: a
98
- }
99
- }, "*");
100
- break;
101
- }
102
- }
103
- }));
104
- };
105
- var F = tt("Builder");
106
- function lt() {
107
- return b() && window.self !== window.top;
108
- }
109
- function _() {
110
- return lt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
111
- }
112
- const ct = {
113
- small: {
114
- min: 320,
115
- default: 321,
116
- max: 640
117
- },
118
- medium: {
119
- min: 641,
120
- default: 642,
121
- max: 991
122
- },
123
- large: {
124
- min: 990,
125
- default: 991,
126
- max: 1200
127
- }
128
- }, E = (e) => `@media (max-width: ${ct[e].max}px)`;
129
- function k({ code: e, context: t, state: n, event: o }) {
130
- if (e === "") {
131
- console.warn("Skipping evaluation of empty code block.");
132
- return;
133
- }
134
- const r = {
135
- isEditing: _(),
136
- isBrowser: b(),
137
- isServer: !b()
138
- }, a = !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
139
- try {
140
- return new Function("builder", "Builder", "state", "context", "event", a)(r, r, n, t, o);
141
- } catch (s) {
142
- debugger;
143
- console.warn("Builder custom code error: ", s);
144
- }
145
- }
146
- const ut = (e, t, n) => {
147
- if (Object(e) !== e)
148
- return e;
149
- const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
150
- return o.slice(0, -1).reduce(
151
- (r, i, a) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[a + 1])) >> 0 === +o[a + 1] ? [] : {},
152
- e
153
- )[o[o.length - 1]] = n, e;
154
- };
155
- var dt = Object.defineProperty, mt = Object.defineProperties, ft = Object.getOwnPropertyDescriptors, te = Object.getOwnPropertySymbols, pt = Object.prototype.hasOwnProperty, ht = Object.prototype.propertyIsEnumerable, ne = (e, t, n) => t in e ? dt(e, t, {
156
- enumerable: !0,
157
- configurable: !0,
158
- writable: !0,
159
- value: n
160
- }) : e[t] = n, B = (e, t) => {
161
- for (var n in t || (t = {}))
162
- pt.call(t, n) && ne(e, n, t[n]);
163
- if (te)
164
- for (var n of te(t))
165
- ht.call(t, n) && ne(e, n, t[n]);
166
- return e;
167
- }, gt = (e, t) => mt(e, ft(t));
168
- const oe = ({ block: e, context: t, state: n }) => {
169
- if (!e.bindings)
170
- return e;
171
- const o = gt(B({}, e), {
172
- properties: B({}, e.properties),
173
- actions: B({}, e.actions)
174
- });
175
- for (const r in e.bindings) {
176
- const i = e.bindings[r], a = k({
177
- code: i,
178
- state: n,
179
- context: t
180
- });
181
- ut(o, r, a);
182
- }
183
- return o;
184
- };
185
- function G(e) {
186
- const { state: t, context: n } = e, o = e.block;
187
- return oe ? oe({
188
- block: o,
189
- state: t,
190
- context: n
191
- }) : o;
192
- }
193
- const bt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), N = (e) => Object.entries(e).map(([n, o]) => {
194
- if (typeof o == "string")
195
- return `${bt(n)}: ${o};`;
196
- }).join(`
197
- `), yt = /* @__PURE__ */ h(u((e) => /* @__PURE__ */ l(f, {
198
- "q:host-pseudo": "",
199
- children: /* @__PURE__ */ l({}.tagName, {
200
- children: e.styles
201
- })
202
- }), "RenderInlinedStyles_component_0sD5UmyM3Rg")), Ne = yt, O = function(t, n) {
203
- return G({
204
- block: t.block,
205
- state: t.context.state,
206
- context: t.context.context,
207
- evaluateBindings: !0
208
- });
209
- }, vt = function(t, n) {
210
- const o = O(t).responsiveStyles, r = o?.large, i = o?.medium, a = o?.small;
211
- return `
212
- ${r ? `.${O(t).id} {${N(r)}}` : ""}
213
- ${i ? `${E("medium")} {
214
- .${O(t).id} {${N(i)}}
215
- }` : ""}
216
- ${a ? `${E("small")} {
217
- .${O(t).id} {${N(a)}}
218
- }` : ""}
219
- }`;
220
- }, _t = (e) => /* @__PURE__ */ l(f, {
221
- "q:host-pseudo": "",
222
- children: x === "vue2" || x === "vue3" || x === "svelte" ? /* @__PURE__ */ l(Ne, {
223
- styles: vt(e)
224
- }) : null
225
- }), J = _t;
226
- function xt(e) {
227
- return e.charAt(0).toUpperCase() + e.slice(1);
228
- }
229
- const wt = (e) => `on${xt(e)}`;
230
- function Ct(e) {
231
- var t;
232
- const n = {}, o = (t = e.block.actions) != null ? t : {};
233
- for (const r in o) {
234
- if (!o.hasOwnProperty(r))
235
- continue;
236
- const i = o[r];
237
- n[wt(r)] = (a) => k({
238
- code: i,
239
- context: e.context,
240
- state: e.state,
241
- event: a
242
- });
243
- }
244
- return n;
245
- }
246
- var St = Object.defineProperty, Pt = Object.defineProperties, $t = Object.getOwnPropertyDescriptors, re = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, ae = (e, t, n) => t in e ? St(e, t, {
247
- enumerable: !0,
248
- configurable: !0,
249
- writable: !0,
250
- value: n
251
- }) : e[t] = n, ie = (e, t) => {
252
- for (var n in t || (t = {}))
253
- kt.call(t, n) && ae(e, n, t[n]);
254
- if (re)
255
- for (var n of re(t))
256
- Ot.call(t, n) && ae(e, n, t[n]);
257
- return e;
258
- }, It = (e, t) => Pt(e, $t(t));
259
- function Rt(e) {
260
- var t;
261
- return It(ie(ie({}, (t = e.component) == null ? void 0 : t.options), e.options), {
262
- builderBlock: e
263
- });
264
- }
265
- var Et = Object.defineProperty, Tt = Object.defineProperties, jt = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, At = Object.prototype.propertyIsEnumerable, le = (e, t, n) => t in e ? Et(e, t, {
266
- enumerable: !0,
267
- configurable: !0,
268
- writable: !0,
269
- value: n
270
- }) : e[t] = n, Bt = (e, t) => {
271
- for (var n in t || (t = {}))
272
- Ft.call(t, n) && le(e, n, t[n]);
273
- if (se)
274
- for (var n of se(t))
275
- At.call(t, n) && le(e, n, t[n]);
276
- return e;
277
- }, Nt = (e, t) => Tt(e, jt(t));
278
- function Wt(e) {
279
- var t;
280
- return Nt(Bt({}, e.properties), {
281
- "builder-id": e.id,
282
- class: [
283
- e.id,
284
- "builder-block",
285
- e.class,
286
- (t = e.properties) == null ? void 0 : t.class
287
- ].filter(Boolean).join(" ")
288
- });
289
- }
290
- const W = (e) => e, Vt = (e) => {
291
- };
292
- var Ut = Object.defineProperty, ce = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Lt = Object.prototype.propertyIsEnumerable, ue = (e, t, n) => t in e ? Ut(e, t, {
293
- enumerable: !0,
294
- configurable: !0,
295
- writable: !0,
296
- value: n
297
- }) : e[t] = n, de = (e, t) => {
298
- for (var n in t || (t = {}))
299
- Mt.call(t, n) && ue(e, n, t[n]);
300
- if (ce)
301
- for (var n of ce(t))
302
- Lt.call(t, n) && ue(e, n, t[n]);
303
- return e;
304
- };
305
- function Dt(e) {
306
- var t, n, o, r, i;
307
- const a = de(de({}, W((t = e.responsiveStyles) == null ? void 0 : t.large)), e.styles);
308
- return (n = e.responsiveStyles) != null && n.medium && (a[E("medium")] = W((o = e.responsiveStyles) == null ? void 0 : o.medium)), (r = e.responsiveStyles) != null && r.small && (a[E("small")] = W((i = e.responsiveStyles) == null ? void 0 : i.small)), Vt(), a;
309
- }
310
- function qt(e) {
311
- return e.tagName || "div";
312
- }
313
- const zt = [
314
- "area",
315
- "base",
316
- "br",
317
- "col",
318
- "embed",
319
- "hr",
320
- "img",
321
- "input",
322
- "keygen",
323
- "link",
324
- "meta",
325
- "param",
326
- "source",
327
- "track",
328
- "wbr"
329
- ], Kt = (e) => typeof e == "string" && zt.includes(e.toLowerCase()), Ht = (e) => /* @__PURE__ */ l(f, {
330
- "q:host-pseudo": "",
331
- children: e.componentRef ? /* @__PURE__ */ S(e.componentRef, {
332
- ...e.componentOptions,
333
- children: [
334
- (e.blockChildren || []).map((t) => /* @__PURE__ */ l(Q, {
335
- block: t,
336
- context: e.context
337
- }, "render-block-" + t.id)),
338
- (e.blockChildren || []).map((t) => /* @__PURE__ */ l(J, {
339
- block: t,
340
- context: e.context
341
- }, "block-style-" + t.id))
342
- ]
343
- }) : null
344
- }), me = Ht, Gt = /* @__PURE__ */ h(u((e) => (je(F, $({
345
- content: (() => e.repeatContext.content)(),
346
- state: (() => e.repeatContext.state)(),
347
- context: (() => e.repeatContext.context)(),
348
- apiKey: (() => e.repeatContext.apiKey)(),
349
- registeredComponents: (() => e.repeatContext.registeredComponents)()
350
- })), /* @__PURE__ */ l(f, {
351
- "q:host-pseudo": "",
352
- children: /* @__PURE__ */ l(Q, {
353
- block: e.block,
354
- context: e.context
355
- })
356
- })), "RenderRepeatedBlock_component_fV0PdmPN990")), Jt = Gt, M = function(t, n) {
357
- const o = G({
358
- block: t.block,
359
- state: t.context.state,
360
- context: t.context.context,
361
- evaluateBindings: !1
362
- }).component?.name;
363
- if (!o)
364
- return null;
365
- const r = t.context.registeredComponents[o];
366
- if (r)
367
- return r;
368
- console.warn(`
369
- Could not find a registered component named "${o}".
370
- If you registered it, is the file that registered it imported by the file that needs to render it?`);
371
- }, Qt = function(t, n) {
372
- if (M(t)) {
373
- const { component: o, ...r } = M(t);
374
- return r;
375
- } else
376
- return;
377
- }, We = function(t, n) {
378
- return M(t)?.component;
379
- }, fe = function(t, n) {
380
- return qt(C(t));
381
- }, C = function(t, n) {
382
- return P(t) ? t.block : G({
383
- block: t.block,
384
- state: t.context.state,
385
- context: t.context.context,
386
- evaluateBindings: !0
387
- });
388
- }, L = function(t, n) {
389
- return {
390
- ...Wt(C(t)),
391
- ...Ct({
392
- block: C(t),
393
- state: t.context.state,
394
- context: t.context.context
395
- }),
396
- style: Dt(C(t))
397
- };
398
- }, Ve = function(t, n) {
399
- return !Qt(t)?.noWrap;
400
- }, Yt = function(t, n) {
401
- return {
402
- ...Rt(C(t)),
403
- ...Ve(t) ? {} : {
404
- attributes: L(t)
405
- }
406
- };
407
- }, pe = function(t, n) {
408
- return {
409
- blockChildren: Ue(t),
410
- componentRef: We(t),
411
- componentOptions: Yt(t)
412
- };
413
- }, Ue = function(t, n) {
414
- return C(t).children ?? [];
415
- }, he = function(t, n) {
416
- return !We(t) && !P(t) ? Ue(t) : [];
417
- }, P = function(t, n) {
418
- const { repeat: o, ...r } = t.block;
419
- if (!o?.collection)
420
- return;
421
- const i = k({
422
- code: o.collection,
423
- state: t.context.state,
424
- context: t.context.context
425
- });
426
- if (!Array.isArray(i))
427
- return;
428
- const a = o.collection.split(".").pop(), s = o.itemName || (a ? a + "Item" : "item");
429
- return i.map(
430
- (d, m) => ({
431
- context: {
432
- ...t.context,
433
- state: {
434
- ...t.context.state,
435
- $index: m,
436
- $item: d,
437
- [s]: d,
438
- [`$${s}Index`]: m
439
- }
440
- },
441
- block: r
442
- })
443
- );
444
- }, Me = (e) => {
445
- const t = {};
446
- return t.tagName = fe(e), /* @__PURE__ */ l(f, {
447
- "q:host-pseudo": "",
448
- children: Ve(e) ? Kt(fe(e)) ? /* @__PURE__ */ l(t.tagName, {
449
- ...L(e)
450
- }) : /* @__PURE__ */ S(t.tagName, {
451
- ...L(e),
452
- children: [
453
- P(e) ? (P(e) || []).map((n, o) => /* @__PURE__ */ l(Jt, {
454
- repeatContext: n.context,
455
- block: n.block,
456
- context: e.context
457
- }, o)) : null,
458
- P(e) ? null : /* @__PURE__ */ l(me, {
459
- ...pe(e)
460
- }),
461
- (he(e) || []).map((n) => /* @__PURE__ */ l(Me, {
462
- block: n,
463
- context: e.context
464
- }, "render-block-" + n.id)),
465
- (he(e) || []).map((n) => /* @__PURE__ */ l(J, {
466
- block: n,
467
- context: e.context
468
- }, "block-style-" + n.id))
469
- ]
470
- }) : /* @__PURE__ */ l(me, {
471
- ...pe(e),
472
- context: e.context
473
- })
474
- });
475
- }, Q = Me, ge = function(t, n, o) {
476
- return "builder-blocks" + (t.blocks?.length ? "" : " no-blocks");
477
- }, Xt = function(t, n, o) {
478
- _() && !t.blocks?.length && window.parent?.postMessage({
479
- type: "builder.clickEmptyBlocks",
480
- data: {
481
- parentElementId: t.parent,
482
- dataPath: t.path
483
- }
484
- }, "*");
485
- }, Zt = function(t, n, o) {
486
- _() && !t.blocks?.length && window.parent?.postMessage({
487
- type: "builder.hoverEmptyBlocks",
488
- data: {
489
- parentElementId: t.parent,
490
- dataPath: t.path
491
- }
492
- }, "*");
493
- }, en = /* @__PURE__ */ h(u((e) => {
494
- H(u(tn, "RenderBlocks_component_useScopedStyles_R9EkqKI4BVw"));
495
- const t = Fe(F), n = {};
496
- return /* @__PURE__ */ l(f, {
497
- class: ge(e) + " div-RenderBlocks",
498
- "builder-path": e.path,
499
- "builder-parent-id": e.parent,
500
- dataSet: {
501
- class: ge(e)
502
- },
503
- onClick$: u((o) => {
504
- const [r, i, a] = g();
505
- return Xt(i);
506
- }, "RenderBlocks_component_Host_onClick_81ErKSpyspw", [
507
- t,
508
- e,
509
- n
510
- ]),
511
- onMouseEnter$: u((o) => {
512
- const [r, i, a] = g();
513
- return Zt(i);
514
- }, "RenderBlocks_component_Host_onMouseEnter_h6rWG6KLkHE", [
515
- t,
516
- e,
517
- n
518
- ]),
519
- children: /* @__PURE__ */ S(Be, {
520
- children: [
521
- e.blocks ? (e.blocks || []).map((o) => /* @__PURE__ */ l(Q, {
522
- block: o,
523
- context: t
524
- }, "render-block-" + o.id)) : null,
525
- e.blocks ? (e.blocks || []).map((o) => /* @__PURE__ */ l(J, {
526
- block: o,
527
- context: t
528
- }, "block-style-" + o.id)) : null
529
- ]
530
- })
531
- });
532
- }, "RenderBlocks_component_SXGwmVyEM0s"), {
533
- tagName: "div"
534
- }), Le = en, tn = `.div-RenderBlocks {
535
- display: flex;
536
- flex-direction: column;
537
- align-items: stretch; }`, De = function(t, n) {
538
- return typeof t.space == "number" ? t.space || 0 : 20;
539
- }, qe = function(t, n) {
540
- return t.columns || [];
541
- }, nn = function(t, n, o) {
542
- const r = qe(t);
543
- return r[o]?.width || 100 / r.length;
544
- }, on = function(t, n, o) {
545
- const r = qe(t), a = De(t) * (r.length - 1) / r.length;
546
- return `calc(${nn(t, n, o)}% - ${a}px)`;
547
- }, D = function(t, n, o) {
548
- return (t.stackColumnsAt || "tablet") === "tablet" ? o : "inherit";
549
- }, rn = function(t, n) {
550
- const o = t.stackColumnsAt === "never" ? "inherit" : t.reverseColumnsWhenStacked ? "column-reverse" : "column";
551
- return {
552
- "--flex-dir": o,
553
- "--flex-dir-tablet": D(t, n, o)
554
- };
555
- }, an = function(t, n) {
556
- const o = "100%", r = "0";
557
- return {
558
- "--column-width": o,
559
- "--column-margin-left": r,
560
- "--column-width-tablet": D(t, n, o),
561
- "--column-margin-left-tablet": D(t, n, r)
562
- };
563
- }, sn = /* @__PURE__ */ h(u((e) => {
564
- H(u(cn, "Columns_component_useScopedStyles_0DZc376lT0c"));
565
- const t = {};
566
- return /* @__PURE__ */ l(f, {
567
- class: "builder-columns div-Columns",
568
- style: rn(e, t),
569
- children: (e.columns || []).map((n, o) => /* @__PURE__ */ l("div", {
570
- class: "builder-column div-Columns-2",
571
- style: {
572
- width: on(e, t, o),
573
- marginLeft: `${o === 0 ? 0 : De(e)}px`,
574
- ...an(e, t)
575
- },
576
- children: /* @__PURE__ */ l(Le, {
577
- blocks: n.blocks
578
- })
579
- }, o))
580
- });
581
- }, "Columns_component_0PeVQGTMczc"), {
582
- tagName: "div"
583
- }), ln = sn, cn = `
584
- .div-Columns {
585
- display: flex;
586
- align-items: stretch;
587
- line-height: normal;
588
- }
589
- @media (max-width: 999px) {
590
- .div-Columns {
591
- flex-direction: var(--flex-dir-tablet);
592
- }
593
- }
594
- @media (max-width: 639px) {
595
- .div-Columns {
596
- flex-direction: var(--flex-dir);
597
- }
598
- }
599
- .div-Columns-2 {
600
- flex-grow: 1;
601
- }
602
- @media (max-width: 999px) {
603
- .div-Columns-2 {
604
- width: var(--column-width-tablet) !important;
605
- margin-left: var(--column-margin-left-tablet) !important;
606
- }
607
- }
608
- @media (max-width: 639px) {
609
- .div-Columns-2 {
610
- width: var(--column-width) !important;
611
- margin-left: var(--column-margin-left) !important;
612
- }
613
- }
614
- `;
615
- function be(e) {
616
- return e.replace(/http(s)?:/, "");
617
- }
618
- function un(e = "", t, n) {
619
- const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
620
- return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
621
- }
622
- function dn(e, t) {
623
- if (!e || !e?.match(/cdn\.shopify\.com/) || !t)
624
- return e;
625
- if (t === "master")
626
- return be(e);
627
- const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
628
- if (n) {
629
- const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
630
- return be(`${o[0]}_${i}${r}`);
631
- }
632
- return null;
633
- }
634
- function V(e) {
635
- if (!e)
636
- return e;
637
- const t = [
638
- 100,
639
- 200,
640
- 400,
641
- 800,
642
- 1200,
643
- 1600,
644
- 2e3
645
- ];
646
- if (e.match(/builder\.io/)) {
647
- let n = e;
648
- const o = Number(e.split("?width=")[1]);
649
- return isNaN(o) || (n = `${n} ${o}w`), t.filter(
650
- (r) => r !== o
651
- ).map(
652
- (r) => `${un(e, "width", r)} ${r}w`
653
- ).concat([
654
- n
655
- ]).join(", ");
656
- }
657
- return e.match(/cdn\.shopify\.com/) ? t.map(
658
- (n) => [
659
- dn(e, `${n}x${n}`),
660
- n
661
- ]
662
- ).filter(
663
- ([n]) => !!n
664
- ).map(
665
- ([n, o]) => `${n} ${o}w`
666
- ).concat([
667
- e
668
- ]).join(", ") : e;
669
- }
670
- const T = function(t, n) {
671
- const r = t.image || t.src;
672
- if (!r || !(r.match(/builder\.io/) || r.match(/cdn\.shopify\.com/)))
673
- return t.srcset;
674
- if (t.srcset && t.image?.includes("builder.io/api/v1/image")) {
675
- if (!t.srcset.includes(t.image.split("?")[0]))
676
- return console.debug("Removed given srcset"), V(r);
677
- } else if (t.image && !t.srcset)
678
- return V(r);
679
- return V(r);
680
- }, ye = function(t, n) {
681
- return T(t)?.match(/builder\.io/) && !t.noWebp ? T(t).replace(/\?/g, "?format=webp&") : "";
682
- }, mn = /* @__PURE__ */ h(u((e) => (H(u(pn, "Image_component_useScopedStyles_rg7Nk0TCerw")), /* @__PURE__ */ l(f, {
683
- class: "div-Image",
684
- children: /* @__PURE__ */ S(Be, {
685
- children: [
686
- /* @__PURE__ */ S("picture", {
687
- children: [
688
- ye(e) ? /* @__PURE__ */ l("source", {
689
- type: "image/webp",
690
- srcset: ye(e)
691
- }) : null,
692
- /* @__PURE__ */ l("img", {
693
- loading: "lazy",
694
- alt: e.altText,
695
- role: e.altText ? "presentation" : void 0,
696
- style: {
697
- objectPosition: e.backgroundSize || "center",
698
- objectFit: e.backgroundSize || "cover"
699
- },
700
- class: "builder-image" + (e.className ? " " + e.className : "") + " img-Image",
701
- src: e.image,
702
- srcset: T(e),
703
- sizes: e.sizes
704
- }),
705
- /* @__PURE__ */ l("source", {
706
- srcset: T(e)
707
- })
708
- ]
709
- }),
710
- e.aspectRatio && !(e.fitContent && e.builderBlock?.children?.length) ? /* @__PURE__ */ l("div", {
711
- class: "builder-image-sizer div-Image-2",
712
- style: {
713
- paddingTop: e.aspectRatio * 100 + "%"
714
- }
715
- }) : null,
716
- e.builderBlock?.children?.length && e.fitContent ? /* @__PURE__ */ l(R, {}) : null,
717
- e.fitContent ? null : /* @__PURE__ */ l("div", {
718
- class: "div-Image-3",
719
- children: /* @__PURE__ */ l(R, {})
720
- })
721
- ]
722
- })
723
- })), "Image_component_y3S3Zox9wEo"), {
724
- tagName: "div"
725
- }), fn = mn, pn = `.div-Image {
726
- position: relative; }.img-Image {
727
- opacity: 1;
728
- transition: opacity 0.2s ease-in-out;
729
- position: absolute;
730
- height: 100%;
731
- width: 100%;
732
- top: 0px;
733
- left: 0px; }.div-Image-2 {
734
- width: 100%;
735
- pointer-events: none;
736
- font-size: 0; }.div-Image-3 {
737
- display: flex;
738
- flex-direction: column;
739
- align-items: stretch;
740
- position: absolute;
741
- top: 0;
742
- left: 0;
743
- width: 100%;
744
- height: 100%; }`, hn = /* @__PURE__ */ h(u((e) => /* @__PURE__ */ l(f, {
745
- class: "builder-text",
746
- dangerouslySetInnerHTML: e.text
747
- }), "Text_component_ci0NVEdoK0Q"), {
748
- tagName: "div"
749
- }), gn = hn, bn = function(t, n) {
750
- return {
751
- ...t.autoPlay === !0 ? {
752
- autoPlay: !0
753
- } : {},
754
- ...t.muted === !0 ? {
755
- muted: !0
756
- } : {},
757
- ...t.controls === !0 ? {
758
- controls: !0
759
- } : {},
760
- ...t.loop === !0 ? {
761
- loop: !0
762
- } : {},
763
- ...t.playsInline === !0 ? {
764
- playsInline: !0
765
- } : {}
766
- };
767
- }, yn = /* @__PURE__ */ h(u((e) => /* @__PURE__ */ l(f, {
768
- ...bn(e),
769
- style: {
770
- width: "100%",
771
- height: "100%",
772
- ...e.attributes?.style,
773
- objectFit: e.fit,
774
- objectPosition: e.position,
775
- borderRadius: 1
776
- },
777
- src: e.video || "no-src",
778
- poster: e.posterImage
779
- }), "Video_component_O5sPuWlrTvk"), {
780
- tagName: "video"
781
- }), vn = yn, _n = /* @__PURE__ */ h(u((e) => /* @__PURE__ */ l(f, {
782
- "q:host-pseudo": "",
783
- children: /* @__PURE__ */ l(nt, {
784
- children: e.link ? /* @__PURE__ */ l("a", {
785
- role: "button",
786
- ...e.attributes,
787
- href: e.link,
788
- target: e.openLinkInNewTab ? "_blank" : void 0,
789
- children: e.text
790
- }) : /* @__PURE__ */ l("span", {
791
- ...e.attributes,
792
- children: e.text
793
- })
794
- })
795
- }), "Button_component_FtjCELjtKF4")), xn = _n, wn = {
796
- name: "Core:Button",
797
- builtIn: !0,
798
- image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
799
- defaultStyles: {
800
- appearance: "none",
801
- paddingTop: "15px",
802
- paddingBottom: "15px",
803
- paddingLeft: "25px",
804
- paddingRight: "25px",
805
- backgroundColor: "#000000",
806
- color: "white",
807
- borderRadius: "4px",
808
- textAlign: "center",
809
- cursor: "pointer"
810
- },
811
- inputs: [
812
- {
813
- name: "text",
814
- type: "text",
815
- defaultValue: "Click me!",
816
- bubble: !0
817
- },
818
- {
819
- name: "link",
820
- type: "url",
821
- bubble: !0
822
- },
823
- {
824
- name: "openLinkInNewTab",
825
- type: "boolean",
826
- defaultValue: !1,
827
- friendlyName: "Open link in new tab"
828
- }
829
- ],
830
- static: !0,
831
- noWrap: !0
832
- };
833
- function Y(e) {
834
- return e.__qwik_serializable__ = !0, e;
835
- }
836
- const Cn = {
837
- name: "Columns",
838
- builtIn: !0,
839
- inputs: [
840
- {
841
- name: "columns",
842
- type: "array",
843
- broadcast: !0,
844
- subFields: [
845
- {
846
- name: "blocks",
847
- type: "array",
848
- hideFromUI: !0,
849
- defaultValue: [
850
- {
851
- "@type": "@builder.io/sdk:Element",
852
- responsiveStyles: {
853
- large: {
854
- display: "flex",
855
- flexDirection: "column",
856
- alignItems: "stretch",
857
- flexShrink: "0",
858
- position: "relative",
859
- marginTop: "30px",
860
- textAlign: "center",
861
- lineHeight: "normal",
862
- height: "auto",
863
- minHeight: "20px",
864
- minWidth: "20px",
865
- overflow: "hidden"
866
- }
867
- },
868
- component: {
869
- name: "Image",
870
- options: {
871
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
872
- backgroundPosition: "center",
873
- backgroundSize: "cover",
874
- aspectRatio: 0.7004048582995948
875
- }
876
- }
877
- },
878
- {
879
- "@type": "@builder.io/sdk:Element",
880
- responsiveStyles: {
881
- large: {
882
- display: "flex",
883
- flexDirection: "column",
884
- alignItems: "stretch",
885
- flexShrink: "0",
886
- position: "relative",
887
- marginTop: "30px",
888
- textAlign: "center",
889
- lineHeight: "normal",
890
- height: "auto"
891
- }
892
- },
893
- component: {
894
- name: "Text",
895
- options: {
896
- text: "<p>Enter some text...</p>"
897
- }
898
- }
899
- }
900
- ]
901
- },
902
- {
903
- name: "width",
904
- type: "number",
905
- hideFromUI: !0,
906
- helperText: "Width %, e.g. set to 50 to fill half of the space"
907
- },
908
- {
909
- name: "link",
910
- type: "url",
911
- helperText: "Optionally set a url that clicking this column will link to"
912
- }
913
- ],
914
- defaultValue: [
915
- {
916
- blocks: [
917
- {
918
- "@type": "@builder.io/sdk:Element",
919
- responsiveStyles: {
920
- large: {
921
- display: "flex",
922
- flexDirection: "column",
923
- alignItems: "stretch",
924
- flexShrink: "0",
925
- position: "relative",
926
- marginTop: "30px",
927
- textAlign: "center",
928
- lineHeight: "normal",
929
- height: "auto",
930
- minHeight: "20px",
931
- minWidth: "20px",
932
- overflow: "hidden"
933
- }
934
- },
935
- component: {
936
- name: "Image",
937
- options: {
938
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
939
- backgroundPosition: "center",
940
- backgroundSize: "cover",
941
- aspectRatio: 0.7004048582995948
942
- }
943
- }
944
- },
945
- {
946
- "@type": "@builder.io/sdk:Element",
947
- responsiveStyles: {
948
- large: {
949
- display: "flex",
950
- flexDirection: "column",
951
- alignItems: "stretch",
952
- flexShrink: "0",
953
- position: "relative",
954
- marginTop: "30px",
955
- textAlign: "center",
956
- lineHeight: "normal",
957
- height: "auto"
958
- }
959
- },
960
- component: {
961
- name: "Text",
962
- options: {
963
- text: "<p>Enter some text...</p>"
964
- }
965
- }
966
- }
967
- ]
968
- },
969
- {
970
- blocks: [
971
- {
972
- "@type": "@builder.io/sdk:Element",
973
- responsiveStyles: {
974
- large: {
975
- display: "flex",
976
- flexDirection: "column",
977
- alignItems: "stretch",
978
- flexShrink: "0",
979
- position: "relative",
980
- marginTop: "30px",
981
- textAlign: "center",
982
- lineHeight: "normal",
983
- height: "auto",
984
- minHeight: "20px",
985
- minWidth: "20px",
986
- overflow: "hidden"
987
- }
988
- },
989
- component: {
990
- name: "Image",
991
- options: {
992
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
993
- backgroundPosition: "center",
994
- backgroundSize: "cover",
995
- aspectRatio: 0.7004048582995948
996
- }
997
- }
998
- },
999
- {
1000
- "@type": "@builder.io/sdk:Element",
1001
- responsiveStyles: {
1002
- large: {
1003
- display: "flex",
1004
- flexDirection: "column",
1005
- alignItems: "stretch",
1006
- flexShrink: "0",
1007
- position: "relative",
1008
- marginTop: "30px",
1009
- textAlign: "center",
1010
- lineHeight: "normal",
1011
- height: "auto"
1012
- }
1013
- },
1014
- component: {
1015
- name: "Text",
1016
- options: {
1017
- text: "<p>Enter some text...</p>"
1018
- }
1019
- }
1020
- }
1021
- ]
1022
- }
1023
- ],
1024
- onChange: Y((e) => {
1025
- function t() {
1026
- n.forEach((o) => {
1027
- o.delete("width");
1028
- });
1029
- }
1030
- const n = e.get("columns");
1031
- Array.isArray(n) && !!n.find(
1032
- (r) => r.get("width")
1033
- ) && (!!n.find(
1034
- (i) => !i.get("width")
1035
- ) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
1036
- })
1037
- },
1038
- {
1039
- name: "space",
1040
- type: "number",
1041
- defaultValue: 20,
1042
- helperText: "Size of gap between columns",
1043
- advanced: !0
1044
- },
1045
- {
1046
- name: "stackColumnsAt",
1047
- type: "string",
1048
- defaultValue: "tablet",
1049
- helperText: "Convert horizontal columns to vertical at what device size",
1050
- enum: [
1051
- "tablet",
1052
- "mobile",
1053
- "never"
1054
- ],
1055
- advanced: !0
1056
- },
1057
- {
1058
- name: "reverseColumnsWhenStacked",
1059
- type: "boolean",
1060
- defaultValue: !1,
1061
- helperText: "When stacking columns for mobile devices, reverse the ordering",
1062
- advanced: !0
1063
- }
1064
- ]
1065
- }, Sn = {
1066
- name: "Fragment",
1067
- static: !0,
1068
- hidden: !0,
1069
- builtIn: !0,
1070
- canHaveChildren: !0,
1071
- noWrap: !0
1072
- }, Pn = /* @__PURE__ */ h(u((e) => /* @__PURE__ */ l(f, {
1073
- children: /* @__PURE__ */ l(R, {})
1074
- }), "FragmentComponent_component_FJmqlA66Rjg"), {
1075
- tagName: "span"
1076
- }), $n = Pn, kn = {
1077
- name: "Image",
1078
- static: !0,
1079
- builtIn: !0,
1080
- 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",
1081
- defaultStyles: {
1082
- position: "relative",
1083
- minHeight: "20px",
1084
- minWidth: "20px",
1085
- overflow: "hidden"
1086
- },
1087
- canHaveChildren: !0,
1088
- inputs: [
1089
- {
1090
- name: "image",
1091
- type: "file",
1092
- bubble: !0,
1093
- allowedFileTypes: [
1094
- "jpeg",
1095
- "jpg",
1096
- "png",
1097
- "svg"
1098
- ],
1099
- required: !0,
1100
- defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
1101
- onChange: Y((e) => {
1102
- e.delete("srcset"), e.delete("noWebp");
1103
- function n(a, s = 6e4) {
1104
- return new Promise((c, d) => {
1105
- const m = document.createElement("img");
1106
- let v = !1;
1107
- m.onload = () => {
1108
- v = !0, c(m);
1109
- }, m.addEventListener("error", (Z) => {
1110
- console.warn("Image load failed", Z.error), d(Z.error);
1111
- }), m.src = a, setTimeout(() => {
1112
- v || d(new Error("Image load timed out"));
1113
- }, s);
1114
- });
1115
- }
1116
- function o(a) {
1117
- return Math.round(a * 1e3) / 1e3;
1118
- }
1119
- const r = e.get("image"), i = e.get("aspectRatio");
1120
- if (fetch(r).then(
1121
- (a) => a.blob()
1122
- ).then((a) => {
1123
- a.type.includes("svg") && e.set("noWebp", !0);
1124
- }), r && (!i || i === 0.7041))
1125
- return n(r).then((a) => {
1126
- const s = e.get("aspectRatio");
1127
- e.get("image") === r && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1128
- });
1129
- })
1130
- },
1131
- {
1132
- name: "backgroundSize",
1133
- type: "text",
1134
- defaultValue: "cover",
1135
- enum: [
1136
- {
1137
- label: "contain",
1138
- value: "contain",
1139
- helperText: "The image should never get cropped"
1140
- },
1141
- {
1142
- label: "cover",
1143
- value: "cover",
1144
- helperText: "The image should fill it's box, cropping when needed"
1145
- }
1146
- ]
1147
- },
1148
- {
1149
- name: "backgroundPosition",
1150
- type: "text",
1151
- defaultValue: "center",
1152
- enum: [
1153
- "center",
1154
- "top",
1155
- "left",
1156
- "right",
1157
- "bottom",
1158
- "top left",
1159
- "top right",
1160
- "bottom left",
1161
- "bottom right"
1162
- ]
1163
- },
1164
- {
1165
- name: "altText",
1166
- type: "string",
1167
- helperText: "Text to display when the user has images off"
1168
- },
1169
- {
1170
- name: "height",
1171
- type: "number",
1172
- hideFromUI: !0
1173
- },
1174
- {
1175
- name: "width",
1176
- type: "number",
1177
- hideFromUI: !0
1178
- },
1179
- {
1180
- name: "sizes",
1181
- type: "string",
1182
- hideFromUI: !0
1183
- },
1184
- {
1185
- name: "srcset",
1186
- type: "string",
1187
- hideFromUI: !0
1188
- },
1189
- {
1190
- name: "lazy",
1191
- type: "boolean",
1192
- defaultValue: !0,
1193
- hideFromUI: !0
1194
- },
1195
- {
1196
- name: "fitContent",
1197
- type: "boolean",
1198
- helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
1199
- defaultValue: !0
1200
- },
1201
- {
1202
- name: "aspectRatio",
1203
- type: "number",
1204
- 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",
1205
- advanced: !0,
1206
- defaultValue: 0.7041
1207
- }
1208
- ]
1209
- }, On = {
1210
- name: "Core:Section",
1211
- static: !0,
1212
- builtIn: !0,
1213
- image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
1214
- inputs: [
1215
- {
1216
- name: "maxWidth",
1217
- type: "number",
1218
- defaultValue: 1200
1219
- },
1220
- {
1221
- name: "lazyLoad",
1222
- type: "boolean",
1223
- defaultValue: !1,
1224
- advanced: !0,
1225
- description: "Only render this section when in view"
1226
- }
1227
- ],
1228
- defaultStyles: {
1229
- paddingLeft: "20px",
1230
- paddingRight: "20px",
1231
- paddingTop: "50px",
1232
- paddingBottom: "50px",
1233
- marginTop: "0px",
1234
- width: "100vw",
1235
- marginLeft: "calc(50% - 50vw)"
1236
- },
1237
- canHaveChildren: !0,
1238
- defaultChildren: [
1239
- {
1240
- "@type": "@builder.io/sdk:Element",
1241
- responsiveStyles: {
1242
- large: {
1243
- textAlign: "center"
1244
- }
1245
- },
1246
- component: {
1247
- name: "Text",
1248
- options: {
1249
- 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>"
1250
- }
1251
- }
1252
- }
1253
- ]
1254
- }, In = /* @__PURE__ */ h(u((e) => /* @__PURE__ */ l(f, {
1255
- ...e.attributes,
1256
- style: (() => {
1257
- e.maxWidth && typeof e.maxWidth == "number" && e.maxWidth;
1258
- })(),
1259
- children: /* @__PURE__ */ l(R, {})
1260
- }), "SectionComponent_component_m1CcjCwgHug"), {
1261
- tagName: "section"
1262
- }), Rn = In, En = {
1263
- name: "Symbol",
1264
- noWrap: !0,
1265
- static: !0,
1266
- builtIn: !0,
1267
- inputs: [
1268
- {
1269
- name: "symbol",
1270
- type: "uiSymbol"
1271
- },
1272
- {
1273
- name: "dataOnly",
1274
- helperText: "Make this a data symbol that doesn't display any UI",
1275
- type: "boolean",
1276
- defaultValue: !1,
1277
- advanced: !0,
1278
- hideFromUI: !0
1279
- },
1280
- {
1281
- name: "inheritState",
1282
- helperText: "Inherit the parent component state and data",
1283
- type: "boolean",
1284
- defaultValue: !1,
1285
- advanced: !0
1286
- },
1287
- {
1288
- name: "renderToLiquid",
1289
- helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
1290
- type: "boolean",
1291
- defaultValue: !1,
1292
- advanced: !0,
1293
- hideFromUI: !0
1294
- },
1295
- {
1296
- name: "useChildren",
1297
- hideFromUI: !0,
1298
- type: "boolean"
1299
- }
1300
- ]
1301
- }, Tn = {
1302
- name: "Text",
1303
- static: !0,
1304
- builtIn: !0,
1305
- 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",
1306
- inputs: [
1307
- {
1308
- name: "text",
1309
- type: "html",
1310
- required: !0,
1311
- autoFocus: !0,
1312
- bubble: !0,
1313
- defaultValue: "Enter some text..."
1314
- }
1315
- ],
1316
- defaultStyles: {
1317
- lineHeight: "normal",
1318
- height: "auto",
1319
- textAlign: "center"
1320
- }
1321
- }, jn = {
1322
- name: "Video",
1323
- canHaveChildren: !0,
1324
- builtIn: !0,
1325
- defaultStyles: {
1326
- minHeight: "20px",
1327
- minWidth: "20px"
1328
- },
1329
- 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",
1330
- inputs: [
1331
- {
1332
- name: "video",
1333
- type: "file",
1334
- allowedFileTypes: [
1335
- "mp4"
1336
- ],
1337
- bubble: !0,
1338
- defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
1339
- required: !0
1340
- },
1341
- {
1342
- name: "posterImage",
1343
- type: "file",
1344
- allowedFileTypes: [
1345
- "jpeg",
1346
- "png"
1347
- ],
1348
- helperText: "Image to show before the video plays"
1349
- },
1350
- {
1351
- name: "autoPlay",
1352
- type: "boolean",
1353
- defaultValue: !0
1354
- },
1355
- {
1356
- name: "controls",
1357
- type: "boolean",
1358
- defaultValue: !1
1359
- },
1360
- {
1361
- name: "muted",
1362
- type: "boolean",
1363
- defaultValue: !0
1364
- },
1365
- {
1366
- name: "loop",
1367
- type: "boolean",
1368
- defaultValue: !0
1369
- },
1370
- {
1371
- name: "playsInline",
1372
- type: "boolean",
1373
- defaultValue: !0
1374
- },
1375
- {
1376
- name: "fit",
1377
- type: "text",
1378
- defaultValue: "cover",
1379
- enum: [
1380
- "contain",
1381
- "cover",
1382
- "fill",
1383
- "auto"
1384
- ]
1385
- },
1386
- {
1387
- name: "fitContent",
1388
- type: "boolean",
1389
- helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
1390
- defaultValue: !0,
1391
- advanced: !0
1392
- },
1393
- {
1394
- name: "position",
1395
- type: "text",
1396
- defaultValue: "center",
1397
- enum: [
1398
- "center",
1399
- "top",
1400
- "left",
1401
- "right",
1402
- "bottom",
1403
- "top left",
1404
- "top right",
1405
- "bottom left",
1406
- "bottom right"
1407
- ]
1408
- },
1409
- {
1410
- name: "height",
1411
- type: "number",
1412
- advanced: !0
1413
- },
1414
- {
1415
- name: "width",
1416
- type: "number",
1417
- advanced: !0
1418
- },
1419
- {
1420
- name: "aspectRatio",
1421
- type: "number",
1422
- advanced: !0,
1423
- defaultValue: 0.7004048582995948
1424
- },
1425
- {
1426
- name: "lazyLoad",
1427
- type: "boolean",
1428
- helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
1429
- defaultValue: !0,
1430
- advanced: !0
1431
- }
1432
- ]
1433
- }, Fn = {
1434
- name: "Embed",
1435
- static: !0,
1436
- builtIn: !0,
1437
- inputs: [
1438
- {
1439
- name: "url",
1440
- type: "url",
1441
- required: !0,
1442
- defaultValue: "",
1443
- helperText: "e.g. enter a youtube url, google map, etc",
1444
- onChange: Y((e) => {
1445
- const t = e.get("url");
1446
- if (t)
1447
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(
1448
- (o) => o.json()
1449
- ).then((o) => {
1450
- e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1451
- }).catch((o) => {
1452
- e.set("content", "There was an error embedding this URL, please try again or another URL");
1453
- });
1454
- e.delete("content");
1455
- })
1456
- },
1457
- {
1458
- name: "content",
1459
- type: "html",
1460
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1461
- hideFromUI: !0
1462
- }
1463
- ]
1464
- }, An = [
1465
- "text/javascript",
1466
- "application/javascript",
1467
- "application/ecmascript"
1468
- ], Bn = (e) => An.includes(e.type), Nn = function(t, n, o) {
1469
- const r = o.getElementsByTagName("script");
1470
- for (let i = 0; i < r.length; i++) {
1471
- const a = r[i];
1472
- if (a.src && !n.scriptsInserted.includes(a.src)) {
1473
- n.scriptsInserted.push(a.src);
1474
- const s = document.createElement("script");
1475
- s.async = !0, s.src = a.src, document.head.appendChild(s);
1476
- } else if (Bn(a) && !n.scriptsRun.includes(a.innerText))
1477
- try {
1478
- n.scriptsRun.push(a.innerText), new Function(a.innerText)();
1479
- } catch (s) {
1480
- console.warn("`Embed`: Error running script:", s);
1481
- }
1482
- }
1483
- }, Wn = /* @__PURE__ */ h(u((e) => {
1484
- const t = ot(), n = $({
1485
- scriptsInserted: [],
1486
- scriptsRun: [],
1487
- ranInitFn: !1
1488
- });
1489
- return w(u((o) => {
1490
- const [r, i, a] = g();
1491
- a && o(a, "ranInitFn"), r && !a.ranInitFn && (a.ranInitFn = !0, Nn(i, a, r));
1492
- }, "Embed_component_useWatch_XE41s3iNuto", [
1493
- t,
1494
- e,
1495
- n
1496
- ])), /* @__PURE__ */ l(f, {
1497
- class: "builder-embed",
1498
- ref: t,
1499
- dangerouslySetInnerHTML: e.content
1500
- });
1501
- }, "Embed_component_CP6B8Y76ylw"), {
1502
- tagName: "div"
1503
- }), Vn = Wn;
1504
- var Un = Object.defineProperty, ve = Object.getOwnPropertySymbols, Mn = Object.prototype.hasOwnProperty, Ln = Object.prototype.propertyIsEnumerable, _e = (e, t, n) => t in e ? Un(e, t, {
1505
- enumerable: !0,
1506
- configurable: !0,
1507
- writable: !0,
1508
- value: n
1509
- }) : e[t] = n, y = (e, t) => {
1510
- for (var n in t || (t = {}))
1511
- Mn.call(t, n) && _e(e, n, t[n]);
1512
- if (ve)
1513
- for (var n of ve(t))
1514
- Ln.call(t, n) && _e(e, n, t[n]);
1515
- return e;
1516
- };
1517
- const Dn = () => [
1518
- y({
1519
- component: ln
1520
- }, Cn),
1521
- y({
1522
- component: fn
1523
- }, kn),
1524
- y({
1525
- component: gn
1526
- }, Tn),
1527
- y({
1528
- component: vn
1529
- }, jn),
1530
- y({
1531
- component: jo
1532
- }, En),
1533
- y({
1534
- component: xn
1535
- }, wn),
1536
- y({
1537
- component: Rn
1538
- }, On),
1539
- y({
1540
- component: $n
1541
- }, Sn),
1542
- y({
1543
- component: Vn
1544
- }, Fn)
1545
- ];
1546
- var qn = Object.defineProperty, zn = Object.defineProperties, Kn = Object.getOwnPropertyDescriptors, xe = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, we = (e, t, n) => t in e ? qn(e, t, {
1547
- enumerable: !0,
1548
- configurable: !0,
1549
- writable: !0,
1550
- value: n
1551
- }) : e[t] = n, U = (e, t) => {
1552
- for (var n in t || (t = {}))
1553
- Hn.call(t, n) && we(e, n, t[n]);
1554
- if (xe)
1555
- for (var n of xe(t))
1556
- Gn.call(t, n) && we(e, n, t[n]);
1557
- return e;
1558
- }, Jn = (e, t) => zn(e, Kn(t));
1559
- function q(e, t = null, n = ".") {
1560
- return Object.keys(e).reduce((o, r) => {
1561
- const i = e[r], a = [
1562
- t,
1563
- r
1564
- ].filter(Boolean).join(n);
1565
- return [
1566
- typeof i == "object",
1567
- i !== null,
1568
- !(Array.isArray(i) && i.length === 0)
1569
- ].every(Boolean) ? U(U({}, o), q(i, a, n)) : Jn(U({}, o), {
1570
- [a]: i
1571
- });
1572
- }, {});
1573
- }
1574
- const Ce = "builder.", ze = (e) => {
1575
- const t = {};
1576
- return e.forEach((n, o) => {
1577
- t[o] = n;
1578
- }), t;
1579
- }, Qn = (e) => {
1580
- const t = {};
1581
- return Object.keys(e).forEach((n) => {
1582
- if (n.startsWith(Ce)) {
1583
- const o = n.replace(Ce, "");
1584
- t[o] = e[n];
1585
- }
1586
- }), t;
1587
- }, Yn = () => {
1588
- if (!b())
1589
- return {};
1590
- const e = new URLSearchParams(window.location.search);
1591
- return Qn(ze(e));
1592
- }, Xn = (e) => e instanceof URLSearchParams ? ze(e) : e;
1593
- function Zn() {
1594
- return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
1595
- }
1596
- var eo = (e, t, n) => new Promise((o, r) => {
1597
- var i = (c) => {
1598
- try {
1599
- s(n.next(c));
1600
- } catch (d) {
1601
- r(d);
1602
- }
1603
- }, a = (c) => {
1604
- try {
1605
- s(n.throw(c));
1606
- } catch (d) {
1607
- r(d);
1608
- }
1609
- }, s = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(i, a);
1610
- s((n = n.apply(e, t)).next());
1611
- });
1612
- function Ke() {
1613
- return eo(this, null, function* () {
1614
- const e = Zn().fetch;
1615
- if (typeof e > "u" && typeof global < "u") {
1616
- const t = import("./index.97024df8.js").then(
1617
- (n) => n.default
1618
- );
1619
- return t.default || t;
1620
- }
1621
- return e.default || e;
1622
- });
1623
- }
1624
- const to = (e, t) => {
1625
- if (e.variations && Object.keys(e.variations).length) {
1626
- const n = e.id ? t[e.id] : void 0, o = n ? e.variations[n] : void 0;
1627
- if (n && o)
1628
- e.data = o.data, e.testVariationId = o.id, e.testVariationName = o.name;
1629
- else {
1630
- let r = 0;
1631
- const i = Math.random();
1632
- let a = !1;
1633
- for (const s in e.variations) {
1634
- const c = e.variations[s];
1635
- if (r += c.testRatio, i < r) {
1636
- const m = c.name || (c.id === e.id ? "Default variation" : "");
1637
- a = !0, Object.assign(e, {
1638
- data: c.data,
1639
- testVariationId: c.id,
1640
- testVariationName: m
1641
- });
1642
- }
1643
- }
1644
- a || Object.assign(e, {
1645
- testVariationId: e.id,
1646
- testVariationName: "Default"
1647
- });
1648
- }
1649
- }
1650
- };
1651
- var no = Object.defineProperty, oo = Object.defineProperties, ro = Object.getOwnPropertyDescriptors, Se = Object.getOwnPropertySymbols, ao = Object.prototype.hasOwnProperty, io = Object.prototype.propertyIsEnumerable, Pe = (e, t, n) => t in e ? no(e, t, {
1652
- enumerable: !0,
1653
- configurable: !0,
1654
- writable: !0,
1655
- value: n
1656
- }) : e[t] = n, z = (e, t) => {
1657
- for (var n in t || (t = {}))
1658
- ao.call(t, n) && Pe(e, n, t[n]);
1659
- if (Se)
1660
- for (var n of Se(t))
1661
- io.call(t, n) && Pe(e, n, t[n]);
1662
- return e;
1663
- }, so = (e, t) => oo(e, ro(t)), He = (e, t, n) => new Promise((o, r) => {
1664
- var i = (c) => {
1665
- try {
1666
- s(n.next(c));
1667
- } catch (d) {
1668
- r(d);
1669
- }
1670
- }, a = (c) => {
1671
- try {
1672
- s(n.throw(c));
1673
- } catch (d) {
1674
- r(d);
1675
- }
1676
- }, s = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(i, a);
1677
- s((n = n.apply(e, t)).next());
1678
- });
1679
- const lo = Ke();
1680
- function Ge(e) {
1681
- return He(this, null, function* () {
1682
- return (yield uo(so(z({}, e), {
1683
- limit: 1
1684
- }))).results[0] || null;
1685
- });
1686
- }
1687
- const co = (e) => {
1688
- const { limit: t = 1, userAttributes: n, query: o, noTraverse: r = !1, model: i, apiKey: a } = e, s = new URL(`https://cdn.builder.io/api/v2/content/${i}?apiKey=${a}&limit=${t}&noTraverse=${r}`), c = z(z({}, Yn()), Xn(e.options || {})), d = q(c);
1689
- for (const m in d)
1690
- s.searchParams.set(m, String(d[m]));
1691
- if (n && s.searchParams.set("userAttributes", JSON.stringify(n)), o) {
1692
- const m = q({
1693
- query: o
1694
- });
1695
- for (const v in m)
1696
- s.searchParams.set(v, JSON.stringify(m[v]));
1697
- }
1698
- return s;
1699
- };
1700
- function uo(e) {
1701
- return He(this, null, function* () {
1702
- const t = co(e), o = yield (yield lo)(t.href).then(
1703
- (r) => r.json()
1704
- );
1705
- if (e.testGroups)
1706
- for (const r of o.results)
1707
- to(r, e.testGroups);
1708
- return o;
1709
- });
1710
- }
1711
- function mo() {
1712
- return !b() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1713
- }
1714
- var fo = Object.defineProperty, po = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, j = Object.getOwnPropertySymbols, Je = Object.prototype.hasOwnProperty, Qe = Object.prototype.propertyIsEnumerable, $e = (e, t, n) => t in e ? fo(e, t, {
1715
- enumerable: !0,
1716
- configurable: !0,
1717
- writable: !0,
1718
- value: n
1719
- }) : e[t] = n, K = (e, t) => {
1720
- for (var n in t || (t = {}))
1721
- Je.call(t, n) && $e(e, n, t[n]);
1722
- if (j)
1723
- for (var n of j(t))
1724
- Qe.call(t, n) && $e(e, n, t[n]);
1725
- return e;
1726
- }, ke = (e, t) => po(e, ho(t)), Ye = (e, t) => {
1727
- var n = {};
1728
- for (var o in e)
1729
- Je.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
1730
- if (e != null && j)
1731
- for (var o of j(e))
1732
- t.indexOf(o) < 0 && Qe.call(e, o) && (n[o] = e[o]);
1733
- return n;
1734
- };
1735
- const Xe = [];
1736
- function Bo(e, t) {
1737
- return Xe.push(K({
1738
- component: e
1739
- }, t)), console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."), e;
1740
- }
1741
- const go = (e) => {
1742
- var t = Ye(e, [
1743
- "component"
1744
- ]);
1745
- return {
1746
- type: "builder.registerComponent",
1747
- data: vo(t)
1748
- };
1749
- }, Ze = (e) => JSON.parse(JSON.stringify(e)), bo = (e) => typeof e == "function" ? yo(e) : Ze(e), yo = (e) => {
1750
- const t = e.toString().trim();
1751
- return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1752
- }, vo = (e) => {
1753
- var { inputs: t } = e, n = Ye(e, [
1754
- "inputs"
1755
- ]);
1756
- return ke(K({}, Ze(n)), {
1757
- inputs: t?.map(
1758
- (o) => Object.entries(o).reduce(
1759
- (r, [i, a]) => ke(K({}, r), {
1760
- [i]: bo(a)
1761
- }),
1762
- {}
1763
- )
1764
- )
1765
- });
1766
- };
1767
- function et(e, t) {
1768
- if (!_() && !!(b() || x === "reactNative"))
1769
- return fetch("https://builder.io/api/v1/track", {
1770
- method: "POST",
1771
- body: JSON.stringify({
1772
- events: [
1773
- {
1774
- type: e,
1775
- data: t
1776
- }
1777
- ]
1778
- }),
1779
- headers: {
1780
- "content-type": "application/json"
1781
- },
1782
- mode: "cors"
1783
- });
1784
- }
1785
- const _o = function(t, n, o) {
1786
- const r = o.family + (o.kind && !o.kind.includes("#") ? ", " + o.kind : ""), i = r.split(",")[0], a = o.fileUrl ?? o?.files?.regular;
1787
- let s = "";
1788
- if (a && r && i && (s += `
1789
- @font-face {
1790
- font-family: "${r}";
1791
- src: local("${i}"), url('${a}') format('woff2');
1792
- font-display: fallback;
1793
- font-weight: 400;
1794
- }
1795
- `.trim()), o.files)
1796
- for (const c in o.files) {
1797
- if (!(String(Number(c)) === c))
1798
- continue;
1799
- const m = o.files[c];
1800
- m && m !== a && (s += `
1801
- @font-face {
1802
- font-family: "${r}";
1803
- src: url('${m}') format('woff2');
1804
- font-display: fallback;
1805
- font-weight: ${c};
1806
- }
1807
- `.trim());
1808
- }
1809
- return s;
1810
- }, xo = function(t, n, { customFonts: o }) {
1811
- return o?.map(
1812
- (r) => _o(t, n, r)
1813
- )?.join(" ") || "";
1814
- }, wo = function(t, n) {
1815
- return `
1816
- ${t.cssCode || ""}
1817
- ${xo(t, n, {
1818
- customFonts: t.customFonts
1819
- })}`;
1820
- }, Co = /* @__PURE__ */ h(u((e) => /* @__PURE__ */ l(f, {
1821
- "q:host-pseudo": "",
1822
- children: /* @__PURE__ */ l(Ne, {
1823
- styles: wo(e, {})
1824
- })
1825
- }), "RenderContentStyles_component_32XAr483K2o")), So = Co, p = function(t, n) {
1826
- return {
1827
- ...t.content,
1828
- ...n.overrideContent,
1829
- data: {
1830
- ...t.content?.data,
1831
- ...t.data,
1832
- ...n.overrideContent?.data
1833
- }
1834
- };
1835
- }, A = function(t, n) {
1836
- return {
1837
- ...t.content?.data?.state,
1838
- ...t.data,
1839
- ...n.overrideState
1840
- };
1841
- }, X = function(t, n) {
1842
- return t.context || {};
1843
- }, Oe = function(t, n) {
1844
- return [
1845
- ...Dn(),
1846
- ...Xe,
1847
- ...t.customComponents || []
1848
- ].reduce(
1849
- (i, a) => ({
1850
- ...i,
1851
- [a.name]: a
1852
- }),
1853
- {}
1854
- );
1855
- }, Ie = function(t, n, o) {
1856
- const { data: r } = o;
1857
- if (r)
1858
- switch (r.type) {
1859
- case "builder.contentUpdate": {
1860
- const i = r.data, a = i.key || i.alias || i.entry || i.modelName, s = i.data;
1861
- a === t.model && (n.overrideContent = s);
1862
- break;
1863
- }
1864
- }
1865
- }, Re = function(t, n) {
1866
- const o = p(t, n)?.data?.jsCode;
1867
- o && k({
1868
- code: o,
1869
- context: X(t),
1870
- state: A(t, n)
1871
- });
1872
- }, Po = function(t, n) {
1873
- return {};
1874
- }, $o = function(t, n, o) {
1875
- p(t, n) && t.canTrack !== !1 && et("click", {
1876
- contentId: p(t, n).id
1877
- });
1878
- }, ko = function(t, n, o) {
1879
- return o.replace(
1880
- /{{([^}]+)}}/g,
1881
- (r, i) => k({
1882
- code: i,
1883
- context: X(t),
1884
- state: A(t, n)
1885
- })
1886
- );
1887
- }, Oo = function(t, n, { url: o, key: r }) {
1888
- (async () => {
1889
- const c = await (await (await Ke())(o)).json(), d = {
1890
- ...n.overrideState,
1891
- [r]: c
1892
- };
1893
- n.overrideState = d;
1894
- })();
1895
- }, Ee = function(t, n) {
1896
- const o = p(t, n)?.data?.httpRequests ?? {};
1897
- Object.entries(o).forEach(([r, i]) => {
1898
- if (i && (!Po()[r] || _())) {
1899
- const a = ko(t, n, i);
1900
- Oo(t, n, {
1901
- url: a,
1902
- key: r
1903
- });
1904
- }
1905
- });
1906
- }, I = function(t, n) {
1907
- _() && window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
1908
- detail: {
1909
- state: A(t, n),
1910
- ref: {
1911
- name: t.model
1912
- }
1913
- }
1914
- }));
1915
- }, Io = function(t, n) {
1916
- return Boolean((p(t, n)?.data?.cssCode || p(t, n)?.data?.customFonts?.length) && x !== "reactNative");
1917
- }, Ro = /* @__PURE__ */ h(u((e) => {
1918
- const t = $({
1919
- overrideContent: null,
1920
- update: 0,
1921
- overrideState: {}
1922
- });
1923
- return je(F, $({
1924
- content: (() => p(e, t))(),
1925
- state: (() => A(e, t))(),
1926
- context: (() => X(e))(),
1927
- apiKey: (() => e.apiKey)(),
1928
- registeredComponents: (() => Oe(e))()
1929
- })), Ae(u(() => {
1930
- const [n, o] = g();
1931
- if (b()) {
1932
- if (_() && (it(), st(), Object.values(Oe(n)).forEach((r) => {
1933
- const i = go(r);
1934
- window.parent?.postMessage(i, "*");
1935
- }), window.addEventListener("message", Ie.bind(null, n, o)), window.addEventListener("builder:component:stateChangeListenerActivated", I.bind(null, n, o))), p(n, o) && n.canTrack !== !1 && et("impression", {
1936
- contentId: p(n, o).id
1937
- }), mo()) {
1938
- const r = new URL(location.href).searchParams;
1939
- if (n.model && r.get("builder.preview") === n.model) {
1940
- const i = r.get("apiKey") || r.get("builder.space");
1941
- i && Ge({
1942
- model: n.model,
1943
- apiKey: i
1944
- }).then((a) => {
1945
- a && (o.overrideContent = a);
1946
- });
1947
- }
1948
- }
1949
- Re(n, o), Ee(n, o), I(n, o);
1950
- }
1951
- }, "RenderContent_component_useClientEffect_ntruwSC9lSo", [
1952
- e,
1953
- t
1954
- ])), w(u((n) => {
1955
- const [o, r] = g();
1956
- r.useContent?.data && n(r.useContent?.data, "jsCode"), Re(o, r);
1957
- }, "RenderContent_component_useWatch_1P0ujLQOmzc", [
1958
- e,
1959
- t
1960
- ])), w(u((n) => {
1961
- const [o, r] = g();
1962
- r.useContent?.data && n(r.useContent?.data, "httpRequests"), Ee(o, r);
1963
- }, "RenderContent_component_useWatch_1_0hAcn4V2AZw", [
1964
- e,
1965
- t
1966
- ])), w(u((n) => {
1967
- const [o, r] = g();
1968
- r && n(r, "contentState"), I(o, r);
1969
- }, "RenderContent_component_useWatch_2_t2n8zpl4mRs", [
1970
- e,
1971
- t
1972
- ])), rt(u(() => {
1973
- const [n, o] = g();
1974
- b() && (window.removeEventListener("message", Ie.bind(null, n, o)), window.removeEventListener("builder:component:stateChangeListenerActivated", I.bind(null, n, o)));
1975
- }, "RenderContent_component_useCleanup_sGf1npb03WA", [
1976
- e,
1977
- t
1978
- ])), /* @__PURE__ */ l(f, {
1979
- "q:host-pseudo": "",
1980
- children: p(e, t) ? /* @__PURE__ */ S("div", {
1981
- onClick$: u((n) => {
1982
- const [o, r] = g();
1983
- return $o(o, r);
1984
- }, "RenderContent_component_Host_div_onClick_S2bRGi4qgTo", [
1985
- e,
1986
- t
1987
- ]),
1988
- "builder-content-id": p(e, t)?.id,
1989
- children: [
1990
- Io(e, t) ? /* @__PURE__ */ l(So, {
1991
- cssCode: p(e, t)?.data?.cssCode,
1992
- customFonts: p(e, t)?.data?.customFonts
1993
- }) : null,
1994
- /* @__PURE__ */ l(Le, {
1995
- blocks: p(e, t)?.data?.blocks
1996
- })
1997
- ]
1998
- }) : null
1999
- });
2000
- }, "RenderContent_component_I00xF3zGD1I")), Eo = Ro, To = /* @__PURE__ */ h(u((e) => {
2001
- const t = Fe(F), n = $({
2002
- className: "builder-symbol",
2003
- content: null,
2004
- symbolContent: null,
2005
- symbolModel: null,
2006
- symbolEntry: null
2007
- });
2008
- return Ae(u(() => {
2009
- const [o, r] = g();
2010
- r.content = o.symbol?.content;
2011
- }, "Symbol_component_useClientEffect_nexfMR52XGY", [
2012
- e,
2013
- n
2014
- ])), w(u((o) => {
2015
- const [r, i] = g();
2016
- r && o(r, "symbol"), i.symbolContent = r.symbol?.content || null, i.symbolModel = r.symbol?.model || null, i.symbolEntry = r.symbol?.entry || null;
2017
- }, "Symbol_component_useWatch_cKXWtr2eEjY", [
2018
- e,
2019
- n
2020
- ])), w(u((o) => {
2021
- const [r, i, a] = g();
2022
- a && o(a, "symbolContent"), a && o(a, "symbolModel"), a && o(a, "symbolEntry"), a && o(a, "content");
2023
- const s = i.symbol;
2024
- s && !s.content && !a.content && s.model && Ge({
2025
- model: s.model,
2026
- apiKey: r.apiKey,
2027
- query: {
2028
- id: s.entry
2029
- }
2030
- }).then((c) => {
2031
- a.content = c;
2032
- });
2033
- }, "Symbol_component_useWatch_1_TkMkyzz1obo", [
2034
- t,
2035
- e,
2036
- n
2037
- ])), /* @__PURE__ */ l(f, {
2038
- ...e.attributes,
2039
- dataSet: {
2040
- class: n.className
2041
- },
2042
- class: n.className,
2043
- children: /* @__PURE__ */ l(Eo, {
2044
- apiKey: t.apiKey,
2045
- context: t.context,
2046
- customComponents: Object.values(t.registeredComponents),
2047
- data: {
2048
- ...e.symbol?.data,
2049
- ...t.state,
2050
- ...e.symbol?.content?.data?.state
2051
- },
2052
- model: e.symbol?.model,
2053
- content: n.content
2054
- })
2055
- });
2056
- }, "Symbol_component_Dn8mGpai87I"), {
2057
- tagName: "div"
2058
- }), jo = To, Te = {};
2059
- function No(e) {
2060
- if (b()) {
2061
- Object.assign(Te, e);
2062
- const t = {
2063
- type: "builder.settingsChange",
2064
- data: Te
2065
- };
2066
- parent.postMessage(t, "*");
2067
- }
2068
- }
2069
- export {
2070
- xn as Button,
2071
- ln as Columns,
2072
- $n as Fragment,
2073
- fn as Image,
2074
- Le as RenderBlocks,
2075
- Eo as RenderContent,
2076
- Rn as Section,
2077
- jo as Symbol,
2078
- gn as Text,
2079
- vn as Video,
2080
- Xe as components,
2081
- ze as convertSearchParamsToQueryObject,
2082
- go as createRegisterComponentMessage,
2083
- co as generateContentUrl,
2084
- uo as getAllContent,
2085
- Qn as getBuilderSearchParams,
2086
- Yn as getBuilderSearchParamsFromWindow,
2087
- Ge as getContent,
2088
- _ as isEditing,
2089
- mo as isPreviewing,
2090
- Xn as normalizeSearchParams,
2091
- at as register,
2092
- Bo as registerComponent,
2093
- No as setEditorSettings
2094
- };