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