@soma-vertical-web/multi-lib 0.0.23 → 0.0.25

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 (107) hide show
  1. package/cms/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
  2. package/cms/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
  3. package/cms/ContentTypes/CommonPage/index.d.ts +2 -0
  4. package/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -0
  5. package/cms/ContentTypes/index.d.ts +6 -0
  6. package/cms/Factories/common.d.ts +7 -0
  7. package/cms/Factories/contentType.d.ts +9 -0
  8. package/cms/Factories/index.d.ts +2 -0
  9. package/cms/Factories/section.d.ts +7 -0
  10. package/cms/Sections/Banner/Component.d.ts +7 -0
  11. package/cms/Sections/Banner/Composite/Content.d.ts +4 -0
  12. package/cms/Sections/Banner/Composite/Slot.d.ts +0 -0
  13. package/cms/Sections/Banner/adapter.d.ts +32 -0
  14. package/cms/Sections/Banner/index.d.ts +8 -0
  15. package/cms/Sections/BennefitsBar/Component.d.ts +3 -0
  16. package/cms/Sections/BennefitsBar/index.d.ts +8 -0
  17. package/cms/Sections/TextContent/Component.d.ts +4 -0
  18. package/cms/Sections/TextContent/Composite/Content.d.ts +6 -0
  19. package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
  20. package/cms/Sections/TextContent/adapter.d.ts +3 -0
  21. package/cms/Sections/TextContent/index.d.ts +5 -0
  22. package/cms/Sections/_common/Accordion.d.ts +2 -0
  23. package/cms/Sections/_common/BannerItem.d.ts +5 -0
  24. package/cms/Sections/_common/TextStructure.d.ts +17 -0
  25. package/cms/Sections/_common/interfaces.d.ts +8 -0
  26. package/cms/Sections/index.d.ts +10 -0
  27. package/cms/helpers/index.d.ts +4 -1
  28. package/cms/index.d.ts +13 -7
  29. package/cms/ui/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
  30. package/cms/ui/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
  31. package/cms/ui/ContentTypes/CommonPage/index.d.ts +2 -0
  32. package/cms/ui/ContentTypes/index.d.ts +1 -0
  33. package/cms/ui/Factories/section.d.ts +7 -0
  34. package/cms/ui/Sections/Banner/Component.d.ts +7 -0
  35. package/cms/ui/Sections/Banner/Composite/Content.d.ts +4 -0
  36. package/cms/ui/Sections/Banner/Composite/Slot.d.ts +0 -0
  37. package/cms/ui/Sections/Banner/adapter.d.ts +32 -0
  38. package/cms/ui/Sections/Banner/index.d.ts +8 -0
  39. package/cms/ui/Sections/TextContent/Component.d.ts +4 -0
  40. package/cms/ui/Sections/TextContent/Composite/Content.d.ts +3 -0
  41. package/cms/ui/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
  42. package/cms/ui/Sections/TextContent/adapter.d.ts +3 -0
  43. package/cms/ui/Sections/TextContent/index.d.ts +8 -0
  44. package/cms/ui/Sections/_common/Accordion.d.ts +2 -0
  45. package/cms/ui/Sections/_common/BannerItem.d.ts +5 -0
  46. package/cms/ui/Sections/_common/TextStructure.d.ts +17 -0
  47. package/cms/ui/Sections/_common/interfaces.d.ts +8 -0
  48. package/cms/ui/Sections/index.d.ts +4 -0
  49. package/data/api/cms/index.d.ts +1 -1
  50. package/data/helpers/product/generalInfo.d.ts +1 -0
  51. package/index-BCZReEF1.js +4 -0
  52. package/index-BI5_UgNN.mjs +3210 -0
  53. package/index-BaPdEOcD.js +4 -0
  54. package/index-C7gBx1Sj.js +4 -0
  55. package/index-CAM8BZOC.mjs +3509 -0
  56. package/index-CG59Ho-O.mjs +3514 -0
  57. package/index-CWsS9JhJ.mjs +69 -0
  58. package/index-CqPFy76Q.mjs +3531 -0
  59. package/index-DVeRXseR.js +4 -0
  60. package/index-DXjpbLiy.js +4 -0
  61. package/index-DmJIk8vB.mjs +3210 -0
  62. package/index-KIgYoXyH.mjs +3526 -0
  63. package/index-NWyULgUV.js +4 -0
  64. package/index-T-_Ys9t7.mjs +3483 -0
  65. package/index-T1F-4OSy.js +4 -0
  66. package/index-dgE7GGD0.js +4 -0
  67. package/index-fnNrOQ41.js +1 -0
  68. package/index-tKMO8iJa.mjs +3215 -0
  69. package/index.d.ts +1 -1
  70. package/index.js +41 -4
  71. package/index.mjs +8776 -4553
  72. package/index2.js +1 -1
  73. package/index2.mjs +97 -34
  74. package/layout/index.d.ts +11 -10
  75. package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +1 -1
  76. package/layout/team-component/Footer/Composite/Support/index.d.ts +3 -0
  77. package/layout/team-component/Footer/Composite/Support/item.d.ts +3 -0
  78. package/layout/team-component/Footer/Footer.d.ts +1 -1
  79. package/layout/team-component/Footer/index.d.ts +4 -1
  80. package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +1 -1
  81. package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +1 -1
  82. package/layout/team-component/TipBar/Composite/Root.d.ts +3 -1
  83. package/layout/team-component/TipBar/index.d.ts +1 -1
  84. package/layout/utils/DraftJsLinkWrapper/index.d.ts +5 -0
  85. package/package.json +1 -1
  86. package/server.d.ts +4 -3
  87. package/style.css +1 -1
  88. package/types/cms/ContentTypes/CommonPage/index.d.ts +6 -2
  89. package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -1
  90. package/types/cms/ContentTypes/Footer/index.d.ts +31 -1
  91. package/types/cms/ContentTypes/Header/index.d.ts +1 -1
  92. package/types/cms/ContentTypes/LookbookPage/index.d.ts +1 -1
  93. package/types/cms/ContentTypes/Multimarcas/index.d.ts +1 -1
  94. package/types/cms/ContentTypes/NotFoundPage/index.d.ts +2 -3
  95. package/types/cms/Sections/Banner/index.d.ts +5 -1
  96. package/types/cms/Sections/BennefitsBar/index.d.ts +5 -0
  97. package/types/cms/Sections/TextContent/index.d.ts +9 -2
  98. package/types/cms/api/index.d.ts +0 -11
  99. package/types/constants.d.ts +8 -1
  100. package/types/contexts/contexts/cart/index.d.ts +1 -2
  101. package/types/contexts/store/cart.d.ts +3 -2
  102. package/types/data/api/cms/index.d.ts +11 -0
  103. package/types/data/api/search/product/index.d.ts +1 -1
  104. package/types/layout/team-components/Footer/index.d.ts +3 -0
  105. package/types/layout/team-components/Timer/index.d.ts +1 -1
  106. package/types/layout/team-components/TipBar/index.d.ts +6 -1
  107. package/types/layout/utils/index.d.ts +6 -0
