@builder.io/sdk-react-nextjs 0.7.0 → 0.7.1-1

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.
Files changed (43) hide show
  1. package/lib/browser/USE_CLIENT_BUNDLE-34ca6573.js +23 -0
  2. package/lib/browser/USE_CLIENT_BUNDLE-35cf57f2.mjs +657 -0
  3. package/lib/browser/USE_SERVER_BUNDLE-5f0752b4.mjs +11 -0
  4. package/lib/{edge/USE_SERVER_BUNDLE-105e9ef3.js → browser/USE_SERVER_BUNDLE-da1cf240.js} +1 -1
  5. package/lib/browser/{bundle-3b073b16.mjs → bundle-f0e86750.mjs} +680 -663
  6. package/lib/browser/bundle-fa4c07cb.js +76 -0
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +7 -7
  9. package/lib/edge/USE_CLIENT_BUNDLE-2841cf29.js +23 -0
  10. package/lib/edge/USE_CLIENT_BUNDLE-aeac6d00.mjs +657 -0
  11. package/lib/edge/USE_SERVER_BUNDLE-015ab545.mjs +11 -0
  12. package/lib/{node/USE_SERVER_BUNDLE-d8c698c8.js → edge/USE_SERVER_BUNDLE-ef1618a6.js} +1 -1
  13. package/lib/edge/{bundle-ed178c62.mjs → bundle-3c711a0f.mjs} +2053 -2008
  14. package/lib/edge/bundle-bfbd5fa6.js +96 -0
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +7 -7
  17. package/lib/node/USE_CLIENT_BUNDLE-a30d8b97.js +23 -0
  18. package/lib/node/USE_CLIENT_BUNDLE-fc82531c.mjs +657 -0
  19. package/lib/node/USE_SERVER_BUNDLE-25e36fa7.mjs +11 -0
  20. package/lib/{browser/USE_SERVER_BUNDLE-d8c698c8.js → node/USE_SERVER_BUNDLE-b26e79d4.js} +1 -1
  21. package/lib/node/bundle-23b73f20.js +116 -0
  22. package/lib/node/{bundle-3b073b16.mjs → bundle-4a8d8d92.mjs} +895 -781
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +7 -7
  25. package/package.json +4 -3
  26. package/types/blocks/image/image.d.ts +1 -1
  27. package/types/constants/sdk-version.d.ts +1 -1
  28. package/types/functions/evaluate/choose-eval.d.ts +6 -0
  29. package/types/functions/evaluate/evaluate.d.ts +1 -5
  30. package/types/functions/evaluate/helpers.d.ts +7 -1
  31. package/types/functions/get-content/types.d.ts +94 -3
  32. package/lib/browser/USE_CLIENT_BUNDLE-3a41b1ba.js +0 -23
  33. package/lib/browser/USE_CLIENT_BUNDLE-fc8c1bc0.mjs +0 -618
  34. package/lib/browser/USE_SERVER_BUNDLE-226a15ac.mjs +0 -11
  35. package/lib/browser/bundle-0fae602b.js +0 -76
  36. package/lib/edge/USE_CLIENT_BUNDLE-0e9f8e67.mjs +0 -618
  37. package/lib/edge/USE_CLIENT_BUNDLE-d48583e8.js +0 -23
  38. package/lib/edge/USE_SERVER_BUNDLE-f6a1e321.mjs +0 -11
  39. package/lib/edge/bundle-0c1d9099.js +0 -96
  40. package/lib/node/USE_CLIENT_BUNDLE-3a41b1ba.js +0 -23
  41. package/lib/node/USE_CLIENT_BUNDLE-fc8c1bc0.mjs +0 -618
  42. package/lib/node/USE_SERVER_BUNDLE-226a15ac.mjs +0 -11
  43. package/lib/node/bundle-0fae602b.js +0 -76
