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