@@ -0,0 +1,3483 @@
1
+ var un = Object.defineProperty;
2
+ var cn = (t, e, r) => e in t ? un(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var qe = (t, e, r) => cn(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { jsx as E, jsxs as Q, Fragment as H } from "react/jsx-runtime";
5
+ import Ie, { createContext as Se, useRef as z, useContext as Ne, useState as re, useMemo as lt, useEffect as ne } from "react";
6
+ import { get as je, set as Me } from "idb-keyval";
7
+ import { create as wr } from "zustand";
8
+ import { SizesSmallExtended as ue, Mode as ln } from "@soma-vertical-web/foundations";
9
+ import { helpers as se, TextStructure as Ct, Utils as Or, Icon as At, Button as dn, Timer as G, Banner as De } from "@soma-vertical-web/core-components";
10
+ import { DefaultDraftBlockRenderMap as fn, convertFromRaw as Ir, CompositeDecorator as pn, EditorState as dt, Editor as Lt } from "draft-js";
11
+ import { TZDate as xt } from "@date-fns/tz";
12
+ const mn = (t, e) => {
13
+ const [r, n] = t.split(e);
14
+ return { name: r.trim(), size: n ? n.trim() : "" };
15
+ }, Sr = (t, e) => {
16
+ if (!t)
17
+ return {};
18
+ const [r, n] = t.split(e);
19
+ return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
20
+ }, oi = (t, e = "tamanho") => {
21
+ if (t.additionalProperty) {
22
+ const [r] = t.additionalProperty;
23
+ return r != null && r.name ? r.name.toLocaleLowerCase() === e ? r.value : t.name : "";
24
+ }
25
+ return t.name;
26
+ }, ii = (t) => t.replace(/\//g, ""), K = ({ event: t, data: e }) => {
27
+ const r = (window == null ? void 0 : window.dataLayer) || [];
28
+ e.ecommerce && r.push({
29
+ ecommerce: null
30
+ }), r.push({ ...t && { event: `custom_${t}` }, ...e });
31
+ }, C = {
32
+ configs: {
33
+ PLP_FILTERS: [{ key: "", label: "", eventLabel: "", order: 0 }],
34
+ currency: "BRL",
35
+ categoryOff: "bazar",
36
+ storeUrl: "https://www.example.com",
37
+ MAIN_IMAGE: "1",
38
+ // Default main image identifier
39
+ NAME_SPLIT_SYMBOL: "-"
40
+ },
41
+ productEvents: (t, e) => {
42
+ const { event: r, commonData: n, customData: i, promotionInfo: o, itemList: s, outsideEcommerceData: a } = t, { availableSizes: u, sizes: l, price: p } = n, d = {
43
+ ...r === "view_item" ? {
44
+ currency: C.configs.currency,
45
+ value: p,
46
+ grade_disponivel: u ?? (l ? Nr(l) : "")
47
+ } : {},
48
+ ...r === "add_to_wishlist" || r === "remove_from_wishlist" ? {
49
+ value: p,
50
+ currency: C.configs.currency
51
+ } : {}
52
+ }, c = fe({
53
+ data: n,
54
+ customData: {
55
+ ...i,
56
+ ...s,
57
+ ...o
58
+ },
59
+ configs: C.configs
60
+ });
61
+ K({
62
+ event: r,
63
+ data: {
64
+ ...a,
65
+ ecommerce: {
66
+ ...s,
67
+ ...d,
68
+ items: [c]
69
+ }
70
+ }
71
+ }), typeof e == "function" && e(c, d);
72
+ },
73
+ productListEvent: (t) => {
74
+ const {
75
+ commonData: { products: e },
76
+ promotionInfo: r,
77
+ itemList: n,
78
+ outsideEcommerceData: i,
79
+ customData: o
80
+ } = t;
81
+ if (e.length === 0)
82
+ return;
83
+ const s = e.map(({ node: a }, u) => fe({
84
+ data: { ...a },
85
+ customData: {
86
+ ...r,
87
+ index: u,
88
+ ...o != null && o.item_list_name ? { item_list_name: o == null ? void 0 : o.item_list_name } : n
89
+ },
90
+ configs: C.configs
91
+ }));
92
+ K({
93
+ event: "view_item_list",
94
+ data: {
95
+ ...i,
96
+ ecommerce: {
97
+ ...o != null && o.item_list_name ? { item_list_name: o == null ? void 0 : o.item_list_name } : n,
98
+ items: s
99
+ }
100
+ }
101
+ });
102
+ },
103
+ skuEvents: (t) => {
104
+ const {
105
+ event: e,
106
+ commonData: { products: r },
107
+ customData: n,
108
+ supportData: { selectedSkus: i, price: o },
109
+ //in case of kit price and list price are here
110
+ promotionInfo: s,
111
+ itemList: a,
112
+ outsideEcommerceData: u
113
+ } = t;
114
+ let l = 0;
115
+ const p = r.map((d) => {
116
+ var f, g, _, w, b, h, P, v, R;
117
+ const c = i == null ? void 0 : i.find(
118
+ (I) => (d.productId ?? d.id) === I.productId
119
+ );
120
+ let m = { ...s, ...a };
121
+ if (c) {
122
+ const I = Cr(), T = Ar(I, c);
123
+ T && (m = {
124
+ ...m,
125
+ ...T
126
+ }), e === "add_to_cart" && (s || a) && ft({
127
+ persistedData: I,
128
+ type: "add",
129
+ sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku),
130
+ newData: {
131
+ promotionInfo: s,
132
+ itemList: a
133
+ }
134
+ }), e === "remove_from_cart" && ft({
135
+ persistedData: I,
136
+ type: "remove",
137
+ sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku)
138
+ });
139
+ }
140
+ l += d.price ?? ((_ = (g = (f = c == null ? void 0 : c.offers) == null ? void 0 : f.offers) == null ? void 0 : g[0]) == null ? void 0 : _.price) ?? 0;
141
+ const y = (c == null ? void 0 : c.size) ?? Sr(
142
+ (c == null ? void 0 : c.skuName) ?? (c == null ? void 0 : c.name) ?? ((w = d.itemOffered) == null ? void 0 : w.skuName),
143
+ C.configs.NAME_SPLIT_SYMBOL
144
+ ).size;
145
+ return fe({
146
+ data: d,
147
+ customData: {
148
+ ...n,
149
+ ...m ?? {
150
+ ...s,
151
+ ...a
152
+ },
153
+ item_sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku) ?? ((b = d.itemOffered) == null ? void 0 : b.sku),
154
+ quantity: (n == null ? void 0 : n.quantity) ?? d.quantity ?? 1,
155
+ item_variant2: y,
156
+ seller_id: (c == null ? void 0 : c.sellerId) ?? (c == null ? void 0 : c.seller) ?? ((R = (v = (P = (h = c == null ? void 0 : c.offers) == null ? void 0 : h.offers) == null ? void 0 : P[0]) == null ? void 0 : v.seller) == null ? void 0 : R.identifier) ?? d.seller
157
+ },
158
+ configs: C.configs
159
+ });
160
+ });
161
+ K({
162
+ event: e,
163
+ data: {
164
+ ...u,
165
+ ecommerce: {
166
+ value: o ?? l,
167
+ currency: C.configs.currency,
168
+ items: p
169
+ }
170
+ }
171
+ });
172
+ },
173
+ filterEvent: (t) => {
174
+ var s;
175
+ const { commonData: e, customData: r, outsideEcommerceData: n } = t, i = {}, o = {};
176
+ Array.isArray(e == null ? void 0 : e.selectedFacets) && ((s = e == null ? void 0 : e.selectedFacets) != null && s.length) && ((e == null ? void 0 : e.selectedFacets).forEach(({ key: a, value: u }) => {
177
+ var d;
178
+ const l = ((d = C.configs.PLP_FILTERS.find((c) => c.key === a)) == null ? void 0 : d.eventLabel) ?? a, p = (i == null ? void 0 : i[l]) || [];
179
+ l === "price_range" && u.replace(":", "-"), i[l] = [...p, u];
180
+ }), Object.keys(i).forEach((a) => o[a] = i[a].join(", "))), K({
181
+ event: "filter",
182
+ data: {
183
+ ...n,
184
+ ...o,
185
+ ...r
186
+ }
187
+ });
188
+ },
189
+ viewCartEvent: (t) => {
190
+ var p, d, c, m, y, f, g, _, w, b;
191
+ const { commonData: e, outsideEcommerceData: r } = t, { cartStore: n } = e;
192
+ if (!n)
193
+ return;
194
+ const i = window.localStorage.getItem("persistedCartEventsData"), o = i ? JSON.parse(i) : {}, s = n.items.map((h) => {
195
+ const { promotionInfo: P, itemList: v } = o[h.id] ?? {};
196
+ return fe({
197
+ data: {
198
+ ...h,
199
+ price: h.price / 100,
200
+ listPrice: h.listPrice / 100
201
+ },
202
+ customData: {
203
+ ...P,
204
+ ...v,
205
+ item_sku: h.id ?? h.itemOffered.sku,
206
+ quantity: h.quantity ?? 1
207
+ },
208
+ configs: C.configs
209
+ });
210
+ }), a = (((p = n.totalizers.find((h) => h.name === "Total dos Itens")) == null ? void 0 : p.value) ?? 0) / 100, u = (((d = n.totalizers.find((h) => h.name === "Total dos Descontos")) == null ? void 0 : d.value) ?? 0) / 100, l = ((c = n.marketingData) == null ? void 0 : c.utmiCampaign) === "codigodavendedora" ? (m = n.marketingData) == null ? void 0 : m.utmCampaign : (f = String((y = n.openTextField) == null ? void 0 : y.value)) == null ? void 0 : f.split(" - ")[0];
211
+ K({
212
+ event: "view_cart",
213
+ data: {
214
+ ...r,
215
+ ecommerce: {
216
+ currency: C.configs.currency,
217
+ value: a + u,
218
+ total_discount: Math.abs(u),
219
+ cep_preenchido: !!((_ = (g = n.shippingData) == null ? void 0 : g.address) != null && _.postalCode),
220
+ ...l ? { seller_coupon_name: l } : {},
221
+ ...((w = n.marketingData) == null ? void 0 : w.coupon) && {
222
+ sale_coupon_name: (b = n.marketingData) == null ? void 0 : b.coupon
223
+ },
224
+ subtotal: a,
225
+ items: s
226
+ }
227
+ }
228
+ });
229
+ },
230
+ readyEvents: (t) => {
231
+ const { event: e, readyData: r } = t;
232
+ K({
233
+ event: e,
234
+ data: {
235
+ ...r
236
+ }
237
+ });
238
+ }
239
+ }, Nr = (t) => t.reduce((e, r) => (r.available && e.push(r.value), e), []).toString(), hn = (t) => {
240
+ const e = t.length;
241
+ return {
242
+ ...t && t.length > 0 ? {
243
+ item_category: t[0].includes(C.configs.categoryOff) ? "Bazar" : "Coleção",
244
+ ...t[1] ? { item_category2: t[1] } : {},
245
+ ...e > 2 ? { item_category3: t[e - 1] } : {}
246
+ } : {}
247
+ };
248
+ }, fe = ({ data: t, customData: e, configs: r }) => ({
249
+ ...gn(t, r == null ? void 0 : r.MAIN_IMAGE),
250
+ ...yn(t),
251
+ ..._n(t),
252
+ ...vn(t),
253
+ ...e
254
+ }), Tr = () => {
255
+ var t, e;
256
+ return document ? ((e = (t = window.document.head.querySelector('meta[name="category"]')) == null ? void 0 : t.getAttribute("content")) == null ? void 0 : e.split("_")) ?? [] : [];
257
+ }, Cr = () => {
258
+ const t = window.localStorage.getItem("persistedCartEventsData");
259
+ return t ? JSON.parse(t) : null;
260
+ }, Ar = (t, e) => t == null ? void 0 : t[e], ft = ({
261
+ persistedData: t,
262
+ type: e,
263
+ sku: r,
264
+ newData: n
265
+ }) => {
266
+ if (!t && e === "add") {
267
+ window.localStorage.setItem("persistedCartEventsData", JSON.stringify({ [r]: n }));
268
+ return;
269
+ }
270
+ if (t && e === "add") {
271
+ window.localStorage.setItem(
272
+ "persistedCartEventsData",
273
+ JSON.stringify({ ...t, [r]: n })
274
+ );
275
+ return;
276
+ }
277
+ t && e === "remove" && (delete t[r], window.localStorage.setItem("persistedCartEventsData", JSON.stringify(t)));
278
+ }, gn = (t, e = "1") => {
279
+ var o, s, a, u, l, p, d, c, m, y, f;
280
+ const r = t.productReference ?? t.gtin ?? t.productRefId, n = t.image ?? ((s = (o = t.items) == null ? void 0 : o[0]) == null ? void 0 : s.images) ?? ((a = t.itemOffered) == null ? void 0 : a.image), i = n == null ? void 0 : n.find(
281
+ (g) => g.alternateName === e || g.imageLabel === e || g.keywords === e
282
+ );
283
+ return {
284
+ item_id: t.productId ?? ((u = t.isVariantOf) == null ? void 0 : u.productGroupID) ?? ((l = t.isVariationOf) == null ? void 0 : l.productGroupID) ?? ((d = (p = t.itemOffered) == null ? void 0 : p.isVariationOf) == null ? void 0 : d.productGroupID),
285
+ item_ref: /_\d$/.test(r) ? r.slice(0, -2) : r,
286
+ item_name: t.productTitle ?? t.productName ?? t.name ?? mn((c = t.itemOffered) == null ? void 0 : c.name, C.configs.NAME_SPLIT_SYMBOL).name,
287
+ item_brand: ((m = t.brand) == null ? void 0 : m.brandName) ?? ((y = t.brand) == null ? void 0 : y.name) ?? t.brand ?? ((f = t.itemOffered) == null ? void 0 : f.brand.name),
288
+ item_url: `${C.configs.storeUrl}${t.linkText}/p`,
289
+ item_image: (i == null ? void 0 : i.url) ?? (i == null ? void 0 : i.imageUrl)
290
+ };
291
+ }, qt = (t) => Array.isArray(t) ? t.reduce((e, r) => (r.length > e.length && (e = r), e), "") : t, yn = (t) => {
292
+ var l, p;
293
+ const { categories: e, categoriesIds: r } = t, n = e ?? ((l = t.itemOffered) == null ? void 0 : l.categories), i = r ?? ((p = t.itemOffered) == null ? void 0 : p.categoriesIds), o = qt(n), s = qt(i), a = o.slice(1, -1).split("/"), u = s.slice(1, -1).split("/");
294
+ return {
295
+ item_category: a[0].toLowerCase().includes(C.configs.categoryOff) ? "Bazar" : "Coleção",
296
+ ...a[1] && { item_category2: a[1] },
297
+ ...a.length > 2 && {
298
+ item_category3: a[a.length - 1]
299
+ },
300
+ item_category_id: u[u.length - 1],
301
+ ...u.length > 1 && {
302
+ item_parent_category_id: u[u.length - 2]
303
+ }
304
+ };
305
+ }, _n = (t) => {
306
+ var i, o, s, a, u, l;
307
+ const e = ((i = t.itemOffered) == null ? void 0 : i.skuName) ?? ((a = (s = (o = t.isVariantOf) == null ? void 0 : o.hasVariant) == null ? void 0 : s[0]) == null ? void 0 : a.name) ?? ((l = (u = t.items) == null ? void 0 : u[0]) == null ? void 0 : l.name), { color: r, size: n } = Sr(e, C.configs.NAME_SPLIT_SYMBOL);
308
+ return {
309
+ item_variant: r,
310
+ ...t.itemOffered && { item_variant2: n }
311
+ };
312
+ }, vn = (t) => {
313
+ var u, l;
314
+ const { price: e, listPrice: r, installments: n } = t, i = e ?? ((u = t.offers) == null ? void 0 : u.lowPrice) ?? 0, o = r ?? ((l = t.offers) == null ? void 0 : l.highPrice) ?? 0, s = o ? o - i : 0, a = s % 1 === 0 ? s : Number(s.toFixed(2));
315
+ return {
316
+ ...e && { price: i ?? o },
317
+ ...o && {
318
+ list_price: o,
319
+ discount: a
320
+ },
321
+ ...n && {
322
+ installments: n == null ? void 0 : n.count,
323
+ installment_value: n == null ? void 0 : n.value
324
+ },
325
+ item_currency: C.configs.currency
326
+ };
327
+ }, bn = () => {
328
+ const [t, e] = Tr(), [r, n] = t.split("-"), i = r.includes("shop") || r.includes("sale") ? r : "";
329
+ return {
330
+ page_category: i && n ? n : "",
331
+ page_departament: i,
332
+ id: e,
333
+ name: t
334
+ };
335
+ }, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
336
+ __proto__: null,
337
+ eventsFunctions: C,
338
+ findDataInPersistedData: Ar,
339
+ getAvailablesSizes: Nr,
340
+ getCategories: hn,
341
+ getPageCategoryAndDepartmentFromSlug: bn,
342
+ getPersistedData: Cr,
343
+ getProductListInfoFromHead: Tr,
344
+ pushDatalayer: K,
345
+ updatePersistedData: ft
346
+ }, Symbol.toStringTag, { value: "Module" })), Lr = Se({}), si = ({ children: t, evtFunctionsConfigs: e }) => {
347
+ const r = z({}), n = z(null), i = z(null), o = z({}), s = z({
348
+ trigger: !1,
349
+ index: 0
350
+ }), a = ({
351
+ functionKey: p,
352
+ data: d,
353
+ callBack: c,
354
+ timeout: m = 100
355
+ }) => {
356
+ window.dataLayer || (window.dataLayer = []), C.configs = e;
357
+ try {
358
+ typeof C[p] == "function" && setTimeout(() => {
359
+ var y;
360
+ d.promotionInfo = r.current, (y = i.current) != null && y.item_list_name && (d.itemList = i.current), C[p](d, c);
361
+ }, m);
362
+ } catch (y) {
363
+ K({
364
+ event: "error_event",
365
+ data: {
366
+ error_message: (y == null ? void 0 : y.message) ?? y
367
+ }
368
+ });
369
+ }
370
+ }, u = ({ content: p }) => {
371
+ a({
372
+ functionKey: "readyEvents",
373
+ data: {
374
+ event: "select_content",
375
+ readyData: {
376
+ content_type: p.replace("::", ":")
377
+ }
378
+ }
379
+ });
380
+ }, l = ({
381
+ updatePromotionRef: p,
382
+ promotion: d,
383
+ index: c
384
+ }) => {
385
+ p && (r.current = {
386
+ ...d
387
+ }), a({
388
+ functionKey: "readyEvents",
389
+ data: {
390
+ event: "select_promotion",
391
+ readyData: {
392
+ ecommerce: {
393
+ ...d,
394
+ ...c !== void 0 && { index: c }
395
+ }
396
+ }
397
+ }
398
+ });
399
+ };
400
+ return /* @__PURE__ */ E(
401
+ Lr.Provider,
402
+ {
403
+ value: {
404
+ sendDataLayerEvent: a,
405
+ triggerSelectItemEventRef: s,
406
+ promotionEventRef: r,
407
+ currentLocalRef: n,
408
+ itemListRef: i,
409
+ cartProductsFullDataRef: o,
410
+ handleSelectContent: u,
411
+ handleSelectPromotionEvent: l
412
+ },
413
+ children: t
414
+ }
415
+ );
416
+ }, xr = () => Ne(Lr), Pn = {
417
+ attachment: "ATTACHMENT",
418
+ specification: "SPECIFICATION",
419
+ attribute: "ATTRIBUTE"
420
+ }, k = Promise.resolve(!1), pt = {
421
+ id: "",
422
+ isOpen: !1,
423
+ items: [],
424
+ loading: !1,
425
+ marketingData: null,
426
+ messages: [],
427
+ openTextField: {},
428
+ paymentData: null,
429
+ shippingData: null,
430
+ totalizers: [],
431
+ itemMetadata: [],
432
+ recentlyAddedProducts: [],
433
+ addCoupon: () => k,
434
+ addItem: () => k,
435
+ addSellerCode: () => k,
436
+ emptyCart: () => {
437
+ },
438
+ removeItem: () => k,
439
+ setIsOpen: () => {
440
+ },
441
+ shipping: () => k,
442
+ shippingUpdate: () => k,
443
+ toggleServiceToProduct: () => k,
444
+ updateItemQuantity: () => k,
445
+ insertProfileEmail: () => k,
446
+ setRecentlyAddedProducts: () => {
447
+ }
448
+ }, _t = (t) => t === 0, qr = (t, e) => {
449
+ if (!t || t.length === 0)
450
+ return [];
451
+ let r = "";
452
+ const n = [], i = t.match(/\d+/g) ?? [];
453
+ for (const o of i) {
454
+ const s = e[Number(o)];
455
+ s && (r += (r ? "/" : "") + s, n.push(r));
456
+ }
457
+ return n;
458
+ }, jr = (t) => {
459
+ const {
460
+ availability: e,
461
+ additionalInfo: { brandName: r },
462
+ bundleItems: n,
463
+ id: i,
464
+ detailUrl: o,
465
+ ean: s,
466
+ imageUrl: a,
467
+ name: u,
468
+ listPrice: l,
469
+ quantity: p,
470
+ price: d,
471
+ priceDefinition: c,
472
+ productCategories: m,
473
+ productCategoryIds: y,
474
+ productId: f,
475
+ refId: g,
476
+ seller: _,
477
+ referenceId: w,
478
+ offerings: b,
479
+ productRefId: h,
480
+ skuName: P,
481
+ sellingPrice: v
482
+ } = t;
483
+ return {
484
+ availability: e,
485
+ bundleItems: n,
486
+ referenceId: w,
487
+ productRefId: h,
488
+ id: i,
489
+ ean: s,
490
+ itemOffered: {
491
+ additionalProperty: [],
492
+ brand: {
493
+ name: r
494
+ },
495
+ categories: qr(y, m),
496
+ categoriesIds: y,
497
+ gtin: g,
498
+ image: [
499
+ {
500
+ alternateName: "1",
501
+ url: a
502
+ }
503
+ ],
504
+ name: u,
505
+ isVariationOf: {
506
+ name: u,
507
+ productGroupID: f
508
+ },
509
+ sku: i,
510
+ slug: o,
511
+ skuName: P
512
+ },
513
+ listPrice: l,
514
+ quantity: p,
515
+ offerings: b,
516
+ price: d,
517
+ priceDefinition: c,
518
+ sellingPrice: v,
519
+ seller: _
520
+ };
521
+ }, Mr = (t, e) => {
522
+ const r = t.map((n) => ({
523
+ id: n.id,
524
+ quantity: n.quantity,
525
+ seller: n.seller
526
+ }));
527
+ return Array.isArray(e) ? [...r, ...e] : [...r, e];
528
+ }, Dr = (t, e) => {
529
+ const r = t.find((n) => n.id === e);
530
+ if (r) {
531
+ const n = t.map((i, o) => {
532
+ var s, a;
533
+ return {
534
+ id: ((s = i.itemOffered) == null ? void 0 : s.sku) ?? "",
535
+ index: o,
536
+ quantity: (r == null ? void 0 : r.id) === ((a = i.itemOffered) == null ? void 0 : a.sku) ? 0 : i.quantity,
537
+ seller: i.seller ?? ""
538
+ };
539
+ });
540
+ return {
541
+ updateItems: n,
542
+ filterItems: n.filter((i) => i.id !== e)
543
+ };
544
+ }
545
+ return { updateItems: [], filterItems: [] };
546
+ }, kr = (t, e, r) => t.filter(
547
+ (n) => n.availability !== "withoutStock" && n.availability !== "https://schema.org/OutOfStock"
548
+ ).map(
549
+ (n, i) => {
550
+ var o, s;
551
+ return n.id === e ? {
552
+ id: n.id,
553
+ index: i,
554
+ quantity: r,
555
+ seller: n.seller,
556
+ sku: ((o = n.itemOffered) == null ? void 0 : o.sku) ?? ""
557
+ } : {
558
+ id: n.id,
559
+ index: i,
560
+ quantity: n.quantity,
561
+ seller: n.seller,
562
+ sku: ((s = n.itemOffered) == null ? void 0 : s.sku) ?? ""
563
+ };
564
+ }
565
+ ), Rn = (t, e) => t.filter((r) => r.availability !== "withoutStock").findIndex(({ id: r }) => r === e), En = (t, e) => {
566
+ var r;
567
+ return Array.isArray(t) ? (((r = t == null ? void 0 : t.find((n) => {
568
+ var i;
569
+ return ((i = n == null ? void 0 : n.id) == null ? void 0 : i.toLowerCase()) === e;
570
+ })) == null ? void 0 : r.value) ?? 0) / 100 : 0;
571
+ }, wn = (t) => {
572
+ const e = t.reduce((i, o) => {
573
+ const s = _t(o.price) ? 0 : o.quantity;
574
+ return i + s;
575
+ }, 0), r = t.reduce(
576
+ (i, o) => i + o.price * o.quantity,
577
+ 0
578
+ ), n = t.reduce(
579
+ (i, o) => i + o.listPrice * o.quantity,
580
+ 0
581
+ );
582
+ return {
583
+ totalItems: e,
584
+ total: r,
585
+ subTotal: n
586
+ };
587
+ }, On = (t) => Array.isArray(t) ? t.filter((e) => e.availability !== "withoutStock").reduce((e, r) => e + (_t(r == null ? void 0 : r.price) ? 0 : r.quantity), 0) : 0, Ur = (t) => {
588
+ const {
589
+ items: e,
590
+ itemMetadata: r,
591
+ marketingData: n,
592
+ messages: i,
593
+ orderFormId: o,
594
+ openTextField: s,
595
+ paymentData: a,
596
+ shippingData: u,
597
+ totalizers: l
598
+ } = t;
599
+ return {
600
+ id: o,
601
+ itemMetadata: r,
602
+ items: Array.isArray(e) ? e.map(jr) : [],
603
+ marketingData: n,
604
+ messages: i,
605
+ openTextField: s,
606
+ paymentData: a,
607
+ shippingData: u,
608
+ totalizers: l
609
+ };
610
+ }, zr = (t, e) => {
611
+ const r = t.find((n) => n.id === e);
612
+ return r ? r.availability === "unavailableItemFulfillment" : !1;
613
+ }, In = (t, e) => {
614
+ const r = t.sku, n = t.isVariantOf.hasVariant.find((i) => i.sku === r);
615
+ return n ? n.name.split(e)[1] : "--";
616
+ }, Sn = (t, e, r = !1) => !t && e !== "" ? { code: 300, value: e, statusOk: r } : t === e ? { code: 200, value: e, statusOk: r } : { code: 400, value: e, statusOk: r }, Nn = (t, e) => {
617
+ const r = /* @__PURE__ */ new Set();
618
+ return [t, ...e].filter(
619
+ (n) => !r.has(n) && r.add(n),
620
+ r
621
+ );
622
+ }, Br = (t, e) => e && Array.isArray(e) && e.find((n) => n.id === t) ? Promise.resolve(t) : Promise.resolve(!1), Vr = (t, e) => e ? Promise.resolve(t[e]) : Promise.resolve(!1), Fr = async (t) => {
623
+ try {
624
+ const e = await t();
625
+ if (typeof e != "boolean")
626
+ return e;
627
+ } catch (e) {
628
+ console.error(`[Error orderForm]: ${e}`);
629
+ }
630
+ return !1;
631
+ }, Tn = (t, e) => {
632
+ if (e !== -1) {
633
+ const r = Number(t);
634
+ return r ? r + 1 : 1;
635
+ }
636
+ return t ?? 1;
637
+ }, Wr = (t, e) => Array.isArray(t) ? t.filter(
638
+ (r) => e == null ? void 0 : e.some((n) => n.id === r.id)
639
+ ) : [], Hr = async (t, e) => t.then((r) => [...r ?? [], ...e ?? []]), q = async (t, e, r) => {
640
+ const { priority: n = "auto", body: i } = e;
641
+ return fetch(t, {
642
+ // priority,
643
+ headers: {
644
+ "Content-Type": "application/json"
645
+ },
646
+ priority: n,
647
+ method: "POST",
648
+ body: JSON.stringify(i)
649
+ }).then(async (o) => {
650
+ const s = await o.json();
651
+ return r ? s : Ur(s);
652
+ });
653
+ }, $r = (t, e, r) => ({
654
+ notifications: [
655
+ ...t.notifications,
656
+ { id: Date.now(), message: e, callback: r }
657
+ ]
658
+ }), Cn = (t) => [...Array.isArray(t) ? t : [t], "faststore"], ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
659
+ __proto__: null,
660
+ VALUE_REFERENCES: Pn,
661
+ addItemOrder: Mr,
662
+ addNotification: $r,
663
+ createItemOrder: jr,
664
+ fetchCartAPI: q,
665
+ findItemIndex: Rn,
666
+ findOptions: Wr,
667
+ findTotalizerValue: En,
668
+ getCategories: qr,
669
+ getCode: Sn,
670
+ getQuantity: Tn,
671
+ getRemoveId: Br,
672
+ getSize: In,
673
+ getTotalItems: On,
674
+ getTotalizer: wn,
675
+ getValue: Vr,
676
+ initialState: pt,
677
+ isGift: _t,
678
+ marketingTagsBuilder: Cn,
679
+ mergeOptionsPromise: Hr,
680
+ orderFormValues: Ur,
681
+ promiseDefault: k,
682
+ removeQuantity: Dr,
683
+ updateItemSellerExternal: zr,
684
+ updateOrderFormPromise: Fr,
685
+ updateQuantity: kr,
686
+ wishlistArray: Nn
687
+ }, Symbol.toStringTag, { value: "Module" })), An = () => {
688
+ const t = async (c, m) => q("/api/checkout/order-form/coupon", {
689
+ body: {
690
+ orderFormId: c,
691
+ coupon: m
692
+ }
693
+ }), e = async (c, m) => {
694
+ if (m) {
695
+ const y = m.includes(" - ") ? m.split(" - ")[0] : m, f = await q(
696
+ "/api/checkout/order-form/seller-code",
697
+ {
698
+ body: {
699
+ orderFormId: c,
700
+ sellerCode: y
701
+ }
702
+ },
703
+ !0
704
+ );
705
+ return q("/api/checkout/order-form/attachments", {
706
+ body: {
707
+ orderFormId: c,
708
+ sellerCode: y,
709
+ sellerName: f instanceof Object && "nome" in f ? f == null ? void 0 : f.nome : ""
710
+ }
711
+ }).then((g) => ({
712
+ ...g,
713
+ openTextField: {
714
+ ...(g == null ? void 0 : g.openTextField) ?? {},
715
+ statusOk: (f == null ? void 0 : f.status) ?? !1
716
+ }
717
+ }));
718
+ } else
719
+ return q("/api/checkout/order-form/attachments", {
720
+ body: {
721
+ orderFormId: c,
722
+ sellerCode: "",
723
+ sellerName: ""
724
+ }
725
+ });
726
+ }, r = async (c, m, y) => q("/api/checkout/order-form/items", {
727
+ body: {
728
+ orderFormId: c,
729
+ orderItems: Mr(m, y)
730
+ }
731
+ }), n = async (c, m, y, f) => q("/api/checkout/order-form/offerings", {
732
+ body: {
733
+ id: m,
734
+ itemIndex: y,
735
+ orderFormId: c,
736
+ remove: f
737
+ }
738
+ }), i = async (c) => q("/api/checkout/order-form/items/remove-all", {
739
+ body: { orderFormId: c }
740
+ }), o = async (c, m = "low") => q("/api/checkout/order-form", {
741
+ priority: m,
742
+ body: { orderFormId: c ?? "" }
743
+ }), s = async (c, m) => q("/api/checkout/order-form/profile", {
744
+ body: {
745
+ orderFormId: c,
746
+ email: m
747
+ }
748
+ }), a = async (c, m, y) => {
749
+ const f = Dr(m, y);
750
+ return q("/api/checkout/order-form/items/update", {
751
+ body: {
752
+ orderItems: f.updateItems,
753
+ orderFormId: c
754
+ }
755
+ });
756
+ }, u = async (c, m, y) => q("/api/checkout/order-form/shipping", {
757
+ body: {
758
+ orderFormId: c,
759
+ country: y,
760
+ postalCode: m
761
+ }
762
+ }), l = async (c, m, y) => q("/api/checkout/order-form/shipping/update", {
763
+ body: {
764
+ orderFormId: c,
765
+ options: m,
766
+ selectedAddresses: y
767
+ }
768
+ }), p = async (c, m, y, f) => {
769
+ const g = kr(m, y, f);
770
+ return q("/api/checkout/order-form/items/update", {
771
+ body: {
772
+ orderFormId: c,
773
+ orderItems: g
774
+ }
775
+ });
776
+ };
777
+ return {
778
+ addCoupon: t,
779
+ addItem: r,
780
+ addSellerCode: e,
781
+ giftItem: n,
782
+ emptyCart: i,
783
+ getOrderForm: o,
784
+ insertProfileEmail: s,
785
+ removeItem: a,
786
+ shipping: u,
787
+ shippingUpdate: l,
788
+ updateItemQuantity: async (c, m, y, f, g) => p(
789
+ c,
790
+ m,
791
+ y,
792
+ f
793
+ ).then((_) => _ && Array.isArray(_.items) ? zr(_.items, y) ? p(
794
+ c,
795
+ m,
796
+ y,
797
+ g
798
+ ) : _ : !1)
799
+ };
800
+ }, mt = "soma::cart", ae = "soma::options", vt = wr((t, e) => {
801
+ const r = An(), n = async (i, o, s) => {
802
+ t({ loading: !0 });
803
+ const a = await Fr(i);
804
+ if (typeof a != "boolean") {
805
+ t({ ...a });
806
+ const u = await Hr(
807
+ je(ae),
808
+ s
809
+ );
810
+ return Me(ae, u), Vr(a, o).finally(
811
+ () => t({ loading: !1, options: u })
812
+ );
813
+ }
814
+ return k;
815
+ };
816
+ if (typeof window < "u") {
817
+ const i = async (o) => {
818
+ if (o) {
819
+ const s = await je(ae).then(
820
+ (l) => Wr(l, o.items)
821
+ );
822
+ Me(mt, o), Me(ae, s), t({ ...o, options: s });
823
+ const a = new URLSearchParams(window.location.search), u = a.get("utm_campaign") || a.get("utmi_campaign") || "";
824
+ u && n(
825
+ () => r.addSellerCode(e().id, u.toUpperCase()),
826
+ "openTextField"
827
+ );
828
+ }
829
+ };
830
+ return je(mt).then(
831
+ (o) => r.getOrderForm(o ? o.id : "").then(i)
832
+ // create form
833
+ ), {
834
+ ...pt,
835
+ // coupon
836
+ addCoupon: async (o) => n(
837
+ () => r.addCoupon(e().id, o),
838
+ "marketingData"
839
+ ),
840
+ // add to cart
841
+ addItem: (o, s) => {
842
+ n(
843
+ () => r.addItem(e().id, e().items, o),
844
+ "items",
845
+ s
846
+ );
847
+ },
848
+ // seller code
849
+ addSellerCode: async (o) => n(
850
+ () => r.addSellerCode(e().id, o),
851
+ "openTextField"
852
+ ),
853
+ // empty cart
854
+ emptyCart: () => {
855
+ n(() => r.emptyCart(e().id));
856
+ },
857
+ // remove item
858
+ removeItem: async (o) => {
859
+ const s = await n(
860
+ () => r.removeItem(e().id, e().items, o),
861
+ // remove item by quantity = 0
862
+ "items"
863
+ );
864
+ return Br(o, s);
865
+ },
866
+ // shipping
867
+ shipping: async (o, s = "BR") => n(
868
+ () => r.shipping(e().id, o, s),
869
+ // shipping first selected value,
870
+ "shippingData"
871
+ ),
872
+ // shipping update
873
+ shippingUpdate: async (o) => n(
874
+ () => {
875
+ var s;
876
+ return r.shippingUpdate(
877
+ e().id,
878
+ o,
879
+ (s = e().shippingData) == null ? void 0 : s.selectedAddresses
880
+ );
881
+ },
882
+ "shippingData"
883
+ ),
884
+ // toggle service product
885
+ toggleServiceToProduct: async (o, s, a) => n(
886
+ () => r.giftItem(e().id, o, s, a),
887
+ "items"
888
+ ),
889
+ // update item
890
+ updateItemQuantity: async (o, s, a) => {
891
+ const { id: u, items: l } = e();
892
+ return n(
893
+ () => {
894
+ var p;
895
+ return r.updateItemQuantity(
896
+ u,
897
+ l,
898
+ o,
899
+ s,
900
+ ((p = l.find((d) => d.id === o)) == null ? void 0 : p.quantity) ?? 1
901
+ );
902
+ },
903
+ "items",
904
+ a ? [a] : void 0
905
+ );
906
+ },
907
+ insertProfileEmail: async (o) => n(
908
+ () => r.insertProfileEmail(e().id, o),
909
+ "clientProfileData"
910
+ ),
911
+ setIsOpen: (o) => t({ isOpen: o })
912
+ };
913
+ }
914
+ return pt;
915
+ }), Ln = () => vt((t) => t), Gr = wr((t) => ({
916
+ notifications: [],
917
+ actions: {
918
+ addNotification: (e, r) => t(
919
+ (n) => $r(n, e, r)
920
+ ),
921
+ removeNotification: (e) => t((r) => ({
922
+ notifications: r.notifications.filter((n) => n.id !== e)
923
+ }))
924
+ }
925
+ })), xn = () => Gr(
926
+ (t) => t.notifications
927
+ ), qn = () => Gr(
928
+ (t) => t.actions
929
+ ), ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
930
+ __proto__: null,
931
+ KEY_INDEXED_OPTIONS: ae,
932
+ KEY_INDEXED_STORE: mt,
933
+ useCartStore: vt,
934
+ useGetCartStoreState: Ln,
935
+ useGetNotificationActions: qn,
936
+ useGetNotificationsStore: xn
937
+ }, Symbol.toStringTag, { value: "Module" })), jn = 6e3, Kr = Se({}), Mn = ({ children: t, ...e }) => {
938
+ const { items: r } = vt(), [n, i] = re([]), o = z(null), s = lt(() => Array.isArray(n) && n.length > 0 ? n.map((a) => r.find((u) => u.id === a.id)).filter((a) => a !== void 0) : [], [r, n]);
939
+ return ne(() => {
940
+ n.length && (clearTimeout(o.current ?? 0), o.current = setTimeout(() => {
941
+ i([]);
942
+ }, jn));
943
+ }, [n]), /* @__PURE__ */ E(
944
+ Kr.Provider,
945
+ {
946
+ value: lt(
947
+ () => ({
948
+ ...e,
949
+ setRecentlyAdded: i,
950
+ recentlyAddedProducts: s
951
+ }),
952
+ [e, i, s]
953
+ ),
954
+ children: t
955
+ }
956
+ );
957
+ }, li = () => {
958
+ const t = Ne(Kr);
959
+ if (t === void 0)
960
+ throw new Error("useUIContext must be used within a UIProvider");
961
+ return t;
962
+ };
963
+ class Dn {
964
+ constructor() {
965
+ qe(this, "events", {});
966
+ qe(this, "prevData", {});
967
+ }
968
+ subscribe(e, r) {
969
+ return this.events[e] || (this.events[e] = []), this.events[e].push(r), () => {
970
+ this.events[e] = this.events[e].filter((n) => n !== r);
971
+ };
972
+ }
973
+ publish(e, r) {
974
+ this.events[e] && this.events[e].forEach((n) => {
975
+ this.prevData[e] = r, n(r);
976
+ });
977
+ }
978
+ }
979
+ const Qr = Se({}), di = ({ children: t, headerConfigs: e, pathname: r, ...n }) => {
980
+ const [i, o] = re(!0), s = r === "/", a = z(new Dn()), u = (d) => d ? {
981
+ headerVariant: e.home_default_variant,
982
+ bannerVariant: e.home_default_variant,
983
+ position: e.home_default_position
984
+ } : {
985
+ headerVariant: e.default_variant,
986
+ bannerVariant: e.default_variant,
987
+ position: e.default_position
988
+ }, l = u(s), p = z(l);
989
+ return ne(() => {
990
+ const d = () => {
991
+ const c = typeof (window == null ? void 0 : window.navigator) > "u" ? "" : navigator == null ? void 0 : navigator.userAgent, m = window.innerWidth < 1024 || !!c.match(
992
+ /Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i
993
+ );
994
+ i !== m && o(m);
995
+ };
996
+ return d(), window.addEventListener("resize", d, { passive: !0 }), () => window.removeEventListener("resize", d);
997
+ }, [i]), ne(() => {
998
+ const d = u(s);
999
+ a.current.publish(
1000
+ "header:change_variant",
1001
+ d.headerVariant
1002
+ ), a.current.publish(
1003
+ "header:change_position",
1004
+ d.position
1005
+ ), p.current = d;
1006
+ }, [s]), /* @__PURE__ */ E(
1007
+ Qr.Provider,
1008
+ {
1009
+ value: {
1010
+ isMobile: i,
1011
+ mediatorRef: a,
1012
+ currentHeaderConfigsRef: p,
1013
+ ...n
1014
+ },
1015
+ children: /* @__PURE__ */ E(Mn, { children: t })
1016
+ }
1017
+ );
1018
+ }, fi = () => Ne(Qr), Xr = Se({}), pi = ({ children: t, ...e }) => /* @__PURE__ */ E(
1019
+ Xr.Provider,
1020
+ {
1021
+ value: {
1022
+ ...e
1023
+ },
1024
+ children: t
1025
+ }
1026
+ ), Yr = () => Ne(Xr), kn = (t, e) => e.getTime() > t.getTime() ? Math.abs(e.getTime() - t.getTime()) : 0, pe = (t, e) => Math.floor(e === "days" ? t / (1e3 * 60 * 60 * 24) : e === "hours" ? t % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60) : e === "minutes" ? t % (1e3 * 60 * 60) / (1e3 * 60) : t % (1e3 * 60) / 1e3);
1027
+ function Un(t) {
1028
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1029
+ }
1030
+ var ht = { exports: {} }, ce = {};
1031
+ ce._ = ce._interop_require_default = zn;
1032
+ function zn(t) {
1033
+ return t && t.__esModule ? t : { default: t };
1034
+ }
1035
+ var me = { exports: {} }, ke = {}, jt;
1036
+ function Jr() {
1037
+ return jt || (jt = 1, function(t) {
1038
+ Object.defineProperty(t, "__esModule", {
1039
+ value: !0
1040
+ });
1041
+ function e(s, a) {
1042
+ for (var u in a) Object.defineProperty(s, u, {
1043
+ enumerable: !0,
1044
+ get: a[u]
1045
+ });
1046
+ }
1047
+ e(t, {
1048
+ searchParamsToUrlQuery: function() {
1049
+ return r;
1050
+ },
1051
+ urlQueryToSearchParams: function() {
1052
+ return i;
1053
+ },
1054
+ assign: function() {
1055
+ return o;
1056
+ }
1057
+ });
1058
+ function r(s) {
1059
+ const a = {};
1060
+ return s.forEach((u, l) => {
1061
+ typeof a[l] > "u" ? a[l] = u : Array.isArray(a[l]) ? a[l].push(u) : a[l] = [
1062
+ a[l],
1063
+ u
1064
+ ];
1065
+ }), a;
1066
+ }
1067
+ function n(s) {
1068
+ return typeof s == "string" || typeof s == "number" && !isNaN(s) || typeof s == "boolean" ? String(s) : "";
1069
+ }
1070
+ function i(s) {
1071
+ const a = new URLSearchParams();
1072
+ return Object.entries(s).forEach((u) => {
1073
+ let [l, p] = u;
1074
+ Array.isArray(p) ? p.forEach((d) => a.append(l, n(d))) : a.set(l, n(p));
1075
+ }), a;
1076
+ }
1077
+ function o(s) {
1078
+ for (var a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
1079
+ u[l - 1] = arguments[l];
1080
+ return u.forEach((p) => {
1081
+ Array.from(p.keys()).forEach((d) => s.delete(d)), p.forEach((d, c) => s.append(c, d));
1082
+ }), s;
1083
+ }
1084
+ }(ke)), ke;
1085
+ }
1086
+ var Ue = {}, he = {}, Mt;
1087
+ function Bn() {
1088
+ if (Mt) return he;
1089
+ Mt = 1;
1090
+ function t(r) {
1091
+ if (typeof WeakMap != "function") return null;
1092
+ var n = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap();
1093
+ return (t = function(o) {
1094
+ return o ? i : n;
1095
+ })(r);
1096
+ }
1097
+ he._ = he._interop_require_wildcard = e;
1098
+ function e(r, n) {
1099
+ if (!n && r && r.__esModule) return r;
1100
+ if (r === null || typeof r != "object" && typeof r != "function") return { default: r };
1101
+ var i = t(n);
1102
+ if (i && i.has(r)) return i.get(r);
1103
+ var o = {}, s = Object.defineProperty && Object.getOwnPropertyDescriptor;
1104
+ for (var a in r)
1105
+ if (a !== "default" && Object.prototype.hasOwnProperty.call(r, a)) {
1106
+ var u = s ? Object.getOwnPropertyDescriptor(r, a) : null;
1107
+ u && (u.get || u.set) ? Object.defineProperty(o, a, u) : o[a] = r[a];
1108
+ }
1109
+ return o.default = r, i && i.set(r, o), o;
1110
+ }
1111
+ return he;
1112
+ }
1113
+ var Dt;
1114
+ function Zr() {
1115
+ return Dt || (Dt = 1, function(t) {
1116
+ Object.defineProperty(t, "__esModule", {
1117
+ value: !0
1118
+ });
1119
+ function e(u, l) {
1120
+ for (var p in l) Object.defineProperty(u, p, {
1121
+ enumerable: !0,
1122
+ get: l[p]
1123
+ });
1124
+ }
1125
+ e(t, {
1126
+ formatUrl: function() {
1127
+ return o;
1128
+ },
1129
+ urlObjectKeys: function() {
1130
+ return s;
1131
+ },
1132
+ formatWithValidation: function() {
1133
+ return a;
1134
+ }
1135
+ });
1136
+ const n = /* @__PURE__ */ Bn()._(Jr()), i = /https?|ftp|gopher|file/;
1137
+ function o(u) {
1138
+ let { auth: l, hostname: p } = u, d = u.protocol || "", c = u.pathname || "", m = u.hash || "", y = u.query || "", f = !1;
1139
+ l = l ? encodeURIComponent(l).replace(/%3A/i, ":") + "@" : "", u.host ? f = l + u.host : p && (f = l + (~p.indexOf(":") ? "[" + p + "]" : p), u.port && (f += ":" + u.port)), y && typeof y == "object" && (y = String(n.urlQueryToSearchParams(y)));
1140
+ let g = u.search || y && "?" + y || "";
1141
+ return d && !d.endsWith(":") && (d += ":"), u.slashes || (!d || i.test(d)) && f !== !1 ? (f = "//" + (f || ""), c && c[0] !== "/" && (c = "/" + c)) : f || (f = ""), m && m[0] !== "#" && (m = "#" + m), g && g[0] !== "?" && (g = "?" + g), c = c.replace(/[?#]/g, encodeURIComponent), g = g.replace("#", "%23"), "" + d + f + c + g + m;
1142
+ }
1143
+ const s = [
1144
+ "auth",
1145
+ "hash",
1146
+ "host",
1147
+ "hostname",
1148
+ "href",
1149
+ "path",
1150
+ "pathname",
1151
+ "port",
1152
+ "protocol",
1153
+ "query",
1154
+ "search",
1155
+ "slashes"
1156
+ ];
1157
+ function a(u) {
1158
+ return process.env.NODE_ENV === "development" && u !== null && typeof u == "object" && Object.keys(u).forEach((l) => {
1159
+ s.includes(l) || console.warn("Unknown key passed via urlObject into url.format: " + l);
1160
+ }), o(u);
1161
+ }
1162
+ }(Ue)), Ue;
1163
+ }
1164
+ var ze = {}, kt;
1165
+ function Vn() {
1166
+ return kt || (kt = 1, function(t) {
1167
+ Object.defineProperty(t, "__esModule", {
1168
+ value: !0
1169
+ }), Object.defineProperty(t, "omit", {
1170
+ enumerable: !0,
1171
+ get: function() {
1172
+ return e;
1173
+ }
1174
+ });
1175
+ function e(r, n) {
1176
+ const i = {};
1177
+ return Object.keys(r).forEach((o) => {
1178
+ n.includes(o) || (i[o] = r[o]);
1179
+ }), i;
1180
+ }
1181
+ }(ze)), ze;
1182
+ }
1183
+ var Be = {}, Ut;
1184
+ function Te() {
1185
+ return Ut || (Ut = 1, function(t) {
1186
+ Object.defineProperty(t, "__esModule", {
1187
+ value: !0
1188
+ });
1189
+ function e(h, P) {
1190
+ for (var v in P) Object.defineProperty(h, v, {
1191
+ enumerable: !0,
1192
+ get: P[v]
1193
+ });
1194
+ }
1195
+ e(t, {
1196
+ WEB_VITALS: function() {
1197
+ return r;
1198
+ },
1199
+ execOnce: function() {
1200
+ return n;
1201
+ },
1202
+ isAbsoluteUrl: function() {
1203
+ return o;
1204
+ },
1205
+ getLocationOrigin: function() {
1206
+ return s;
1207
+ },
1208
+ getURL: function() {
1209
+ return a;
1210
+ },
1211
+ getDisplayName: function() {
1212
+ return u;
1213
+ },
1214
+ isResSent: function() {
1215
+ return l;
1216
+ },
1217
+ normalizeRepeatedSlashes: function() {
1218
+ return p;
1219
+ },
1220
+ loadGetInitialProps: function() {
1221
+ return d;
1222
+ },
1223
+ SP: function() {
1224
+ return c;
1225
+ },
1226
+ ST: function() {
1227
+ return m;
1228
+ },
1229
+ DecodeError: function() {
1230
+ return y;
1231
+ },
1232
+ NormalizeError: function() {
1233
+ return f;
1234
+ },
1235
+ PageNotFoundError: function() {
1236
+ return g;
1237
+ },
1238
+ MissingStaticPage: function() {
1239
+ return _;
1240
+ },
1241
+ MiddlewareNotFoundError: function() {
1242
+ return w;
1243
+ },
1244
+ stringifyError: function() {
1245
+ return b;
1246
+ }
1247
+ });
1248
+ const r = [
1249
+ "CLS",
1250
+ "FCP",
1251
+ "FID",
1252
+ "INP",
1253
+ "LCP",
1254
+ "TTFB"
1255
+ ];
1256
+ function n(h) {
1257
+ let P = !1, v;
1258
+ return function() {
1259
+ for (var R = arguments.length, I = new Array(R), T = 0; T < R; T++)
1260
+ I[T] = arguments[T];
1261
+ return P || (P = !0, v = h(...I)), v;
1262
+ };
1263
+ }
1264
+ const i = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, o = (h) => i.test(h);
1265
+ function s() {
1266
+ const { protocol: h, hostname: P, port: v } = window.location;
1267
+ return h + "//" + P + (v ? ":" + v : "");
1268
+ }
1269
+ function a() {
1270
+ const { href: h } = window.location, P = s();
1271
+ return h.substring(P.length);
1272
+ }
1273
+ function u(h) {
1274
+ return typeof h == "string" ? h : h.displayName || h.name || "Unknown";
1275
+ }
1276
+ function l(h) {
1277
+ return h.finished || h.headersSent;
1278
+ }
1279
+ function p(h) {
1280
+ const P = h.split("?");
1281
+ return P[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (P[1] ? "?" + P.slice(1).join("?") : "");
1282
+ }
1283
+ async function d(h, P) {
1284
+ if (process.env.NODE_ENV !== "production") {
1285
+ var v;
1286
+ if ((v = h.prototype) != null && v.getInitialProps) {
1287
+ const T = '"' + u(h) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
1288
+ throw new Error(T);
1289
+ }
1290
+ }
1291
+ const R = P.res || P.ctx && P.ctx.res;
1292
+ if (!h.getInitialProps)
1293
+ return P.ctx && P.Component ? {
1294
+ pageProps: await d(P.Component, P.ctx)
1295
+ } : {};
1296
+ const I = await h.getInitialProps(P);
1297
+ if (R && l(R))
1298
+ return I;
1299
+ if (!I) {
1300
+ const T = '"' + u(h) + '.getInitialProps()" should resolve to an object. But found "' + I + '" instead.';
1301
+ throw new Error(T);
1302
+ }
1303
+ return process.env.NODE_ENV !== "production" && Object.keys(I).length === 0 && !P.ctx && console.warn("" + u(h) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), I;
1304
+ }
1305
+ const c = typeof performance < "u", m = c && [
1306
+ "mark",
1307
+ "measure",
1308
+ "getEntriesByName"
1309
+ ].every((h) => typeof performance[h] == "function");
1310
+ class y extends Error {
1311
+ }
1312
+ class f extends Error {
1313
+ }
1314
+ class g extends Error {
1315
+ constructor(P) {
1316
+ super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + P;
1317
+ }
1318
+ }
1319
+ class _ extends Error {
1320
+ constructor(P, v) {
1321
+ super(), this.message = "Failed to load static file for page: " + P + " " + v;
1322
+ }
1323
+ }
1324
+ class w extends Error {
1325
+ constructor() {
1326
+ super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
1327
+ }
1328
+ }
1329
+ function b(h) {
1330
+ return JSON.stringify({
1331
+ message: h.message,
1332
+ stack: h.stack
1333
+ });
1334
+ }
1335
+ }(Be)), Be;
1336
+ }
1337
+ var ge = { exports: {} }, Ve = {}, zt;
1338
+ function en() {
1339
+ return zt || (zt = 1, function(t) {
1340
+ Object.defineProperty(t, "__esModule", {
1341
+ value: !0
1342
+ }), Object.defineProperty(t, "removeTrailingSlash", {
1343
+ enumerable: !0,
1344
+ get: function() {
1345
+ return e;
1346
+ }
1347
+ });
1348
+ function e(r) {
1349
+ return r.replace(/\/$/, "") || "/";
1350
+ }
1351
+ }(Ve)), Ve;
1352
+ }
1353
+ var Fe = {}, Bt;
1354
+ function bt() {
1355
+ return Bt || (Bt = 1, function(t) {
1356
+ Object.defineProperty(t, "__esModule", {
1357
+ value: !0
1358
+ }), Object.defineProperty(t, "parsePath", {
1359
+ enumerable: !0,
1360
+ get: function() {
1361
+ return e;
1362
+ }
1363
+ });
1364
+ function e(r) {
1365
+ const n = r.indexOf("#"), i = r.indexOf("?"), o = i > -1 && (n < 0 || i < n);
1366
+ return o || n > -1 ? {
1367
+ pathname: r.substring(0, o ? i : n),
1368
+ query: o ? r.substring(i, n > -1 ? n : void 0) : "",
1369
+ hash: n > -1 ? r.slice(n) : ""
1370
+ } : {
1371
+ pathname: r,
1372
+ query: "",
1373
+ hash: ""
1374
+ };
1375
+ }
1376
+ }(Fe)), Fe;
1377
+ }
1378
+ var Vt;
1379
+ function Ce() {
1380
+ return Vt || (Vt = 1, function(t, e) {
1381
+ Object.defineProperty(e, "__esModule", {
1382
+ value: !0
1383
+ }), Object.defineProperty(e, "normalizePathTrailingSlash", {
1384
+ enumerable: !0,
1385
+ get: function() {
1386
+ return i;
1387
+ }
1388
+ });
1389
+ const r = en(), n = bt(), i = (o) => {
1390
+ if (!o.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
1391
+ return o;
1392
+ const { pathname: s, query: a, hash: u } = (0, n.parsePath)(o);
1393
+ return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(s) ? "" + (0, r.removeTrailingSlash)(s) + a + u : s.endsWith("/") ? "" + s + a + u : s + "/" + a + u : "" + (0, r.removeTrailingSlash)(s) + a + u;
1394
+ };
1395
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
1396
+ }(ge, ge.exports)), ge.exports;
1397
+ }
1398
+ var We = {}, ye = { exports: {} }, He = {}, Ft;
1399
+ function tn() {
1400
+ return Ft || (Ft = 1, function(t) {
1401
+ Object.defineProperty(t, "__esModule", {
1402
+ value: !0
1403
+ }), Object.defineProperty(t, "pathHasPrefix", {
1404
+ enumerable: !0,
1405
+ get: function() {
1406
+ return r;
1407
+ }
1408
+ });
1409
+ const e = bt();
1410
+ function r(n, i) {
1411
+ if (typeof n != "string")
1412
+ return !1;
1413
+ const { pathname: o } = (0, e.parsePath)(n);
1414
+ return o === i || o.startsWith(i + "/");
1415
+ }
1416
+ }(He)), He;
1417
+ }
1418
+ var Wt;
1419
+ function Fn() {
1420
+ return Wt || (Wt = 1, function(t, e) {
1421
+ Object.defineProperty(e, "__esModule", {
1422
+ value: !0
1423
+ }), Object.defineProperty(e, "hasBasePath", {
1424
+ enumerable: !0,
1425
+ get: function() {
1426
+ return i;
1427
+ }
1428
+ });
1429
+ const r = tn(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
1430
+ function i(o) {
1431
+ return (0, r.pathHasPrefix)(o, n);
1432
+ }
1433
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
1434
+ }(ye, ye.exports)), ye.exports;
1435
+ }
1436
+ var Ht;
1437
+ function rn() {
1438
+ return Ht || (Ht = 1, function(t) {
1439
+ Object.defineProperty(t, "__esModule", {
1440
+ value: !0
1441
+ }), Object.defineProperty(t, "isLocalURL", {
1442
+ enumerable: !0,
1443
+ get: function() {
1444
+ return n;
1445
+ }
1446
+ });
1447
+ const e = Te(), r = Fn();
1448
+ function n(i) {
1449
+ if (!(0, e.isAbsoluteUrl)(i)) return !0;
1450
+ try {
1451
+ const o = (0, e.getLocationOrigin)(), s = new URL(i, o);
1452
+ return s.origin === o && (0, r.hasBasePath)(s.pathname);
1453
+ } catch {
1454
+ return !1;
1455
+ }
1456
+ }
1457
+ }(We)), We;
1458
+ }
1459
+ var $e = {}, Ge = {}, $t;
1460
+ function Wn() {
1461
+ return $t || ($t = 1, function(t) {
1462
+ Object.defineProperty(t, "__esModule", {
1463
+ value: !0
1464
+ }), Object.defineProperty(t, "getSortedRoutes", {
1465
+ enumerable: !0,
1466
+ get: function() {
1467
+ return r;
1468
+ }
1469
+ });
1470
+ class e {
1471
+ insert(i) {
1472
+ this._insert(i.split("/").filter(Boolean), [], !1);
1473
+ }
1474
+ smoosh() {
1475
+ return this._smoosh();
1476
+ }
1477
+ _smoosh(i) {
1478
+ i === void 0 && (i = "/");
1479
+ const o = [
1480
+ ...this.children.keys()
1481
+ ].sort();
1482
+ this.slugName !== null && o.splice(o.indexOf("[]"), 1), this.restSlugName !== null && o.splice(o.indexOf("[...]"), 1), this.optionalRestSlugName !== null && o.splice(o.indexOf("[[...]]"), 1);
1483
+ const s = o.map((a) => this.children.get(a)._smoosh("" + i + a + "/")).reduce((a, u) => [
1484
+ ...a,
1485
+ ...u
1486
+ ], []);
1487
+ if (this.slugName !== null && s.push(...this.children.get("[]")._smoosh(i + "[" + this.slugName + "]/")), !this.placeholder) {
1488
+ const a = i === "/" ? "/" : i.slice(0, -1);
1489
+ if (this.optionalRestSlugName != null)
1490
+ throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + a + '" and "' + a + "[[..." + this.optionalRestSlugName + ']]").');
1491
+ s.unshift(a);
1492
+ }
1493
+ return this.restSlugName !== null && s.push(...this.children.get("[...]")._smoosh(i + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && s.push(...this.children.get("[[...]]")._smoosh(i + "[[..." + this.optionalRestSlugName + "]]/")), s;
1494
+ }
1495
+ _insert(i, o, s) {
1496
+ if (i.length === 0) {
1497
+ this.placeholder = !1;
1498
+ return;
1499
+ }
1500
+ if (s)
1501
+ throw new Error("Catch-all must be the last part of the URL.");
1502
+ let a = i[0];
1503
+ if (a.startsWith("[") && a.endsWith("]")) {
1504
+ let p = function(d, c) {
1505
+ if (d !== null && d !== c)
1506
+ throw new Error("You cannot use different slug names for the same dynamic path ('" + d + "' !== '" + c + "').");
1507
+ o.forEach((m) => {
1508
+ if (m === c)
1509
+ throw new Error('You cannot have the same slug name "' + c + '" repeat within a single dynamic path');
1510
+ if (m.replace(/\W/g, "") === a.replace(/\W/g, ""))
1511
+ throw new Error('You cannot have the slug names "' + m + '" and "' + c + '" differ only by non-word symbols within a single dynamic path');
1512
+ }), o.push(c);
1513
+ }, u = a.slice(1, -1), l = !1;
1514
+ if (u.startsWith("[") && u.endsWith("]") && (u = u.slice(1, -1), l = !0), u.startsWith("...") && (u = u.substring(3), s = !0), u.startsWith("[") || u.endsWith("]"))
1515
+ throw new Error("Segment names may not start or end with extra brackets ('" + u + "').");
1516
+ if (u.startsWith("."))
1517
+ throw new Error("Segment names may not start with erroneous periods ('" + u + "').");
1518
+ if (s)
1519
+ if (l) {
1520
+ if (this.restSlugName != null)
1521
+ throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + i[0] + '" ).');
1522
+ p(this.optionalRestSlugName, u), this.optionalRestSlugName = u, a = "[[...]]";
1523
+ } else {
1524
+ if (this.optionalRestSlugName != null)
1525
+ throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + i[0] + '").');
1526
+ p(this.restSlugName, u), this.restSlugName = u, a = "[...]";
1527
+ }
1528
+ else {
1529
+ if (l)
1530
+ throw new Error('Optional route parameters are not yet supported ("' + i[0] + '").');
1531
+ p(this.slugName, u), this.slugName = u, a = "[]";
1532
+ }
1533
+ }
1534
+ this.children.has(a) || this.children.set(a, new e()), this.children.get(a)._insert(i.slice(1), o, s);
1535
+ }
1536
+ constructor() {
1537
+ this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
1538
+ }
1539
+ }
1540
+ function r(n) {
1541
+ const i = new e();
1542
+ return n.forEach((o) => i.insert(o)), i.smoosh();
1543
+ }
1544
+ }(Ge)), Ge;
1545
+ }
1546
+ var Ke = {}, Gt;
1547
+ function Hn() {
1548
+ return Gt || (Gt = 1, function(t) {
1549
+ Object.defineProperty(t, "__esModule", {
1550
+ value: !0
1551
+ }), Object.defineProperty(t, "isDynamicRoute", {
1552
+ enumerable: !0,
1553
+ get: function() {
1554
+ return r;
1555
+ }
1556
+ });
1557
+ const e = /\/\[[^/]+?\](?=\/|$)/;
1558
+ function r(n) {
1559
+ return e.test(n);
1560
+ }
1561
+ }(Ke)), Ke;
1562
+ }
1563
+ var Kt;
1564
+ function $n() {
1565
+ return Kt || (Kt = 1, function(t) {
1566
+ Object.defineProperty(t, "__esModule", {
1567
+ value: !0
1568
+ });
1569
+ function e(i, o) {
1570
+ for (var s in o) Object.defineProperty(i, s, {
1571
+ enumerable: !0,
1572
+ get: o[s]
1573
+ });
1574
+ }
1575
+ e(t, {
1576
+ getSortedRoutes: function() {
1577
+ return r.getSortedRoutes;
1578
+ },
1579
+ isDynamicRoute: function() {
1580
+ return n.isDynamicRoute;
1581
+ }
1582
+ });
1583
+ const r = Wn(), n = Hn();
1584
+ }($e)), $e;
1585
+ }
1586
+ var Qe = {}, Xe = {}, Qt;
1587
+ function Gn() {
1588
+ return Qt || (Qt = 1, function(t) {
1589
+ Object.defineProperty(t, "__esModule", {
1590
+ value: !0
1591
+ }), Object.defineProperty(t, "getRouteMatcher", {
1592
+ enumerable: !0,
1593
+ get: function() {
1594
+ return r;
1595
+ }
1596
+ });
1597
+ const e = Te();
1598
+ function r(n) {
1599
+ let { re: i, groups: o } = n;
1600
+ return (s) => {
1601
+ const a = i.exec(s);
1602
+ if (!a)
1603
+ return !1;
1604
+ const u = (p) => {
1605
+ try {
1606
+ return decodeURIComponent(p);
1607
+ } catch {
1608
+ throw new e.DecodeError("failed to decode param");
1609
+ }
1610
+ }, l = {};
1611
+ return Object.keys(o).forEach((p) => {
1612
+ const d = o[p], c = a[d.pos];
1613
+ c !== void 0 && (l[p] = ~c.indexOf("/") ? c.split("/").map((m) => u(m)) : d.repeat ? [
1614
+ u(c)
1615
+ ] : u(c));
1616
+ }), l;
1617
+ };
1618
+ }
1619
+ }(Xe)), Xe;
1620
+ }
1621
+ var Ye = {}, Je = {}, Ze = {}, et = {}, Xt;
1622
+ function Kn() {
1623
+ return Xt || (Xt = 1, function(t) {
1624
+ Object.defineProperty(t, "__esModule", {
1625
+ value: !0
1626
+ }), Object.defineProperty(t, "ensureLeadingSlash", {
1627
+ enumerable: !0,
1628
+ get: function() {
1629
+ return e;
1630
+ }
1631
+ });
1632
+ function e(r) {
1633
+ return r.startsWith("/") ? r : "/" + r;
1634
+ }
1635
+ }(et)), et;
1636
+ }
1637
+ var tt = {}, Yt;
1638
+ function Qn() {
1639
+ return Yt || (Yt = 1, function(t) {
1640
+ Object.defineProperty(t, "__esModule", {
1641
+ value: !0
1642
+ }), Object.defineProperty(t, "isGroupSegment", {
1643
+ enumerable: !0,
1644
+ get: function() {
1645
+ return e;
1646
+ }
1647
+ });
1648
+ function e(r) {
1649
+ return r[0] === "(" && r.endsWith(")");
1650
+ }
1651
+ }(tt)), tt;
1652
+ }
1653
+ var Jt;
1654
+ function Xn() {
1655
+ return Jt || (Jt = 1, function(t) {
1656
+ Object.defineProperty(t, "__esModule", {
1657
+ value: !0
1658
+ });
1659
+ function e(s, a) {
1660
+ for (var u in a) Object.defineProperty(s, u, {
1661
+ enumerable: !0,
1662
+ get: a[u]
1663
+ });
1664
+ }
1665
+ e(t, {
1666
+ normalizeAppPath: function() {
1667
+ return i;
1668
+ },
1669
+ normalizeRscPath: function() {
1670
+ return o;
1671
+ }
1672
+ });
1673
+ const r = Kn(), n = Qn();
1674
+ function i(s) {
1675
+ return (0, r.ensureLeadingSlash)(s.split("/").reduce((a, u, l, p) => !u || (0, n.isGroupSegment)(u) || u[0] === "@" || (u === "page" || u === "route") && l === p.length - 1 ? a : a + "/" + u, ""));
1676
+ }
1677
+ function o(s, a) {
1678
+ return a ? s.replace(
1679
+ /\.rsc($|\?)/,
1680
+ // $1 ensures `?` is preserved
1681
+ "$1"
1682
+ ) : s;
1683
+ }
1684
+ }(Ze)), Ze;
1685
+ }
1686
+ var Zt;
1687
+ function Yn() {
1688
+ return Zt || (Zt = 1, function(t) {
1689
+ Object.defineProperty(t, "__esModule", {
1690
+ value: !0
1691
+ });
1692
+ function e(s, a) {
1693
+ for (var u in a) Object.defineProperty(s, u, {
1694
+ enumerable: !0,
1695
+ get: a[u]
1696
+ });
1697
+ }
1698
+ e(t, {
1699
+ INTERCEPTION_ROUTE_MARKERS: function() {
1700
+ return n;
1701
+ },
1702
+ isInterceptionRouteAppPath: function() {
1703
+ return i;
1704
+ },
1705
+ extractInterceptionRouteInformation: function() {
1706
+ return o;
1707
+ }
1708
+ });
1709
+ const r = Xn(), n = [
1710
+ "(..)(..)",
1711
+ "(.)",
1712
+ "(..)",
1713
+ "(...)"
1714
+ ];
1715
+ function i(s) {
1716
+ return s.split("/").find((a) => n.find((u) => a.startsWith(u))) !== void 0;
1717
+ }
1718
+ function o(s) {
1719
+ let a, u, l;
1720
+ for (const p of s.split("/"))
1721
+ if (u = n.find((d) => p.startsWith(d)), u) {
1722
+ [a, l] = s.split(u, 2);
1723
+ break;
1724
+ }
1725
+ if (!a || !u || !l)
1726
+ throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);
1727
+ switch (a = (0, r.normalizeAppPath)(a), u) {
1728
+ case "(.)":
1729
+ a === "/" ? l = `/${l}` : l = a + "/" + l;
1730
+ break;
1731
+ case "(..)":
1732
+ if (a === "/")
1733
+ throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);
1734
+ l = a.split("/").slice(0, -1).concat(l).join("/");
1735
+ break;
1736
+ case "(...)":
1737
+ l = "/" + l;
1738
+ break;
1739
+ case "(..)(..)":
1740
+ const p = a.split("/");
1741
+ if (p.length <= 2)
1742
+ throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);
1743
+ l = p.slice(0, -2).concat(l).join("/");
1744
+ break;
1745
+ default:
1746
+ throw new Error("Invariant: unexpected marker");
1747
+ }
1748
+ return {
1749
+ interceptingRoute: a,
1750
+ interceptedRoute: l
1751
+ };
1752
+ }
1753
+ }(Je)), Je;
1754
+ }
1755
+ var rt = {}, er;
1756
+ function Jn() {
1757
+ return er || (er = 1, function(t) {
1758
+ Object.defineProperty(t, "__esModule", {
1759
+ value: !0
1760
+ }), Object.defineProperty(t, "escapeStringRegexp", {
1761
+ enumerable: !0,
1762
+ get: function() {
1763
+ return n;
1764
+ }
1765
+ });
1766
+ const e = /[|\\{}()[\]^$+*?.-]/, r = /[|\\{}()[\]^$+*?.-]/g;
1767
+ function n(i) {
1768
+ return e.test(i) ? i.replace(r, "\\$&") : i;
1769
+ }
1770
+ }(rt)), rt;
1771
+ }
1772
+ var tr;
1773
+ function Zn() {
1774
+ return tr || (tr = 1, function(t) {
1775
+ Object.defineProperty(t, "__esModule", {
1776
+ value: !0
1777
+ });
1778
+ function e(f, g) {
1779
+ for (var _ in g) Object.defineProperty(f, _, {
1780
+ enumerable: !0,
1781
+ get: g[_]
1782
+ });
1783
+ }
1784
+ e(t, {
1785
+ getRouteRegex: function() {
1786
+ return l;
1787
+ },
1788
+ getNamedRouteRegex: function() {
1789
+ return m;
1790
+ },
1791
+ getNamedMiddlewareRegex: function() {
1792
+ return y;
1793
+ }
1794
+ });
1795
+ const r = Yn(), n = Jn(), i = en(), o = "nxtP", s = "nxtI";
1796
+ function a(f) {
1797
+ const g = f.startsWith("[") && f.endsWith("]");
1798
+ g && (f = f.slice(1, -1));
1799
+ const _ = f.startsWith("...");
1800
+ return _ && (f = f.slice(3)), {
1801
+ key: f,
1802
+ repeat: _,
1803
+ optional: g
1804
+ };
1805
+ }
1806
+ function u(f) {
1807
+ const g = (0, i.removeTrailingSlash)(f).slice(1).split("/"), _ = {};
1808
+ let w = 1;
1809
+ return {
1810
+ parameterizedRoute: g.map((b) => {
1811
+ const h = r.INTERCEPTION_ROUTE_MARKERS.find((v) => b.startsWith(v)), P = b.match(/\[((?:\[.*\])|.+)\]/);
1812
+ if (h && P) {
1813
+ const { key: v, optional: R, repeat: I } = a(P[1]);
1814
+ return _[v] = {
1815
+ pos: w++,
1816
+ repeat: I,
1817
+ optional: R
1818
+ }, "/" + (0, n.escapeStringRegexp)(h) + "([^/]+?)";
1819
+ } else if (P) {
1820
+ const { key: v, repeat: R, optional: I } = a(P[1]);
1821
+ return _[v] = {
1822
+ pos: w++,
1823
+ repeat: R,
1824
+ optional: I
1825
+ }, R ? I ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
1826
+ } else
1827
+ return "/" + (0, n.escapeStringRegexp)(b);
1828
+ }).join(""),
1829
+ groups: _
1830
+ };
1831
+ }
1832
+ function l(f) {
1833
+ const { parameterizedRoute: g, groups: _ } = u(f);
1834
+ return {
1835
+ re: new RegExp("^" + g + "(?:/)?$"),
1836
+ groups: _
1837
+ };
1838
+ }
1839
+ function p() {
1840
+ let f = 0;
1841
+ return () => {
1842
+ let g = "", _ = ++f;
1843
+ for (; _ > 0; )
1844
+ g += String.fromCharCode(97 + (_ - 1) % 26), _ = Math.floor((_ - 1) / 26);
1845
+ return g;
1846
+ };
1847
+ }
1848
+ function d(f) {
1849
+ let { getSafeRouteKey: g, segment: _, routeKeys: w, keyPrefix: b } = f;
1850
+ const { key: h, optional: P, repeat: v } = a(_);
1851
+ let R = h.replace(/\W/g, "");
1852
+ b && (R = "" + b + R);
1853
+ let I = !1;
1854
+ return (R.length === 0 || R.length > 30) && (I = !0), isNaN(parseInt(R.slice(0, 1))) || (I = !0), I && (R = g()), b ? w[R] = "" + b + h : w[R] = "" + h, v ? P ? "(?:/(?<" + R + ">.+?))?" : "/(?<" + R + ">.+?)" : "/(?<" + R + ">[^/]+?)";
1855
+ }
1856
+ function c(f, g) {
1857
+ const _ = (0, i.removeTrailingSlash)(f).slice(1).split("/"), w = p(), b = {};
1858
+ return {
1859
+ namedParameterizedRoute: _.map((h) => {
1860
+ const P = r.INTERCEPTION_ROUTE_MARKERS.some((R) => h.startsWith(R)), v = h.match(/\[((?:\[.*\])|.+)\]/);
1861
+ return P && v ? d({
1862
+ getSafeRouteKey: w,
1863
+ segment: v[1],
1864
+ routeKeys: b,
1865
+ keyPrefix: g ? s : void 0
1866
+ }) : v ? d({
1867
+ getSafeRouteKey: w,
1868
+ segment: v[1],
1869
+ routeKeys: b,
1870
+ keyPrefix: g ? o : void 0
1871
+ }) : "/" + (0, n.escapeStringRegexp)(h);
1872
+ }).join(""),
1873
+ routeKeys: b
1874
+ };
1875
+ }
1876
+ function m(f, g) {
1877
+ const _ = c(f, g);
1878
+ return {
1879
+ ...l(f),
1880
+ namedRegex: "^" + _.namedParameterizedRoute + "(?:/)?$",
1881
+ routeKeys: _.routeKeys
1882
+ };
1883
+ }
1884
+ function y(f, g) {
1885
+ const { parameterizedRoute: _ } = u(f), { catchAll: w = !0 } = g;
1886
+ if (_ === "/")
1887
+ return {
1888
+ namedRegex: "^/" + (w ? ".*" : "") + "$"
1889
+ };
1890
+ const { namedParameterizedRoute: b } = c(f, !1);
1891
+ let h = w ? "(?:(/.*)?)" : "";
1892
+ return {
1893
+ namedRegex: "^" + b + h + "$"
1894
+ };
1895
+ }
1896
+ }(Ye)), Ye;
1897
+ }
1898
+ var rr;
1899
+ function eo() {
1900
+ return rr || (rr = 1, function(t) {
1901
+ Object.defineProperty(t, "__esModule", {
1902
+ value: !0
1903
+ }), Object.defineProperty(t, "interpolateAs", {
1904
+ enumerable: !0,
1905
+ get: function() {
1906
+ return n;
1907
+ }
1908
+ });
1909
+ const e = Gn(), r = Zn();
1910
+ function n(i, o, s) {
1911
+ let a = "";
1912
+ const u = (0, r.getRouteRegex)(i), l = u.groups, p = (
1913
+ // Try to match the dynamic route against the asPath
1914
+ (o !== i ? (0, e.getRouteMatcher)(u)(o) : "") || // Fall back to reading the values from the href
1915
+ // TODO: should this take priority; also need to change in the router.
1916
+ s
1917
+ );
1918
+ a = i;
1919
+ const d = Object.keys(l);
1920
+ return d.every((c) => {
1921
+ let m = p[c] || "";
1922
+ const { repeat: y, optional: f } = l[c];
1923
+ let g = "[" + (y ? "..." : "") + c + "]";
1924
+ return f && (g = (m ? "" : "/") + "[" + g + "]"), y && !Array.isArray(m) && (m = [
1925
+ m
1926
+ ]), (f || c in p) && // Interpolate group into data URL if present
1927
+ (a = a.replace(g, y ? m.map(
1928
+ // these values should be fully encoded instead of just
1929
+ // path delimiter escaped since they are being inserted
1930
+ // into the URL and we expect URL encoded segments
1931
+ // when parsing dynamic route params
1932
+ (_) => encodeURIComponent(_)
1933
+ ).join("/") : encodeURIComponent(m)) || "/");
1934
+ }) || (a = ""), {
1935
+ params: d,
1936
+ result: a
1937
+ };
1938
+ }
1939
+ }(Qe)), Qe;
1940
+ }
1941
+ var nr;
1942
+ function to() {
1943
+ return nr || (nr = 1, function(t, e) {
1944
+ Object.defineProperty(e, "__esModule", {
1945
+ value: !0
1946
+ }), Object.defineProperty(e, "resolveHref", {
1947
+ enumerable: !0,
1948
+ get: function() {
1949
+ return p;
1950
+ }
1951
+ });
1952
+ const r = Jr(), n = Zr(), i = Vn(), o = Te(), s = Ce(), a = rn(), u = $n(), l = eo();
1953
+ function p(d, c, m) {
1954
+ let y, f = typeof c == "string" ? c : (0, n.formatWithValidation)(c);
1955
+ const g = f.match(/^[a-zA-Z]{1,}:\/\//), _ = g ? f.slice(g[0].length) : f;
1956
+ if ((_.split("?")[0] || "").match(/(\/\/|\\)/)) {
1957
+ console.error("Invalid href '" + f + "' passed to next/router in page: '" + d.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
1958
+ const b = (0, o.normalizeRepeatedSlashes)(_);
1959
+ f = (g ? g[0] : "") + b;
1960
+ }
1961
+ if (!(0, a.isLocalURL)(f))
1962
+ return m ? [
1963
+ f
1964
+ ] : f;
1965
+ try {
1966
+ y = new URL(f.startsWith("#") ? d.asPath : d.pathname, "http://n");
1967
+ } catch {
1968
+ y = new URL("/", "http://n");
1969
+ }
1970
+ try {
1971
+ const b = new URL(f, y);
1972
+ b.pathname = (0, s.normalizePathTrailingSlash)(b.pathname);
1973
+ let h = "";
1974
+ if ((0, u.isDynamicRoute)(b.pathname) && b.searchParams && m) {
1975
+ const v = (0, r.searchParamsToUrlQuery)(b.searchParams), { result: R, params: I } = (0, l.interpolateAs)(b.pathname, b.pathname, v);
1976
+ R && (h = (0, n.formatWithValidation)({
1977
+ pathname: R,
1978
+ hash: b.hash,
1979
+ query: (0, i.omit)(v, I)
1980
+ }));
1981
+ }
1982
+ const P = b.origin === y.origin ? b.href.slice(b.origin.length) : b.href;
1983
+ return m ? [
1984
+ P,
1985
+ h || P
1986
+ ] : P;
1987
+ } catch {
1988
+ return m ? [
1989
+ f
1990
+ ] : f;
1991
+ }
1992
+ }
1993
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
1994
+ }(me, me.exports)), me.exports;
1995
+ }
1996
+ var _e = { exports: {} }, nt = {}, ot = {}, or;
1997
+ function nn() {
1998
+ return or || (or = 1, function(t) {
1999
+ Object.defineProperty(t, "__esModule", {
2000
+ value: !0
2001
+ }), Object.defineProperty(t, "addPathPrefix", {
2002
+ enumerable: !0,
2003
+ get: function() {
2004
+ return r;
2005
+ }
2006
+ });
2007
+ const e = bt();
2008
+ function r(n, i) {
2009
+ if (!n.startsWith("/") || !i)
2010
+ return n;
2011
+ const { pathname: o, query: s, hash: a } = (0, e.parsePath)(n);
2012
+ return "" + i + o + s + a;
2013
+ }
2014
+ }(ot)), ot;
2015
+ }
2016
+ var ir;
2017
+ function ro() {
2018
+ return ir || (ir = 1, function(t) {
2019
+ Object.defineProperty(t, "__esModule", {
2020
+ value: !0
2021
+ }), Object.defineProperty(t, "addLocale", {
2022
+ enumerable: !0,
2023
+ get: function() {
2024
+ return n;
2025
+ }
2026
+ });
2027
+ const e = nn(), r = tn();
2028
+ function n(i, o, s, a) {
2029
+ if (!o || o === s) return i;
2030
+ const u = i.toLowerCase();
2031
+ return !a && ((0, r.pathHasPrefix)(u, "/api") || (0, r.pathHasPrefix)(u, "/" + o.toLowerCase())) ? i : (0, e.addPathPrefix)(i, "/" + o);
2032
+ }
2033
+ }(nt)), nt;
2034
+ }
2035
+ var ar;
2036
+ function no() {
2037
+ return ar || (ar = 1, function(t, e) {
2038
+ Object.defineProperty(e, "__esModule", {
2039
+ value: !0
2040
+ }), Object.defineProperty(e, "addLocale", {
2041
+ enumerable: !0,
2042
+ get: function() {
2043
+ return n;
2044
+ }
2045
+ });
2046
+ const r = Ce(), n = function(i) {
2047
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++)
2048
+ s[a - 1] = arguments[a];
2049
+ return process.env.__NEXT_I18N_SUPPORT ? (0, r.normalizePathTrailingSlash)(ro().addLocale(i, ...s)) : i;
2050
+ };
2051
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2052
+ }(_e, _e.exports)), _e.exports;
2053
+ }
2054
+ var it = {}, sr;
2055
+ function oo() {
2056
+ return sr || (sr = 1, function(t) {
2057
+ Object.defineProperty(t, "__esModule", {
2058
+ value: !0
2059
+ }), Object.defineProperty(t, "RouterContext", {
2060
+ enumerable: !0,
2061
+ get: function() {
2062
+ return n;
2063
+ }
2064
+ });
2065
+ const n = (/* @__PURE__ */ ce._(Ie)).default.createContext(null);
2066
+ process.env.NODE_ENV !== "production" && (n.displayName = "RouterContext");
2067
+ }(it)), it;
2068
+ }
2069
+ var at = {}, ur;
2070
+ function io() {
2071
+ return ur || (ur = 1, function(t) {
2072
+ "use client";
2073
+ Object.defineProperty(t, "__esModule", {
2074
+ value: !0
2075
+ });
2076
+ function e(l, p) {
2077
+ for (var d in p) Object.defineProperty(l, d, {
2078
+ enumerable: !0,
2079
+ get: p[d]
2080
+ });
2081
+ }
2082
+ e(t, {
2083
+ CacheStates: function() {
2084
+ return i;
2085
+ },
2086
+ AppRouterContext: function() {
2087
+ return o;
2088
+ },
2089
+ LayoutRouterContext: function() {
2090
+ return s;
2091
+ },
2092
+ GlobalLayoutRouterContext: function() {
2093
+ return a;
2094
+ },
2095
+ TemplateContext: function() {
2096
+ return u;
2097
+ }
2098
+ });
2099
+ const n = /* @__PURE__ */ ce._(Ie);
2100
+ var i;
2101
+ (function(l) {
2102
+ l.LAZY_INITIALIZED = "LAZYINITIALIZED", l.DATA_FETCH = "DATAFETCH", l.READY = "READY";
2103
+ })(i || (i = {}));
2104
+ const o = n.default.createContext(null), s = n.default.createContext(null), a = n.default.createContext(null), u = n.default.createContext(null);
2105
+ process.env.NODE_ENV !== "production" && (o.displayName = "AppRouterContext", s.displayName = "LayoutRouterContext", a.displayName = "GlobalLayoutRouterContext", u.displayName = "TemplateContext");
2106
+ }(at)), at;
2107
+ }
2108
+ var ve = { exports: {} }, be = { exports: {} }, cr;
2109
+ function ao() {
2110
+ return cr || (cr = 1, function(t, e) {
2111
+ Object.defineProperty(e, "__esModule", {
2112
+ value: !0
2113
+ });
2114
+ function r(o, s) {
2115
+ for (var a in s) Object.defineProperty(o, a, {
2116
+ enumerable: !0,
2117
+ get: s[a]
2118
+ });
2119
+ }
2120
+ r(e, {
2121
+ requestIdleCallback: function() {
2122
+ return n;
2123
+ },
2124
+ cancelIdleCallback: function() {
2125
+ return i;
2126
+ }
2127
+ });
2128
+ const n = typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(o) {
2129
+ let s = Date.now();
2130
+ return self.setTimeout(function() {
2131
+ o({
2132
+ didTimeout: !1,
2133
+ timeRemaining: function() {
2134
+ return Math.max(0, 50 - (Date.now() - s));
2135
+ }
2136
+ });
2137
+ }, 1);
2138
+ }, i = typeof self < "u" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(o) {
2139
+ return clearTimeout(o);
2140
+ };
2141
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2142
+ }(be, be.exports)), be.exports;
2143
+ }
2144
+ var lr;
2145
+ function so() {
2146
+ return lr || (lr = 1, function(t, e) {
2147
+ Object.defineProperty(e, "__esModule", {
2148
+ value: !0
2149
+ }), Object.defineProperty(e, "useIntersection", {
2150
+ enumerable: !0,
2151
+ get: function() {
2152
+ return l;
2153
+ }
2154
+ });
2155
+ const r = Ie, n = ao(), i = typeof IntersectionObserver == "function", o = /* @__PURE__ */ new Map(), s = [];
2156
+ function a(p) {
2157
+ const d = {
2158
+ root: p.root || null,
2159
+ margin: p.rootMargin || ""
2160
+ }, c = s.find((g) => g.root === d.root && g.margin === d.margin);
2161
+ let m;
2162
+ if (c && (m = o.get(c), m))
2163
+ return m;
2164
+ const y = /* @__PURE__ */ new Map(), f = new IntersectionObserver((g) => {
2165
+ g.forEach((_) => {
2166
+ const w = y.get(_.target), b = _.isIntersecting || _.intersectionRatio > 0;
2167
+ w && b && w(b);
2168
+ });
2169
+ }, p);
2170
+ return m = {
2171
+ id: d,
2172
+ observer: f,
2173
+ elements: y
2174
+ }, s.push(d), o.set(d, m), m;
2175
+ }
2176
+ function u(p, d, c) {
2177
+ const { id: m, observer: y, elements: f } = a(c);
2178
+ return f.set(p, d), y.observe(p), function() {
2179
+ if (f.delete(p), y.unobserve(p), f.size === 0) {
2180
+ y.disconnect(), o.delete(m);
2181
+ const _ = s.findIndex((w) => w.root === m.root && w.margin === m.margin);
2182
+ _ > -1 && s.splice(_, 1);
2183
+ }
2184
+ };
2185
+ }
2186
+ function l(p) {
2187
+ let { rootRef: d, rootMargin: c, disabled: m } = p;
2188
+ const y = m || !i, [f, g] = (0, r.useState)(!1), _ = (0, r.useRef)(null), w = (0, r.useCallback)((h) => {
2189
+ _.current = h;
2190
+ }, []);
2191
+ (0, r.useEffect)(() => {
2192
+ if (i) {
2193
+ if (y || f) return;
2194
+ const h = _.current;
2195
+ if (h && h.tagName)
2196
+ return u(h, (v) => v && g(v), {
2197
+ root: d == null ? void 0 : d.current,
2198
+ rootMargin: c
2199
+ });
2200
+ } else if (!f) {
2201
+ const h = (0, n.requestIdleCallback)(() => g(!0));
2202
+ return () => (0, n.cancelIdleCallback)(h);
2203
+ }
2204
+ }, [
2205
+ y,
2206
+ c,
2207
+ d,
2208
+ f,
2209
+ _.current
2210
+ ]);
2211
+ const b = (0, r.useCallback)(() => {
2212
+ g(!1);
2213
+ }, []);
2214
+ return [
2215
+ w,
2216
+ f,
2217
+ b
2218
+ ];
2219
+ }
2220
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2221
+ }(ve, ve.exports)), ve.exports;
2222
+ }
2223
+ var Pe = { exports: {} }, Re = { exports: {} }, st = {}, dr;
2224
+ function uo() {
2225
+ return dr || (dr = 1, function(t) {
2226
+ Object.defineProperty(t, "__esModule", {
2227
+ value: !0
2228
+ }), Object.defineProperty(t, "normalizeLocalePath", {
2229
+ enumerable: !0,
2230
+ get: function() {
2231
+ return e;
2232
+ }
2233
+ });
2234
+ function e(r, n) {
2235
+ let i;
2236
+ const o = r.split("/");
2237
+ return (n || []).some((s) => o[1] && o[1].toLowerCase() === s.toLowerCase() ? (i = s, o.splice(1, 1), r = o.join("/") || "/", !0) : !1), {
2238
+ pathname: r,
2239
+ detectedLocale: i
2240
+ };
2241
+ }
2242
+ }(st)), st;
2243
+ }
2244
+ var fr;
2245
+ function co() {
2246
+ return fr || (fr = 1, function(t, e) {
2247
+ Object.defineProperty(e, "__esModule", {
2248
+ value: !0
2249
+ }), Object.defineProperty(e, "normalizeLocalePath", {
2250
+ enumerable: !0,
2251
+ get: function() {
2252
+ return r;
2253
+ }
2254
+ });
2255
+ const r = (n, i) => process.env.__NEXT_I18N_SUPPORT ? uo().normalizeLocalePath(n, i) : {
2256
+ pathname: n,
2257
+ detectedLocale: void 0
2258
+ };
2259
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2260
+ }(Re, Re.exports)), Re.exports;
2261
+ }
2262
+ var Ee = { exports: {} }, ut = {}, pr;
2263
+ function lo() {
2264
+ return pr || (pr = 1, function(t) {
2265
+ Object.defineProperty(t, "__esModule", {
2266
+ value: !0
2267
+ }), Object.defineProperty(t, "detectDomainLocale", {
2268
+ enumerable: !0,
2269
+ get: function() {
2270
+ return e;
2271
+ }
2272
+ });
2273
+ function e(r, n, i) {
2274
+ if (r) {
2275
+ i && (i = i.toLowerCase());
2276
+ for (const a of r) {
2277
+ var o, s;
2278
+ const u = (o = a.domain) == null ? void 0 : o.split(":")[0].toLowerCase();
2279
+ if (n === u || i === a.defaultLocale.toLowerCase() || (s = a.locales) != null && s.some((l) => l.toLowerCase() === i))
2280
+ return a;
2281
+ }
2282
+ }
2283
+ }
2284
+ }(ut)), ut;
2285
+ }
2286
+ var mr;
2287
+ function fo() {
2288
+ return mr || (mr = 1, function(t, e) {
2289
+ Object.defineProperty(e, "__esModule", {
2290
+ value: !0
2291
+ }), Object.defineProperty(e, "detectDomainLocale", {
2292
+ enumerable: !0,
2293
+ get: function() {
2294
+ return r;
2295
+ }
2296
+ });
2297
+ const r = function() {
2298
+ for (var n = arguments.length, i = new Array(n), o = 0; o < n; o++)
2299
+ i[o] = arguments[o];
2300
+ if (process.env.__NEXT_I18N_SUPPORT)
2301
+ return lo().detectDomainLocale(...i);
2302
+ };
2303
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2304
+ }(Ee, Ee.exports)), Ee.exports;
2305
+ }
2306
+ var hr;
2307
+ function po() {
2308
+ return hr || (hr = 1, function(t, e) {
2309
+ Object.defineProperty(e, "__esModule", {
2310
+ value: !0
2311
+ }), Object.defineProperty(e, "getDomainLocale", {
2312
+ enumerable: !0,
2313
+ get: function() {
2314
+ return i;
2315
+ }
2316
+ });
2317
+ const r = Ce(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
2318
+ function i(o, s, a, u) {
2319
+ if (process.env.__NEXT_I18N_SUPPORT) {
2320
+ const l = co().normalizeLocalePath, p = fo().detectDomainLocale, d = s || l(o, a).detectedLocale, c = p(u, void 0, d);
2321
+ if (c) {
2322
+ const m = "http" + (c.http ? "" : "s") + "://", y = d === c.defaultLocale ? "" : "/" + d;
2323
+ return "" + m + c.domain + (0, r.normalizePathTrailingSlash)("" + n + y + o);
2324
+ }
2325
+ return !1;
2326
+ } else
2327
+ return !1;
2328
+ }
2329
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2330
+ }(Pe, Pe.exports)), Pe.exports;
2331
+ }
2332
+ var we = { exports: {} }, gr;
2333
+ function mo() {
2334
+ return gr || (gr = 1, function(t, e) {
2335
+ Object.defineProperty(e, "__esModule", {
2336
+ value: !0
2337
+ }), Object.defineProperty(e, "addBasePath", {
2338
+ enumerable: !0,
2339
+ get: function() {
2340
+ return o;
2341
+ }
2342
+ });
2343
+ const r = nn(), n = Ce(), i = process.env.__NEXT_ROUTER_BASEPATH || "";
2344
+ function o(s, a) {
2345
+ return (0, n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !a ? s : (0, r.addPathPrefix)(s, i));
2346
+ }
2347
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2348
+ }(we, we.exports)), we.exports;
2349
+ }
2350
+ var Oe = { exports: {} }, yr;
2351
+ function ho() {
2352
+ return yr || (yr = 1, function(t, e) {
2353
+ Object.defineProperty(e, "__esModule", {
2354
+ value: !0
2355
+ });
2356
+ function r(d, c) {
2357
+ for (var m in c) Object.defineProperty(d, m, {
2358
+ enumerable: !0,
2359
+ get: c[m]
2360
+ });
2361
+ }
2362
+ r(e, {
2363
+ PrefetchKind: function() {
2364
+ return p;
2365
+ },
2366
+ ACTION_REFRESH: function() {
2367
+ return n;
2368
+ },
2369
+ ACTION_NAVIGATE: function() {
2370
+ return i;
2371
+ },
2372
+ ACTION_RESTORE: function() {
2373
+ return o;
2374
+ },
2375
+ ACTION_SERVER_PATCH: function() {
2376
+ return s;
2377
+ },
2378
+ ACTION_PREFETCH: function() {
2379
+ return a;
2380
+ },
2381
+ ACTION_FAST_REFRESH: function() {
2382
+ return u;
2383
+ },
2384
+ ACTION_SERVER_ACTION: function() {
2385
+ return l;
2386
+ }
2387
+ });
2388
+ const n = "refresh", i = "navigate", o = "restore", s = "server-patch", a = "prefetch", u = "fast-refresh", l = "server-action";
2389
+ var p;
2390
+ (function(d) {
2391
+ d.AUTO = "auto", d.FULL = "full", d.TEMPORARY = "temporary";
2392
+ })(p || (p = {})), (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2393
+ }(Oe, Oe.exports)), Oe.exports;
2394
+ }
2395
+ (function(t, e) {
2396
+ "use client";
2397
+ Object.defineProperty(e, "__esModule", {
2398
+ value: !0
2399
+ }), Object.defineProperty(e, "default", {
2400
+ enumerable: !0,
2401
+ get: function() {
2402
+ return P;
2403
+ }
2404
+ });
2405
+ const n = /* @__PURE__ */ ce._(Ie), i = to(), o = rn(), s = Zr(), a = Te(), u = no(), l = oo(), p = io(), d = so(), c = po(), m = mo(), y = ho(), f = /* @__PURE__ */ new Set();
2406
+ function g(v, R, I, T, L, M) {
2407
+ if (typeof window > "u" || !M && !(0, o.isLocalURL)(R))
2408
+ return;
2409
+ if (!T.bypassPrefetchedCheck) {
2410
+ const $ = (
2411
+ // Let the link's locale prop override the default router locale.
2412
+ typeof T.locale < "u" ? T.locale : "locale" in v ? v.locale : void 0
2413
+ ), X = R + "%" + I + "%" + $;
2414
+ if (f.has(X))
2415
+ return;
2416
+ f.add(X);
2417
+ }
2418
+ const Y = M ? v.prefetch(R, L) : v.prefetch(R, I, T);
2419
+ Promise.resolve(Y).catch(($) => {
2420
+ if (process.env.NODE_ENV !== "production")
2421
+ throw $;
2422
+ });
2423
+ }
2424
+ function _(v) {
2425
+ const I = v.currentTarget.getAttribute("target");
2426
+ return I && I !== "_self" || v.metaKey || v.ctrlKey || v.shiftKey || v.altKey || // triggers resource download
2427
+ v.nativeEvent && v.nativeEvent.which === 2;
2428
+ }
2429
+ function w(v, R, I, T, L, M, Y, $, X, Ae) {
2430
+ const { nodeName: Le } = v.currentTarget;
2431
+ if (Le.toUpperCase() === "A" && (_(v) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
2432
+ !X && !(0, o.isLocalURL)(I)))
2433
+ return;
2434
+ v.preventDefault();
2435
+ const U = () => {
2436
+ const J = Y ?? !0;
2437
+ "beforePopState" in R ? R[L ? "replace" : "push"](I, T, {
2438
+ shallow: M,
2439
+ locale: $,
2440
+ scroll: J
2441
+ }) : R[L ? "replace" : "push"](T || I, {
2442
+ forceOptimisticNavigation: !Ae,
2443
+ scroll: J
2444
+ });
2445
+ };
2446
+ X ? n.default.startTransition(U) : U();
2447
+ }
2448
+ function b(v) {
2449
+ return typeof v == "string" ? v : (0, s.formatUrl)(v);
2450
+ }
2451
+ const P = /* @__PURE__ */ n.default.forwardRef(function(R, I) {
2452
+ let T;
2453
+ const { href: L, as: M, children: Y, prefetch: $ = null, passHref: X, replace: Ae, shallow: Le, scroll: Rt, locale: U, onClick: J, onMouseEnter: xe, onTouchStart: Et, legacyBehavior: D = !1, ...on } = R;
2454
+ T = Y, D && (typeof T == "string" || typeof T == "number") && (T = /* @__PURE__ */ n.default.createElement("a", null, T));
2455
+ const A = n.default.useContext(l.RouterContext), an = n.default.useContext(p.AppRouterContext), B = A ?? an, V = !A, oe = $ !== !1, le = $ === null ? y.PrefetchKind.AUTO : y.PrefetchKind.FULL;
2456
+ if (process.env.NODE_ENV !== "production") {
2457
+ let S = function(N) {
2458
+ return new Error("Failed prop type: The prop `" + N.key + "` expects a " + N.expected + " in `<Link>`, but got `" + N.actual + "` instead." + (typeof window < "u" ? `
2459
+ Open your browser's console to view the Component stack trace.` : ""));
2460
+ };
2461
+ Object.keys({
2462
+ href: !0
2463
+ }).forEach((N) => {
2464
+ if (N === "href" && (R[N] == null || typeof R[N] != "string" && typeof R[N] != "object"))
2465
+ throw S({
2466
+ key: N,
2467
+ expected: "`string` or `object`",
2468
+ actual: R[N] === null ? "null" : typeof R[N]
2469
+ });
2470
+ }), Object.keys({
2471
+ as: !0,
2472
+ replace: !0,
2473
+ scroll: !0,
2474
+ shallow: !0,
2475
+ passHref: !0,
2476
+ prefetch: !0,
2477
+ locale: !0,
2478
+ onClick: !0,
2479
+ onMouseEnter: !0,
2480
+ onTouchStart: !0,
2481
+ legacyBehavior: !0
2482
+ }).forEach((N) => {
2483
+ const W = typeof R[N];
2484
+ if (N === "as") {
2485
+ if (R[N] && W !== "string" && W !== "object")
2486
+ throw S({
2487
+ key: N,
2488
+ expected: "`string` or `object`",
2489
+ actual: W
2490
+ });
2491
+ } else if (N === "locale") {
2492
+ if (R[N] && W !== "string")
2493
+ throw S({
2494
+ key: N,
2495
+ expected: "`string`",
2496
+ actual: W
2497
+ });
2498
+ } else if (N === "onClick" || N === "onMouseEnter" || N === "onTouchStart") {
2499
+ if (R[N] && W !== "function")
2500
+ throw S({
2501
+ key: N,
2502
+ expected: "`function`",
2503
+ actual: W
2504
+ });
2505
+ } else if ((N === "replace" || N === "scroll" || N === "shallow" || N === "passHref" || N === "prefetch" || N === "legacyBehavior") && R[N] != null && W !== "boolean")
2506
+ throw S({
2507
+ key: N,
2508
+ expected: "`boolean`",
2509
+ actual: W
2510
+ });
2511
+ });
2512
+ const Tt = n.default.useRef(!1);
2513
+ R.prefetch && !Tt.current && !V && (Tt.current = !0, console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"));
2514
+ }
2515
+ if (process.env.NODE_ENV !== "production" && V && !M) {
2516
+ let S;
2517
+ if (typeof L == "string" ? S = L : typeof L == "object" && typeof L.pathname == "string" && (S = L.pathname), S && S.split("/").some((ee) => ee.startsWith("[") && ee.endsWith("]")))
2518
+ throw new Error("Dynamic href `" + S + "` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href");
2519
+ }
2520
+ const { href: F, as: j } = n.default.useMemo(() => {
2521
+ if (!A) {
2522
+ const ee = b(L);
2523
+ return {
2524
+ href: ee,
2525
+ as: M ? b(M) : ee
2526
+ };
2527
+ }
2528
+ const [S, ie] = (0, i.resolveHref)(A, L, !0);
2529
+ return {
2530
+ href: S,
2531
+ as: M ? (0, i.resolveHref)(A, M) : ie || S
2532
+ };
2533
+ }, [
2534
+ A,
2535
+ L,
2536
+ M
2537
+ ]), wt = n.default.useRef(F), Ot = n.default.useRef(j);
2538
+ let x;
2539
+ if (D)
2540
+ if (process.env.NODE_ENV === "development") {
2541
+ J && console.warn('"onClick" was passed to <Link> with `href` of `' + L + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), xe && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + L + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
2542
+ try {
2543
+ x = n.default.Children.only(T);
2544
+ } catch {
2545
+ throw T ? new Error("Multiple children were passed to <Link> with `href` of `" + L + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window < "u" ? `
2546
+ Open your browser's console to view the Component stack trace.` : "")) : new Error("No children were passed to <Link> with `href` of `" + L + "` but one child is required https://nextjs.org/docs/messages/link-no-children");
2547
+ }
2548
+ } else
2549
+ x = n.default.Children.only(T);
2550
+ else if (process.env.NODE_ENV === "development" && (T == null ? void 0 : T.type) === "a")
2551
+ throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
2552
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);
2553
+ const Z = D ? x && typeof x == "object" && x.ref : I, [It, St, Nt] = (0, d.useIntersection)({
2554
+ rootMargin: "200px"
2555
+ }), sn = n.default.useCallback((S) => {
2556
+ (Ot.current !== j || wt.current !== F) && (Nt(), Ot.current = j, wt.current = F), It(S), Z && (typeof Z == "function" ? Z(S) : typeof Z == "object" && (Z.current = S));
2557
+ }, [
2558
+ j,
2559
+ Z,
2560
+ F,
2561
+ Nt,
2562
+ It
2563
+ ]);
2564
+ n.default.useEffect(() => {
2565
+ process.env.NODE_ENV === "production" && B && (!St || !oe || g(B, F, j, {
2566
+ locale: U
2567
+ }, {
2568
+ kind: le
2569
+ }, V));
2570
+ }, [
2571
+ j,
2572
+ F,
2573
+ St,
2574
+ U,
2575
+ oe,
2576
+ A == null ? void 0 : A.locale,
2577
+ B,
2578
+ V,
2579
+ le
2580
+ ]);
2581
+ const de = {
2582
+ ref: sn,
2583
+ onClick(S) {
2584
+ if (process.env.NODE_ENV !== "production" && !S)
2585
+ throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
2586
+ !D && typeof J == "function" && J(S), D && x.props && typeof x.props.onClick == "function" && x.props.onClick(S), B && (S.defaultPrevented || w(S, B, F, j, Ae, Le, Rt, U, V, oe));
2587
+ },
2588
+ onMouseEnter(S) {
2589
+ !D && typeof xe == "function" && xe(S), D && x.props && typeof x.props.onMouseEnter == "function" && x.props.onMouseEnter(S), B && ((!oe || process.env.NODE_ENV === "development") && V || g(B, F, j, {
2590
+ locale: U,
2591
+ priority: !0,
2592
+ // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
2593
+ bypassPrefetchedCheck: !0
2594
+ }, {
2595
+ kind: le
2596
+ }, V));
2597
+ },
2598
+ onTouchStart(S) {
2599
+ !D && typeof Et == "function" && Et(S), D && x.props && typeof x.props.onTouchStart == "function" && x.props.onTouchStart(S), B && (!oe && V || g(B, F, j, {
2600
+ locale: U,
2601
+ priority: !0,
2602
+ // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
2603
+ bypassPrefetchedCheck: !0
2604
+ }, {
2605
+ kind: le
2606
+ }, V));
2607
+ }
2608
+ };
2609
+ if ((0, a.isAbsoluteUrl)(j))
2610
+ de.href = j;
2611
+ else if (!D || X || x.type === "a" && !("href" in x.props)) {
2612
+ const S = typeof U < "u" ? U : A == null ? void 0 : A.locale, ie = (A == null ? void 0 : A.isLocaleDomain) && (0, c.getDomainLocale)(j, S, A == null ? void 0 : A.locales, A == null ? void 0 : A.domainLocales);
2613
+ de.href = ie || (0, m.addBasePath)((0, u.addLocale)(j, S, A == null ? void 0 : A.defaultLocale));
2614
+ }
2615
+ return D ? /* @__PURE__ */ n.default.cloneElement(x, de) : /* @__PURE__ */ n.default.createElement("a", {
2616
+ ...on,
2617
+ ...de
2618
+ }, T);
2619
+ });
2620
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2621
+ })(ht, ht.exports);
2622
+ var go = ht.exports, yo = go;
2623
+ const Pt = /* @__PURE__ */ Un(yo), _o = (t) => {
2624
+ const e = t.getBlocksAsArray(), r = [];
2625
+ return e.forEach((n) => {
2626
+ const i = n.getType(), o = n.getText();
2627
+ let s;
2628
+ const a = n.getInlineStyleAt(0).toArray();
2629
+ a.length > 0 && (s = a.map((l) => {
2630
+ switch (l) {
2631
+ case "BOLD":
2632
+ return "font-weight: bold;";
2633
+ case "ITALIC":
2634
+ return "font-style: italic;";
2635
+ case "UNDERLINE":
2636
+ return "text-decoration: underline;";
2637
+ default:
2638
+ return "";
2639
+ }
2640
+ }).join(" "));
2641
+ const u = {
2642
+ type: "p",
2643
+ text: o,
2644
+ ...s && { styleText: s }
2645
+ };
2646
+ switch (i) {
2647
+ case "header-one":
2648
+ u.type = "h1";
2649
+ break;
2650
+ case "header-two":
2651
+ u.type = "h2";
2652
+ break;
2653
+ case "header-three":
2654
+ u.type = "h3";
2655
+ break;
2656
+ case "unordered-list-item":
2657
+ u.type = "li";
2658
+ break;
2659
+ case "ordered-list-item":
2660
+ u.type = "li";
2661
+ break;
2662
+ case "blockquote":
2663
+ u.type = "blockquote";
2664
+ break;
2665
+ case "code-block":
2666
+ u.type = "pre";
2667
+ break;
2668
+ default:
2669
+ u.type = "p";
2670
+ }
2671
+ r.push(u);
2672
+ }), r;
2673
+ }, vo = (t, e, r) => {
2674
+ t.findEntityRanges((n) => {
2675
+ const i = n.getEntity();
2676
+ return i === null ? !1 : r.getEntity(i).getType() === "LINK";
2677
+ }, e);
2678
+ }, gt = (t) => {
2679
+ const e = new pn([
2680
+ {
2681
+ strategy: vo,
2682
+ component: Pt
2683
+ }
2684
+ ]), r = Ir(
2685
+ t
2686
+ );
2687
+ return dt.createWithContent(r, e);
2688
+ }, bo = (t) => Ir(t), yt = fn.set(
2689
+ "unstyled",
2690
+ {
2691
+ element: "div",
2692
+ aliasedElements: ["div"]
2693
+ }
2694
+ ), mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2695
+ __proto__: null,
2696
+ CREATE_CONTENT: gt,
2697
+ EXTENDED_BLOCK_RENDER_MAP: yt,
2698
+ GET_CONTENT_STATE: bo,
2699
+ convertDraftToHTML: _o
2700
+ }, Symbol.toStringTag, { value: "Module" })), te = (t) => ({
2701
+ centro: "center",
2702
+ esquerda: "start",
2703
+ direita: "end"
2704
+ })[t], Po = ({ expanded: t, content: e }) => /* @__PURE__ */ Q("details", { open: t, children: [
2705
+ e.textStructureReduced ? /* @__PURE__ */ E("summary", { onClick: (r) => r.preventDefault(), children: /* @__PURE__ */ E(
2706
+ Lt,
2707
+ {
2708
+ editorKey: "draft-editor-1",
2709
+ blockRenderMap: yt,
2710
+ editorState: e != null && e.textStructureReduced ? gt(JSON.parse(e.textStructureReduced)) : dt.createEmpty(),
2711
+ onChange: () => null,
2712
+ readOnly: !0
2713
+ }
2714
+ ) }) : /* @__PURE__ */ E(H, {}),
2715
+ e.showTextStructureExpander && e.textStructure ? /* @__PURE__ */ E(H, { children: /* @__PURE__ */ E(
2716
+ Lt,
2717
+ {
2718
+ editorKey: "draft-editor-1",
2719
+ blockRenderMap: yt,
2720
+ editorState: e.textStructure ? gt(JSON.parse(e.textStructure)) : dt.createEmpty(),
2721
+ onChange: () => null,
2722
+ readOnly: !0
2723
+ }
2724
+ ) }) : /* @__PURE__ */ E(H, {})
2725
+ ] }), Ro = {
2726
+ "draftjs-text-modifier": "_draftjs-text-modifier_1itwm_2"
2727
+ }, Eo = "_textContentWrapper_1bigo_5", wo = "_textContentSection_1bigo_13", _r = {
2728
+ "link-modifier": "_link-modifier_1bigo_1",
2729
+ textContentWrapper: Eo,
2730
+ textContentSection: wo
2731
+ }, Oo = "_link_w24h0_1", Io = "_wrapper_w24h0_98", So = "_text_w24h0_106", ct = {
2732
+ link: Oo,
2733
+ wrapper: Io,
2734
+ text: So
2735
+ }, No = ({
2736
+ children: t,
2737
+ adornments: e,
2738
+ className: r,
2739
+ disableUnderline: n,
2740
+ href: i,
2741
+ mode: o,
2742
+ size: s,
2743
+ title: a,
2744
+ onClick: u,
2745
+ disablePadding: l,
2746
+ ...p
2747
+ }) => {
2748
+ const d = se.ValidateProp({
2749
+ fieldTypes: ue,
2750
+ property: s,
2751
+ fallback: "medium"
2752
+ }), c = se.ValidateProp({
2753
+ fieldTypes: ln,
2754
+ property: o,
2755
+ fallback: "default"
2756
+ });
2757
+ return /* @__PURE__ */ E(
2758
+ Pt,
2759
+ {
2760
+ ...p,
2761
+ className: se.classNameConcat(ct.link, r),
2762
+ href: i && i.length > 0 ? i : "#",
2763
+ "data-size": d,
2764
+ "data-variant": c,
2765
+ title: a || "NextLink",
2766
+ "data-disable-underline": n ?? !1,
2767
+ "data-disable-padding": l ?? !0,
2768
+ children: /* @__PURE__ */ Q("div", { className: ct.wrapper, onClick: u, children: [
2769
+ e == null ? void 0 : e.start,
2770
+ /* @__PURE__ */ E("p", { className: ct.text, "data-size": d, children: t }),
2771
+ e == null ? void 0 : e.end
2772
+ ] })
2773
+ }
2774
+ );
2775
+ }, To = ({
2776
+ data: t
2777
+ }) => {
2778
+ var n;
2779
+ const [e, r] = re(!1);
2780
+ return /* @__PURE__ */ E(
2781
+ Ct.Root,
2782
+ {
2783
+ layoutProps: {
2784
+ textRow: {
2785
+ alignContent: te(t.textStructureAlignment),
2786
+ alignItems: te(t.textStructureAlignment)
2787
+ },
2788
+ columnWrapper: {
2789
+ alignContent: te(t.textStructureAlignment),
2790
+ alignItems: te(t.textStructureAlignment)
2791
+ }
2792
+ },
2793
+ adornment: {
2794
+ bottom: t.showTextStructureExpander && t.textStructure ? /* @__PURE__ */ E(
2795
+ dn,
2796
+ {
2797
+ variant: "tertiary",
2798
+ adornment: {
2799
+ end: /* @__PURE__ */ E(At, { name: e ? "arrow-up" : "arrow-down" })
2800
+ },
2801
+ onClick: () => r((i) => !i),
2802
+ size: "small",
2803
+ children: e ? "Ver Menos" : "Ver Mais"
2804
+ }
2805
+ ) : /* @__PURE__ */ E(H, {})
2806
+ },
2807
+ children: /* @__PURE__ */ Q(
2808
+ Or.Column,
2809
+ {
2810
+ className: _r.textContentWrapper,
2811
+ style: {
2812
+ alignItems: te(
2813
+ t.textStructureAlignment
2814
+ )
2815
+ },
2816
+ children: [
2817
+ /* @__PURE__ */ E(
2818
+ Ct.DivWrapper,
2819
+ {
2820
+ style: {
2821
+ textAlign: te(
2822
+ t.textStructureAlignment
2823
+ )
2824
+ },
2825
+ mode: t.textStructureMode ?? "default",
2826
+ className: Ro["draftjs-text-modifier"],
2827
+ children: t.textStructureReduced ? /* @__PURE__ */ E(Po, { content: t, expanded: e }) : /* @__PURE__ */ E(H, {})
2828
+ }
2829
+ ),
2830
+ t.textStructureButtonLabel ? /* @__PURE__ */ E(
2831
+ No,
2832
+ {
2833
+ mode: t.textStructureMode ?? "default",
2834
+ href: t.textStructureButtonHref ?? "#",
2835
+ size: t.textStructureButtonSize,
2836
+ className: _r["link-modifier"],
2837
+ adornments: (n = t.textStructureButtonIcon) != null && n.length && t.enableIcon ? { end: /* @__PURE__ */ E(At, { name: t.textStructureButtonIcon }) } : void 0,
2838
+ children: t.textStructureButtonLabel
2839
+ }
2840
+ ) : /* @__PURE__ */ E(H, {})
2841
+ ]
2842
+ }
2843
+ )
2844
+ }
2845
+ );
2846
+ }, Co = (t) => ({
2847
+ centro: {
2848
+ verticalAlignment: "center",
2849
+ horizontalAlignment: "center"
2850
+ },
2851
+ "centro-esquerda": {
2852
+ verticalAlignment: "center",
2853
+ horizontalAlignment: "start"
2854
+ },
2855
+ "centro-direita": {
2856
+ verticalAlignment: "center",
2857
+ horizontalAlignment: "end"
2858
+ },
2859
+ "superior-centro": {
2860
+ verticalAlignment: "start",
2861
+ horizontalAlignment: "center"
2862
+ },
2863
+ "superior-esquerda": {
2864
+ verticalAlignment: "start",
2865
+ horizontalAlignment: "start"
2866
+ },
2867
+ "superior-direita": {
2868
+ verticalAlignment: "start",
2869
+ horizontalAlignment: "end"
2870
+ },
2871
+ "inferior-centro": {
2872
+ verticalAlignment: "end",
2873
+ horizontalAlignment: "center"
2874
+ },
2875
+ "inferior-esquerda": {
2876
+ verticalAlignment: "end",
2877
+ horizontalAlignment: "start"
2878
+ },
2879
+ "inferior-direita": {
2880
+ verticalAlignment: "end",
2881
+ horizontalAlignment: "end"
2882
+ }
2883
+ })[t], vr = (t) => ({
2884
+ centro: "center",
2885
+ esquerda: "start",
2886
+ direita: "end"
2887
+ })[t], Ao = "_image_lypfr_1", Lo = {
2888
+ image: Ao
2889
+ }, xo = ({
2890
+ alt: t,
2891
+ className: e,
2892
+ objectFit: r,
2893
+ ...n
2894
+ }) => {
2895
+ const { nextimage: i } = Yr();
2896
+ return /* @__PURE__ */ E(
2897
+ i,
2898
+ {
2899
+ quality: 90,
2900
+ ...n,
2901
+ alt: t ?? "",
2902
+ className: se.classNameConcat(Lo.image, e),
2903
+ "data-object-fit": r ?? "cover"
2904
+ }
2905
+ );
2906
+ }, qo = ({ videoRef: t, ...e }) => /* @__PURE__ */ E("video", { ...e, ref: t, children: /* @__PURE__ */ E("track", { kind: "captions" }) }), jo = {
2907
+ Image: xo,
2908
+ Video: qo
2909
+ }, br = ({
2910
+ dateEnd: t,
2911
+ dateInit: e,
2912
+ TIME_ZONE: r = "America/Sao_Paulo",
2913
+ ...n
2914
+ }) => {
2915
+ const [i, o] = re(
2916
+ kn(
2917
+ new xt(Date.now(), r),
2918
+ new xt(t, r)
2919
+ )
2920
+ ), [s, a] = re(!1);
2921
+ ne(() => {
2922
+ s || a(!0);
2923
+ const l = setInterval(() => {
2924
+ if (i <= 0) {
2925
+ clearInterval(l);
2926
+ return;
2927
+ }
2928
+ o(i - 1e3);
2929
+ }, 1e3);
2930
+ return () => {
2931
+ clearInterval(l);
2932
+ };
2933
+ }, [i, o, s]);
2934
+ const u = pe(i, "days");
2935
+ return s && i > 0 ? /* @__PURE__ */ Q(G.Root, { ...n, children: [
2936
+ u ? /* @__PURE__ */ Q(H, { children: [
2937
+ /* @__PURE__ */ E(G.Digit, { label: "dias", value: u }),
2938
+ /* @__PURE__ */ E(G.Separator, {})
2939
+ ] }) : null,
2940
+ /* @__PURE__ */ E(
2941
+ G.Digit,
2942
+ {
2943
+ label: "horas",
2944
+ value: pe(i, "hours")
2945
+ }
2946
+ ),
2947
+ /* @__PURE__ */ E(G.Separator, {}),
2948
+ /* @__PURE__ */ E(
2949
+ G.Digit,
2950
+ {
2951
+ label: "min",
2952
+ value: pe(i, "minutes")
2953
+ }
2954
+ ),
2955
+ /* @__PURE__ */ E(G.Separator, {}),
2956
+ /* @__PURE__ */ E(
2957
+ G.Digit,
2958
+ {
2959
+ label: "segs",
2960
+ value: pe(i),
2961
+ suppressHydrationWarning: !0
2962
+ }
2963
+ )
2964
+ ] }) : /* @__PURE__ */ E(H, {});
2965
+ }, Pr = {
2966
+ "content-modifier": "_content-modifier_16y4u_5",
2967
+ "banner-image-wrapper-modifier": "_banner-image-wrapper-modifier_16y4u_13"
2968
+ }, Rr = ({
2969
+ data: t,
2970
+ videoUrl: e,
2971
+ priority: r,
2972
+ videoRef: n,
2973
+ ...i
2974
+ }) => {
2975
+ const {
2976
+ video: o,
2977
+ image: s,
2978
+ imageHref: a,
2979
+ imageOpacity: u,
2980
+ altImage: l,
2981
+ backgroundColor: p,
2982
+ position: d,
2983
+ contentAlignment: c,
2984
+ showTimer: m,
2985
+ contentOrder: y,
2986
+ timerMode: f,
2987
+ timerEnd: g,
2988
+ timerInit: _,
2989
+ textStructure: w,
2990
+ textStructureReduced: b
2991
+ } = t.banner, h = (a == null ? void 0 : a.trim()) || (s == null ? void 0 : s.trim()) || null, { nextimage: P } = Yr();
2992
+ return /* @__PURE__ */ Q(De.Container, { ...i, children: [
2993
+ /* @__PURE__ */ Q(
2994
+ De.ImageWrapper,
2995
+ {
2996
+ className: Pr["banner-image-wrapper-modifier"],
2997
+ style: u ? { background: p } : void 0,
2998
+ children: [
2999
+ o && /* @__PURE__ */ E(
3000
+ jo.Video,
3001
+ {
3002
+ videoRef: n,
3003
+ src: e,
3004
+ autoPlay: r,
3005
+ loop: !0,
3006
+ playsInline: !0,
3007
+ muted: !0
3008
+ }
3009
+ ),
3010
+ h && !(o != null && o.length) && /* @__PURE__ */ E(
3011
+ P,
3012
+ {
3013
+ src: h,
3014
+ width: "1920",
3015
+ height: "1080",
3016
+ alt: l ?? s ?? "",
3017
+ ...r ? { priority: r } : {},
3018
+ style: u ? { opacity: "0" } : void 0
3019
+ }
3020
+ ),
3021
+ !s && !(o != null && o.length) && /* @__PURE__ */ E(
3022
+ "div",
3023
+ {
3024
+ style: {
3025
+ background: p
3026
+ }
3027
+ }
3028
+ )
3029
+ ]
3030
+ }
3031
+ ),
3032
+ m || b || w ? /* @__PURE__ */ E(
3033
+ De.Slot,
3034
+ {
3035
+ ...Co(d ?? "centro"),
3036
+ className: Pr["content-modifier"],
3037
+ style: {
3038
+ textAlign: vr(
3039
+ c
3040
+ )
3041
+ },
3042
+ children: /* @__PURE__ */ Q(
3043
+ Or.Column,
3044
+ {
3045
+ gap: "16px",
3046
+ alignItems: vr(c),
3047
+ children: [
3048
+ m && y === "timer-first" && /* @__PURE__ */ E(
3049
+ br,
3050
+ {
3051
+ mode: f ?? "default",
3052
+ size: "small",
3053
+ dateEnd: g ? new Date(g) : /* @__PURE__ */ new Date(),
3054
+ dateInit: _ ? new Date(_) : /* @__PURE__ */ new Date()
3055
+ }
3056
+ ),
3057
+ /* @__PURE__ */ E(To, { data: t.banner }),
3058
+ m && y !== "timer-first" && /* @__PURE__ */ E(
3059
+ br,
3060
+ {
3061
+ mode: f ?? "default",
3062
+ size: "small",
3063
+ dateEnd: g ? new Date(g) : /* @__PURE__ */ new Date(),
3064
+ dateInit: _ ? new Date(_) : /* @__PURE__ */ new Date()
3065
+ }
3066
+ )
3067
+ ]
3068
+ }
3069
+ )
3070
+ }
3071
+ ) : /* @__PURE__ */ E(H, {})
3072
+ ] });
3073
+ }, Mo = {
3074
+ "observer-wrapper": "_observer-wrapper_r43gk_1"
3075
+ };
3076
+ function Do(t, e, r) {
3077
+ const [n, i] = re(!1), { threshold: o } = r || {};
3078
+ return ne(() => {
3079
+ if (!t.current)
3080
+ return () => {
3081
+ };
3082
+ let s = null;
3083
+ const a = new IntersectionObserver(
3084
+ ([u]) => {
3085
+ if (r != null && r.delay) {
3086
+ s && clearTimeout(s), s = setTimeout(() => {
3087
+ i(u.isIntersecting), e && u.isIntersecting && a.unobserve(t.current);
3088
+ }, r.delay);
3089
+ return;
3090
+ }
3091
+ i(u.isIntersecting), e && u.isIntersecting && a.unobserve(t.current);
3092
+ },
3093
+ {
3094
+ threshold: o || 1
3095
+ }
3096
+ );
3097
+ return a.observe(t.current), () => {
3098
+ a.disconnect();
3099
+ };
3100
+ }, [t]), n;
3101
+ }
3102
+ const ko = ({
3103
+ children: t,
3104
+ eventData: e,
3105
+ observerOptions: r,
3106
+ callBackWhenVisible: n,
3107
+ stopOnIntersection: i = !0,
3108
+ className: o,
3109
+ ...s
3110
+ }) => {
3111
+ const a = z(null), u = Do(a, i, r), { sendDataLayerEvent: l } = xr();
3112
+ return ne(() => {
3113
+ u && (typeof n == "function" && n(), e && l({ ...e }));
3114
+ }, [u]), /* @__PURE__ */ E(
3115
+ "div",
3116
+ {
3117
+ ...s,
3118
+ ref: a,
3119
+ className: se.classNameConcat(Mo["observer-wrapper"], o),
3120
+ children: t
3121
+ }
3122
+ );
3123
+ }, Uo = ({
3124
+ data: t,
3125
+ className: e,
3126
+ priority: r,
3127
+ creative: n,
3128
+ ...i
3129
+ }) => {
3130
+ const { handleSelectPromotionEvent: o, currentLocalRef: s } = xr(), {
3131
+ banner: { promotion_name: a },
3132
+ index: u,
3133
+ componentIndex: l
3134
+ } = t, p = typeof u == "number" ? `:${u + 1}` : "", d = {
3135
+ creative_name: n,
3136
+ creative_slot: `${n}-${s.current}:${l + 1}${p}`,
3137
+ promotion_id: t.banner.href,
3138
+ promotion_name: a
3139
+ }, c = z(null), m = lt(() => {
3140
+ var f;
3141
+ if ((f = t.banner.video) != null && f.includes("player.vimeo")) {
3142
+ const g = t.banner.video.split("?")[1], _ = g == null ? void 0 : g.split("&"), w = _ == null ? void 0 : _.filter(
3143
+ (h) => h.includes("loc") || h.includes("signature") || h.includes("user_id")
3144
+ ), b = w == null ? void 0 : w.join("&");
3145
+ return `${t.banner.video.split("?")[0]}?${b}`;
3146
+ }
3147
+ return t.banner.video;
3148
+ }, [t]), y = () => {
3149
+ var f;
3150
+ (f = c.current) != null && f.paused && c.current.play();
3151
+ };
3152
+ return /* @__PURE__ */ E(
3153
+ ko,
3154
+ {
3155
+ eventData: {
3156
+ functionKey: "readyEvents",
3157
+ data: {
3158
+ event: "view_promotion",
3159
+ readyData: {
3160
+ ecommerce: {
3161
+ ...d,
3162
+ index: u
3163
+ }
3164
+ }
3165
+ }
3166
+ },
3167
+ observerOptions: {
3168
+ delay: 100,
3169
+ ...m && { threshold: 0.1 }
3170
+ },
3171
+ ...m && { callBackWhenVisible: y },
3172
+ children: t.banner.href ? /* @__PURE__ */ E(
3173
+ Pt,
3174
+ {
3175
+ href: t.banner.href,
3176
+ onClick: () => {
3177
+ o({
3178
+ updatePromotionRef: !0,
3179
+ promotion: d,
3180
+ index: u
3181
+ });
3182
+ },
3183
+ children: /* @__PURE__ */ E(
3184
+ Rr,
3185
+ {
3186
+ data: t,
3187
+ videoUrl: m,
3188
+ priority: r,
3189
+ videoRef: c,
3190
+ ...i
3191
+ }
3192
+ )
3193
+ }
3194
+ ) : /* @__PURE__ */ E(
3195
+ Rr,
3196
+ {
3197
+ data: t,
3198
+ videoUrl: m,
3199
+ priority: r,
3200
+ videoRef: c,
3201
+ ...i
3202
+ }
3203
+ )
3204
+ }
3205
+ );
3206
+ }, zo = (t) => /* @__PURE__ */ E(Uo, { ...t }), Bo = (t) => t, Vo = (t) => t, Er = { schema: Bo, base: Vo }, Fo = (t) => t, Wo = (t) => ({
3207
+ ...t.uiWidget ? { "ui:widget": t.uiWidget } : {},
3208
+ ...t.uiObjectFieldTemplate ? { "ui:ObjectFieldTemplate": t.uiObjectFieldTemplate } : {}
3209
+ }), O = {
3210
+ property: Fo,
3211
+ widget: Wo
3212
+ };
3213
+ function Ho({ ICONS: t }) {
3214
+ return {
3215
+ borderTop: O.property({
3216
+ title: "Esconder borda superior",
3217
+ type: "boolean"
3218
+ }),
3219
+ textStructure: O.property({
3220
+ title: 'Texto complementar (caso queira o "ver mais")',
3221
+ type: "string",
3222
+ widget: O.widget({
3223
+ uiWidget: "draftjs-rich-text"
3224
+ })
3225
+ }),
3226
+ textStructureReduced: O.property({
3227
+ title: "Texto inicial",
3228
+ type: "string",
3229
+ widget: O.widget({
3230
+ uiWidget: "draftjs-rich-text"
3231
+ })
3232
+ }),
3233
+ textStructureMode: O.property({
3234
+ title: "cor da estrutura de texto",
3235
+ type: "string",
3236
+ enumNames: ["Padrão(preto)", "Invertido(branco)"],
3237
+ enum: ["default", "inverse"]
3238
+ }),
3239
+ textStructureButtonSize: O.property({
3240
+ title: "Tamanho botão estrutura de texto",
3241
+ type: "string",
3242
+ enumNames: ue,
3243
+ enum: ue
3244
+ }),
3245
+ enableIcon: O.property({
3246
+ type: "boolean",
3247
+ title: "Ativar ícone"
3248
+ }),
3249
+ textStructureButtonIcon: O.property({
3250
+ title: "Icone botão estrutura de texto",
3251
+ type: "string",
3252
+ enum: Object.values(t),
3253
+ enumNames: Object.keys(t)
3254
+ }),
3255
+ textStructureButtonLabel: O.property({
3256
+ title: "Label botão estrutura de texto",
3257
+ type: "string"
3258
+ }),
3259
+ textStructureButtonHref: O.property({
3260
+ title: "Url botão estrutura texto",
3261
+ type: "string"
3262
+ }),
3263
+ showTextStructureExpander: O.property({
3264
+ title: 'Mostrar botão "ver mais" (Caso ja tenha um texto reduzido)',
3265
+ type: "boolean"
3266
+ }),
3267
+ textStructureAlignment: O.property({
3268
+ title: "alinhamento do texto",
3269
+ type: "string",
3270
+ enumNames: ["centro", "esquerda", "direita"],
3271
+ enum: ["centro", "esquerda", "direita"]
3272
+ })
3273
+ };
3274
+ }
3275
+ function $o({ ICONS: t }) {
3276
+ return O.property({
3277
+ type: "object",
3278
+ title: "Item",
3279
+ properties: {
3280
+ title: O.property({ type: "object", title: "Item" }),
3281
+ creative_name: O.property({
3282
+ type: "string",
3283
+ title: "creative name ex: carrossel home, ex2: stories"
3284
+ }),
3285
+ creative_slot: O.property({
3286
+ type: "string",
3287
+ title: "creative slot ex: carrossel-home: 1"
3288
+ }),
3289
+ promotion_id: O.property({
3290
+ type: "string",
3291
+ title: "promotion id ex: /animale: ex2: /new-collection?O=OrderByScoreDESC"
3292
+ }),
3293
+ promotion_name: O.property({
3294
+ type: "string",
3295
+ title: "promotion name ex: special-gift-for-you"
3296
+ }),
3297
+ href: O.property({
3298
+ type: "string",
3299
+ title: "Link"
3300
+ }),
3301
+ image: O.property({
3302
+ type: "string",
3303
+ title: "Imagem upload",
3304
+ description: "Upload de imagens ou seleção de imagens já existentes.",
3305
+ widget: O.widget({
3306
+ uiWidget: "media-gallery"
3307
+ })
3308
+ }),
3309
+ imageHref: O.property({
3310
+ type: "string",
3311
+ title: "Imagem via link",
3312
+ description: "Informe um link de imagem apenas se não for usar o upload da VTEX. Os dois não podem ser usados juntos."
3313
+ }),
3314
+ imageOpacity: O.property({
3315
+ title: "Deixar imagem transparente",
3316
+ type: "boolean"
3317
+ }),
3318
+ headerVariant: O.property({
3319
+ title: "cor do header no banner principal (se Banner Carousel na home)",
3320
+ type: "string",
3321
+ enumNames: ["Padrão(preto)", "Invertido(branco)"],
3322
+ enum: ["transparent-black", "transparent-white"]
3323
+ }),
3324
+ video: O.property({
3325
+ type: "string",
3326
+ title: "Video",
3327
+ widget: O.widget({
3328
+ uiWidget: "media-gallery"
3329
+ })
3330
+ }),
3331
+ altImage: O.property({
3332
+ type: "string",
3333
+ title: "Alt Image"
3334
+ }),
3335
+ isHeroBanner: O.property({
3336
+ title: "é hero banner",
3337
+ type: "boolean"
3338
+ }),
3339
+ backgroundColor: O.property({
3340
+ title: "Cor de fundo ex: #ffffff",
3341
+ type: "string"
3342
+ }),
3343
+ position: O.property({
3344
+ title: "Posição do conteudo na imagem",
3345
+ type: "string",
3346
+ enumNames: [
3347
+ "superior-esquerda",
3348
+ "superior-centro",
3349
+ "superior-direita",
3350
+ "centro",
3351
+ "centro-esquerda",
3352
+ "centro-direita",
3353
+ "inferior-esquerda",
3354
+ "inferior-centro",
3355
+ "inferior-direita"
3356
+ ],
3357
+ enum: [
3358
+ "superior-esquerda",
3359
+ "superior-centro",
3360
+ "superior-direita",
3361
+ "centro",
3362
+ "centro-esquerda",
3363
+ "centro-direita",
3364
+ "inferior-esquerda",
3365
+ "inferior-centro",
3366
+ "inferior-direita"
3367
+ ]
3368
+ }),
3369
+ showTimer: O.property({
3370
+ title: "mostrar relogio",
3371
+ type: "boolean"
3372
+ }),
3373
+ timerInit: O.property({
3374
+ title: "relogio inicio",
3375
+ type: "string",
3376
+ widget: {
3377
+ "ui:widget": "date-time"
3378
+ }
3379
+ }),
3380
+ timerEnd: O.property({
3381
+ title: "relogio Fim",
3382
+ type: "string",
3383
+ widget: {
3384
+ "ui:widget": "date-time"
3385
+ }
3386
+ }),
3387
+ timerMode: O.property({
3388
+ title: "cor do relogio",
3389
+ type: "string",
3390
+ enumNames: ["Padrão(preto)", "Invertido(branco)"],
3391
+ enum: ["default", "inverse"]
3392
+ }),
3393
+ timerSize: O.property({
3394
+ title: "tamanho do relogio",
3395
+ type: "string",
3396
+ enumNames: ue,
3397
+ enum: ue
3398
+ }),
3399
+ contentAlignment: O.property({
3400
+ title: "alinhamento do conteúdo",
3401
+ type: "string",
3402
+ enumNames: ["centro", "esquerda", "direita"],
3403
+ enum: ["centro", "esquerda", "direita"]
3404
+ }),
3405
+ contentOrder: O.property({
3406
+ title: "ordem do conteúdo",
3407
+ type: "string",
3408
+ enumNames: ["relógio primeiro", "estrutura de texto primeiro"],
3409
+ enum: ["timer-first", "text-structure-first"]
3410
+ }),
3411
+ ...Ho({ ICONS: t })
3412
+ }
3413
+ });
3414
+ }
3415
+ function hi({ ICONS: t }) {
3416
+ return Er.base({
3417
+ name: "Banner",
3418
+ id: "banner",
3419
+ href: "",
3420
+ requiredScopes: [
3421
+ "common_page",
3422
+ "categories_page",
3423
+ "wishlist_page",
3424
+ "search_page",
3425
+ "prehome"
3426
+ ],
3427
+ schema: Er.schema({
3428
+ title: "Banner",
3429
+ description: "Banners Único para pagina",
3430
+ type: "object",
3431
+ properties: {
3432
+ banner: $o({ ICONS: t })
3433
+ }
3434
+ })
3435
+ });
3436
+ }
3437
+ const gi = { Banner: zo };
3438
+ export {
3439
+ No as A,
3440
+ Uo as B,
3441
+ gi as C,
3442
+ br as D,
3443
+ si as E,
3444
+ Er as F,
3445
+ di as G,
3446
+ O as H,
3447
+ Ho as I,
3448
+ hi as J,
3449
+ Pt as L,
3450
+ Dn as M,
3451
+ pi as N,
3452
+ ko as O,
3453
+ zo as S,
3454
+ To as T,
3455
+ Mn as U,
3456
+ ce as _,
3457
+ oi as a,
3458
+ fi as b,
3459
+ vt as c,
3460
+ li as d,
3461
+ xn as e,
3462
+ qn as f,
3463
+ Sr as g,
3464
+ Sn as h,
3465
+ Rn as i,
3466
+ Tn as j,
3467
+ ci as k,
3468
+ Yr as l,
3469
+ pe as m,
3470
+ kn as n,
3471
+ ai as o,
3472
+ ui as p,
3473
+ _r as q,
3474
+ ii as r,
3475
+ mn as s,
3476
+ mi as t,
3477
+ xr as u,
3478
+ jo as v,
3479
+ bn as w,
3480
+ Un as x,
3481
+ Bn as y,
3482
+ ao as z
3483
+ };