@builder.io/sdk-react-nextjs 0.12.4 → 0.12.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.
- package/lib/{node/USE_CLIENT_BUNDLE-ee5a9d6f.cjs → browser/USE_CLIENT_BUNDLE-70be4cc5.cjs} +1 -1
- package/lib/browser/{USE_CLIENT_BUNDLE-e6d429be.js → USE_CLIENT_BUNDLE-7492ecd8.js} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-816ab6e4.cjs → browser/USE_SERVER_BUNDLE-875d4629.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-c0911af0.js → browser/USE_SERVER_BUNDLE-fe386ed3.js} +1 -1
- package/lib/browser/{bundle-0e5cec1c.cjs → bundle-bd9886c9.cjs} +20 -20
- package/lib/browser/{bundle-bab67847.js → bundle-f9f52242.js} +247 -236
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-e9e1ee85.cjs → edge/USE_CLIENT_BUNDLE-1148158d.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-75f921e2.js → edge/USE_CLIENT_BUNDLE-cb840c0f.js} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-86d90afe.js → edge/USE_SERVER_BUNDLE-36de460d.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-793c12c9.cjs → edge/USE_SERVER_BUNDLE-50c2f18b.cjs} +1 -1
- package/lib/edge/{bundle-e64fe0fd.cjs → bundle-71cfdd3e.cjs} +23 -23
- package/lib/edge/{bundle-28d9d04c.js → bundle-765860e3.js} +323 -312
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-d87c391a.cjs → node/USE_CLIENT_BUNDLE-2f43c320.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-8d251b8b.js → node/USE_CLIENT_BUNDLE-4ba4594d.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-44c49b1e.js → node/USE_SERVER_BUNDLE-2534ef71.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-9bcc0ad4.cjs → node/USE_SERVER_BUNDLE-473d50ad.cjs} +1 -1
- package/lib/node/{bundle-72df28b3.cjs → bundle-1c54df65.cjs} +5 -5
- package/lib/node/{bundle-031e3608.js → bundle-305bb463.js} +15 -4
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- package/types/cjs/functions/is-node-runtime.d.ts +4 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- package/types/esm/functions/is-node-runtime.d.ts +4 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LRUCache as Ae } from "lru-cache";
|
|
2
2
|
import { jsx as l, Fragment as k, jsxs as R } from "react/jsx-runtime";
|
|
3
|
-
import { I as Ve, B as Be, a as We, D as $e, b as Oe, C as
|
|
3
|
+
import { I as Ve, B as Be, a as We, D as $e, b as Oe, C as Ne, E as Fe, F as Le, c as _e, d as Ue, S as De, V as Me, e as je } from "./USE_CLIENT_BUNDLE-7492ecd8.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const He = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
|
|
6
|
+
const He = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Gn = (e) => typeof e == "string" && He.has(e.toLowerCase()), I = "rsc", M = () => {
|
|
7
7
|
switch (I) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -122,7 +122,18 @@ function Xe(e, t, n) {
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const C = (e) => e != null;
|
|
126
|
+
function Ze() {
|
|
127
|
+
var e;
|
|
128
|
+
return typeof process < "u" && C((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
129
|
+
}
|
|
130
|
+
const et = () => {
|
|
131
|
+
var o;
|
|
132
|
+
if (!Ze())
|
|
133
|
+
return !1;
|
|
134
|
+
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
135
|
+
return e && t && !n ? (x.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
136
|
+
}, tt = (e) => (S() || et(), G(e));
|
|
126
137
|
function H({
|
|
127
138
|
code: e,
|
|
128
139
|
context: t,
|
|
@@ -148,7 +159,7 @@ function H({
|
|
|
148
159
|
localState: n
|
|
149
160
|
};
|
|
150
161
|
try {
|
|
151
|
-
return
|
|
162
|
+
return tt(s);
|
|
152
163
|
} catch (c) {
|
|
153
164
|
x.error("Failed code evaluation: " + c.message, {
|
|
154
165
|
code: e
|
|
@@ -156,13 +167,13 @@ function H({
|
|
|
156
167
|
return;
|
|
157
168
|
}
|
|
158
169
|
}
|
|
159
|
-
const $ = (e) => JSON.parse(JSON.stringify(e)),
|
|
170
|
+
const $ = (e) => JSON.parse(JSON.stringify(e)), nt = (e, t, n) => {
|
|
160
171
|
if (Object(e) !== e)
|
|
161
172
|
return e;
|
|
162
173
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
163
174
|
return o.slice(0, -1).reduce((i, a, r) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(o[r + 1])) >> 0 === +o[r + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
164
175
|
};
|
|
165
|
-
const
|
|
176
|
+
const ot = ({
|
|
166
177
|
block: e,
|
|
167
178
|
context: t,
|
|
168
179
|
localState: n,
|
|
@@ -188,7 +199,7 @@ const tt = ({
|
|
|
188
199
|
rootSetState: i,
|
|
189
200
|
context: t
|
|
190
201
|
});
|
|
191
|
-
|
|
202
|
+
nt(r, s, m);
|
|
192
203
|
}
|
|
193
204
|
return r;
|
|
194
205
|
};
|
|
@@ -201,7 +212,7 @@ function W({
|
|
|
201
212
|
rootSetState: a
|
|
202
213
|
}) {
|
|
203
214
|
const r = e;
|
|
204
|
-
return n ?
|
|
215
|
+
return n ? ot({
|
|
205
216
|
block: r,
|
|
206
217
|
localState: o,
|
|
207
218
|
rootState: i,
|
|
@@ -209,7 +220,7 @@ function W({
|
|
|
209
220
|
context: t
|
|
210
221
|
}) : r;
|
|
211
222
|
}
|
|
212
|
-
const
|
|
223
|
+
const it = ({
|
|
213
224
|
block: e,
|
|
214
225
|
context: t,
|
|
215
226
|
registeredComponents: n
|
|
@@ -231,7 +242,7 @@ const nt = ({
|
|
|
231
242
|
console.warn(`
|
|
232
243
|
Could not find a registered component named "${o}".
|
|
233
244
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
234
|
-
},
|
|
245
|
+
}, at = ({
|
|
235
246
|
block: e,
|
|
236
247
|
context: t
|
|
237
248
|
}) => {
|
|
@@ -306,17 +317,17 @@ const nt = ({
|
|
|
306
317
|
min: a,
|
|
307
318
|
default: a + 1
|
|
308
319
|
}, n;
|
|
309
|
-
},
|
|
320
|
+
}, rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), ue = (e) => Object.entries(e).map(([n, o]) => {
|
|
310
321
|
if (typeof o == "string")
|
|
311
|
-
return `${
|
|
312
|
-
}).filter(
|
|
313
|
-
`),
|
|
322
|
+
return `${rt(n)}: ${o};`;
|
|
323
|
+
}).filter(C), st = (e) => ue(e).join(`
|
|
324
|
+
`), L = ({
|
|
314
325
|
mediaQuery: e,
|
|
315
326
|
className: t,
|
|
316
327
|
styles: n
|
|
317
328
|
}) => {
|
|
318
329
|
const o = `.${t} {
|
|
319
|
-
${
|
|
330
|
+
${st(n)}
|
|
320
331
|
}`;
|
|
321
332
|
return e ? `${e} {
|
|
322
333
|
${o}
|
|
@@ -325,7 +336,7 @@ const nt = ({
|
|
|
325
336
|
function O(e) {
|
|
326
337
|
return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
327
338
|
}
|
|
328
|
-
function
|
|
339
|
+
function ct(e) {
|
|
329
340
|
const t = function() {
|
|
330
341
|
const i = W({
|
|
331
342
|
block: e.block,
|
|
@@ -335,7 +346,7 @@ function rt(e) {
|
|
|
335
346
|
context: e.context.context,
|
|
336
347
|
shouldEvaluateBindings: !0
|
|
337
348
|
});
|
|
338
|
-
return
|
|
349
|
+
return C(i.hide) ? !i.hide : C(i.show) ? i.show : !0;
|
|
339
350
|
}, n = function() {
|
|
340
351
|
var d;
|
|
341
352
|
const i = W({
|
|
@@ -350,17 +361,17 @@ function rt(e) {
|
|
|
350
361
|
), c = a == null ? void 0 : a.large, m = a == null ? void 0 : a.medium, g = a == null ? void 0 : a.small, p = i.id;
|
|
351
362
|
if (!p)
|
|
352
363
|
return "";
|
|
353
|
-
const f = c ?
|
|
364
|
+
const f = c ? L({
|
|
354
365
|
className: p,
|
|
355
366
|
styles: c
|
|
356
|
-
}) : "", h = m ?
|
|
367
|
+
}) : "", h = m ? L({
|
|
357
368
|
className: p,
|
|
358
369
|
styles: m,
|
|
359
370
|
mediaQuery: Y(
|
|
360
371
|
"medium",
|
|
361
372
|
s
|
|
362
373
|
)
|
|
363
|
-
}) : "", u = g ?
|
|
374
|
+
}) : "", u = g ? L({
|
|
364
375
|
className: p,
|
|
365
376
|
styles: g,
|
|
366
377
|
mediaQuery: Y(
|
|
@@ -372,10 +383,10 @@ function rt(e) {
|
|
|
372
383
|
};
|
|
373
384
|
return /* @__PURE__ */ l(k, { children: n() && t() ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(O, { styles: n() }) }) : null });
|
|
374
385
|
}
|
|
375
|
-
function
|
|
386
|
+
function lt(e) {
|
|
376
387
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
377
388
|
}
|
|
378
|
-
const
|
|
389
|
+
const dt = (e) => `on${lt(e)}`, ut = (e, t) => (n) => H({
|
|
379
390
|
code: e,
|
|
380
391
|
context: t.context,
|
|
381
392
|
localState: t.localState,
|
|
@@ -384,13 +395,13 @@ const ct = (e) => `on${st(e)}`, lt = (e, t) => (n) => H({
|
|
|
384
395
|
event: n,
|
|
385
396
|
isExpression: !1
|
|
386
397
|
});
|
|
387
|
-
function
|
|
398
|
+
function Yn(e) {
|
|
388
399
|
const t = {}, n = e.block.actions ?? {};
|
|
389
400
|
for (const o in n) {
|
|
390
401
|
if (!n.hasOwnProperty(o))
|
|
391
402
|
continue;
|
|
392
403
|
const i = n[o];
|
|
393
|
-
let a =
|
|
404
|
+
let a = dt(o);
|
|
394
405
|
if (e.stripPrefix)
|
|
395
406
|
switch (I) {
|
|
396
407
|
case "vue":
|
|
@@ -400,19 +411,19 @@ function qn(e) {
|
|
|
400
411
|
a = a.replace("on:", "");
|
|
401
412
|
break;
|
|
402
413
|
}
|
|
403
|
-
t[a] =
|
|
414
|
+
t[a] = ut(i, e);
|
|
404
415
|
}
|
|
405
416
|
return t;
|
|
406
417
|
}
|
|
407
|
-
function
|
|
418
|
+
function mt({
|
|
408
419
|
style: e
|
|
409
420
|
}) {
|
|
410
421
|
return e;
|
|
411
422
|
}
|
|
412
|
-
const
|
|
423
|
+
const ft = ({
|
|
413
424
|
block: e,
|
|
414
425
|
context: t
|
|
415
|
-
}) => me(
|
|
426
|
+
}) => me(mt({
|
|
416
427
|
style: e.style || {},
|
|
417
428
|
context: t,
|
|
418
429
|
block: e
|
|
@@ -430,36 +441,36 @@ function me(e) {
|
|
|
430
441
|
return e;
|
|
431
442
|
}
|
|
432
443
|
}
|
|
433
|
-
function
|
|
444
|
+
function ht({
|
|
434
445
|
properties: e
|
|
435
446
|
}) {
|
|
436
447
|
return e;
|
|
437
448
|
}
|
|
438
|
-
const
|
|
449
|
+
const pt = (e) => ({
|
|
439
450
|
href: e.href
|
|
440
451
|
});
|
|
441
|
-
function
|
|
452
|
+
function gt({
|
|
442
453
|
block: e,
|
|
443
454
|
context: t
|
|
444
455
|
}) {
|
|
445
456
|
var o;
|
|
446
457
|
const n = {
|
|
447
|
-
...
|
|
458
|
+
...pt(e),
|
|
448
459
|
...e.properties,
|
|
449
460
|
"builder-id": e.id,
|
|
450
|
-
style:
|
|
461
|
+
style: ft({
|
|
451
462
|
block: e,
|
|
452
463
|
context: t
|
|
453
464
|
}),
|
|
454
465
|
[M()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
455
466
|
};
|
|
456
|
-
return
|
|
467
|
+
return ht({
|
|
457
468
|
properties: n,
|
|
458
469
|
context: t,
|
|
459
470
|
block: e
|
|
460
471
|
});
|
|
461
472
|
}
|
|
462
|
-
const
|
|
473
|
+
const bt = ({
|
|
463
474
|
componentOptions: e,
|
|
464
475
|
builderBlock: t,
|
|
465
476
|
context: n,
|
|
@@ -475,7 +486,7 @@ const pt = ({
|
|
|
475
486
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
476
487
|
*/
|
|
477
488
|
...i ? {
|
|
478
|
-
attributes:
|
|
489
|
+
attributes: gt({
|
|
479
490
|
block: t,
|
|
480
491
|
context: r
|
|
481
492
|
})
|
|
@@ -495,7 +506,7 @@ function J(e) {
|
|
|
495
506
|
return /* @__PURE__ */ l(k, { children: e.componentRef ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
|
|
496
507
|
t,
|
|
497
508
|
{
|
|
498
|
-
...
|
|
509
|
+
...bt({
|
|
499
510
|
componentOptions: e.componentOptions,
|
|
500
511
|
builderBlock: e.builderBlock,
|
|
501
512
|
context: e.context,
|
|
@@ -506,7 +517,7 @@ function J(e) {
|
|
|
506
517
|
contextValue: e.context
|
|
507
518
|
}),
|
|
508
519
|
children: (n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
|
|
509
|
-
|
|
520
|
+
N,
|
|
510
521
|
{
|
|
511
522
|
block: o,
|
|
512
523
|
context: e.context,
|
|
@@ -518,10 +529,10 @@ function J(e) {
|
|
|
518
529
|
}
|
|
519
530
|
) }) : null });
|
|
520
531
|
}
|
|
521
|
-
function
|
|
532
|
+
function yt(e) {
|
|
522
533
|
const t = e.repeatContext;
|
|
523
534
|
return /* @__PURE__ */ l(
|
|
524
|
-
|
|
535
|
+
N,
|
|
525
536
|
{
|
|
526
537
|
block: e.block,
|
|
527
538
|
context: t,
|
|
@@ -530,16 +541,16 @@ function gt(e) {
|
|
|
530
541
|
}
|
|
531
542
|
);
|
|
532
543
|
}
|
|
533
|
-
function
|
|
544
|
+
function N(e) {
|
|
534
545
|
var m, g, p;
|
|
535
546
|
const t = function() {
|
|
536
|
-
return
|
|
547
|
+
return it({
|
|
537
548
|
block: e.block,
|
|
538
549
|
context: e.context,
|
|
539
550
|
registeredComponents: e.registeredComponents
|
|
540
551
|
});
|
|
541
552
|
}, n = function() {
|
|
542
|
-
return
|
|
553
|
+
return at({
|
|
543
554
|
block: e.block,
|
|
544
555
|
context: e.context
|
|
545
556
|
});
|
|
@@ -589,7 +600,7 @@ function F(e) {
|
|
|
589
600
|
};
|
|
590
601
|
}, c = e.context;
|
|
591
602
|
return /* @__PURE__ */ l(k, { children: a() ? /* @__PURE__ */ R(k, { children: [
|
|
592
|
-
/* @__PURE__ */ l(
|
|
603
|
+
/* @__PURE__ */ l(ct, { block: e.block, context: e.context }),
|
|
593
604
|
(m = t()) != null && m.noWrap ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
|
|
594
605
|
J,
|
|
595
606
|
{
|
|
@@ -604,7 +615,7 @@ function F(e) {
|
|
|
604
615
|
isInteractive: s().isInteractive
|
|
605
616
|
}
|
|
606
617
|
) }) : /* @__PURE__ */ l(k, { children: n() ? /* @__PURE__ */ l(k, { children: (p = n()) == null ? void 0 : p.map((f, h) => /* @__PURE__ */ l(
|
|
607
|
-
|
|
618
|
+
yt,
|
|
608
619
|
{
|
|
609
620
|
repeatContext: f.context,
|
|
610
621
|
block: f.block,
|
|
@@ -635,7 +646,7 @@ function F(e) {
|
|
|
635
646
|
}
|
|
636
647
|
),
|
|
637
648
|
(g = r()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
|
|
638
|
-
|
|
649
|
+
N,
|
|
639
650
|
{
|
|
640
651
|
block: f,
|
|
641
652
|
context: c,
|
|
@@ -649,7 +660,7 @@ function F(e) {
|
|
|
649
660
|
) }) })
|
|
650
661
|
] }) : null });
|
|
651
662
|
}
|
|
652
|
-
function
|
|
663
|
+
function F(e) {
|
|
653
664
|
var t, n, o;
|
|
654
665
|
return /* @__PURE__ */ l(
|
|
655
666
|
We,
|
|
@@ -661,7 +672,7 @@ function L(e) {
|
|
|
661
672
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
662
673
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
663
674
|
children: e.blocks ? /* @__PURE__ */ l(k, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
|
|
664
|
-
|
|
675
|
+
N,
|
|
665
676
|
{
|
|
666
677
|
block: i,
|
|
667
678
|
linkComponent: e.linkComponent,
|
|
@@ -673,7 +684,7 @@ function L(e) {
|
|
|
673
684
|
}
|
|
674
685
|
);
|
|
675
686
|
}
|
|
676
|
-
function
|
|
687
|
+
function kt(e) {
|
|
677
688
|
var h;
|
|
678
689
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(d) {
|
|
679
690
|
var y;
|
|
@@ -779,7 +790,7 @@ function bt(e) {
|
|
|
779
790
|
style: me(g(d))
|
|
780
791
|
},
|
|
781
792
|
children: /* @__PURE__ */ l(
|
|
782
|
-
|
|
793
|
+
F,
|
|
783
794
|
{
|
|
784
795
|
path: `component.options.columns.${d}.blocks`,
|
|
785
796
|
parent: e.builderBlock.id,
|
|
@@ -807,11 +818,11 @@ function bt(e) {
|
|
|
807
818
|
function Q(e) {
|
|
808
819
|
return e.replace(/http(s)?:/, "");
|
|
809
820
|
}
|
|
810
|
-
function
|
|
821
|
+
function St(e = "", t, n) {
|
|
811
822
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
812
823
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
813
824
|
}
|
|
814
|
-
function
|
|
825
|
+
function vt(e, t) {
|
|
815
826
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
816
827
|
return e;
|
|
817
828
|
if (t === "master")
|
|
@@ -823,18 +834,18 @@ function kt(e, t) {
|
|
|
823
834
|
}
|
|
824
835
|
return null;
|
|
825
836
|
}
|
|
826
|
-
function
|
|
837
|
+
function Jn(e) {
|
|
827
838
|
if (!e)
|
|
828
839
|
return e;
|
|
829
840
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
830
841
|
if (e.match(/builder\.io/)) {
|
|
831
842
|
let n = e;
|
|
832
843
|
const o = Number(e.split("?width=")[1]);
|
|
833
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${
|
|
844
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${St(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
834
845
|
}
|
|
835
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
846
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
836
847
|
}
|
|
837
|
-
const
|
|
848
|
+
const xt = (e) => {
|
|
838
849
|
if (e === "localhost" || e === "127.0.0.1")
|
|
839
850
|
return e;
|
|
840
851
|
const t = e.split(".");
|
|
@@ -850,13 +861,13 @@ const St = (e) => {
|
|
|
850
861
|
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
851
862
|
return;
|
|
852
863
|
}
|
|
853
|
-
}, he = async (e) => fe(e),
|
|
864
|
+
}, he = async (e) => fe(e), Ct = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(C).join("; "), wt = [["secure", ""], ["SameSite", "None"]], It = ({
|
|
854
865
|
name: e,
|
|
855
866
|
value: t,
|
|
856
867
|
expires: n
|
|
857
868
|
}) => {
|
|
858
|
-
const i = (S() ? location.protocol === "https:" : !0) ?
|
|
859
|
-
return
|
|
869
|
+
const i = (S() ? location.protocol === "https:" : !0) ? wt : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], r = [[e, t], ...a, ["path", "/"], ["domain", xt(window.location.hostname)], ...i];
|
|
870
|
+
return Ct(r);
|
|
860
871
|
}, pe = async ({
|
|
861
872
|
name: e,
|
|
862
873
|
value: t,
|
|
@@ -866,7 +877,7 @@ const St = (e) => {
|
|
|
866
877
|
try {
|
|
867
878
|
if (!o)
|
|
868
879
|
return;
|
|
869
|
-
const i =
|
|
880
|
+
const i = It({
|
|
870
881
|
name: e,
|
|
871
882
|
value: t,
|
|
872
883
|
expires: n
|
|
@@ -875,24 +886,24 @@ const St = (e) => {
|
|
|
875
886
|
} catch (i) {
|
|
876
887
|
x.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
|
|
877
888
|
}
|
|
878
|
-
},
|
|
889
|
+
}, Tt = "builder.tests", K = (e) => `${Tt}.${e}`, Et = ({
|
|
879
890
|
contentId: e
|
|
880
891
|
}) => he({
|
|
881
892
|
name: K(e),
|
|
882
893
|
canTrack: !0
|
|
883
|
-
}),
|
|
894
|
+
}), Rt = ({
|
|
884
895
|
contentId: e
|
|
885
896
|
}) => fe({
|
|
886
897
|
name: K(e),
|
|
887
898
|
canTrack: !0
|
|
888
|
-
}),
|
|
899
|
+
}), Pt = ({
|
|
889
900
|
contentId: e,
|
|
890
901
|
value: t
|
|
891
902
|
}) => pe({
|
|
892
903
|
name: K(e),
|
|
893
904
|
value: t,
|
|
894
905
|
canTrack: !0
|
|
895
|
-
}), ge = (e) =>
|
|
906
|
+
}), ge = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, At = ({
|
|
896
907
|
id: e,
|
|
897
908
|
variations: t
|
|
898
909
|
}) => {
|
|
@@ -906,8 +917,8 @@ const St = (e) => {
|
|
|
906
917
|
}
|
|
907
918
|
return e;
|
|
908
919
|
}, be = (e) => {
|
|
909
|
-
const t =
|
|
910
|
-
return
|
|
920
|
+
const t = At(e);
|
|
921
|
+
return Pt({
|
|
911
922
|
contentId: e.id,
|
|
912
923
|
value: t
|
|
913
924
|
}).catch((n) => {
|
|
@@ -927,7 +938,7 @@ const St = (e) => {
|
|
|
927
938
|
testVariationId: n.id,
|
|
928
939
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
929
940
|
};
|
|
930
|
-
},
|
|
941
|
+
}, Vt = ({
|
|
931
942
|
item: e,
|
|
932
943
|
canTrack: t
|
|
933
944
|
}) => {
|
|
@@ -937,7 +948,7 @@ const St = (e) => {
|
|
|
937
948
|
return;
|
|
938
949
|
if (!ge(e))
|
|
939
950
|
return e;
|
|
940
|
-
const n =
|
|
951
|
+
const n = Rt({
|
|
941
952
|
contentId: e.id
|
|
942
953
|
}) || be({
|
|
943
954
|
variations: e.variations,
|
|
@@ -950,13 +961,13 @@ const St = (e) => {
|
|
|
950
961
|
...e,
|
|
951
962
|
...o
|
|
952
963
|
};
|
|
953
|
-
},
|
|
964
|
+
}, Bt = async ({
|
|
954
965
|
item: e,
|
|
955
966
|
canTrack: t
|
|
956
967
|
}) => {
|
|
957
968
|
if (!t || !ge(e))
|
|
958
969
|
return e;
|
|
959
|
-
const o = await
|
|
970
|
+
const o = await Et({
|
|
960
971
|
contentId: e.id
|
|
961
972
|
}) || be({
|
|
962
973
|
variations: e.variations,
|
|
@@ -969,7 +980,7 @@ const St = (e) => {
|
|
|
969
980
|
...e,
|
|
970
981
|
...i
|
|
971
982
|
};
|
|
972
|
-
}, _ = (e) =>
|
|
983
|
+
}, _ = (e) => C(e) ? e : !0, Wt = {
|
|
973
984
|
name: "Core:Button",
|
|
974
985
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
975
986
|
defaultStyles: {
|
|
@@ -1002,7 +1013,7 @@ const St = (e) => {
|
|
|
1002
1013
|
}],
|
|
1003
1014
|
static: !0,
|
|
1004
1015
|
noWrap: !0
|
|
1005
|
-
},
|
|
1016
|
+
}, $t = {
|
|
1006
1017
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1007
1018
|
name: "Columns",
|
|
1008
1019
|
isRSC: !0,
|
|
@@ -1203,7 +1214,7 @@ const St = (e) => {
|
|
|
1203
1214
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1204
1215
|
advanced: !0
|
|
1205
1216
|
}]
|
|
1206
|
-
},
|
|
1217
|
+
}, Ot = {
|
|
1207
1218
|
name: "Custom Code",
|
|
1208
1219
|
static: !0,
|
|
1209
1220
|
requiredPermissions: ["editCode"],
|
|
@@ -1225,7 +1236,7 @@ const St = (e) => {
|
|
|
1225
1236
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1226
1237
|
advanced: !0
|
|
1227
1238
|
}]
|
|
1228
|
-
},
|
|
1239
|
+
}, Nt = {
|
|
1229
1240
|
name: "Embed",
|
|
1230
1241
|
static: !0,
|
|
1231
1242
|
inputs: [{
|
|
@@ -1250,13 +1261,13 @@ const St = (e) => {
|
|
|
1250
1261
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1251
1262
|
hideFromUI: !0
|
|
1252
1263
|
}]
|
|
1253
|
-
},
|
|
1264
|
+
}, Ft = ["text/javascript", "application/javascript", "application/ecmascript"], Qn = (e) => Ft.includes(e.type), Lt = {
|
|
1254
1265
|
name: "Fragment",
|
|
1255
1266
|
static: !0,
|
|
1256
1267
|
hidden: !0,
|
|
1257
1268
|
canHaveChildren: !0,
|
|
1258
1269
|
noWrap: !0
|
|
1259
|
-
},
|
|
1270
|
+
}, _t = {
|
|
1260
1271
|
name: "Image",
|
|
1261
1272
|
static: !0,
|
|
1262
1273
|
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",
|
|
@@ -1356,7 +1367,7 @@ const St = (e) => {
|
|
|
1356
1367
|
advanced: !0,
|
|
1357
1368
|
defaultValue: 0.7041
|
|
1358
1369
|
}]
|
|
1359
|
-
},
|
|
1370
|
+
}, Ut = {
|
|
1360
1371
|
// friendlyName?
|
|
1361
1372
|
name: "Raw:Img",
|
|
1362
1373
|
hideFromInsertMenu: !0,
|
|
@@ -1370,7 +1381,7 @@ const St = (e) => {
|
|
|
1370
1381
|
}],
|
|
1371
1382
|
noWrap: !0,
|
|
1372
1383
|
static: !0
|
|
1373
|
-
},
|
|
1384
|
+
}, Dt = {
|
|
1374
1385
|
name: "Core:Section",
|
|
1375
1386
|
static: !0,
|
|
1376
1387
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1409,7 +1420,7 @@ const St = (e) => {
|
|
|
1409
1420
|
}
|
|
1410
1421
|
}
|
|
1411
1422
|
}]
|
|
1412
|
-
},
|
|
1423
|
+
}, Mt = {
|
|
1413
1424
|
name: "Slot",
|
|
1414
1425
|
isRSC: !0,
|
|
1415
1426
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1423,7 +1434,7 @@ const St = (e) => {
|
|
|
1423
1434
|
defaultValue: "children"
|
|
1424
1435
|
}]
|
|
1425
1436
|
};
|
|
1426
|
-
function
|
|
1437
|
+
function jt(e) {
|
|
1427
1438
|
var t, n, o;
|
|
1428
1439
|
return /* @__PURE__ */ l(
|
|
1429
1440
|
"div",
|
|
@@ -1435,7 +1446,7 @@ function Dt(e) {
|
|
|
1435
1446
|
"builder-slot": e.name
|
|
1436
1447
|
},
|
|
1437
1448
|
children: /* @__PURE__ */ l(
|
|
1438
|
-
|
|
1449
|
+
F,
|
|
1439
1450
|
{
|
|
1440
1451
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1441
1452
|
path: `symbol.data.${e.name}`,
|
|
@@ -1446,7 +1457,7 @@ function Dt(e) {
|
|
|
1446
1457
|
}
|
|
1447
1458
|
);
|
|
1448
1459
|
}
|
|
1449
|
-
const
|
|
1460
|
+
const Ht = {
|
|
1450
1461
|
name: "Symbol",
|
|
1451
1462
|
noWrap: !0,
|
|
1452
1463
|
static: !0,
|
|
@@ -1479,7 +1490,7 @@ const Mt = {
|
|
|
1479
1490
|
hideFromUI: !0,
|
|
1480
1491
|
type: "boolean"
|
|
1481
1492
|
}]
|
|
1482
|
-
},
|
|
1493
|
+
}, Kt = {
|
|
1483
1494
|
name: "Text",
|
|
1484
1495
|
static: !0,
|
|
1485
1496
|
isRSC: !0,
|
|
@@ -1498,7 +1509,7 @@ const Mt = {
|
|
|
1498
1509
|
textAlign: "center"
|
|
1499
1510
|
}
|
|
1500
1511
|
};
|
|
1501
|
-
function
|
|
1512
|
+
function zt(e) {
|
|
1502
1513
|
var t;
|
|
1503
1514
|
return /* @__PURE__ */ l(
|
|
1504
1515
|
"div",
|
|
@@ -1511,7 +1522,7 @@ function Ht(e) {
|
|
|
1511
1522
|
}
|
|
1512
1523
|
);
|
|
1513
1524
|
}
|
|
1514
|
-
const
|
|
1525
|
+
const qt = {
|
|
1515
1526
|
name: "Video",
|
|
1516
1527
|
canHaveChildren: !0,
|
|
1517
1528
|
defaultStyles: {
|
|
@@ -1594,56 +1605,56 @@ const Kt = {
|
|
|
1594
1605
|
}]
|
|
1595
1606
|
}, X = () => [{
|
|
1596
1607
|
component: Oe,
|
|
1597
|
-
...Vt
|
|
1598
|
-
}, {
|
|
1599
|
-
component: bt,
|
|
1600
|
-
...Bt
|
|
1601
|
-
}, {
|
|
1602
|
-
component: Fe,
|
|
1603
1608
|
...Wt
|
|
1604
1609
|
}, {
|
|
1605
|
-
component:
|
|
1610
|
+
component: kt,
|
|
1606
1611
|
...$t
|
|
1607
1612
|
}, {
|
|
1608
1613
|
component: Ne,
|
|
1609
|
-
...
|
|
1614
|
+
...Ot
|
|
1610
1615
|
}, {
|
|
1611
|
-
component:
|
|
1616
|
+
component: Fe,
|
|
1617
|
+
...Nt
|
|
1618
|
+
}, {
|
|
1619
|
+
component: Le,
|
|
1612
1620
|
...Lt
|
|
1621
|
+
}, {
|
|
1622
|
+
component: _e,
|
|
1623
|
+
..._t
|
|
1613
1624
|
}, {
|
|
1614
1625
|
component: Ue,
|
|
1615
|
-
...
|
|
1626
|
+
...Ut
|
|
1616
1627
|
}, {
|
|
1617
1628
|
component: De,
|
|
1618
|
-
...
|
|
1629
|
+
...Dt
|
|
1619
1630
|
}, {
|
|
1620
|
-
component:
|
|
1621
|
-
...
|
|
1631
|
+
component: Mn,
|
|
1632
|
+
...Ht
|
|
1622
1633
|
}, {
|
|
1623
|
-
component:
|
|
1624
|
-
...
|
|
1634
|
+
component: zt,
|
|
1635
|
+
...Kt
|
|
1625
1636
|
}, {
|
|
1626
1637
|
component: Me,
|
|
1627
|
-
...
|
|
1638
|
+
...qt
|
|
1628
1639
|
}, {
|
|
1629
|
-
component:
|
|
1630
|
-
...
|
|
1631
|
-
}], Z = [],
|
|
1640
|
+
component: jt,
|
|
1641
|
+
...Mt
|
|
1642
|
+
}], Z = [], Xn = (e) => ({
|
|
1632
1643
|
type: "builder.registerComponent",
|
|
1633
1644
|
data: U(e)
|
|
1634
|
-
}),
|
|
1645
|
+
}), Gt = (e) => {
|
|
1635
1646
|
const t = e.toString().trim();
|
|
1636
1647
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1637
|
-
},
|
|
1648
|
+
}, Yt = (e) => typeof e == "function" ? Gt(e) : $(e), U = ({
|
|
1638
1649
|
inputs: e,
|
|
1639
1650
|
...t
|
|
1640
1651
|
}) => ({
|
|
1641
1652
|
...$(t),
|
|
1642
1653
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, a]) => ({
|
|
1643
1654
|
...o,
|
|
1644
|
-
[i]:
|
|
1655
|
+
[i]: Yt(a)
|
|
1645
1656
|
}), {}))
|
|
1646
|
-
}),
|
|
1657
|
+
}), Jt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1647
1658
|
function getAndSetVariantId() {
|
|
1648
1659
|
function setCookie(name, value, days) {
|
|
1649
1660
|
let expires = '';
|
|
@@ -1699,7 +1710,7 @@ const Kt = {
|
|
|
1699
1710
|
}).join('');
|
|
1700
1711
|
styleEl.innerHTML = newStyleStr;
|
|
1701
1712
|
}
|
|
1702
|
-
}`,
|
|
1713
|
+
}`, Qt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1703
1714
|
if (!navigator.cookieEnabled) {
|
|
1704
1715
|
return;
|
|
1705
1716
|
}
|
|
@@ -1737,16 +1748,16 @@ const Kt = {
|
|
|
1737
1748
|
...t,
|
|
1738
1749
|
testVariationId: t.id,
|
|
1739
1750
|
id: e == null ? void 0 : e.id
|
|
1740
|
-
})),
|
|
1751
|
+
})), Xt = ({
|
|
1741
1752
|
canTrack: e,
|
|
1742
1753
|
content: t
|
|
1743
|
-
}) => !(!(V(t).length > 0) || !e || S()),
|
|
1744
|
-
window.${ke} = ${
|
|
1745
|
-
window.${Se} = ${
|
|
1746
|
-
`,
|
|
1754
|
+
}) => !(!(V(t).length > 0) || !e || S()), Zt = (e) => e === "react" || e === "reactNative", ve = Zt(I), en = () => `
|
|
1755
|
+
window.${ke} = ${Jt}
|
|
1756
|
+
window.${Se} = ${Qt}
|
|
1757
|
+
`, tn = (e, t) => `
|
|
1747
1758
|
window.${ke}(
|
|
1748
1759
|
"${t}",${JSON.stringify(e)}, ${ve}
|
|
1749
|
-
)`,
|
|
1760
|
+
)`, nn = ({
|
|
1750
1761
|
contentId: e,
|
|
1751
1762
|
variationId: t
|
|
1752
1763
|
}) => `window.${Se}(
|
|
@@ -1761,33 +1772,33 @@ function D(e) {
|
|
|
1761
1772
|
}
|
|
1762
1773
|
);
|
|
1763
1774
|
}
|
|
1764
|
-
const
|
|
1775
|
+
const on = (e) => {
|
|
1765
1776
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
1766
1777
|
return n || x.warn("No previewed ID found in search params."), n;
|
|
1767
1778
|
};
|
|
1768
|
-
function
|
|
1779
|
+
function an() {
|
|
1769
1780
|
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Ae({
|
|
1770
1781
|
max: 500,
|
|
1771
1782
|
// how long to live in ms
|
|
1772
1783
|
ttl: 1e3 * 60 * 5
|
|
1773
1784
|
}));
|
|
1774
1785
|
}
|
|
1775
|
-
function
|
|
1776
|
-
|
|
1777
|
-
const t =
|
|
1786
|
+
function rn(e) {
|
|
1787
|
+
an();
|
|
1788
|
+
const t = on(e);
|
|
1778
1789
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
1779
1790
|
}
|
|
1780
|
-
function
|
|
1791
|
+
function sn() {
|
|
1781
1792
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1782
1793
|
}
|
|
1783
|
-
function
|
|
1784
|
-
const e =
|
|
1794
|
+
function cn() {
|
|
1795
|
+
const e = sn().fetch;
|
|
1785
1796
|
if (typeof e > "u")
|
|
1786
1797
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1787
1798
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1788
1799
|
return e;
|
|
1789
1800
|
}
|
|
1790
|
-
const
|
|
1801
|
+
const ln = cn();
|
|
1791
1802
|
function B(e, t = null, n = ".") {
|
|
1792
1803
|
return Object.keys(e).reduce((o, i) => {
|
|
1793
1804
|
const a = e[i], r = [t, i].filter(Boolean).join(n);
|
|
@@ -1800,7 +1811,7 @@ function B(e, t = null, n = ".") {
|
|
|
1800
1811
|
};
|
|
1801
1812
|
}, {});
|
|
1802
1813
|
}
|
|
1803
|
-
const
|
|
1814
|
+
const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
|
|
1804
1815
|
const t = {};
|
|
1805
1816
|
return e.forEach((n, o) => {
|
|
1806
1817
|
t[o] = n;
|
|
@@ -1811,16 +1822,16 @@ const cn = "v3", ee = "builder.", ln = "options.", dn = (e) => {
|
|
|
1811
1822
|
const t = Ce(e), n = {};
|
|
1812
1823
|
return Object.keys(t).forEach((o) => {
|
|
1813
1824
|
if (o.startsWith(ee)) {
|
|
1814
|
-
const i = o.replace(ee, "").replace(
|
|
1825
|
+
const i = o.replace(ee, "").replace(un, "");
|
|
1815
1826
|
n[i] = t[o];
|
|
1816
1827
|
}
|
|
1817
1828
|
}), n;
|
|
1818
|
-
},
|
|
1829
|
+
}, fn = () => {
|
|
1819
1830
|
if (!S())
|
|
1820
1831
|
return {};
|
|
1821
1832
|
const e = new URLSearchParams(window.location.search);
|
|
1822
1833
|
return xe(e);
|
|
1823
|
-
}, Ce = (e) => e instanceof URLSearchParams ?
|
|
1834
|
+
}, Ce = (e) => e instanceof URLSearchParams ? mn(e) : e, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, z = (e) => {
|
|
1824
1835
|
let {
|
|
1825
1836
|
noTraverse: t = !1
|
|
1826
1837
|
} = e;
|
|
@@ -1833,7 +1844,7 @@ const cn = "v3", ee = "builder.", ln = "options.", dn = (e) => {
|
|
|
1833
1844
|
includeRefs: s = !0,
|
|
1834
1845
|
enrich: c,
|
|
1835
1846
|
locale: m,
|
|
1836
|
-
apiVersion: g =
|
|
1847
|
+
apiVersion: g = dn,
|
|
1837
1848
|
fields: p,
|
|
1838
1849
|
omit: f,
|
|
1839
1850
|
offset: h,
|
|
@@ -1849,27 +1860,27 @@ const cn = "v3", ee = "builder.", ln = "options.", dn = (e) => {
|
|
|
1849
1860
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
1850
1861
|
const b = new URL(`https://cdn.builder.io/api/${g}/content/${a}?apiKey=${r}&limit=${n}&noTraverse=${t}&includeRefs=${s}${m ? `&locale=${m}` : ""}${c ? `&enrich=${c}` : ""}`);
|
|
1851
1862
|
if (b.searchParams.set("omit", f || "meta.componentsUsed"), p && b.searchParams.set("fields", p), Number.isFinite(h) && h > -1 && b.searchParams.set("offset", String(Math.floor(h))), typeof v == "boolean" && b.searchParams.set("includeUnpublished", String(v)), u && te(u) && b.searchParams.set("cacheSeconds", String(u)), d && te(d) && b.searchParams.set("staleCacheSeconds", String(d)), y) {
|
|
1852
|
-
const
|
|
1863
|
+
const w = B({
|
|
1853
1864
|
sort: y
|
|
1854
1865
|
});
|
|
1855
|
-
for (const P in
|
|
1856
|
-
b.searchParams.set(P, JSON.stringify(
|
|
1866
|
+
for (const P in w)
|
|
1867
|
+
b.searchParams.set(P, JSON.stringify(w[P]));
|
|
1857
1868
|
}
|
|
1858
1869
|
const E = {
|
|
1859
|
-
...
|
|
1870
|
+
...fn(),
|
|
1860
1871
|
...Ce(e.options || {})
|
|
1861
1872
|
}, T = B(E);
|
|
1862
|
-
for (const
|
|
1863
|
-
b.searchParams.set(
|
|
1873
|
+
for (const w in T)
|
|
1874
|
+
b.searchParams.set(w, String(T[w]));
|
|
1864
1875
|
if (o && b.searchParams.set("userAttributes", JSON.stringify(o)), i) {
|
|
1865
|
-
const
|
|
1876
|
+
const w = B({
|
|
1866
1877
|
query: i
|
|
1867
1878
|
});
|
|
1868
|
-
for (const P in
|
|
1869
|
-
b.searchParams.set(P, JSON.stringify(
|
|
1879
|
+
for (const P in w)
|
|
1880
|
+
b.searchParams.set(P, JSON.stringify(w[P]));
|
|
1870
1881
|
}
|
|
1871
1882
|
return b;
|
|
1872
|
-
},
|
|
1883
|
+
}, hn = (e) => "results" in e;
|
|
1873
1884
|
async function q(e) {
|
|
1874
1885
|
const t = await we({
|
|
1875
1886
|
...e,
|
|
@@ -1877,15 +1888,15 @@ async function q(e) {
|
|
|
1877
1888
|
});
|
|
1878
1889
|
return t && t[0] || null;
|
|
1879
1890
|
}
|
|
1880
|
-
const
|
|
1891
|
+
const Zn = q, pn = async (e) => {
|
|
1881
1892
|
const t = z(e);
|
|
1882
|
-
return await (await
|
|
1883
|
-
},
|
|
1893
|
+
return await (await ln(t.href)).json();
|
|
1894
|
+
}, gn = async (e, t, n = z(e)) => {
|
|
1884
1895
|
const o = _(e.canTrack);
|
|
1885
1896
|
if (n.search.includes("preview=")) {
|
|
1886
1897
|
const a = [];
|
|
1887
1898
|
for (const r of t.results) {
|
|
1888
|
-
const s =
|
|
1899
|
+
const s = rn(n.searchParams);
|
|
1889
1900
|
a.push(s || r);
|
|
1890
1901
|
}
|
|
1891
1902
|
t.results = a;
|
|
@@ -1895,7 +1906,7 @@ const Qn = q, fn = async (e) => {
|
|
|
1895
1906
|
try {
|
|
1896
1907
|
const a = [];
|
|
1897
1908
|
for (const r of t.results)
|
|
1898
|
-
a.push(await
|
|
1909
|
+
a.push(await Bt({
|
|
1899
1910
|
item: r,
|
|
1900
1911
|
canTrack: o
|
|
1901
1912
|
}));
|
|
@@ -1907,8 +1918,8 @@ const Qn = q, fn = async (e) => {
|
|
|
1907
1918
|
};
|
|
1908
1919
|
async function we(e) {
|
|
1909
1920
|
try {
|
|
1910
|
-
const t = z(e), n = await
|
|
1911
|
-
return
|
|
1921
|
+
const t = z(e), n = await pn(e);
|
|
1922
|
+
return hn(n) ? gn(e, n) : (x.error("Error fetching data. ", {
|
|
1912
1923
|
url: t,
|
|
1913
1924
|
content: n,
|
|
1914
1925
|
options: e
|
|
@@ -1917,24 +1928,24 @@ async function we(e) {
|
|
|
1917
1928
|
return x.error("Error fetching data. ", t), null;
|
|
1918
1929
|
}
|
|
1919
1930
|
}
|
|
1920
|
-
const
|
|
1921
|
-
function
|
|
1931
|
+
const eo = we, bn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
1932
|
+
function yn(e, t) {
|
|
1922
1933
|
const n = new URL(t.origin), o = n.hostname;
|
|
1923
|
-
return (e ||
|
|
1934
|
+
return (e || bn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
|
|
1924
1935
|
}
|
|
1925
|
-
function
|
|
1936
|
+
function to() {
|
|
1926
1937
|
return !S() || j() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
1927
1938
|
}
|
|
1928
|
-
function
|
|
1939
|
+
function kn() {
|
|
1929
1940
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1930
1941
|
const t = Math.random() * 16 | 0;
|
|
1931
1942
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
1932
1943
|
});
|
|
1933
1944
|
}
|
|
1934
1945
|
function Ie() {
|
|
1935
|
-
return
|
|
1946
|
+
return kn().replace(/-/g, "");
|
|
1936
1947
|
}
|
|
1937
|
-
const Te = "builderSessionId",
|
|
1948
|
+
const Te = "builderSessionId", Sn = async ({
|
|
1938
1949
|
canTrack: e
|
|
1939
1950
|
}) => {
|
|
1940
1951
|
if (!e)
|
|
@@ -1943,23 +1954,23 @@ const Te = "builderSessionId", yn = async ({
|
|
|
1943
1954
|
name: Te,
|
|
1944
1955
|
canTrack: e
|
|
1945
1956
|
});
|
|
1946
|
-
if (
|
|
1957
|
+
if (C(t))
|
|
1947
1958
|
return t;
|
|
1948
1959
|
{
|
|
1949
|
-
const n =
|
|
1950
|
-
return
|
|
1960
|
+
const n = vn();
|
|
1961
|
+
return xn({
|
|
1951
1962
|
id: n,
|
|
1952
1963
|
canTrack: e
|
|
1953
1964
|
}), n;
|
|
1954
1965
|
}
|
|
1955
|
-
},
|
|
1966
|
+
}, vn = () => Ie(), xn = ({
|
|
1956
1967
|
id: e,
|
|
1957
1968
|
canTrack: t
|
|
1958
1969
|
}) => pe({
|
|
1959
1970
|
name: Te,
|
|
1960
1971
|
value: e,
|
|
1961
1972
|
canTrack: t
|
|
1962
|
-
}), Ee = () => S() && typeof localStorage < "u" ? localStorage : void 0,
|
|
1973
|
+
}), Ee = () => S() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
|
|
1963
1974
|
key: e,
|
|
1964
1975
|
canTrack: t
|
|
1965
1976
|
}) => {
|
|
@@ -1970,7 +1981,7 @@ const Te = "builderSessionId", yn = async ({
|
|
|
1970
1981
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1971
1982
|
return;
|
|
1972
1983
|
}
|
|
1973
|
-
},
|
|
1984
|
+
}, wn = ({
|
|
1974
1985
|
key: e,
|
|
1975
1986
|
canTrack: t,
|
|
1976
1987
|
value: n
|
|
@@ -1981,32 +1992,32 @@ const Te = "builderSessionId", yn = async ({
|
|
|
1981
1992
|
} catch (i) {
|
|
1982
1993
|
console.debug("[LocalStorage] SET error: ", i);
|
|
1983
1994
|
}
|
|
1984
|
-
}, Re = "builderVisitorId",
|
|
1995
|
+
}, Re = "builderVisitorId", In = ({
|
|
1985
1996
|
canTrack: e
|
|
1986
1997
|
}) => {
|
|
1987
1998
|
if (!e)
|
|
1988
1999
|
return;
|
|
1989
|
-
const t =
|
|
2000
|
+
const t = Cn({
|
|
1990
2001
|
key: Re,
|
|
1991
2002
|
canTrack: e
|
|
1992
2003
|
});
|
|
1993
|
-
if (
|
|
2004
|
+
if (C(t))
|
|
1994
2005
|
return t;
|
|
1995
2006
|
{
|
|
1996
|
-
const n =
|
|
1997
|
-
return
|
|
2007
|
+
const n = Tn();
|
|
2008
|
+
return En({
|
|
1998
2009
|
id: n,
|
|
1999
2010
|
canTrack: e
|
|
2000
2011
|
}), n;
|
|
2001
2012
|
}
|
|
2002
|
-
},
|
|
2013
|
+
}, Tn = () => Ie(), En = ({
|
|
2003
2014
|
id: e,
|
|
2004
2015
|
canTrack: t
|
|
2005
|
-
}) =>
|
|
2016
|
+
}) => wn({
|
|
2006
2017
|
key: Re,
|
|
2007
2018
|
value: e,
|
|
2008
2019
|
canTrack: t
|
|
2009
|
-
}),
|
|
2020
|
+
}), Rn = async ({
|
|
2010
2021
|
canTrack: e
|
|
2011
2022
|
}) => {
|
|
2012
2023
|
if (!e)
|
|
@@ -2014,16 +2025,16 @@ const Te = "builderSessionId", yn = async ({
|
|
|
2014
2025
|
visitorId: void 0,
|
|
2015
2026
|
sessionId: void 0
|
|
2016
2027
|
};
|
|
2017
|
-
const t = await
|
|
2028
|
+
const t = await Sn({
|
|
2018
2029
|
canTrack: e
|
|
2019
|
-
}), n =
|
|
2030
|
+
}), n = In({
|
|
2020
2031
|
canTrack: e
|
|
2021
2032
|
});
|
|
2022
2033
|
return {
|
|
2023
2034
|
sessionId: t,
|
|
2024
2035
|
visitorId: n
|
|
2025
2036
|
};
|
|
2026
|
-
},
|
|
2037
|
+
}, Pn = async ({
|
|
2027
2038
|
type: e,
|
|
2028
2039
|
canTrack: t,
|
|
2029
2040
|
apiKey: n,
|
|
@@ -2037,14 +2048,14 @@ const Te = "builderSessionId", yn = async ({
|
|
|
2037
2048
|
url: location.href,
|
|
2038
2049
|
...o
|
|
2039
2050
|
},
|
|
2040
|
-
...await
|
|
2051
|
+
...await Rn({
|
|
2041
2052
|
canTrack: t
|
|
2042
2053
|
}),
|
|
2043
2054
|
userAttributes: ce(),
|
|
2044
2055
|
ownerId: n
|
|
2045
2056
|
}
|
|
2046
2057
|
});
|
|
2047
|
-
async function
|
|
2058
|
+
async function An(e) {
|
|
2048
2059
|
if (!e.apiKey) {
|
|
2049
2060
|
x.error("Missing API key for track call. Please provide your API key.");
|
|
2050
2061
|
return;
|
|
@@ -2053,7 +2064,7 @@ async function Rn(e) {
|
|
|
2053
2064
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2054
2065
|
method: "POST",
|
|
2055
2066
|
body: JSON.stringify({
|
|
2056
|
-
events: [await
|
|
2067
|
+
events: [await Pn(e)]
|
|
2057
2068
|
}),
|
|
2058
2069
|
headers: {
|
|
2059
2070
|
"content-type": "application/json"
|
|
@@ -2063,14 +2074,14 @@ async function Rn(e) {
|
|
|
2063
2074
|
console.error("Failed to track: ", t);
|
|
2064
2075
|
});
|
|
2065
2076
|
}
|
|
2066
|
-
const
|
|
2077
|
+
const no = (e) => An({
|
|
2067
2078
|
...e,
|
|
2068
2079
|
canTrack: !0
|
|
2069
2080
|
});
|
|
2070
2081
|
function ne(e) {
|
|
2071
2082
|
return Math.round(e * 1e3) / 1e3;
|
|
2072
2083
|
}
|
|
2073
|
-
const
|
|
2084
|
+
const Vn = (e, t, n = !0) => {
|
|
2074
2085
|
if (!(e instanceof HTMLElement))
|
|
2075
2086
|
return null;
|
|
2076
2087
|
let o = n ? e : e.parentElement;
|
|
@@ -2081,7 +2092,7 @@ const Pn = (e, t, n = !0) => {
|
|
|
2081
2092
|
return o;
|
|
2082
2093
|
} while (o = o.parentElement);
|
|
2083
2094
|
return null;
|
|
2084
|
-
},
|
|
2095
|
+
}, Bn = (e) => Vn(e, (t) => {
|
|
2085
2096
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2086
2097
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2087
2098
|
}), oe = ({
|
|
@@ -2093,8 +2104,8 @@ const Pn = (e, t, n = !0) => {
|
|
|
2093
2104
|
x: a,
|
|
2094
2105
|
y: r
|
|
2095
2106
|
};
|
|
2096
|
-
},
|
|
2097
|
-
const t = e.target, n = t &&
|
|
2107
|
+
}, oo = (e) => {
|
|
2108
|
+
const t = e.target, n = t && Bn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2098
2109
|
return {
|
|
2099
2110
|
targetBuilderElement: o || void 0,
|
|
2100
2111
|
metadata: {
|
|
@@ -2109,8 +2120,8 @@ const Pn = (e, t, n = !0) => {
|
|
|
2109
2120
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2110
2121
|
}
|
|
2111
2122
|
};
|
|
2112
|
-
},
|
|
2113
|
-
function
|
|
2123
|
+
}, Wn = "0.12.5", ie = {};
|
|
2124
|
+
function $n(e, t) {
|
|
2114
2125
|
let n = ie[e];
|
|
2115
2126
|
if (n || (n = ie[e] = []), n.push(t), S()) {
|
|
2116
2127
|
const o = {
|
|
@@ -2127,8 +2138,8 @@ function Bn(e, t) {
|
|
|
2127
2138
|
}
|
|
2128
2139
|
}
|
|
2129
2140
|
}
|
|
2130
|
-
const
|
|
2131
|
-
|
|
2141
|
+
const io = () => {
|
|
2142
|
+
$n("insertMenu", {
|
|
2132
2143
|
name: "_default",
|
|
2133
2144
|
default: !0,
|
|
2134
2145
|
items: [{
|
|
@@ -2151,13 +2162,13 @@ const no = () => {
|
|
|
2151
2162
|
});
|
|
2152
2163
|
};
|
|
2153
2164
|
let ae = !1;
|
|
2154
|
-
const
|
|
2165
|
+
const ao = (e = {}) => {
|
|
2155
2166
|
var t, n;
|
|
2156
2167
|
ae || (ae = !0, S() && ((t = window.parent) == null || t.postMessage({
|
|
2157
2168
|
type: "builder.sdkInfo",
|
|
2158
2169
|
data: {
|
|
2159
2170
|
target: I,
|
|
2160
|
-
version:
|
|
2171
|
+
version: Wn,
|
|
2161
2172
|
supportsPatchUpdates: !1,
|
|
2162
2173
|
// Supports builder-model="..." attribute which is needed to
|
|
2163
2174
|
// scope our '+ add block' button styling
|
|
@@ -2171,7 +2182,7 @@ const oo = (e = {}) => {
|
|
|
2171
2182
|
}
|
|
2172
2183
|
}, "*"), window.addEventListener("message", (o) => {
|
|
2173
2184
|
var a, r;
|
|
2174
|
-
if (!
|
|
2185
|
+
if (!yn(e.trustedHosts, o))
|
|
2175
2186
|
return;
|
|
2176
2187
|
const {
|
|
2177
2188
|
data: i
|
|
@@ -2212,7 +2223,7 @@ const oo = (e = {}) => {
|
|
|
2212
2223
|
}
|
|
2213
2224
|
}
|
|
2214
2225
|
})));
|
|
2215
|
-
},
|
|
2226
|
+
}, On = (e) => {
|
|
2216
2227
|
var a;
|
|
2217
2228
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
2218
2229
|
let i = "";
|
|
@@ -2238,22 +2249,22 @@ font-weight: ${r};
|
|
|
2238
2249
|
`.trim());
|
|
2239
2250
|
}
|
|
2240
2251
|
return i;
|
|
2241
|
-
},
|
|
2252
|
+
}, Nn = ({
|
|
2242
2253
|
customFonts: e
|
|
2243
2254
|
}) => {
|
|
2244
2255
|
var t;
|
|
2245
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2246
|
-
},
|
|
2256
|
+
return ((t = e == null ? void 0 : e.map((n) => On(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2257
|
+
}, Fn = ({
|
|
2247
2258
|
cssCode: e,
|
|
2248
2259
|
contentId: t
|
|
2249
2260
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
2250
|
-
function
|
|
2261
|
+
function Ln(e) {
|
|
2251
2262
|
const t = `
|
|
2252
|
-
${
|
|
2263
|
+
${Fn({
|
|
2253
2264
|
cssCode: e.cssCode,
|
|
2254
2265
|
contentId: e.contentId
|
|
2255
2266
|
})}
|
|
2256
|
-
${
|
|
2267
|
+
${Nn({
|
|
2257
2268
|
customFonts: e.customFonts
|
|
2258
2269
|
})}
|
|
2259
2270
|
|
|
@@ -2276,7 +2287,7 @@ ${$n({
|
|
|
2276
2287
|
`.trim();
|
|
2277
2288
|
return /* @__PURE__ */ l(O, { styles: t });
|
|
2278
2289
|
}
|
|
2279
|
-
const
|
|
2290
|
+
const _n = ({
|
|
2280
2291
|
content: e,
|
|
2281
2292
|
data: t,
|
|
2282
2293
|
locale: n
|
|
@@ -2293,7 +2304,7 @@ const Ln = ({
|
|
|
2293
2304
|
locale: n
|
|
2294
2305
|
} : {}
|
|
2295
2306
|
};
|
|
2296
|
-
},
|
|
2307
|
+
}, Un = ({
|
|
2297
2308
|
content: e,
|
|
2298
2309
|
data: t
|
|
2299
2310
|
}) => e ? {
|
|
@@ -2306,7 +2317,7 @@ const Ln = ({
|
|
|
2306
2317
|
} : void 0;
|
|
2307
2318
|
function re(e) {
|
|
2308
2319
|
var i, a, r, s, c, m, g, p, f;
|
|
2309
|
-
const t =
|
|
2320
|
+
const t = nn({
|
|
2310
2321
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2311
2322
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
2312
2323
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2330,12 +2341,12 @@ function re(e) {
|
|
|
2330
2341
|
}),
|
|
2331
2342
|
{}
|
|
2332
2343
|
), o = {
|
|
2333
|
-
content:
|
|
2344
|
+
content: Un({
|
|
2334
2345
|
content: e.content,
|
|
2335
2346
|
data: e.data
|
|
2336
2347
|
}),
|
|
2337
2348
|
localState: void 0,
|
|
2338
|
-
rootState:
|
|
2349
|
+
rootState: _n({
|
|
2339
2350
|
content: e.content,
|
|
2340
2351
|
data: e.data,
|
|
2341
2352
|
locale: e.locale
|
|
@@ -2385,7 +2396,7 @@ function re(e) {
|
|
|
2385
2396
|
children: [
|
|
2386
2397
|
e.isSsrAbTest ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr: t }) }) : null,
|
|
2387
2398
|
/* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
|
|
2388
|
-
|
|
2399
|
+
Ln,
|
|
2389
2400
|
{
|
|
2390
2401
|
contentId: (r = o.content) == null ? void 0 : r.id,
|
|
2391
2402
|
cssCode: (c = (s = o.content) == null ? void 0 : s.data) == null ? void 0 : c.cssCode,
|
|
@@ -2393,7 +2404,7 @@ function re(e) {
|
|
|
2393
2404
|
}
|
|
2394
2405
|
) }),
|
|
2395
2406
|
/* @__PURE__ */ l(
|
|
2396
|
-
|
|
2407
|
+
F,
|
|
2397
2408
|
{
|
|
2398
2409
|
blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
|
|
2399
2410
|
context: o,
|
|
@@ -2407,12 +2418,12 @@ function re(e) {
|
|
|
2407
2418
|
}
|
|
2408
2419
|
function Pe(e) {
|
|
2409
2420
|
var a, r;
|
|
2410
|
-
const t =
|
|
2421
|
+
const t = Xt({
|
|
2411
2422
|
canTrack: _(e.canTrack),
|
|
2412
2423
|
content: e.content
|
|
2413
2424
|
}), n = function() {
|
|
2414
2425
|
var c;
|
|
2415
|
-
return
|
|
2426
|
+
return tn(
|
|
2416
2427
|
V(e.content).map((m) => ({
|
|
2417
2428
|
id: m.testVariationId,
|
|
2418
2429
|
testRatio: m.testRatio
|
|
@@ -2426,13 +2437,13 @@ function Pe(e) {
|
|
|
2426
2437
|
return t ? {
|
|
2427
2438
|
...e.content,
|
|
2428
2439
|
testVariationId: (c = e.content) == null ? void 0 : c.id
|
|
2429
|
-
} :
|
|
2440
|
+
} : Vt({
|
|
2430
2441
|
item: e.content,
|
|
2431
2442
|
canTrack: _(e.canTrack)
|
|
2432
2443
|
});
|
|
2433
2444
|
};
|
|
2434
2445
|
return /* @__PURE__ */ R(k, { children: [
|
|
2435
|
-
!e.__isNestedRender && I !== "reactNative" ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr:
|
|
2446
|
+
!e.__isNestedRender && I !== "reactNative" ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr: en() }) }) : null,
|
|
2436
2447
|
t ? /* @__PURE__ */ R(k, { children: [
|
|
2437
2448
|
/* @__PURE__ */ l(
|
|
2438
2449
|
O,
|
|
@@ -2494,7 +2505,7 @@ function Pe(e) {
|
|
|
2494
2505
|
)
|
|
2495
2506
|
] });
|
|
2496
2507
|
}
|
|
2497
|
-
const
|
|
2508
|
+
const Dn = async ({
|
|
2498
2509
|
builderContextValue: e,
|
|
2499
2510
|
symbol: t
|
|
2500
2511
|
}) => {
|
|
@@ -2513,7 +2524,7 @@ const _n = async ({
|
|
|
2513
2524
|
x.error("Could not fetch symbol content: ", n);
|
|
2514
2525
|
});
|
|
2515
2526
|
};
|
|
2516
|
-
async function
|
|
2527
|
+
async function Mn(e) {
|
|
2517
2528
|
var o, i, a, r, s;
|
|
2518
2529
|
const t = function() {
|
|
2519
2530
|
var m, g;
|
|
@@ -2523,7 +2534,7 @@ async function Un(e) {
|
|
|
2523
2534
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
2524
2535
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2525
2536
|
].filter(Boolean).join(" ");
|
|
2526
|
-
}, n = ((o = e.symbol) == null ? void 0 : o.content) || await
|
|
2537
|
+
}, n = ((o = e.symbol) == null ? void 0 : o.content) || await Dn({
|
|
2527
2538
|
symbol: e.symbol,
|
|
2528
2539
|
builderContextValue: e.builderContext
|
|
2529
2540
|
});
|
|
@@ -2549,8 +2560,8 @@ async function Un(e) {
|
|
|
2549
2560
|
}
|
|
2550
2561
|
) });
|
|
2551
2562
|
}
|
|
2552
|
-
const
|
|
2553
|
-
function
|
|
2563
|
+
const ro = F, so = Pe, se = {};
|
|
2564
|
+
function co(e) {
|
|
2554
2565
|
if (S()) {
|
|
2555
2566
|
Object.assign(se, e);
|
|
2556
2567
|
const t = {
|
|
@@ -2560,7 +2571,7 @@ function ro(e) {
|
|
|
2560
2571
|
parent.postMessage(t, "*");
|
|
2561
2572
|
}
|
|
2562
2573
|
}
|
|
2563
|
-
const
|
|
2574
|
+
const lo = async (e) => {
|
|
2564
2575
|
var o, i, a;
|
|
2565
2576
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
|
|
2566
2577
|
...e,
|
|
@@ -2582,41 +2593,41 @@ const so = async (e) => {
|
|
|
2582
2593
|
};
|
|
2583
2594
|
export {
|
|
2584
2595
|
we as A,
|
|
2585
|
-
|
|
2596
|
+
F as B,
|
|
2586
2597
|
Pe as C,
|
|
2587
|
-
|
|
2588
|
-
|
|
2598
|
+
eo as D,
|
|
2599
|
+
Zn as E,
|
|
2589
2600
|
xe as F,
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2601
|
+
no as G,
|
|
2602
|
+
lo as H,
|
|
2603
|
+
ro as R,
|
|
2604
|
+
Mn as S,
|
|
2605
|
+
zt as T,
|
|
2606
|
+
An as _,
|
|
2607
|
+
gt as a,
|
|
2608
|
+
Yn as b,
|
|
2598
2609
|
j as c,
|
|
2599
|
-
|
|
2600
|
-
|
|
2610
|
+
Jn as d,
|
|
2611
|
+
Qn as e,
|
|
2601
2612
|
S as f,
|
|
2602
2613
|
M as g,
|
|
2603
2614
|
_ as h,
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2615
|
+
Gn as i,
|
|
2616
|
+
to as j,
|
|
2617
|
+
yn as k,
|
|
2607
2618
|
x as l,
|
|
2608
2619
|
H as m,
|
|
2609
|
-
|
|
2620
|
+
oo as n,
|
|
2610
2621
|
$ as o,
|
|
2611
|
-
|
|
2622
|
+
Xn as p,
|
|
2612
2623
|
q,
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2624
|
+
io as r,
|
|
2625
|
+
ao as s,
|
|
2626
|
+
ln as t,
|
|
2627
|
+
an as u,
|
|
2628
|
+
so as v,
|
|
2629
|
+
kt as w,
|
|
2630
|
+
$n as x,
|
|
2631
|
+
co as y,
|
|
2632
|
+
gn as z
|
|
2622
2633
|
};
|