@@ -1,618 +0,0 @@
1
- "use client";
2
- import { jsxs as E, Fragment as m, jsx as n } from "react/jsx-runtime";
3
- import { g as T, a as N, i as R, b as w, c as J, l as O, d as P, r as G, s as Q, e as X, _ as W, f as _, h as A, j as Y, k as Z, m as $ } from "./bundle-3b073b16.mjs";
4
- import { useRef as j, useState as v, useEffect as k, createContext as p } from "react";
5
- import { p as ee } from "./USE_SERVER_BUNDLE-226a15ac.mjs";
6
- import { useRouter as te } from "next/navigation";
7
- function re(e) {
8
- return /* @__PURE__ */ E(m, { children: [
9
- e.link ? /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n(
10
- "a",
11
- {
12
- role: "button",
13
- ...e.attributes,
14
- href: e.link,
15
- target: e.openLinkInNewTab ? "_blank" : void 0,
16
- children: e.text
17
- }
18
- ) }) : /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n(
19
- "button",
20
- {
21
- ...e.attributes,
22
- style: e.attributes.style,
23
- className: e.attributes.className + " button-3e7bc8b2",
24
- children: e.text
25
- }
26
- ) }),
27
- /* @__PURE__ */ n("style", { children: `.button-3e7bc8b2 {
28
- all: unset;
29
- }` })
30
- ] });
31
- }
32
- function de(e) {
33
- return /* @__PURE__ */ n(
34
- e.Wrapper,
35
- {
36
- ...e.wrapperProps,
37
- attributes: {
38
- ...T({
39
- block: e.block,
40
- context: e.context
41
- }),
42
- ...N({
43
- block: e.block,
44
- rootState: e.context.rootState,
45
- rootSetState: e.context.rootSetState,
46
- localState: e.context.localState,
47
- context: e.context.context
48
- })
49
- },
50
- children: e.children
51
- }
52
- );
53
- }
54
- function se(e) {
55
- return /* @__PURE__ */ E(m, { children: [
56
- " ",
57
- e.hasChildren ? /* @__PURE__ */ n(m, { children: /* @__PURE__ */ E(
58
- e.Wrapper,
59
- {
60
- ...T({
61
- block: e.block,
62
- context: e.context
63
- }),
64
- ...N({
65
- block: e.block,
66
- rootState: e.context.rootState,
67
- rootSetState: e.context.rootSetState,
68
- localState: e.context.localState,
69
- context: e.context.context,
70
- stripPrefix: !0
71
- }),
72
- children: [
73
- " ",
74
- e.children,
75
- " "
76
- ]
77
- }
78
- ) }) : /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n(
79
- e.Wrapper,
80
- {
81
- ...T({
82
- block: e.block,
83
- context: e.context
84
- }),
85
- ...N({
86
- block: e.block,
87
- rootState: e.context.rootState,
88
- rootSetState: e.context.rootSetState,
89
- localState: e.context.localState,
90
- context: e.context.context,
91
- stripPrefix: !0
92
- })
93
- }
94
- ) }),
95
- " "
96
- ] });
97
- }
98
- function ue(e) {
99
- function a() {
100
- var c;
101
- return "builder-blocks" + ((c = e.blocks) != null && c.length ? "" : " no-blocks");
102
- }
103
- function s() {
104
- var c, g;
105
- R() && !((c = e.blocks) != null && c.length) && ((g = window.parent) == null || g.postMessage(
106
- {
107
- type: "builder.clickEmptyBlocks",
108
- data: {
109
- parentElementId: e.parent,
110
- dataPath: e.path
111
- }
112
- },
113
- "*"
114
- ));
115
- }
116
- function f() {
117
- var c, g;
118
- R() && !((c = e.blocks) != null && c.length) && ((g = window.parent) == null || g.postMessage(
119
- {
120
- type: "builder.hoverEmptyBlocks",
121
- data: {
122
- parentElementId: e.parent,
123
- dataPath: e.path
124
- }
125
- },
126
- "*"
127
- ));
128
- }
129
- return /* @__PURE__ */ E(m, { children: [
130
- /* @__PURE__ */ n(
131
- "div",
132
- {
133
- className: a() + " div-5821bd52",
134
- "builder-path": e.path,
135
- "builder-parent-id": e.parent,
136
- style: e.styleProp,
137
- onClick: (c) => s(),
138
- onMouseEnter: (c) => f(),
139
- onKeyPress: (c) => s(),
140
- children: e.children
141
- }
142
- ),
143
- /* @__PURE__ */ n("style", { children: `.div-5821bd52 {
144
- display: flex;
145
- flex-direction: column;
146
- align-items: stretch;
147
- }` })
148
- ] });
149
- }
150
- function me(e) {
151
- return /* @__PURE__ */ n("span", { children: e.children });
152
- }
153
- function be(e) {
154
- var c, g, y, h;
155
- function a() {
156
- var b;
157
- const o = e.image || e.src;
158
- if (!o || // We can auto add srcset for cdn.builder.io and shopify
159
- // images, otherwise you can supply this prop manually
160
- !(o.match(/builder\.io/) || o.match(/cdn\.shopify\.com/)))
161
- return e.srcset;
162
- if (e.srcset && ((b = e.image) != null && b.includes("builder.io/api/v1/image"))) {
163
- if (!e.srcset.includes(e.image.split("?")[0]))
164
- return console.debug("Removed given srcset"), w(o);
165
- } else if (e.image && !e.srcset)
166
- return w(o);
167
- return w(o);
168
- }
169
- function s() {
170
- var u;
171
- return (u = a == null ? void 0 : a()) != null && u.match(/builder\.io/) && !e.noWebp ? a().replace(/\?/g, "?format=webp&") : "";
172
- }
173
- function f() {
174
- const u = {
175
- position: "absolute",
176
- height: "100%",
177
- width: "100%",
178
- left: "0px",
179
- top: "0px"
180
- };
181
- return e.aspectRatio ? u : void 0;
182
- }
183
- return /* @__PURE__ */ E(m, { children: [
184
- /* @__PURE__ */ E(m, { children: [
185
- /* @__PURE__ */ E("picture", { children: [
186
- s() ? /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n("source", { type: "image/webp", srcSet: s() }) }) : null,
187
- /* @__PURE__ */ n(
188
- "img",
189
- {
190
- loading: "lazy",
191
- alt: e.altText,
192
- role: e.altText ? "presentation" : void 0,
193
- style: {
194
- objectPosition: e.backgroundPosition || "center",
195
- objectFit: e.backgroundSize || "cover",
196
- ...f()
197
- },
198
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-ef11a6be",
199
- src: e.image,
200
- srcSet: a(),
201
- sizes: e.sizes
202
- }
203
- )
204
- ] }),
205
- e.aspectRatio && !((g = (c = e.builderBlock) == null ? void 0 : c.children) != null && g.length && e.fitContent) ? /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n(
206
- "div",
207
- {
208
- className: "builder-image-sizer div-ef11a6be",
209
- style: {
210
- paddingTop: e.aspectRatio * 100 + "%"
211
- }
212
- }
213
- ) }) : null,
214
- (h = (y = e.builderBlock) == null ? void 0 : y.children) != null && h.length && e.fitContent ? /* @__PURE__ */ n(m, { children: e.children }) : null,
215
- !e.fitContent && e.children ? /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n("div", { className: "div-ef11a6be-2", children: e.children }) }) : null
216
- ] }),
217
- /* @__PURE__ */ n("style", { children: `.img-ef11a6be {
218
- opacity: 1;
219
- transition: opacity 0.2s ease-in-out;
220
- }.div-ef11a6be {
221
- width: 100%;
222
- pointer-events: none;
223
- font-size: 0;
224
- }.div-ef11a6be-2 {
225
- display: flex;
226
- flex-direction: column;
227
- align-items: stretch;
228
- position: absolute;
229
- top: 0;
230
- left: 0;
231
- width: 100%;
232
- height: 100%;
233
- }` })
234
- ] });
235
- }
236
- function fe(e) {
237
- return /* @__PURE__ */ n(
238
- "section",
239
- {
240
- ...e.attributes,
241
- style: {
242
- width: "100%",
243
- alignSelf: "stretch",
244
- flexGrow: 1,
245
- boxSizing: "border-box",
246
- maxWidth: e.maxWidth || 1200,
247
- display: "flex",
248
- flexDirection: "column",
249
- alignItems: "stretch",
250
- marginLeft: "auto",
251
- marginRight: "auto"
252
- },
253
- children: e.children
254
- }
255
- );
256
- }
257
- function ge(e) {
258
- var f;
259
- function a() {
260
- return {
261
- ...e.autoPlay === !0 ? {
262
- autoPlay: !0
263
- } : {},
264
- ...e.muted === !0 ? {
265
- muted: !0
266
- } : {},
267
- ...e.controls === !0 ? {
268
- controls: !0
269
- } : {},
270
- ...e.loop === !0 ? {
271
- loop: !0
272
- } : {},
273
- ...e.playsInline === !0 ? {
274
- playsInline: !0
275
- } : {}
276
- };
277
- }
278
- function s() {
279
- return {
280
- ...e.attributes,
281
- ...a()
282
- };
283
- }
284
- return /* @__PURE__ */ n(
285
- "video",
286
- {
287
- ...s(),
288
- preload: e.preload || "metadata",
289
- style: {
290
- width: "100%",
291
- height: "100%",
292
- ...(f = e.attributes) == null ? void 0 : f.style,
293
- objectFit: e.fit,
294
- objectPosition: e.position,
295
- // Hack to get object fit to work as expected and
296
- // not have the video overflow
297
- borderRadius: 1
298
- },
299
- src: e.video || "no-src",
300
- poster: e.posterImage
301
- }
302
- );
303
- }
304
- function he(e) {
305
- const a = j(null), [s, f] = v(() => []), [c, g] = v(() => []), [y, h] = v(() => !1);
306
- function u() {
307
- if (!a.current || !a.current.getElementsByTagName)
308
- return;
309
- const o = a.current.getElementsByTagName("script");
310
- for (let b = 0; b < o.length; b++) {
311
- const x = o[b];
312
- if (x.src && !s.includes(x.src)) {
313
- s.push(x.src);
314
- const C = document.createElement("script");
315
- C.async = !0, C.src = x.src, document.head.appendChild(C);
316
- } else if (J(x) && !c.includes(x.innerText))
317
- try {
318
- c.push(x.innerText), new Function(x.innerText)();
319
- } catch (C) {
320
- console.warn("`Embed`: Error running script:", C);
321
- }
322
- }
323
- }
324
- return k(() => {
325
- a.current && !y && (h(!0), u());
326
- }, [a.current, y]), /* @__PURE__ */ n(
327
- "div",
328
- {
329
- className: "builder-embed",
330
- ref: a,
331
- dangerouslySetInnerHTML: { __html: e.content }
332
- }
333
- );
334
- }
335
- function Se(e) {
336
- return /* @__PURE__ */ n(
337
- "img",
338
- {
339
- style: {
340
- objectFit: e.backgroundSize || "cover",
341
- objectPosition: e.backgroundPosition || "center"
342
- },
343
- alt: e.altText,
344
- src: e.imgSrc || e.image,
345
- ...e.attributes
346
- },
347
- R() && e.imgSrc || "default-key"
348
- );
349
- }
350
- function xe(e) {
351
- const a = j(null), [s, f] = v(() => []), [c, g] = v(() => []);
352
- function y() {
353
- if (a.current && a.current.getElementsByTagName && typeof window < "u") {
354
- const h = a.current.getElementsByTagName("script");
355
- for (let u = 0; u < h.length; u++) {
356
- const o = h[u];
357
- if (o.src) {
358
- if (s.includes(o.src))
359
- continue;
360
- s.push(o.src);
361
- const b = document.createElement("script");
362
- b.async = !0, b.src = o.src, document.head.appendChild(b);
363
- } else if (!o.type || [
364
- "text/javascript",
365
- "application/javascript",
366
- "application/ecmascript"
367
- ].includes(o.type)) {
368
- if (c.includes(o.innerText))
369
- continue;
370
- try {
371
- c.push(o.innerText), new Function(o.innerText)();
372
- } catch (b) {
373
- console.warn("`CustomCode`: Error running script:", b);
374
- }
375
- }
376
- }
377
- }
378
- }
379
- return k(() => {
380
- y();
381
- }, []), /* @__PURE__ */ n(
382
- "div",
383
- {
384
- ref: a,
385
- className: "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""),
386
- dangerouslySetInnerHTML: { __html: e.code }
387
- }
388
- );
389
- }
390
- const ne = p({
391
- content: null,
392
- context: {},
393
- localState: void 0,
394
- rootSetState() {
395
- },
396
- rootState: {},
397
- apiKey: null,
398
- apiVersion: void 0,
399
- componentInfos: {},
400
- inheritedStyles: {}
401
- });
402
- function ve(e) {
403
- var F, L, M, q, z;
404
- const a = j(null), [s, f] = v(() => 0);
405
- function c(t) {
406
- var i, r, d, S, K;
407
- const l = {
408
- ...e.builderContextSignal.content,
409
- ...t,
410
- data: {
411
- ...(i = e.builderContextSignal.content) == null ? void 0 : i.data,
412
- ...t == null ? void 0 : t.data
413
- },
414
- meta: {
415
- ...(r = e.builderContextSignal.content) == null ? void 0 : r.meta,
416
- ...t == null ? void 0 : t.meta,
417
- breakpoints: ((d = t == null ? void 0 : t.meta) == null ? void 0 : d.breakpoints) || ((K = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : K.breakpoints)
418
- }
419
- };
420
- ee({
421
- value: l,
422
- key: l.id
423
- }).then(() => {
424
- U.refresh();
425
- });
426
- }
427
- v(() => 0);
428
- const [g, y] = v(
429
- () => !1
430
- );
431
- function h(t) {
432
- var i;
433
- const { data: l } = t;
434
- if (l)
435
- switch (l.type) {
436
- case "builder.configureSdk": {
437
- const r = l.data, { breakpoints: d, contentId: S } = r;
438
- if (!S || S !== ((i = e.builderContextSignal.content) == null ? void 0 : i.id))
439
- return;
440
- d && c({
441
- meta: {
442
- breakpoints: d
443
- }
444
- }), f(s + 1);
445
- break;
446
- }
447
- case "builder.contentUpdate": {
448
- const r = l.data, d = r.key || r.alias || r.entry || r.modelName, S = r.data;
449
- d === e.model && (c(S), f(s + 1));
450
- break;
451
- }
452
- }
453
- }
454
- function u() {
455
- var l, i;
456
- const t = (i = (l = e.builderContextSignal.content) == null ? void 0 : l.data) == null ? void 0 : i.jsCode;
457
- t && A({
458
- code: t,
459
- context: e.context || {},
460
- localState: void 0,
461
- rootState: e.builderContextSignal.rootState,
462
- rootSetState: e.builderContextSignal.rootSetState
463
- });
464
- }
465
- const [o, b] = v(() => ({})), [x, C] = v(() => !1);
466
- function V(t) {
467
- var l, i;
468
- if (e.builderContextSignal.content) {
469
- const r = (l = e.builderContextSignal.content) == null ? void 0 : l.testVariationId, d = (i = e.builderContextSignal.content) == null ? void 0 : i.id;
470
- W({
471
- type: "click",
472
- canTrack: _(e.canTrack),
473
- contentId: d,
474
- apiKey: e.apiKey,
475
- variationId: r !== d ? r : void 0,
476
- ...Y(t),
477
- unique: !x
478
- });
479
- }
480
- x || C(!0);
481
- }
482
- function D(t) {
483
- return t.replace(
484
- /{{([^}]+)}}/g,
485
- (l, i) => A({
486
- code: i,
487
- context: e.context || {},
488
- localState: void 0,
489
- rootState: e.builderContextSignal.rootState,
490
- rootSetState: e.builderContextSignal.rootSetState
491
- })
492
- );
493
- }
494
- function H({ url: t, key: l }) {
495
- $(t).then((i) => i.json()).then((i) => {
496
- var d, S;
497
- const r = {
498
- ...e.builderContextSignal.rootState,
499
- [l]: i
500
- };
501
- (S = (d = e.builderContextSignal).rootSetState) == null || S.call(d, r), o[l] = !0;
502
- }).catch((i) => {
503
- console.error("error fetching dynamic data", t, i);
504
- });
505
- }
506
- function B() {
507
- var l, i;
508
- const t = ((i = (l = e.builderContextSignal.content) == null ? void 0 : l.data) == null ? void 0 : i.httpRequests) ?? {};
509
- Object.entries(t).forEach(([r, d]) => {
510
- if (d && (!o[r] || R())) {
511
- const S = D(d);
512
- H({
513
- url: S,
514
- key: r
515
- });
516
- }
517
- });
518
- }
519
- function I() {
520
- R() && window.dispatchEvent(
521
- new CustomEvent(
522
- "builder:component:stateChange",
523
- {
524
- detail: {
525
- state: Z(e.builderContextSignal.rootState),
526
- ref: {
527
- name: e.model
528
- }
529
- }
530
- }
531
- )
532
- );
533
- }
534
- const U = te();
535
- return k(() => {
536
- var t, l;
537
- if (e.apiKey || O.error(
538
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
539
- ), P()) {
540
- if (R() && (f(s + 1), window.addEventListener("message", h), G(), Q({
541
- ...e.locale ? {
542
- locale: e.locale
543
- } : {},
544
- ...e.includeRefs ? {
545
- includeRefs: e.includeRefs
546
- } : {},
547
- ...e.enrich ? {
548
- enrich: e.enrich
549
- } : {}
550
- }), Object.values(
551
- e.builderContextSignal.componentInfos
552
- ).forEach((i) => {
553
- var d;
554
- const r = X(i);
555
- (d = window.parent) == null || d.postMessage(r, "*");
556
- }), window.addEventListener(
557
- "builder:component:stateChangeListenerActivated",
558
- I
559
- )), e.builderContextSignal.content) {
560
- const i = (t = e.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (l = e.builderContextSignal.content) == null ? void 0 : l.id;
561
- W({
562
- type: "impression",
563
- canTrack: _(e.canTrack),
564
- contentId: r,
565
- apiKey: e.apiKey,
566
- variationId: i !== r ? i : void 0
567
- });
568
- }
569
- u(), B(), I();
570
- }
571
- }, []), k(() => {
572
- }, [e.content]), k(() => {
573
- P() && (window.removeEventListener("message", h), window.addEventListener("message", h));
574
- }, [g]), k(() => {
575
- u();
576
- }, [
577
- (L = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : L.jsCode,
578
- e.builderContextSignal.rootState
579
- ]), k(() => {
580
- B();
581
- }, [(q = (M = e.builderContextSignal.content) == null ? void 0 : M.data) == null ? void 0 : q.httpRequests]), k(() => {
582
- I();
583
- }, [e.builderContextSignal.rootState]), k(() => () => {
584
- P() && (window.removeEventListener("message", h), window.removeEventListener(
585
- "builder:component:stateChangeListenerActivated",
586
- I
587
- ));
588
- }, []), /* @__PURE__ */ n(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n(
589
- "div",
590
- {
591
- ref: a,
592
- onClick: (t) => V(t),
593
- "builder-content-id": (z = e.builderContextSignal.content) == null ? void 0 : z.id,
594
- "builder-model": e.model,
595
- ...e.showContent ? {} : {
596
- hidden: !0,
597
- "aria-hidden": !0
598
- },
599
- className: e.classNameProp,
600
- children: e.children
601
- },
602
- s
603
- ) }) : null });
604
- }
605
- export {
606
- se as B,
607
- xe as C,
608
- he as E,
609
- me as F,
610
- de as I,
611
- fe as S,
612
- ge as V,
613
- ue as a,
614
- re as b,
615
- be as c,
616
- Se as d,
617
- ve as e
618
- };
@@ -1,11 +0,0 @@
1
- "use server";
2
- import { n as r } from "./bundle-3b073b16.mjs";
3
- async function e({
4
- key: t,
5
- value: n
6
- }) {
7
- return r(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(t, n), { [t]: n };
8
- }
9
- export {
10
- e as p
11
- };